Ricky Reusser ade657c891 💫
2020-01-20 13:49:10 -08:00

1 line
683 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(){return function t(e,n,r){function i(a,u){if(!n[a]){if(!e[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var f=n[a]={exports:{}};e[a][0].call(f.exports,function(t){var n=e[a][1][t];return i(n||t)},f,f.exports,t,e,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}}()({1:[function(t,e,n){var r=n;r.bignum=t("bn.js"),r.define=t("./asn1/api").define,r.base=t("./asn1/base"),r.constants=t("./asn1/constants"),r.decoders=t("./asn1/decoders"),r.encoders=t("./asn1/encoders")},{"./asn1/api":2,"./asn1/base":4,"./asn1/constants":8,"./asn1/decoders":10,"./asn1/encoders":13,"bn.js":16}],2:[function(t,e,n){var r=t("../asn1"),i=t("inherits");function o(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}n.define=function(t,e){return new o(t,e)},o.prototype._createNamed=function(e){var n;try{n=t("vm").runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(t){n=function(t){this._initNamed(t)}}return i(n,e),n.prototype._initNamed=function(t){e.call(this,t)},new n(this)},o.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(r.decoders[t])),this.decoders[t]},o.prototype.decode=function(t,e,n){return this._getDecoder(e).decode(t,n)},o.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(r.encoders[t])),this.encoders[t]},o.prototype.encode=function(t,e,n){return this._getEncoder(e).encode(t,n)}},{"../asn1":1,inherits:123,vm:194}],3:[function(t,e,n){var r=t("inherits"),i=t("../base").Reporter,o=t("buffer").Buffer;function a(t,e){i.call(this,e),o.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function u(t,e){if(Array.isArray(t))this.length=0,this.value=t.map(function(t){return t instanceof u||(t=new u(t,e)),this.length+=t.length,t},this);else if("number"==typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"==typeof t)this.value=t,this.length=o.byteLength(t);else{if(!o.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}r(a,i),n.DecoderBuffer=a,a.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(t){var e=new a(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,i.prototype.restore.call(this,t.reporter),e},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},a.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");var n=new a(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+t,this.offset+=t,n},a.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},n.EncoderBuffer=u,u.prototype.join=function(t,e){return t||(t=new o(this.length)),e||(e=0),0===this.length?t:(Array.isArray(this.value)?this.value.forEach(function(n){n.join(t,e),e+=n.length}):("number"==typeof this.value?t[e]=this.value:"string"==typeof this.value?t.write(this.value,e):o.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length),t)}},{"../base":4,buffer:48,inherits:123}],4:[function(t,e,n){var r=n;r.Reporter=t("./reporter").Reporter,r.DecoderBuffer=t("./buffer").DecoderBuffer,r.EncoderBuffer=t("./buffer").EncoderBuffer,r.Node=t("./node")},{"./buffer":3,"./node":5,"./reporter":6}],5:[function(t,e,n){var r=t("../base").Reporter,i=t("../base").EncoderBuffer,o=t("../base").DecoderBuffer,a=t("minimalistic-assert"),u=["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"],s=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(u);function c(t,e){var n={};this._baseState=n,n.enc=t,n.parent=e||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())}e.exports=c;var f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){var t=this._baseState,e={};f.forEach(function(n){e[n]=t[n]});var n=new this.constructor(e.parent);return n._baseState=e,n},c.prototype._wrap=function(){var t=this._baseState;s.forEach(function(e){this[e]=function(){var n=new this.constructor(this);return t.children.push(n),n[e].apply(n,arguments)}},this)},c.prototype._init=function(t){var e=this._baseState;a(null===e.parent),t.call(this),e.children=e.children.filter(function(t){return t._baseState.parent===this},this),a.equal(e.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(t){var e=this._baseState,n=t.filter(function(t){return t instanceof this.constructor},this);t=t.filter(function(t){return!(t instanceof this.constructor)},this),0!==n.length&&(a(null===e.children),e.children=n,n.forEach(function(t){t._baseState.parent=this},this)),0!==t.length&&(a(null===e.args),e.args=t,e.reverseArgs=t.map(function(t){if("object"!=typeof t||t.constructor!==Object)return t;var e={};return Object.keys(t).forEach(function(n){n==(0|n)&&(n|=0);var r=t[n];e[r]=n}),e}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(t){c.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}}),u.forEach(function(t){c.prototype[t]=function(){var e=this._baseState,n=Array.prototype.slice.call(arguments);return a(null===e.tag),e.tag=t,this._useArgs(n),this}}),c.prototype.use=function(t){a(t);var e=this._baseState;return a(null===e.use),e.use=t,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(t){var e=this._baseState;return a(null===e.default),e.default=t,e.optional=!0,this},c.prototype.explicit=function(t){var e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.explicit=t,this},c.prototype.implicit=function(t){var e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.implicit=t,this},c.prototype.obj=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},c.prototype.key=function(t){var e=this._baseState;return a(null===e.key),e.key=t,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(t){var e=this._baseState;return a(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map(function(e){return t[e]})),this},c.prototype.contains=function(t){var e=this._baseState;return a(null===e.use),e.contains=t,this},c.prototype._decode=function(t,e){var n=this._baseState;if(null===n.parent)return t.wrapResult(n.children[0]._decode(t,e));var r,i=n.default,a=!0,u=null;if(null!==n.key&&(u=t.enterKey(n.key)),n.optional){var s=null;if(null!==n.explicit?s=n.explicit:null!==n.implicit?s=n.implicit:null!==n.tag&&(s=n.tag),null!==s||n.any){if(a=this._peekTag(t,s,n.any),t.isError(a))return a}else{var c=t.save();try{null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e),a=!0}catch(t){a=!1}t.restore(c)}}if(n.obj&&a&&(r=t.enterObject()),a){if(null!==n.explicit){var f=this._decodeTag(t,n.explicit);if(t.isError(f))return f;t=f}var h=t.offset;if(null===n.use&&null===n.choice){if(n.any)c=t.save();var l=this._decodeTag(t,null!==n.implicit?n.implicit:n.tag,n.any);if(t.isError(l))return l;n.any?i=t.raw(c):t=l}if(e&&e.track&&null!==n.tag&&e.track(t.path(),h,t.length,"tagged"),e&&e.track&&null!==n.tag&&e.track(t.path(),t.offset,t.length,"content"),i=n.any?i:null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e),t.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach(function(n){n._decode(t,e)}),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var d=new o(i);i=this._getUse(n.contains,t._reporterState.obj)._decode(d,e)}}return n.obj&&a&&(i=t.leaveObject(r)),null===n.key||null===i&&!0!==a?null!==u&&t.exitKey(u):t.leaveKey(u,n.key,i),i},c.prototype._decodeGeneric=function(t,e,n){var r=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,r.args[0],n):/str$/.test(t)?this._decodeStr(e,t,n):"objid"===t&&r.args?this._decodeObjid(e,r.args[0],r.args[1],n):"objid"===t?this._decodeObjid(e,null,null,n):"gentime"===t||"utctime"===t?this._decodeTime(e,t,n):"null_"===t?this._decodeNull(e,n):"bool"===t?this._decodeBool(e,n):"objDesc"===t?this._decodeStr(e,t,n):"int"===t||"enum"===t?this._decodeInt(e,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,e._reporterState.obj)._decode(e,n):e.error("unknown tag: "+t)},c.prototype._getUse=function(t,e){var n=this._baseState;return n.useDecoder=this._use(t,e),a(null===n.useDecoder._baseState.parent),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},c.prototype._decodeChoice=function(t,e){var n=this._baseState,r=null,i=!1;return Object.keys(n.choice).some(function(o){var a=t.save(),u=n.choice[o];try{var s=u._decode(t,e);if(t.isError(s))return!1;r={type:o,value:s},i=!0}catch(e){return t.restore(a),!1}return!0},this),i?r:t.error("Choice not matched")},c.prototype._createEncoderBuffer=function(t){return new i(t,this.reporter)},c.prototype._encode=function(t,e,n){var r=this._baseState;if(null===r.default||r.default!==t){var i=this._encodeValue(t,e,n);if(void 0!==i&&!this._skipDefault(i,e,n))return i}},c.prototype._encodeValue=function(t,e,n){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(t,e||new r);var o=null;if(this.reporter=e,i.optional&&void 0===t){if(null===i.default)return;t=i.default}var a=null,u=!1;if(i.any)o=this._createEncoderBuffer(t);else if(i.choice)o=this._encodeChoice(t,e);else if(i.contains)a=this._getUse(i.contains,n)._encode(t,e),u=!0;else if(i.children)a=i.children.map(function(n){if("null_"===n._baseState.tag)return n._encode(null,e,t);if(null===n._baseState.key)return e.error("Child should have a key");var r=e.enterKey(n._baseState.key);if("object"!=typeof t)return e.error("Child expected, but input is not object");var i=n._encode(t[n._baseState.key],e,t);return e.leaveKey(r),i},this).filter(function(t){return t}),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return e.error("Too many args for : "+i.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");var s=this.clone();s._baseState.implicit=null,a=this._createEncoderBuffer(t.map(function(n){var r=this._baseState;return this._getUse(r.args[0],t)._encode(n,e)},s))}else null!==i.use?o=this._getUse(i.use,n)._encode(t,e):(a=this._encodePrimitive(i.tag,t),u=!0);if(!i.any&&null===i.choice){var c=null!==i.implicit?i.implicit:i.tag,f=null===i.implicit?"universal":"context";null===c?null===i.use&&e.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(c,u,f,a))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},c.prototype._encodeChoice=function(t,e){var n=this._baseState,r=n.choice[t.type];return r||a(!1,t.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(t.value,e)},c.prototype._encodePrimitive=function(t,e){var n=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&n.args)return this._encodeObjid(e,n.reverseArgs[0],n.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,n.args&&n.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},c.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},c.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}},{"../base":4,"minimalistic-assert":129}],6:[function(t,e,n){var r=t("inherits");function i(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function o(t,e){this.path=t,this.rethrow(e)}n.Reporter=i,i.prototype.isError=function(t){return t instanceof o},i.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},i.prototype.restore=function(t){var e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},i.prototype.enterKey=function(t){return this._reporterState.path.push(t)},i.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},i.prototype.leaveKey=function(t,e,n){var r=this._reporterState;this.exitKey(t),null!==r.obj&&(r.obj[e]=n)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},i.prototype.leaveObject=function(t){var e=this._reporterState,n=e.obj;return e.obj=t,n},i.prototype.error=function(t){var e,n=this._reporterState,r=t instanceof o;if(e=r?t:new o(n.path.map(function(t){return"["+JSON.stringify(t)+"]"}).join(""),t.message||t,t.stack),!n.options.partial)throw e;return r||n.errors.push(e),e},i.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},r(o,Error),o.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},{inherits:123}],7:[function(t,e,n){var r=t("../constants");n.tagClass={0:"universal",1:"application",2:"context",3:"private"},n.tagClassByName=r._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=r._reverse(n.tag)},{"../constants":8}],8:[function(t,e,n){var r=n;r._reverse=function(t){var e={};return Object.keys(t).forEach(function(n){(0|n)==n&&(n|=0);var r=t[n];e[r]=n}),e},r.der=t("./der")},{"./der":7}],9:[function(t,e,n){var r=t("inherits"),i=t("../../asn1"),o=i.base,a=i.bignum,u=i.constants.der;function s(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new c,this.tree._init(t.body)}function c(t){o.Node.call(this,"der",t)}function f(t,e){var n=t.readUInt8(e);if(t.isError(n))return n;var r=u.tagClass[n>>6],i=0==(32&n);if(31==(31&n)){var o=n;for(n=0;128==(128&o);){if(o=t.readUInt8(e),t.isError(o))return o;n<<=7,n|=127&o}}else n&=31;return{cls:r,primitive:i,tag:n,tagStr:u.tag[n]}}function h(t,e,n){var r=t.readUInt8(n);if(t.isError(r))return r;if(!e&&128===r)return null;if(0==(128&r))return r;var i=127&r;if(i>4)return t.error("length octect is too long");r=0;for(var o=0;o<i;o++){r<<=8;var a=t.readUInt8(n);if(t.isError(a))return a;r|=a}return r}e.exports=s,s.prototype.decode=function(t,e){return t instanceof o.DecoderBuffer||(t=new o.DecoderBuffer(t,e)),this.tree._decode(t,e)},r(c,o.Node),c.prototype._peekTag=function(t,e,n){if(t.isEmpty())return!1;var r=t.save(),i=f(t,'Failed to peek tag: "'+e+'"');return t.isError(i)?i:(t.restore(r),i.tag===e||i.tagStr===e||i.tagStr+"of"===e||n)},c.prototype._decodeTag=function(t,e,n){var r=f(t,'Failed to decode tag of "'+e+'"');if(t.isError(r))return r;var i=h(t,r.primitive,'Failed to get length of "'+e+'"');if(t.isError(i))return i;if(!n&&r.tag!==e&&r.tagStr!==e&&r.tagStr+"of"!==e)return t.error('Failed to match tag: "'+e+'"');if(r.primitive||null!==i)return t.skip(i,'Failed to match body of: "'+e+'"');var o=t.save(),a=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(a)?a:(i=t.offset-o.offset,t.restore(o),t.skip(i,'Failed to match body of: "'+e+'"'))},c.prototype._skipUntilEnd=function(t,e){for(;;){var n=f(t,e);if(t.isError(n))return n;var r,i=h(t,n.primitive,e);if(t.isError(i))return i;if(r=n.primitive||null!==i?t.skip(i):this._skipUntilEnd(t,e),t.isError(r))return r;if("end"===n.tagStr)break}},c.prototype._decodeList=function(t,e,n,r){for(var i=[];!t.isEmpty();){var o=this._peekTag(t,"end");if(t.isError(o))return o;var a=n.decode(t,"der",r);if(t.isError(a)&&o)break;i.push(a)}return i},c.prototype._decodeStr=function(t,e){if("bitstr"===e){var n=t.readUInt8();return t.isError(n)?n:{unused:n,data:t.raw()}}if("bmpstr"===e){var r=t.raw();if(r.length%2==1)return t.error("Decoding of string type: bmpstr length mismatch");for(var i="",o=0;o<r.length/2;o++)i+=String.fromCharCode(r.readUInt16BE(2*o));return i}if("numstr"===e){var a=t.raw().toString("ascii");return this._isNumstr(a)?a:t.error("Decoding of string type: numstr unsupported characters")}if("octstr"===e)return t.raw();if("objDesc"===e)return t.raw();if("printstr"===e){var u=t.raw().toString("ascii");return this._isPrintstr(u)?u:t.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported")},c.prototype._decodeObjid=function(t,e,n){for(var r,i=[],o=0;!t.isEmpty();){var a=t.readUInt8();o<<=7,o|=127&a,0==(128&a)&&(i.push(o),o=0)}128&a&&i.push(o);var u=i[0]/40|0,s=i[0]%40;if(r=n?i:[u,s].concat(i.slice(1)),e){var c=e[r.join(" ")];void 0===c&&(c=e[r.join(".")]),void 0!==c&&(r=c)}return r},c.prototype._decodeTime=function(t,e){var n=t.raw().toString();if("gentime"===e)var r=0|n.slice(0,4),i=0|n.slice(4,6),o=0|n.slice(6,8),a=0|n.slice(8,10),u=0|n.slice(10,12),s=0|n.slice(12,14);else{if("utctime"!==e)return t.error("Decoding "+e+" time is not supported yet");r=0|n.slice(0,2),i=0|n.slice(2,4),o=0|n.slice(4,6),a=0|n.slice(6,8),u=0|n.slice(8,10),s=0|n.slice(10,12);r=r<70?2e3+r:1900+r}return Date.UTC(r,i-1,o,a,u,s,0)},c.prototype._decodeNull=function(t){return null},c.prototype._decodeBool=function(t){var e=t.readUInt8();return t.isError(e)?e:0!==e},c.prototype._decodeInt=function(t,e){var n=t.raw(),r=new a(n);return e&&(r=e[r.toString(10)]||r),r},c.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getDecoder("der").tree}},{"../../asn1":1,inherits:123}],10:[function(t,e,n){var r=n;r.der=t("./der"),r.pem=t("./pem")},{"./der":9,"./pem":11}],11:[function(t,e,n){var r=t("inherits"),i=t("buffer").Buffer,o=t("./der");function a(t){o.call(this,t),this.enc="pem"}r(a,o),e.exports=a,a.prototype.decode=function(t,e){for(var n=t.toString().split(/[\r\n]+/g),r=e.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,u=-1,s=-1,c=0;c<n.length;c++){var f=n[c].match(a);if(null!==f&&f[2]===r){if(-1!==u){if("END"!==f[1])break;s=c;break}if("BEGIN"!==f[1])break;u=c}}if(-1===u||-1===s)throw new Error("PEM section not found for: "+r);var h=n.slice(u+1,s).join("");h.replace(/[^a-z0-9\+\/=]+/gi,"");var l=new i(h,"base64");return o.prototype.decode.call(this,l,e)}},{"./der":9,buffer:48,inherits:123}],12:[function(t,e,n){var r=t("inherits"),i=t("buffer").Buffer,o=t("../../asn1"),a=o.base,u=o.constants.der;function s(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new c,this.tree._init(t.body)}function c(t){a.Node.call(this,"der",t)}function f(t){return t<10?"0"+t:t}e.exports=s,s.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},r(c,a.Node),c.prototype._encodeComposite=function(t,e,n,r){var o,a=function(t,e,n,r){var i;"seqof"===t?t="seq":"setof"===t&&(t="set");if(u.tagByName.hasOwnProperty(t))i=u.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return r.error("Unknown tag: "+t);i=t}if(i>=31)return r.error("Multi-octet tag encoding unsupported");e||(i|=32);return i|=u.tagClassByName[n||"universal"]<<6}(t,e,n,this.reporter);if(r.length<128)return(o=new i(2))[0]=a,o[1]=r.length,this._createEncoderBuffer([o,r]);for(var s=1,c=r.length;c>=256;c>>=8)s++;(o=new i(2+s))[0]=a,o[1]=128|s;c=1+s;for(var f=r.length;f>0;c--,f>>=8)o[c]=255&f;return this._createEncoderBuffer([o,r])},c.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){for(var n=new i(2*t.length),r=0;r<t.length;r++)n.writeUInt16BE(t.charCodeAt(r),2*r);return this._createEncoderBuffer(n)}return"numstr"===e?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===e?this._isPrintstr(t)?this._createEncoderBuffer(t):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(e)?this._createEncoderBuffer(t):"objDesc"===e?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+e+" unsupported")},c.prototype._encodeObjid=function(t,e,n){if("string"==typeof t){if(!e)return this.reporter.error("string objid given, but no values map found");if(!e.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=e[t].split(/[\s\.]+/g);for(var r=0;r<t.length;r++)t[r]|=0}else if(Array.isArray(t)){t=t.slice();for(r=0;r<t.length;r++)t[r]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!n){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}var o=0;for(r=0;r<t.length;r++){var a=t[r];for(o++;a>=128;a>>=7)o++}var u=new i(o),s=u.length-1;for(r=t.length-1;r>=0;r--){a=t[r];for(u[s--]=127&a;(a>>=7)>0;)u[s--]=128|127&a}return this._createEncoderBuffer(u)},c.prototype._encodeTime=function(t,e){var n,r=new Date(t);return"gentime"===e?n=[f(r.getFullYear()),f(r.getUTCMonth()+1),f(r.getUTCDate()),f(r.getUTCHours()),f(r.getUTCMinutes()),f(r.getUTCSeconds()),"Z"].join(""):"utctime"===e?n=[f(r.getFullYear()%100),f(r.getUTCMonth()+1),f(r.getUTCDate()),f(r.getUTCHours()),f(r.getUTCMinutes()),f(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(n,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!i.isBuffer(t)){var n=t.toArray();!t.sign&&128&n[0]&&n.unshift(0),t=new i(n)}if(i.isBuffer(t)){var r=t.length;0===t.length&&r++;var o=new i(r);return t.copy(o),0===t.length&&(o[0]=0),this._createEncoderBuffer(o)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);r=1;for(var a=t;a>=256;a>>=8)r++;for(a=(o=new Array(r)).length-1;a>=0;a--)o[a]=255&t,t>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},c.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},c.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},c.prototype._skipDefault=function(t,e,n){var r,i=this._baseState;if(null===i.default)return!1;var o=t.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,e,n).join()),o.length!==i.defaultBuffer.length)return!1;for(r=0;r<o.length;r++)if(o[r]!==i.defaultBuffer[r])return!1;return!0}},{"../../asn1":1,buffer:48,inherits:123}],13:[function(t,e,n){var r=n;r.der=t("./der"),r.pem=t("./pem")},{"./der":12,"./pem":14}],14:[function(t,e,n){var r=t("inherits"),i=t("./der");function o(t){i.call(this,t),this.enc="pem"}r(o,i),e.exports=o,o.prototype.encode=function(t,e){for(var n=i.prototype.encode.call(this,t).toString("base64"),r=["-----BEGIN "+e.label+"-----"],o=0;o<n.length;o+=64)r.push(n.slice(o,o+64));return r.push("-----END "+e.label+"-----"),r.join("\n")}},{"./der":12,inherits:123}],15:[function(t,e,n){"use strict";n.byteLength=function(t){return 3*t.length/4-c(t)},n.toByteArray=function(t){var e,n,r,a,u,s=t.length;a=c(t),u=new o(3*s/4-a),n=a>0?s-4:s;var f=0;for(e=0;e<n;e+=4)r=i[t.charCodeAt(e)]<<18|i[t.charCodeAt(e+1)]<<12|i[t.charCodeAt(e+2)]<<6|i[t.charCodeAt(e+3)],u[f++]=r>>16&255,u[f++]=r>>8&255,u[f++]=255&r;2===a?(r=i[t.charCodeAt(e)]<<2|i[t.charCodeAt(e+1)]>>4,u[f++]=255&r):1===a&&(r=i[t.charCodeAt(e)]<<10|i[t.charCodeAt(e+1)]<<4|i[t.charCodeAt(e+2)]>>2,u[f++]=r>>8&255,u[f++]=255&r);return u},n.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o="",a=[],u=0,s=n-i;u<s;u+=16383)a.push(f(t,u,u+16383>s?s:u+16383));1===i?(e=t[n-1],o+=r[e>>2],o+=r[e<<4&63],o+="=="):2===i&&(e=(t[n-2]<<8)+t[n-1],o+=r[e>>10],o+=r[e>>4&63],o+=r[e<<2&63],o+="=");return a.push(o),a.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,s=a.length;u<s;++u)r[u]=a[u],i[a.charCodeAt(u)]=u;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function f(t,e,n){for(var i,o,a=[],u=e;u<n;u+=3)i=(t[u]<<16&16711680)+(t[u+1]<<8&65280)+(255&t[u+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],16:[function(t,e,n){!function(e,n){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"==typeof e?e.exports=o:n.BN=o,o.BN=o,o.wordSize=26;try{a=t("buffer").Buffer}catch(t){}function u(t,e,n){for(var r=0,i=Math.min(t.length,n),o=e;o<i;o++){var a=t.charCodeAt(o)-48;r<<=4,r|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function s(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a<o;a++){var u=t.charCodeAt(a)-48;i*=r,i+=u>=49?u-49+10:u>=17?u-17+10:u}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,u=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<u&67108863,this.words[o+1]=a>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<u&67108863,this.words[o+1]=a>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=t.length-6,r=0;n>=e;n-=6)i=u(t,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==e&&(i=u(t,e,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,u=Math.min(o,o-a)+n,c=0,f=n;f<u;f+=r)c=s(t,f,f+r,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var h=1;for(c=s(t,f,t.length,e),f=0;f<a;f++)h*=e;this.imuln(h),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)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 c=["","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"],f=[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],h=[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];function l(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,u=67108863&a,s=a/67108864|0;n.words[0]=u;for(var c=1;c<r;c++){for(var f=s>>>26,h=67108863&s,l=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=l;d++){var p=c-d|0;f+=(a=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&a}n.words[c]=0|h,s=0|f}return 0!==s?n.words[c]=0|s:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(t=t||10,e=0|e||1,16===t||"hex"===t){n="";for(var i=0,o=0,a=0;a<this.length;a++){var u=this.words[a],s=(16777215&(u<<i|o)).toString(16);n=0!==(o=u>>>24-i&16777215)||a!==this.length-1?c[6-s.length]+s+n:s+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var l=f[t],d=h[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(d).toString(t);n=(p=p.idivn(d)).isZero()?b+n:c[l-b.length]+b+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,u,s="le"===e,c=new t(o),f=this.clone();if(s){for(u=0;!f.isZero();u++)a=f.andln(255),f.iushrn(8),c[u]=a;for(;u<o;u++)c[u]=0}else{for(u=0;u<o-i;u++)c[u]=0;for(u=0;!f.isZero();u++)a=f.andln(255),f.iushrn(8),c[o-u-1]=a}return c},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).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(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a<r.length;a++)o=(e=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)o=(e=(0|n.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var d=function(t,e,n){var r,i,o,a=t.words,u=e.words,s=n.words,c=0,f=0|a[0],h=8191&f,l=f>>>13,d=0|a[1],p=8191&d,b=d>>>13,g=0|a[2],y=8191&g,m=g>>>13,v=0|a[3],_=8191&v,w=v>>>13,x=0|a[4],A=8191&x,E=x>>>13,M=0|a[5],C=8191&M,S=M>>>13,B=0|a[6],k=8191&B,I=B>>>13,F=0|a[7],D=8191&F,T=F>>>13,N=0|a[8],j=8191&N,R=N>>>13,O=0|a[9],L=8191&O,U=O>>>13,P=0|u[0],H=8191&P,z=P>>>13,V=0|u[1],X=8191&V,q=V>>>13,W=0|u[2],Y=8191&W,Z=W>>>13,G=0|u[3],K=8191&G,J=G>>>13,Q=0|u[4],$=8191&Q,tt=Q>>>13,et=0|u[5],nt=8191&et,rt=et>>>13,it=0|u[6],ot=8191&it,at=it>>>13,ut=0|u[7],st=8191&ut,ct=ut>>>13,ft=0|u[8],ht=8191&ft,lt=ft>>>13,dt=0|u[9],pt=8191&dt,bt=dt>>>13;n.negative=t.negative^e.negative,n.length=19;var gt=(c+(r=Math.imul(h,H))|0)+((8191&(i=(i=Math.imul(h,z))+Math.imul(l,H)|0))<<13)|0;c=((o=Math.imul(l,z))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(p,H),i=(i=Math.imul(p,z))+Math.imul(b,H)|0,o=Math.imul(b,z);var yt=(c+(r=r+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(l,X)|0))<<13)|0;c=((o=o+Math.imul(l,q)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(y,H),i=(i=Math.imul(y,z))+Math.imul(m,H)|0,o=Math.imul(m,z),r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,q)|0;var mt=(c+(r=r+Math.imul(h,Y)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(l,Y)|0))<<13)|0;c=((o=o+Math.imul(l,Z)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,r=Math.imul(_,H),i=(i=Math.imul(_,z))+Math.imul(w,H)|0,o=Math.imul(w,z),r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,q)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,q)|0,r=r+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,Z)|0;var vt=(c+(r=r+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(l,K)|0))<<13)|0;c=((o=o+Math.imul(l,J)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(A,H),i=(i=Math.imul(A,z))+Math.imul(E,H)|0,o=Math.imul(E,z),r=r+Math.imul(_,X)|0,i=(i=i+Math.imul(_,q)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,q)|0,r=r+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,Z)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,J)|0;var _t=(c+(r=r+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(l,$)|0))<<13)|0;c=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(C,H),i=(i=Math.imul(C,z))+Math.imul(S,H)|0,o=Math.imul(S,z),r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,q)|0)+Math.imul(E,X)|0,o=o+Math.imul(E,q)|0,r=r+Math.imul(_,Y)|0,i=(i=i+Math.imul(_,Z)|0)+Math.imul(w,Y)|0,o=o+Math.imul(w,Z)|0,r=r+Math.imul(y,K)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,J)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,tt)|0;var wt=(c+(r=r+Math.imul(h,nt)|0)|0)+((8191&(i=(i=i+Math.imul(h,rt)|0)+Math.imul(l,nt)|0))<<13)|0;c=((o=o+Math.imul(l,rt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(k,H),i=(i=Math.imul(k,z))+Math.imul(I,H)|0,o=Math.imul(I,z),r=r+Math.imul(C,X)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,Z)|0,r=r+Math.imul(_,K)|0,i=(i=i+Math.imul(_,J)|0)+Math.imul(w,K)|0,o=o+Math.imul(w,J)|0,r=r+Math.imul(y,$)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0;var xt=(c+(r=r+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(l,ot)|0))<<13)|0;c=((o=o+Math.imul(l,at)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(D,H),i=(i=Math.imul(D,z))+Math.imul(T,H)|0,o=Math.imul(T,z),r=r+Math.imul(k,X)|0,i=(i=i+Math.imul(k,q)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,q)|0,r=r+Math.imul(C,Y)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(S,Y)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(A,K)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,J)|0,r=r+Math.imul(_,$)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(w,$)|0,o=o+Math.imul(w,tt)|0,r=r+Math.imul(y,nt)|0,i=(i=i+Math.imul(y,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0;var At=(c+(r=r+Math.imul(h,st)|0)|0)+((8191&(i=(i=i+Math.imul(h,ct)|0)+Math.imul(l,st)|0))<<13)|0;c=((o=o+Math.imul(l,ct)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(j,H),i=(i=Math.imul(j,z))+Math.imul(R,H)|0,o=Math.imul(R,z),r=r+Math.imul(D,X)|0,i=(i=i+Math.imul(D,q)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,q)|0,r=r+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,Z)|0,r=r+Math.imul(C,K)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,J)|0,r=r+Math.imul(A,$)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(E,$)|0,o=o+Math.imul(E,tt)|0,r=r+Math.imul(_,nt)|0,i=(i=i+Math.imul(_,rt)|0)+Math.imul(w,nt)|0,o=o+Math.imul(w,rt)|0,r=r+Math.imul(y,ot)|0,i=(i=i+Math.imul(y,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0,r=r+Math.imul(p,st)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(b,st)|0,o=o+Math.imul(b,ct)|0;var Et=(c+(r=r+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(l,ht)|0))<<13)|0;c=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(L,H),i=(i=Math.imul(L,z))+Math.imul(U,H)|0,o=Math.imul(U,z),r=r+Math.imul(j,X)|0,i=(i=i+Math.imul(j,q)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,q)|0,r=r+Math.imul(D,Y)|0,i=(i=i+Math.imul(D,Z)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,Z)|0,r=r+Math.imul(k,K)|0,i=(i=i+Math.imul(k,J)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,J)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(A,nt)|0,i=(i=i+Math.imul(A,rt)|0)+Math.imul(E,nt)|0,o=o+Math.imul(E,rt)|0,r=r+Math.imul(_,ot)|0,i=(i=i+Math.imul(_,at)|0)+Math.imul(w,ot)|0,o=o+Math.imul(w,at)|0,r=r+Math.imul(y,st)|0,i=(i=i+Math.imul(y,ct)|0)+Math.imul(m,st)|0,o=o+Math.imul(m,ct)|0,r=r+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(b,ht)|0,o=o+Math.imul(b,lt)|0;var Mt=(c+(r=r+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,bt)|0)+Math.imul(l,pt)|0))<<13)|0;c=((o=o+Math.imul(l,bt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(L,X),i=(i=Math.imul(L,q))+Math.imul(U,X)|0,o=Math.imul(U,q),r=r+Math.imul(j,Y)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(R,Y)|0,o=o+Math.imul(R,Z)|0,r=r+Math.imul(D,K)|0,i=(i=i+Math.imul(D,J)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,J)|0,r=r+Math.imul(k,$)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,tt)|0,r=r+Math.imul(C,nt)|0,i=(i=i+Math.imul(C,rt)|0)+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(A,ot)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,r=r+Math.imul(_,st)|0,i=(i=i+Math.imul(_,ct)|0)+Math.imul(w,st)|0,o=o+Math.imul(w,ct)|0,r=r+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(m,ht)|0,o=o+Math.imul(m,lt)|0;var Ct=(c+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,bt)|0)+Math.imul(b,pt)|0))<<13)|0;c=((o=o+Math.imul(b,bt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(L,Y),i=(i=Math.imul(L,Z))+Math.imul(U,Y)|0,o=Math.imul(U,Z),r=r+Math.imul(j,K)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,J)|0,r=r+Math.imul(D,$)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,tt)|0,r=r+Math.imul(k,nt)|0,i=(i=i+Math.imul(k,rt)|0)+Math.imul(I,nt)|0,o=o+Math.imul(I,rt)|0,r=r+Math.imul(C,ot)|0,i=(i=i+Math.imul(C,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,r=r+Math.imul(A,st)|0,i=(i=i+Math.imul(A,ct)|0)+Math.imul(E,st)|0,o=o+Math.imul(E,ct)|0,r=r+Math.imul(_,ht)|0,i=(i=i+Math.imul(_,lt)|0)+Math.imul(w,ht)|0,o=o+Math.imul(w,lt)|0;var St=(c+(r=r+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,bt)|0)+Math.imul(m,pt)|0))<<13)|0;c=((o=o+Math.imul(m,bt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(L,K),i=(i=Math.imul(L,J))+Math.imul(U,K)|0,o=Math.imul(U,J),r=r+Math.imul(j,$)|0,i=(i=i+Math.imul(j,tt)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(D,nt)|0,i=(i=i+Math.imul(D,rt)|0)+Math.imul(T,nt)|0,o=o+Math.imul(T,rt)|0,r=r+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,r=r+Math.imul(C,st)|0,i=(i=i+Math.imul(C,ct)|0)+Math.imul(S,st)|0,o=o+Math.imul(S,ct)|0,r=r+Math.imul(A,ht)|0,i=(i=i+Math.imul(A,lt)|0)+Math.imul(E,ht)|0,o=o+Math.imul(E,lt)|0;var Bt=(c+(r=r+Math.imul(_,pt)|0)|0)+((8191&(i=(i=i+Math.imul(_,bt)|0)+Math.imul(w,pt)|0))<<13)|0;c=((o=o+Math.imul(w,bt)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,r=Math.imul(L,$),i=(i=Math.imul(L,tt))+Math.imul(U,$)|0,o=Math.imul(U,tt),r=r+Math.imul(j,nt)|0,i=(i=i+Math.imul(j,rt)|0)+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(D,ot)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,at)|0,r=r+Math.imul(k,st)|0,i=(i=i+Math.imul(k,ct)|0)+Math.imul(I,st)|0,o=o+Math.imul(I,ct)|0,r=r+Math.imul(C,ht)|0,i=(i=i+Math.imul(C,lt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,lt)|0;var kt=(c+(r=r+Math.imul(A,pt)|0)|0)+((8191&(i=(i=i+Math.imul(A,bt)|0)+Math.imul(E,pt)|0))<<13)|0;c=((o=o+Math.imul(E,bt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(L,nt),i=(i=Math.imul(L,rt))+Math.imul(U,nt)|0,o=Math.imul(U,rt),r=r+Math.imul(j,ot)|0,i=(i=i+Math.imul(j,at)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,r=r+Math.imul(D,st)|0,i=(i=i+Math.imul(D,ct)|0)+Math.imul(T,st)|0,o=o+Math.imul(T,ct)|0,r=r+Math.imul(k,ht)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(I,ht)|0,o=o+Math.imul(I,lt)|0;var It=(c+(r=r+Math.imul(C,pt)|0)|0)+((8191&(i=(i=i+Math.imul(C,bt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,bt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(L,ot),i=(i=Math.imul(L,at))+Math.imul(U,ot)|0,o=Math.imul(U,at),r=r+Math.imul(j,st)|0,i=(i=i+Math.imul(j,ct)|0)+Math.imul(R,st)|0,o=o+Math.imul(R,ct)|0,r=r+Math.imul(D,ht)|0,i=(i=i+Math.imul(D,lt)|0)+Math.imul(T,ht)|0,o=o+Math.imul(T,lt)|0;var Ft=(c+(r=r+Math.imul(k,pt)|0)|0)+((8191&(i=(i=i+Math.imul(k,bt)|0)+Math.imul(I,pt)|0))<<13)|0;c=((o=o+Math.imul(I,bt)|0)+(i>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,r=Math.imul(L,st),i=(i=Math.imul(L,ct))+Math.imul(U,st)|0,o=Math.imul(U,ct),r=r+Math.imul(j,ht)|0,i=(i=i+Math.imul(j,lt)|0)+Math.imul(R,ht)|0,o=o+Math.imul(R,lt)|0;var Dt=(c+(r=r+Math.imul(D,pt)|0)|0)+((8191&(i=(i=i+Math.imul(D,bt)|0)+Math.imul(T,pt)|0))<<13)|0;c=((o=o+Math.imul(T,bt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(L,ht),i=(i=Math.imul(L,lt))+Math.imul(U,ht)|0,o=Math.imul(U,lt);var Tt=(c+(r=r+Math.imul(j,pt)|0)|0)+((8191&(i=(i=i+Math.imul(j,bt)|0)+Math.imul(R,pt)|0))<<13)|0;c=((o=o+Math.imul(R,bt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Nt=(c+(r=Math.imul(L,pt))|0)+((8191&(i=(i=Math.imul(L,bt))+Math.imul(U,pt)|0))<<13)|0;return c=((o=Math.imul(U,bt))+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,s[0]=gt,s[1]=yt,s[2]=mt,s[3]=vt,s[4]=_t,s[5]=wt,s[6]=xt,s[7]=At,s[8]=Et,s[9]=Mt,s[10]=Ct,s[11]=St,s[12]=Bt,s[13]=kt,s[14]=It,s[15]=Ft,s[16]=Dt,s[17]=Tt,s[18]=Nt,0!==c&&(s[19]=c,n.length++),n};function p(t,e,n){return(new b).mulp(t,e,n)}function b(t,e){this.x=t,this.y=e}Math.imul||(d=l),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?d(this,t,e):n<63?l(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var u=67108863&r,s=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=s;c++){var f=o-c,h=(0|t.words[f])*(0|e.words[c]),l=67108863&h;u=67108863&(l=l+u|0),i+=(a=(a=a+(h/67108864|0)|0)+(l>>>26)|0)>>>26,a&=67108863}n.words[o]=u,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,t,e):p(this,t,e)},b.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},b.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},b.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a<o;a++)r[a]=e[t[a]],i[a]=n[t[a]]},b.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var a=1;a<i;a<<=1)for(var u=a<<1,s=Math.cos(2*Math.PI/u),c=Math.sin(2*Math.PI/u),f=0;f<i;f+=u)for(var h=s,l=c,d=0;d<a;d++){var p=n[f+d],b=r[f+d],g=n[f+d+a],y=r[f+d+a],m=h*g-l*y;y=h*y+l*g,g=m,n[f+d]=p+g,r[f+d]=b+y,n[f+d+a]=p-g,r[f+d+a]=b-y,d!==u&&(m=s*h-c*l,l=s*l+c*h,h=m)}},b.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},b.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},b.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},b.prototype.convert13b=function(t,e,n,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)n[a]=0;r(0===o),r(0==(-8192&o))},b.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},b.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),u=new Array(r),s=new Array(r),c=new Array(r),f=new Array(r),h=new Array(r),l=n.words;l.length=r,this.convert13b(t.words,t.length,a,r),this.convert13b(e.words,e.length,c,r),this.transform(a,o,u,s,r,i),this.transform(c,o,f,h,r,i);for(var d=0;d<r;d++){var p=u[d]*f[d]-s[d]*h[d];s[d]=u[d]*h[d]+s[d]*f[d],u[d]=p}return this.conjugate(u,s,r),this.transform(u,s,l,o,r,i),this.conjugate(l,o,r),this.normalize13b(l,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),p(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=(t.words[r]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var u=this.words[e]&o,s=(0|this.words[e])-u<<n;this.words[e]=s|a,a=u>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),u=67108863^67108863>>>o<<o,s=n;if(i-=a,i=Math.max(0,i),s){for(var c=0;c<a;c++)s.words[c]=this.words[c];s.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var f=0;for(c=this.length-1;c>=0&&(0!==f||c>=i);c--){var h=0|this.words[c];this.words[c]=f<<26-o|h>>>o,f=h&u}return s&&0!==f&&(s.words[s.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,a=t.length+n;this._expand(a);var u=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+u;var s=(0|t.words[i])*e;u=((o-=67108863&s)>>26)-(s/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)u=(o=(0|this.words[i+n])+u)>>26,this.words[i+n]=67108863&o;if(0===u)return this.strip();for(r(-1===u),u=0,i=0;i<this.length;i++)u=(o=-(0|this.words[i])+u)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var u,s=r.length-i.length;if("mod"!==e){(u=new o(null)).length=s+1,u.words=new Array(u.length);for(var c=0;c<u.length;c++)u.words[c]=0}var f=r.clone()._ishlnsubmul(i,1,s);0===f.negative&&(r=f,u&&(u.words[s]=1));for(var h=s-1;h>=0;h--){var l=67108864*(0|r.words[i.length+h])+(0|r.words[i.length+h-1]);for(l=Math.min(l/a|0,67108863),r._ishlnsubmul(i,l,h);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(i,1,h),r.isZero()||(r.negative^=1);u&&(u.words[h]=l)}return u&&u.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:u||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(u=this.neg().divmod(t,e),"mod"!==e&&(i=u.div.neg()),"div"!==e&&(a=u.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(u=this.divmod(t.neg(),e),"mod"!==e&&(i=u.div.neg()),{div:i,mod:u.mod}):0!=(this.negative&t.negative)?(u=this.neg().divmod(t.neg(),e),"div"!==e&&(a=u.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:u.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,u},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),u=new o(0),s=new o(1),c=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++c;for(var f=n.clone(),h=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(f),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(n.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(u.isOdd()||s.isOdd())&&(u.iadd(f),s.isub(h)),u.iushrn(1),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(u),a.isub(s)):(n.isub(e),u.isub(i),s.isub(a))}return{a:u,b:s,gcd:n.iushln(c)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),u=new o(0),s=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,f=1;0==(e.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);for(var h=0,l=1;0==(n.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(n.iushrn(h);h-- >0;)u.isOdd()&&u.iadd(s),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(u)):(n.isub(e),u.isub(a))}return(i=0===e.cmpn(1)?a:u).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var u=0|this.words[a];o=(u+=o)>>>26,u&=67108863,this.words[a]=u}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(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new x(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function y(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function m(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function A(t){x.call(this,t),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)}y.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip(),n},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},i(m,y),m.prototype.split=function(t,e){for(var n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,r=10;r<t.length;r++){var o=0|t.words[r];t.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[r-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},m.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(v,y),i(_,y),i(w,y),w.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new m;else if("p224"===t)e=new v;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return g[t]=e,e},x.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},x.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var u=new o(1).toRed(this),s=u.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,c).cmp(s);)f.redIAdd(s);for(var h=this.pow(f,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(u);){for(var b=d,g=0;0!==b.cmp(u);g++)b=b.redSqr();r(g<p);var y=this.pow(h,new o(1).iushln(p-g-1));l=l.redMul(y),h=y.redSqr(),d=d.redMul(h),p=g}return l},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var i=n[0],a=0,u=0,s=e.bitLength()%26;for(0===s&&(s=26),r=e.length-1;r>=0;r--){for(var c=e.words[r],f=s-1;f>=0;f--){var h=c>>f&1;i!==n[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++u||0===r&&0===f)&&(i=this.mul(i,n[a]),u=0,a=0)):u=0}s=26}return i},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new A(t)},i(A,x),A.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},A.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},A.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},A.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},A.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)},{buffer:18}],17:[function(t,e,n){var r;function i(t){this.rand=t}if(e.exports=function(t){return r||(r=new i(null)),r.generate(t)},e.exports.Rand=i,i.prototype.generate=function(t){return this._rand(t)},i.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),n=0;n<e.length;n++)e[n]=this.rand.getByte();return e},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=t("crypto");if("function"!=typeof o.randomBytes)throw new Error("Not supported");i.prototype._rand=function(t){return o.randomBytes(t)}}catch(t){}},{crypto:18}],18:[function(t,e,n){},{}],19:[function(t,e,n){var r=t("safe-buffer").Buffer;function i(t){r.isBuffer(t)||(t=r.from(t));for(var e=t.length/4|0,n=new Array(e),i=0;i<e;i++)n[i]=t.readUInt32BE(4*i);return n}function o(t){for(;0<t.length;t++)t[0]=0}function a(t,e,n,r,i){for(var o,a,u,s,c=n[0],f=n[1],h=n[2],l=n[3],d=t[0]^e[0],p=t[1]^e[1],b=t[2]^e[2],g=t[3]^e[3],y=4,m=1;m<i;m++)o=c[d>>>24]^f[p>>>16&255]^h[b>>>8&255]^l[255&g]^e[y++],a=c[p>>>24]^f[b>>>16&255]^h[g>>>8&255]^l[255&d]^e[y++],u=c[b>>>24]^f[g>>>16&255]^h[d>>>8&255]^l[255&p]^e[y++],s=c[g>>>24]^f[d>>>16&255]^h[p>>>8&255]^l[255&b]^e[y++],d=o,p=a,b=u,g=s;return o=(r[d>>>24]<<24|r[p>>>16&255]<<16|r[b>>>8&255]<<8|r[255&g])^e[y++],a=(r[p>>>24]<<24|r[b>>>16&255]<<16|r[g>>>8&255]<<8|r[255&d])^e[y++],u=(r[b>>>24]<<24|r[g>>>16&255]<<16|r[d>>>8&255]<<8|r[255&p])^e[y++],s=(r[g>>>24]<<24|r[d>>>16&255]<<16|r[p>>>8&255]<<8|r[255&b])^e[y++],[o>>>=0,a>>>=0,u>>>=0,s>>>=0]}var u=[0,1,2,4,8,16,32,64,128,27,54],s=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var n=[],r=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,u=0,s=0;s<256;++s){var c=u^u<<1^u<<2^u<<3^u<<4;c=c>>>8^255&c^99,n[a]=c,r[c]=a;var f=t[a],h=t[f],l=t[h],d=257*t[c]^16843008*c;i[0][a]=d<<24|d>>>8,i[1][a]=d<<16|d>>>16,i[2][a]=d<<8|d>>>24,i[3][a]=d,d=16843009*l^65537*h^257*f^16843008*a,o[0][c]=d<<24|d>>>8,o[1][c]=d<<16|d>>>16,o[2][c]=d<<8|d>>>24,o[3][c]=d,0===a?a=u=1:(a=f^t[t[t[l^f]]],u^=t[t[u]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:o}}();function c(t){this._key=i(t),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var t=this._key,e=t.length,n=e+6,r=4*(n+1),i=[],o=0;o<e;o++)i[o]=t[o];for(o=e;o<r;o++){var a=i[o-1];o%e==0?(a=a<<8|a>>>24,a=s.SBOX[a>>>24]<<24|s.SBOX[a>>>16&255]<<16|s.SBOX[a>>>8&255]<<8|s.SBOX[255&a],a^=u[o/e|0]<<24):e>6&&o%e==4&&(a=s.SBOX[a>>>24]<<24|s.SBOX[a>>>16&255]<<16|s.SBOX[a>>>8&255]<<8|s.SBOX[255&a]),i[o]=i[o-e]^a}for(var c=[],f=0;f<r;f++){var h=r-f,l=i[h-(f%4?0:4)];c[f]=f<4||h<=4?l:s.INV_SUB_MIX[0][s.SBOX[l>>>24]]^s.INV_SUB_MIX[1][s.SBOX[l>>>16&255]]^s.INV_SUB_MIX[2][s.SBOX[l>>>8&255]]^s.INV_SUB_MIX[3][s.SBOX[255&l]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(t){return a(t=i(t),this._keySchedule,s.SUB_MIX,s.SBOX,this._nRounds)},c.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),n=r.allocUnsafe(16);return n.writeUInt32BE(e[0],0),n.writeUInt32BE(e[1],4),n.writeUInt32BE(e[2],8),n.writeUInt32BE(e[3],12),n},c.prototype.decryptBlock=function(t){var e=(t=i(t))[1];t[1]=t[3],t[3]=e;var n=a(t,this._invKeySchedule,s.INV_SUB_MIX,s.INV_SBOX,this._nRounds),o=r.allocUnsafe(16);return o.writeUInt32BE(n[0],0),o.writeUInt32BE(n[3],4),o.writeUInt32BE(n[2],8),o.writeUInt32BE(n[1],12),o},c.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=c},{"safe-buffer":175}],20:[function(t,e,n){var r=t("./aes"),i=t("safe-buffer").Buffer,o=t("cipher-base"),a=t("inherits"),u=t("./ghash"),s=t("buffer-xor"),c=t("./incr32");function f(t,e,n,a){o.call(this);var s=i.alloc(4,0);this._cipher=new r.AES(e);var f=this._cipher.encryptBlock(s);this._ghash=new u(f),n=function(t,e,n){if(12===e.length)return t._finID=i.concat([e,i.from([0,0,0,1])]),i.concat([e,i.from([0,0,0,2])]);var r=new u(n),o=e.length,a=o%16;r.update(e),a&&(a=16-a,r.update(i.alloc(a,0))),r.update(i.alloc(8,0));var s=8*o,f=i.alloc(8);f.writeUIntBE(s,0,8),r.update(f),t._finID=r.state;var h=i.from(t._finID);return c(h),h}(this,n,f),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}a(f,o),f.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=i.alloc(e,0),this._ghash.update(e))}this._called=!0;var n=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(n),this._len+=t.length,n},f.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=s(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(t,e){var n=0;t.length!==e.length&&n++;for(var r=Math.min(t.length,e.length),i=0;i<r;++i)n+=t[i]^e[i];return n}(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()},f.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},f.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},f.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length},e.exports=f},{"./aes":19,"./ghash":24,"./incr32":25,"buffer-xor":47,"cipher-base":51,inherits:123,"safe-buffer":175}],21:[function(t,e,n){var r=t("./encrypter"),i=t("./decrypter"),o=t("./modes/list.json");n.createCipher=n.Cipher=r.createCipher,n.createCipheriv=n.Cipheriv=r.createCipheriv,n.createDecipher=n.Decipher=i.createDecipher,n.createDecipheriv=n.Decipheriv=i.createDecipheriv,n.listCiphers=n.getCiphers=function(){return Object.keys(o)}},{"./decrypter":22,"./encrypter":23,"./modes/list.json":33}],22:[function(t,e,n){var r=t("./authCipher"),i=t("safe-buffer").Buffer,o=t("./modes"),a=t("./streamCipher"),u=t("cipher-base"),s=t("./aes"),c=t("evp_bytestokey");function f(t,e,n){u.call(this),this._cache=new h,this._last=void 0,this._cipher=new s.AES(e),this._prev=i.from(n),this._mode=t,this._autopadding=!0}function h(){this.cache=i.allocUnsafe(0)}function l(t,e,n){var u=o[t.toLowerCase()];if(!u)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=i.from(n)),"GCM"!==u.mode&&n.length!==u.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof e&&(e=i.from(e)),e.length!==u.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===u.type?new a(u.module,e,n,!0):"auth"===u.type?new r(u.module,e,n,!0):new f(u.module,e,n)}t("inherits")(f,u),f.prototype._update=function(t){var e,n;this._cache.add(t);for(var r=[];e=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,e),r.push(n);return i.concat(r)},f.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15],n=-1;for(;++n<e;)if(t[n+(16-e)]!==e)throw new Error("unable to decrypt data");if(16===e)return;return t.slice(0,16-e)}(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},h.prototype.add=function(t){this.cache=i.concat([this.cache,t])},h.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},h.prototype.flush=function(){if(this.cache.length)return this.cache},n.createDecipher=function(t,e){var n=o[t.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=c(e,!1,n.key,n.iv);return l(t,r.key,r.iv)},n.createDecipheriv=l},{"./aes":19,"./authCipher":20,"./modes":32,"./streamCipher":35,"cipher-base":51,evp_bytestokey:105,inherits:123,"safe-buffer":175}],23:[function(t,e,n){var r=t("./modes"),i=t("./authCipher"),o=t("safe-buffer").Buffer,a=t("./streamCipher"),u=t("cipher-base"),s=t("./aes"),c=t("evp_bytestokey");function f(t,e,n){u.call(this),this._cache=new l,this._cipher=new s.AES(e),this._prev=o.from(n),this._mode=t,this._autopadding=!0}t("inherits")(f,u),f.prototype._update=function(t){var e,n;this._cache.add(t);for(var r=[];e=this._cache.get();)n=this._mode.encrypt(this,e),r.push(n);return o.concat(r)};var h=o.alloc(16,16);function l(){this.cache=o.allocUnsafe(0)}function d(t,e,n){var u=r[t.toLowerCase()];if(!u)throw new TypeError("invalid suite type");if("string"==typeof e&&(e=o.from(e)),e.length!==u.key/8)throw new TypeError("invalid key length "+e.length);if("string"==typeof n&&(n=o.from(n)),"GCM"!==u.mode&&n.length!==u.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===u.type?new a(u.module,e,n):"auth"===u.type?new i(u.module,e,n):new f(u.module,e,n)}f.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(h))throw this._cipher.scrub(),new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},l.prototype.add=function(t){this.cache=o.concat([this.cache,t])},l.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},l.prototype.flush=function(){for(var t=16-this.cache.length,e=o.allocUnsafe(t),n=-1;++n<t;)e.writeUInt8(t,n);return o.concat([this.cache,e])},n.createCipheriv=d,n.createCipher=function(t,e){var n=r[t.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var i=c(e,!1,n.key,n.iv);return d(t,i.key,i.iv)}},{"./aes":19,"./authCipher":20,"./modes":32,"./streamCipher":35,"cipher-base":51,evp_bytestokey:105,inherits:123,"safe-buffer":175}],24:[function(t,e,n){var r=t("safe-buffer").Buffer,i=r.alloc(16,0);function o(t){var e=r.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function a(t){this.h=t,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}a.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()},a.prototype._multiply=function(){for(var t,e,n,r=[(t=this.h).readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)],i=[0,0,0,0],a=-1;++a<128;){for(0!=(this.state[~~(a/8)]&1<<7-a%8)&&(i[0]^=r[0],i[1]^=r[1],i[2]^=r[2],i[3]^=r[3]),n=0!=(1&r[3]),e=3;e>0;e--)r[e]=r[e]>>>1|(1&r[e-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=o(i)},a.prototype.update=function(t){var e;for(this.cache=r.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},a.prototype.final=function(t,e){return this.cache.length&&this.ghash(r.concat([this.cache,i],16)),this.ghash(o([0,t,0,e])),this.state},e.exports=a},{"safe-buffer":175}],25:[function(t,e,n){e.exports=function(t){for(var e,n=t.length;n--;){if(255!==(e=t.readUInt8(n))){e++,t.writeUInt8(e,n);break}t.writeUInt8(0,n)}}},{}],26:[function(t,e,n){var r=t("buffer-xor");n.encrypt=function(t,e){var n=r(e,t._prev);return t._prev=t._cipher.encryptBlock(n),t._prev},n.decrypt=function(t,e){var n=t._prev;t._prev=e;var i=t._cipher.decryptBlock(e);return r(i,n)}},{"buffer-xor":47}],27:[function(t,e,n){var r=t("safe-buffer").Buffer,i=t("buffer-xor");function o(t,e,n){var o=e.length,a=i(e,t._cache);return t._cache=t._cache.slice(o),t._prev=r.concat([t._prev,n?e:a]),a}n.encrypt=function(t,e,n){for(var i,a=r.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=r.allocUnsafe(0)),!(t._cache.length<=e.length)){a=r.concat([a,o(t,e,n)]);break}i=t._cache.length,a=r.concat([a,o(t,e.slice(0,i),n)]),e=e.slice(i)}return a}},{"buffer-xor":47,"safe-buffer":175}],28:[function(t,e,n){var r=t("safe-buffer").Buffer;function i(t,e,n){for(var r,i,a,u=-1,s=0;++u<8;)r=t._cipher.encryptBlock(t._prev),i=e&1<<7-u?128:0,s+=(128&(a=r[0]^i))>>u%8,t._prev=o(t._prev,n?i:a);return s}function o(t,e){var n=t.length,i=-1,o=r.allocUnsafe(t.length);for(t=r.concat([t,r.from([e])]);++i<n;)o[i]=t[i]<<1|t[i+1]>>7;return o}n.encrypt=function(t,e,n){for(var o=e.length,a=r.allocUnsafe(o),u=-1;++u<o;)a[u]=i(t,e[u],n);return a}},{"safe-buffer":175}],29:[function(t,e,n){var r=t("safe-buffer").Buffer;function i(t,e,n){var i=t._cipher.encryptBlock(t._prev)[0]^e;return t._prev=r.concat([t._prev.slice(1),r.from([n?e:i])]),i}n.encrypt=function(t,e,n){for(var o=e.length,a=r.allocUnsafe(o),u=-1;++u<o;)a[u]=i(t,e[u],n);return a}},{"safe-buffer":175}],30:[function(t,e,n){var r=t("buffer-xor"),i=t("safe-buffer").Buffer,o=t("../incr32");function a(t){var e=t._cipher.encryptBlockRaw(t._prev);return o(t._prev),e}n.encrypt=function(t,e){var n=Math.ceil(e.length/16),o=t._cache.length;t._cache=i.concat([t._cache,i.allocUnsafe(16*n)]);for(var u=0;u<n;u++){var s=a(t),c=o+16*u;t._cache.writeUInt32BE(s[0],c+0),t._cache.writeUInt32BE(s[1],c+4),t._cache.writeUInt32BE(s[2],c+8),t._cache.writeUInt32BE(s[3],c+12)}var f=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),r(e,f)}},{"../incr32":25,"buffer-xor":47,"safe-buffer":175}],31:[function(t,e,n){n.encrypt=function(t,e){return t._cipher.encryptBlock(e)},n.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},{}],32:[function(t,e,n){var r={ECB:t("./ecb"),CBC:t("./cbc"),CFB:t("./cfb"),CFB8:t("./cfb8"),CFB1:t("./cfb1"),OFB:t("./ofb"),CTR:t("./ctr"),GCM:t("./ctr")},i=t("./list.json");for(var o in i)i[o].module=r[i[o].mode];e.exports=i},{"./cbc":26,"./cfb":27,"./cfb1":28,"./cfb8":29,"./ctr":30,"./ecb":31,"./list.json":33,"./ofb":34}],33:[function(t,e,n){e.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"}}},{}],34:[function(t,e,n){(function(e){var r=t("buffer-xor");function i(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}n.encrypt=function(t,n){for(;t._cache.length<n.length;)t._cache=e.concat([t._cache,i(t)]);var o=t._cache.slice(0,n.length);return t._cache=t._cache.slice(n.length),r(n,o)}}).call(this,t("buffer").Buffer)},{buffer:48,"buffer-xor":47}],35:[function(t,e,n){var r=t("./aes"),i=t("safe-buffer").Buffer,o=t("cipher-base");function a(t,e,n,a){o.call(this),this._cipher=new r.AES(e),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._mode=t}t("inherits")(a,o),a.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},e.exports=a},{"./aes":19,"cipher-base":51,inherits:123,"safe-buffer":175}],36:[function(t,e,n){var r=t("evp_bytestokey"),i=t("browserify-aes/browser"),o=t("browserify-des"),a=t("browserify-des/modes"),u=t("browserify-aes/modes");function s(t,e,n){if(t=t.toLowerCase(),u[t])return i.createCipheriv(t,e,n);if(a[t])return new o({key:e,iv:n,mode:t});throw new TypeError("invalid suite type")}function c(t,e,n){if(t=t.toLowerCase(),u[t])return i.createDecipheriv(t,e,n);if(a[t])return new o({key:e,iv:n,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}n.createCipher=n.Cipher=function(t,e){var n,i;if(t=t.toLowerCase(),u[t])n=u[t].key,i=u[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");n=8*a[t].key,i=a[t].iv}var o=r(e,!1,n,i);return s(t,o.key,o.iv)},n.createCipheriv=n.Cipheriv=s,n.createDecipher=n.Decipher=function(t,e){var n,i;if(t=t.toLowerCase(),u[t])n=u[t].key,i=u[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");n=8*a[t].key,i=a[t].iv}var o=r(e,!1,n,i);return c(t,o.key,o.iv)},n.createDecipheriv=n.Decipheriv=c,n.listCiphers=n.getCiphers=function(){return Object.keys(a).concat(i.getCiphers())}},{"browserify-aes/browser":21,"browserify-aes/modes":32,"browserify-des":37,"browserify-des/modes":38,evp_bytestokey:105}],37:[function(t,e,n){(function(n){var r=t("cipher-base"),i=t("des.js"),o=t("inherits"),a={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function u(t){r.call(this);var e,i=t.mode.toLowerCase(),o=a[i];e=t.decrypt?"decrypt":"encrypt";var u=t.key;"des-ede"!==i&&"des-ede-cbc"!==i||(u=n.concat([u,u.slice(0,8)]));var s=t.iv;this._des=o.create({key:u,iv:s,type:e})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],e.exports=u,o(u,r),u.prototype._update=function(t){return new n(this._des.update(t))},u.prototype._final=function(){return new n(this._des.final())}}).call(this,t("buffer").Buffer)},{buffer:48,"cipher-base":51,"des.js":61,inherits:123}],38:[function(t,e,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}},{}],39:[function(t,e,n){(function(n){var r=t("bn.js"),i=t("randombytes");function o(t,e){var i=function(t){var e=a(t);return{blinder:e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed(),unblinder:e.invm(t.modulus)}}(e),o=e.modulus.byteLength(),u=(r.mont(e.modulus),new r(t).mul(i.blinder).umod(e.modulus)),s=u.toRed(r.mont(e.prime1)),c=u.toRed(r.mont(e.prime2)),f=e.coefficient,h=e.prime1,l=e.prime2,d=s.redPow(e.exponent1),p=c.redPow(e.exponent2);d=d.fromRed(),p=p.fromRed();var b=d.isub(p).imul(f).umod(h);return b.imul(l),p.iadd(b),new n(p.imul(i.unblinder).umod(e.modulus).toArray(!1,o))}function a(t){for(var e=t.modulus.byteLength(),n=new r(i(e));n.cmp(t.modulus)>=0||!n.umod(t.prime1)||!n.umod(t.prime2);)n=new r(i(e));return n}e.exports=o,o.getr=a}).call(this,t("buffer").Buffer)},{"bn.js":16,buffer:48,randombytes:159}],40:[function(t,e,n){e.exports=t("./browser/algorithms.json")},{"./browser/algorithms.json":41}],41:[function(t,e,n){e.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"}}},{}],42:[function(t,e,n){e.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"}},{}],43:[function(t,e,n){(function(n){var r=t("create-hash"),i=t("stream"),o=t("inherits"),a=t("./sign"),u=t("./verify"),s=t("./algorithms.json");function c(t){i.Writable.call(this);var e=s[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=r(e.hash),this._tag=e.id,this._signType=e.sign}function f(t){i.Writable.call(this);var e=s[t];if(!e)throw new Error("Unknown message digest");this._hash=r(e.hash),this._tag=e.id,this._signType=e.sign}function h(t){return new c(t)}function l(t){return new f(t)}Object.keys(s).forEach(function(t){s[t].id=new n(s[t].id,"hex"),s[t.toLowerCase()]=s[t]}),o(c,i.Writable),c.prototype._write=function(t,e,n){this._hash.update(t),n()},c.prototype.update=function(t,e){return"string"==typeof t&&(t=new n(t,e)),this._hash.update(t),this},c.prototype.sign=function(t,e){this.end();var n=this._hash.digest(),r=a(n,t,this._hashType,this._signType,this._tag);return e?r.toString(e):r},o(f,i.Writable),f.prototype._write=function(t,e,n){this._hash.update(t),n()},f.prototype.update=function(t,e){return"string"==typeof t&&(t=new n(t,e)),this._hash.update(t),this},f.prototype.verify=function(t,e,r){"string"==typeof e&&(e=new n(e,r)),this.end();var i=this._hash.digest();return u(e,i,t,this._signType,this._tag)},e.exports={Sign:h,Verify:l,createSign:h,createVerify:l}}).call(this,t("buffer").Buffer)},{"./algorithms.json":41,"./sign":44,"./verify":45,buffer:48,"create-hash":54,inherits:123,stream:184}],44:[function(t,e,n){(function(n){var r=t("create-hmac"),i=t("browserify-rsa"),o=t("elliptic").ec,a=t("bn.js"),u=t("parse-asn1"),s=t("./curves.json");function c(t,e,i,o){if((t=new n(t.toArray())).length<e.byteLength()){var a=new n(e.byteLength()-t.length);a.fill(0),t=n.concat([a,t])}var u=i.length,s=function(t,e){t=(t=f(t,e)).mod(e);var r=new n(t.toArray());if(r.length<e.byteLength()){var i=new n(e.byteLength()-r.length);i.fill(0),r=n.concat([i,r])}return r}(i,e),c=new n(u);c.fill(1);var h=new n(u);return h.fill(0),h=r(o,h).update(c).update(new n([0])).update(t).update(s).digest(),c=r(o,h).update(c).digest(),{k:h=r(o,h).update(c).update(new n([1])).update(t).update(s).digest(),v:c=r(o,h).update(c).digest()}}function f(t,e){var n=new a(t),r=(t.length<<3)-e.bitLength();return r>0&&n.ishrn(r),n}function h(t,e,i){var o,a;do{for(o=new n(0);8*o.length<t.bitLength();)e.v=r(i,e.k).update(e.v).digest(),o=n.concat([o,e.v]);a=f(o,t),e.k=r(i,e.k).update(e.v).update(new n([0])).digest(),e.v=r(i,e.k).update(e.v).digest()}while(-1!==a.cmp(t));return a}function l(t,e,n,r){return t.toRed(a.mont(n)).redPow(e).fromRed().mod(r)}e.exports=function(t,e,r,d,p){var b=u(e);if(b.curve){if("ecdsa"!==d&&"ecdsa/rsa"!==d)throw new Error("wrong private key type");return function(t,e){var r=s[e.curve.join(".")];if(!r)throw new Error("unknown curve "+e.curve.join("."));var i=new o(r).keyFromPrivate(e.privateKey).sign(t);return new n(i.toDER())}(t,b)}if("dsa"===b.type){if("dsa"!==d)throw new Error("wrong private key type");return function(t,e,r){for(var i,o=e.params.priv_key,u=e.params.p,s=e.params.q,d=e.params.g,p=new a(0),b=f(t,s).mod(s),g=!1,y=c(o,s,t,r);!1===g;)i=h(s,y,r),p=l(d,i,u,s),0===(g=i.invm(s).imul(b.add(o.mul(p))).mod(s)).cmpn(0)&&(g=!1,p=new a(0));return function(t,e){t=t.toArray(),e=e.toArray(),128&t[0]&&(t=[0].concat(t)),128&e[0]&&(e=[0].concat(e));var r=[48,t.length+e.length+4,2,t.length];return r=r.concat(t,[2,e.length],e),new n(r)}(p,g)}(t,b,r)}if("rsa"!==d&&"ecdsa/rsa"!==d)throw new Error("wrong private key type");t=n.concat([p,t]);for(var g=b.modulus.byteLength(),y=[0,1];t.length+y.length+1<g;)y.push(255);y.push(0);for(var m=-1;++m<t.length;)y.push(t[m]);return i(y,b)},e.exports.getKey=c,e.exports.makeKey=h}).call(this,t("buffer").Buffer)},{"./curves.json":42,"bn.js":16,"browserify-rsa":39,buffer:48,"create-hmac":57,elliptic:72,"parse-asn1":136}],45:[function(t,e,n){(function(n){var r=t("bn.js"),i=t("elliptic").ec,o=t("parse-asn1"),a=t("./curves.json");function u(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(t.cmp(e)>=e)throw new Error("invalid sig")}e.exports=function(t,e,s,c,f){var h=o(s);if("ec"===h.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(t,e,n){var r=a[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var o=new i(r),u=n.data.subjectPrivateKey.data;return o.verify(e,t,u)}(t,e,h)}if("dsa"===h.type){if("dsa"!==c)throw new Error("wrong public key type");return function(t,e,n){var i=n.data.p,a=n.data.q,s=n.data.g,c=n.data.pub_key,f=o.signature.decode(t,"der"),h=f.s,l=f.r;u(h,a),u(l,a);var d=r.mont(i),p=h.invm(a);return 0===s.toRed(d).redPow(new r(e).mul(p).mod(a)).fromRed().mul(c.toRed(d).redPow(l.mul(p).mod(a)).fromRed()).mod(i).mod(a).cmp(l)}(t,e,h)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");e=n.concat([f,e]);for(var l=h.modulus.byteLength(),d=[1],p=0;e.length+d.length+2<l;)d.push(255),p++;d.push(0);for(var b=-1;++b<e.length;)d.push(e[b]);d=new n(d);var g=r.mont(h.modulus);t=(t=new r(t).toRed(g)).redPow(new r(h.publicExponent)),t=new n(t.fromRed().toArray());var y=p<8?1:0;for(l=Math.min(t.length,d.length),t.length!==d.length&&(y=1),b=-1;++b<l;)y|=t[b]^d[b];return 0===y}}).call(this,t("buffer").Buffer)},{"./curves.json":42,"bn.js":16,buffer:48,elliptic:72,"parse-asn1":136}],46:[function(t,e,n){arguments[4][18][0].apply(n,arguments)},{dup:18}],47:[function(t,e,n){(function(t){e.exports=function(e,n){for(var r=Math.min(e.length,n.length),i=new t(r),o=0;o<r;++o)i[o]=e[o]^n[o];return i}}).call(this,t("buffer").Buffer)},{buffer:48}],48:[function(t,e,n){"use strict";var r=t("base64-js"),i=t("ieee754");n.Buffer=u,n.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},n.INSPECT_MAX_BYTES=50;var o=2147483647;function a(t){if(t>o)throw new RangeError("Invalid typed array length");var e=new Uint8Array(t);return e.__proto__=u.prototype,e}function u(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(t)}return s(t,e,n)}function s(t,e,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return P(t)||t&&P(t.buffer)?function(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;r=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n);return r.__proto__=u.prototype,r}(t,e,n):"string"==typeof t?function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var n=0|d(t,e),r=a(n),i=r.write(t,e);i!==n&&(r=r.slice(0,i));return r}(t,e):function(t){if(u.isBuffer(t)){var e=0|l(t.length),n=a(e);return 0===n.length?n:(t.copy(n,0,0,e),n)}if(t){if(ArrayBuffer.isView(t)||"length"in t)return"number"!=typeof t.length||H(t.length)?a(0):h(t);if("Buffer"===t.type&&Array.isArray(t.data))return h(t.data)}throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object.")}(t)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t){return c(t),a(t<0?0:0|l(t))}function h(t){for(var e=t.length<0?0:0|l(t.length),n=a(e),r=0;r<e;r+=1)n[r]=255&t[r];return n}function l(t){if(t>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function d(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||P(t))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return O(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return L(t).length;default:if(r)return O(t).length;e=(""+e).toLowerCase(),r=!0}}function p(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function b(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),H(n=+n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:g(t,e,n,r,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):g(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function g(t,e,n,r,i){var o,a=1,u=t.length,s=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,u/=2,s/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var f=-1;for(o=n;o<u;o++)if(c(t,o)===c(e,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===s)return f*a}else-1!==f&&(o-=o-f),f=-1}else for(n+s>u&&(n=u-s),o=n;o>=0;o--){for(var h=!0,l=0;l<s;l++)if(c(t,o+l)!==c(e,l)){h=!1;break}if(h)return o}return-1}function y(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;r>o/2&&(r=o/2);for(var a=0;a<r;++a){var u=parseInt(e.substr(2*a,2),16);if(H(u))return a;t[n+a]=u}return a}function m(t,e,n,r){return U(O(e,t.length-n),t,n,r)}function v(t,e,n,r){return U(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function _(t,e,n,r){return v(t,e,n,r)}function w(t,e,n,r){return U(L(e),t,n,r)}function x(t,e,n,r){return U(function(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function A(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function E(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,a,u,s,c=t[i],f=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(f=c);break;case 2:128==(192&(o=t[i+1]))&&(s=(31&c)<<6|63&o)>127&&(f=s);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(s=(15&c)<<12|(63&o)<<6|63&a)>2047&&(s<55296||s>57343)&&(f=s);break;case 4:o=t[i+1],a=t[i+2],u=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&u)&&(s=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&u)>65535&&s<1114112&&(f=s)}null===f?(f=65533,h=1):f>65535&&(f-=65536,r.push(f>>>10&1023|55296),f=56320|1023&f),r.push(f),i+=h}return function(t){var e=t.length;if(e<=M)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=M));return n}(r)}n.kMaxLength=o,u.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||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."),Object.defineProperty(u.prototype,"parent",{get:function(){if(this instanceof u)return this.buffer}}),Object.defineProperty(u.prototype,"offset",{get:function(){if(this instanceof u)return this.byteOffset}}),"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),u.poolSize=8192,u.from=function(t,e,n){return s(t,e,n)},u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,u.alloc=function(t,e,n){return function(t,e,n){return c(t),t<=0?a(t):void 0!==e?"string"==typeof n?a(t).fill(e,n):a(t).fill(e):a(t)}(t,e,n)},u.allocUnsafe=function(t){return f(t)},u.allocUnsafeSlow=function(t){return f(t)},u.isBuffer=function(t){return null!=t&&!0===t._isBuffer},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(t){switch(String(t).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}},u.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=u.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var o=t[n];if(ArrayBuffer.isView(o)&&(o=u.from(o)),!u.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)p(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)p(this,e,e+3),p(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)p(this,e,e+7),p(this,e+1,e+6),p(this,e+2,e+5),p(this,e+3,e+4);return this},u.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?E(this,0,t):function(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return B(this,e,n);case"utf8":case"utf-8":return E(this,e,n);case"ascii":return C(this,e,n);case"latin1":case"binary":return S(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",e=n.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var o=i-r,a=n-e,s=Math.min(o,a),c=this.slice(r,i),f=t.slice(e,n),h=0;h<s;++h)if(c[h]!==f[h]){o=c[h],a=f[h];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return b(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return b(this,t,e,n,!1)},u.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,t,e,n);case"utf8":case"utf-8":return m(this,t,e,n);case"ascii":return v(this,t,e,n);case"latin1":case"binary":return _(this,t,e,n);case"base64":return w(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function C(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function S(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function B(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=R(t[o]);return i}function k(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function I(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function F(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function D(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function T(t,e,n,r,o){return e=+e,n>>>=0,o||D(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function N(t,e,n,r,o){return e=+e,n>>>=0,o||D(t,0,n,8),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var r=this.subarray(t,e);return r.__proto__=u.prototype,r},u.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},u.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||I(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return t>>>=0,e||I(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||I(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||I(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||I(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||I(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||I(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return t>>>=0,e||I(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||I(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){t>>>=0,e||I(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||I(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||I(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return t>>>=0,e||I(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||I(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||I(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||I(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e>>>=0,n>>>=0,r)||F(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e>>>=0,n>>>=0,r)||F(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var i=Math.pow(2,8*n-1);F(this,t,e,n,i-1,-i)}var o=0,a=1,u=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===u&&0!==this[e+o-1]&&(u=1),this[e+o]=(t/a>>0)-u&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var i=Math.pow(2,8*n-1);F(this,t,e,n,i-1,-i)}var o=n-1,a=1,u=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===u&&0!==this[e+o+1]&&(u=1),this[e+o]=(t/a>>0)-u&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeFloatLE=function(t,e,n){return T(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return T(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return N(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return N(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i=r-n;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,n,r);else if(this===t&&n<e&&e<r)for(var o=i-1;o>=0;--o)t[o+e]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,r),e);return i},u.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){var i=t.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(t=i)}}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=u.isBuffer(t)?t:new u(t,r),s=a.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var j=/[^+/0-9A-Za-z-_]/g;function R(t){return t<16?"0"+t.toString(16):t.toString(16)}function O(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=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((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function L(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(j,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function P(t){return t instanceof ArrayBuffer||null!=t&&null!=t.constructor&&"ArrayBuffer"===t.constructor.name&&"number"==typeof t.byteLength}function H(t){return t!=t}},{"base64-js":15,ieee754:121}],49:[function(t,e,n){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],50:[function(t,e,n){var r=t("element-size");e.exports=function(t,e,n){var o="SVG"===t.nodeName.toUpperCase();return t.style.position=t.style.position||"absolute",t.style.top=0,t.style.left=0,a.scale=parseFloat(n||1),a.parent=e,a();function a(){var e=a.parent||t.parentNode;if("function"==typeof e)var n=e(i)||i,u=n[0],s=n[1];else if(e&&e!==document.body)var c=r(e),u=0|c[0],s=0|c[1];else var u=window.innerWidth,s=window.innerHeight;return o?(t.setAttribute("width",u*a.scale+"px"),t.setAttribute("height",s*a.scale+"px")):(t.width=u*a.scale,t.height=s*a.scale),t.style.width=u+"px",t.style.height=s+"px",a}};var i=new Float32Array(2)},{"element-size":71}],51:[function(t,e,n){var r=t("safe-buffer").Buffer,i=t("stream").Transform,o=t("string_decoder").StringDecoder;function a(t){i.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}t("inherits")(a,i),a.prototype.update=function(t,e,n){"string"==typeof t&&(t=r.from(t,e));var i=this._update(t);return this.hashMode?this:(n&&(i=this._toString(i,n)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(t,e,n){var r;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){r=t}finally{n(r)}},a.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},a.prototype._finalOrDigest=function(t){var e=this.__final()||r.alloc(0);return t&&(e=this._toString(e,t,!0)),e},a.prototype._toString=function(t,e,n){if(this._decoder||(this._decoder=new o(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var r=this._decoder.write(t);return n&&(r+=this._decoder.end()),r},e.exports=a},{inherits:123,"safe-buffer":175,stream:184,string_decoder:189}],52:[function(t,e,n){(function(t){function e(t){return Object.prototype.toString.call(t)}n.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===e(t)},n.isBoolean=function(t){return"boolean"==typeof t},n.isNull=function(t){return null===t},n.isNullOrUndefined=function(t){return null==t},n.isNumber=function(t){return"number"==typeof t},n.isString=function(t){return"string"==typeof t},n.isSymbol=function(t){return"symbol"==typeof t},n.isUndefined=function(t){return void 0===t},n.isRegExp=function(t){return"[object RegExp]"===e(t)},n.isObject=function(t){return"object"==typeof t&&null!==t},n.isDate=function(t){return"[object Date]"===e(t)},n.isError=function(t){return"[object Error]"===e(t)||t instanceof Error},n.isFunction=function(t){return"function"==typeof t},n.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},n.isBuffer=t.isBuffer}).call(this,{isBuffer:t("../../is-buffer/index.js")})},{"../../is-buffer/index.js":124}],53:[function(t,e,n){(function(n){var r=t("elliptic"),i=t("bn.js");e.exports=function(t){return new a(t)};var o={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}};function a(t){this.curveType=o[t],this.curveType||(this.curveType={name:t}),this.curve=new r.ec(this.curveType.name),this.keys=void 0}function u(t,e,r){Array.isArray(t)||(t=t.toArray());var i=new n(t);if(r&&i.length<r){var o=new n(r-i.length);o.fill(0),i=n.concat([o,i])}return e?i.toString(e):i}o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1,a.prototype.generateKeys=function(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)},a.prototype.computeSecret=function(t,e,r){return e=e||"utf8",n.isBuffer(t)||(t=new n(t,e)),u(this.curve.keyFromPublic(t).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},a.prototype.getPublicKey=function(t,e){var n=this.keys.getPublic("compressed"===e,!0);return"hybrid"===e&&(n[n.length-1]%2?n[0]=7:n[0]=6),u(n,t)},a.prototype.getPrivateKey=function(t){return u(this.keys.getPrivate(),t)},a.prototype.setPublicKey=function(t,e){return e=e||"utf8",n.isBuffer(t)||(t=new n(t,e)),this.keys._importPublic(t),this},a.prototype.setPrivateKey=function(t,e){e=e||"utf8",n.isBuffer(t)||(t=new n(t,e));var r=new i(t);return r=r.toString(16),this.keys._importPrivate(r),this}}).call(this,t("buffer").Buffer)},{"bn.js":16,buffer:48,elliptic:72}],54:[function(t,e,n){(function(n){"use strict";var r=t("inherits"),i=t("./md5"),o=t("ripemd160"),a=t("sha.js"),u=t("cipher-base");function s(t){u.call(this,"digest"),this._hash=t,this.buffers=[]}function c(t){u.call(this,"digest"),this._hash=t}r(s,u),s.prototype._update=function(t){this.buffers.push(t)},s.prototype._final=function(){var t=n.concat(this.buffers),e=this._hash(t);return this.buffers=null,e},r(c,u),c.prototype._update=function(t){this._hash.update(t)},c.prototype._final=function(){return this._hash.digest()},e.exports=function(t){return"md5"===(t=t.toLowerCase())?new s(i):new c("rmd160"===t||"ripemd160"===t?new o:a(t))}}).call(this,t("buffer").Buffer)},{"./md5":56,buffer:48,"cipher-base":51,inherits:123,ripemd160:174,"sha.js":177}],55:[function(t,e,n){(function(t){"use strict";var n=4,r=new t(n);r.fill(0);e.exports=function(e,i){var o=i(function(e){if(e.length%n!=0){var i=e.length+(n-e.length%n);e=t.concat([e,r],i)}for(var o=new Array(e.length>>>2),a=0,u=0;a<e.length;a+=n,u++)o[u]=e.readInt32LE(a);return o}(e),8*e.length);e=new t(16);for(var a=0;a<o.length;a++)e.writeInt32LE(o[a],a<<2,!0);return e}}).call(this,t("buffer").Buffer)},{buffer:48}],56:[function(t,e,n){"use strict";var r=t("./make-hash");function i(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,h=0;h<t.length;h+=16){var l=n,d=r,p=i,b=o;r=c(r=c(r=c(r=c(r=s(r=s(r=s(r=s(r=u(r=u(r=u(r=u(r=a(r=a(r=a(r=a(r,i=a(i,o=a(o,n=a(n,r,i,o,t[h+0],7,-680876936),r,i,t[h+1],12,-389564586),n,r,t[h+2],17,606105819),o,n,t[h+3],22,-1044525330),i=a(i,o=a(o,n=a(n,r,i,o,t[h+4],7,-176418897),r,i,t[h+5],12,1200080426),n,r,t[h+6],17,-1473231341),o,n,t[h+7],22,-45705983),i=a(i,o=a(o,n=a(n,r,i,o,t[h+8],7,1770035416),r,i,t[h+9],12,-1958414417),n,r,t[h+10],17,-42063),o,n,t[h+11],22,-1990404162),i=a(i,o=a(o,n=a(n,r,i,o,t[h+12],7,1804603682),r,i,t[h+13],12,-40341101),n,r,t[h+14],17,-1502002290),o,n,t[h+15],22,1236535329),i=u(i,o=u(o,n=u(n,r,i,o,t[h+1],5,-165796510),r,i,t[h+6],9,-1069501632),n,r,t[h+11],14,643717713),o,n,t[h+0],20,-373897302),i=u(i,o=u(o,n=u(n,r,i,o,t[h+5],5,-701558691),r,i,t[h+10],9,38016083),n,r,t[h+15],14,-660478335),o,n,t[h+4],20,-405537848),i=u(i,o=u(o,n=u(n,r,i,o,t[h+9],5,568446438),r,i,t[h+14],9,-1019803690),n,r,t[h+3],14,-187363961),o,n,t[h+8],20,1163531501),i=u(i,o=u(o,n=u(n,r,i,o,t[h+13],5,-1444681467),r,i,t[h+2],9,-51403784),n,r,t[h+7],14,1735328473),o,n,t[h+12],20,-1926607734),i=s(i,o=s(o,n=s(n,r,i,o,t[h+5],4,-378558),r,i,t[h+8],11,-2022574463),n,r,t[h+11],16,1839030562),o,n,t[h+14],23,-35309556),i=s(i,o=s(o,n=s(n,r,i,o,t[h+1],4,-1530992060),r,i,t[h+4],11,1272893353),n,r,t[h+7],16,-155497632),o,n,t[h+10],23,-1094730640),i=s(i,o=s(o,n=s(n,r,i,o,t[h+13],4,681279174),r,i,t[h+0],11,-358537222),n,r,t[h+3],16,-722521979),o,n,t[h+6],23,76029189),i=s(i,o=s(o,n=s(n,r,i,o,t[h+9],4,-640364487),r,i,t[h+12],11,-421815835),n,r,t[h+15],16,530742520),o,n,t[h+2],23,-995338651),i=c(i,o=c(o,n=c(n,r,i,o,t[h+0],6,-198630844),r,i,t[h+7],10,1126891415),n,r,t[h+14],15,-1416354905),o,n,t[h+5],21,-57434055),i=c(i,o=c(o,n=c(n,r,i,o,t[h+12],6,1700485571),r,i,t[h+3],10,-1894986606),n,r,t[h+10],15,-1051523),o,n,t[h+1],21,-2054922799),i=c(i,o=c(o,n=c(n,r,i,o,t[h+8],6,1873313359),r,i,t[h+15],10,-30611744),n,r,t[h+6],15,-1560198380),o,n,t[h+13],21,1309151649),i=c(i,o=c(o,n=c(n,r,i,o,t[h+4],6,-145523070),r,i,t[h+11],10,-1120210379),n,r,t[h+2],15,718787259),o,n,t[h+9],21,-343485551),n=f(n,l),r=f(r,d),i=f(i,p),o=f(o,b)}return[n,r,i,o]}function o(t,e,n,r,i,o){return f((a=f(f(e,t),f(r,o)))<<(u=i)|a>>>32-u,n);var a,u}function a(t,e,n,r,i,a,u){return o(e&n|~e&r,t,e,i,a,u)}function u(t,e,n,r,i,a,u){return o(e&r|n&~r,t,e,i,a,u)}function s(t,e,n,r,i,a,u){return o(e^n^r,t,e,i,a,u)}function c(t,e,n,r,i,a,u){return o(n^(e|~r),t,e,i,a,u)}function f(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}e.exports=function(t){return r(t,i)}},{"./make-hash":55}],57:[function(t,e,n){"use strict";var r=t("inherits"),i=t("./legacy"),o=t("cipher-base"),a=t("safe-buffer").Buffer,u=t("create-hash/md5"),s=t("ripemd160"),c=t("sha.js"),f=a.alloc(128);function h(t,e){o.call(this,"digest"),"string"==typeof e&&(e=a.from(e));var n="sha512"===t||"sha384"===t?128:64;(this._alg=t,this._key=e,e.length>n)?e=("rmd160"===t?new s:c(t)).update(e).digest():e.length<n&&(e=a.concat([e,f],n));for(var r=this._ipad=a.allocUnsafe(n),i=this._opad=a.allocUnsafe(n),u=0;u<n;u++)r[u]=54^e[u],i[u]=92^e[u];this._hash="rmd160"===t?new s:c(t),this._hash.update(r)}r(h,o),h.prototype._update=function(t){this._hash.update(t)},h.prototype._final=function(){var t=this._hash.digest();return("rmd160"===this._alg?new s:c(this._alg)).update(this._opad).update(t).digest()},e.exports=function(t,e){return"rmd160"===(t=t.toLowerCase())||"ripemd160"===t?new h("rmd160",e):"md5"===t?new i(u,e):new h(t,e)}},{"./legacy":58,"cipher-base":51,"create-hash/md5":56,inherits:123,ripemd160:174,"safe-buffer":175,"sha.js":177}],58:[function(t,e,n){"use strict";var r=t("inherits"),i=t("safe-buffer").Buffer,o=t("cipher-base"),a=i.alloc(128),u=64;function s(t,e){o.call(this,"digest"),"string"==typeof e&&(e=i.from(e)),this._alg=t,this._key=e,e.length>u?e=t(e):e.length<u&&(e=i.concat([e,a],u));for(var n=this._ipad=i.allocUnsafe(u),r=this._opad=i.allocUnsafe(u),s=0;s<u;s++)n[s]=54^e[s],r[s]=92^e[s];this._hash=[n]}r(s,o),s.prototype._update=function(t){this._hash.push(t)},s.prototype._final=function(){var t=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,t]))},e.exports=s},{"cipher-base":51,inherits:123,"safe-buffer":175}],59:[function(t,e,n){"use strict";n.randomBytes=n.rng=n.pseudoRandomBytes=n.prng=t("randombytes"),n.createHash=n.Hash=t("create-hash"),n.createHmac=n.Hmac=t("create-hmac");var r=t("browserify-sign/algos"),i=Object.keys(r),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);n.getHashes=function(){return o};var a=t("pbkdf2");n.pbkdf2=a.pbkdf2,n.pbkdf2Sync=a.pbkdf2Sync;var u=t("browserify-cipher");n.Cipher=u.Cipher,n.createCipher=u.createCipher,n.Cipheriv=u.Cipheriv,n.createCipheriv=u.createCipheriv,n.Decipher=u.Decipher,n.createDecipher=u.createDecipher,n.Decipheriv=u.Decipheriv,n.createDecipheriv=u.createDecipheriv,n.getCiphers=u.getCiphers,n.listCiphers=u.listCiphers;var s=t("diffie-hellman");n.DiffieHellmanGroup=s.DiffieHellmanGroup,n.createDiffieHellmanGroup=s.createDiffieHellmanGroup,n.getDiffieHellman=s.getDiffieHellman,n.createDiffieHellman=s.createDiffieHellman,n.DiffieHellman=s.DiffieHellman;var c=t("browserify-sign");n.createSign=c.createSign,n.Sign=c.Sign,n.createVerify=c.createVerify,n.Verify=c.Verify,n.createECDH=t("create-ecdh");var f=t("public-encrypt");n.publicEncrypt=f.publicEncrypt,n.privateEncrypt=f.privateEncrypt,n.publicDecrypt=f.publicDecrypt,n.privateDecrypt=f.privateDecrypt;var h=t("randomfill");n.randomFill=h.randomFill,n.randomFillSync=h.randomFillSync,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":36,"browserify-sign":43,"browserify-sign/algos":40,"create-ecdh":53,"create-hash":54,"create-hmac":57,"diffie-hellman":67,pbkdf2:138,"public-encrypt":145,randombytes:159,randomfill:160}],60:[function(t,e,n){"use strict";var r=t("es5-ext/object/assign"),i=t("es5-ext/object/normalize-options"),o=t("es5-ext/object/is-callable"),a=t("es5-ext/string/#/contains");(e.exports=function(t,e){var n,o,u,s,c;return arguments.length<2||"string"!=typeof t?(s=e,e=t,t=null):s=arguments[2],null==t?(n=u=!0,o=!1):(n=a.call(t,"c"),o=a.call(t,"e"),u=a.call(t,"w")),c={value:e,configurable:n,enumerable:o,writable:u},s?r(i(s),c):c}).gs=function(t,e,n){var u,s,c,f;return"string"!=typeof t?(c=n,n=e,e=t,t=null):c=arguments[3],null==e?e=void 0:o(e)?null==n?n=void 0:o(n)||(c=n,n=void 0):(c=e,e=n=void 0),null==t?(u=!0,s=!1):(u=a.call(t,"c"),s=a.call(t,"e")),f={get:e,set:n,configurable:u,enumerable:s},c?r(i(c),f):f}},{"es5-ext/object/assign":89,"es5-ext/object/is-callable":92,"es5-ext/object/normalize-options":97,"es5-ext/string/#/contains":100}],61:[function(t,e,n){"use strict";n.utils=t("./des/utils"),n.Cipher=t("./des/cipher"),n.DES=t("./des/des"),n.CBC=t("./des/cbc"),n.EDE=t("./des/ede")},{"./des/cbc":62,"./des/cipher":63,"./des/des":64,"./des/ede":65,"./des/utils":66}],62:[function(t,e,n){"use strict";var r=t("minimalistic-assert"),i=t("inherits"),o={};n.instantiate=function(t){function e(e){t.call(this,e),this._cbcInit()}i(e,t);for(var n=Object.keys(o),r=0;r<n.length;r++){var a=n[r];e.prototype[a]=o[a]}return e.create=function(t){return new e(t)},e},o._cbcInit=function(){var t=new function(t){r.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}(this.options.iv);this._cbcState=t},o._update=function(t,e,n,r){var i=this._cbcState,o=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var u=0;u<this.blockSize;u++)a[u]^=t[e+u];o._update.call(this,a,0,n,r);for(u=0;u<this.blockSize;u++)a[u]=n[r+u]}else{o._update.call(this,t,e,n,r);for(u=0;u<this.blockSize;u++)n[r+u]^=a[u];for(u=0;u<this.blockSize;u++)a[u]=t[e+u]}}},{inherits:123,"minimalistic-assert":129}],63:[function(t,e,n){"use strict";var r=t("minimalistic-assert");function i(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},i.prototype._buffer=function(t,e){for(var n=Math.min(this.buffer.length-this.bufferOff,t.length-e),r=0;r<n;r++)this.buffer[this.bufferOff+r]=t[e+r];return this.bufferOff+=n,n},i.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(t){var e=0,n=0,r=(this.bufferOff+t.length)/this.blockSize|0,i=new Array(r*this.blockSize);0!==this.bufferOff&&(e+=this._buffer(t,e),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(i,n)));for(var o=t.length-(t.length-e)%this.blockSize;e<o;e+=this.blockSize)this._update(t,e,i,n),n+=this.blockSize;for(;e<t.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=t[e];return i},i.prototype._updateDecrypt=function(t){for(var e=0,n=0,r=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,i=new Array(r*this.blockSize);r>0;r--)e+=this._buffer(t,e),n+=this._flushBuffer(i,n);return e+=this._buffer(t,e),i},i.prototype.final=function(t){var e,n;return t&&(e=this.update(t)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(n):n},i.prototype._pad=function(t,e){if(0===e)return!1;for(;e<t.length;)t[e++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t},i.prototype._unpad=function(t){return t},i.prototype._finalDecrypt=function(){r.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}},{"minimalistic-assert":129}],64:[function(t,e,n){"use strict";var r=t("minimalistic-assert"),i=t("inherits"),o=t("../des"),a=o.utils,u=o.Cipher;function s(t){u.call(this,t);var e=new function(){this.tmp=new Array(2),this.keys=null};this._desState=e,this.deriveKeys(e,t.key)}i(s,u),e.exports=s,s.create=function(t){return new s(t)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];s.prototype.deriveKeys=function(t,e){t.keys=new Array(32),r.equal(e.length,this.blockSize,"Invalid key length");var n=a.readUInt32BE(e,0),i=a.readUInt32BE(e,4);a.pc1(n,i,t.tmp,0),n=t.tmp[0],i=t.tmp[1];for(var o=0;o<t.keys.length;o+=2){var u=c[o>>>1];n=a.r28shl(n,u),i=a.r28shl(i,u),a.pc2(n,i,t.keys,o)}},s.prototype._update=function(t,e,n,r){var i=this._desState,o=a.readUInt32BE(t,e),u=a.readUInt32BE(t,e+4);a.ip(o,u,i.tmp,0),o=i.tmp[0],u=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,u,i.tmp,0):this._decrypt(i,o,u,i.tmp,0),o=i.tmp[0],u=i.tmp[1],a.writeUInt32BE(n,o,r),a.writeUInt32BE(n,u,r+4)},s.prototype._pad=function(t,e){for(var n=t.length-e,r=e;r<t.length;r++)t[r]=n;return!0},s.prototype._unpad=function(t){for(var e=t[t.length-1],n=t.length-e;n<t.length;n++)r.equal(t[n],e);return t.slice(0,t.length-e)},s.prototype._encrypt=function(t,e,n,r,i){for(var o=e,u=n,s=0;s<t.keys.length;s+=2){var c=t.keys[s],f=t.keys[s+1];a.expand(u,t.tmp,0),c^=t.tmp[0],f^=t.tmp[1];var h=a.substitute(c,f),l=u;u=(o^a.permute(h))>>>0,o=l}a.rip(u,o,r,i)},s.prototype._decrypt=function(t,e,n,r,i){for(var o=n,u=e,s=t.keys.length-2;s>=0;s-=2){var c=t.keys[s],f=t.keys[s+1];a.expand(o,t.tmp,0),c^=t.tmp[0],f^=t.tmp[1];var h=a.substitute(c,f),l=o;o=(u^a.permute(h))>>>0,u=l}a.rip(o,u,r,i)}},{"../des":61,inherits:123,"minimalistic-assert":129}],65:[function(t,e,n){"use strict";var r=t("minimalistic-assert"),i=t("inherits"),o=t("../des"),a=o.Cipher,u=o.DES;function s(t){a.call(this,t);var e=new function(t,e){r.equal(e.length,24,"Invalid key length");var n=e.slice(0,8),i=e.slice(8,16),o=e.slice(16,24);this.ciphers="encrypt"===t?[u.create({type:"encrypt",key:n}),u.create({type:"decrypt",key:i}),u.create({type:"encrypt",key:o})]:[u.create({type:"decrypt",key:o}),u.create({type:"encrypt",key:i}),u.create({type:"decrypt",key:n})]}(this.type,this.options.key);this._edeState=e}i(s,a),e.exports=s,s.create=function(t){return new s(t)},s.prototype._update=function(t,e,n,r){var i=this._edeState;i.ciphers[0]._update(t,e,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},s.prototype._pad=u.prototype._pad,s.prototype._unpad=u.prototype._unpad},{"../des":61,inherits:123,"minimalistic-assert":129}],66:[function(t,e,n){"use strict";n.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},n.writeUInt32BE=function(t,e,n){t[0+n]=e>>>24,t[1+n]=e>>>16&255,t[2+n]=e>>>8&255,t[3+n]=255&e},n.ip=function(t,e,n,r){for(var i=0,o=0,a=6;a>=0;a-=2){for(var u=0;u<=24;u+=8)i<<=1,i|=e>>>u+a&1;for(u=0;u<=24;u+=8)i<<=1,i|=t>>>u+a&1}for(a=6;a>=0;a-=2){for(u=1;u<=25;u+=8)o<<=1,o|=e>>>u+a&1;for(u=1;u<=25;u+=8)o<<=1,o|=t>>>u+a&1}n[r+0]=i>>>0,n[r+1]=o>>>0},n.rip=function(t,e,n,r){for(var i=0,o=0,a=0;a<4;a++)for(var u=24;u>=0;u-=8)i<<=1,i|=e>>>u+a&1,i<<=1,i|=t>>>u+a&1;for(a=4;a<8;a++)for(u=24;u>=0;u-=8)o<<=1,o|=e>>>u+a&1,o<<=1,o|=t>>>u+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},n.pc1=function(t,e,n,r){for(var i=0,o=0,a=7;a>=5;a--){for(var u=0;u<=24;u+=8)i<<=1,i|=e>>u+a&1;for(u=0;u<=24;u+=8)i<<=1,i|=t>>u+a&1}for(u=0;u<=24;u+=8)i<<=1,i|=e>>u+a&1;for(a=1;a<=3;a++){for(u=0;u<=24;u+=8)o<<=1,o|=e>>u+a&1;for(u=0;u<=24;u+=8)o<<=1,o|=t>>u+a&1}for(u=0;u<=24;u+=8)o<<=1,o|=t>>u+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},n.r28shl=function(t,e){return t<<e&268435455|t>>>28-e};var r=[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(t,e,n,i){for(var o=0,a=0,u=r.length>>>1,s=0;s<u;s++)o<<=1,o|=t>>>r[s]&1;for(s=u;s<r.length;s++)a<<=1,a|=e>>>r[s]&1;n[i+0]=o>>>0,n[i+1]=a>>>0},n.expand=function(t,e,n){var r=0,i=0;r=(1&t)<<5|t>>>27;for(var o=23;o>=15;o-=4)r<<=6,r|=t>>>o&63;for(o=11;o>=3;o-=4)i|=t>>>o&63,i<<=6;i|=(31&t)<<1|t>>>31,e[n+0]=r>>>0,e[n+1]=i>>>0};var i=[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(t,e){for(var n=0,r=0;r<4;r++){n<<=4,n|=i[64*r+(t>>>18-6*r&63)]}for(r=0;r<4;r++){n<<=4,n|=i[256+64*r+(e>>>18-6*r&63)]}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(t){for(var e=0,n=0;n<o.length;n++)e<<=1,e|=t>>>o[n]&1;return e>>>0},n.padSplit=function(t,e,n){for(var r=t.toString(2);r.length<e;)r="0"+r;for(var i=[],o=0;o<e;o+=n)i.push(r.slice(o,o+n));return i.join(" ")}},{}],67:[function(t,e,n){(function(e){var r=t("./lib/generatePrime"),i=t("./lib/primes.json"),o=t("./lib/dh");var a={binary:!0,hex:!0,base64:!0};n.DiffieHellmanGroup=n.createDiffieHellmanGroup=n.getDiffieHellman=function(t){var n=new e(i[t].prime,"hex"),r=new e(i[t].gen,"hex");return new o(n,r)},n.createDiffieHellman=n.DiffieHellman=function t(n,i,u,s){return e.isBuffer(i)||void 0===a[i]?t(n,"binary",i,u):(i=i||"binary",s=s||"binary",u=u||new e([2]),e.isBuffer(u)||(u=new e(u,s)),"number"==typeof n?new o(r(n,u),u,!0):(e.isBuffer(n)||(n=new e(n,i)),new o(n,u,!0)))}}).call(this,t("buffer").Buffer)},{"./lib/dh":68,"./lib/generatePrime":69,"./lib/primes.json":70,buffer:48}],68:[function(t,e,n){(function(n){var r=t("bn.js"),i=new(t("miller-rabin")),o=new r(24),a=new r(11),u=new r(10),s=new r(3),c=new r(7),f=t("./generatePrime"),h=t("randombytes");function l(t,e){return e=e||"utf8",n.isBuffer(t)||(t=new n(t,e)),this._pub=new r(t),this}function d(t,e){return e=e||"utf8",n.isBuffer(t)||(t=new n(t,e)),this._priv=new r(t),this}e.exports=b;var p={};function b(t,e,n){this.setGenerator(e),this.__prime=new r(t),this._prime=r.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=l,this.setPrivateKey=d):this._primeCode=8}function g(t,e){var r=new n(t.toArray());return e?r.toString(e):r}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var n=e.toString("hex"),r=[n,t.toString(16)].join("_");if(r in p)return p[r];var h,l=0;if(t.isEven()||!f.simpleSieve||!f.fermatTest(t)||!i.test(t))return l+=1,l+="02"===n||"05"===n?8:4,p[r]=l,l;switch(i.test(t.shrn(1))||(l+=2),n){case"02":t.mod(o).cmp(a)&&(l+=8);break;case"05":(h=t.mod(u)).cmp(s)&&h.cmp(c)&&(l+=8);break;default:l+=4}return p[r]=l,l}(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new r(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(t){var e=(t=(t=new r(t)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new n(e.toArray()),o=this.getPrime();if(i.length<o.length){var a=new n(o.length-i.length);a.fill(0),i=n.concat([a,i])}return i},b.prototype.getPublicKey=function(t){return g(this._pub,t)},b.prototype.getPrivateKey=function(t){return g(this._priv,t)},b.prototype.getPrime=function(t){return g(this.__prime,t)},b.prototype.getGenerator=function(t){return g(this._gen,t)},b.prototype.setGenerator=function(t,e){return e=e||"utf8",n.isBuffer(t)||(t=new n(t,e)),this.__gen=t,this._gen=new r(t),this}}).call(this,t("buffer").Buffer)},{"./generatePrime":69,"bn.js":16,buffer:48,"miller-rabin":128,randombytes:159}],69:[function(t,e,n){var r=t("randombytes");e.exports=m,m.simpleSieve=g,m.fermatTest=y;var i=t("bn.js"),o=new i(24),a=new(t("miller-rabin")),u=new i(1),s=new i(2),c=new i(5),f=(new i(16),new i(8),new i(10)),h=new i(3),l=(new i(7),new i(11)),d=new i(4),p=(new i(12),null);function b(){if(null!==p)return p;var t=[];t[0]=2;for(var e=1,n=3;n<1048576;n+=2){for(var r=Math.ceil(Math.sqrt(n)),i=0;i<e&&t[i]<=r&&n%t[i]!=0;i++);e!==i&&t[i]<=r||(t[e++]=n)}return p=t,t}function g(t){for(var e=b(),n=0;n<e.length;n++)if(0===t.modn(e[n]))return 0===t.cmpn(e[n]);return!0}function y(t){var e=i.mont(t);return 0===s.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)}function m(t,e){if(t<16)return new i(2===e||5===e?[140,123]:[140,39]);var n,p;for(e=new i(e);;){for(n=new i(r(Math.ceil(t/8)));n.bitLength()>t;)n.ishrn(1);if(n.isEven()&&n.iadd(u),n.testn(1)||n.iadd(s),e.cmp(s)){if(!e.cmp(c))for(;n.mod(f).cmp(h);)n.iadd(d)}else for(;n.mod(o).cmp(l);)n.iadd(d);if(g(p=n.shrn(1))&&g(n)&&y(p)&&y(n)&&a.test(p)&&a.test(n))return n}}},{"bn.js":16,"miller-rabin":128,randombytes:159}],70:[function(t,e,n){e.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"}}},{}],71:[function(t,e,n){function r(t){return parseFloat(t)||0}e.exports=function(t){if(t===window||t===document.body)return[window.innerWidth,window.innerHeight];if(!t.parentNode){var e=!0;document.body.appendChild(t)}var n=t.getBoundingClientRect(),i=getComputedStyle(t),o=(0|n.height)+r(i.getPropertyValue("margin-top"))+r(i.getPropertyValue("margin-bottom")),a=(0|n.width)+r(i.getPropertyValue("margin-left"))+r(i.getPropertyValue("margin-right"));e&&document.body.removeChild(t);return[a,o]}},{}],72:[function(t,e,n){"use strict";var r=n;r.version=t("../package.json").version,r.utils=t("./elliptic/utils"),r.rand=t("brorand"),r.curve=t("./elliptic/curve"),r.curves=t("./elliptic/curves"),r.ec=t("./elliptic/ec"),r.eddsa=t("./elliptic/eddsa")},{"../package.json":87,"./elliptic/curve":75,"./elliptic/curves":78,"./elliptic/ec":79,"./elliptic/eddsa":82,"./elliptic/utils":86,brorand:17}],73:[function(t,e,n){"use strict";var r=t("bn.js"),i=t("../../elliptic").utils,o=i.getNAF,a=i.getJSF,u=i.assert;function s(t,e){this.type=t,this.p=new r(e.p,16),this.red=e.prime?r.red(e.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=e.n&&new r(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.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 c(t,e){this.curve=t,this.type=e,this.precomputed=null}e.exports=s,s.prototype.point=function(){throw new Error("Not implemented")},s.prototype.validate=function(){throw new Error("Not implemented")},s.prototype._fixedNafMul=function(t,e){u(t.precomputed);var n=t._getDoubles(),r=o(e,1),i=(1<<n.step+1)-(n.step%2==0?2:1);i/=3;for(var a=[],s=0;s<r.length;s+=n.step){var c=0;for(e=s+n.step-1;e>=s;e--)c=(c<<1)+r[e];a.push(c)}for(var f=this.jpoint(null,null,null),h=this.jpoint(null,null,null),l=i;l>0;l--){for(s=0;s<a.length;s++){(c=a[s])===l?h=h.mixedAdd(n.points[s]):c===-l&&(h=h.mixedAdd(n.points[s].neg()))}f=f.add(h)}return f.toP()},s.prototype._wnafMul=function(t,e){var n=4,r=t._getNAFPoints(n);n=r.wnd;for(var i=r.points,a=o(e,n),s=this.jpoint(null,null,null),c=a.length-1;c>=0;c--){for(e=0;c>=0&&0===a[c];c--)e++;if(c>=0&&e++,s=s.dblp(e),c<0)break;var f=a[c];u(0!==f),s="affine"===t.type?f>0?s.mixedAdd(i[f-1>>1]):s.mixedAdd(i[-f-1>>1].neg()):f>0?s.add(i[f-1>>1]):s.add(i[-f-1>>1].neg())}return"affine"===t.type?s.toP():s},s.prototype._wnafMulAdd=function(t,e,n,r,i){for(var u=this._wnafT1,s=this._wnafT2,c=this._wnafT3,f=0,h=0;h<r;h++){var l=(M=e[h])._getNAFPoints(t);u[h]=l.wnd,s[h]=l.points}for(h=r-1;h>=1;h-=2){var d=h-1,p=h;if(1===u[d]&&1===u[p]){var b=[e[d],null,null,e[p]];0===e[d].y.cmp(e[p].y)?(b[1]=e[d].add(e[p]),b[2]=e[d].toJ().mixedAdd(e[p].neg())):0===e[d].y.cmp(e[p].y.redNeg())?(b[1]=e[d].toJ().mixedAdd(e[p]),b[2]=e[d].add(e[p].neg())):(b[1]=e[d].toJ().mixedAdd(e[p]),b[2]=e[d].toJ().mixedAdd(e[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],y=a(n[d],n[p]);f=Math.max(y[0].length,f),c[d]=new Array(f),c[p]=new Array(f);for(var m=0;m<f;m++){var v=0|y[0][m],_=0|y[1][m];c[d][m]=g[3*(v+1)+(_+1)],c[p][m]=0,s[d]=b}}else c[d]=o(n[d],u[d]),c[p]=o(n[p],u[p]),f=Math.max(c[d].length,f),f=Math.max(c[p].length,f)}var w=this.jpoint(null,null,null),x=this._wnafT4;for(h=f;h>=0;h--){for(var A=0;h>=0;){var E=!0;for(m=0;m<r;m++)x[m]=0|c[m][h],0!==x[m]&&(E=!1);if(!E)break;A++,h--}if(h>=0&&A++,w=w.dblp(A),h<0)break;for(m=0;m<r;m++){var M,C=x[m];0!==C&&(C>0?M=s[m][C-1>>1]:C<0&&(M=s[m][-C-1>>1].neg()),w="affine"===M.type?w.mixedAdd(M):w.add(M))}}for(h=0;h<r;h++)s[h]=null;return i?w:w.toP()},s.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},s.prototype.decodePoint=function(t,e){t=i.toArray(t,e);var n=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*n)return 6===t[0]?u(t[t.length-1]%2==0):7===t[0]&&u(t[t.length-1]%2==1),this.point(t.slice(1,1+n),t.slice(1+n,1+2*n));if((2===t[0]||3===t[0])&&t.length-1===n)return this.pointFromX(t.slice(1,1+n),3===t[0]);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(t){return this.encode(t,!0)},c.prototype._encode=function(t){var e=this.curve.p.byteLength(),n=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",e))},c.prototype.encode=function(t,e){return i.encode(this._encode(e),t)},c.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},c.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},c.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<e;i+=t){for(var o=0;o<t;o++)r=r.dbl();n.push(r)}return{step:t,points:n}},c.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],n=(1<<t)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)e[i]=e[i-1].add(r);return{wnd:t,points:e}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(t){for(var e=this,n=0;n<t;n++)e=e.dbl();return e}},{"../../elliptic":72,"bn.js":16}],74:[function(t,e,n){"use strict";var r=t("../curve"),i=t("../../elliptic"),o=t("bn.js"),a=t("inherits"),u=r.base,s=i.utils.assert;function c(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,u.call(this,"edwards",t),this.a=new o(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function f(t,e,n,r,i){u.BasePoint.call(this,t,"projective"),null===e&&null===n&&null===r?(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 o(e,16),this.y=new o(n,16),this.z=r?new o(r,16):this.curve.one,this.t=i&&new o(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.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()))))}a(c,u),e.exports=c,c.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},c.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},c.prototype.jpoint=function(t,e,n,r){return this.point(t,e,n,r)},c.prototype.pointFromX=function(t,e){(t=new o(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr(),r=this.c2.redSub(this.a.redMul(n)),i=this.one.redSub(this.c2.redMul(this.d).redMul(n)),a=r.redMul(i.redInvm()),u=a.redSqrt();if(0!==u.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var s=u.fromRed().isOdd();return(e&&!s||!e&&s)&&(u=u.redNeg()),this.point(t,u)},c.prototype.pointFromY=function(t,e){(t=new o(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr(),r=n.redSub(this.one),i=n.redMul(this.d).redAdd(this.one),a=r.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var u=a.redSqrt();if(0!==u.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return u.isOdd()!==e&&(u=u.redNeg()),this.point(u,t)},c.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),n=t.y.redSqr(),r=e.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(n)));return 0===r.cmp(i)},a(f,u.BasePoint),c.prototype.pointFromJSON=function(t){return f.fromJSON(this,t)},c.prototype.point=function(t,e,n,r){return new f(this,t,e,n,r)},f.fromJSON=function(t,e){return new f(t,e[0],e[1],e[2])},f.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)+">"},f.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},f.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=r.redAdd(e),a=o.redSub(n),u=r.redSub(e),s=i.redMul(a),c=o.redMul(u),f=i.redMul(u),h=a.redMul(o);return this.curve.point(s,c,h,f)},f.prototype._projDbl=function(){var t,e,n,r=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(c=this.curve._mulA(i)).redAdd(o);if(this.zOne)t=r.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),e=a.redMul(c.redSub(o)),n=a.redSqr().redSub(a).redSub(a);else{var u=this.z.redSqr(),s=a.redSub(u).redISub(u);t=r.redSub(i).redISub(o).redMul(s),e=a.redMul(c.redSub(o)),n=a.redMul(s)}}else{var c=i.redAdd(o);u=this.curve._mulC(this.c.redMul(this.z)).redSqr(),s=c.redSub(u).redSub(u);t=this.curve._mulC(r.redISub(c)).redMul(s),e=this.curve._mulC(c).redMul(i.redISub(o)),n=c.redMul(s)}return this.curve.point(t,e,n)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},f.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),n=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),r=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),o=n.redSub(e),a=i.redSub(r),u=i.redAdd(r),s=n.redAdd(e),c=o.redMul(a),f=u.redMul(s),h=o.redMul(s),l=a.redMul(u);return this.curve.point(c,f,l,h)},f.prototype._projAdd=function(t){var e,n,r=this.z.redMul(t.z),i=r.redSqr(),o=this.x.redMul(t.x),a=this.y.redMul(t.y),u=this.curve.d.redMul(o).redMul(a),s=i.redSub(u),c=i.redAdd(u),f=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(a),h=r.redMul(s).redMul(f);return this.curve.twisted?(e=r.redMul(c).redMul(a.redSub(this.curve._mulA(o))),n=s.redMul(c)):(e=r.redMul(c).redMul(a.redSub(o)),n=this.curve._mulC(s).redMul(c)),this.curve.point(h,e,n)},f.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},f.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},f.prototype.mulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!1)},f.prototype.jmulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!0)},f.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},f.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()},f.prototype.getY=function(){return this.normalize(),this.y.fromRed()},f.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},f.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var n=t.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(r),0===this.x.cmp(e))return!0}return!1},f.prototype.toP=f.prototype.normalize,f.prototype.mixedAdd=f.prototype.add},{"../../elliptic":72,"../curve":75,"bn.js":16,inherits:123}],75:[function(t,e,n){"use strict";var r=n;r.base=t("./base"),r.short=t("./short"),r.mont=t("./mont"),r.edwards=t("./edwards")},{"./base":73,"./edwards":74,"./mont":76,"./short":77}],76:[function(t,e,n){"use strict";var r=t("../curve"),i=t("bn.js"),o=t("inherits"),a=r.base,u=t("../../elliptic").utils;function s(t){a.call(this,"mont",t),this.a=new i(t.a,16).toRed(this.red),this.b=new i(t.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(t,e,n){a.BasePoint.call(this,t,"projective"),null===e&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(e,16),this.z=new i(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(s,a),e.exports=s,s.prototype.validate=function(t){var e=t.normalize().x,n=e.redSqr(),r=n.redMul(e).redAdd(n.redMul(this.a)).redAdd(e);return 0===r.redSqrt().redSqr().cmp(r)},o(c,a.BasePoint),s.prototype.decodePoint=function(t,e){return this.point(u.toArray(t,e),1)},s.prototype.point=function(t,e){return new c(this,t,e)},s.prototype.pointFromJSON=function(t){return c.fromJSON(this,t)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(t,e){return new c(t,e[0],e[1]||t.one)},c.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)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),n=t.redSub(e),r=t.redMul(e),i=n.redMul(e.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(t,e){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=t.x.redAdd(t.z),o=t.x.redSub(t.z).redMul(n),a=i.redMul(r),u=e.z.redMul(o.redAdd(a).redSqr()),s=e.x.redMul(o.redISub(a).redSqr());return this.curve.point(u,s)},c.prototype.mul=function(t){for(var e=t.clone(),n=this,r=this.curve.point(null,null),i=[];0!==e.cmpn(0);e.iushrn(1))i.push(e.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../../elliptic":72,"../curve":75,"bn.js":16,inherits:123}],77:[function(t,e,n){"use strict";var r=t("../curve"),i=t("../../elliptic"),o=t("bn.js"),a=t("inherits"),u=r.base,s=i.utils.assert;function c(t){u.call(this,"short",t),this.a=new o(t.a,16).toRed(this.red),this.b=new o(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function f(t,e,n,r){u.BasePoint.call(this,t,"affine"),null===e&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new o(e,16),this.y=new o(n,16),r&&(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 h(t,e,n,r){u.BasePoint.call(this,t,"jacobian"),null===e&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new o(0)):(this.x=new o(e,16),this.y=new o(n,16),this.z=new o(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.zOne=this.z===this.curve.one}a(c,u),e.exports=c,c.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,n;if(t.beta)e=new o(t.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);e=(e=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(t.lambda)n=new o(t.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(e))?n=i[0]:(n=i[1],s(0===this.g.mul(n).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:n,basis:t.basis?t.basis.map(function(t){return{a:new o(t.a,16),b:new o(t.b,16)}}):this._getEndoBasis(n)}}},c.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:o.mont(t),n=new o(2).toRed(e).redInvm(),r=n.redNeg(),i=new o(3).toRed(e).redNeg().redSqrt().redMul(n);return[r.redAdd(i).fromRed(),r.redSub(i).fromRed()]},c.prototype._getEndoBasis=function(t){for(var e,n,r,i,a,u,s,c,f,h=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=t,d=this.n.clone(),p=new o(1),b=new o(0),g=new o(0),y=new o(1),m=0;0!==l.cmpn(0);){var v=d.div(l);c=d.sub(v.mul(l)),f=g.sub(v.mul(p));var _=y.sub(v.mul(b));if(!r&&c.cmp(h)<0)e=s.neg(),n=p,r=c.neg(),i=f;else if(r&&2==++m)break;s=c,d=l,l=c,g=p,p=f,y=b,b=_}a=c.neg(),u=f;var w=r.sqr().add(i.sqr());return a.sqr().add(u.sqr()).cmp(w)>=0&&(a=e,u=n),r.negative&&(r=r.neg(),i=i.neg()),a.negative&&(a=a.neg(),u=u.neg()),[{a:r,b:i},{a:a,b:u}]},c.prototype._endoSplit=function(t){var e=this.endo.basis,n=e[0],r=e[1],i=r.b.mul(t).divRound(this.n),o=n.b.neg().mul(t).divRound(this.n),a=i.mul(n.a),u=o.mul(r.a),s=i.mul(n.b),c=o.mul(r.b);return{k1:t.sub(a).sub(u),k2:s.add(c).neg()}},c.prototype.pointFromX=function(t,e){(t=new o(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(e&&!i||!e&&i)&&(r=r.redNeg()),this.point(t,r)},c.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,n=t.y,r=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(t,e,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o<t.length;o++){var a=this._endoSplit(e[o]),u=t[o],s=u._getBeta();a.k1.negative&&(a.k1.ineg(),u=u.neg(!0)),a.k2.negative&&(a.k2.ineg(),s=s.neg(!0)),r[2*o]=u,r[2*o+1]=s,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,r,i,2*o,n),f=0;f<2*o;f++)r[f]=null,i[f]=null;return c},a(f,u.BasePoint),c.prototype.point=function(t,e,n){return new f(this,t,e,n)},c.prototype.pointFromJSON=function(t,e){return f.fromJSON(this,t,e)},f.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var n=this.curve,r=function(t){return n.point(t.x.redMul(n.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(r)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(r)}}}return e}},f.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]},f.fromJSON=function(t,e,n){"string"==typeof e&&(e=JSON.parse(e));var r=t.point(e[0],e[1],n);if(!e[2])return r;function i(e){return t.point(e[0],e[1],n)}var o=e[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},f.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)+">"},f.prototype.isInfinity=function(){return this.inf},f.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var n=e.redSqr().redISub(this.x).redISub(t.x),r=e.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},f.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,n=this.x.redSqr(),r=t.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(e).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},f.prototype.getX=function(){return this.x.fromRed()},f.prototype.getY=function(){return this.y.fromRed()},f.prototype.mul=function(t){return t=new o(t,16),this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},f.prototype.mulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},f.prototype.jmulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},f.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},f.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var n=this.precomputed,r=function(t){return t.neg()};e.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return e},f.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(h,u.BasePoint),c.prototype.jpoint=function(t,e,n){return new h(this,t,e,n)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),n=this.x.redMul(e),r=this.y.redMul(e).redMul(t);return this.curve.point(n,r)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(e),i=t.x.redMul(n),o=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(n.redMul(this.z)),u=r.redSub(i),s=o.redSub(a);if(0===u.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=u.redSqr(),f=c.redMul(u),h=r.redMul(c),l=s.redSqr().redIAdd(f).redISub(h).redISub(h),d=s.redMul(h.redISub(l)).redISub(o.redMul(f)),p=this.z.redMul(t.z).redMul(u);return this.curve.jpoint(l,d,p)},h.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),n=this.x,r=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),a=n.redSub(r),u=i.redSub(o);if(0===a.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var s=a.redSqr(),c=s.redMul(a),f=n.redMul(s),h=u.redSqr().redIAdd(c).redISub(f).redISub(f),l=u.redMul(f.redISub(h)).redISub(i.redMul(c)),d=this.z.redMul(a);return this.curve.jpoint(h,l,d)},h.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,n=0;n<t;n++)e=e.dbl();return e}var r=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,u=this.z,s=u.redSqr().redSqr(),c=a.redAdd(a);for(n=0;n<t;n++){var f=o.redSqr(),h=c.redSqr(),l=h.redSqr(),d=f.redAdd(f).redIAdd(f).redIAdd(r.redMul(s)),p=o.redMul(h),b=d.redSqr().redISub(p.redAdd(p)),g=p.redISub(b),y=d.redMul(g);y=y.redIAdd(y).redISub(l);var m=c.redMul(u);n+1<t&&(s=s.redMul(l)),o=b,u=m,c=y}return this.curve.jpoint(o,c.redMul(i),u)},h.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},h.prototype._zeroDbl=function(){var t,e,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var u=r.redAdd(r).redIAdd(r),s=u.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=s,e=u.redMul(a.redISub(s)).redISub(c),n=this.y.redAdd(this.y)}else{var f=this.x.redSqr(),h=this.y.redSqr(),l=h.redSqr(),d=this.x.redAdd(h).redSqr().redISub(f).redISub(l);d=d.redIAdd(d);var p=f.redAdd(f).redIAdd(f),b=p.redSqr(),g=l.redIAdd(l);g=(g=g.redIAdd(g)).redIAdd(g),t=b.redISub(d).redISub(d),e=p.redMul(d.redISub(t)).redISub(g),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(t,e,n)},h.prototype._threeDbl=function(){var t,e,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var u=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),s=u.redSqr().redISub(a).redISub(a);t=s;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=u.redMul(a.redISub(s)).redISub(c),n=this.y.redAdd(this.y)}else{var f=this.z.redSqr(),h=this.y.redSqr(),l=this.x.redMul(h),d=this.x.redSub(f).redMul(this.x.redAdd(f));d=d.redAdd(d).redIAdd(d);var p=l.redIAdd(l),b=(p=p.redIAdd(p)).redAdd(p);t=d.redSqr().redISub(b),n=this.y.redAdd(this.z).redSqr().redISub(h).redISub(f);var g=h.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),e=d.redMul(p.redISub(t)).redISub(g)}return this.curve.jpoint(t,e,n)},h.prototype._dbl=function(){var t=this.curve.a,e=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),o=e.redSqr(),a=n.redSqr(),u=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(i)),s=e.redAdd(e),c=(s=s.redIAdd(s)).redMul(a),f=u.redSqr().redISub(c.redAdd(c)),h=c.redISub(f),l=a.redSqr();l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var d=u.redMul(h).redISub(l),p=n.redAdd(n).redMul(r);return this.curve.jpoint(f,d,p)},h.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr(),r=e.redSqr(),i=t.redAdd(t).redIAdd(t),o=i.redSqr(),a=this.x.redAdd(e).redSqr().redISub(t).redISub(r),u=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),s=r.redIAdd(r);s=(s=(s=s.redIAdd(s)).redIAdd(s)).redIAdd(s);var c=i.redIAdd(a).redSqr().redISub(o).redISub(u).redISub(s),f=e.redMul(c);f=(f=f.redIAdd(f)).redIAdd(f);var h=this.x.redMul(u).redISub(f);h=(h=h.redIAdd(h)).redIAdd(h);var l=this.y.redMul(c.redMul(s.redISub(c)).redISub(a.redMul(u)));l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var d=this.z.redAdd(a).redSqr().redISub(n).redISub(u);return this.curve.jpoint(h,l,d)},h.prototype.mul=function(t,e){return t=new o(t,e),this.curve._wnafMul(this,t)},h.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),n=t.z.redSqr();if(0!==this.x.redMul(n).redISub(t.x.redMul(e)).cmpn(0))return!1;var r=e.redMul(this.z),i=n.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(r)).cmpn(0)},h.prototype.eqXToP=function(t){var e=this.z.redSqr(),n=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(n))return!0;for(var r=t.clone(),i=this.curve.redN.redMul(e);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}return!1},h.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)+">"},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../../elliptic":72,"../curve":75,"bn.js":16,inherits:123}],78:[function(t,e,n){"use strict";var r,i=n,o=t("hash.js"),a=t("../elliptic"),u=a.utils.assert;function s(t){"short"===t.type?this.curve=new a.curve.short(t):"edwards"===t.type?this.curve=new a.curve.edwards(t):this.curve=new a.curve.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,u(this.g.validate(),"Invalid curve"),u(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(t,e){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){var n=new s(e);return Object.defineProperty(i,t,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=s,c("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:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("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:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("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:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("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:o.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"]}),c("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:o.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"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=t("./precomputed/secp256k1")}catch(t){r=void 0}c("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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},{"../elliptic":72,"./precomputed/secp256k1":85,"hash.js":107}],79:[function(t,e,n){"use strict";var r=t("bn.js"),i=t("hmac-drbg"),o=t("../../elliptic"),a=o.utils.assert,u=t("./key"),s=t("./signature");function c(t){if(!(this instanceof c))return new c(t);"string"==typeof t&&(a(o.curves.hasOwnProperty(t),"Unknown curve "+t),t=o.curves[t]),t instanceof o.curves.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}e.exports=c,c.prototype.keyPair=function(t){return new u(this,t)},c.prototype.keyFromPrivate=function(t,e){return u.fromPrivate(this,t,e)},c.prototype.keyFromPublic=function(t,e){return u.fromPublic(this,t,e)},c.prototype.genKeyPair=function(t){t||(t={});for(var e=new i({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||o.rand(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),a=this.n.sub(new r(2));;){var u=new r(e.generate(n));if(!(u.cmp(a)>0))return u.iaddn(1),this.keyFromPrivate(u)}},c.prototype._truncateToN=function(t,e){var n=8*t.byteLength()-this.n.bitLength();return n>0&&(t=t.ushrn(n)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},c.prototype.sign=function(t,e,n,o){"object"==typeof n&&(o=n,n=null),o||(o={}),e=this.keyFromPrivate(e,n),t=this._truncateToN(new r(t,16));for(var a=this.n.byteLength(),u=e.getPrivate().toArray("be",a),c=t.toArray("be",a),f=new i({hash:this.hash,entropy:u,nonce:c,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new r(1)),l=0;;l++){var d=o.k?o.k(l):new r(f.generate(this.n.byteLength()));if(!((d=this._truncateToN(d,!0)).cmpn(1)<=0||d.cmp(h)>=0)){var p=this.g.mul(d);if(!p.isInfinity()){var b=p.getX(),g=b.umod(this.n);if(0!==g.cmpn(0)){var y=d.invm(this.n).mul(g.mul(e.getPrivate()).iadd(t));if(0!==(y=y.umod(this.n)).cmpn(0)){var m=(p.getY().isOdd()?1:0)|(0!==b.cmp(g)?2:0);return o.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),m^=1),new s({r:g,s:y,recoveryParam:m})}}}}}},c.prototype.verify=function(t,e,n,i){t=this._truncateToN(new r(t,16)),n=this.keyFromPublic(n,i);var o=(e=new s(e,"hex")).r,a=e.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 u,c=a.invm(this.n),f=c.mul(t).umod(this.n),h=c.mul(o).umod(this.n);return this.curve._maxwellTrick?!(u=this.g.jmulAdd(f,n.getPublic(),h)).isInfinity()&&u.eqXToP(o):!(u=this.g.mulAdd(f,n.getPublic(),h)).isInfinity()&&0===u.getX().umod(this.n).cmp(o)},c.prototype.recoverPubKey=function(t,e,n,i){a((3&n)===n,"The recovery param is more than two bits"),e=new s(e,i);var o=this.n,u=new r(t),c=e.r,f=e.s,h=1&n,l=n>>1;if(c.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");c=l?this.curve.pointFromX(c.add(this.curve.n),h):this.curve.pointFromX(c,h);var d=e.r.invm(o),p=o.sub(u).mul(d).umod(o),b=f.mul(d).umod(o);return this.g.mulAdd(p,c,b)},c.prototype.getKeyRecoveryParam=function(t,e,n,r){if(null!==(e=new s(e,r)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},{"../../elliptic":72,"./key":80,"./signature":81,"bn.js":16,"hmac-drbg":119}],80:[function(t,e,n){"use strict";var r=t("bn.js"),i=t("../../elliptic").utils.assert;function o(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}e.exports=o,o.fromPublic=function(t,e,n){return e instanceof o?e:new o(t,{pub:e,pubEnc:n})},o.fromPrivate=function(t,e,n){return e instanceof o?e:new o(t,{priv:e,privEnc:n})},o.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.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"}},o.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},o.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(t,e){this.priv=new r(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?i(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},o.prototype.derive=function(t){return t.mul(this.priv).getX()},o.prototype.sign=function(t,e,n){return this.ec.sign(t,this,e,n)},o.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../../elliptic":72,"bn.js":16}],81:[function(t,e,n){"use strict";var r=t("bn.js"),i=t("../../elliptic").utils,o=i.assert;function a(t,e){if(t instanceof a)return t;this._importDER(t,e)||(o(t.r&&t.s,"Signature without r or s"),this.r=new r(t.r,16),this.s=new r(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function u(t,e){var n=t[e.place++];if(!(128&n))return n;for(var r=15&n,i=0,o=0,a=e.place;o<r;o++,a++)i<<=8,i|=t[a];return e.place=a,i}function s(t){for(var e=0,n=t.length-1;!t[e]&&!(128&t[e+1])&&e<n;)e++;return 0===e?t:t.slice(e)}function c(t,e){if(e<128)t.push(e);else{var n=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|n);--n;)t.push(e>>>(n<<3)&255);t.push(e)}}e.exports=a,a.prototype._importDER=function(t,e){t=i.toArray(t,e);var n=new function(){this.place=0};if(48!==t[n.place++])return!1;if(u(t,n)+n.place!==t.length)return!1;if(2!==t[n.place++])return!1;var o=u(t,n),a=t.slice(n.place,o+n.place);if(n.place+=o,2!==t[n.place++])return!1;var s=u(t,n);if(t.length!==s+n.place)return!1;var c=t.slice(n.place,s+n.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new r(a),this.s=new r(c),this.recoveryParam=null,!0},a.prototype.toDER=function(t){var e=this.r.toArray(),n=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&n[0]&&(n=[0].concat(n)),e=s(e),n=s(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];c(r,e.length),(r=r.concat(e)).push(2),c(r,n.length);var o=r.concat(n),a=[48];return c(a,o.length),a=a.concat(o),i.encode(a,t)}},{"../../elliptic":72,"bn.js":16}],82:[function(t,e,n){"use strict";var r=t("hash.js"),i=t("../../elliptic"),o=i.utils,a=o.assert,u=o.parseBytes,s=t("./key"),c=t("./signature");function f(t){if(a("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof f))return new f(t);t=i.curves[t].curve;this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=r.sha512}e.exports=f,f.prototype.sign=function(t,e){t=u(t);var n=this.keyFromSecret(e),r=this.hashInt(n.messagePrefix(),t),i=this.g.mul(r),o=this.encodePoint(i),a=this.hashInt(o,n.pubBytes(),t).mul(n.priv()),s=r.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:s,Rencoded:o})},f.prototype.verify=function(t,e,n){t=u(t),e=this.makeSignature(e);var r=this.keyFromPublic(n),i=this.hashInt(e.Rencoded(),r.pubBytes(),t),o=this.g.mul(e.S());return e.R().add(r.pub().mul(i)).eq(o)},f.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return o.intFromLE(t.digest()).umod(this.curve.n)},f.prototype.keyFromPublic=function(t){return s.fromPublic(this,t)},f.prototype.keyFromSecret=function(t){return s.fromSecret(this,t)},f.prototype.makeSignature=function(t){return t instanceof c?t:new c(this,t)},f.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},f.prototype.decodePoint=function(t){var e=(t=o.parseBytes(t)).length-1,n=t.slice(0,e).concat(-129&t[e]),r=0!=(128&t[e]),i=o.intFromLE(n);return this.curve.pointFromY(i,r)},f.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},f.prototype.decodeInt=function(t){return o.intFromLE(t)},f.prototype.isPoint=function(t){return t instanceof this.pointClass}},{"../../elliptic":72,"./key":83,"./signature":84,"hash.js":107}],83:[function(t,e,n){"use strict";var r=t("../../elliptic").utils,i=r.assert,o=r.parseBytes,a=r.cachedProperty;function u(t,e){this.eddsa=t,this._secret=o(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=o(e.pub)}u.fromPublic=function(t,e){return e instanceof u?e:new u(t,{pub:e})},u.fromSecret=function(t,e){return e instanceof u?e:new u(t,{secret:e})},u.prototype.secret=function(){return this._secret},a(u,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),a(u,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),a(u,"privBytes",function(){var t=this.eddsa,e=this.hash(),n=t.encodingLength-1,r=e.slice(0,t.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r}),a(u,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),a(u,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),a(u,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),u.prototype.sign=function(t){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},u.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},u.prototype.getSecret=function(t){return i(this._secret,"KeyPair is public only"),r.encode(this.secret(),t)},u.prototype.getPublic=function(t){return r.encode(this.pubBytes(),t)},e.exports=u},{"../../elliptic":72}],84:[function(t,e,n){"use strict";var r=t("bn.js"),i=t("../../elliptic").utils,o=i.assert,a=i.cachedProperty,u=i.parseBytes;function s(t,e){this.eddsa=t,"object"!=typeof e&&(e=u(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),o(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof r&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}a(s,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),a(s,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),a(s,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),a(s,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),s.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},s.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=s},{"../../elliptic":72,"bn.js":16}],85:[function(t,e,n){e.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"]]}}},{}],86:[function(t,e,n){"use strict";var r=n,i=t("bn.js"),o=t("minimalistic-assert"),a=t("minimalistic-crypto-utils");r.assert=o,r.toArray=a.toArray,r.zero2=a.zero2,r.toHex=a.toHex,r.encode=a.encode,r.getNAF=function(t,e){for(var n=[],r=1<<e+1,i=t.clone();i.cmpn(1)>=0;){var o;if(i.isOdd()){var a=i.andln(r-1);o=a>(r>>1)-1?(r>>1)-a:a,i.isubn(o)}else o=0;n.push(o);for(var u=0!==i.cmpn(0)&&0===i.andln(r-1)?e+1:1,s=1;s<u;s++)n.push(0);i.iushrn(u)}return n},r.getJSF=function(t,e){var n=[[],[]];t=t.clone(),e=e.clone();for(var r=0,i=0;t.cmpn(-r)>0||e.cmpn(-i)>0;){var o,a,u,s=t.andln(3)+r&3,c=e.andln(3)+i&3;3===s&&(s=-1),3===c&&(c=-1),o=0==(1&s)?0:3!=(u=t.andln(7)+r&7)&&5!==u||2!==c?s:-s,n[0].push(o),a=0==(1&c)?0:3!=(u=e.andln(7)+i&7)&&5!==u||2!==s?c:-c,n[1].push(a),2*r===o+1&&(r=1-r),2*i===a+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return n},r.cachedProperty=function(t,e,n){var r="_"+e;t.prototype[e]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(t){return"string"==typeof t?r.toArray(t,"hex"):t},r.intFromLE=function(t){return new i(t,"hex","le")}},{"bn.js":16,"minimalistic-assert":129,"minimalistic-crypto-utils":130}],87:[function(t,e,n){e.exports={_from:"elliptic@^6.0.0",_id:"elliptic@6.4.0",_inBundle:!1,_integrity:"sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=",_location:"/elliptic",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"elliptic@^6.0.0",name:"elliptic",escapedName:"elliptic",rawSpec:"^6.0.0",saveSpec:null,fetchSpec:"^6.0.0"},_requiredBy:["/browserify-sign","/create-ecdh"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz",_shasum:"cac9af8762c85836187003c8dfe193e5e2eae5df",_spec:"elliptic@^6.0.0",_where:"/Users/rreusser/projects/node/rreusser/rreusser.github.io/src/node_modules/browserify-sign",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},bundleDependencies:!1,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"},deprecated:!1,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"},files:["lib"],homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",name:"elliptic",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"}},{}],88:[function(t,e,n){"use strict";e.exports=function(){}},{}],89:[function(t,e,n){"use strict";e.exports=t("./is-implemented")()?Object.assign:t("./shim")},{"./is-implemented":90,"./shim":91}],90:[function(t,e,n){"use strict";e.exports=function(){var t,e=Object.assign;return"function"==typeof e&&(e(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}},{}],91:[function(t,e,n){"use strict";var r=t("../keys"),i=t("../valid-value"),o=Math.max;e.exports=function(t,e){var n,a,u,s=o(arguments.length,2);for(t=Object(i(t)),u=function(r){try{t[r]=e[r]}catch(t){n||(n=t)}},a=1;a<s;++a)e=arguments[a],r(e).forEach(u);if(void 0!==n)throw n;return t}},{"../keys":94,"../valid-value":99}],92:[function(t,e,n){"use strict";e.exports=function(t){return"function"==typeof t}},{}],93:[function(t,e,n){"use strict";var r=t("../function/noop")();e.exports=function(t){return t!==r&&null!==t}},{"../function/noop":88}],94:[function(t,e,n){"use strict";e.exports=t("./is-implemented")()?Object.keys:t("./shim")},{"./is-implemented":95,"./shim":96}],95:[function(t,e,n){"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}},{}],96:[function(t,e,n){"use strict";var r=t("../is-value"),i=Object.keys;e.exports=function(t){return i(r(t)?Object(t):t)}},{"../is-value":93}],97:[function(t,e,n){"use strict";var r=t("./is-value"),i=Array.prototype.forEach,o=Object.create;e.exports=function(t){var e=o(null);return i.call(arguments,function(t){r(t)&&function(t,e){var n;for(n in t)e[n]=t[n]}(Object(t),e)}),e}},{"./is-value":93}],98:[function(t,e,n){"use strict";e.exports=function(t){if("function"!=typeof t)throw new TypeError(t+" is not a function");return t}},{}],99:[function(t,e,n){"use strict";var r=t("./is-value");e.exports=function(t){if(!r(t))throw new TypeError("Cannot use null or undefined");return t}},{"./is-value":93}],100:[function(t,e,n){"use strict";e.exports=t("./is-implemented")()?String.prototype.contains:t("./shim")},{"./is-implemented":101,"./shim":102}],101:[function(t,e,n){"use strict";var r="razdwatrzy";e.exports=function(){return"function"==typeof r.contains&&(!0===r.contains("dwa")&&!1===r.contains("foo"))}},{}],102:[function(t,e,n){"use strict";var r=String.prototype.indexOf;e.exports=function(t){return r.call(this,t,arguments[1])>-1}},{}],103:[function(t,e,n){"use strict";var r,i,o,a,u,s,c,f=t("d"),h=t("es5-ext/object/valid-callable"),l=Function.prototype.apply,d=Function.prototype.call,p=Object.create,b=Object.defineProperty,g=Object.defineProperties,y=Object.prototype.hasOwnProperty,m={configurable:!0,enumerable:!1,writable:!0};u={on:r=function(t,e){var n;return h(e),y.call(this,"__ee__")?n=this.__ee__:(n=m.value=p(null),b(this,"__ee__",m),m.value=null),n[t]?"object"==typeof n[t]?n[t].push(e):n[t]=[n[t],e]:n[t]=e,this},once:i=function(t,e){var n,i;return h(e),i=this,r.call(this,t,n=function(){o.call(i,t,n),l.call(e,this,arguments)}),n.__eeOnceListener__=e,this},off:o=function(t,e){var n,r,i,o;if(h(e),!y.call(this,"__ee__"))return this;if(!(n=this.__ee__)[t])return this;if("object"==typeof(r=n[t]))for(o=0;i=r[o];++o)i!==e&&i.__eeOnceListener__!==e||(2===r.length?n[t]=r[o?0:1]:r.splice(o,1));else r!==e&&r.__eeOnceListener__!==e||delete n[t];return this},emit:a=function(t){var e,n,r,i,o;if(y.call(this,"__ee__")&&(i=this.__ee__[t]))if("object"==typeof i){for(n=arguments.length,o=new Array(n-1),e=1;e<n;++e)o[e-1]=arguments[e];for(i=i.slice(),e=0;r=i[e];++e)l.call(r,this,o)}else switch(arguments.length){case 1:d.call(i,this);break;case 2:d.call(i,this,arguments[1]);break;case 3:d.call(i,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,o=new Array(n-1),e=1;e<n;++e)o[e-1]=arguments[e];l.call(i,this,o)}}},s={on:f(r),once:f(i),off:f(o),emit:f(a)},c=g({},s),e.exports=n=function(t){return null==t?p(c):g(Object(t),s)},n.methods=u},{d:60,"es5-ext/object/valid-callable":98}],104:[function(t,e,n){var r=Object.create||function(t){var e=function(){};return e.prototype=t,new e},i=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return n},o=Function.prototype.bind||function(t){var e=this;return function(){return e.apply(t,arguments)}};function a(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=r(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}e.exports=a,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._maxListeners=void 0;var u,s=10;try{var c={};Object.defineProperty&&Object.defineProperty(c,"x",{value:0}),u=0===c.x}catch(t){u=!1}function f(t){return void 0===t._maxListeners?a.defaultMaxListeners:t._maxListeners}function h(t,e,n,i){var o,a,u;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((a=t._events)?(a.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),a=t._events),u=a[e]):(a=t._events=r(null),t._eventsCount=0),u){if("function"==typeof u?u=a[e]=i?[n,u]:[u,n]:i?u.unshift(n):u.push(n),!u.warned&&(o=f(t))&&o>0&&u.length>o){u.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+u.length+' "'+String(e)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');s.name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=u.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",s.name,s.message)}}else u=a[e]=n,++t._eventsCount;return t}function l(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var t=new Array(arguments.length),e=0;e<t.length;++e)t[e]=arguments[e];this.listener.apply(this.target,t)}}function d(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=o.call(l,r);return i.listener=n,r.wrapFn=i,i}function p(t){var e=this._events;if(e){var n=e[t];if("function"==typeof n)return 1;if(n)return n.length}return 0}function b(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}u?Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||t!=t)throw new TypeError('"defaultMaxListeners" must be a positive number');s=t}}):a.defaultMaxListeners=s,a.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},a.prototype.getMaxListeners=function(){return f(this)},a.prototype.emit=function(t){var e,n,r,i,o,a,u="error"===t;if(a=this._events)u=u&&null==a.error;else if(!u)return!1;if(u){if(arguments.length>1&&(e=arguments[1]),e instanceof Error)throw e;var s=new Error('Unhandled "error" event. ('+e+")");throw s.context=e,s}if(!(n=a[t]))return!1;var c="function"==typeof n;switch(r=arguments.length){case 1:!function(t,e,n){if(e)t.call(n);else for(var r=t.length,i=b(t,r),o=0;o<r;++o)i[o].call(n)}(n,c,this);break;case 2:!function(t,e,n,r){if(e)t.call(n,r);else for(var i=t.length,o=b(t,i),a=0;a<i;++a)o[a].call(n,r)}(n,c,this,arguments[1]);break;case 3:!function(t,e,n,r,i){if(e)t.call(n,r,i);else for(var o=t.length,a=b(t,o),u=0;u<o;++u)a[u].call(n,r,i)}(n,c,this,arguments[1],arguments[2]);break;case 4:!function(t,e,n,r,i,o){if(e)t.call(n,r,i,o);else for(var a=t.length,u=b(t,a),s=0;s<a;++s)u[s].call(n,r,i,o)}(n,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];!function(t,e,n,r){if(e)t.apply(n,r);else for(var i=t.length,o=b(t,i),a=0;a<i;++a)o[a].apply(n,r)}(n,c,this,i)}return!0},a.prototype.addListener=function(t,e){return h(this,t,e,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(t,e){return h(this,t,e,!0)},a.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.on(t,d(this,t,e)),this},a.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,d(this,t,e)),this},a.prototype.removeListener=function(t,e){var n,i,o,a,u;if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');if(!(i=this._events))return this;if(!(n=i[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=r(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(o=-1,a=n.length-1;a>=0;a--)if(n[a]===e||n[a].listener===e){u=n[a].listener,o=a;break}if(o<0)return this;0===o?n.shift():function(t,e){for(var n=e,r=n+1,i=t.length;r<i;n+=1,r+=1)t[n]=t[r];t.pop()}(n,o),1===n.length&&(i[t]=n[0]),i.removeListener&&this.emit("removeListener",t,u||e)}return this},a.prototype.removeAllListeners=function(t){var e,n,o;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=r(null),this._eventsCount=0):n[t]&&(0==--this._eventsCount?this._events=r(null):delete n[t]),this;if(0===arguments.length){var a,u=i(n);for(o=0;o<u.length;++o)"removeListener"!==(a=u[o])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=r(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(e)for(o=e.length-1;o>=0;o--)this.removeListener(t,e[o]);return this},a.prototype.listeners=function(t){var e,n=this._events;return n&&(e=n[t])?"function"==typeof e?[e.listener||e]:function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(e):[]},a.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},a.prototype.listenerCount=p,a.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],105:[function(t,e,n){var r=t("safe-buffer").Buffer,i=t("md5.js");e.exports=function(t,e,n,o){if(r.isBuffer(t)||(t=r.from(t,"binary")),e&&(r.isBuffer(e)||(e=r.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=n/8,u=r.alloc(a),s=r.alloc(o||0),c=r.alloc(0);a>0||o>0;){var f=new i;f.update(c),f.update(t),e&&f.update(e),c=f.digest();var h=0;if(a>0){var l=u.length-a;h=Math.min(a,c.length),c.copy(u,l,0,h),a-=h}if(h<c.length&&o>0){var d=s.length-o,p=Math.min(o,c.length-h);c.copy(s,d,h,h+p),o-=p}}return c.fill(0),{key:u,iv:s}}},{"md5.js":126,"safe-buffer":175}],106:[function(t,e,n){(function(n){"use strict";var r=t("stream").Transform;function i(t){r.call(this),this._block=new n(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}t("inherits")(i,r),i.prototype._transform=function(t,e,r){var i=null;try{"buffer"!==e&&(t=new n(t,e)),this.update(t)}catch(t){i=t}r(i)},i.prototype._flush=function(t){var e=null;try{this.push(this._digest())}catch(t){e=t}t(e)},i.prototype.update=function(t,e){if(!n.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");n.isBuffer(t)||(t=new n(t,e||"binary"));for(var r=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)r[o++]=t[i++];this._update(),this._blockOffset=0}for(;i<t.length;)r[this._blockOffset++]=t[i++];for(var a=0,u=8*t.length;u>0;++a)this._length[a]+=u,(u=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*u);return this},i.prototype._update=function(t){throw new Error("_update is not implemented")},i.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();return void 0!==t&&(e=e.toString(t)),e},i.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=i}).call(this,t("buffer").Buffer)},{buffer:48,inherits:123,stream:184}],107:[function(t,e,n){var r=n;r.utils=t("./hash/utils"),r.common=t("./hash/common"),r.sha=t("./hash/sha"),r.ripemd=t("./hash/ripemd"),r.hmac=t("./hash/hmac"),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},{"./hash/common":108,"./hash/hmac":109,"./hash/ripemd":110,"./hash/sha":111,"./hash/utils":118}],108:[function(t,e,n){"use strict";var r=t("./utils"),i=t("minimalistic-assert");function o(){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}n.BlockHash=o,o.prototype.update=function(t,e){if(t=r.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-n,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},o.prototype.digest=function(t){return this.update(this._pad()),i(null===this.pending),this._digest(t)},o.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=t>>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},{"./utils":118,"minimalistic-assert":129}],109:[function(t,e,n){"use strict";var r=t("./utils"),i=t("minimalistic-assert");function o(t,e,n){if(!(this instanceof o))return new o(t,e,n);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(e,n))}e.exports=o,o.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),i(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},o.prototype.update=function(t,e){return this.inner.update(t,e),this},o.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},{"./utils":118,"minimalistic-assert":129}],110:[function(t,e,n){"use strict";var r=t("./utils"),i=t("./common"),o=r.rotl32,a=r.sum32,u=r.sum32_3,s=r.sum32_4,c=i.BlockHash;function f(){if(!(this instanceof f))return new f;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function h(t,e,n,r){return t<=15?e^n^r:t<=31?e&n|~e&r:t<=47?(e|~n)^r:t<=63?e&r|n&~r:e^(n|~r)}function l(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function d(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}r.inherits(f,c),n.ripemd160=f,f.blockSize=512,f.outSize=160,f.hmacStrength=192,f.padLength=64,f.prototype._update=function(t,e){for(var n=this.h[0],r=this.h[1],i=this.h[2],c=this.h[3],f=this.h[4],m=n,v=r,_=i,w=c,x=f,A=0;A<80;A++){var E=a(o(s(n,h(A,r,i,c),t[p[A]+e],l(A)),g[A]),f);n=f,f=c,c=o(i,10),i=r,r=E,E=a(o(s(m,h(79-A,v,_,w),t[b[A]+e],d(A)),y[A]),x),m=x,x=w,w=o(_,10),_=v,v=E}E=u(this.h[1],i,w),this.h[1]=u(this.h[2],c,x),this.h[2]=u(this.h[3],f,m),this.h[3]=u(this.h[4],n,v),this.h[4]=u(this.h[0],r,_),this.h[0]=E},f.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var p=[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],b=[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],g=[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],y=[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":108,"./utils":118}],111:[function(t,e,n){"use strict";n.sha1=t("./sha/1"),n.sha224=t("./sha/224"),n.sha256=t("./sha/256"),n.sha384=t("./sha/384"),n.sha512=t("./sha/512")},{"./sha/1":112,"./sha/224":113,"./sha/256":114,"./sha/384":115,"./sha/512":116}],112:[function(t,e,n){"use strict";var r=t("../utils"),i=t("../common"),o=t("./common"),a=r.rotl32,u=r.sum32,s=r.sum32_5,c=o.ft_1,f=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function l(){if(!(this instanceof l))return new l;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(l,f),e.exports=l,l.blockSize=512,l.outSize=160,l.hmacStrength=80,l.padLength=64,l.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=a(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],f=this.h[2],l=this.h[3],d=this.h[4];for(r=0;r<n.length;r++){var p=~~(r/20),b=s(a(i,5),c(p,o,f,l),d,n[r],h[p]);d=l,l=f,f=a(o,30),o=i,i=b}this.h[0]=u(this.h[0],i),this.h[1]=u(this.h[1],o),this.h[2]=u(this.h[2],f),this.h[3]=u(this.h[3],l),this.h[4]=u(this.h[4],d)},l.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},{"../common":108,"../utils":118,"./common":117}],113:[function(t,e,n){"use strict";var r=t("../utils"),i=t("./256");function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},{"../utils":118,"./256":114}],114:[function(t,e,n){"use strict";var r=t("../utils"),i=t("../common"),o=t("./common"),a=t("minimalistic-assert"),u=r.sum32,s=r.sum32_4,c=r.sum32_5,f=o.ch32,h=o.maj32,l=o.s0_256,d=o.s1_256,p=o.g0_256,b=o.g1_256,g=i.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];function m(){if(!(this instanceof m))return new m;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}r.inherits(m,g),e.exports=m,m.blockSize=512,m.outSize=256,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=s(b(n[r-2]),n[r-7],p(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],g=this.h[2],y=this.h[3],m=this.h[4],v=this.h[5],_=this.h[6],w=this.h[7];for(a(this.k.length===n.length),r=0;r<n.length;r++){var x=c(w,d(m),f(m,v,_),this.k[r],n[r]),A=u(l(i),h(i,o,g));w=_,_=v,v=m,m=u(y,x),y=g,g=o,o=i,i=u(x,A)}this.h[0]=u(this.h[0],i),this.h[1]=u(this.h[1],o),this.h[2]=u(this.h[2],g),this.h[3]=u(this.h[3],y),this.h[4]=u(this.h[4],m),this.h[5]=u(this.h[5],v),this.h[6]=u(this.h[6],_),this.h[7]=u(this.h[7],w)},m.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},{"../common":108,"../utils":118,"./common":117,"minimalistic-assert":129}],115:[function(t,e,n){"use strict";var r=t("../utils"),i=t("./512");function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},{"../utils":118,"./512":116}],116:[function(t,e,n){"use strict";var r=t("../utils"),i=t("../common"),o=t("minimalistic-assert"),a=r.rotr64_hi,u=r.rotr64_lo,s=r.shr64_hi,c=r.shr64_lo,f=r.sum64,h=r.sum64_hi,l=r.sum64_lo,d=r.sum64_4_hi,p=r.sum64_4_lo,b=r.sum64_5_hi,g=r.sum64_5_lo,y=i.BlockHash,m=[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];function v(){if(!(this instanceof v))return new v;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=m,this.W=new Array(160)}function _(t,e,n,r,i){var o=t&n^~t&i;return o<0&&(o+=4294967296),o}function w(t,e,n,r,i,o){var a=e&r^~e&o;return a<0&&(a+=4294967296),a}function x(t,e,n,r,i){var o=t&n^t&i^n&i;return o<0&&(o+=4294967296),o}function A(t,e,n,r,i,o){var a=e&r^e&o^r&o;return a<0&&(a+=4294967296),a}function E(t,e){var n=a(t,e,28)^a(e,t,2)^a(e,t,7);return n<0&&(n+=4294967296),n}function M(t,e){var n=u(t,e,28)^u(e,t,2)^u(e,t,7);return n<0&&(n+=4294967296),n}function C(t,e){var n=a(t,e,14)^a(t,e,18)^a(e,t,9);return n<0&&(n+=4294967296),n}function S(t,e){var n=u(t,e,14)^u(t,e,18)^u(e,t,9);return n<0&&(n+=4294967296),n}function B(t,e){var n=a(t,e,1)^a(t,e,8)^s(t,e,7);return n<0&&(n+=4294967296),n}function k(t,e){var n=u(t,e,1)^u(t,e,8)^c(t,e,7);return n<0&&(n+=4294967296),n}function I(t,e){var n=a(t,e,19)^a(e,t,29)^s(t,e,6);return n<0&&(n+=4294967296),n}function F(t,e){var n=u(t,e,19)^u(e,t,29)^c(t,e,6);return n<0&&(n+=4294967296),n}r.inherits(v,y),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(t,e){for(var n=this.W,r=0;r<32;r++)n[r]=t[e+r];for(;r<n.length;r+=2){var i=I(n[r-4],n[r-3]),o=F(n[r-4],n[r-3]),a=n[r-14],u=n[r-13],s=B(n[r-30],n[r-29]),c=k(n[r-30],n[r-29]),f=n[r-32],h=n[r-31];n[r]=d(i,o,a,u,s,c,f,h),n[r+1]=p(i,o,a,u,s,c,f,h)}},v.prototype._update=function(t,e){this._prepareBlock(t,e);var n=this.W,r=this.h[0],i=this.h[1],a=this.h[2],u=this.h[3],s=this.h[4],c=this.h[5],d=this.h[6],p=this.h[7],y=this.h[8],m=this.h[9],v=this.h[10],B=this.h[11],k=this.h[12],I=this.h[13],F=this.h[14],D=this.h[15];o(this.k.length===n.length);for(var T=0;T<n.length;T+=2){var N=F,j=D,R=C(y,m),O=S(y,m),L=_(y,m,v,B,k),U=w(y,m,v,B,k,I),P=this.k[T],H=this.k[T+1],z=n[T],V=n[T+1],X=b(N,j,R,O,L,U,P,H,z,V),q=g(N,j,R,O,L,U,P,H,z,V);N=E(r,i),j=M(r,i),R=x(r,i,a,u,s),O=A(r,i,a,u,s,c);var W=h(N,j,R,O),Y=l(N,j,R,O);F=k,D=I,k=v,I=B,v=y,B=m,y=h(d,p,X,q),m=l(p,p,X,q),d=s,p=c,s=a,c=u,a=r,u=i,r=h(X,q,W,Y),i=l(X,q,W,Y)}f(this.h,0,r,i),f(this.h,2,a,u),f(this.h,4,s,c),f(this.h,6,d,p),f(this.h,8,y,m),f(this.h,10,v,B),f(this.h,12,k,I),f(this.h,14,F,D)},v.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},{"../common":108,"../utils":118,"minimalistic-assert":129}],117:[function(t,e,n){"use strict";var r=t("../utils").rotr32;function i(t,e,n){return t&e^~t&n}function o(t,e,n){return t&e^t&n^e&n}function a(t,e,n){return t^e^n}n.ft_1=function(t,e,n,r){return 0===t?i(e,n,r):1===t||3===t?a(e,n,r):2===t?o(e,n,r):void 0},n.ch32=i,n.maj32=o,n.p32=a,n.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22)},n.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25)},n.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3},n.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},{"../utils":118}],118:[function(t,e,n){"use strict";var r=t("minimalistic-assert"),i=t("inherits");function o(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function a(t){return 1===t.length?"0"+t:t}function u(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}n.inherits=i,n.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),r=0;r<t.length;r+=2)n.push(parseInt(t[r]+t[r+1],16))}else for(var r=0;r<t.length;r++){var i=t.charCodeAt(r),o=i>>8,a=255&i;o?n.push(o,a):n.push(a)}else for(r=0;r<t.length;r++)n[r]=0|t[r];return n},n.toHex=function(t){for(var e="",n=0;n<t.length;n++)e+=a(t[n].toString(16));return e},n.htonl=o,n.toHex32=function(t,e){for(var n="",r=0;r<t.length;r++){var i=t[r];"little"===e&&(i=o(i)),n+=u(i.toString(16))}return n},n.zero2=a,n.zero8=u,n.join32=function(t,e,n,i){var o=n-e;r(o%4==0);for(var a=new Array(o/4),u=0,s=e;u<a.length;u++,s+=4){var c;c="big"===i?t[s]<<24|t[s+1]<<16|t[s+2]<<8|t[s+3]:t[s+3]<<24|t[s+2]<<16|t[s+1]<<8|t[s],a[u]=c>>>0}return a},n.split32=function(t,e){for(var n=new Array(4*t.length),r=0,i=0;r<t.length;r++,i+=4){var o=t[r];"big"===e?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},n.rotr32=function(t,e){return t>>>e|t<<32-e},n.rotl32=function(t,e){return t<<e|t>>>32-e},n.sum32=function(t,e){return t+e>>>0},n.sum32_3=function(t,e,n){return t+e+n>>>0},n.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},n.sum32_5=function(t,e,n,r,i){return t+e+n+r+i>>>0},n.sum64=function(t,e,n,r){var i=t[e],o=r+t[e+1]>>>0,a=(o<r?1:0)+n+i;t[e]=a>>>0,t[e+1]=o},n.sum64_hi=function(t,e,n,r){return(e+r>>>0<e?1:0)+t+n>>>0},n.sum64_lo=function(t,e,n,r){return e+r>>>0},n.sum64_4_hi=function(t,e,n,r,i,o,a,u){var s=0,c=e;return s+=(c=c+r>>>0)<e?1:0,s+=(c=c+o>>>0)<o?1:0,t+n+i+a+(s+=(c=c+u>>>0)<u?1:0)>>>0},n.sum64_4_lo=function(t,e,n,r,i,o,a,u){return e+r+o+u>>>0},n.sum64_5_hi=function(t,e,n,r,i,o,a,u,s,c){var f=0,h=e;return f+=(h=h+r>>>0)<e?1:0,f+=(h=h+o>>>0)<o?1:0,f+=(h=h+u>>>0)<u?1:0,t+n+i+a+s+(f+=(h=h+c>>>0)<c?1:0)>>>0},n.sum64_5_lo=function(t,e,n,r,i,o,a,u,s,c){return e+r+o+u+c>>>0},n.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},n.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},n.shr64_hi=function(t,e,n){return t>>>n},n.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},{inherits:123,"minimalistic-assert":129}],119:[function(t,e,n){"use strict";var r=t("hash.js"),i=t("minimalistic-crypto-utils"),o=t("minimalistic-assert");function a(t){if(!(this instanceof a))return new a(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=i.toArray(t.entropy,t.entropyEnc||"hex"),n=i.toArray(t.nonce,t.nonceEnc||"hex"),r=i.toArray(t.pers,t.persEnc||"hex");o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,r)}e.exports=a,a.prototype._init=function(t,e,n){var r=t.concat(e).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},a.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(t,e,n,r){"string"!=typeof e&&(r=n,n=e,e=null),t=i.toArray(t,e),n=i.toArray(n,r),o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1},a.prototype.generate=function(t,e,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(r=n,n=e,e=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));for(var o=[];o.length<t;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,t);return this._update(n),this._reseed++,i.encode(a,e)}},{"hash.js":107,"minimalistic-assert":129,"minimalistic-crypto-utils":130}],120:[function(t,e,n){var r=t("http"),i=t("url"),o=e.exports;for(var a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);function u(t){if("string"==typeof t&&(t=i.parse(t)),t.protocol||(t.protocol="https:"),"https:"!==t.protocol)throw new Error('Protocol "'+t.protocol+'" not supported. Expected "https:"');return t}o.request=function(t,e){return t=u(t),r.request.call(this,t,e)},o.get=function(t,e){return t=u(t),r.get.call(this,t,e)}},{http:185,url:191}],121:[function(t,e,n){n.read=function(t,e,n,r,i){var o,a,u=8*i-r-1,s=(1<<u)-1,c=s>>1,f=-7,h=n?i-1:0,l=n?-1:1,d=t[e+h];for(h+=l,o=d&(1<<-f)-1,d>>=-f,f+=u;f>0;o=256*o+t[e+h],h+=l,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=r;f>0;a=256*a+t[e+h],h+=l,f-=8);if(0===o)o=1-c;else{if(o===s)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=c}return(d?-1:1)*a*Math.pow(2,o-r)},n.write=function(t,e,n,r,i,o){var a,u,s,c=8*o-i-1,f=(1<<c)-1,h=f>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,b=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),(e+=a+h>=1?l/s:l*Math.pow(2,1-h))*s>=2&&(a++,s/=2),a+h>=f?(u=0,a=f):a+h>=1?(u=(e*s-1)*Math.pow(2,i),a+=h):(u=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=255&u,d+=p,u/=256,i-=8);for(a=a<<i|u,c+=i;c>0;t[n+d]=255&a,d+=p,a/=256,c-=8);t[n+d-p]|=128*b}},{}],122:[function(t,e,n){var r=[].indexOf;e.exports=function(t,e){if(r)return t.indexOf(e);for(var n=0;n<t.length;++n)if(t[n]===e)return n;return-1}},{}],123:[function(t,e,n){"function"==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},{}],124:[function(t,e,n){function r(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}e.exports=function(t){return null!=t&&(r(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&r(t.slice(0,0))}(t)||!!t._isBuffer)}},{}],125:[function(t,e,n){var r={}.toString;e.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},{}],126:[function(t,e,n){(function(n){"use strict";var r=t("inherits"),i=t("hash-base"),o=new Array(16);function a(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(t,e){return t<<e|t>>>32-e}function s(t,e,n,r,i,o,a){return u(t+(e&n|~e&r)+i+o|0,a)+e|0}function c(t,e,n,r,i,o,a){return u(t+(e&r|n&~r)+i+o|0,a)+e|0}function f(t,e,n,r,i,o,a){return u(t+(e^n^r)+i+o|0,a)+e|0}function h(t,e,n,r,i,o,a){return u(t+(n^(e|~r))+i+o|0,a)+e|0}r(a,i),a.prototype._update=function(){for(var t=o,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var n=this._a,r=this._b,i=this._c,a=this._d;r=h(r=h(r=h(r=h(r=f(r=f(r=f(r=f(r=c(r=c(r=c(r=c(r=s(r=s(r=s(r=s(r,i=s(i,a=s(a,n=s(n,r,i,a,t[0],3614090360,7),r,i,t[1],3905402710,12),n,r,t[2],606105819,17),a,n,t[3],3250441966,22),i=s(i,a=s(a,n=s(n,r,i,a,t[4],4118548399,7),r,i,t[5],1200080426,12),n,r,t[6],2821735955,17),a,n,t[7],4249261313,22),i=s(i,a=s(a,n=s(n,r,i,a,t[8],1770035416,7),r,i,t[9],2336552879,12),n,r,t[10],4294925233,17),a,n,t[11],2304563134,22),i=s(i,a=s(a,n=s(n,r,i,a,t[12],1804603682,7),r,i,t[13],4254626195,12),n,r,t[14],2792965006,17),a,n,t[15],1236535329,22),i=c(i,a=c(a,n=c(n,r,i,a,t[1],4129170786,5),r,i,t[6],3225465664,9),n,r,t[11],643717713,14),a,n,t[0],3921069994,20),i=c(i,a=c(a,n=c(n,r,i,a,t[5],3593408605,5),r,i,t[10],38016083,9),n,r,t[15],3634488961,14),a,n,t[4],3889429448,20),i=c(i,a=c(a,n=c(n,r,i,a,t[9],568446438,5),r,i,t[14],3275163606,9),n,r,t[3],4107603335,14),a,n,t[8],1163531501,20),i=c(i,a=c(a,n=c(n,r,i,a,t[13],2850285829,5),r,i,t[2],4243563512,9),n,r,t[7],1735328473,14),a,n,t[12],2368359562,20),i=f(i,a=f(a,n=f(n,r,i,a,t[5],4294588738,4),r,i,t[8],2272392833,11),n,r,t[11],1839030562,16),a,n,t[14],4259657740,23),i=f(i,a=f(a,n=f(n,r,i,a,t[1],2763975236,4),r,i,t[4],1272893353,11),n,r,t[7],4139469664,16),a,n,t[10],3200236656,23),i=f(i,a=f(a,n=f(n,r,i,a,t[13],681279174,4),r,i,t[0],3936430074,11),n,r,t[3],3572445317,16),a,n,t[6],76029189,23),i=f(i,a=f(a,n=f(n,r,i,a,t[9],3654602809,4),r,i,t[12],3873151461,11),n,r,t[15],530742520,16),a,n,t[2],3299628645,23),i=h(i,a=h(a,n=h(n,r,i,a,t[0],4096336452,6),r,i,t[7],1126891415,10),n,r,t[14],2878612391,15),a,n,t[5],4237533241,21),i=h(i,a=h(a,n=h(n,r,i,a,t[12],1700485571,6),r,i,t[3],2399980690,10),n,r,t[10],4293915773,15),a,n,t[1],2240044497,21),i=h(i,a=h(a,n=h(n,r,i,a,t[8],1873313359,6),r,i,t[15],4264355552,10),n,r,t[6],2734768916,15),a,n,t[13],1309151649,21),i=h(i,a=h(a,n=h(n,r,i,a,t[4],4149444226,6),r,i,t[11],3174756917,10),n,r,t[2],718787259,15),a,n,t[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+a|0},a.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 t=new n(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},e.exports=a}).call(this,t("buffer").Buffer)},{buffer:48,"hash-base":127,inherits:123}],127:[function(t,e,n){"use strict";var r=t("safe-buffer").Buffer,i=t("stream").Transform;function o(t){i.call(this),this._block=r.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}t("inherits")(o,i),o.prototype._transform=function(t,e,n){var r=null;try{this.update(t,e)}catch(t){r=t}n(r)},o.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},o.prototype.update=function(t,e){if(function(t,e){if(!r.isBuffer(t)&&"string"!=typeof t)throw new TypeError(e+" must be a string or a buffer")}(t,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(t)||(t=r.from(t,e));for(var n=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)n[o++]=t[i++];this._update(),this._blockOffset=0}for(;i<t.length;)n[this._blockOffset++]=t[i++];for(var a=0,u=8*t.length;u>0;++a)this._length[a]+=u,(u=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*u);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return e},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},{inherits:123,"safe-buffer":175,stream:184}],128:[function(t,e,n){var r=t("bn.js"),i=t("brorand");function o(t){this.rand=t||new i.Rand}e.exports=o,o.create=function(t){return new o(t)},o.prototype._randbelow=function(t){var e=t.bitLength(),n=Math.ceil(e/8);do{var i=new r(this.rand.generate(n))}while(i.cmp(t)>=0);return i},o.prototype._randrange=function(t,e){var n=e.sub(t);return t.add(this._randbelow(n))},o.prototype.test=function(t,e,n){var i=t.bitLength(),o=r.mont(t),a=new r(1).toRed(o);e||(e=Math.max(1,i/48|0));for(var u=t.subn(1),s=0;!u.testn(s);s++);for(var c=t.shrn(s),f=u.toRed(o);e>0;e--){var h=this._randrange(new r(2),u);n&&n(h);var l=h.toRed(o).redPow(c);if(0!==l.cmp(a)&&0!==l.cmp(f)){for(var d=1;d<s;d++){if(0===(l=l.redSqr()).cmp(a))return!1;if(0===l.cmp(f))break}if(d===s)return!1}}return!0},o.prototype.getDivisor=function(t,e){var n=t.bitLength(),i=r.mont(t),o=new r(1).toRed(i);e||(e=Math.max(1,n/48|0));for(var a=t.subn(1),u=0;!a.testn(u);u++);for(var s=t.shrn(u),c=a.toRed(i);e>0;e--){var f=this._randrange(new r(2),a),h=t.gcd(f);if(0!==h.cmpn(1))return h;var l=f.toRed(i).redPow(s);if(0!==l.cmp(o)&&0!==l.cmp(c)){for(var d=1;d<u;d++){if(0===(l=l.redSqr()).cmp(o))return l.fromRed().subn(1).gcd(t);if(0===l.cmp(c))break}if(d===u)return(l=l.redSqr()).fromRed().subn(1).gcd(t)}}return!1}},{"bn.js":16,brorand:17}],129:[function(t,e,n){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}e.exports=r,r.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)}},{}],130:[function(t,e,n){"use strict";var r=n;function i(t){return 1===t.length?"0"+t:t}function o(t){for(var e="",n=0;n<t.length;n++)e+=i(t[n].toString(16));return e}r.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"!=typeof t){for(var r=0;r<t.length;r++)n[r]=0|t[r];return n}if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),r=0;r<t.length;r+=2)n.push(parseInt(t[r]+t[r+1],16));else for(r=0;r<t.length;r++){var i=t.charCodeAt(r),o=i>>8,a=255&i;o?n.push(o,a):n.push(a)}return n},r.zero2=i,r.toHex=o,r.encode=function(t,e){return"hex"===e?o(t):t}},{}],131:[function(t,e,n){"use strict";e.exports=function(t,e,n,i){return new r(t,e,n,i)};var r=function(t,e,n,r){this.deriv=e,this.y=t,this.n=this.y.length,this.dt=r,this.t=n,this._ctor=this.y.constructor,this._w=new this._ctor(this.n),this._k1=new this._ctor(this.n),this._k2=new this._ctor(this.n),this._k3=new this._ctor(this.n),this._k4=new this._ctor(this.n)};r.prototype.step=function(){this.deriv(this._k1,this.y,this.t);for(var t=0;t<this.n;t++)this._w[t]=this.y[t]+this._k1[t]*this.dt*.5;this.deriv(this._k2,this._w,this.t+.5*this.dt);for(t=0;t<this.n;t++)this._w[t]=this.y[t]+this._k2[t]*this.dt*.5;this.deriv(this._k3,this._w,this.t+.5*this.dt);for(t=0;t<this.n;t++)this._w[t]=this.y[t]+this._k3[t]*this.dt;this.deriv(this._k4,this._w,this.t+this.dt);var e=this.dt/6;for(t=0;t<this.n;t++)this.y[t]+=e*(this._k1[t]+2*this._k2[t]+2*this._k3[t]+this._k4[t]);return this.t+=this.dt,this},r.prototype.steps=function(t){for(var e=0;e<t;e++)this.step();return this}},{}],132:[function(t,e,n){e.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"}},{}],133:[function(t,e,n){"use strict";var r=t("asn1.js");n.certificate=t("./certificate");var i=r.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=i;var o=r.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});n.RSAPublicKey=o;var a=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(u),this.key("subjectPublicKey").bitstr())});n.PublicKey=a;var u=r.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())}),s=r.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(u),this.key("subjectPrivateKey").octstr())});n.PrivateKey=s;var c=r.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=c;var f=r.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=f,n.DSAparam=r.define("DSAparam",function(){this.int()});var h=r.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(l),this.key("publicKey").optional().explicit(1).bitstr())});n.ECPrivateKey=h;var l=r.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});n.signature=r.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":134,"asn1.js":1}],134:[function(t,e,n){"use strict";var r=t("asn1.js"),i=r.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=r.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),a=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional())}),u=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}),s=r.define("RelativeDistinguishedName",function(){this.setof(o)}),c=r.define("RDNSequence",function(){this.seqof(s)}),f=r.define("Name",function(){this.choice({rdnSequence:this.use(c)})}),h=r.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),l=r.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),d=r.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(f),this.key("validity").use(h),this.key("subject").use(f),this.key("subjectPublicKeyInfo").use(u),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(l).optional())}),p=r.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())});e.exports=p},{"asn1.js":1}],135:[function(t,e,n){(function(n){var r=/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,i=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n/m,o=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?-----END \1-----$/m,a=t("evp_bytestokey"),u=t("browserify-aes");e.exports=function(t,e){var s,c=t.toString(),f=c.match(r);if(f){var h="aes"+f[1],l=new n(f[2],"hex"),d=new n(f[3].replace(/\r?\n/g,""),"base64"),p=a(e,l.slice(0,8),parseInt(f[1],10)).key,b=[],g=u.createDecipheriv(h,p,l);b.push(g.update(d)),b.push(g.final()),s=n.concat(b)}else{var y=c.match(o);s=new n(y[2].replace(/\r?\n/g,""),"base64")}return{tag:c.match(i)[1],data:s}}}).call(this,t("buffer").Buffer)},{"browserify-aes":21,buffer:48,evp_bytestokey:105}],136:[function(t,e,n){(function(n){var r=t("./asn1"),i=t("./aesid.json"),o=t("./fixProc"),a=t("browserify-aes"),u=t("pbkdf2");function s(t){var e;"object"!=typeof t||n.isBuffer(t)||(e=t.passphrase,t=t.key),"string"==typeof t&&(t=new n(t));var s,c,f=o(t,e),h=f.tag,l=f.data;switch(h){case"CERTIFICATE":c=r.certificate.decode(l,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(c||(c=r.PublicKey.decode(l,"der")),s=c.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(c.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return c.subjectPrivateKey=c.subjectPublicKey,{type:"ec",data:c};case"1.2.840.10040.4.1":return c.algorithm.params.pub_key=r.DSAparam.decode(c.subjectPublicKey.data,"der"),{type:"dsa",data:c.algorithm.params};default:throw new Error("unknown key id "+s)}throw new Error("unknown key type "+h);case"ENCRYPTED PRIVATE KEY":l=function(t,e){var r=t.algorithm.decrypt.kde.kdeparams.salt,o=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),s=i[t.algorithm.decrypt.cipher.algo.join(".")],c=t.algorithm.decrypt.cipher.iv,f=t.subjectPrivateKey,h=parseInt(s.split("-")[1],10)/8,l=u.pbkdf2Sync(e,r,o,h),d=a.createDecipheriv(s,l,c),p=[];return p.push(d.update(f)),p.push(d.final()),n.concat(p)}(l=r.EncryptedPrivateKey.decode(l,"der"),e);case"PRIVATE KEY":switch(s=(c=r.PrivateKey.decode(l,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(c.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:c.algorithm.curve,privateKey:r.ECPrivateKey.decode(c.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return c.algorithm.params.priv_key=r.DSAparam.decode(c.subjectPrivateKey,"der"),{type:"dsa",params:c.algorithm.params};default:throw new Error("unknown key id "+s)}throw new Error("unknown key type "+h);case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(l,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(l,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(l,"der")};case"EC PRIVATE KEY":return{curve:(l=r.ECPrivateKey.decode(l,"der")).parameters.value,privateKey:l.privateKey};default:throw new Error("unknown key type "+h)}}e.exports=s,s.signature=r.signature}).call(this,t("buffer").Buffer)},{"./aesid.json":132,"./asn1":133,"./fixProc":135,"browserify-aes":21,buffer:48,pbkdf2:138}],137:[function(t,e,n){(function(t){function e(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(t){return r.exec(t).slice(1)};function o(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}n.resolve=function(){for(var n="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var a=i>=0?arguments[i]:t.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(n=a+"/"+n,r="/"===a.charAt(0))}return n=e(o(n.split("/"),function(t){return!!t}),!r).join("/"),(r?"/":"")+n||"."},n.normalize=function(t){var r=n.isAbsolute(t),i="/"===a(t,-1);return(t=e(o(t.split("/"),function(t){return!!t}),!r).join("/"))||r||(t="."),t&&i&&(t+="/"),(r?"/":"")+t},n.isAbsolute=function(t){return"/"===t.charAt(0)},n.join=function(){var t=Array.prototype.slice.call(arguments,0);return n.normalize(o(t,function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},n.relative=function(t,e){function r(t){for(var e=0;e<t.length&&""===t[e];e++);for(var n=t.length-1;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=n.resolve(t).substr(1),e=n.resolve(e).substr(1);for(var i=r(t.split("/")),o=r(e.split("/")),a=Math.min(i.length,o.length),u=a,s=0;s<a;s++)if(i[s]!==o[s]){u=s;break}var c=[];for(s=u;s<i.length;s++)c.push("..");return(c=c.concat(o.slice(u))).join("/")},n.sep="/",n.delimiter=":",n.dirname=function(t){var e=i(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},n.basename=function(t,e){var n=i(t)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},n.extname=function(t){return i(t)[3]};var a="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,t("_process"))},{_process:144}],138:[function(t,e,n){n.pbkdf2=t("./lib/async"),n.pbkdf2Sync=t("./lib/sync")},{"./lib/async":139,"./lib/sync":142}],139:[function(t,e,n){(function(n,r){var i,o=t("./precondition"),a=t("./default-encoding"),u=t("./sync"),s=t("safe-buffer").Buffer,c=r.crypto&&r.crypto.subtle,f={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=[];function l(t,e,n,r,i){return c.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then(function(t){return c.deriveBits({name:"PBKDF2",salt:e,iterations:n,hash:{name:i}},t,r<<3)}).then(function(t){return s.from(t)})}e.exports=function(t,e,d,p,b,g){if(s.isBuffer(t)||(t=s.from(t,a)),s.isBuffer(e)||(e=s.from(e,a)),o(d,p),"function"==typeof b&&(g=b,b=void 0),"function"!=typeof g)throw new Error("No callback provided to pbkdf2");var y=f[(b=b||"sha1").toLowerCase()];if(!y||"function"!=typeof r.Promise)return n.nextTick(function(){var n;try{n=u(t,e,d,p,b)}catch(t){return g(t)}g(null,n)});!function(t,e){t.then(function(t){n.nextTick(function(){e(null,t)})},function(t){n.nextTick(function(){e(t)})})}(function(t){if(r.process&&!r.process.browser)return Promise.resolve(!1);if(!c||!c.importKey||!c.deriveBits)return Promise.resolve(!1);if(void 0!==h[t])return h[t];var e=l(i=i||s.alloc(8),i,10,128,t).then(function(){return!0}).catch(function(){return!1});return h[t]=e,e}(y).then(function(n){return n?l(t,e,d,p,y):u(t,e,d,p,b)}),g)}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":140,"./precondition":141,"./sync":142,_process:144,"safe-buffer":175}],140:[function(t,e,n){(function(t){var n;t.browser?n="utf-8":n=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=n}).call(this,t("_process"))},{_process:144}],141:[function(t,e,n){var r=Math.pow(2,30)-1;e.exports=function(t,e){if("number"!=typeof t)throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if("number"!=typeof e)throw new TypeError("Key length not a number");if(e<0||e>r||e!=e)throw new TypeError("Bad key length")}},{}],142:[function(t,e,n){var r=t("create-hash/md5"),i=t("ripemd160"),o=t("sha.js"),a=t("./precondition"),u=t("./default-encoding"),s=t("safe-buffer").Buffer,c=s.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(t,e,n){var a=function(t){return"rmd160"===t||"ripemd160"===t?i:"md5"===t?r:function(e){return o(t).update(e).digest()}}(t),u="sha512"===t||"sha384"===t?128:64;e.length>u?e=a(e):e.length<u&&(e=s.concat([e,c],u));for(var h=s.allocUnsafe(u+f[t]),l=s.allocUnsafe(u+f[t]),d=0;d<u;d++)h[d]=54^e[d],l[d]=92^e[d];var p=s.allocUnsafe(u+n+4);h.copy(p,0,0,u),this.ipad1=p,this.ipad2=h,this.opad=l,this.alg=t,this.blocksize=u,this.hash=a,this.size=f[t]}h.prototype.run=function(t,e){return t.copy(e,this.blocksize),this.hash(e).copy(this.opad,this.blocksize),this.hash(this.opad)},e.exports=function(t,e,n,r,i){s.isBuffer(t)||(t=s.from(t,u)),s.isBuffer(e)||(e=s.from(e,u)),a(n,r);var o=new h(i=i||"sha1",t,e.length),c=s.allocUnsafe(r),l=s.allocUnsafe(e.length+4);e.copy(l,0,0,e.length);for(var d=0,p=f[i],b=Math.ceil(r/p),g=1;g<=b;g++){l.writeUInt32BE(g,e.length);for(var y=o.run(l,o.ipad1),m=y,v=1;v<n;v++){m=o.run(m,o.ipad2);for(var _=0;_<p;_++)y[_]^=m[_]}y.copy(c,d),d+=p}return c}},{"./default-encoding":140,"./precondition":141,"create-hash/md5":56,ripemd160:174,"safe-buffer":175,"sha.js":177}],143:[function(t,e,n){(function(t){"use strict";!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,u=arguments.length;switch(u){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,n)});case 3:return t.nextTick(function(){e.call(null,n,r)});case 4:return t.nextTick(function(){e.call(null,n,r,i)});default:for(o=new Array(u-1),a=0;a<o.length;)o[a++]=arguments[a];return t.nextTick(function(){e.apply(null,o)})}}}:e.exports=t}).call(this,t("_process"))},{_process:144}],144:[function(t,e,n){var r,i,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(t){r=a}try{i="function"==typeof clearTimeout?clearTimeout:u}catch(t){i=u}}();var c,f=[],h=!1,l=-1;function d(){h&&c&&(h=!1,c.length?f=c.concat(f):l=-1,f.length&&p())}function p(){if(!h){var t=s(d);h=!0;for(var e=f.length;e;){for(c=f,f=[];++l<e;)c&&c[l].run();l=-1,e=f.length}c=null,h=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===u||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function b(t,e){this.fun=t,this.array=e}function g(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];f.push(new b(t,e)),1!==f.length||h||s(p)},b.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],145:[function(t,e,n){n.publicEncrypt=t("./publicEncrypt"),n.privateDecrypt=t("./privateDecrypt"),n.privateEncrypt=function(t,e){return n.publicEncrypt(t,e,!0)},n.publicDecrypt=function(t,e){return n.privateDecrypt(t,e,!0)}},{"./privateDecrypt":147,"./publicEncrypt":148}],146:[function(t,e,n){(function(n){var r=t("create-hash");function i(t){var e=new n(4);return e.writeUInt32BE(t,0),e}e.exports=function(t,e){for(var o,a=new n(""),u=0;a.length<e;)o=i(u++),a=n.concat([a,r("sha1").update(t).update(o).digest()]);return a.slice(0,e)}}).call(this,t("buffer").Buffer)},{buffer:48,"create-hash":54}],147:[function(t,e,n){(function(n){var r=t("parse-asn1"),i=t("./mgf"),o=t("./xor"),a=t("bn.js"),u=t("browserify-rsa"),s=t("create-hash"),c=t("./withPublic");e.exports=function(t,e,f){var h;h=t.padding?t.padding:f?1:4;var l,d=r(t),p=d.modulus.byteLength();if(e.length>p||new a(e).cmp(d.modulus)>=0)throw new Error("decryption error");l=f?c(new a(e),d):u(e,d);var b=new n(p-l.length);if(b.fill(0),l=n.concat([b,l],p),4===h)return function(t,e){t.modulus;var r=t.modulus.byteLength(),a=(e.length,s("sha1").update(new n("")).digest()),u=a.length;if(0!==e[0])throw new Error("decryption error");var c=e.slice(1,u+1),f=e.slice(u+1),h=o(c,i(f,u)),l=o(f,i(h,r-u-1));if(function(t,e){t=new n(t),e=new n(e);var r=0,i=t.length;t.length!==e.length&&(r++,i=Math.min(t.length,e.length));var o=-1;for(;++o<i;)r+=t[o]^e[o];return r}(a,l.slice(0,u)))throw new Error("decryption error");var d=u;for(;0===l[d];)d++;if(1!==l[d++])throw new Error("decryption error");return l.slice(d)}(d,l);if(1===h)return function(t,e,n){var r=e.slice(0,2),i=2,o=0;for(;0!==e[i++];)if(i>=e.length){o++;break}var a=e.slice(2,i-1);e.slice(i-1,i);("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return e.slice(i)}(0,l,f);if(3===h)return l;throw new Error("unknown padding")}}).call(this,t("buffer").Buffer)},{"./mgf":146,"./withPublic":149,"./xor":150,"bn.js":16,"browserify-rsa":39,buffer:48,"create-hash":54,"parse-asn1":136}],148:[function(t,e,n){(function(n){var r=t("parse-asn1"),i=t("randombytes"),o=t("create-hash"),a=t("./mgf"),u=t("./xor"),s=t("bn.js"),c=t("./withPublic"),f=t("browserify-rsa");e.exports=function(t,e,h){var l;l=t.padding?t.padding:h?1:4;var d,p=r(t);if(4===l)d=function(t,e){var r=t.modulus.byteLength(),c=e.length,f=o("sha1").update(new n("")).digest(),h=f.length,l=2*h;if(c>r-l-2)throw new Error("message too long");var d=new n(r-c-l-2);d.fill(0);var p=r-h-1,b=i(h),g=u(n.concat([f,d,new n([1]),e],p),a(b,p)),y=u(b,a(g,h));return new s(n.concat([new n([0]),y,g],r))}(p,e);else if(1===l)d=function(t,e,r){var o,a=e.length,u=t.modulus.byteLength();if(a>u-11)throw new Error("message too long");r?(o=new n(u-a-3)).fill(255):o=function(t,e){var r,o=new n(t),a=0,u=i(2*t),s=0;for(;a<t;)s===u.length&&(u=i(2*t),s=0),(r=u[s++])&&(o[a++]=r);return o}(u-a-3);return new s(n.concat([new n([0,r?1:2]),o,new n([0]),e],u))}(p,e,h);else{if(3!==l)throw new Error("unknown padding");if((d=new s(e)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return h?f(d,p):c(d,p)}}).call(this,t("buffer").Buffer)},{"./mgf":146,"./withPublic":149,"./xor":150,"bn.js":16,"browserify-rsa":39,buffer:48,"create-hash":54,"parse-asn1":136,randombytes:159}],149:[function(t,e,n){(function(n){var r=t("bn.js");e.exports=function(t,e){return new n(t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed().toArray())}}).call(this,t("buffer").Buffer)},{"bn.js":16,buffer:48}],150:[function(t,e,n){e.exports=function(t,e){for(var n=t.length,r=-1;++r<n;)t[r]^=e[r];return t}},{}],151:[function(t,e,n){(function(t){!function(r){var i="object"==typeof n&&n&&!n.nodeType&&n,o="object"==typeof e&&e&&!e.nodeType&&e,a="object"==typeof t&&t;a.global!==a&&a.window!==a&&a.self!==a||(r=a);var u,s,c=2147483647,f=36,h=1,l=26,d=38,p=700,b=72,g=128,y="-",m=/^xn--/,v=/[^\x20-\x7E]/,_=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=f-h,A=Math.floor,E=String.fromCharCode;function M(t){throw new RangeError(w[t])}function C(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function S(t,e){var n=t.split("@"),r="";return n.length>1&&(r=n[0]+"@",t=n[1]),r+C((t=t.replace(_,".")).split("."),e).join(".")}function B(t){for(var e,n,r=[],i=0,o=t.length;i<o;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<o?56320==(64512&(n=t.charCodeAt(i++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--):r.push(e);return r}function k(t){return C(t,function(t){var e="";return t>65535&&(e+=E((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=E(t)}).join("")}function I(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function F(t,e,n){var r=0;for(t=n?A(t/p):t>>1,t+=A(t/e);t>x*l>>1;r+=f)t=A(t/x);return A(r+(x+1)*t/(t+d))}function D(t){var e,n,r,i,o,a,u,s,d,p,m,v=[],_=t.length,w=0,x=g,E=b;for((n=t.lastIndexOf(y))<0&&(n=0),r=0;r<n;++r)t.charCodeAt(r)>=128&&M("not-basic"),v.push(t.charCodeAt(r));for(i=n>0?n+1:0;i<_;){for(o=w,a=1,u=f;i>=_&&M("invalid-input"),((s=(m=t.charCodeAt(i++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:f)>=f||s>A((c-w)/a))&&M("overflow"),w+=s*a,!(s<(d=u<=E?h:u>=E+l?l:u-E));u+=f)a>A(c/(p=f-d))&&M("overflow"),a*=p;E=F(w-o,e=v.length+1,0==o),A(w/e)>c-x&&M("overflow"),x+=A(w/e),w%=e,v.splice(w++,0,x)}return k(v)}function T(t){var e,n,r,i,o,a,u,s,d,p,m,v,_,w,x,C=[];for(v=(t=B(t)).length,e=g,n=0,o=b,a=0;a<v;++a)(m=t[a])<128&&C.push(E(m));for(r=i=C.length,i&&C.push(y);r<v;){for(u=c,a=0;a<v;++a)(m=t[a])>=e&&m<u&&(u=m);for(u-e>A((c-n)/(_=r+1))&&M("overflow"),n+=(u-e)*_,e=u,a=0;a<v;++a)if((m=t[a])<e&&++n>c&&M("overflow"),m==e){for(s=n,d=f;!(s<(p=d<=o?h:d>=o+l?l:d-o));d+=f)x=s-p,w=f-p,C.push(E(I(p+x%w,0))),s=A(x/w);C.push(E(I(s,0))),o=F(n,_,r==i),n=0,++r}++n,++e}return C.join("")}if(u={version:"1.4.1",ucs2:{decode:B,encode:k},decode:D,encode:T,toASCII:function(t){return S(t,function(t){return v.test(t)?"xn--"+T(t):t})},toUnicode:function(t){return S(t,function(t){return m.test(t)?D(t.slice(4).toLowerCase()):t})}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return u});else if(i&&o)if(e.exports==i)o.exports=u;else for(s in u)u.hasOwnProperty(s)&&(i[s]=u[s]);else r.punycode=u}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],152:[function(t,e,n){"use strict";var r=t("./stringify"),i=t("./parse");e.exports={stringify:r,parse:i}},{"./parse":153,"./stringify":154}],153:[function(t,e,n){"use strict";var r=t("./utils"),i=Object.prototype.hasOwnProperty,o={delimiter:"&",depth:5,arrayLimit:20,parameterLimit:1e3,strictNullHandling:!1,plainObjects:!1,allowPrototypes:!1,allowDots:!1,decoder:r.decode},a=function(t,e,n){if(t){var r=n.allowDots?t.replace(/\.([^\.\[]+)/g,"[$1]"):t,o=/(\[[^\[\]]*\])/g,a=/^([^\[\]]*)/.exec(r),u=[];if(a[1]){if(!n.plainObjects&&i.call(Object.prototype,a[1])&&!n.allowPrototypes)return;u.push(a[1])}for(var s=0;null!==(a=o.exec(r))&&s<n.depth;)s+=1,(n.plainObjects||!i.call(Object.prototype,a[1].replace(/\[|\]/g,""))||n.allowPrototypes)&&u.push(a[1]);return a&&u.push("["+r.slice(a.index)+"]"),function t(e,n,r){if(!e.length)return n;var i,o=e.shift();if("[]"===o)i=(i=[]).concat(t(e,n,r));else{i=r.plainObjects?Object.create(null):{};var a="["===o[0]&&"]"===o[o.length-1]?o.slice(1,o.length-1):o,u=parseInt(a,10);!isNaN(u)&&o!==a&&String(u)===a&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(i=[])[u]=t(e,n,r):i[a]=t(e,n,r)}return i}(u,e,n)}};e.exports=function(t,e){var n=e||{};if(null!==n.decoder&&void 0!==n.decoder&&"function"!=typeof n.decoder)throw new TypeError("Decoder has to be a function.");if(n.delimiter="string"==typeof n.delimiter||r.isRegExp(n.delimiter)?n.delimiter:o.delimiter,n.depth="number"==typeof n.depth?n.depth:o.depth,n.arrayLimit="number"==typeof n.arrayLimit?n.arrayLimit:o.arrayLimit,n.parseArrays=!1!==n.parseArrays,n.decoder="function"==typeof n.decoder?n.decoder:o.decoder,n.allowDots="boolean"==typeof n.allowDots?n.allowDots:o.allowDots,n.plainObjects="boolean"==typeof n.plainObjects?n.plainObjects:o.plainObjects,n.allowPrototypes="boolean"==typeof n.allowPrototypes?n.allowPrototypes:o.allowPrototypes,n.parameterLimit="number"==typeof n.parameterLimit?n.parameterLimit:o.parameterLimit,n.strictNullHandling="boolean"==typeof n.strictNullHandling?n.strictNullHandling:o.strictNullHandling,""===t||null===t||void 0===t)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof t?function(t,e){for(var n={},r=t.split(e.delimiter,e.parameterLimit===1/0?void 0:e.parameterLimit),o=0;o<r.length;++o){var a,u,s=r[o],c=-1===s.indexOf("]=")?s.indexOf("="):s.indexOf("]=")+1;-1===c?(a=e.decoder(s),u=e.strictNullHandling?null:""):(a=e.decoder(s.slice(0,c)),u=e.decoder(s.slice(c+1))),i.call(n,a)?n[a]=[].concat(n[a]).concat(u):n[a]=u}return n}(t,n):t,s=n.plainObjects?Object.create(null):{},c=Object.keys(u),f=0;f<c.length;++f){var h=c[f],l=a(h,u[h],n);s=r.merge(s,l,n)}return r.compact(s)}},{"./utils":155}],154:[function(t,e,n){"use strict";var r=t("./utils"),i={brackets:function(t){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},o={delimiter:"&",strictNullHandling:!1,skipNulls:!1,encode:!0,encoder:r.encode},a=function t(e,n,i,o,a,u,s,c,f){var h=e;if("function"==typeof s)h=s(n,h);else if(h instanceof Date)h=h.toISOString();else if(null===h){if(o)return u?u(n):n;h=""}if("string"==typeof h||"number"==typeof h||"boolean"==typeof h||r.isBuffer(h))return u?[u(n)+"="+u(h)]:[n+"="+String(h)];var l,d=[];if(void 0===h)return d;if(Array.isArray(s))l=s;else{var p=Object.keys(h);l=c?p.sort(c):p}for(var b=0;b<l.length;++b){var g=l[b];a&&null===h[g]||(d=Array.isArray(h)?d.concat(t(h[g],i(n,g),i,o,a,u,s,c,f)):d.concat(t(h[g],n+(f?"."+g:"["+g+"]"),i,o,a,u,s,c,f)))}return d};e.exports=function(t,e){var n,r,u=t,s=e||{},c=void 0===s.delimiter?o.delimiter:s.delimiter,f="boolean"==typeof s.strictNullHandling?s.strictNullHandling:o.strictNullHandling,h="boolean"==typeof s.skipNulls?s.skipNulls:o.skipNulls,l=("boolean"==typeof s.encode?s.encode:o.encode)?"function"==typeof s.encoder?s.encoder:o.encoder:null,d="function"==typeof s.sort?s.sort:null,p=void 0!==s.allowDots&&s.allowDots;if(null!==s.encoder&&void 0!==s.encoder&&"function"!=typeof s.encoder)throw new TypeError("Encoder has to be a function.");"function"==typeof s.filter?u=(r=s.filter)("",u):Array.isArray(s.filter)&&(n=r=s.filter);var b,g=[];if("object"!=typeof u||null===u)return"";b=s.arrayFormat in i?s.arrayFormat:"indices"in s?s.indices?"indices":"repeat":"indices";var y=i[b];n||(n=Object.keys(u)),d&&n.sort(d);for(var m=0;m<n.length;++m){var v=n[m];h&&null===u[v]||(g=g.concat(a(u[v],v,y,f,h,l,r,d,p)))}return g.join(c)}},{"./utils":155}],155:[function(t,e,n){"use strict";var r=function(){for(var t=new Array(256),e=0;e<256;++e)t[e]="%"+((e<16?"0":"")+e.toString(16)).toUpperCase();return t}();n.arrayToObject=function(t,e){for(var n=e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n},n.merge=function(t,e,r){if(!e)return t;if("object"!=typeof e){if(Array.isArray(t))t.push(e);else{if("object"!=typeof t)return[t,e];t[e]=!0}return t}if("object"!=typeof t)return[t].concat(e);var i=t;return Array.isArray(t)&&!Array.isArray(e)&&(i=n.arrayToObject(t,r)),Object.keys(e).reduce(function(t,i){var o=e[i];return Object.prototype.hasOwnProperty.call(t,i)?t[i]=n.merge(t[i],o,r):t[i]=o,t},i)},n.decode=function(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}},n.encode=function(t){if(0===t.length)return t;for(var e="string"==typeof t?t:String(t),n="",i=0;i<e.length;++i){var o=e.charCodeAt(i);45===o||46===o||95===o||126===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?n+=e.charAt(i):o<128?n+=r[o]:o<2048?n+=r[192|o>>6]+r[128|63&o]:o<55296||o>=57344?n+=r[224|o>>12]+r[128|o>>6&63]+r[128|63&o]:(i+=1,o=65536+((1023&o)<<10|1023&e.charCodeAt(i)),n+=r[240|o>>18]+r[128|o>>12&63]+r[128|o>>6&63]+r[128|63&o])}return n},n.compact=function(t,e){if("object"!=typeof t||null===t)return t;var r=e||[],i=r.indexOf(t);if(-1!==i)return r[i];if(r.push(t),Array.isArray(t)){for(var o=[],a=0;a<t.length;++a)t[a]&&"object"==typeof t[a]?o.push(n.compact(t[a],r)):void 0!==t[a]&&o.push(t[a]);return o}for(var u=Object.keys(t),s=0;s<u.length;++s){var c=u[s];t[c]=n.compact(t[c],r)}return t},n.isRegExp=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},n.isBuffer=function(t){return null!==t&&void 0!==t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))}},{}],156:[function(t,e,n){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.exports=function(t,e,n,o){e=e||"&",n=n||"=";var a={};if("string"!=typeof t||0===t.length)return a;var u=/\+/g;t=t.split(e);var s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var c=t.length;s>0&&c>s&&(c=s);for(var f=0;f<c;++f){var h,l,d,p,b=t[f].replace(u,"%20"),g=b.indexOf(n);g>=0?(h=b.substr(0,g),l=b.substr(g+1)):(h=b,l=""),d=decodeURIComponent(h),p=decodeURIComponent(l),r(a,d)?i(a[d])?a[d].push(p):a[d]=[a[d],p]:a[d]=p}return a};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},{}],157:[function(t,e,n){"use strict";var r=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};e.exports=function(t,e,n,u){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?o(a(t),function(a){var u=encodeURIComponent(r(a))+n;return i(t[a])?o(t[a],function(t){return u+encodeURIComponent(r(t))}).join(e):u+encodeURIComponent(r(t[a]))}).join(e):u?encodeURIComponent(r(u))+n+encodeURIComponent(r(t)):""};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function o(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r<t.length;r++)n.push(e(t[r],r));return n}var a=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}},{}],158:[function(t,e,n){"use strict";n.decode=n.parse=t("./decode"),n.encode=n.stringify=t("./encode")},{"./decode":156,"./encode":157}],159:[function(t,e,n){(function(n,r){"use strict";var i=t("safe-buffer").Buffer,o=r.crypto||r.msCrypto;o&&o.getRandomValues?e.exports=function(t,e){if(t>65536)throw new Error("requested too many random bytes");var a=new r.Uint8Array(t);t>0&&o.getRandomValues(a);var u=i.from(a.buffer);if("function"==typeof e)return n.nextTick(function(){e(null,u)});return u}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:144,"safe-buffer":175}],160:[function(t,e,n){(function(e,r){"use strict";function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=t("safe-buffer"),a=t("randombytes"),u=o.Buffer,s=o.kMaxLength,c=r.crypto||r.msCrypto,f=Math.pow(2,32)-1;function h(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(t>f||t<0)throw new TypeError("offset must be a uint32");if(t>s||t>e)throw new RangeError("offset out of range")}function l(t,e,n){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(t>f||t<0)throw new TypeError("size must be a uint32");if(t+e>n||t>s)throw new RangeError("buffer too small")}function d(t,n,r,i){if(e.browser){var o=t.buffer,u=new Uint8Array(o,n,r);return c.getRandomValues(u),i?void e.nextTick(function(){i(null,t)}):t}if(!i)return a(r).copy(t,n),t;a(r,function(e,r){if(e)return i(e);r.copy(t,n),i(null,t)})}c&&c.getRandomValues||!e.browser?(n.randomFill=function(t,e,n,i){if(!(u.isBuffer(t)||t instanceof r.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof e)i=e,e=0,n=t.length;else if("function"==typeof n)i=n,n=t.length-e;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return h(e,t.length),l(n,e,t.length),d(t,e,n,i)},n.randomFillSync=function(t,e,n){void 0===e&&(e=0);if(!(u.isBuffer(t)||t instanceof r.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');h(e,t.length),void 0===n&&(n=t.length-e);return l(n,e,t.length),d(t,e,n)}):(n.randomFill=i,n.randomFillSync=i)}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:144,randombytes:159,"safe-buffer":175}],161:[function(t,e,n){e.exports=t("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":162}],162:[function(t,e,n){"use strict";var r=t("process-nextick-args"),i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};e.exports=h;var o=t("core-util-is");o.inherits=t("inherits");var a=t("./_stream_readable"),u=t("./_stream_writable");o.inherits(h,a);for(var s=i(u.prototype),c=0;c<s.length;c++){var f=s[c];h.prototype[f]||(h.prototype[f]=u.prototype[f])}function h(t){if(!(this instanceof h))return new h(t);a.call(this,t),u.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",l)}function l(){this.allowHalfOpen||this._writableState.ended||r.nextTick(d,this)}function d(t){t.end()}Object.defineProperty(h.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),h.prototype._destroy=function(t,e){this.push(null),this.end(),r.nextTick(e,t)}},{"./_stream_readable":164,"./_stream_writable":166,"core-util-is":52,inherits:123,"process-nextick-args":143}],163:[function(t,e,n){"use strict";e.exports=o;var r=t("./_stream_transform"),i=t("core-util-is");function o(t){if(!(this instanceof o))return new o(t);r.call(this,t)}i.inherits=t("inherits"),i.inherits(o,r),o.prototype._transform=function(t,e,n){n(null,t)}},{"./_stream_transform":165,"core-util-is":52,inherits:123}],164:[function(t,e,n){(function(n,r){"use strict";var i=t("process-nextick-args");e.exports=v;var o,a=t("isarray");v.ReadableState=m;t("events").EventEmitter;var u=function(t,e){return t.listeners(e).length},s=t("./internal/streams/stream"),c=t("safe-buffer").Buffer,f=r.Uint8Array||function(){};var h=t("core-util-is");h.inherits=t("inherits");var l=t("util"),d=void 0;d=l&&l.debuglog?l.debuglog("stream"):function(){};var p,b=t("./internal/streams/BufferList"),g=t("./internal/streams/destroy");h.inherits(v,s);var y=["error","close","destroy","pause","resume"];function m(e,n){o=o||t("./_stream_duplex"),e=e||{};var r=n instanceof o;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:u,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,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=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=t("string_decoder/").StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function v(e){if(o=o||t("./_stream_duplex"),!(this instanceof v))return new v(e);this._readableState=new m(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function _(t,e,n,r,i){var o,a=t._readableState;null===e?(a.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,E(t)}(t,a)):(i||(o=function(t,e){var n;r=e,c.isBuffer(r)||r instanceof f||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,e)),o?t.emit("error",o):a.objectMode||e&&e.length>0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===c.prototype||(e=function(t){return c.from(t)}(e)),r?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):w(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?w(t,a,e,!1):C(t,a)):w(t,a,e,!1))):r||(a.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(a)}function w(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&E(t)),C(t,e)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),v.prototype.destroy=g.destroy,v.prototype._undestroy=g.undestroy,v.prototype._destroy=function(t,e){this.push(null),e(t)},v.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof t&&((e=e||r.defaultEncoding)!==r.encoding&&(t=c.from(t,e),e=""),n=!0),_(this,t,e,!1,n)},v.prototype.unshift=function(t){return _(this,t,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(e){return p||(p=t("string_decoder/").StringDecoder),this._readableState.decoder=new p(e),this._readableState.encoding=e,this};var x=8388608;function A(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=x?t=x:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function E(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(d("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(M,t):M(t))}function M(t){d("emit readable"),t.emit("readable"),I(t)}function C(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(S,t,e))}function S(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(d("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function B(t){d("readable nexttick read 0"),t.read(0)}function k(t,e){e.reading||(d("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),I(t),e.flowing&&!e.reading&&t.read(0)}function I(t){var e=t._readableState;for(d("flow",e.flowing);e.flowing&&null!==t.read(););}function F(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var r;t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):r=t===e.head.data.length?e.shift():n?function(t,e){var n=e.head,r=1,i=n.data;t-=i.length;for(;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++r}return e.length-=r,i}(t,e):function(t,e){var n=c.allocUnsafe(t),r=e.head,i=1;r.data.copy(n),t-=r.data.length;for(;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,a),0===(t-=a)){a===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++i}return e.length-=i,n}(t,e);return r}(t,e.buffer,e.decoder),n);var n}function D(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(T,e,t))}function T(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function N(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}v.prototype.read=function(t){d("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return d("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?D(this):E(this),null;if(0===(t=A(t,e))&&e.ended)return 0===e.length&&D(this),null;var r,i=e.needReadable;return d("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&d("length less than watermark",i=!0),e.ended||e.reading?d("reading or ended",i=!1):i&&(d("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=A(n,e))),null===(r=t>0?F(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&D(this)),null!==r&&this.emit("data",r),r},v.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(t,e){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,d("pipe count=%d opts=%j",o.pipesCount,e);var s=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?f:v;function c(e,n){d("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),t.removeListener("close",y),t.removeListener("finish",m),t.removeListener("drain",h),t.removeListener("error",g),t.removeListener("unpipe",c),r.removeListener("end",f),r.removeListener("end",v),r.removeListener("data",b),l=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||h())}function f(){d("onend"),t.end()}o.endEmitted?i.nextTick(s):r.once("end",s),t.on("unpipe",c);var h=function(t){return function(){var e=t._readableState;d("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&u(t,"data")&&(e.flowing=!0,I(t))}}(r);t.on("drain",h);var l=!1;var p=!1;function b(e){d("ondata"),p=!1,!1!==t.write(e)||p||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==N(o.pipes,t))&&!l&&(d("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function g(e){d("onerror",e),v(),t.removeListener("error",g),0===u(t,"error")&&t.emit("error",e)}function y(){t.removeListener("finish",m),v()}function m(){d("onfinish"),t.removeListener("close",y),v()}function v(){d("unpipe"),r.unpipe(t)}return r.on("data",b),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",g),t.once("close",y),t.once("finish",m),t.emit("pipe",r),o.flowing||(d("pipe resume"),r.resume()),t},v.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,n);return this}var a=N(e.pipes,t);return-1===a?this:(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n),this)},v.prototype.on=function(t,e){var n=s.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&E(this):i.nextTick(B,this))}return n},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var t=this._readableState;return t.flowing||(d("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(k,t,e))}(this,t)),this},v.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",function(){if(d("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)}),t.on("data",function(i){(d("wrapped data"),n.decoder&&(i=n.decoder.write(i)),!n.objectMode||null!==i&&void 0!==i)&&((n.objectMode||i&&i.length)&&(e.push(i)||(r=!0,t.pause())))}),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<y.length;o++)t.on(y[o],this.emit.bind(this,y[o]));return this._read=function(e){d("wrapped _read",e),r&&(r=!1,t.resume())},this},v._fromList=F}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":162,"./internal/streams/BufferList":167,"./internal/streams/destroy":168,"./internal/streams/stream":169,_process:144,"core-util-is":52,events:104,inherits:123,isarray:125,"process-nextick-args":143,"safe-buffer":175,"string_decoder/":189,util:18}],165:[function(t,e,n){"use strict";e.exports=o;var r=t("./_stream_duplex"),i=t("core-util-is");function o(t){if(!(this instanceof o))return new o(t);r.call(this,t),this._transformState={afterTransform:function(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",a)}function a(){var t=this;"function"==typeof this._flush?this._flush(function(e,n){u(t,e,n)}):u(this,null,null)}function u(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}i.inherits=t("inherits"),i.inherits(o,r),o.prototype.push=function(t,e){return this._transformState.needTransform=!1,r.prototype.push.call(this,t,e)},o.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},o.prototype._destroy=function(t,e){var n=this;r.prototype._destroy.call(this,t,function(t){e(t),n.emit("close")})}},{"./_stream_duplex":162,"core-util-is":52,inherits:123}],166:[function(t,e,n){(function(n,r){"use strict";var i=t("process-nextick-args");function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var r=t.entry;t.entry=null;for(;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}e.exports=y;var a,u=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?setImmediate:i.nextTick;y.WritableState=g;var s=t("core-util-is");s.inherits=t("inherits");var c={deprecate:t("util-deprecate")},f=t("./internal/streams/stream"),h=t("safe-buffer").Buffer,l=r.Uint8Array||function(){};var d,p=t("./internal/streams/destroy");function b(){}function g(e,n){a=a||t("./_stream_duplex"),e=e||{};var r=n instanceof a;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var s=e.highWaterMark,c=e.writableHighWaterMark,f=this.objectMode?16:16384;this.highWaterMark=s||0===s?s:r&&(c||0===c)?c:f,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 h=!1===e.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,r=n.sync,o=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,r,o){--e.pendingcb,n?(i.nextTick(o,r),i.nextTick(A,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(o(r),t._writableState.errorEmitted=!0,t.emit("error",r),A(t,e))}(t,n,r,e,o);else{var a=w(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||_(t,n),r?u(v,t,n,a,o):v(t,n,a,o)}}(n,t)},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 o(this)}function y(e){if(a=a||t("./_stream_duplex"),!(d.call(y,this)||this instanceof a))return new y(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function m(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function v(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),A(t,e)}function _(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),a=e.corkedRequestsFree;a.entry=n;for(var u=0,s=!0;n;)i[u]=n,n.isBuf||(s=!1),n=n.next,u+=1;i.allBuffers=s,m(t,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,f=n.encoding,h=n.callback;if(m(t,e,!1,e.objectMode?1:c.length,c,f,h),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function w(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function x(t,e){t._final(function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),A(t,e)})}function A(t,e){var n=w(e);return n&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,i.nextTick(x,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}s.inherits(y,f),g.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(g.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(t){return!!d.call(this,t)||this===y&&(t&&t._writableState instanceof g)}})):d=function(t){return t instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(t,e,n){var r,o=this._writableState,a=!1,u=!o.objectMode&&(r=t,h.isBuffer(r)||r instanceof l);return u&&!h.isBuffer(t)&&(t=function(t){return h.from(t)}(t)),"function"==typeof e&&(n=e,e=null),u?e="buffer":e||(e=o.defaultEncoding),"function"!=typeof n&&(n=b),o.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),i.nextTick(e,n)}(this,n):(u||function(t,e,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),i.nextTick(r,a),o=!1),o}(this,o,t,n))&&(o.pendingcb++,a=function(t,e,n,r,i,o){if(!n){var a=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=h.from(e,n));return e}(e,r,i);r!==a&&(n=!0,i="buffer",r=a)}var u=e.objectMode?1:r.length;e.length+=u;var s=e.length<e.highWaterMark;s||(e.needDrain=!0);if(e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else m(t,e,!1,u,r,i,o);return s}(this,o,u,t,e,n)),a},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||_(this,t))},y.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},y.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(t,e,n){e.ending=!0,A(t,e),n&&(e.finished?i.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),y.prototype.destroy=p.destroy,y.prototype._undestroy=p.undestroy,y.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":162,"./internal/streams/destroy":168,"./internal/streams/stream":169,_process:144,"core-util-is":52,inherits:123,"process-nextick-args":143,"safe-buffer":175,"util-deprecate":193}],167:[function(t,e,n){"use strict";var r=t("safe-buffer").Buffer,i=t("util");e.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var e,n,i,o=r.allocUnsafe(t>>>0),a=this.head,u=0;a;)e=a.data,n=o,i=u,e.copy(n,i),u+=a.data.length,a=a.next;return o},t}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+" "+t})},{"safe-buffer":175,util:18}],168:[function(t,e,n){"use strict";var r=t("process-nextick-args");function i(t,e){t.emit("error",e)}e.exports={destroy:function(t,e){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?(r.nextTick(i,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)}),this)},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":143}],169:[function(t,e,n){e.exports=t("events").EventEmitter},{events:104}],170:[function(t,e,n){e.exports=t("./readable").PassThrough},{"./readable":171}],171:[function(t,e,n){(n=e.exports=t("./lib/_stream_readable.js")).Stream=n,n.Readable=n,n.Writable=t("./lib/_stream_writable.js"),n.Duplex=t("./lib/_stream_duplex.js"),n.Transform=t("./lib/_stream_transform.js"),n.PassThrough=t("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":162,"./lib/_stream_passthrough.js":163,"./lib/_stream_readable.js":164,"./lib/_stream_transform.js":165,"./lib/_stream_writable.js":166}],172:[function(t,e,n){e.exports=t("./readable").Transform},{"./readable":171}],173:[function(t,e,n){e.exports=t("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":166}],174:[function(t,e,n){(function(n){"use strict";var r=t("inherits"),i=t("hash-base");function o(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function a(t,e){return t<<e|t>>>32-e}function u(t,e,n,r,i,o,u,s){return a(t+(e^n^r)+o+u|0,s)+i|0}function s(t,e,n,r,i,o,u,s){return a(t+(e&n|~e&r)+o+u|0,s)+i|0}function c(t,e,n,r,i,o,u,s){return a(t+((e|~n)^r)+o+u|0,s)+i|0}function f(t,e,n,r,i,o,u,s){return a(t+(e&r|n&~r)+o+u|0,s)+i|0}function h(t,e,n,r,i,o,u,s){return a(t+(e^(n|~r))+o+u|0,s)+i|0}r(o,i),o.prototype._update=function(){for(var t=new Array(16),e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var n=this._a,r=this._b,i=this._c,o=this._d,l=this._e;l=u(l,n=u(n,r,i,o,l,t[0],0,11),r,i=a(i,10),o,t[1],0,14),r=u(r=a(r,10),i=u(i,o=u(o,l,n,r,i,t[2],0,15),l,n=a(n,10),r,t[3],0,12),o,l=a(l,10),n,t[4],0,5),o=u(o=a(o,10),l=u(l,n=u(n,r,i,o,l,t[5],0,8),r,i=a(i,10),o,t[6],0,7),n,r=a(r,10),i,t[7],0,9),n=u(n=a(n,10),r=u(r,i=u(i,o,l,n,r,t[8],0,11),o,l=a(l,10),n,t[9],0,13),i,o=a(o,10),l,t[10],0,14),i=u(i=a(i,10),o=u(o,l=u(l,n,r,i,o,t[11],0,15),n,r=a(r,10),i,t[12],0,6),l,n=a(n,10),r,t[13],0,7),l=s(l=a(l,10),n=u(n,r=u(r,i,o,l,n,t[14],0,9),i,o=a(o,10),l,t[15],0,8),r,i=a(i,10),o,t[7],1518500249,7),r=s(r=a(r,10),i=s(i,o=s(o,l,n,r,i,t[4],1518500249,6),l,n=a(n,10),r,t[13],1518500249,8),o,l=a(l,10),n,t[1],1518500249,13),o=s(o=a(o,10),l=s(l,n=s(n,r,i,o,l,t[10],1518500249,11),r,i=a(i,10),o,t[6],1518500249,9),n,r=a(r,10),i,t[15],1518500249,7),n=s(n=a(n,10),r=s(r,i=s(i,o,l,n,r,t[3],1518500249,15),o,l=a(l,10),n,t[12],1518500249,7),i,o=a(o,10),l,t[0],1518500249,12),i=s(i=a(i,10),o=s(o,l=s(l,n,r,i,o,t[9],1518500249,15),n,r=a(r,10),i,t[5],1518500249,9),l,n=a(n,10),r,t[2],1518500249,11),l=s(l=a(l,10),n=s(n,r=s(r,i,o,l,n,t[14],1518500249,7),i,o=a(o,10),l,t[11],1518500249,13),r,i=a(i,10),o,t[8],1518500249,12),r=c(r=a(r,10),i=c(i,o=c(o,l,n,r,i,t[3],1859775393,11),l,n=a(n,10),r,t[10],1859775393,13),o,l=a(l,10),n,t[14],1859775393,6),o=c(o=a(o,10),l=c(l,n=c(n,r,i,o,l,t[4],1859775393,7),r,i=a(i,10),o,t[9],1859775393,14),n,r=a(r,10),i,t[15],1859775393,9),n=c(n=a(n,10),r=c(r,i=c(i,o,l,n,r,t[8],1859775393,13),o,l=a(l,10),n,t[1],1859775393,15),i,o=a(o,10),l,t[2],1859775393,14),i=c(i=a(i,10),o=c(o,l=c(l,n,r,i,o,t[7],1859775393,8),n,r=a(r,10),i,t[0],1859775393,13),l,n=a(n,10),r,t[6],1859775393,6),l=c(l=a(l,10),n=c(n,r=c(r,i,o,l,n,t[13],1859775393,5),i,o=a(o,10),l,t[11],1859775393,12),r,i=a(i,10),o,t[5],1859775393,7),r=f(r=a(r,10),i=f(i,o=c(o,l,n,r,i,t[12],1859775393,5),l,n=a(n,10),r,t[1],2400959708,11),o,l=a(l,10),n,t[9],2400959708,12),o=f(o=a(o,10),l=f(l,n=f(n,r,i,o,l,t[11],2400959708,14),r,i=a(i,10),o,t[10],2400959708,15),n,r=a(r,10),i,t[0],2400959708,14),n=f(n=a(n,10),r=f(r,i=f(i,o,l,n,r,t[8],2400959708,15),o,l=a(l,10),n,t[12],2400959708,9),i,o=a(o,10),l,t[4],2400959708,8),i=f(i=a(i,10),o=f(o,l=f(l,n,r,i,o,t[13],2400959708,9),n,r=a(r,10),i,t[3],2400959708,14),l,n=a(n,10),r,t[7],2400959708,5),l=f(l=a(l,10),n=f(n,r=f(r,i,o,l,n,t[15],2400959708,6),i,o=a(o,10),l,t[14],2400959708,8),r,i=a(i,10),o,t[5],2400959708,6),r=h(r=a(r,10),i=f(i,o=f(o,l,n,r,i,t[6],2400959708,5),l,n=a(n,10),r,t[2],2400959708,12),o,l=a(l,10),n,t[4],2840853838,9),o=h(o=a(o,10),l=h(l,n=h(n,r,i,o,l,t[0],2840853838,15),r,i=a(i,10),o,t[5],2840853838,5),n,r=a(r,10),i,t[9],2840853838,11),n=h(n=a(n,10),r=h(r,i=h(i,o,l,n,r,t[7],2840853838,6),o,l=a(l,10),n,t[12],2840853838,8),i,o=a(o,10),l,t[2],2840853838,13),i=h(i=a(i,10),o=h(o,l=h(l,n,r,i,o,t[10],2840853838,12),n,r=a(r,10),i,t[14],2840853838,5),l,n=a(n,10),r,t[1],2840853838,12),l=h(l=a(l,10),n=h(n,r=h(r,i,o,l,n,t[3],2840853838,13),i,o=a(o,10),l,t[8],2840853838,14),r,i=a(i,10),o,t[11],2840853838,11),r=h(r=a(r,10),i=h(i,o=h(o,l,n,r,i,t[6],2840853838,8),l,n=a(n,10),r,t[15],2840853838,5),o,l=a(l,10),n,t[13],2840853838,6),o=a(o,10);var d=this._a,p=this._b,b=this._c,g=this._d,y=this._e;y=h(y,d=h(d,p,b,g,y,t[5],1352829926,8),p,b=a(b,10),g,t[14],1352829926,9),p=h(p=a(p,10),b=h(b,g=h(g,y,d,p,b,t[7],1352829926,9),y,d=a(d,10),p,t[0],1352829926,11),g,y=a(y,10),d,t[9],1352829926,13),g=h(g=a(g,10),y=h(y,d=h(d,p,b,g,y,t[2],1352829926,15),p,b=a(b,10),g,t[11],1352829926,15),d,p=a(p,10),b,t[4],1352829926,5),d=h(d=a(d,10),p=h(p,b=h(b,g,y,d,p,t[13],1352829926,7),g,y=a(y,10),d,t[6],1352829926,7),b,g=a(g,10),y,t[15],1352829926,8),b=h(b=a(b,10),g=h(g,y=h(y,d,p,b,g,t[8],1352829926,11),d,p=a(p,10),b,t[1],1352829926,14),y,d=a(d,10),p,t[10],1352829926,14),y=f(y=a(y,10),d=h(d,p=h(p,b,g,y,d,t[3],1352829926,12),b,g=a(g,10),y,t[12],1352829926,6),p,b=a(b,10),g,t[6],1548603684,9),p=f(p=a(p,10),b=f(b,g=f(g,y,d,p,b,t[11],1548603684,13),y,d=a(d,10),p,t[3],1548603684,15),g,y=a(y,10),d,t[7],1548603684,7),g=f(g=a(g,10),y=f(y,d=f(d,p,b,g,y,t[0],1548603684,12),p,b=a(b,10),g,t[13],1548603684,8),d,p=a(p,10),b,t[5],1548603684,9),d=f(d=a(d,10),p=f(p,b=f(b,g,y,d,p,t[10],1548603684,11),g,y=a(y,10),d,t[14],1548603684,7),b,g=a(g,10),y,t[15],1548603684,7),b=f(b=a(b,10),g=f(g,y=f(y,d,p,b,g,t[8],1548603684,12),d,p=a(p,10),b,t[12],1548603684,7),y,d=a(d,10),p,t[4],1548603684,6),y=f(y=a(y,10),d=f(d,p=f(p,b,g,y,d,t[9],1548603684,15),b,g=a(g,10),y,t[1],1548603684,13),p,b=a(b,10),g,t[2],1548603684,11),p=c(p=a(p,10),b=c(b,g=c(g,y,d,p,b,t[15],1836072691,9),y,d=a(d,10),p,t[5],1836072691,7),g,y=a(y,10),d,t[1],1836072691,15),g=c(g=a(g,10),y=c(y,d=c(d,p,b,g,y,t[3],1836072691,11),p,b=a(b,10),g,t[7],1836072691,8),d,p=a(p,10),b,t[14],1836072691,6),d=c(d=a(d,10),p=c(p,b=c(b,g,y,d,p,t[6],1836072691,6),g,y=a(y,10),d,t[9],1836072691,14),b,g=a(g,10),y,t[11],1836072691,12),b=c(b=a(b,10),g=c(g,y=c(y,d,p,b,g,t[8],1836072691,13),d,p=a(p,10),b,t[12],1836072691,5),y,d=a(d,10),p,t[2],1836072691,14),y=c(y=a(y,10),d=c(d,p=c(p,b,g,y,d,t[10],1836072691,13),b,g=a(g,10),y,t[0],1836072691,13),p,b=a(b,10),g,t[4],1836072691,7),p=s(p=a(p,10),b=s(b,g=c(g,y,d,p,b,t[13],1836072691,5),y,d=a(d,10),p,t[8],2053994217,15),g,y=a(y,10),d,t[6],2053994217,5),g=s(g=a(g,10),y=s(y,d=s(d,p,b,g,y,t[4],2053994217,8),p,b=a(b,10),g,t[1],2053994217,11),d,p=a(p,10),b,t[3],2053994217,14),d=s(d=a(d,10),p=s(p,b=s(b,g,y,d,p,t[11],2053994217,14),g,y=a(y,10),d,t[15],2053994217,6),b,g=a(g,10),y,t[0],2053994217,14),b=s(b=a(b,10),g=s(g,y=s(y,d,p,b,g,t[5],2053994217,6),d,p=a(p,10),b,t[12],2053994217,9),y,d=a(d,10),p,t[2],2053994217,12),y=s(y=a(y,10),d=s(d,p=s(p,b,g,y,d,t[13],2053994217,9),b,g=a(g,10),y,t[9],2053994217,12),p,b=a(b,10),g,t[7],2053994217,5),p=u(p=a(p,10),b=s(b,g=s(g,y,d,p,b,t[10],2053994217,15),y,d=a(d,10),p,t[14],2053994217,8),g,y=a(y,10),d,t[12],0,8),g=u(g=a(g,10),y=u(y,d=u(d,p,b,g,y,t[15],0,5),p,b=a(b,10),g,t[10],0,12),d,p=a(p,10),b,t[4],0,9),d=u(d=a(d,10),p=u(p,b=u(b,g,y,d,p,t[1],0,12),g,y=a(y,10),d,t[5],0,5),b,g=a(g,10),y,t[8],0,14),b=u(b=a(b,10),g=u(g,y=u(y,d,p,b,g,t[7],0,6),d,p=a(p,10),b,t[6],0,8),y,d=a(d,10),p,t[2],0,13),y=u(y=a(y,10),d=u(d,p=u(p,b,g,y,d,t[13],0,6),b,g=a(g,10),y,t[14],0,5),p,b=a(b,10),g,t[0],0,15),p=u(p=a(p,10),b=u(b,g=u(g,y,d,p,b,t[3],0,13),y,d=a(d,10),p,t[9],0,11),g,y=a(y,10),d,t[11],0,11),g=a(g,10);var m=this._b+i+g|0;this._b=this._c+o+y|0,this._c=this._d+l+d|0,this._d=this._e+n+p|0,this._e=this._a+r+b|0,this._a=m},o.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 t=new n(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},e.exports=o}).call(this,t("buffer").Buffer)},{buffer:48,"hash-base":106,inherits:123}],175:[function(t,e,n){var r=t("buffer"),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,n),n.Buffer=a),o(i,a),a.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},a.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},{buffer:48}],176:[function(t,e,n){var r=t("safe-buffer").Buffer;function i(t,e){this._block=r.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}i.prototype.update=function(t,e){"string"==typeof t&&(e=e||"utf8",t=r.from(t,e));for(var n=this._block,i=this._blockSize,o=t.length,a=this._len,u=0;u<o;){for(var s=a%i,c=Math.min(o-u,i-s),f=0;f<c;f++)n[s+f]=t[u+f];u+=c,(a+=c)%i==0&&this._update(n)}return this._len+=o,this},i.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=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 r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},{"safe-buffer":175}],177:[function(t,e,n){(n=e.exports=function(t){t=t.toLowerCase();var e=n[t];if(!e)throw new Error(t+" is not supported (we accept pull requests)");return new e}).sha=t("./sha"),n.sha1=t("./sha1"),n.sha224=t("./sha224"),n.sha256=t("./sha256"),n.sha384=t("./sha384"),n.sha512=t("./sha512")},{"./sha":178,"./sha1":179,"./sha224":180,"./sha256":181,"./sha384":182,"./sha512":183}],178:[function(t,e,n){var r=t("inherits"),i=t("./hash"),o=t("safe-buffer").Buffer,a=[1518500249,1859775393,-1894007588,-899497514],u=new Array(80);function s(){this.init(),this._w=u,i.call(this,64,56)}function c(t){return t<<30|t>>>2}function f(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}r(s,i),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(t){for(var e,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,u=0|this._d,s=0|this._e,h=0;h<16;++h)n[h]=t.readInt32BE(4*h);for(;h<80;++h)n[h]=n[h-3]^n[h-8]^n[h-14]^n[h-16];for(var l=0;l<80;++l){var d=~~(l/20),p=0|((e=r)<<5|e>>>27)+f(d,i,o,u)+s+n[l]+a[d];s=u,u=o,o=c(i),i=r,r=p}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=u+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},e.exports=s},{"./hash":176,inherits:123,"safe-buffer":175}],179:[function(t,e,n){var r=t("inherits"),i=t("./hash"),o=t("safe-buffer").Buffer,a=[1518500249,1859775393,-1894007588,-899497514],u=new Array(80);function s(){this.init(),this._w=u,i.call(this,64,56)}function c(t){return t<<5|t>>>27}function f(t){return t<<30|t>>>2}function h(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}r(s,i),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(t){for(var e,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,u=0|this._d,s=0|this._e,l=0;l<16;++l)n[l]=t.readInt32BE(4*l);for(;l<80;++l)n[l]=(e=n[l-3]^n[l-8]^n[l-14]^n[l-16])<<1|e>>>31;for(var d=0;d<80;++d){var p=~~(d/20),b=c(r)+h(p,i,o,u)+s+n[d]+a[p]|0;s=u,u=o,o=f(i),i=r,r=b}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=u+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},e.exports=s},{"./hash":176,inherits:123,"safe-buffer":175}],180:[function(t,e,n){var r=t("inherits"),i=t("./sha256"),o=t("./hash"),a=t("safe-buffer").Buffer,u=new Array(64);function s(){this.init(),this._w=u,o.call(this,64,56)}r(s,i),s.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},s.prototype._hash=function(){var t=a.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},e.exports=s},{"./hash":176,"./sha256":181,inherits:123,"safe-buffer":175}],181:[function(t,e,n){var r=t("inherits"),i=t("./hash"),o=t("safe-buffer").Buffer,a=[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],u=new Array(64);function s(){this.init(),this._w=u,i.call(this,64,56)}function c(t,e,n){return n^t&(e^n)}function f(t,e,n){return t&e|n&(t|e)}function h(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function l(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function d(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}r(s,i),s.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},s.prototype._update=function(t){for(var e,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,u=0|this._d,s=0|this._e,p=0|this._f,b=0|this._g,g=0|this._h,y=0;y<16;++y)n[y]=t.readInt32BE(4*y);for(;y<64;++y)n[y]=0|(((e=n[y-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+n[y-7]+d(n[y-15])+n[y-16];for(var m=0;m<64;++m){var v=g+l(s)+c(s,p,b)+a[m]+n[m]|0,_=h(r)+f(r,i,o)|0;g=b,b=p,p=s,s=u+v|0,u=o,o=i,i=r,r=v+_|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=u+this._d|0,this._e=s+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=g+this._h|0},s.prototype._hash=function(){var t=o.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},e.exports=s},{"./hash":176,inherits:123,"safe-buffer":175}],182:[function(t,e,n){var r=t("inherits"),i=t("./sha512"),o=t("./hash"),a=t("safe-buffer").Buffer,u=new Array(160);function s(){this.init(),this._w=u,o.call(this,128,112)}r(s,i),s.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},s.prototype._hash=function(){var t=a.allocUnsafe(48);function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}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},e.exports=s},{"./hash":176,"./sha512":183,inherits:123,"safe-buffer":175}],183:[function(t,e,n){var r=t("inherits"),i=t("./hash"),o=t("safe-buffer").Buffer,a=[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],u=new Array(160);function s(){this.init(),this._w=u,i.call(this,128,112)}function c(t,e,n){return n^t&(e^n)}function f(t,e,n){return t&e|n&(t|e)}function h(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function l(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function d(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function b(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function g(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function y(t,e){return t>>>0<e>>>0?1:0}r(s,i),s.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},s.prototype._update=function(t){for(var e=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,u=0|this._eh,s=0|this._fh,m=0|this._gh,v=0|this._hh,_=0|this._al,w=0|this._bl,x=0|this._cl,A=0|this._dl,E=0|this._el,M=0|this._fl,C=0|this._gl,S=0|this._hl,B=0;B<32;B+=2)e[B]=t.readInt32BE(4*B),e[B+1]=t.readInt32BE(4*B+4);for(;B<160;B+=2){var k=e[B-30],I=e[B-30+1],F=d(k,I),D=p(I,k),T=b(k=e[B-4],I=e[B-4+1]),N=g(I,k),j=e[B-14],R=e[B-14+1],O=e[B-32],L=e[B-32+1],U=D+R|0,P=F+j+y(U,D)|0;P=(P=P+T+y(U=U+N|0,N)|0)+O+y(U=U+L|0,L)|0,e[B]=P,e[B+1]=U}for(var H=0;H<160;H+=2){P=e[H],U=e[H+1];var z=f(n,r,i),V=f(_,w,x),X=h(n,_),q=h(_,n),W=l(u,E),Y=l(E,u),Z=a[H],G=a[H+1],K=c(u,s,m),J=c(E,M,C),Q=S+Y|0,$=v+W+y(Q,S)|0;$=($=($=$+K+y(Q=Q+J|0,J)|0)+Z+y(Q=Q+G|0,G)|0)+P+y(Q=Q+U|0,U)|0;var tt=q+V|0,et=X+z+y(tt,q)|0;v=m,S=C,m=s,C=M,s=u,M=E,u=o+$+y(E=A+Q|0,A)|0,o=i,A=x,i=r,x=w,r=n,w=_,n=$+et+y(_=Q+tt|0,Q)|0}this._al=this._al+_|0,this._bl=this._bl+w|0,this._cl=this._cl+x|0,this._dl=this._dl+A|0,this._el=this._el+E|0,this._fl=this._fl+M|0,this._gl=this._gl+C|0,this._hl=this._hl+S|0,this._ah=this._ah+n+y(this._al,_)|0,this._bh=this._bh+r+y(this._bl,w)|0,this._ch=this._ch+i+y(this._cl,x)|0,this._dh=this._dh+o+y(this._dl,A)|0,this._eh=this._eh+u+y(this._el,E)|0,this._fh=this._fh+s+y(this._fl,M)|0,this._gh=this._gh+m+y(this._gl,C)|0,this._hh=this._hh+v+y(this._hl,S)|0},s.prototype._hash=function(){var t=o.allocUnsafe(64);function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}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},e.exports=s},{"./hash":176,inherits:123,"safe-buffer":175}],184:[function(t,e,n){e.exports=i;var r=t("events").EventEmitter;function i(){r.call(this)}t("inherits")(i,r),i.Readable=t("readable-stream/readable.js"),i.Writable=t("readable-stream/writable.js"),i.Duplex=t("readable-stream/duplex.js"),i.Transform=t("readable-stream/transform.js"),i.PassThrough=t("readable-stream/passthrough.js"),i.Stream=i,i.prototype.pipe=function(t,e){var n=this;function i(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),t.on("drain",o),t._isStdio||e&&!1===e.end||(n.on("end",u),n.on("close",s));var a=!1;function u(){a||(a=!0,t.end())}function s(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function c(t){if(f(),0===r.listenerCount(this,"error"))throw t}function f(){n.removeListener("data",i),t.removeListener("drain",o),n.removeListener("end",u),n.removeListener("close",s),n.removeListener("error",c),t.removeListener("error",c),n.removeListener("end",f),n.removeListener("close",f),t.removeListener("close",f)}return n.on("error",c),t.on("error",c),n.on("end",f),n.on("close",f),t.on("close",f),t.emit("pipe",n),t}},{events:104,inherits:123,"readable-stream/duplex.js":161,"readable-stream/passthrough.js":170,"readable-stream/readable.js":171,"readable-stream/transform.js":172,"readable-stream/writable.js":173}],185:[function(t,e,n){(function(e){var r=t("./lib/request"),i=t("./lib/response"),o=t("xtend"),a=t("builtin-status-codes"),u=t("url"),s=n;s.request=function(t,n){t="string"==typeof t?u.parse(t):o(t);var i=-1===e.location.protocol.search(/^https?:$/)?"http:":"",a=t.protocol||i,s=t.hostname||t.host,c=t.port,f=t.path||"/";s&&-1!==s.indexOf(":")&&(s="["+s+"]"),t.url=(s?a+"//"+s:"")+(c?":"+c:"")+f,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var h=new r(t);return n&&h.on("response",n),h},s.get=function(t,e){var n=s.request(t,e);return n.end(),n},s.ClientRequest=r,s.IncomingMessage=i.IncomingMessage,s.Agent=function(){},s.Agent.defaultMaxSockets=4,s.globalAgent=new s.Agent,s.STATUS_CODES=a,s.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":187,"./lib/response":188,"builtin-status-codes":49,url:191,xtend:195}],186:[function(t,e,n){(function(t){n.fetch=u(t.fetch)&&u(t.ReadableStream),n.writableStream=u(t.WritableStream),n.abortController=u(t.AbortController),n.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),n.blobConstructor=!0}catch(t){}var e;function r(){if(void 0!==e)return e;if(t.XMLHttpRequest){e=new t.XMLHttpRequest;try{e.open("GET",t.XDomainRequest?"/":"https://example.com")}catch(t){e=null}}else e=null;return e}function i(t){var e=r();if(!e)return!1;try{return e.responseType=t,e.responseType===t}catch(t){}return!1}var o=void 0!==t.ArrayBuffer,a=o&&u(t.ArrayBuffer.prototype.slice);function u(t){return"function"==typeof t}n.arraybuffer=n.fetch||o&&i("arraybuffer"),n.msstream=!n.fetch&&a&&i("ms-stream"),n.mozchunkedarraybuffer=!n.fetch&&o&&i("moz-chunked-arraybuffer"),n.overrideMimeType=n.fetch||!!r()&&u(r().overrideMimeType),n.vbArray=u(t.VBArray),e=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],187:[function(t,e,n){(function(n,r,i){var o=t("./capability"),a=t("inherits"),u=t("./response"),s=t("readable-stream"),c=t("to-arraybuffer"),f=u.IncomingMessage,h=u.readyStates;var l=e.exports=function(t){var e,n=this;s.Writable.call(n),n._opts=t,n._body=[],n._headers={},t.auth&&n.setHeader("Authorization","Basic "+new i(t.auth).toString("base64")),Object.keys(t.headers).forEach(function(e){n.setHeader(e,t.headers[e])});var r=!0;if("disable-fetch"===t.mode||"requestTimeout"in t&&!o.abortController)r=!1,e=!0;else if("prefer-streaming"===t.mode)e=!1;else if("allow-wrong-content-type"===t.mode)e=!o.overrideMimeType;else{if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw new Error("Invalid value for opts.mode");e=!0}n._mode=function(t,e){return o.fetch&&e?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&t?"arraybuffer":o.vbArray&&t?"text:vbarray":"text"}(e,r),n.on("finish",function(){n._onFinish()})};a(l,s.Writable),l.prototype.setHeader=function(t,e){var n=t.toLowerCase();-1===d.indexOf(n)&&(this._headers[n]={name:t,value:e})},l.prototype.getHeader=function(t){var e=this._headers[t.toLowerCase()];return e?e.value:null},l.prototype.removeHeader=function(t){delete this._headers[t.toLowerCase()]},l.prototype._onFinish=function(){var t=this;if(!t._destroyed){var e=t._opts,a=t._headers,u=null;"GET"!==e.method&&"HEAD"!==e.method&&(u=o.arraybuffer?c(i.concat(t._body)):o.blobConstructor?new r.Blob(t._body.map(function(t){return c(t)}),{type:(a["content-type"]||{}).value||""}):i.concat(t._body).toString());var s=[];if(Object.keys(a).forEach(function(t){var e=a[t].name,n=a[t].value;Array.isArray(n)?n.forEach(function(t){s.push([e,t])}):s.push([e,n])}),"fetch"===t._mode){var f=null;if(o.abortController){var l=new AbortController;f=l.signal,t._fetchAbortController=l,"requestTimeout"in e&&0!==e.requestTimeout&&r.setTimeout(function(){t.emit("requestTimeout"),t._fetchAbortController&&t._fetchAbortController.abort()},e.requestTimeout)}r.fetch(t._opts.url,{method:t._opts.method,headers:s,body:u||void 0,mode:"cors",credentials:e.withCredentials?"include":"same-origin",signal:f}).then(function(e){t._fetchResponse=e,t._connect()},function(e){t.emit("error",e)})}else{var d=t._xhr=new r.XMLHttpRequest;try{d.open(t._opts.method,t._opts.url,!0)}catch(e){return void n.nextTick(function(){t.emit("error",e)})}"responseType"in d&&(d.responseType=t._mode.split(":")[0]),"withCredentials"in d&&(d.withCredentials=!!e.withCredentials),"text"===t._mode&&"overrideMimeType"in d&&d.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in e&&(d.timeout=e.requestTimeout,d.ontimeout=function(){t.emit("requestTimeout")}),s.forEach(function(t){d.setRequestHeader(t[0],t[1])}),t._response=null,d.onreadystatechange=function(){switch(d.readyState){case h.LOADING:case h.DONE:t._onXHRProgress()}},"moz-chunked-arraybuffer"===t._mode&&(d.onprogress=function(){t._onXHRProgress()}),d.onerror=function(){t._destroyed||t.emit("error",new Error("XHR error"))};try{d.send(u)}catch(e){return void n.nextTick(function(){t.emit("error",e)})}}}},l.prototype._onXHRProgress=function(){(function(t){try{var e=t.status;return null!==e&&0!==e}catch(t){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},l.prototype._connect=function(){var t=this;t._destroyed||(t._response=new f(t._xhr,t._fetchResponse,t._mode),t._response.on("error",function(e){t.emit("error",e)}),t.emit("response",t._response))},l.prototype._write=function(t,e,n){this._body.push(t),n()},l.prototype.abort=l.prototype.destroy=function(){this._destroyed=!0,this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},l.prototype.end=function(t,e,n){"function"==typeof t&&(n=t,t=void 0),s.Writable.prototype.end.call(this,t,e,n)},l.prototype.flushHeaders=function(){},l.prototype.setTimeout=function(){},l.prototype.setNoDelay=function(){},l.prototype.setSocketKeepAlive=function(){};var d=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer)},{"./capability":186,"./response":188,_process:144,buffer:48,inherits:123,"readable-stream":171,"to-arraybuffer":190}],188:[function(t,e,n){(function(e,r,i){var o=t("./capability"),a=t("inherits"),u=t("readable-stream"),s=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=n.IncomingMessage=function(t,n,r){var a=this;if(u.Readable.call(a),a._mode=r,a.headers={},a.rawHeaders=[],a.trailers={},a.rawTrailers=[],a.on("end",function(){e.nextTick(function(){a.emit("close")})}),"fetch"===r){if(a._fetchResponse=n,a.url=n.url,a.statusCode=n.status,a.statusMessage=n.statusText,n.headers.forEach(function(t,e){a.headers[e.toLowerCase()]=t,a.rawHeaders.push(e,t)}),o.writableStream){var s=new WritableStream({write:function(t){return new Promise(function(e,n){a._destroyed||(a.push(new i(t))?e():a._resumeFetch=e)})},close:function(){a._destroyed||a.push(null)},abort:function(t){a._destroyed||a.emit("error",t)}});try{return void n.body.pipeTo(s)}catch(t){}}var c=n.body.getReader();!function t(){c.read().then(function(e){a._destroyed||(e.done?a.push(null):(a.push(new i(e.value)),t()))}).catch(function(t){a._destroyed||a.emit("error",t)})}()}else{if(a._xhr=t,a._pos=0,a.url=t.responseURL,a.statusCode=t.status,a.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach(function(t){var e=t.match(/^([^:]+):\s*(.*)/);if(e){var n=e[1].toLowerCase();"set-cookie"===n?(void 0===a.headers[n]&&(a.headers[n]=[]),a.headers[n].push(e[2])):void 0!==a.headers[n]?a.headers[n]+=", "+e[2]:a.headers[n]=e[2],a.rawHeaders.push(e[1],e[2])}}),a._charset="x-user-defined",!o.overrideMimeType){var f=a.rawHeaders["mime-type"];if(f){var h=f.match(/;\s*charset=([^;])(;|$)/);h&&(a._charset=h[1].toLowerCase())}a._charset||(a._charset="utf-8")}}};a(c,u.Readable),c.prototype._read=function(){var t=this._resumeFetch;t&&(this._resumeFetch=null,t())},c.prototype._onXHRProgress=function(){var t=this,e=t._xhr,n=null;switch(t._mode){case"text:vbarray":if(e.readyState!==s.DONE)break;try{n=new r.VBArray(e.responseBody).toArray()}catch(t){}if(null!==n){t.push(new i(n));break}case"text":try{n=e.responseText}catch(e){t._mode="text:vbarray";break}if(n.length>t._pos){var o=n.substr(t._pos);if("x-user-defined"===t._charset){for(var a=new i(o.length),u=0;u<o.length;u++)a[u]=255&o.charCodeAt(u);t.push(a)}else t.push(o,t._charset);t._pos=n.length}break;case"arraybuffer":if(e.readyState!==s.DONE||!e.response)break;n=e.response,t.push(new i(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=e.response,e.readyState!==s.LOADING||!n)break;t.push(new i(new Uint8Array(n)));break;case"ms-stream":if(n=e.response,e.readyState!==s.LOADING)break;var c=new r.MSStreamReader;c.onprogress=function(){c.result.byteLength>t._pos&&(t.push(new i(new Uint8Array(c.result.slice(t._pos)))),t._pos=c.result.byteLength)},c.onload=function(){t.push(null)},c.readAsArrayBuffer(n)}t._xhr.readyState===s.DONE&&"ms-stream"!==t._mode&&t.push(null)}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer)},{"./capability":186,_process:144,buffer:48,inherits:123,"readable-stream":171}],189:[function(t,e,n){"use strict";var r=t("safe-buffer").Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.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}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=s,this.end=c,e=4;break;case"utf8":this.fillLast=u,e=4;break;case"base64":this.text=f,this.end=h,e=3;break;default:return this.write=l,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:-1}function u(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"<22>".repeat(n);if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"<22>".repeat(n+1);if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"<22>".repeat(n+2)}}(this,t,e);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function s(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function f(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function l(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):""}n.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""},o.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"<22>".repeat(this.lastTotal-this.lastNeed):e},o.prototype.text=function(t,e){var n=function(t,e,n){var r=e.length-1;if(r<n)return 0;var i=a(e[r]);if(i>=0)return i>0&&(t.lastNeed=i-1),i;if(--r<n)return 0;if((i=a(e[r]))>=0)return i>0&&(t.lastNeed=i-2),i;if(--r<n)return 0;if((i=a(e[r]))>=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},{"safe-buffer":175}],190:[function(t,e,n){var r=t("buffer").Buffer;e.exports=function(t){if(t instanceof Uint8Array){if(0===t.byteOffset&&t.byteLength===t.buffer.byteLength)return t.buffer;if("function"==typeof t.buffer.slice)return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(r.isBuffer(t)){for(var e=new Uint8Array(t.length),n=t.length,i=0;i<n;i++)e[i]=t[i];return e.buffer}throw new Error("Argument must be a Buffer")}},{buffer:48}],191:[function(t,e,n){"use strict";var r=t("punycode"),i=t("./util");function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}n.parse=v,n.resolve=function(t,e){return v(t,!1,!0).resolve(e)},n.resolveObject=function(t,e){return t?v(t,!1,!0).resolveObject(e):e},n.format=function(t){i.isString(t)&&(t=v(t));return t instanceof o?t.format():o.prototype.format.call(t)},n.Url=o;var a=/^([a-z0-9.+-]+:)/i,u=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),f=["'"].concat(c),h=["%","/","?",";","#"].concat(f),l=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=t("querystring");function v(t,e,n){if(t&&i.isObject(t)&&t instanceof o)return t;var r=new o;return r.parse(t,e,n),r}o.prototype.parse=function(t,e,n){if(!i.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),u=-1!==o&&o<t.indexOf("#")?"?":"#",c=t.split(u);c[0]=c[0].replace(/\\/g,"/");var v=t=c.join(u);if(v=v.trim(),!n&&1===t.split("#").length){var _=s.exec(v);if(_)return this.path=v,this.href=v,this.pathname=_[1],_[2]?(this.search=_[2],this.query=e?m.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var w=a.exec(v);if(w){var x=(w=w[0]).toLowerCase();this.protocol=x,v=v.substr(w.length)}if(n||w||v.match(/^\/\/[^@\/]+@[^@\/]+/)){var A="//"===v.substr(0,2);!A||w&&g[w]||(v=v.substr(2),this.slashes=!0)}if(!g[w]&&(A||w&&!y[w])){for(var E,M,C=-1,S=0;S<l.length;S++){-1!==(B=v.indexOf(l[S]))&&(-1===C||B<C)&&(C=B)}-1!==(M=-1===C?v.lastIndexOf("@"):v.lastIndexOf("@",C))&&(E=v.slice(0,M),v=v.slice(M+1),this.auth=decodeURIComponent(E)),C=-1;for(S=0;S<h.length;S++){var B;-1!==(B=v.indexOf(h[S]))&&(-1===C||B<C)&&(C=B)}-1===C&&(C=v.length),this.host=v.slice(0,C),v=v.slice(C),this.parseHost(),this.hostname=this.hostname||"";var k="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!k)for(var I=this.hostname.split(/\./),F=(S=0,I.length);S<F;S++){var D=I[S];if(D&&!D.match(d)){for(var T="",N=0,j=D.length;N<j;N++)D.charCodeAt(N)>127?T+="x":T+=D[N];if(!T.match(d)){var R=I.slice(0,S),O=I.slice(S+1),L=D.match(p);L&&(R.push(L[1]),O.unshift(L[2])),O.length&&(v="/"+O.join(".")+v),this.hostname=R.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),k||(this.hostname=r.toASCII(this.hostname));var U=this.port?":"+this.port:"",P=this.hostname||"";this.host=P+U,this.href+=this.host,k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!b[x])for(S=0,F=f.length;S<F;S++){var H=f[S];if(-1!==v.indexOf(H)){var z=encodeURIComponent(H);z===H&&(z=escape(H)),v=v.split(H).join(z)}}var V=v.indexOf("#");-1!==V&&(this.hash=v.substr(V),v=v.slice(0,V));var X=v.indexOf("?");if(-1!==X?(this.search=v.substr(X),this.query=v.substr(X+1),e&&(this.query=m.parse(this.query)),v=v.slice(0,X)):e&&(this.search="",this.query={}),v&&(this.pathname=v),y[x]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){U=this.pathname||"";var q=this.search||"";this.path=U+q}return this.href=this.format(),this},o.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,a="";this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(a=m.stringify(this.query));var u=this.search||a&&"?"+a||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||y[e])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),u&&"?"!==u.charAt(0)&&(u="?"+u),e+o+(n=n.replace(/[?#]/g,function(t){return encodeURIComponent(t)}))+(u=u.replace("#","%23"))+r},o.prototype.resolve=function(t){return this.resolveObject(v(t,!1,!0)).format()},o.prototype.resolveObject=function(t){if(i.isString(t)){var e=new o;e.parse(t,!1,!0),t=e}for(var n=new o,r=Object.keys(this),a=0;a<r.length;a++){var u=r[a];n[u]=this[u]}if(n.hash=t.hash,""===t.href)return n.href=n.format(),n;if(t.slashes&&!t.protocol){for(var s=Object.keys(t),c=0;c<s.length;c++){var f=s[c];"protocol"!==f&&(n[f]=t[f])}return y[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(t.protocol&&t.protocol!==n.protocol){if(!y[t.protocol]){for(var h=Object.keys(t),l=0;l<h.length;l++){var d=h[l];n[d]=t[d]}return n.href=n.format(),n}if(n.protocol=t.protocol,t.host||g[t.protocol])n.pathname=t.pathname;else{for(var p=(t.pathname||"").split("/");p.length&&!(t.host=p.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=t.search,n.query=t.query,n.host=t.host||"",n.auth=t.auth,n.hostname=t.hostname||t.host,n.port=t.port,n.pathname||n.search){var b=n.pathname||"",m=n.search||"";n.path=b+m}return n.slashes=n.slashes||t.slashes,n.href=n.format(),n}var v=n.pathname&&"/"===n.pathname.charAt(0),_=t.host||t.pathname&&"/"===t.pathname.charAt(0),w=_||v||n.host&&t.pathname,x=w,A=n.pathname&&n.pathname.split("/")||[],E=(p=t.pathname&&t.pathname.split("/")||[],n.protocol&&!y[n.protocol]);if(E&&(n.hostname="",n.port=null,n.host&&(""===A[0]?A[0]=n.host:A.unshift(n.host)),n.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===p[0]?p[0]=t.host:p.unshift(t.host)),t.host=null),w=w&&(""===p[0]||""===A[0])),_)n.host=t.host||""===t.host?t.host:n.host,n.hostname=t.hostname||""===t.hostname?t.hostname:n.hostname,n.search=t.search,n.query=t.query,A=p;else if(p.length)A||(A=[]),A.pop(),A=A.concat(p),n.search=t.search,n.query=t.query;else if(!i.isNullOrUndefined(t.search)){if(E)n.hostname=n.host=A.shift(),(k=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=k.shift(),n.host=n.hostname=k.shift());return n.search=t.search,n.query=t.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!A.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var M=A.slice(-1)[0],C=(n.host||t.host||A.length>1)&&("."===M||".."===M)||""===M,S=0,B=A.length;B>=0;B--)"."===(M=A[B])?A.splice(B,1):".."===M?(A.splice(B,1),S++):S&&(A.splice(B,1),S--);if(!w&&!x)for(;S--;S)A.unshift("..");!w||""===A[0]||A[0]&&"/"===A[0].charAt(0)||A.unshift(""),C&&"/"!==A.join("/").substr(-1)&&A.push("");var k,I=""===A[0]||A[0]&&"/"===A[0].charAt(0);E&&(n.hostname=n.host=I?"":A.length?A.shift():"",(k=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=k.shift(),n.host=n.hostname=k.shift()));return(w=w||n.host&&A.length)&&!I&&A.unshift(""),A.length?n.pathname=A.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var t=this.host,e=u.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},{"./util":192,punycode:151,querystring:158}],192:[function(t,e,n){"use strict";e.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},{}],193:[function(t,e,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(t){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(t,e){if(n("noDeprecation"))return t;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],194:[function(require,module,exports){var indexOf=require("indexof"),Object_keys=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var n in t)e.push(n);return e},forEach=function(t,e){if(t.forEach)return t.forEach(e);for(var n=0;n<t.length;n++)e(t[n],n,t)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(t,e,n){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:n})}}catch(t){return function(t,e,n){t[e]=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"];function Context(){}Context.prototype={};var Script=exports.Script=function(t){if(!(this instanceof Script))return new Script(t);this.code=t};Script.prototype.runInContext=function(t){if(!(t instanceof Context))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var n=e.contentWindow,r=n.eval,i=n.execScript;!r&&i&&(i.call(n,"null"),r=n.eval),forEach(Object_keys(t),function(e){n[e]=t[e]}),forEach(globals,function(e){t[e]&&(n[e]=t[e])});var o=Object_keys(n),a=r.call(n,this.code);return forEach(Object_keys(n),function(e){(e in t||-1===indexOf(o,e))&&(t[e]=n[e])}),forEach(globals,function(e){e in t||defineProp(t,e,n[e])}),document.body.removeChild(e),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(t){var e=Script.createContext(t),n=this.runInContext(e);return forEach(Object_keys(e),function(n){t[n]=e[n]}),n},forEach(Object_keys(Script.prototype),function(t){exports[t]=Script[t]=function(e){var n=Script(e);return n[t].apply(n,[].slice.call(arguments,1))}}),exports.createScript=function(t){return exports.Script(t)},exports.createContext=Script.createContext=function(t){var e=new Context;return"object"==typeof t&&forEach(Object_keys(t),function(n){e[n]=t[n]}),e}},{indexof:122}],195:[function(t,e,n){e.exports=function(){for(var t={},e=0;e<arguments.length;e++){var n=arguments[e];for(var i in n)r.call(n,i)&&(t[i]=n[i])}return t};var r=Object.prototype.hasOwnProperty},{}],196:[function(t,e,n){"use strict";var r=t("./lib/bounds"),i=t("./lib/plot"),o=t("ode-rk4"),a=t("control-panel"),u=t("util-extend"),s=t("d3"),c=t("./lib/animation"),f=t("qs"),h=t("./lib/presets"),l=t("./lib/reset-timer");t("insert-css")("html, body {\n margin: 0;\n padding: 0;\n background-color: #111;\n}\n\n.gh-corner {\n position: absolute;\n top: 0;\n right: 0;\n display: block;\n}\n\n.control-panel {\n position: relative !important;\n top: 0 !important;\n left: 0 !important;\n display: inline-block !important;\n}\n\n.control-panel-root {\n position: absolute;\n top: 0;\n left: 0;\n display: inline-block;\n z-index: 100;\n transition: transform 0.2s ease-in-out;\n transform: translate3d(-260px,0,0);\n}\n\n.control-panel-root.is-hover {\n transform: translate3d(0,0,0);\n}\n");var d=document.createElement("div");d.id="control-panel-root",d.classList.add("control-panel-root"),d.classList.add("is-hover"),document.body.appendChild(d);var p=document.createElement("canvas");p.id="plot",document.body.appendChild(p);var b=new r({xmin:-1.01,xmax:1.01,ymin:-1.01,ymax:1.01}),g={gravity:1,length:.5,mass:1,opacity:.5,pendulum:!0,ptheta1:0,ptheta2:0,steps:7,theta1:2.21796441343439,theta2:1.31946891450771};!function(){try{for(var t in g=u(g,f.parse(window.location.hash.replace(/^#/,""))))g[t]="pendulum"!==t?Number(g[t]):"true"===String(g[t])}catch(t){}}();var y=["length","gravity","mass","theta1","theta2","ptheta1","ptheta2"],m=null,v=new c,_=document.getElementById("control-panel-root"),w=a([{type:"select",label:"preset",options:["Select preset:"].concat(Object.keys(h))},{type:"button",label:"restart",action:function(){F(),I()}},{type:"range",label:"length",min:.1,max:.5,initial:g.length,steps:400},{type:"range",label:"gravity",min:0,max:2,initial:g.gravity,steps:200},{type:"range",label:"mass",min:0,max:20,initial:g.mass,steps:200},{type:"range",label:"theta1",min:-Math.PI,max:Math.PI,initial:g.theta1,steps:1e3},{type:"range",label:"theta2",min:-Math.PI,max:Math.PI,initial:g.theta2,steps:1e3},{type:"range",label:"ptheta1",min:-1,max:1,initial:g.ptheta1,steps:200},{type:"range",label:"ptheta2",min:-1,max:1,initial:g.ptheta2,steps:200},{type:"range",label:"opacity",min:0,max:1,initial:g.opacity,steps:100},{type:"range",label:"steps",min:1,max:2e3,initial:g.steps,steps:1999},{type:"checkbox",label:"pendulum",initial:g.pendulum}],{theme:"dark",position:"top-left",root:_});w.on("input",function(t,e){B(t.opacity),u(g,t),"preset"===e?(u(g,h[t.preset]),w.set(g),F(),I()):w.set({preset:"Select preset:"}),E.style("display",t.pendulum||m?"block":"none"),window.location.hash=f.stringify(g),-1!==y.indexOf(e)&&(F(),I()),m&&D()}).on("start",function(){E.style("display","block"),(m=v.isRunning)&&v.stop()}).on("end",function(){m&&(v.start(),E.style("display",g.pendulum?"block":"none")),m=null});var x,A,E=s.select("body").append("svg"),M=new i("plot",function(t,e){b.resize(t,e),E.attr("width",t/window.devicePixelRatio).attr("height",e/window.devicePixelRatio).style("display",g.pendulum?"block":"none"),E.append("path").attr("id","pendulum").style("stroke","rgba(200,200,200,0.7)").style("stroke-width",4).style("fill","none")}),C=[g.theta1,g.theta2,g.ptheta1,g.ptheta2],S=o(C,function(t,e,n){var r=g.length*g.length,i=6/g.mass/r,o=-.5*g.mass*r,a=e[0],u=e[1],s=e[2],c=e[3],f=Math.cos(a-u),h=Math.sin(a-u),l=(16-9*f*f)/i;t[0]=(2*s-3*f*c)/l,t[1]=(8*c-3*f*s)/l;var d=t[0]*t[1]*h;t[2]=o*(d+3*g.gravity/g.length*Math.sin(a)),t[3]=o*(-d+g.gravity/g.length*Math.sin(u))},0,.005);function B(t){A="rgba(100,180,255,"+t+")"}function k(t){var e=g.length*Math.sin(t[0]),n=g.length*Math.cos(t[0]),r=e+g.length*Math.sin(t[1]),i=n+g.length*Math.cos(t[1]);return[[b.x(0),b.y(0)],[b.x(e),b.y(n)],[b.x(r),b.y(i)]]}function I(){M.ctx.clearRect(0,0,M.canvas.width,M.canvas.height)}function F(){x=s.line().x(function(t){return t[0]/2}).y(function(t){return t[1]/2}),C[0]=g.theta1,C[1]=g.theta2,C[2]=g.ptheta1,C[3]=g.ptheta2,B(g.opacity)}function D(){var t=M.ctx;t.globalCompositeOperation="screen",t.strokeStyle=A,t.beginPath();var e=k(C);t.moveTo(e[2][0],e[2][1]);for(var n=0;n<g.steps;n++)v.isRunning&&S.step(),e=k(C),t.lineTo(e[2][0],e[2][1]);t.stroke(),(g.pendulum||m)&&s.select("#pendulum").attr("d",x(e))}v.on("frame",D),F(),v.start();var T=new l(2e3);_.addEventListener("mouseenter",function(){_.classList.add("is-hover"),T.stop()},!1),_.addEventListener("mouseleave",function(){T.reset()},!1),T.on("timeout",function(){_.classList.remove("is-hover")})},{"./lib/animation":197,"./lib/bounds":198,"./lib/plot":199,"./lib/presets":200,"./lib/reset-timer":201,"control-panel":215,d3:247,"insert-css":253,"ode-rk4":131,qs:152,"util-extend":284}],197:[function(t,e,n){"use strict";var r=t("event-emitter");function i(){this.frame=0,r.call(this)}e.exports=i,r(i.prototype),i.prototype.start=function(){if(!this.raf){var t=function(e){this.emit("frame",e,this.frame++),this.raf=requestAnimationFrame(t)}.bind(this);this.raf=requestAnimationFrame(t)}return this},i.prototype.stop=function(){return this.raf&&(cancelAnimationFrame(this.raf),this.raf=null),this},Object.defineProperties(i.prototype,{isRunning:{get:function(){return!!this.raf}}})},{"event-emitter":103}],198:[function(t,e,n){"use strict";var r=t("util-extend");function i(){var t=0,e=1,n=0,r=1,i=0,o=0;function a(){o=n-(r-n)*t/(e-t),i=(r-n)/(e-t)}function u(t){return i*t+o}return u.domain=function(n){return t=n[0],e=n[1],a(),u},u.range=function(t){return n=t[0],r=t[1],a(),u},u}function o(t){t=r({xmin:-1,xmax:1,ymin:-1,ymax:1,width:window.innerWidth,height:window.innerHeight},t||{}),this.xmin=t.xmin,this.xmax=t.xmax,this.ymin=t.ymin,this.ymax=t.ymax,this.x=i(),this.y=i(),this.computeRange(),this.store(),this.resize=function(t,e){t>e?(this.xrng=this.yrng0*t/e,this.xmin=this.xcen0-this.xrng,this.xmax=this.xcen0+this.xrng,this.ymin=this.ycen0-this.yrng0,this.ymax=this.ycen0+this.yrng0):(this.yrng=this.xrng0*e/t,this.xmin=this.xcen0-this.xrng0,this.xmax=this.xcen0+this.xrng0,this.ymin=this.ycen0-this.yrng,this.ymax=this.ycen0+this.yrng),this.x.range([0,t]).domain([this.xmin,this.xmax]),this.y.range([e,0]).domain([this.ymin,this.ymax])}.bind(this)}e.exports=o,window.scaleLinear=i,o.prototype.computeRange=function(){return this.xcen=.5*(this.xmin+this.xmax),this.ycen=.5*(this.ymin+this.ymax),this.xrng=.5*(this.xmin-this.xmax),this.yrng=.5*(this.ymin-this.ymax),this},o.prototype.store=function(){return this.xmin0=this.xmin,this.xmax0=this.xmax,this.ymin0=this.ymin,this.ymax0=this.ymax,this.xcen0=.5*(this.xmin0+this.xmax0),this.ycen0=.5*(this.ymin0+this.ymax0),this.xrng0=.5*(this.xmin0-this.xmax0),this.yrng0=.5*(this.ymin0-this.ymax0),this}},{"util-extend":284}],199:[function(t,e,n){"use strict";var r=t("canvas-fit");e.exports=function(t,e){this.canvas=document.getElementById(t);var n=r(this.canvas,window,window.devicePixelRatio);this.ctx=this.canvas.getContext("2d");var i=function(){n(),this.ctx=this.canvas.getContext("2d"),e&&e(this.canvas.width,this.canvas.height)}.bind(this);window.addEventListener("resize",i,!1),i()}},{"canvas-fit":50}],200:[function(t,e,n){"use strict";e.exports={spirograph:{gravity:1,length:.5,mass:1,opacity:.06,pendulum:!1,ptheta1:1,ptheta2:.87,steps:2e3,theta1:-3.14159265358979,theta2:1.69017684763131},basic:{gravity:1,length:.5,mass:1,opacity:.5,pendulum:!0,ptheta1:0,ptheta2:0,steps:7,theta1:2.21796441343439,theta2:1.31946891450771},"black hole":{gravity:0,length:.5,mass:1,opacity:.02,pendulum:!1,ptheta1:1,ptheta2:-.25,steps:2e3,theta1:1.74672551539593,theta2:-1.68389366232413},"low-level chaos":{gravity:1,length:.5,mass:1,opacity:.04,pendulum:!0,ptheta1:.14,ptheta2:.05,steps:1028,theta1:-.678584013175395,theta2:.320442450666159},weaving:{gravity:1,length:.5,mass:1,opacity:.02,pendulum:!0,ptheta1:-.32,ptheta2:.02,steps:1257,theta1:.408407044966674,theta2:5e-16},nullspace:{gravity:1,length:.5,mass:.3,opacity:.02,pendulum:!1,ptheta1:.3,ptheta2:-.05,steps:2e3,theta1:.408407044966674,theta2:.00628318530718008},flower:{gravity:0,length:.5,mass:1,opacity:.09,pendulum:!1,ptheta1:1,ptheta2:-.25,steps:2e3,theta1:1.80955736846772,theta2:-1.68389366232413},torus:{gravity:.04,length:.5,mass:1,opacity:.06,pendulum:!1,ptheta1:.27,ptheta2:.32,steps:2e3,theta1:1.89752196276824,theta2:3.13530946828261},sinuous:{gravity:.04,length:.5,mass:1,opacity:.04,pendulum:!1,ptheta1:1,ptheta2:-.25,steps:2e3,theta1:2.21168122812722,theta2:-1.68389366232413},repetitive:{gravity:1,length:.5,mass:1,opacity:.47,pendulum:!0,ptheta1:0,ptheta2:0,steps:11,theta1:-1.04929194629899,theta2:-1.85353966561798},recurrence:{gravity:1,length:.5,mass:1,opacity:.02,pendulum:!1,ptheta1:.14,ptheta2:-.19,steps:2e3,theta1:-.678584013175395,theta2:.955044166691298},webbing:{gravity:1,length:.5,mass:1,opacity:.06,pendulum:!1,ptheta1:.14,ptheta2:-.19,steps:2e3,theta1:-.640884901332317,theta2:.955044166691298},bow:{gravity:.13,length:.5,mass:1,opacity:.03,pendulum:!1,ptheta1:-.08,ptheta2:.23,steps:2e3,theta1:-2.31849537834927,theta2:-2.3687608608067}}},{}],201:[function(t,e,n){"use strict";var r=t("event-emitter");function i(t){this.delay=t,r.call(this)}e.exports=i,r(i.prototype),i.prototype.reset=function(){return this.stop(),this.start(),this},i.prototype.stop=function(){return this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this},i.prototype.start=function(){return this.timeout=setTimeout(function(){this.emit("timeout")}.bind(this),this.delay),this}},{"event-emitter":103}],202:[function(t,e,n){var r={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};e.exports=function(t,e){return"number"!=typeof e||r[t]?e:e+"px"}},{}],203:[function(t,e,n){function r(t){if(t)return function(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}(t)}void 0!==e&&(e.exports=r),r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i<r.length;i++)if((n=r[i])===e||n.fn===e){r.splice(i,1);break}return this},r.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks["$"+t];if(n)for(var r=0,i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,e);return this},r.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},r.prototype.hasListeners=function(t){return!!this.listeners(t).length}},{}],204:[function(t,e,n){var r=t("events").EventEmitter,i=t("inherits"),o=t("dom-css");function a(e,n,r,i){if(!(this instanceof a))return new a(e,n,r,i);var u=t("./container")(e,n.label);t("./label")(u,"",r);var s=u.appendChild(document.createElement("button"));s.className="control-panel-button-"+i,s.onfocus=function(){o(s,{outline:"none"})},s.textContent=n.label,o(s,{position:"absolute",textAlign:"center",height:"20px",width:"62%",border:"none",cursor:"pointer",right:0,fontFamily:"inherit"}),s.addEventListener("click",n.action)}e.exports=a,i(a,r)},{"./container":207,"./label":209,"dom-css":248,events:104,inherits:252}],205:[function(t,e,n){var r=t("events").EventEmitter,i=t("inherits");function o(e,n,r,i){if(!(this instanceof o))return new o(e,n,r,i);n=n||{};var a=this,u=t("./container")(e,n.label);t("./label")(u,n.label,r);var s=u.appendChild(document.createElement("input"));s.id="checkbox-"+n.label+i,s.type="checkbox",s.checked=n.initial,s.className="control-panel-checkbox-"+i;var c=u.appendChild(document.createElement("label"));c.htmlFor="checkbox-"+n.label+i,c.className="control-panel-checkbox-"+i,setTimeout(function(){a.emit("initialized",s.checked)}),s.onchange=function(t){a.emit("input",t.target.checked)},this.set=function(t){s.checked=!!t}}e.exports=o,i(o,r)},{"./container":207,"./label":209,events:104,inherits:252}],206:[function(t,e,n){var r=t("events").EventEmitter,i=t("simple-color-picker"),o=t("inherits"),a=t("dom-css"),u=t("tinycolor2");function s(e,n,r,o){if(!(this instanceof s))return new s(e,n,r,o);(n=n||{}).format=n.format||"rgb",n.initial=n.initial||"#123456";var c=this,f=t("./container")(e,n.label);t("./label")(f,n.label,r);var h=f.appendChild(document.createElement("span"));h.className="control-panel-color-"+o;var l=t("./value")(f,"",r,"46%");h.onmouseover=function(){p.$el.style.display=""};var d=n.initial;switch(n.format){case"rgb":case"hex":d=u(d).toHexString();break;case"array":d=u.fromRatio({r:d[0],g:d[1],b:d[2]}).toHexString()}var p=new i({el:h,color:d,background:r.background1,width:125,height:100});function b(t){switch(n.format){case"rgb":return u(t).toRgbString();case"hex":return u(t).toHexString();case"array":var e=u(t).toRgb();return[e.r/255,e.g/255,e.b/255].map(function(t){return t.toFixed(2)});default:return t}}a(p.$el,{marginTop:"20px",display:"none",position:"absolute"}),a(h,{position:"relative",display:"inline-block",width:"12.5%",height:"20px",backgroundColor:p.getHexString()}),h.onmouseout=function(t){p.$el.style.display="none"},setTimeout(function(){c.emit("initialized",d)}),p.onChange(function(t){l.innerHTML=b(t),a(h,{backgroundColor:t}),c.emit("input",b(t))})}e.exports=s,o(s,r)},{"./container":207,"./label":209,"./value":214,"dom-css":248,events:104,inherits:252,"simple-color-picker":277,tinycolor2:279}],207:[function(t,e,n){var r=t("dom-css"),i=t("param-case");e.exports=function(t,e){var n=t.appendChild(document.createElement("div"));return n.id="control-panel-"+i(e),r(n,{position:"relative",height:"25px"}),n}},{"dom-css":248,"param-case":270}],208:[function(t,e,n){var r=t("events").EventEmitter,i=t("inherits"),o=t("is-numeric"),a=t("dom-css");function u(t,e,n){return Math.min(Math.max(t,e),n)}function s(e,n,r,i){if(!(this instanceof s))return new s(e,n,r,i);var c,f,h,l,d,p,b,g,y=this,m=t("./container")(e,n.label);if(t("./label")(m,n.label,r),n.step&&n.steps)throw new Error("Cannot specify both step and steps. Got step = "+n.step+", steps = ",n.steps);if(setTimeout(function(){p=document.getElementById("control-panel-"+i)}),(b=m.appendChild(document.createElement("span"))).className="control-panel-interval-"+i,(g=document.createElement("span")).className="control-panel-interval-handle",b.appendChild(g),"log"===n.scale?(c=function(t){return d*Math.exp(Math.log(h)+(Math.log(l)-Math.log(h))*t/100)},f=function(t){return 100*(Math.log(t*d)-Math.log(h))/(Math.log(l)-Math.log(h))}):c=f=function(t){return t},Array.isArray(n.initial)||(n.initial=[]),"log"===n.scale){if(n.max=o(n.max)?n.max:100,n.min=o(n.min)?n.min:.1,n.min*n.max<=0)throw new Error("Log range min/max must have the same sign and not equal zero. Got min = "+n.min+", max = "+n.max);if(h=n.min,l=n.max,d=n.min>0?1:-1,h=Math.abs(h),l=Math.abs(l),n.min=0,n.max=100,o(n.step))throw new Error("Log may only use steps (integer number of steps), not a step value. Got step ="+n.step);if(n.step=1,n.initial=[f(o(n.initial[0])?n.initial[0]:c(n.min+.25*(n.max-n.min))),f(o(n.initial[1])?n.initial[1]:c(n.min+.75*(n.max-n.min)))],c(n.initial[0])*c(n.max)<=0||c(n.initial[1])*c(n.max)<=0)throw new Error("Log range initial value must have the same sign as min/max and must not equal zero. Got initial value = ["+c(n.initial[0])+", "+c(n.initial[1])+"]")}else n.max=o(n.max)?n.max:100,n.min=o(n.min)?n.min:0,n.step=o(n.step)?n.step:(n.max-n.min)/100,n.initial=[o(n.initial[0])?n.initial[0]:.25*(n.min+n.max),o(n.initial[1])?n.initial[1]:.75*(n.min+n.max)];o(n.steps)&&(n.step=o(n.steps)?(n.max-n.min)/n.steps:n.step),n.initial[0]=n.min+n.step*Math.round((n.initial[0]-n.min)/n.step),n.initial[1]=n.min+n.step*Math.round((n.initial[1]-n.min)/n.step);var v=n.initial;function _(){a(g,{left:(v[0]-n.min)/(n.max-n.min)*100+"%",right:100-(v[1]-n.min)/(n.max-n.min)*100+"%"})}_();var w=t("./value")(m,c(n.initial[0]),r,"11%",!0),x=t("./value")(m,c(n.initial[1]),r,"11%"),A=-1;function E(t){return t.pageX-b.getBoundingClientRect().left}function M(t){if(-1!==A){var e=(v[0]-n.min)/(n.max-n.min),r=(v[1]-n.min)/(n.max-n.min);t=0===A?Math.min(r,t):Math.max(e,t);var i=n.min+Math.round((n.max-n.min)*t/n.step)*n.step;v[A]=i,_(),b.oninput()}}var C=function(t){M(u(E(t)/b.offsetWidth,0,1))},S=function(t){p.classList.remove("control-panel-interval-dragging"),M(u(E(t)/b.offsetWidth,0,1)),document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",S),A=-1};b.addEventListener("mousedown",function(t){p.classList.add("control-panel-interval-dragging");var e=u(E(t)/b.offsetWidth,0,1),r=(v[0]-n.min)/(n.max-n.min),i=(v[1]-n.min)/(n.max-n.min);r-=1e-15*Math.abs(n.max-n.min),i+=1e-15*Math.abs(n.max-n.min);var o=Math.abs(r-e),a=Math.abs(i-e);A=o<a?0:1,document.addEventListener("mousemove",C),document.addEventListener("mouseup",S)}),setTimeout(function(){var t=c(v[0]),e=c(v[1]);w.innerHTML=t,x.innerHTML=e,y.emit("initialized",[t,e])}),b.oninput=function(){var t=c(v[0]),e=c(v[1]);w.innerHTML=t,x.innerHTML=e,y.emit("input",[t,e])}}e.exports=s,i(s,r)},{"./container":207,"./label":209,"./value":214,"dom-css":248,events:104,inherits:252,"is-numeric":255}],209:[function(t,e,n){var r=t("dom-css");e.exports=function(t,e,n){var i=t.appendChild(document.createElement("div"));r(i,{left:0,width:"36%",display:"inline-block",height:"20px",paddingRight:"2%",verticalAlign:"top"});var o=i.appendChild(document.createElement("span"));return o.innerHTML=e,r(o,{color:n.text1,display:"inline-block",verticalAlign:"sub"}),o}},{"dom-css":248}],210:[function(t,e,n){var r=t("events").EventEmitter,i=t("inherits"),o=t("is-numeric"),a=t("dom-css");function u(e,n,r,i){if(!(this instanceof u))return new u(e,n,r,i);var s,c,f,h,l,d=this,p=t("./container")(e,n.label);if(t("./label")(p,n.label,r),n.step&&n.steps)throw new Error("Cannot specify both step and steps. Got step = "+n.step+", steps = ",n.steps);var b=p.appendChild(document.createElement("input"));if(b.type="range",b.className="control-panel-range-"+i,"log"===n.scale?(s=function(t){return l*Math.exp(Math.log(f)+(Math.log(h)-Math.log(f))*t/100)},c=function(t){return 100*(Math.log(t*l)-Math.log(f))/(Math.log(h)-Math.log(f))}):s=c=function(t){return t},"log"===n.scale){if(n.max=o(n.max)?n.max:100,n.min=o(n.min)?n.min:.1,n.min*n.max<=0)throw new Error("Log range min/max must have the same sign and not equal zero. Got min = "+n.min+", max = "+n.max);if(f=n.min,h=n.max,l=n.min>0?1:-1,f=Math.abs(f),h=Math.abs(h),n.min=0,n.max=100,o(n.step))throw new Error("Log may only use steps (integer number of steps), not a step value. Got step ="+n.step);if(n.step=1,n.initial=c(o(n.initial)?n.initial:s(.5*(n.min+n.max))),n.initial*c(n.max)<=0)throw new Error("Log range initial value must have the same sign as min/max and must not equal zero. Got initial value = "+n.initial)}else n.max=o(n.max)?n.max:100,n.min=o(n.min)?n.min:0,n.step=o(n.step)?n.step:(n.max-n.min)/100,n.initial=o(n.initial)?n.initial:.5*(n.min+n.max);o(n.steps)&&(n.step=o(n.steps)?(n.max-n.min)/n.steps:n.step);var g=Math.round((n.initial-n.min)/n.step);n.initial=n.min+n.step*g,b.min=n.min,b.max=n.max,b.step=n.step,b.value=n.initial,a(b,{width:"47.5%"});var y=t("./value")(p,s(n.initial),r,"11%");setTimeout(function(){d.emit("initialized",parseFloat(b.value))}),b.oninput=function(t){var e=s(parseFloat(t.target.value));y.innerHTML=e,d.emit("input",e)},b.onmousedown=function(){d.emit("start")},b.onmouseup=function(){d.emit("end")},this.set=function(t){b.value=c(t),y.innerHTML=s(parseFloat(b.value))}}e.exports=u,i(u,r)},{"./container":207,"./label":209,"./value":214,"dom-css":248,events:104,inherits:252,"is-numeric":255}],211:[function(t,e,n){var r=t("events").EventEmitter,i=t("inherits");function o(e,n,r,i){if(!(this instanceof o))return new o(e,n,r,i);var a,u,s,c,f,h,l,d,p,b=this;if(u=t("./container")(e,n.label),t("./label")(u,n.label,r),(s=document.createElement("select")).className="control-panel-select-"+i+"-dropdown",(c=document.createElement("span")).className="control-panel-select-"+i+"-triangle control-panel-select-"+i+"-triangle--down",(f=document.createElement("span")).className="control-panel-select-"+i+"-triangle control-panel-select-"+i+"-triangle--up",u.appendChild(c),u.appendChild(f),Array.isArray(n.options))for(a=0;a<n.options.length;a++)l=n.options[a],(d=document.createElement("option")).value=d.textContent=l,n.initial===l&&(d.selected="selected"),s.appendChild(d);else for(p=Object.keys(n.options),a=0;a<p.length;a++)h=p[a],(d=document.createElement("option")).value=h,n.initial===h&&(d.selected="selected"),d.textContent=n.options[h],s.appendChild(d);u.appendChild(s),s.onchange=function(t){b.emit("input",t.target.value)},this.set=function(t){t=t.toString(),-1!==n.options.indexOf(t)&&(s.value=t)}}e.exports=o,i(o,r)},{"./container":207,"./label":209,events:104,inherits:252}],212:[function(t,e,n){var r=t("events").EventEmitter,i=t("inherits"),o=t("dom-css");function a(e,n,r,i){if(!(this instanceof a))return new a(e,n,r,i);var u=this,s=t("./container")(e,n.label);t("./label")(s,n.label,r);var c=s.appendChild(document.createElement("input"));c.type="text",c.className="control-panel-text-"+i,n.initial&&(c.value=n.initial),c.onfocus=function(){o(c,{outline:"none"})},o(c,{position:"absolute",paddingLeft:"6px",height:"20px",width:"59.5%",border:"none",background:r.background2,color:r.text2,fontFamily:"inherit"}),setTimeout(function(){u.emit("initialized",c.value)}),c.oninput=function(t){u.emit("input",t.target.value)},this.set=function(t){c.value=t.toString()}}e.exports=a,i(a,r)},{"./container":207,"./label":209,"dom-css":248,events:104,inherits:252}],213:[function(t,e,n){var r=t("dom-css");e.exports=function(t,e,n){var i=t.appendChild(document.createElement("div"));return i.innerHTML=e,r(i,{width:"100%",textAlign:"center",color:n.text2,textTransform:"uppercase",height:"20px",marginBottom:"4px"}),i}},{"dom-css":248}],214:[function(t,e,n){var r=t("dom-css");e.exports=function(t,e,n,i,o){var a=t.appendChild(document.createElement("div")),u=a.appendChild(document.createElement("span"));u.innerHTML=e;var s={position:"absolute",backgroundColor:n.background2,paddingLeft:"1.5%",height:"20px",width:i,display:"inline-block",overflow:"hidden"};return o||(s.right=0),r(a,s),r(u,{color:n.text2,display:"inline-block",userSelect:"text",cursor:"text",overflow:"hidden",lineHeight:"20px",wordBreak:"break-all",height:20}),u}},{"dom-css":248}],215:[function(t,e,n){(function(n){var r=t("events").EventEmitter,i=t("inherits"),o=t("dom-css"),a=t("insert-css"),u=(t("path"),t("is-string")),s=t("./themes"),c=t("node-uuid"),f=t("util-extend");function h(e,r){if(!(this instanceof h))return new h(e,r);var i=this;(r=r||{}).width=r.width||300,r.theme=r.theme||"dark",r.theme=u(r.theme)?s[r.theme]:r.theme,r.root=r.root||document.body,r.position=r.position;var l=document.createElement("div"),d=c.v4();l.className="control-panel",l.id="control-panel-"+d;var p=n("LmNvbnRyb2wtcGFuZWwgewogIGZvbnQtZmFtaWx5OiAnSGFjaycsIG1vbm9zcGFjZTsKICBmb250LXNpemU6IDExcHg7CiAgLXdlYmtpdC11c2VyLXNlbGVjdDogbm9uZTsKICAtbW96LXVzZXItc2VsZWN0OiBub25lOwogIC1tcy11c2VyLXNlbGVjdDogbm9uZTsKICB1c2VyLXNlbGVjdDogbm9uZTsKICBjdXJzb3I6IGRlZmF1bHQ7CiAgdGV4dC1hbGlnbjogbGVmdDsKICBib3gtc2l6aW5nOiBib3JkZXItYm94Owp9CgouY29udHJvbC1wYW5lbCBpbnB1dCB7CiAgZm9udC1mYW1pbHk6ICdIYWNrJzsKICBmb250LXNpemU6IDExcHg7Cn0KCi5jb250cm9sLXBhbmVsIGEgewogIGNvbG9yOiBpbmhlcml0OwogIHRleHQtZGVjb3JhdGlvbjogbm9uZTsKfQo=","base64"),b=n("LlNjcCB7CiAgd2lkdGg6IDEyNXB4OwogIGhlaWdodDogMTAwcHg7CiAgLXdlYmtpdC11c2VyLXNlbGVjdDogbm9uZTsKICAgICAtbW96LXVzZXItc2VsZWN0OiBub25lOwogICAgICAtbXMtdXNlci1zZWxlY3Q6IG5vbmU7CiAgICAgICAgICB1c2VyLXNlbGVjdDogbm9uZTsKICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgei1pbmRleDogMTAwMDsKICBjdXJzb3I6IHBvaW50ZXI7Cn0KLlNjcC1zYXR1cmF0aW9uIHsKICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgd2lkdGg6IGNhbGMoMTAwJSAtIDI1cHgpOwogIGhlaWdodDogMTAwJTsKICBiYWNrZ3JvdW5kOiBsaW5lYXItZ3JhZGllbnQodG8gcmlnaHQsICNmZmYgMCUsICNmMDAgMTAwJSk7CiAgZmxvYXQ6IGxlZnQ7CiAgbWFyZ2luLXJpZ2h0OiA1cHg7Cn0KLlNjcC1icmlnaHRuZXNzIHsKICB3aWR0aDogMTAwJTsKICBoZWlnaHQ6IDEwMCU7CiAgYmFja2dyb3VuZDogbGluZWFyLWdyYWRpZW50KHRvIHRvcCwgIzAwMCAwJSwgcmdiYSgyNTUsMjU1LDI1NSwwKSAxMDAlKTsKfQouU2NwLXNiU2VsZWN0b3IgewogIGJvcmRlcjogMXB4IHNvbGlkOwogIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICB3aWR0aDogMTRweDsKICBoZWlnaHQ6IDE0cHg7CiAgYmFja2dyb3VuZDogI2ZmZjsKICBib3JkZXItcmFkaXVzOiAxMHB4OwogIHRvcDogLTdweDsKICBsZWZ0OiAtN3B4OwogIGJveC1zaXppbmc6IGJvcmRlci1ib3g7CiAgei1pbmRleDogMTA7Cn0KLlNjcC1odWUgewogIHdpZHRoOiAyMHB4OwogIGhlaWdodDogMTAwJTsKICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgZmxvYXQ6IGxlZnQ7CiAgYmFja2dyb3VuZDogbGluZWFyLWdyYWRpZW50KHRvIGJvdHRvbSwgI2YwMCAwJSwgI2YwZiAxNyUsICMwMGYgMzQlLCAjMGZmIDUwJSwgIzBmMCA2NyUsICNmZjAgODQlLCAjZjAwIDEwMCUpOwp9Ci5TY3AtaFNlbGVjdG9yIHsKICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgYmFja2dyb3VuZDogI2ZmZjsKICBib3JkZXItYm90dG9tOiAxcHggc29saWQgIzAwMDsKICByaWdodDogLTNweDsKICB3aWR0aDogMTBweDsKICBoZWlnaHQ6IDJweDsKfQ==","base64"),g=n("aW5wdXRbdHlwZT1yYW5nZV0uY29udHJvbC1wYW5lbC1yYW5nZS17eyBVVUlEIH19IHsKICAtd2Via2l0LWFwcGVhcmFuY2U6IG5vbmU7CiAgd2lkdGg6IDEwMCU7CiAgbWFyZ2luOiAwcHggMDsKfQppbnB1dFt0eXBlPXJhbmdlXS5jb250cm9sLXBhbmVsLXJhbmdlLXt7IFVVSUQgfX06Zm9jdXMgewogIG91dGxpbmU6IG5vbmU7Cn0KaW5wdXRbdHlwZT1yYW5nZV0uY29udHJvbC1wYW5lbC1yYW5nZS17eyBVVUlEIH19Ojotd2Via2l0LXNsaWRlci1ydW5uYWJsZS10cmFjayB7CiAgd2lkdGg6IDEwMCU7CiAgaGVpZ2h0OiAyMHB4OwogIGN1cnNvcjogZXctcmVzaXplOwogIGJhY2tncm91bmQ6IHt7IFRSQUNLX0NPTE9SIH19Owp9CmlucHV0W3R5cGU9cmFuZ2VdLmNvbnRyb2wtcGFuZWwtcmFuZ2Ute3sgVVVJRCB9fTo6LXdlYmtpdC1zbGlkZXItdGh1bWIgewogIGhlaWdodDogMjBweDsKICB3aWR0aDogMTBweDsKICBiYWNrZ3JvdW5kOiB7eyBUSFVNQl9DT0xPUiB9fTsKICBjdXJzb3I6IGV3LXJlc2l6ZTsKICAtd2Via2l0LWFwcGVhcmFuY2U6IG5vbmU7CiAgbWFyZ2luLXRvcDogMHB4Owp9CmlucHV0W3R5cGU9cmFuZ2VdLmNvbnRyb2wtcGFuZWwtcmFuZ2Ute3sgVVVJRCB9fTpmb2N1czo6LXdlYmtpdC1zbGlkZXItcnVubmFibGUtdHJhY2sgewogIGJhY2tncm91bmQ6IHt7IFRSQUNLX0NPTE9SIH19OwogIG91dGxpbmU6IG5vbmU7Cn0KaW5wdXRbdHlwZT1yYW5nZV0uY29udHJvbC1wYW5lbC1yYW5nZS17eyBVVUlEIH19OjotbW96LXJhbmdlLXRyYWNrIHsKICB3aWR0aDogMTAwJTsKICBoZWlnaHQ6IDIwcHg7CiAgY3Vyc29yOiBldy1yZXNpemU7CiAgYmFja2dyb3VuZDoge3sgVFJBQ0tfQ09MT1IgfX07Cn0KaW5wdXRbdHlwZT1yYW5nZV0uY29udHJvbC1wYW5lbC1yYW5nZS17eyBVVUlEIH19OjotbW96LXJhbmdlLXRodW1iIHsKICBoZWlnaHQ6IDIwcHg7CiAgd2lkdGg6IDEwcHg7CiAgYmFja2dyb3VuZDoge3sgVEhVTUJfQ09MT1IgfX07CiAgY3Vyc29yOiBldy1yZXNpemU7Cn0KaW5wdXRbdHlwZT1yYW5nZV0uY29udHJvbC1wYW5lbC1yYW5nZS17eyBVVUlEIH19OjotbXMtdHJhY2sgewogIHdpZHRoOiAxMDAlOwogIGhlaWdodDogMjBweDsKICBjdXJzb3I6IGV3LXJlc2l6ZTsKICBiYWNrZ3JvdW5kOiB0cmFuc3BhcmVudDsKICBib3JkZXItY29sb3I6IHRyYW5zcGFyZW50OwogIGNvbG9yOiB0cmFuc3BhcmVudDsKfQppbnB1dFt0eXBlPXJhbmdlXS5jb250cm9sLXBhbmVsLXJhbmdlLXt7IFVVSUQgfX06Oi1tcy1maWxsLWxvd2VyIHsKICBiYWNrZ3JvdW5kOiB7eyBUUkFDS19DT0xPUiB9fTsKfQppbnB1dFt0eXBlPXJhbmdlXS5jb250cm9sLXBhbmVsLXJhbmdlLXt7IFVVSUQgfX06Oi1tcy1maWxsLXVwcGVyIHsKICBiYWNrZ3JvdW5kOiB7eyBUUkFDS19DT0xPUiB9fTsKfQppbnB1dFt0eXBlPXJhbmdlXS5jb250cm9sLXBhbmVsLXJhbmdlLXt7IFVVSUQgfX06Oi1tcy10aHVtYiB7CiAgd2lkdGg6IDEwcHg7CiAgYm9yZGVyLXJhZGl1czogMHB4OwogIGJhY2tncm91bmQ6IHt7IFRIVU1CX0NPTE9SIH19OwogIGN1cnNvcjogZXctcmVzaXplOwogIGhlaWdodDogMjBweDsKfQppbnB1dFt0eXBlPXJhbmdlXS5jb250cm9sLXBhbmVsLXJhbmdlLXt7IFVVSUQgfX06Zm9jdXM6Oi1tcy1maWxsLWxvd2VyIHsKICBiYWNrZ3JvdW5kOiB7eyBUUkFDS19DT0xPUiB9fTsKICBvdXRsaW5lOiBub25lOwp9CmlucHV0W3R5cGU9cmFuZ2VdLmNvbnRyb2wtcGFuZWwtcmFuZ2Ute3sgVVVJRCB9fTpmb2N1czo6LW1zLWZpbGwtdXBwZXIgewogIGJhY2tncm91bmQ6IHt7IFRSQUNLX0NPTE9SIH19OwogIG91dGxpbmU6IG5vbmU7Cn0KCmlucHV0W3R5cGU9cmFuZ2VdLmNvbnRyb2wtcGFuZWwtcmFuZ2Ute3sgVVVJRCB9fSB7CiAgLXdlYmtpdC1hcHBlYXJhbmNlOiBub25lOwogIHdpZHRoOiAxMDAlOwogIG1hcmdpbjogMHB4IDA7Cn0KaW5wdXRbdHlwZT1yYW5nZV0uY29udHJvbC1wYW5lbC1yYW5nZS17eyBVVUlEIH19OmZvY3VzIHsKICBvdXRsaW5lOiBub25lOwp9CmlucHV0W3R5cGU9cmFuZ2VdLmNvbnRyb2wtcGFuZWwtcmFuZ2Ute3sgVVVJRCB9fTo6LXdlYmtpdC1zbGlkZXItcnVubmFibGUtdHJhY2sgewogIHdpZHRoOiAxMDAlOwogIGhlaWdodDogMjBweDsKICBjdXJzb3I6IGV3LXJlc2l6ZTsKICBiYWNrZ3JvdW5kOiB7eyBUUkFDS19DT0xPUiB9fTsKfQppbnB1dFt0eXBlPXJhbmdlXS5jb250cm9sLXBhbmVsLXJhbmdlLXt7IFVVSUQgfX06Oi13ZWJraXQtc2xpZGVyLXRodW1iIHsKICBoZWlnaHQ6IDIwcHg7CiAgd2lkdGg6IDEwcHg7CiAgYmFja2dyb3VuZDoge3sgVEhVTUJfQ09MT1IgfX07CiAgY3Vyc29yOiBldy1yZXNpemU7CiAgLXdlYmtpdC1hcHBlYXJhbmNlOiBub25lOwogIG1hcmdpbi10b3A6IDBweDsKfQppbnB1dFt0eXBlPXJhbmdlXS5jb250cm9sLXBhbmVsLXJhbmdlLXt7IFVVSUQgfX06Zm9jdXM6Oi13ZWJraXQtc2xpZGVyLXJ1bm5hYmxlLXRyYWNrIHsKICBiYWNrZ3JvdW5kOiB7eyBUUkFDS19DT0xPUiB9fTsKICBvdXRsaW5lOiBub25lOwp9CmlucHV0W3R5cGU9cmFuZ2VdLmNvbnRyb2wtcGFuZWwtcmFuZ2Ute3sgVVVJRCB9fTo6LW1vei1yYW5nZS10cmFjayB7CiAgd2lkdGg6IDEwMCU7CiAgaGVpZ2h0OiAyMHB4OwogIGN1cnNvcjogZXctcmVzaXplOwogIGJhY2tncm91bmQ6IHt7IFRSQUNLX0NPTE9SIH19Owp9CmlucHV0W3R5cGU9cmFuZ2VdLmNvbnRyb2wtcGFuZWwtcmFuZ2Ute3sgVVVJRCB9fTo6LW1vei1yYW5nZS10aHVtYiB7CiAgaGVpZ2h0OiAyMHB4OwogIHdpZHRoOiAxMHB4OwogIGJhY2tncm91bmQ6IHt7IFRIVU1CX0NPTE9SIH19OwogIGN1cnNvcjogZXctcmVzaXplOwp9CmlucHV0W3R5cGU9cmFuZ2VdLmNvbnRyb2wtcGFuZWwtcmFuZ2Ute3sgVVVJRCB9fTo6LW1zLXRyYWNrIHsKICB3aWR0aDogMTAwJTsKICBoZWlnaHQ6IDIwcHg7CiAgY3Vyc29yOiBldy1yZXNpemU7CiAgYmFja2dyb3VuZDogdHJhbnNwYXJlbnQ7CiAgYm9yZGVyLWNvbG9yOiB0cmFuc3BhcmVudDsKICBjb2xvcjogdHJhbnNwYXJlbnQ7Cn0KaW5wdXRbdHlwZT1yYW5nZV0uY29udHJvbC1wYW5lbC1yYW5nZS17eyBVVUlEIH19OjotbXMtZmlsbC1sb3dlciB7CiAgYmFja2dyb3VuZDoge3sgVFJBQ0tfQ09MT1IgfX07Cn0KaW5wdXRbdHlwZT1yYW5nZV0uY29udHJvbC1wYW5lbC1yYW5nZS17eyBVVUlEIH19OjotbXMtZmlsbC11cHBlciB7CiAgYmFja2dyb3VuZDoge3sgVFJBQ0tfQ09MT1IgfX07Cn0KaW5wdXRbdHlwZT1yYW5nZV0uY29udHJvbC1wYW5lbC1yYW5nZS17eyBVVUlEIH19OjotbXMtdGh1bWIgewogIHdpZHRoOiAxMHB4OwogIGJhY2tncm91bmQ6IHt7IFRIVU1CX0NPTE9SIH19OwogIGN1cnNvcjogZXctcmVzaXplOwogIGhlaWdodDogMjBweDsKfQppbnB1dFt0eXBlPXJhbmdlXS5jb250cm9sLXBhbmVsLXJhbmdlLXt7IFVVSUQgfX06Zm9jdXM6Oi1tcy1maWxsLWxvd2VyIHsKICBiYWNrZ3JvdW5kOiB7eyBUUkFDS19DT0xPUiB9fTsKICBvdXRsaW5lOiBub25lOwp9CmlucHV0W3R5cGU9cmFuZ2VdLmNvbnRyb2wtcGFuZWwtcmFuZ2Ute3sgVVVJRCB9fTpmb2N1czo6LW1zLWZpbGwtdXBwZXIgewogIGJhY2tncm91bmQ6IHt7IFRSQUNLX0NPTE9SIH19OwogIG91dGxpbmU6IG5vbmU7Cn0KaW5wdXRbdHlwZT1yYW5nZV0uY29udHJvbC1wYW5lbC1yYW5nZS17eyBVVUlEIH19IHsKICAtd2Via2l0LWFwcGVhcmFuY2U6IG5vbmU7CiAgd2lkdGg6IDEwMCU7CiAgbWFyZ2luOiAwcHggMDsKfQppbnB1dFt0eXBlPXJhbmdlXS5jb250cm9sLXBhbmVsLXJhbmdlLXt7IFVVSUQgfX06Zm9jdXMgewogIG91dGxpbmU6IG5vbmU7Cn0KaW5wdXRbdHlwZT1yYW5nZV0uY29udHJvbC1wYW5lbC1yYW5nZS17eyBVVUlEIH19Ojotd2Via2l0LXNsaWRlci1ydW5uYWJsZS10cmFjayB7CiAgd2lkdGg6IDEwMCU7CiAgaGVpZ2h0OiAyMHB4OwogIGN1cnNvcjogZXctcmVzaXplOwogIGJhY2tncm91bmQ6IHt7IFRSQUNLX0NPTE9SIH19Owp9CmlucHV0W3R5cGU9cmFuZ2VdLmNvbnRyb2wtcGFuZWwtcmFuZ2Ute3sgVVVJRCB9fTo6LXdlYmtpdC1zbGlkZXItdGh1bWIgewogIGhlaWdodDogMjBweDsKICB3aWR0aDogMTBweDsKICBiYWNrZ3JvdW5kOiB7eyBUSFVNQl9DT0xPUiB9fTsKICBjdXJzb3I6IGV3LXJlc2l6ZTsKICAtd2Via2l0LWFwcGVhcmFuY2U6IG5vbmU7CiAgbWFyZ2luLXRvcDogMHB4Owp9CmlucHV0W3R5cGU9cmFuZ2VdLmNvbnRyb2wtcGFuZWwtcmFuZ2Ute3sgVVVJRCB9fTpmb2N1czo6LXdlYmtpdC1zbGlkZXItcnVubmFibGUtdHJhY2sgewogIGJhY2tncm91bmQ6IHt7IFRSQUNLX0NPTE9SIH19OwogIG91dGxpbmU6IG5vbmU7Cn0KaW5wdXRbdHlwZT1yYW5nZV0uY29udHJvbC1wYW5lbC1yYW5nZS17eyBVVUlEIH19OjotbW96LXJhbmdlLXRyYWNrIHsKICB3aWR0aDogMTAwJTsKICBoZWlnaHQ6IDIwcHg7CiAgY3Vyc29yOiBldy1yZXNpemU7CiAgYmFja2dyb3VuZDoge3sgVFJBQ0tfQ09MT1IgfX07Cn0KaW5wdXRbdHlwZT1yYW5nZV0uY29udHJvbC1wYW5lbC1yYW5nZS17eyBVVUlEIH19OjotbW96LXJhbmdlLXRodW1iIHsKICBib3JkZXI6IDBweCBzb2xpZCByZ2JhKDAsIDAsIDAsIDApOwogIGhlaWdodDogMjBweDsKICB3aWR0aDogMTBweDsKICBib3JkZXItcmFkaXVzOiAwcHg7CiAgYmFja2dyb3VuZDoge3sgVEhVTUJfQ09MT1IgfX07CiAgY3Vyc29yOiBldy1yZXNpemU7Cn0KaW5wdXRbdHlwZT1yYW5nZV0uY29udHJvbC1wYW5lbC1yYW5nZS17eyBVVUlEIH19OjotbXMtdHJhY2sgewogIHdpZHRoOiAxMDAlOwogIGhlaWdodDogMjBweDsKICBjdXJzb3I6IGV3LXJlc2l6ZTsKICBiYWNrZ3JvdW5kOiB0cmFuc3BhcmVudDsKICBib3JkZXItY29sb3I6IHRyYW5zcGFyZW50OwogIGNvbG9yOiB0cmFuc3BhcmVudDsKfQppbnB1dFt0eXBlPXJhbmdlXS5jb250cm9sLXBhbmVsLXJhbmdlLXt7IFVVSUQgfX06Oi1tcy1maWxsLWxvd2VyIHsKICBiYWNrZ3JvdW5kOiB7eyBUUkFDS19DT0xPUiB9fTsKfQppbnB1dFt0eXBlPXJhbmdlXS5jb250cm9sLXBhbmVsLXJhbmdlLXt7IFVVSUQgfX06Oi1tcy1maWxsLXVwcGVyIHsKICBiYWNrZ3JvdW5kOiB7eyBUUkFDS19DT0xPUiB9fTsKfQppbnB1dFt0eXBlPXJhbmdlXS5jb250cm9sLXBhbmVsLXJhbmdlLXt7IFVVSUQgfX06Oi1tcy10aHVtYiB7CiAgd2lkdGg6IDEwcHg7CiAgYmFja2dyb3VuZDoge3sgVEhVTUJfQ09MT1IgfX07CiAgY3Vyc29yOiBldy1yZXNpemU7CiAgaGVpZ2h0OiAyMHB4Owp9CmlucHV0W3R5cGU9cmFuZ2VdLmNvbnRyb2wtcGFuZWwtcmFuZ2Ute3sgVVVJRCB9fTpmb2N1czo6LW1zLWZpbGwtbG93ZXIgewogIGJhY2tncm91bmQ6IHt7IFRSQUNLX0NPTE9SIH19OwogIG91dGxpbmU6IG5vbmU7Cn0KaW5wdXRbdHlwZT1yYW5nZV0uY29udHJvbC1wYW5lbC1yYW5nZS17eyBVVUlEIH19OmZvY3VzOjotbXMtZmlsbC11cHBlciB7CiAgYmFja2dyb3VuZDoge3sgVFJBQ0tfQ09MT1IgfX07CiAgb3V0bGluZTogbm9uZTsKfQ==","base64"),y=n("aW5wdXRbdHlwZT0iY2hlY2tib3giXS5jb250cm9sLXBhbmVsLWNoZWNrYm94LXt7IFVVSUQgfX0gewogIGRpc3BsYXk6bm9uZTsKICBjdXJzb3I6IHBvaW50ZXI7IAp9CgppbnB1dFt0eXBlPWNoZWNrYm94XS5jb250cm9sLXBhbmVsLWNoZWNrYm94LXt7IFVVSUQgfX0gKyBsYWJlbDpiZWZvcmUgewogIGNvbnRlbnQ6ICIiOyAgCiAgZGlzcGxheTogaW5saW5lLWJsb2NrOyAgCiAgd2lkdGg6IDE4cHg7ICAKICBoZWlnaHQ6IDE4cHg7ICAKICBwYWRkaW5nOiAwcHg7CiAgdmVydGljYWwtYWxpZ246bWlkZGxlOwogIG1hcmdpbi1yaWdodDogOHB4OyAKICBtYXJnaW4tdG9wOiAycHg7IAogIGJhY2tncm91bmQtY29sb3I6IHt7IEJPWF9DT0xPUiB9fTsgIAogIGJvcmRlci1yYWRpdXM6IDBweDsgCiAgY3Vyc29yOiBwb2ludGVyOyAKfQoKaW5wdXRbdHlwZT1jaGVja2JveF06Y2hlY2tlZC5jb250cm9sLXBhbmVsLWNoZWNrYm94LXt7IFVVSUQgfX0gICsgbGFiZWw6YmVmb3JlIHsKICB3aWR0aDogMTBweDsgIAogIGhlaWdodDogMTBweDsgIAogIGJhY2tncm91bmQtY29sb3I6IHt7IElDT05fQ09MT1IgfX07CiAgYm9yZGVyOiBzb2xpZCA0cHgge3sgQk9YX0NPTE9SIH19OwogIGN1cnNvcjogcG9pbnRlcjsgCn0=","base64"),m=n("LmNvbnRyb2wtcGFuZWwtYnV0dG9uLXt7IFVVSUQgfX0gewogIGNvbG9yOiB7eyBCVVRUT05fQ09MT1IgfX07CiAgYmFja2dyb3VuZC1jb2xvcjoge3sgQlVUVE9OX0JHIH19Owp9Ci5jb250cm9sLXBhbmVsLWJ1dHRvbi17eyBVVUlEIH19OmhvdmVyIHsKICBjb2xvcjoge3sgQlVUVE9OX0NPTE9SX0hPVkVSIH19OwogIGJhY2tncm91bmQtY29sb3I6IHt7IEJVVFRPTl9CR19IT1ZFUiB9fTsKfQouY29udHJvbC1wYW5lbC1idXR0b24te3sgVVVJRCB9fTphY3RpdmUgewogIGNvbG9yOiB7eyBCVVRUT05fQ09MT1JfQUNUSVZFIH19OwogIGJhY2tncm91bmQtY29sb3I6IHt7IEJVVFRPTl9CR19BQ1RJVkUgfX07Cn0K","base64"),v=n("LmNvbnRyb2wtcGFuZWwtaW50ZXJ2YWwte3sgVVVJRCB9fSB7CiAgLXdlYmtpdC1hcHBlYXJhbmNlOiBub25lOwogIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICBoZWlnaHQ6IDIwcHg7CiAgbWFyZ2luOiAwcHggMDsKICB3aWR0aDogMzMlOwogIGxlZnQ6IDUyLjUlOwogIGJhY2tncm91bmQtY29sb3I6IHt7IFRSQUNLX0NPTE9SIH19OwogIGN1cnNvcjogZXctcmVzaXplOwoKICAtd2Via2l0LXRvdWNoLWNhbGxvdXQ6IG5vbmU7CiAgLXdlYmtpdC11c2VyLXNlbGVjdDogbm9uZTsKICAta2h0bWwtdXNlci1zZWxlY3Q6IG5vbmU7CiAgLW1vei11c2VyLXNlbGVjdDogbm9uZTsKICAtbXMtdXNlci1zZWxlY3Q6IG5vbmU7CiAgdXNlci1zZWxlY3Q6IG5vbmU7Cn0KLmNvbnRyb2wtcGFuZWwtaW50ZXJ2YWwte3sgVVVJRCB9fSAuY29udHJvbC1wYW5lbC1pbnRlcnZhbC1oYW5kbGUgewogIGJhY2tncm91bmQtY29sb3I6IHt7IElOVEVSVkFMX0NPTE9SIH19OwogIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICBoZWlnaHQ6IDIwcHg7CiAgbWluLXdpZHRoOiAxcHg7Cn0KI2NvbnRyb2wtcGFuZWwte3sgVVVJRCB9fS5jb250cm9sLXBhbmVsLWludGVydmFsLWRyYWdnaW5nICogewogIC13ZWJraXQtdG91Y2gtY2FsbG91dDogbm9uZSAhaW1wb3J0YW50OwogIC13ZWJraXQtdXNlci1zZWxlY3Q6IG5vbmUgIWltcG9ydGFudDsKICAta2h0bWwtdXNlci1zZWxlY3Q6IG5vbmUgIWltcG9ydGFudDsKICAtbW96LXVzZXItc2VsZWN0OiBub25lICFpbXBvcnRhbnQ7CiAgLW1zLXVzZXItc2VsZWN0OiBub25lICFpbXBvcnRhbnQ7CiAgdXNlci1zZWxlY3Q6IG5vbmUgIWltcG9ydGFudDsKCiAgY3Vyc29yOiBldy1yZXNpemUgIWltcG9ydGFudDsKfQo=","base64"),_=n("LmNvbnRyb2wtcGFuZWwtc2VsZWN0LXt7IFVVSUQgfX0tZHJvcGRvd24gewogIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgd2lkdGg6IDYyJTsKICBwYWRkaW5nLWxlZnQ6IDEuNSU7CiAgaGVpZ2h0OiAyMHB4OwogIGJvcmRlcjogbm9uZTsKICBib3JkZXItcmFkaXVzOiAwOwogIG91dGxpbmU6IG5vbmU7CiAgLXdlYmtpdC1hcHBlYXJhbmNlOiBub25lOwogIC1tb3otYXBwZWFyYW5jZTogbm9uZTsKICAtby1hcHBlYXJhbmNlOm5vbmU7CiAgYXBwZWFyYW5jZTpub25lOwogIGZvbnQtZmFtaWx5OiBpbmhlcml0OwogIGJhY2tncm91bmQtY29sb3I6IHt7IEJHX0NPTE9SIH19OwogIGNvbG9yOiB7eyBURVhUX0NPTE9SIH19Owp9Ci5jb250cm9sLXBhbmVsLXNlbGVjdC17eyBVVUlEIH19LWRyb3Bkb3duOjotbXMtZXhwYW5kIHsKICBkaXNwbGF5Om5vbmU7Cn0KLmNvbnRyb2wtcGFuZWwtc2VsZWN0LXt7IFVVSUQgfX0tdHJpYW5nbGUgewogIGNvbnRlbnQ6ICcgJzsKICBib3JkZXItcmlnaHQ6IDNweCBzb2xpZCB0cmFuc3BhcmVudDsKICBib3JkZXItbGVmdDogM3B4IHNvbGlkIHRyYW5zcGFyZW50OwogIGxpbmUtaGVpZ2h0OiAyMHB4OwogIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICByaWdodDogMi41JTsKICB6LWluZGV4OiAxOwp9Ci5jb250cm9sLXBhbmVsLXNlbGVjdC17eyBVVUlEIH19LXRyaWFuZ2xlLS1kb3duIHsKICB0b3A6IDExcHg7CiAgYm9yZGVyLXRvcDogNXB4IHNvbGlkIHt7IFRFWFRfQ09MT1IgfX07CiAgYm9yZGVyLWJvdHRvbTogMHB4IHRyYW5zcGFyZW50Owp9Ci5jb250cm9sLXBhbmVsLXNlbGVjdC17eyBVVUlEIH19LXRyaWFuZ2xlLS11cCB7CiAgdG9wOiA0cHg7CiAgYm9yZGVyLWJvdHRvbTogNXB4IHNvbGlkIHt7IFRFWFRfQ09MT1IgfX07CiAgYm9yZGVyLXRvcDogMHB4IHRyYW5zcGFyZW50Owp9Cg==","base64");g=String(g).replace(new RegExp("{{ THUMB_COLOR }}","g"),r.theme.foreground1).replace(new RegExp("{{ TRACK_COLOR }}","g"),r.theme.background2).replace(new RegExp("{{ UUID }}","g"),d),y=String(y).replace(new RegExp("{{ BOX_COLOR }}","g"),r.theme.background2).replace(new RegExp("{{ ICON_COLOR }}","g"),r.theme.foreground1).replace(new RegExp("{{ UUID }}","g"),d),m=String(m).replace(new RegExp("{{ BUTTON_COLOR }}","g"),r.theme.text2).replace(new RegExp("{{ BUTTON_BG }}","g"),r.theme.background2).replace(new RegExp("{{ BUTTON_COLOR_HOVER }}","g"),r.theme.text2).replace(new RegExp("{{ BUTTON_BG_HOVER }}","g"),r.theme.background2hover).replace(new RegExp("{{ BUTTON_COLOR_ACTIVE }}","g"),r.theme.background2).replace(new RegExp("{{ BUTTON_BG_ACTIVE }}","g"),r.theme.text2).replace(new RegExp("{{ UUID }}","g"),d),v=String(v).replace(new RegExp("{{ INTERVAL_COLOR }}","g"),r.theme.foreground1).replace(new RegExp("{{ TRACK_COLOR }}","g"),r.theme.background2).replace(new RegExp("{{ UUID }}","g"),d),_=String(_).replace(new RegExp("{{ TEXT_COLOR }}","g"),r.theme.text2).replace(new RegExp("{{ BG_COLOR }}","g"),r.theme.background2).replace(new RegExp("{{ BG_COLOR_HOVER }}","g"),r.theme.background2hover).replace(new RegExp("{{ UUID }}","g"),d),a(p),a(g),a(b),a(y),a(m),a(v),a(_);var w=document.createElement("style");w.setAttribute("type","text/css"),w.setAttribute("rel","stylesheet"),w.setAttribute("href","//cdn.jsdelivr.net/font-hack/2.019/css/hack.min.css"),document.getElementsByTagName("head")[0].appendChild(w),o(l,{background:r.theme.background1,width:r.width,padding:"14px",paddingBottom:"8px",opacity:.95}),"top-right"!==r.position&&"top-left"!==r.position&&"bottom-right"!==r.position&&"bottom-left"!==r.position||o(l,{position:"absolute"}),"top-right"===r.position||"bottom-right"===r.position?o(l,{right:8}):o(l,{left:8}),"top-right"===r.position||"top-left"===r.position?o(l,{top:8}):o(l,{bottom:8}),r.title&&t("./components/title")(l,r.title,r.theme);var x,A={button:t("./components/button"),text:t("./components/text"),range:t("./components/range"),checkbox:t("./components/checkbox"),color:t("./components/color"),interval:t("./components/interval"),select:t("./components/select")},E={},M={};e.forEach(function(t){"button"!==t.type&&(M[t.label]=t.initial)}),e.forEach(function(t){x=A[t.type](l,t,r.theme,d),E[t.label]=x,x.on("initialized",function(e){M[t.label]=e}),x.on("input",function(e){M[t.label]=e,i.emit("input",M,t.label)}),x.on("start",function(){i.emit("start")}),x.on("end",function(){i.emit("end")})}),this.set=function(t){return f(M,t),e.forEach(function(e){var n=t[e.label],r=E[e.label];r&&r.set&&void 0!==n&&r.set(n)}),this},r.root.appendChild(l)}e.exports=h,i(h,r)}).call(this,t("buffer").Buffer)},{"./components/button":204,"./components/checkbox":205,"./components/color":206,"./components/interval":208,"./components/range":210,"./components/select":211,"./components/text":212,"./components/title":213,"./themes":216,buffer:48,"dom-css":248,events:104,inherits:252,"insert-css":253,"is-string":256,"node-uuid":269,path:137,"util-extend":284}],216:[function(t,e,n){e.exports={light:{background1:"rgb(227,227,227)",background2:"rgb(204,204,204)",background2hover:"rgb(208,208,208)",foreground1:"rgb(105,105,105)",text1:"rgb(36,36,36)",text2:"rgb(87,87,87)"},dark:{background1:"rgb(35,35,35)",background2:"rgb(54,54,54)",background2hover:"rgb(58,58,58)",foreground1:"rgb(112,112,112)",text1:"rgb(235,235,235)",text2:"rgb(161,161,161)"}}},{}],217:[function(t,e,n){var r,i;r=this,i=function(t){"use strict";var e=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},n=function(t){var n;return 1===t.length&&(n=t,t=function(t,r){return e(n(t),r)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)>0?i=o:r=o+1}return r}}};var r=n(e),i=r.right,o=r.left;function a(t,e){return[t,e]}var u=function(t){return null===t?NaN:+t},s=function(t,e){var n,r,i=t.length,o=0,a=-1,s=0,c=0;if(null==e)for(;++a<i;)isNaN(n=u(t[a]))||(c+=(r=n-s)*(n-(s+=r/++o)));else for(;++a<i;)isNaN(n=u(e(t[a],a,t)))||(c+=(r=n-s)*(n-(s+=r/++o)));if(o>1)return c/(o-1)},c=function(t,e){var n=s(t,e);return n?Math.sqrt(n):n},f=function(t,e){var n,r,i,o=t.length,a=-1;if(null==e){for(;++a<o;)if(null!=(n=t[a])&&n>=n)for(r=i=n;++a<o;)null!=(n=t[a])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++a<o;)if(null!=(n=e(t[a],a,t))&&n>=n)for(r=i=n;++a<o;)null!=(n=e(t[a],a,t))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]},h=Array.prototype,l=h.slice,d=h.map,p=function(t){return function(){return t}},b=function(t){return t},g=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o},y=Math.sqrt(50),m=Math.sqrt(10),v=Math.sqrt(2);function _(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=y?10:o>=m?5:o>=v?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=y?10:o>=m?5:o>=v?2:1)}function w(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=y?i*=10:o>=m?i*=5:o>=v&&(i*=2),e<t?-i:i}var x=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1},A=function(t,e,n){if(null==n&&(n=u),r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}},E=function(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o<i;)if(null!=(n=t[o])&&n>=n)for(r=n;++o<i;)null!=(n=t[o])&&r>n&&(r=n)}else for(;++o<i;)if(null!=(n=e(t[o],o,t))&&n>=n)for(r=n;++o<i;)null!=(n=e(t[o],o,t))&&r>n&&(r=n);return r},M=function(t){if(!(i=t.length))return[];for(var e=-1,n=E(t,C),r=new Array(n);++e<n;)for(var i,o=-1,a=r[e]=new Array(i);++o<i;)a[o]=t[o][e];return r};function C(t){return t.length}t.bisect=i,t.bisectRight=i,t.bisectLeft=o,t.ascending=e,t.bisector=n,t.cross=function(t,e,n){var r,i,o,u,s=t.length,c=e.length,f=new Array(s*c);for(null==n&&(n=a),r=o=0;r<s;++r)for(u=t[r],i=0;i<c;++i,++o)f[o]=n(u,e[i]);return f},t.descending=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},t.deviation=c,t.extent=f,t.histogram=function(){var t=b,e=f,n=x;function r(r){var o,a,u=r.length,s=new Array(u);for(o=0;o<u;++o)s[o]=t(r[o],o,r);var c=e(s),f=c[0],h=c[1],l=n(s,f,h);Array.isArray(l)||(l=w(f,h,l),l=g(Math.ceil(f/l)*l,Math.floor(h/l)*l,l));for(var d=l.length;l[0]<=f;)l.shift(),--d;for(;l[d-1]>h;)l.pop(),--d;var p,b=new Array(d+1);for(o=0;o<=d;++o)(p=b[o]=[]).x0=o>0?l[o-1]:f,p.x1=o<d?l[o]:h;for(o=0;o<u;++o)f<=(a=s[o])&&a<=h&&b[i(l,a,0,d)].push(r[o]);return b}return r.value=function(e){return arguments.length?(t="function"==typeof e?e:p(e),r):t},r.domain=function(t){return arguments.length?(e="function"==typeof t?t:p([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?p(l.call(t)):p(t),r):n},r},t.thresholdFreedmanDiaconis=function(t,n,r){return t=d.call(t,u).sort(e),Math.ceil((r-n)/(2*(A(t,.75)-A(t,.25))*Math.pow(t.length,-1/3)))},t.thresholdScott=function(t,e,n){return Math.ceil((n-e)/(3.5*c(t)*Math.pow(t.length,-1/3)))},t.thresholdSturges=x,t.max=function(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o<i;)if(null!=(n=t[o])&&n>=n)for(r=n;++o<i;)null!=(n=t[o])&&n>r&&(r=n)}else for(;++o<i;)if(null!=(n=e(t[o],o,t))&&n>=n)for(r=n;++o<i;)null!=(n=e(t[o],o,t))&&n>r&&(r=n);return r},t.mean=function(t,e){var n,r=t.length,i=r,o=-1,a=0;if(null==e)for(;++o<r;)isNaN(n=u(t[o]))?--i:a+=n;else for(;++o<r;)isNaN(n=u(e(t[o],o,t)))?--i:a+=n;if(i)return a/i},t.median=function(t,n){var r,i=t.length,o=-1,a=[];if(null==n)for(;++o<i;)isNaN(r=u(t[o]))||a.push(r);else for(;++o<i;)isNaN(r=u(n(t[o],o,t)))||a.push(r);return A(a.sort(e),.5)},t.merge=function(t){for(var e,n,r,i=t.length,o=-1,a=0;++o<i;)a+=t[o].length;for(n=new Array(a);--i>=0;)for(e=(r=t[i]).length;--e>=0;)n[--a]=r[e];return n},t.min=E,t.pairs=function(t,e){null==e&&(e=a);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return o},t.permute=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},t.quantile=A,t.range=g,t.scan=function(t,n){if(r=t.length){var r,i,o=0,a=0,u=t[a];for(null==n&&(n=e);++o<r;)(n(i=t[o],u)<0||0!==n(u,u))&&(u=i,a=o);return 0===n(u,u)?a:void 0}},t.shuffle=function(t,e,n){for(var r,i,o=(null==n?t.length:n)-(e=null==e?0:+e);o;)i=Math.random()*o--|0,r=t[o+e],t[o+e]=t[i+e],t[i+e]=r;return t},t.sum=function(t,e){var n,r=t.length,i=-1,o=0;if(null==e)for(;++i<r;)(n=+t[i])&&(o+=n);else for(;++i<r;)(n=+e(t[i],i,t))&&(o+=n);return o},t.ticks=function(t,e,n){var r,i,o,a,u=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(a=_(t,e,n))||!isFinite(a))return[];if(a>0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++u<i;)o[u]=(t+u)*a;else for(t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(i=Math.ceil(t-e+1));++u<i;)o[u]=(t-u)/a;return r&&o.reverse(),o},t.tickIncrement=_,t.tickStep=w,t.transpose=M,t.variance=s,t.zip=function(){return M(arguments)},Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n):"function"==typeof define&&define.amd?define(["exports"],i):i(r.d3=r.d3||{})},{}],218:[function(t,e,n){var r,i;r=this,i=function(t){"use strict";var e=Array.prototype.slice,n=function(t){return t},r=1,i=2,o=3,a=4,u=1e-6;function s(t){return"translate("+(t+.5)+",0)"}function c(t){return"translate(0,"+(t+.5)+")"}function f(){return!this.__axis}function h(t,h){var l=[],d=null,p=null,b=6,g=6,y=3,m=t===r||t===a?-1:1,v=t===a||t===i?"x":"y",_=t===r||t===o?s:c;function w(e){var s=null==d?h.ticks?h.ticks.apply(h,l):h.domain():d,c=null==p?h.tickFormat?h.tickFormat.apply(h,l):n:p,w=Math.max(b,0)+y,x=h.range(),A=+x[0]+.5,E=+x[x.length-1]+.5,M=(h.bandwidth?function(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}:function(t){return function(e){return+t(e)}})(h.copy()),C=e.selection?e.selection():e,S=C.selectAll(".domain").data([null]),B=C.selectAll(".tick").data(s,h).order(),k=B.exit(),I=B.enter().append("g").attr("class","tick"),F=B.select("line"),D=B.select("text");S=S.merge(S.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),B=B.merge(I),F=F.merge(I.append("line").attr("stroke","#000").attr(v+"2",m*b)),D=D.merge(I.append("text").attr("fill","#000").attr(v,m*w).attr("dy",t===r?"0em":t===o?"0.71em":"0.32em")),e!==C&&(S=S.transition(e),B=B.transition(e),F=F.transition(e),D=D.transition(e),k=k.transition(e).attr("opacity",u).attr("transform",function(t){return isFinite(t=M(t))?_(t):this.getAttribute("transform")}),I.attr("opacity",u).attr("transform",function(t){var e=this.parentNode.__axis;return _(e&&isFinite(e=e(t))?e:M(t))})),k.remove(),S.attr("d",t===a||t==i?"M"+m*g+","+A+"H0.5V"+E+"H"+m*g:"M"+A+","+m*g+"V0.5H"+E+"V"+m*g),B.attr("opacity",1).attr("transform",function(t){return _(M(t))}),F.attr(v+"2",m*b),D.attr(v,m*w).text(c),C.filter(f).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===i?"start":t===a?"end":"middle"),C.each(function(){this.__axis=M})}return w.scale=function(t){return arguments.length?(h=t,w):h},w.ticks=function(){return l=e.call(arguments),w},w.tickArguments=function(t){return arguments.length?(l=null==t?[]:e.call(t),w):l.slice()},w.tickValues=function(t){return arguments.length?(d=null==t?null:e.call(t),w):d&&d.slice()},w.tickFormat=function(t){return arguments.length?(p=t,w):p},w.tickSize=function(t){return arguments.length?(b=g=+t,w):b},w.tickSizeInner=function(t){return arguments.length?(b=+t,w):b},w.tickSizeOuter=function(t){return arguments.length?(g=+t,w):g},w.tickPadding=function(t){return arguments.length?(y=+t,w):y},w}t.axisTop=function(t){return h(r,t)},t.axisRight=function(t){return h(i,t)},t.axisBottom=function(t){return h(o,t)},t.axisLeft=function(t){return h(a,t)},Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n):"function"==typeof define&&define.amd?define(["exports"],i):i(r.d3=r.d3||{})},{}],219:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i,o){"use strict";var a=function(t){return function(){return t}},u=function(t,e,n){this.target=t,this.type=e,this.selection=n};function s(){i.event.stopImmediatePropagation()}var c=function(){i.event.preventDefault(),i.event.stopImmediatePropagation()},f={name:"drag"},h={name:"space"},l={name:"handle"},d={name:"center"},p={name:"x",handles:["e","w"].map(x),input:function(t,e){return t&&[[t[0],e[0][1]],[t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},b={name:"y",handles:["n","s"].map(x),input:function(t,e){return t&&[[e[0][0],t[0]],[e[1][0],t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},g={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(x),input:function(t){return t},output:function(t){return t}},y={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},m={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},v={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},_={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},w={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function x(t){return{type:t}}function A(){return!i.event.button}function E(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function M(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function C(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function S(t){var g,S=E,B=A,k=e.dispatch(F,"start","brush","end"),I=6;function F(e){var n=e.property("__brush",R).selectAll(".overlay").data([x("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",y.overlay).merge(n).each(function(){var t=M(this).extent;i.select(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])}),e.selectAll(".selection").data([x("selection")]).enter().append("rect").attr("class","selection").attr("cursor",y.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,function(t){return t.type});r.exit().remove(),r.enter().append("rect").attr("class",function(t){return"handle handle--"+t.type}).attr("cursor",function(t){return y[t.type]}),e.each(D).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",j)}function D(){var t=i.select(this),e=M(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",function(t){return"e"===t.type[t.type.length-1]?e[1][0]-I/2:e[0][0]-I/2}).attr("y",function(t){return"s"===t.type[0]?e[1][1]-I/2:e[0][1]-I/2}).attr("width",function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+I:I}).attr("height",function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+I:I})):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function T(t,e){return t.__brush.emitter||new N(t,e)}function N(t,e){this.that=t,this.args=e,this.state=t.__brush,this.active=0}function j(){if(i.event.touches){if(i.event.changedTouches.length<i.event.touches.length)return c()}else if(g)return;if(B.apply(this,arguments)){var e,r,a,u,x,A,E,S,k,I,F,N,j,R=this,O=i.event.target.__data__.type,L="selection"===(i.event.metaKey?O="overlay":O)?f:i.event.altKey?d:l,U=t===b?null:_[O],P=t===p?null:w[O],H=M(R),z=H.extent,V=H.selection,X=z[0][0],q=z[0][1],W=z[1][0],Y=z[1][1],Z=U&&P&&i.event.shiftKey,G=i.mouse(R),K=G,J=T(R,arguments).beforestart();"overlay"===O?H.selection=V=[[e=t===b?X:G[0],a=t===p?q:G[1]],[x=t===b?W:e,E=t===p?Y:a]]:(e=V[0][0],a=V[0][1],x=V[1][0],E=V[1][1]),r=e,u=a,A=x,S=E;var Q=i.select(R).attr("pointer-events","none"),$=Q.selectAll(".overlay").attr("cursor",y[O]);if(i.event.touches)Q.on("touchmove.brush",et,!0).on("touchend.brush touchcancel.brush",rt,!0);else{var tt=i.select(i.event.view).on("keydown.brush",function(){switch(i.event.keyCode){case 16:Z=U&&P;break;case 18:L===l&&(U&&(x=A-k*U,e=r+k*U),P&&(E=S-I*P,a=u+I*P),L=d,nt());break;case 32:L!==l&&L!==d||(U<0?x=A-k:U>0&&(e=r-k),P<0?E=S-I:P>0&&(a=u-I),L=h,$.attr("cursor",y.selection),nt());break;default:return}c()},!0).on("keyup.brush",function(){switch(i.event.keyCode){case 16:Z&&(N=j=Z=!1,nt());break;case 18:L===d&&(U<0?x=A:U>0&&(e=r),P<0?E=S:P>0&&(a=u),L=l,nt());break;case 32:L===h&&(i.event.altKey?(U&&(x=A-k*U,e=r+k*U),P&&(E=S-I*P,a=u+I*P),L=d):(U<0?x=A:U>0&&(e=r),P<0?E=S:P>0&&(a=u),L=l),$.attr("cursor",y[O]),nt());break;default:return}c()},!0).on("mousemove.brush",et,!0).on("mouseup.brush",rt,!0);n.dragDisable(i.event.view)}s(),o.interrupt(R),D.call(R),J.start()}function et(){var t=i.mouse(R);!Z||N||j||(Math.abs(t[0]-K[0])>Math.abs(t[1]-K[1])?j=!0:N=!0),K=t,F=!0,c(),nt()}function nt(){var t;switch(k=K[0]-G[0],I=K[1]-G[1],L){case h:case f:U&&(k=Math.max(X-e,Math.min(W-x,k)),r=e+k,A=x+k),P&&(I=Math.max(q-a,Math.min(Y-E,I)),u=a+I,S=E+I);break;case l:U<0?(k=Math.max(X-e,Math.min(W-e,k)),r=e+k,A=x):U>0&&(k=Math.max(X-x,Math.min(W-x,k)),r=e,A=x+k),P<0?(I=Math.max(q-a,Math.min(Y-a,I)),u=a+I,S=E):P>0&&(I=Math.max(q-E,Math.min(Y-E,I)),u=a,S=E+I);break;case d:U&&(r=Math.max(X,Math.min(W,e-k*U)),A=Math.max(X,Math.min(W,x+k*U))),P&&(u=Math.max(q,Math.min(Y,a-I*P)),S=Math.max(q,Math.min(Y,E+I*P)))}A<r&&(U*=-1,t=e,e=x,x=t,t=r,r=A,A=t,O in m&&$.attr("cursor",y[O=m[O]])),S<u&&(P*=-1,t=a,a=E,E=t,t=u,u=S,S=t,O in v&&$.attr("cursor",y[O=v[O]])),H.selection&&(V=H.selection),N&&(r=V[0][0],A=V[1][0]),j&&(u=V[0][1],S=V[1][1]),V[0][0]===r&&V[0][1]===u&&V[1][0]===A&&V[1][1]===S||(H.selection=[[r,u],[A,S]],D.call(R),J.brush())}function rt(){if(s(),i.event.touches){if(i.event.touches.length)return;g&&clearTimeout(g),g=setTimeout(function(){g=null},500),Q.on("touchmove.brush touchend.brush touchcancel.brush",null)}else n.dragEnable(i.event.view,F),tt.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Q.attr("pointer-events","all"),$.attr("cursor",y.overlay),H.selection&&(V=H.selection),C(V)&&(H.selection=null,D.call(R)),J.end()}}function R(){var e=this.__brush||{selection:null};return e.extent=S.apply(this,arguments),e.dim=t,e}return F.move=function(e,n){e.selection?e.on("start.brush",function(){T(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){T(this,arguments).end()}).tween("brush",function(){var e=this,i=e.__brush,o=T(e,arguments),a=i.selection,u=t.input("function"==typeof n?n.apply(this,arguments):n,i.extent),s=r.interpolate(a,u);function c(t){i.selection=1===t&&C(u)?null:s(t),D.call(e),o.brush()}return a&&u?c:c(1)}):e.each(function(){var e=arguments,r=this.__brush,i=t.input("function"==typeof n?n.apply(this,e):n,r.extent),a=T(this,e).beforestart();o.interrupt(this),r.selection=null==i||C(i)?null:i,D.call(this),a.start().brush().end()})},N.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(e){i.customEvent(new u(F,e,t.output(this.state.selection)),k.apply,k,[e,this.that,this.args])}},F.extent=function(t){return arguments.length?(S="function"==typeof t?t:a([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),F):S},F.filter=function(t){return arguments.length?(B="function"==typeof t?t:a(!!t),F):B},F.handleSize=function(t){return arguments.length?(I=+t,F):I},F.on=function(){var t=k.on.apply(k,arguments);return t===k?F:t},F}t.brush=function(){return S(g)},t.brushX=function(){return S(p)},t.brushY=function(){return S(b)},t.brushSelection=function(t){var e=t.__brush;return e?e.dim.output(e.selection):null},Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("d3-dispatch"),t("d3-drag"),t("d3-interpolate"),t("d3-selection"),t("d3-transition")):"function"==typeof define&&define.amd?define(["exports","d3-dispatch","d3-drag","d3-interpolate","d3-selection","d3-transition"],i):i(r.d3=r.d3||{},r.d3,r.d3,r.d3,r.d3,r.d3)},{"d3-dispatch":223,"d3-drag":224,"d3-interpolate":231,"d3-selection":239,"d3-transition":244}],220:[function(t,e,n){var r,i;r=this,i=function(t,e,n){"use strict";var r=Math.cos,i=Math.sin,o=Math.PI,a=o/2,u=2*o,s=Math.max;var c=Array.prototype.slice,f=function(t){return function(){return t}};function h(t){return t.source}function l(t){return t.target}function d(t){return t.radius}function p(t){return t.startAngle}function b(t){return t.endAngle}t.chord=function(){var t=0,n=null,r=null,i=null;function o(o){var a,c,f,h,l,d,p=o.length,b=[],g=e.range(p),y=[],m=[],v=m.groups=new Array(p),_=new Array(p*p);for(a=0,l=-1;++l<p;){for(c=0,d=-1;++d<p;)c+=o[l][d];b.push(c),y.push(e.range(p)),a+=c}for(n&&g.sort(function(t,e){return n(b[t],b[e])}),r&&y.forEach(function(t,e){t.sort(function(t,n){return r(o[e][t],o[e][n])})}),h=(a=s(0,u-t*p)/a)?t:u/p,c=0,l=-1;++l<p;){for(f=c,d=-1;++d<p;){var w=g[l],x=y[w][d],A=o[w][x],E=c,M=c+=A*a;_[x*p+w]={index:w,subindex:x,startAngle:E,endAngle:M,value:A}}v[w]={index:w,startAngle:f,endAngle:c,value:b[w]},c+=h}for(l=-1;++l<p;)for(d=l-1;++d<p;){var C=_[d*p+l],S=_[l*p+d];(C.value||S.value)&&m.push(C.value<S.value?{source:S,target:C}:{source:C,target:S})}return i?m.sort(i):m}return o.padAngle=function(e){return arguments.length?(t=s(0,e),o):t},o.sortGroups=function(t){return arguments.length?(n=t,o):n},o.sortSubgroups=function(t){return arguments.length?(r=t,o):r},o.sortChords=function(t){return arguments.length?(null==t?i=null:(e=t,i=function(t,n){return e(t.source.value+t.target.value,n.source.value+n.target.value)})._=t,o):i&&i._;var e},o},t.ribbon=function(){var t=h,e=l,o=d,u=p,s=b,g=null;function y(){var f,h=c.call(arguments),l=t.apply(this,h),d=e.apply(this,h),p=+o.apply(this,(h[0]=l,h)),b=u.apply(this,h)-a,y=s.apply(this,h)-a,m=p*r(b),v=p*i(b),_=+o.apply(this,(h[0]=d,h)),w=u.apply(this,h)-a,x=s.apply(this,h)-a;if(g||(g=f=n.path()),g.moveTo(m,v),g.arc(0,0,p,b,y),b===w&&y===x||(g.quadraticCurveTo(0,0,_*r(w),_*i(w)),g.arc(0,0,_,w,x)),g.quadraticCurveTo(0,0,m,v),g.closePath(),f)return g=null,f+""||null}return y.radius=function(t){return arguments.length?(o="function"==typeof t?t:f(+t),y):o},y.startAngle=function(t){return arguments.length?(u="function"==typeof t?t:f(+t),y):u},y.endAngle=function(t){return arguments.length?(s="function"==typeof t?t:f(+t),y):s},y.source=function(e){return arguments.length?(t=e,y):t},y.target=function(t){return arguments.length?(e=t,y):e},y.context=function(t){return arguments.length?(g=null==t?null:t,y):g},y},Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("d3-array"),t("d3-path")):"function"==typeof define&&define.amd?define(["exports","d3-array","d3-path"],i):i(r.d3=r.d3||{},r.d3,r.d3)},{"d3-array":217,"d3-path":232}],221:[function(t,e,n){var r,i;r=this,i=function(t){"use strict";function e(){}function n(t,n){var r=new e;if(t instanceof e)t.each(function(t,e){r.set(e,t)});else if(Array.isArray(t)){var i,o=-1,a=t.length;if(null==n)for(;++o<a;)r.set(o,t[o]);else for(;++o<a;)r.set(n(i=t[o],o,t),i)}else if(t)for(var u in t)r.set(u,t[u]);return r}e.prototype=n.prototype={constructor:e,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,e){return this["$"+t]=e,this},remove:function(t){var e="$"+t;return e in this&&delete this[e]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)"$"===e[0]&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)"$"===e[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var e in this)"$"===e[0]&&t(this[e],e.slice(1),this)}};function r(){return{}}function i(t,e,n){t[e]=n}function o(){return n()}function a(t,e,n){t.set(e,n)}function u(){}var s=n.prototype;function c(t,e){var n=new u;if(t instanceof u)t.each(function(t){n.add(t)});else if(t){var r=-1,i=t.length;if(null==e)for(;++r<i;)n.add(t[r]);else for(;++r<i;)n.add(e(t[r],r,t))}return n}u.prototype=c.prototype={constructor:u,has:s.has,add:function(t){return this["$"+(t+="")]=t,this},remove:s.remove,clear:s.clear,values:s.keys,size:s.size,empty:s.empty,each:s.each};t.nest=function(){var t,e,u,s=[],c=[];function f(r,i,o,a){if(i>=s.length)return null!=t&&r.sort(t),null!=e?e(r):r;for(var u,c,h,l=-1,d=r.length,p=s[i++],b=n(),g=o();++l<d;)(h=b.get(u=p(c=r[l])+""))?h.push(c):b.set(u,[c]);return b.each(function(t,e){a(g,e,f(t,i,o,a))}),g}return u={object:function(t){return f(t,0,r,i)},map:function(t){return f(t,0,o,a)},entries:function(t){return function t(n,r){if(++r>s.length)return n;var i,o=c[r-1];return null!=e&&r>=s.length?i=n.entries():(i=[],n.each(function(e,n){i.push({key:n,values:t(e,r)})})),null!=o?i.sort(function(t,e){return o(t.key,e.key)}):i}(f(t,0,o,a),0)},key:function(t){return s.push(t),u},sortKeys:function(t){return c[s.length-1]=t,u},sortValues:function(e){return t=e,u},rollup:function(t){return e=t,u}}},t.set=c,t.map=n,t.keys=function(t){var e=[];for(var n in t)e.push(n);return e},t.values=function(t){var e=[];for(var n in t)e.push(t[n]);return e},t.entries=function(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e},Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n):"function"==typeof define&&define.amd?define(["exports"],i):i(r.d3=r.d3||{})},{}],222:[function(t,e,n){var r,i;r=this,i=function(t){"use strict";var e=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function n(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function r(){}var i="\\s*([+-]?\\d+)\\s*",o="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",a="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",u=/^#([0-9a-f]{3})$/,s=/^#([0-9a-f]{6})$/,c=new RegExp("^rgb\\("+[i,i,i]+"\\)$"),f=new RegExp("^rgb\\("+[a,a,a]+"\\)$"),h=new RegExp("^rgba\\("+[i,i,i,o]+"\\)$"),l=new RegExp("^rgba\\("+[a,a,a,o]+"\\)$"),d=new RegExp("^hsl\\("+[o,a,a]+"\\)$"),p=new RegExp("^hsla\\("+[o,a,a,o]+"\\)$"),b={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function g(t){var e;return t=(t+"").trim().toLowerCase(),(e=u.exec(t))?new w((e=parseInt(e[1],16))>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=s.exec(t))?y(parseInt(e[1],16)):(e=c.exec(t))?new w(e[1],e[2],e[3],1):(e=f.exec(t))?new w(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=h.exec(t))?m(e[1],e[2],e[3],e[4]):(e=l.exec(t))?m(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=d.exec(t))?x(e[1],e[2]/100,e[3]/100,1):(e=p.exec(t))?x(e[1],e[2]/100,e[3]/100,e[4]):b.hasOwnProperty(t)?y(b[t]):"transparent"===t?new w(NaN,NaN,NaN,0):null}function y(t){return new w(t>>16&255,t>>8&255,255&t,1)}function m(t,e,n,r){return r<=0&&(t=e=n=NaN),new w(t,e,n,r)}function v(t){return t instanceof r||(t=g(t)),t?new w((t=t.rgb()).r,t.g,t.b,t.opacity):new w}function _(t,e,n,r){return 1===arguments.length?v(t):new w(t,e,n,null==r?1:r)}function w(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function x(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new E(t,e,n,r)}function A(t,e,n,i){return 1===arguments.length?function(t){if(t instanceof E)return new E(t.h,t.s,t.l,t.opacity);if(t instanceof r||(t=g(t)),!t)return new E;if(t instanceof E)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,o=Math.min(e,n,i),a=Math.max(e,n,i),u=NaN,s=a-o,c=(a+o)/2;return s?(u=e===a?(n-i)/s+6*(n<i):n===a?(i-e)/s+2:(e-n)/s+4,s/=c<.5?a+o:2-a-o,u*=60):s=c>0&&c<1?0:u,new E(u,s,c,t.opacity)}(t):new E(t,e,n,null==i?1:i)}function E(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function M(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}e(r,g,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),e(w,_,n(r,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),e(E,A,n(r,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new E(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new E(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new w(M(t>=240?t-240:t+120,i,r),M(t,i,r),M(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var C=Math.PI/180,S=180/Math.PI,B=.95047,k=1,I=1.08883,F=4/29,D=6/29,T=3*D*D,N=D*D*D;function j(t){if(t instanceof O)return new O(t.l,t.a,t.b,t.opacity);if(t instanceof V){var e=t.h*C;return new O(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof w||(t=v(t));var n=H(t.r),r=H(t.g),i=H(t.b),o=L((.4124564*n+.3575761*r+.1804375*i)/B),a=L((.2126729*n+.7151522*r+.072175*i)/k);return new O(116*a-16,500*(o-a),200*(a-L((.0193339*n+.119192*r+.9503041*i)/I)),t.opacity)}function R(t,e,n,r){return 1===arguments.length?j(t):new O(t,e,n,null==r?1:r)}function O(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function L(t){return t>N?Math.pow(t,1/3):t/T+F}function U(t){return t>D?t*t*t:T*(t-F)}function P(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function H(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function z(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof V)return new V(t.h,t.c,t.l,t.opacity);t instanceof O||(t=j(t));var e=Math.atan2(t.b,t.a)*S;return new V(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new V(t,e,n,null==r?1:r)}function V(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}e(O,R,n(r,{brighter:function(t){return new O(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new O(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return t=k*U(t),new w(P(3.2404542*(e=B*U(e))-1.5371385*t-.4985314*(n=I*U(n))),P(-.969266*e+1.8760108*t+.041556*n),P(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),e(V,z,n(r,{brighter:function(t){return new V(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new V(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return j(this).rgb()}}));var X=-.14861,q=1.78277,W=-.29227,Y=-.90649,Z=1.97294,G=Z*Y,K=Z*q,J=q*W-Y*X;function Q(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof $)return new $(t.h,t.s,t.l,t.opacity);t instanceof w||(t=v(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(J*r+G*e-K*n)/(J+G-K),o=r-i,a=(Z*(n-i)-W*o)/Y,u=Math.sqrt(a*a+o*o)/(Z*i*(1-i)),s=u?Math.atan2(a,o)*S-120:NaN;return new $(s<0?s+360:s,u,i,t.opacity)}(t):new $(t,e,n,null==r?1:r)}function $(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}e($,Q,n(r,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new $(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new $(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*C,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new w(255*(e+n*(X*r+q*i)),255*(e+n*(W*r+Y*i)),255*(e+n*(Z*r)),this.opacity)}})),t.color=g,t.rgb=_,t.hsl=A,t.lab=R,t.hcl=z,t.cubehelix=Q,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n):"function"==typeof define&&define.amd?define(["exports"],i):i(r.d3=r.d3||{})},{}],223:[function(t,e,n){var r,i;r=this,i=function(t){"use strict";var e={value:function(){}};function n(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i)throw new Error("illegal type: "+t);i[t]=[]}return new r(i)}function r(t){this._=t}function i(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function o(t,n,r){for(var i=0,o=t.length;i<o;++i)if(t[i].name===n){t[i]=e,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=r&&t.push({name:n,value:r}),t}r.prototype=n.prototype={constructor:r,on:function(t,e){var n,r,a=this._,u=(r=a,(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})),s=-1,c=u.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++s<c;)if(n=(t=u[s]).type)a[n]=o(a[n],t.name,e);else if(null==e)for(n in a)a[n]=o(a[n],t.name,null);return this}for(;++s<c;)if((n=(t=u[s]).type)&&(n=i(a[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new r(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}},t.dispatch=n,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n):"function"==typeof define&&define.amd?define(["exports"],i):i(r.d3=r.d3||{})},{}],224:[function(t,e,n){var r,i;r=this,i=function(t,e,n){"use strict";function r(){n.event.stopImmediatePropagation()}var i=function(){n.event.preventDefault(),n.event.stopImmediatePropagation()},o=function(t){var e=t.document.documentElement,r=n.select(t).on("dragstart.drag",i,!0);"onselectstart"in e?r.on("selectstart.drag",i,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")};function a(t,e){var r=t.document.documentElement,o=n.select(t).on("dragstart.drag",null);e&&(o.on("click.drag",i,!0),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in r?o.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}var u=function(t){return function(){return t}};function s(t,e,n,r,i,o,a,u,s,c){this.target=t,this.type=e,this.subject=n,this.identifier=r,this.active=i,this.x=o,this.y=a,this.dx=u,this.dy=s,this._=c}function c(){return!n.event.button}function f(){return this.parentNode}function h(t){return null==t?{x:n.event.x,y:n.event.y}:t}function l(){return"ontouchstart"in this}s.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};t.drag=function(){var t,d,p,b,g=c,y=f,m=h,v=l,_={},w=e.dispatch("start","drag","end"),x=0,A=0;function E(t){t.on("mousedown.drag",M).filter(v).on("touchstart.drag",B).on("touchmove.drag",k).on("touchend.drag touchcancel.drag",I).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function M(){if(!b&&g.apply(this,arguments)){var e=F("mouse",y.apply(this,arguments),n.mouse,this,arguments);e&&(n.select(n.event.view).on("mousemove.drag",C,!0).on("mouseup.drag",S,!0),o(n.event.view),r(),p=!1,t=n.event.clientX,d=n.event.clientY,e("start"))}}function C(){if(i(),!p){var e=n.event.clientX-t,r=n.event.clientY-d;p=e*e+r*r>A}_.mouse("drag")}function S(){n.select(n.event.view).on("mousemove.drag mouseup.drag",null),a(n.event.view,p),i(),_.mouse("end")}function B(){if(g.apply(this,arguments)){var t,e,i=n.event.changedTouches,o=y.apply(this,arguments),a=i.length;for(t=0;t<a;++t)(e=F(i[t].identifier,o,n.touch,this,arguments))&&(r(),e("start"))}}function k(){var t,e,r=n.event.changedTouches,o=r.length;for(t=0;t<o;++t)(e=_[r[t].identifier])&&(i(),e("drag"))}function I(){var t,e,i=n.event.changedTouches,o=i.length;for(b&&clearTimeout(b),b=setTimeout(function(){b=null},500),t=0;t<o;++t)(e=_[i[t].identifier])&&(r(),e("end"))}function F(t,e,r,i,o){var a,u,c,f=r(e,t),h=w.copy();if(n.customEvent(new s(E,"beforestart",a,t,x,f[0],f[1],0,0,h),function(){return null!=(n.event.subject=a=m.apply(i,o))&&(u=a.x-f[0]||0,c=a.y-f[1]||0,!0)}))return function l(d){var p,b=f;switch(d){case"start":_[t]=l,p=x++;break;case"end":delete _[t],--x;case"drag":f=r(e,t),p=x}n.customEvent(new s(E,d,a,t,p,f[0]+u,f[1]+c,f[0]-b[0],f[1]-b[1],h),h.apply,h,[d,i,o])}}return E.filter=function(t){return arguments.length?(g="function"==typeof t?t:u(!!t),E):g},E.container=function(t){return arguments.length?(y="function"==typeof t?t:u(t),E):y},E.subject=function(t){return arguments.length?(m="function"==typeof t?t:u(t),E):m},E.touchable=function(t){return arguments.length?(v="function"==typeof t?t:u(!!t),E):v},E.on=function(){var t=w.on.apply(w,arguments);return t===w?E:t},E.clickDistance=function(t){return arguments.length?(A=(t=+t)*t,E):Math.sqrt(A)},E},t.dragDisable=o,t.dragEnable=a,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("d3-dispatch"),t("d3-selection")):"function"==typeof define&&define.amd?define(["exports","d3-dispatch","d3-selection"],i):i(r.d3=r.d3||{},r.d3,r.d3)},{"d3-dispatch":223,"d3-selection":239}],225:[function(t,e,n){var r,i;r=this,i=function(t){"use strict";var e={},n={},r=34,i=10,o=13;function a(t){return new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+"]"}).join(",")+"}")}var u=function(t){var u=new RegExp('["'+t+"\n\r]"),s=t.charCodeAt(0);function c(t,a){var u,c=[],f=t.length,h=0,l=0,d=f<=0,p=!1;function b(){if(d)return n;if(p)return p=!1,e;var a,u,c=h;if(t.charCodeAt(c)===r){for(;h++<f&&t.charCodeAt(h)!==r||t.charCodeAt(++h)===r;);return(a=h)>=f?d=!0:(u=t.charCodeAt(h++))===i?p=!0:u===o&&(p=!0,t.charCodeAt(h)===i&&++h),t.slice(c+1,a-1).replace(/""/g,'"')}for(;h<f;){if((u=t.charCodeAt(a=h++))===i)p=!0;else if(u===o)p=!0,t.charCodeAt(h)===i&&++h;else if(u!==s)continue;return t.slice(c,a)}return d=!0,t.slice(c,f)}for(t.charCodeAt(f-1)===i&&--f,t.charCodeAt(f-1)===o&&--f;(u=b())!==n;){for(var g=[];u!==e&&u!==n;)g.push(u),u=b();a&&null==(g=a(g,l++))||c.push(g)}return c}function f(e){return e.map(h).join(t)}function h(t){return null==t?"":u.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,e){var n,r,i=c(t,function(t,i){if(n)return n(t,i-1);r=t,n=e?function(t,e){var n=a(t);return function(r,i){return e(n(r),i,t)}}(t,e):a(t)});return i.columns=r||[],i},parseRows:c,format:function(e,n){return null==n&&(n=function(t){var e=Object.create(null),n=[];return t.forEach(function(t){for(var r in t)r in e||n.push(e[r]=r)}),n}(e)),[n.map(h).join(t)].concat(e.map(function(e){return n.map(function(t){return h(e[t])}).join(t)})).join("\n")},formatRows:function(t){return t.map(f).join("\n")}}},s=u(","),c=s.parse,f=s.parseRows,h=s.format,l=s.formatRows,d=u("\t"),p=d.parse,b=d.parseRows,g=d.format,y=d.formatRows;t.dsvFormat=u,t.csvParse=c,t.csvParseRows=f,t.csvFormat=h,t.csvFormatRows=l,t.tsvParse=p,t.tsvParseRows=b,t.tsvFormat=g,t.tsvFormatRows=y,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n):"function"==typeof define&&define.amd?define(["exports"],i):i(r.d3=r.d3||{})},{}],226:[function(t,e,n){var r,i;r=this,i=function(t){"use strict";function e(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function n(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var r=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),i=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),o=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),a=Math.PI,u=a/2;function s(t){return(1-Math.cos(a*t))/2}function c(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function f(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var h=4/11,l=6/11,d=8/11,p=.75,b=9/11,g=10/11,y=.9375,m=21/22,v=63/64,_=1/h/h;function w(t){return(t=+t)<h?_*t*t:t<d?_*(t-=l)*t+p:t<g?_*(t-=b)*t+y:_*(t-=m)*t+v}var x=function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n}(1.70158),A=function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(1.70158),E=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158),M=2*Math.PI,C=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=M);function i(t){return e*Math.pow(2,10*--t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*M)},i.period=function(n){return t(e,n)},i}(1,.3),S=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=M);function i(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*M)},i.period=function(n){return t(e,n)},i}(1,.3),B=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=M);function i(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((r-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*M)},i.period=function(n){return t(e,n)},i}(1,.3);t.easeLinear=function(t){return+t},t.easeQuad=e,t.easeQuadIn=function(t){return t*t},t.easeQuadOut=function(t){return t*(2-t)},t.easeQuadInOut=e,t.easeCubic=n,t.easeCubicIn=function(t){return t*t*t},t.easeCubicOut=function(t){return--t*t*t+1},t.easeCubicInOut=n,t.easePoly=o,t.easePolyIn=r,t.easePolyOut=i,t.easePolyInOut=o,t.easeSin=s,t.easeSinIn=function(t){return 1-Math.cos(t*u)},t.easeSinOut=function(t){return Math.sin(t*u)},t.easeSinInOut=s,t.easeExp=c,t.easeExpIn=function(t){return Math.pow(2,10*t-10)},t.easeExpOut=function(t){return 1-Math.pow(2,-10*t)},t.easeExpInOut=c,t.easeCircle=f,t.easeCircleIn=function(t){return 1-Math.sqrt(1-t*t)},t.easeCircleOut=function(t){return Math.sqrt(1- --t*t)},t.easeCircleInOut=f,t.easeBounce=w,t.easeBounceIn=function(t){return 1-w(1-t)},t.easeBounceOut=w,t.easeBounceInOut=function(t){return((t*=2)<=1?1-w(1-t):w(t-1)+1)/2},t.easeBack=E,t.easeBackIn=x,t.easeBackOut=A,t.easeBackInOut=E,t.easeElastic=S,t.easeElasticIn=C,t.easeElasticOut=S,t.easeElasticInOut=B,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n):"function"==typeof define&&define.amd?define(["exports"],i):i(r.d3=r.d3||{})},{}],227:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i){"use strict";var o=function(t){return function(){return t}},a=function(){return 1e-6*(Math.random()-.5)};function u(t){return t.x+t.vx}function s(t){return t.y+t.vy}function c(t){return t.index}function f(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function h(t){return t.x}function l(t){return t.y}var d=10,p=Math.PI*(3-Math.sqrt(5));t.forceCenter=function(t,e){var n;function r(){var r,i,o=n.length,a=0,u=0;for(r=0;r<o;++r)a+=(i=n[r]).x,u+=i.y;for(a=a/o-t,u=u/o-e,r=0;r<o;++r)(i=n[r]).x-=a,i.y-=u}return null==t&&(t=0),null==e&&(e=0),r.initialize=function(t){n=t},r.x=function(e){return arguments.length?(t=+e,r):t},r.y=function(t){return arguments.length?(e=+t,r):e},r},t.forceCollide=function(t){var n,r,i=1,c=1;function f(){for(var t,o,f,l,d,p,b,g=n.length,y=0;y<c;++y)for(o=e.quadtree(n,u,s).visitAfter(h),t=0;t<g;++t)f=n[t],p=r[f.index],b=p*p,l=f.x+f.vx,d=f.y+f.vy,o.visit(m);function m(t,e,n,r,o){var u=t.data,s=t.r,c=p+s;if(!u)return e>l+c||r<l-c||n>d+c||o<d-c;if(u.index>f.index){var h=l-u.x-u.vx,g=d-u.y-u.vy,y=h*h+g*g;y<c*c&&(0===h&&(y+=(h=a())*h),0===g&&(y+=(g=a())*g),y=(c-(y=Math.sqrt(y)))/y*i,f.vx+=(h*=y)*(c=(s*=s)/(b+s)),f.vy+=(g*=y)*c,u.vx-=h*(c=1-c),u.vy-=g*c)}}}function h(t){if(t.data)return t.r=r[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function l(){if(n){var e,i,o=n.length;for(r=new Array(o),e=0;e<o;++e)i=n[e],r[i.index]=+t(i,e,n)}}return"function"!=typeof t&&(t=o(null==t?1:+t)),f.initialize=function(t){n=t,l()},f.iterations=function(t){return arguments.length?(c=+t,f):c},f.strength=function(t){return arguments.length?(i=+t,f):i},f.radius=function(e){return arguments.length?(t="function"==typeof e?e:o(+e),l(),f):t},f},t.forceLink=function(t){var e,r,i,u,s,h=c,l=function(t){return 1/Math.min(u[t.source.index],u[t.target.index])},d=o(30),p=1;function b(n){for(var i=0,o=t.length;i<p;++i)for(var u,c,f,h,l,d,b,g=0;g<o;++g)c=(u=t[g]).source,h=(f=u.target).x+f.vx-c.x-c.vx||a(),l=f.y+f.vy-c.y-c.vy||a(),h*=d=((d=Math.sqrt(h*h+l*l))-r[g])/d*n*e[g],l*=d,f.vx-=h*(b=s[g]),f.vy-=l*b,c.vx+=h*(b=1-b),c.vy+=l*b}function g(){if(i){var o,a,c=i.length,l=t.length,d=n.map(i,h);for(o=0,u=new Array(c);o<l;++o)(a=t[o]).index=o,"object"!=typeof a.source&&(a.source=f(d,a.source)),"object"!=typeof a.target&&(a.target=f(d,a.target)),u[a.source.index]=(u[a.source.index]||0)+1,u[a.target.index]=(u[a.target.index]||0)+1;for(o=0,s=new Array(l);o<l;++o)a=t[o],s[o]=u[a.source.index]/(u[a.source.index]+u[a.target.index]);e=new Array(l),y(),r=new Array(l),m()}}function y(){if(i)for(var n=0,r=t.length;n<r;++n)e[n]=+l(t[n],n,t)}function m(){if(i)for(var e=0,n=t.length;e<n;++e)r[e]=+d(t[e],e,t)}return null==t&&(t=[]),b.initialize=function(t){i=t,g()},b.links=function(e){return arguments.length?(t=e,g(),b):t},b.id=function(t){return arguments.length?(h=t,b):h},b.iterations=function(t){return arguments.length?(p=+t,b):p},b.strength=function(t){return arguments.length?(l="function"==typeof t?t:o(+t),y(),b):l},b.distance=function(t){return arguments.length?(d="function"==typeof t?t:o(+t),m(),b):d},b},t.forceManyBody=function(){var t,n,r,i,u=o(-30),s=1,c=1/0,f=.81;function d(i){var o,a=t.length,u=e.quadtree(t,h,l).visitAfter(b);for(r=i,o=0;o<a;++o)n=t[o],u.visit(g)}function p(){if(t){var e,n,r=t.length;for(i=new Array(r),e=0;e<r;++e)n=t[e],i[n.index]=+u(n,e,t)}}function b(t){var e,n,r,o,a,u=0,s=0;if(t.length){for(r=o=a=0;a<4;++a)(e=t[a])&&(n=Math.abs(e.value))&&(u+=e.value,s+=n,r+=n*e.x,o+=n*e.y);t.x=r/s,t.y=o/s}else{(e=t).x=e.data.x,e.y=e.data.y;do{u+=i[e.data.index]}while(e=e.next)}t.value=u}function g(t,e,o,u){if(!t.value)return!0;var h=t.x-n.x,l=t.y-n.y,d=u-e,p=h*h+l*l;if(d*d/f<p)return p<c&&(0===h&&(p+=(h=a())*h),0===l&&(p+=(l=a())*l),p<s&&(p=Math.sqrt(s*p)),n.vx+=h*t.value*r/p,n.vy+=l*t.value*r/p),!0;if(!(t.length||p>=c)){(t.data!==n||t.next)&&(0===h&&(p+=(h=a())*h),0===l&&(p+=(l=a())*l),p<s&&(p=Math.sqrt(s*p)));do{t.data!==n&&(d=i[t.data.index]*r/p,n.vx+=h*d,n.vy+=l*d)}while(t=t.next)}}return d.initialize=function(e){t=e,p()},d.strength=function(t){return arguments.length?(u="function"==typeof t?t:o(+t),p(),d):u},d.distanceMin=function(t){return arguments.length?(s=t*t,d):Math.sqrt(s)},d.distanceMax=function(t){return arguments.length?(c=t*t,d):Math.sqrt(c)},d.theta=function(t){return arguments.length?(f=t*t,d):Math.sqrt(f)},d},t.forceRadial=function(t,e,n){var r,i,a,u=o(.1);function s(t){for(var o=0,u=r.length;o<u;++o){var s=r[o],c=s.x-e||1e-6,f=s.y-n||1e-6,h=Math.sqrt(c*c+f*f),l=(a[o]-h)*i[o]*t/h;s.vx+=c*l,s.vy+=f*l}}function c(){if(r){var e,n=r.length;for(i=new Array(n),a=new Array(n),e=0;e<n;++e)a[e]=+t(r[e],e,r),i[e]=isNaN(a[e])?0:+u(r[e],e,r)}}return"function"!=typeof t&&(t=o(+t)),null==e&&(e=0),null==n&&(n=0),s.initialize=function(t){r=t,c()},s.strength=function(t){return arguments.length?(u="function"==typeof t?t:o(+t),c(),s):u},s.radius=function(e){return arguments.length?(t="function"==typeof e?e:o(+e),c(),s):t},s.x=function(t){return arguments.length?(e=+t,s):e},s.y=function(t){return arguments.length?(n=+t,s):n},s},t.forceSimulation=function(t){var e,o=1,a=.001,u=1-Math.pow(a,1/300),s=0,c=.6,f=n.map(),h=i.timer(b),l=r.dispatch("tick","end");function b(){g(),l.call("tick",e),o<a&&(h.stop(),l.call("end",e))}function g(){var e,n,r=t.length;for(o+=(s-o)*u,f.each(function(t){t(o)}),e=0;e<r;++e)null==(n=t[e]).fx?n.x+=n.vx*=c:(n.x=n.fx,n.vx=0),null==n.fy?n.y+=n.vy*=c:(n.y=n.fy,n.vy=0)}function y(){for(var e,n=0,r=t.length;n<r;++n){if((e=t[n]).index=n,isNaN(e.x)||isNaN(e.y)){var i=d*Math.sqrt(n),o=n*p;e.x=i*Math.cos(o),e.y=i*Math.sin(o)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function m(e){return e.initialize&&e.initialize(t),e}return null==t&&(t=[]),y(),e={tick:g,restart:function(){return h.restart(b),e},stop:function(){return h.stop(),e},nodes:function(n){return arguments.length?(t=n,y(),f.each(m),e):t},alpha:function(t){return arguments.length?(o=+t,e):o},alphaMin:function(t){return arguments.length?(a=+t,e):a},alphaDecay:function(t){return arguments.length?(u=+t,e):+u},alphaTarget:function(t){return arguments.length?(s=+t,e):s},velocityDecay:function(t){return arguments.length?(c=1-t,e):1-c},force:function(t,n){return arguments.length>1?(null==n?f.remove(t):f.set(t,m(n)),e):f.get(t)},find:function(e,n,r){var i,o,a,u,s,c=0,f=t.length;for(null==r?r=1/0:r*=r,c=0;c<f;++c)(a=(i=e-(u=t[c]).x)*i+(o=n-u.y)*o)<r&&(s=u,r=a);return s},on:function(t,n){return arguments.length>1?(l.on(t,n),e):l.on(t)}}},t.forceX=function(t){var e,n,r,i=o(.1);function a(t){for(var i,o=0,a=e.length;o<a;++o)(i=e[o]).vx+=(r[o]-i.x)*n[o]*t}function u(){if(e){var o,a=e.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+t(e[o],o,e))?0:+i(e[o],o,e)}}return"function"!=typeof t&&(t=o(null==t?0:+t)),a.initialize=function(t){e=t,u()},a.strength=function(t){return arguments.length?(i="function"==typeof t?t:o(+t),u(),a):i},a.x=function(e){return arguments.length?(t="function"==typeof e?e:o(+e),u(),a):t},a},t.forceY=function(t){var e,n,r,i=o(.1);function a(t){for(var i,o=0,a=e.length;o<a;++o)(i=e[o]).vy+=(r[o]-i.y)*n[o]*t}function u(){if(e){var o,a=e.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+t(e[o],o,e))?0:+i(e[o],o,e)}}return"function"!=typeof t&&(t=o(null==t?0:+t)),a.initialize=function(t){e=t,u()},a.strength=function(t){return arguments.length?(i="function"==typeof t?t:o(+t),u(),a):i},a.y=function(e){return arguments.length?(t="function"==typeof e?e:o(+e),u(),a):t},a},Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("d3-quadtree"),t("d3-collection"),t("d3-dispatch"),t("d3-timer")):"function"==typeof define&&define.amd?define(["exports","d3-quadtree","d3-collection","d3-dispatch","d3-timer"],i):i(r.d3=r.d3||{},r.d3,r.d3,r.d3,r.d3)},{"d3-collection":221,"d3-dispatch":223,"d3-quadtree":234,"d3-timer":243}],228:[function(t,e,n){var r,i;r=this,i=function(t){"use strict";var e,n=function(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]},r=function(t){return(t=n(Math.abs(t)))?t[1]:NaN},i=function(t,e){var r=n(t,e);if(!r)return t+"";var i=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")},o={"":function(t,e){t=t.toPrecision(e);t:for(var n,r=t.length,i=1,o=-1;i<r;++i)switch(t[i]){case".":o=n=i;break;case"0":0===o&&(o=i),n=i;break;case"e":break t;default:o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(n+1):t},"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return i(100*t,e)},r:i,s:function(t,r){var i=n(t,r);if(!i)return t+"";var o=i[0],a=i[1],u=a-(e=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,s=o.length;return u===s?o:u>s?o+new Array(u-s+1).join("0"):u>0?o.slice(0,u)+"."+o.slice(u):"0."+new Array(1-u).join("0")+n(t,Math.max(0,r+u-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},a=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function u(t){return new s(t)}function s(t){if(!(e=a.exec(t)))throw new Error("invalid format: "+t);var e,n=e[1]||" ",r=e[2]||">",i=e[3]||"-",u=e[4]||"",s=!!e[5],c=e[6]&&+e[6],f=!!e[7],h=e[8]&&+e[8].slice(1),l=e[9]||"";"n"===l?(f=!0,l="g"):o[l]||(l=""),(s||"0"===n&&"="===r)&&(s=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=i,this.symbol=u,this.zero=s,this.width=c,this.comma=f,this.precision=h,this.type=l}u.prototype=s.prototype,s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var c,f=function(t){return t},h=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],l=function(t){var n,i,a=t.grouping&&t.thousands?(n=t.grouping,i=t.thousands,function(t,e){for(var r=t.length,o=[],a=0,u=n[0],s=0;r>0&&u>0&&(s+u+1>e&&(u=Math.max(1,e-s)),o.push(t.substring(r-=u,r+u)),!((s+=u+1)>e));)u=n[a=(a+1)%n.length];return o.reverse().join(i)}):f,s=t.currency,c=t.decimal,l=t.numerals?function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(t.numerals):f,d=t.percent||"%";function p(t){var n=(t=u(t)).fill,r=t.align,i=t.sign,f=t.symbol,p=t.zero,b=t.width,g=t.comma,y=t.precision,m=t.type,v="$"===f?s[0]:"#"===f&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",_="$"===f?s[1]:/[%p]/.test(m)?d:"",w=o[m],x=!m||/[defgprs%]/.test(m);function A(t){var o,u,s,f=v,d=_;if("c"===m)d=w(t)+d,t="";else{var A=(t=+t)<0;if(t=w(Math.abs(t),y),A&&0==+t&&(A=!1),f=(A?"("===i?i:"-":"-"===i||"("===i?"":i)+f,d=("s"===m?h[8+e/3]:"")+d+(A&&"("===i?")":""),x)for(o=-1,u=t.length;++o<u;)if(48>(s=t.charCodeAt(o))||s>57){d=(46===s?c+t.slice(o+1):t.slice(o))+d,t=t.slice(0,o);break}}g&&!p&&(t=a(t,1/0));var E=f.length+t.length+d.length,M=E<b?new Array(b-E+1).join(n):"";switch(g&&p&&(t=a(M+t,M.length?b-d.length:1/0),M=""),r){case"<":t=f+t+d+M;break;case"=":t=f+M+t+d;break;case"^":t=M.slice(0,E=M.length>>1)+f+t+d+M.slice(E);break;default:t=M+f+t+d}return l(t)}return y=null==y?m?6:12:/[gprs]/.test(m)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),A.toString=function(){return t+""},A}return{format:p,formatPrefix:function(t,e){var n=p(((t=u(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(r(e)/3))),o=Math.pow(10,-i),a=h[8+i/3];return function(t){return n(o*t)+a}}}};function d(e){return c=l(e),t.format=c.format,t.formatPrefix=c.formatPrefix,c}d({decimal:".",thousands:",",grouping:[3],currency:["$",""]});t.formatDefaultLocale=d,t.formatLocale=l,t.formatSpecifier=u,t.precisionFixed=function(t){return Math.max(0,-r(Math.abs(t)))},t.precisionPrefix=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(r(e)/3)))-r(Math.abs(t)))},t.precisionRound=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,r(e)-r(t))+1},Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n):"function"==typeof define&&define.amd?define(["exports"],i):i(r.d3=r.d3||{})},{}],229:[function(t,e,n){var r,i;r=this,i=function(t,e){"use strict";var n=function(){return new r};function r(){this.reset()}r.prototype={constructor:r,reset:function(){this.s=this.t=0},add:function(t){o(i,t,this.t),o(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new r;function o(t,e,n){var r=t.s=e+n,i=r-e,o=r-i;t.t=e-o+(n-i)}var a=1e-6,u=Math.PI,s=u/2,c=u/4,f=2*u,h=180/u,l=u/180,d=Math.abs,p=Math.atan,b=Math.atan2,g=Math.cos,y=Math.ceil,m=Math.exp,v=Math.log,_=Math.pow,w=Math.sin,x=Math.sign||function(t){return t>0?1:t<0?-1:0},A=Math.sqrt,E=Math.tan;function M(t){return t>1?0:t<-1?u:Math.acos(t)}function C(t){return t>1?s:t<-1?-s:Math.asin(t)}function S(t){return(t=w(t/2))*t}function B(){}function k(t,e){t&&F.hasOwnProperty(t.type)&&F[t.type](t,e)}var I={Feature:function(t,e){k(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)k(n[r].geometry,e)}},F={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){D(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)D(n[r],e,0)},Polygon:function(t,e){T(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)T(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)k(n[r],e)}};function D(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();++i<o;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function T(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)D(t[n],e,1);e.polygonEnd()}var N,j,R,O,L,U=function(t,e){t&&I.hasOwnProperty(t.type)?I[t.type](t,e):k(t,e)},P=n(),H=n(),z={point:B,lineStart:B,lineEnd:B,polygonStart:function(){P.reset(),z.lineStart=V,z.lineEnd=X},polygonEnd:function(){var t=+P;H.add(t<0?f+t:t),this.lineStart=this.lineEnd=this.point=B},sphere:function(){H.add(f)}};function V(){z.point=q}function X(){W(N,j)}function q(t,e){z.point=W,N=t,j=e,R=t*=l,O=g(e=(e*=l)/2+c),L=w(e)}function W(t,e){e=(e*=l)/2+c;var n=(t*=l)-R,r=n>=0?1:-1,i=r*n,o=g(e),a=w(e),u=L*a,s=O*o+u*g(i),f=u*r*w(i);P.add(b(f,s)),R=t,O=o,L=a}var Y,Z,G,K,J,Q,$,tt;function et(t){return[b(t[1],t[0]),C(t[2])]}function nt(t){var e=t[0],n=t[1],r=g(n);return[r*g(e),r*w(e),w(n)]}function rt(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function it(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function ot(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function at(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function ut(t){var e=A(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var st,ct,ft=n(),ht={point:lt,lineStart:pt,lineEnd:bt,polygonStart:function(){ht.point=gt,ht.lineStart=yt,ht.lineEnd=mt,ft.reset(),z.polygonStart()},polygonEnd:function(){z.polygonEnd(),ht.point=lt,ht.lineStart=pt,ht.lineEnd=bt,P<0?(Y=-(G=180),Z=-(K=90)):ft>a?K=90:ft<-a&&(Z=-90),ct[0]=Y,ct[1]=G}};function lt(t,e){st.push(ct=[Y=t,G=t]),e<Z&&(Z=e),e>K&&(K=e)}function dt(t,e){var n=nt([t*l,e*l]);if(tt){var r=it(tt,n),i=it([r[1],-r[0],0],r);ut(i),i=et(i);var o,a=t-J,u=a>0?1:-1,s=i[0]*h*u,c=d(a)>180;c^(u*J<s&&s<u*t)?(o=i[1]*h)>K&&(K=o):c^(u*J<(s=(s+360)%360-180)&&s<u*t)?(o=-i[1]*h)<Z&&(Z=o):(e<Z&&(Z=e),e>K&&(K=e)),c?t<J?vt(Y,t)>vt(Y,G)&&(G=t):vt(t,G)>vt(Y,G)&&(Y=t):G>=Y?(t<Y&&(Y=t),t>G&&(G=t)):t>J?vt(Y,t)>vt(Y,G)&&(G=t):vt(t,G)>vt(Y,G)&&(Y=t)}else st.push(ct=[Y=t,G=t]);e<Z&&(Z=e),e>K&&(K=e),tt=n,J=t}function pt(){ht.point=dt}function bt(){ct[0]=Y,ct[1]=G,ht.point=lt,tt=null}function gt(t,e){if(tt){var n=t-J;ft.add(d(n)>180?n+(n>0?360:-360):n)}else Q=t,$=e;z.point(t,e),dt(t,e)}function yt(){z.lineStart()}function mt(){gt(Q,$),z.lineEnd(),d(ft)>a&&(Y=-(G=180)),ct[0]=Y,ct[1]=G,tt=null}function vt(t,e){return(e-=t)<0?e+360:e}function _t(t,e){return t[0]-e[0]}function wt(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}var xt,At,Et,Mt,Ct,St,Bt,kt,It,Ft,Dt,Tt,Nt,jt,Rt,Ot,Lt={sphere:B,point:Ut,lineStart:Ht,lineEnd:Xt,polygonStart:function(){Lt.lineStart=qt,Lt.lineEnd=Wt},polygonEnd:function(){Lt.lineStart=Ht,Lt.lineEnd=Xt}};function Ut(t,e){t*=l;var n=g(e*=l);Pt(n*g(t),n*w(t),w(e))}function Pt(t,e,n){Et+=(t-Et)/++xt,Mt+=(e-Mt)/xt,Ct+=(n-Ct)/xt}function Ht(){Lt.point=zt}function zt(t,e){t*=l;var n=g(e*=l);jt=n*g(t),Rt=n*w(t),Ot=w(e),Lt.point=Vt,Pt(jt,Rt,Ot)}function Vt(t,e){t*=l;var n=g(e*=l),r=n*g(t),i=n*w(t),o=w(e),a=b(A((a=Rt*o-Ot*i)*a+(a=Ot*r-jt*o)*a+(a=jt*i-Rt*r)*a),jt*r+Rt*i+Ot*o);At+=a,St+=a*(jt+(jt=r)),Bt+=a*(Rt+(Rt=i)),kt+=a*(Ot+(Ot=o)),Pt(jt,Rt,Ot)}function Xt(){Lt.point=Ut}function qt(){Lt.point=Yt}function Wt(){Zt(Tt,Nt),Lt.point=Ut}function Yt(t,e){Tt=t,Nt=e,t*=l,e*=l,Lt.point=Zt;var n=g(e);jt=n*g(t),Rt=n*w(t),Ot=w(e),Pt(jt,Rt,Ot)}function Zt(t,e){t*=l;var n=g(e*=l),r=n*g(t),i=n*w(t),o=w(e),a=Rt*o-Ot*i,u=Ot*r-jt*o,s=jt*i-Rt*r,c=A(a*a+u*u+s*s),f=C(c),h=c&&-f/c;It+=h*a,Ft+=h*u,Dt+=h*s,At+=f,St+=f*(jt+(jt=r)),Bt+=f*(Rt+(Rt=i)),kt+=f*(Ot+(Ot=o)),Pt(jt,Rt,Ot)}var Gt=function(t){return function(){return t}},Kt=function(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n};function Jt(t,e){return[t>u?t-f:t<-u?t+f:t,e]}function Qt(t,e,n){return(t%=f)?e||n?Kt(te(t),ee(e,n)):te(t):e||n?ee(e,n):Jt}function $t(t){return function(e,n){return[(e+=t)>u?e-f:e<-u?e+f:e,n]}}function te(t){var e=$t(t);return e.invert=$t(-t),e}function ee(t,e){var n=g(t),r=w(t),i=g(e),o=w(e);function a(t,e){var a=g(e),u=g(t)*a,s=w(t)*a,c=w(e),f=c*n+u*r;return[b(s*i-f*o,u*n-c*r),C(f*i+s*o)]}return a.invert=function(t,e){var a=g(e),u=g(t)*a,s=w(t)*a,c=w(e),f=c*i-s*o;return[b(s*i+c*o,u*n+f*r),C(f*n-u*r)]},a}Jt.invert=Jt;var ne=function(t){function e(e){return(e=t(e[0]*l,e[1]*l))[0]*=h,e[1]*=h,e}return t=Qt(t[0]*l,t[1]*l,t.length>2?t[2]*l:0),e.invert=function(e){return(e=t.invert(e[0]*l,e[1]*l))[0]*=h,e[1]*=h,e},e};function re(t,e,n,r,i,o){if(n){var a=g(e),u=w(e),s=r*n;null==i?(i=e+r*f,o=e-s/2):(i=ie(a,i),o=ie(a,o),(r>0?i<o:i>o)&&(i+=r*f));for(var c,h=i;r>0?h>o:h<o;h-=s)c=et([a,-u*g(h),-u*w(h)]),t.point(c[0],c[1])}}function ie(t,e){(e=nt(e))[0]-=t,ut(e);var n=M(-e[1]);return((-e[2]<0?-n:n)+f-a)%f}var oe=function(){var t,e=[];return{point:function(e,n){t.push([e,n])},lineStart:function(){e.push(t=[])},lineEnd:B,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}},ae=function(t,e){return d(t[0]-e[0])<a&&d(t[1]-e[1])<a};function ue(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}var se=function(t,e,n,r,i){var o,a,u=[],s=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],a=t[e];if(ae(r,a)){for(i.lineStart(),o=0;o<e;++o)i.point((r=t[o])[0],r[1]);i.lineEnd()}else u.push(n=new ue(r,t,null,!0)),s.push(n.o=new ue(r,null,n,!1)),u.push(n=new ue(a,t,null,!1)),s.push(n.o=new ue(a,null,n,!0))}}),u.length){for(s.sort(e),ce(u),ce(s),o=0,a=s.length;o<a;++o)s[o].e=n=!n;for(var c,f,h=u[0];;){for(var l=h,d=!0;l.v;)if((l=l.n)===h)return;c=l.z,i.lineStart();do{if(l.v=l.o.v=!0,l.e){if(d)for(o=0,a=c.length;o<a;++o)i.point((f=c[o])[0],f[1]);else r(l.x,l.n.x,1,i);l=l.n}else{if(d)for(c=l.p.z,o=c.length-1;o>=0;--o)i.point((f=c[o])[0],f[1]);else r(l.x,l.p.x,-1,i);l=l.p}c=(l=l.o).z,d=!d}while(!l.v);i.lineEnd()}}};function ce(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}var fe=n(),he=function(t,e){var n=e[0],r=e[1],i=[w(n),-g(n),0],o=0,s=0;fe.reset();for(var h=0,l=t.length;h<l;++h)if(p=(d=t[h]).length)for(var d,p,y=d[p-1],m=y[0],v=y[1]/2+c,_=w(v),x=g(v),A=0;A<p;++A,m=M,_=B,x=k,y=E){var E=d[A],M=E[0],S=E[1]/2+c,B=w(S),k=g(S),I=M-m,F=I>=0?1:-1,D=F*I,T=D>u,N=_*B;if(fe.add(b(N*F*w(D),x*k+N*g(D))),o+=T?I+F*f:I,T^m>=n^M>=n){var j=it(nt(y),nt(E));ut(j);var R=it(i,j);ut(R);var O=(T^I>=0?-1:1)*C(R[2]);(r>O||r===O&&(j[0]||j[1]))&&(s+=T^I>=0?1:-1)}}return(o<-a||o<a&&fe<-a)^1&s},le=function(t,n,r,i){return function(o){var a,u,s,c=n(o),f=oe(),h=n(f),l=!1,d={point:p,lineStart:g,lineEnd:y,polygonStart:function(){d.point=m,d.lineStart=v,d.lineEnd=_,u=[],a=[]},polygonEnd:function(){d.point=p,d.lineStart=g,d.lineEnd=y,u=e.merge(u);var t=he(a,i);u.length?(l||(o.polygonStart(),l=!0),se(u,pe,t,r,o)):t&&(l||(o.polygonStart(),l=!0),o.lineStart(),r(null,null,1,o),o.lineEnd()),l&&(o.polygonEnd(),l=!1),u=a=null},sphere:function(){o.polygonStart(),o.lineStart(),r(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function p(e,n){t(e,n)&&o.point(e,n)}function b(t,e){c.point(t,e)}function g(){d.point=b,c.lineStart()}function y(){d.point=p,c.lineEnd()}function m(t,e){s.push([t,e]),h.point(t,e)}function v(){h.lineStart(),s=[]}function _(){m(s[0][0],s[0][1]),h.lineEnd();var t,e,n,r,i=h.clean(),c=f.result(),d=c.length;if(s.pop(),a.push(s),s=null,d)if(1&i){if((e=(n=c[0]).length-1)>0){for(l||(o.polygonStart(),l=!0),o.lineStart(),t=0;t<e;++t)o.point((r=n[t])[0],r[1]);o.lineEnd()}}else d>1&&2&i&&c.push(c.pop().concat(c.shift())),u.push(c.filter(de))}return d}};function de(t){return t.length>1}function pe(t,e){return((t=t.x)[0]<0?t[1]-s-a:s-t[1])-((e=e.x)[0]<0?e[1]-s-a:s-e[1])}var be=le(function(){return!0},function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,c){var f=o>0?u:-u,h=d(o-n);d(h-u)<a?(t.point(n,r=(r+c)/2>0?s:-s),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(f,r),t.point(o,r),e=0):i!==f&&h>=u&&(d(n-i)<a&&(n-=i*a),d(o-f)<a&&(o-=f*a),r=function(t,e,n,r){var i,o,u=w(t-n);return d(u)>a?p((w(e)*(o=g(r))*w(n)-w(r)*(i=g(e))*w(t))/(i*o*u)):(e+r)/2}(n,r,o,c),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(f,r),e=0),t.point(n=o,r=c),i=f},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}},function(t,e,n,r){var i;if(null==t)i=n*s,r.point(-u,i),r.point(0,i),r.point(u,i),r.point(u,0),r.point(u,-i),r.point(0,-i),r.point(-u,-i),r.point(-u,0),r.point(-u,i);else if(d(t[0]-e[0])>a){var o=t[0]<e[0]?u:-u;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(e[0],e[1])},[-u,-s]);var ge=function(t){var e=g(t),n=6*l,r=e>0,i=d(e)>a;function o(t,n){return g(t)*g(n)>e}function s(t,n,r){var i=[1,0,0],o=it(nt(t),nt(n)),s=rt(o,o),c=o[0],f=s-c*c;if(!f)return!r&&t;var h=e*s/f,l=-e*c/f,p=it(i,o),b=at(i,h);ot(b,at(o,l));var g=p,y=rt(b,g),m=rt(g,g),v=y*y-m*(rt(b,b)-1);if(!(v<0)){var _=A(v),w=at(g,(-y-_)/m);if(ot(w,b),w=et(w),!r)return w;var x,E=t[0],M=n[0],C=t[1],S=n[1];M<E&&(x=E,E=M,M=x);var B=M-E,k=d(B-u)<a;if(!k&&S<C&&(x=C,C=S,S=x),k||B<a?k?C+S>0^w[1]<(d(w[0]-E)<a?C:S):C<=w[1]&&w[1]<=S:B>u^(E<=w[0]&&w[0]<=M)){var I=at(g,(-y+_)/m);return ot(I,b),[w,et(I)]}}}function c(e,n){var i=r?t:u-t,o=0;return e<-i?o|=1:e>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return le(o,function(t){var e,n,f,h,l;return{lineStart:function(){h=f=!1,l=1},point:function(d,p){var b,g=[d,p],y=o(d,p),m=r?y?0:c(d,p):y?c(d+(d<0?u:-u),p):0;if(!e&&(h=f=y)&&t.lineStart(),y!==f&&(!(b=s(e,g))||ae(e,b)||ae(g,b))&&(g[0]+=a,g[1]+=a,y=o(g[0],g[1])),y!==f)l=0,y?(t.lineStart(),b=s(g,e),t.point(b[0],b[1])):(b=s(e,g),t.point(b[0],b[1]),t.lineEnd()),e=b;else if(i&&e&&r^y){var v;m&n||!(v=s(g,e,!0))||(l=0,r?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1])))}!y||e&&ae(e,g)||t.point(g[0],g[1]),e=g,f=y,n=m},lineEnd:function(){f&&t.lineEnd(),e=null},clean:function(){return l|(h&&f)<<1}}},function(e,r,i,o){re(o,t,n,i,e,r)},r?[0,-t]:[-u,t-u])},ye=function(t,e,n,r,i,o){var a,u=t[0],s=t[1],c=0,f=1,h=e[0]-u,l=e[1]-s;if(a=n-u,h||!(a>0)){if(a/=h,h<0){if(a<c)return;a<f&&(f=a)}else if(h>0){if(a>f)return;a>c&&(c=a)}if(a=i-u,h||!(a<0)){if(a/=h,h<0){if(a>f)return;a>c&&(c=a)}else if(h>0){if(a<c)return;a<f&&(f=a)}if(a=r-s,l||!(a>0)){if(a/=l,l<0){if(a<c)return;a<f&&(f=a)}else if(l>0){if(a>f)return;a>c&&(c=a)}if(a=o-s,l||!(a<0)){if(a/=l,l<0){if(a>f)return;a>c&&(c=a)}else if(l>0){if(a<c)return;a<f&&(f=a)}return c>0&&(t[0]=u+c*h,t[1]=s+c*l),f<1&&(e[0]=u+f*h,e[1]=s+f*l),!0}}}}},me=1e9,ve=-me;function _e(t,n,r,i){function o(e,o){return t<=e&&e<=r&&n<=o&&o<=i}function u(e,o,a,u){var c=0,h=0;if(null==e||(c=s(e,a))!==(h=s(o,a))||f(e,o)<0^a>0)do{u.point(0===c||3===c?t:r,c>1?i:n)}while((c=(c+a+4)%4)!==h);else u.point(o[0],o[1])}function s(e,i){return d(e[0]-t)<a?i>0?0:3:d(e[0]-r)<a?i>0?2:1:d(e[1]-n)<a?i>0?1:0:i>0?3:2}function c(t,e){return f(t.x,e.x)}function f(t,e){var n=s(t,1),r=s(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(a){var s,f,h,l,d,p,b,g,y,m,v,_=a,w=oe(),x={point:A,lineStart:function(){x.point=E,f&&f.push(h=[]);m=!0,y=!1,b=g=NaN},lineEnd:function(){s&&(E(l,d),p&&y&&w.rejoin(),s.push(w.result()));x.point=A,y&&_.lineEnd()},polygonStart:function(){_=w,s=[],f=[],v=!0},polygonEnd:function(){var n=function(){for(var e=0,n=0,r=f.length;n<r;++n)for(var o,a,u=f[n],s=1,c=u.length,h=u[0],l=h[0],d=h[1];s<c;++s)o=l,a=d,h=u[s],l=h[0],d=h[1],a<=i?d>i&&(l-o)*(i-a)>(d-a)*(t-o)&&++e:d<=i&&(l-o)*(i-a)<(d-a)*(t-o)&&--e;return e}(),r=v&&n,o=(s=e.merge(s)).length;(r||o)&&(a.polygonStart(),r&&(a.lineStart(),u(null,null,1,a),a.lineEnd()),o&&se(s,c,n,u,a),a.polygonEnd());_=a,s=f=h=null}};function A(t,e){o(t,e)&&_.point(t,e)}function E(e,a){var u=o(e,a);if(f&&h.push([e,a]),m)l=e,d=a,p=u,m=!1,u&&(_.lineStart(),_.point(e,a));else if(u&&y)_.point(e,a);else{var s=[b=Math.max(ve,Math.min(me,b)),g=Math.max(ve,Math.min(me,g))],c=[e=Math.max(ve,Math.min(me,e)),a=Math.max(ve,Math.min(me,a))];ye(s,c,t,n,r,i)?(y||(_.lineStart(),_.point(s[0],s[1])),_.point(c[0],c[1]),u||_.lineEnd(),v=!1):u&&(_.lineStart(),_.point(e,a),v=!1)}b=e,g=a,y=u}return x}}var we,xe,Ae,Ee=n(),Me={sphere:B,point:B,lineStart:function(){Me.point=Se,Me.lineEnd=Ce},lineEnd:B,polygonStart:B,polygonEnd:B};function Ce(){Me.point=Me.lineEnd=B}function Se(t,e){we=t*=l,xe=w(e*=l),Ae=g(e),Me.point=Be}function Be(t,e){t*=l;var n=w(e*=l),r=g(e),i=d(t-we),o=g(i),a=r*w(i),u=Ae*n-xe*r*o,s=xe*n+Ae*r*o;Ee.add(b(A(a*a+u*u),s)),we=t,xe=n,Ae=r}var ke=function(t){return Ee.reset(),U(t,Me),+Ee},Ie=[null,null],Fe={type:"LineString",coordinates:Ie},De=function(t,e){return Ie[0]=t,Ie[1]=e,ke(Fe)},Te={Feature:function(t,e){return je(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)if(je(n[r].geometry,e))return!0;return!1}},Ne={Sphere:function(){return!0},Point:function(t,e){return Re(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Re(n[r],e))return!0;return!1},LineString:function(t,e){return Oe(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Oe(n[r],e))return!0;return!1},Polygon:function(t,e){return Le(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Le(n[r],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)if(je(n[r],e))return!0;return!1}};function je(t,e){return!(!t||!Ne.hasOwnProperty(t.type))&&Ne[t.type](t,e)}function Re(t,e){return 0===De(t,e)}function Oe(t,e){var n=De(t[0],t[1]);return De(t[0],e)+De(e,t[1])<=n+a}function Le(t,e){return!!he(t.map(Ue),Pe(e))}function Ue(t){return(t=t.map(Pe)).pop(),t}function Pe(t){return[t[0]*l,t[1]*l]}function He(t,n,r){var i=e.range(t,n-a,r).concat(n);return function(t){return i.map(function(e){return[t,e]})}}function ze(t,n,r){var i=e.range(t,n-a,r).concat(n);return function(t){return i.map(function(e){return[e,t]})}}function Ve(){var t,n,r,i,o,u,s,c,f,h,l,p,b=10,g=b,m=90,v=360,_=2.5;function w(){return{type:"MultiLineString",coordinates:x()}}function x(){return e.range(y(i/m)*m,r,m).map(l).concat(e.range(y(c/v)*v,s,v).map(p)).concat(e.range(y(n/b)*b,t,b).filter(function(t){return d(t%m)>a}).map(f)).concat(e.range(y(u/g)*g,o,g).filter(function(t){return d(t%v)>a}).map(h))}return w.lines=function(){return x().map(function(t){return{type:"LineString",coordinates:t}})},w.outline=function(){return{type:"Polygon",coordinates:[l(i).concat(p(s).slice(1),l(r).reverse().slice(1),p(c).reverse().slice(1))]}},w.extent=function(t){return arguments.length?w.extentMajor(t).extentMinor(t):w.extentMinor()},w.extentMajor=function(t){return arguments.length?(i=+t[0][0],r=+t[1][0],c=+t[0][1],s=+t[1][1],i>r&&(t=i,i=r,r=t),c>s&&(t=c,c=s,s=t),w.precision(_)):[[i,c],[r,s]]},w.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],u=+e[0][1],o=+e[1][1],n>t&&(e=n,n=t,t=e),u>o&&(e=u,u=o,o=e),w.precision(_)):[[n,u],[t,o]]},w.step=function(t){return arguments.length?w.stepMajor(t).stepMinor(t):w.stepMinor()},w.stepMajor=function(t){return arguments.length?(m=+t[0],v=+t[1],w):[m,v]},w.stepMinor=function(t){return arguments.length?(b=+t[0],g=+t[1],w):[b,g]},w.precision=function(e){return arguments.length?(_=+e,f=He(u,o,90),h=ze(n,t,_),l=He(c,s,90),p=ze(i,r,_),w):_},w.extentMajor([[-180,-90+a],[180,90-a]]).extentMinor([[-180,-80-a],[180,80+a]])}var Xe,qe,We,Ye,Ze=function(t){return t},Ge=n(),Ke=n(),Je={point:B,lineStart:B,lineEnd:B,polygonStart:function(){Je.lineStart=Qe,Je.lineEnd=en},polygonEnd:function(){Je.lineStart=Je.lineEnd=Je.point=B,Ge.add(d(Ke)),Ke.reset()},result:function(){var t=Ge/2;return Ge.reset(),t}};function Qe(){Je.point=$e}function $e(t,e){Je.point=tn,Xe=We=t,qe=Ye=e}function tn(t,e){Ke.add(Ye*t-We*e),We=t,Ye=e}function en(){tn(Xe,qe)}var nn=1/0,rn=nn,on=-nn,an=on,un={point:function(t,e){t<nn&&(nn=t);t>on&&(on=t);e<rn&&(rn=e);e>an&&(an=e)},lineStart:B,lineEnd:B,polygonStart:B,polygonEnd:B,result:function(){var t=[[nn,rn],[on,an]];return on=an=-(rn=nn=1/0),t}};var sn,cn,fn,hn,ln=0,dn=0,pn=0,bn=0,gn=0,yn=0,mn=0,vn=0,_n=0,wn={point:xn,lineStart:An,lineEnd:Cn,polygonStart:function(){wn.lineStart=Sn,wn.lineEnd=Bn},polygonEnd:function(){wn.point=xn,wn.lineStart=An,wn.lineEnd=Cn},result:function(){var t=_n?[mn/_n,vn/_n]:yn?[bn/yn,gn/yn]:pn?[ln/pn,dn/pn]:[NaN,NaN];return ln=dn=pn=bn=gn=yn=mn=vn=_n=0,t}};function xn(t,e){ln+=t,dn+=e,++pn}function An(){wn.point=En}function En(t,e){wn.point=Mn,xn(fn=t,hn=e)}function Mn(t,e){var n=t-fn,r=e-hn,i=A(n*n+r*r);bn+=i*(fn+t)/2,gn+=i*(hn+e)/2,yn+=i,xn(fn=t,hn=e)}function Cn(){wn.point=xn}function Sn(){wn.point=kn}function Bn(){In(sn,cn)}function kn(t,e){wn.point=In,xn(sn=fn=t,cn=hn=e)}function In(t,e){var n=t-fn,r=e-hn,i=A(n*n+r*r);bn+=i*(fn+t)/2,gn+=i*(hn+e)/2,yn+=i,mn+=(i=hn*t-fn*e)*(fn+t),vn+=i*(hn+e),_n+=3*i,xn(fn=t,hn=e)}function Fn(t){this._context=t}Fn.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,f)}},result:B};var Dn,Tn,Nn,jn,Rn,On=n(),Ln={point:B,lineStart:function(){Ln.point=Un},lineEnd:function(){Dn&&Pn(Tn,Nn),Ln.point=B},polygonStart:function(){Dn=!0},polygonEnd:function(){Dn=null},result:function(){var t=+On;return On.reset(),t}};function Un(t,e){Ln.point=Pn,Tn=jn=t,Nn=Rn=e}function Pn(t,e){jn-=t,Rn-=e,On.add(A(jn*jn+Rn*Rn)),jn=t,Rn=e}function Hn(){this._string=[]}function zn(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}Hn.prototype={_radius:4.5,_circle:zn(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=zn(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}};function Vn(t){return function(e){var n=new Xn;for(var r in t)n[r]=t[r];return n.stream=e,n}}function Xn(){}function qn(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),U(n,t.stream(un)),e(un.result()),null!=r&&t.clipExtent(r),t}function Wn(t,e,n){return qn(t,function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+e[0][0]+(r-o*(n[1][0]+n[0][0]))/2,u=+e[0][1]+(i-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([a,u])},n)}function Yn(t,e,n){return Wn(t,[[0,0],e],n)}function Zn(t,e,n){return qn(t,function(n){var r=+e,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,a=-i*n[0][1];t.scale(150*i).translate([o,a])},n)}function Gn(t,e,n){return qn(t,function(n){var r=+e,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],a=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([o,a])},n)}Xn.prototype={constructor:Xn,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Kn=16,Jn=g(30*l),Qn=function(t,e){return+e?function(t,e){function n(r,i,o,u,s,c,f,h,l,p,g,y,m,v){var _=f-r,w=h-i,x=_*_+w*w;if(x>4*e&&m--){var E=u+p,M=s+g,S=c+y,B=A(E*E+M*M+S*S),k=C(S/=B),I=d(d(S)-1)<a||d(o-l)<a?(o+l)/2:b(M,E),F=t(I,k),D=F[0],T=F[1],N=D-r,j=T-i,R=w*N-_*j;(R*R/x>e||d((_*N+w*j)/x-.5)>.3||u*p+s*g+c*y<Jn)&&(n(r,i,o,u,s,c,D,T,I,E/=B,M/=B,S,m,v),v.point(D,T),n(D,T,I,E,M,S,f,h,l,p,g,y,m,v))}}return function(e){var r,i,o,a,u,s,c,f,h,l,d,p,b={point:g,lineStart:y,lineEnd:v,polygonStart:function(){e.polygonStart(),b.lineStart=_},polygonEnd:function(){e.polygonEnd(),b.lineStart=y}};function g(n,r){n=t(n,r),e.point(n[0],n[1])}function y(){f=NaN,b.point=m,e.lineStart()}function m(r,i){var o=nt([r,i]),a=t(r,i);n(f,h,c,l,d,p,f=a[0],h=a[1],c=r,l=o[0],d=o[1],p=o[2],Kn,e),e.point(f,h)}function v(){b.point=g,e.lineEnd()}function _(){y(),b.point=w,b.lineEnd=x}function w(t,e){m(r=t,e),i=f,o=h,a=l,u=d,s=p,b.point=m}function x(){n(f,h,c,l,d,p,i,o,r,a,u,s,Kn,e),b.lineEnd=v,v()}return b}}(t,e):function(t){return Vn({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}(t)};var $n=Vn({point:function(t,e){this.stream.point(t*l,e*l)}});function tr(t){return er(function(){return t})()}function er(t){var e,n,r,i,o,a,u,s,c,f,d=150,p=480,b=250,g=0,y=0,m=0,v=0,_=0,w=null,x=be,E=null,M=Ze,C=.5,S=Qn(I,C);function B(t){return[(t=o(t[0]*l,t[1]*l))[0]*d+n,r-t[1]*d]}function k(t){return(t=o.invert((t[0]-n)/d,(r-t[1])/d))&&[t[0]*h,t[1]*h]}function I(t,i){return[(t=e(t,i))[0]*d+n,r-t[1]*d]}function F(){o=Kt(i=Qt(m,v,_),e);var t=e(g,y);return n=p-t[0]*d,r=b+t[1]*d,D()}function D(){return c=f=null,B}return B.stream=function(t){return c&&f===t?c:c=$n(function(t){return Vn({point:function(e,n){var r=t(e,n);return this.stream.point(r[0],r[1])}})}(i)(x(S(M(f=t)))))},B.preclip=function(t){return arguments.length?(x=t,w=void 0,D()):x},B.postclip=function(t){return arguments.length?(M=t,E=a=u=s=null,D()):M},B.clipAngle=function(t){return arguments.length?(x=+t?ge(w=t*l):(w=null,be),D()):w*h},B.clipExtent=function(t){return arguments.length?(M=null==t?(E=a=u=s=null,Ze):_e(E=+t[0][0],a=+t[0][1],u=+t[1][0],s=+t[1][1]),D()):null==E?null:[[E,a],[u,s]]},B.scale=function(t){return arguments.length?(d=+t,F()):d},B.translate=function(t){return arguments.length?(p=+t[0],b=+t[1],F()):[p,b]},B.center=function(t){return arguments.length?(g=t[0]%360*l,y=t[1]%360*l,F()):[g*h,y*h]},B.rotate=function(t){return arguments.length?(m=t[0]%360*l,v=t[1]%360*l,_=t.length>2?t[2]%360*l:0,F()):[m*h,v*h,_*h]},B.precision=function(t){return arguments.length?(S=Qn(I,C=t*t),D()):A(C)},B.fitExtent=function(t,e){return Wn(B,t,e)},B.fitSize=function(t,e){return Yn(B,t,e)},B.fitWidth=function(t,e){return Zn(B,t,e)},B.fitHeight=function(t,e){return Gn(B,t,e)},function(){return e=t.apply(this,arguments),B.invert=e.invert&&k,F()}}function nr(t){var e=0,n=u/3,r=er(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*l,n=t[1]*l):[e*h,n*h]},i}function rr(t,e){var n=w(t),r=(n+w(e))/2;if(d(r)<a)return function(t){var e=g(t);function n(t,n){return[t*e,w(n)/e]}return n.invert=function(t,n){return[t/e,C(n*e)]},n}(t);var i=1+n*(2*r-n),o=A(i)/r;function u(t,e){var n=A(i-2*r*w(e))/r;return[n*w(t*=r),o-n*g(t)]}return u.invert=function(t,e){var n=o-e;return[b(t,d(n))/r*x(n),C((i-(t*t+n*n)*r*r)/(2*r))]},u}var ir=function(){return nr(rr).scale(155.424).center([0,33.6442])},or=function(){return ir().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])};function ar(t){return function(e,n){var r=g(e),i=g(n),o=t(r*i);return[o*i*w(e),o*w(n)]}}function ur(t){return function(e,n){var r=A(e*e+n*n),i=t(r),o=w(i),a=g(i);return[b(e*o,r*a),C(r&&n*o/r)]}}var sr=ar(function(t){return A(2/(1+t))});sr.invert=ur(function(t){return 2*C(t/2)});var cr=ar(function(t){return(t=M(t))&&t/w(t)});cr.invert=ur(function(t){return t});function fr(t,e){return[t,v(E((s+e)/2))]}fr.invert=function(t,e){return[t,2*p(m(e))-s]};function hr(t){var e,n,r,i=tr(t),o=i.center,a=i.scale,s=i.translate,c=i.clipExtent,f=null;function h(){var o=u*a(),s=i(ne(i.rotate()).invert([0,0]));return c(null==f?[[s[0]-o,s[1]-o],[s[0]+o,s[1]+o]]:t===fr?[[Math.max(s[0]-o,f),e],[Math.min(s[0]+o,n),r]]:[[f,Math.max(s[1]-o,e)],[n,Math.min(s[1]+o,r)]])}return i.scale=function(t){return arguments.length?(a(t),h()):a()},i.translate=function(t){return arguments.length?(s(t),h()):s()},i.center=function(t){return arguments.length?(o(t),h()):o()},i.clipExtent=function(t){return arguments.length?(null==t?f=e=n=r=null:(f=+t[0][0],e=+t[0][1],n=+t[1][0],r=+t[1][1]),h()):null==f?null:[[f,e],[n,r]]},h()}function lr(t){return E((s+t)/2)}function dr(t,e){var n=g(t),r=t===e?w(t):v(n/g(e))/v(lr(e)/lr(t)),i=n*_(lr(t),r)/r;if(!r)return fr;function o(t,e){i>0?e<-s+a&&(e=-s+a):e>s-a&&(e=s-a);var n=i/_(lr(e),r);return[n*w(r*t),i-n*g(r*t)]}return o.invert=function(t,e){var n=i-e,o=x(r)*A(t*t+n*n);return[b(t,d(n))/r*x(n),2*p(_(i/o,1/r))-s]},o}function pr(t,e){return[t,e]}pr.invert=pr;function br(t,e){var n=g(t),r=t===e?w(t):(n-g(e))/(e-t),i=n/r+t;if(d(r)<a)return pr;function o(t,e){var n=i-e,o=r*t;return[n*w(o),i-n*g(o)]}return o.invert=function(t,e){var n=i-e;return[b(t,d(n))/r*x(n),i-x(r)*A(t*t+n*n)]},o}function gr(t,e){var n=g(e),r=g(t)*n;return[n*w(t)/r,w(e)/r]}gr.invert=ur(p);function yr(t,e,n,r){return 1===t&&1===e&&0===n&&0===r?Ze:Vn({point:function(i,o){this.stream.point(i*t+n,o*e+r)}})}function mr(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),e*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}mr.invert=function(t,e){var n,r=e,i=25;do{var o=r*r,u=o*o;r-=n=(r*(1.007226+o*(.015085+u*(.028874*o-.044475-.005916*u)))-e)/(1.007226+o*(.045255+u*(.259866*o-.311325-.005916*11*u)))}while(d(n)>a&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]};function vr(t,e){return[g(e)*w(t),w(e)]}vr.invert=ur(C);function _r(t,e){var n=g(e),r=1+g(t)*n;return[n*w(t)/r,w(e)/r]}_r.invert=ur(function(t){return 2*p(t)});function wr(t,e){return[v(E((s+e)/2)),-t]}wr.invert=function(t,e){return[-e,2*p(m(t))-s]};t.geoArea=function(t){return H.reset(),U(t,z),2*H},t.geoBounds=function(t){var e,n,r,i,o,a,u;if(K=G=-(Y=Z=1/0),st=[],U(t,ht),n=st.length){for(st.sort(_t),e=1,o=[r=st[0]];e<n;++e)wt(r,(i=st[e])[0])||wt(r,i[1])?(vt(r[0],i[1])>vt(r[0],r[1])&&(r[1]=i[1]),vt(i[0],r[1])>vt(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,e=0,r=o[n=o.length-1];e<=n;r=i,++e)i=o[e],(u=vt(r[1],i[0]))>a&&(a=u,Y=i[0],G=r[1])}return st=ct=null,Y===1/0||Z===1/0?[[NaN,NaN],[NaN,NaN]]:[[Y,Z],[G,K]]},t.geoCentroid=function(t){xt=At=Et=Mt=Ct=St=Bt=kt=It=Ft=Dt=0,U(t,Lt);var e=It,n=Ft,r=Dt,i=e*e+n*n+r*r;return i<1e-12&&(e=St,n=Bt,r=kt,At<a&&(e=Et,n=Mt,r=Ct),(i=e*e+n*n+r*r)<1e-12)?[NaN,NaN]:[b(n,e)*h,C(r/A(i))*h]},t.geoCircle=function(){var t,e,n=Gt([0,0]),r=Gt(90),i=Gt(6),o={point:function(n,r){t.push(n=e(n,r)),n[0]*=h,n[1]*=h}};function a(){var a=n.apply(this,arguments),u=r.apply(this,arguments)*l,s=i.apply(this,arguments)*l;return t=[],e=Qt(-a[0]*l,-a[1]*l,0).invert,re(o,u,s,1),a={type:"Polygon",coordinates:[t]},t=e=null,a}return a.center=function(t){return arguments.length?(n="function"==typeof t?t:Gt([+t[0],+t[1]]),a):n},a.radius=function(t){return arguments.length?(r="function"==typeof t?t:Gt(+t),a):r},a.precision=function(t){return arguments.length?(i="function"==typeof t?t:Gt(+t),a):i},a},t.geoClipAntimeridian=be,t.geoClipCircle=ge,t.geoClipExtent=function(){var t,e,n,r=0,i=0,o=960,a=500;return n={stream:function(n){return t&&e===n?t:t=_e(r,i,o,a)(e=n)},extent:function(u){return arguments.length?(r=+u[0][0],i=+u[0][1],o=+u[1][0],a=+u[1][1],t=e=null,n):[[r,i],[o,a]]}}},t.geoClipRectangle=_e,t.geoContains=function(t,e){return(t&&Te.hasOwnProperty(t.type)?Te[t.type]:je)(t,e)},t.geoDistance=De,t.geoGraticule=Ve,t.geoGraticule10=function(){return Ve()()},t.geoInterpolate=function(t,e){var n=t[0]*l,r=t[1]*l,i=e[0]*l,o=e[1]*l,a=g(r),u=w(r),s=g(o),c=w(o),f=a*g(n),d=a*w(n),p=s*g(i),y=s*w(i),m=2*C(A(S(o-r)+a*s*S(i-n))),v=w(m),_=m?function(t){var e=w(t*=m)/v,n=w(m-t)/v,r=n*f+e*p,i=n*d+e*y,o=n*u+e*c;return[b(i,r)*h,b(o,A(r*r+i*i))*h]}:function(){return[n*h,r*h]};return _.distance=m,_},t.geoLength=ke,t.geoPath=function(t,e){var n,r,i=4.5;function o(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),U(t,n(r))),r.result()}return o.area=function(t){return U(t,n(Je)),Je.result()},o.measure=function(t){return U(t,n(Ln)),Ln.result()},o.bounds=function(t){return U(t,n(un)),un.result()},o.centroid=function(t){return U(t,n(wn)),wn.result()},o.projection=function(e){return arguments.length?(n=null==e?(t=null,Ze):(t=e).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(e=null,new Hn):new Fn(e=t),"function"!=typeof i&&r.pointRadius(i),o):e},o.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),o):i},o.projection(t).context(e)},t.geoAlbers=or,t.geoAlbersUsa=function(){var t,e,n,r,i,o,u=or(),s=ir().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=ir().rotate([157,0]).center([-3,19.9]).parallels([8,18]),f={point:function(t,e){o=[t,e]}};function h(t){var e=t[0],a=t[1];return o=null,n.point(e,a),o||(r.point(e,a),o)||(i.point(e,a),o)}function l(){return t=e=null,h}return h.invert=function(t){var e=u.scale(),n=u.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?s:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:u).invert(t)},h.stream=function(n){return t&&e===n?t:(r=[u.stream(e=n),s.stream(n),c.stream(n)],i=r.length,t={point:function(t,e){for(var n=-1;++n<i;)r[n].point(t,e)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},h.precision=function(t){return arguments.length?(u.precision(t),s.precision(t),c.precision(t),l()):u.precision()},h.scale=function(t){return arguments.length?(u.scale(t),s.scale(.35*t),c.scale(t),h.translate(u.translate())):u.scale()},h.translate=function(t){if(!arguments.length)return u.translate();var e=u.scale(),o=+t[0],h=+t[1];return n=u.translate(t).clipExtent([[o-.455*e,h-.238*e],[o+.455*e,h+.238*e]]).stream(f),r=s.translate([o-.307*e,h+.201*e]).clipExtent([[o-.425*e+a,h+.12*e+a],[o-.214*e-a,h+.234*e-a]]).stream(f),i=c.translate([o-.205*e,h+.212*e]).clipExtent([[o-.214*e+a,h+.166*e+a],[o-.115*e-a,h+.234*e-a]]).stream(f),l()},h.fitExtent=function(t,e){return Wn(h,t,e)},h.fitSize=function(t,e){return Yn(h,t,e)},h.fitWidth=function(t,e){return Zn(h,t,e)},h.fitHeight=function(t,e){return Gn(h,t,e)},h.scale(1070)},t.geoAzimuthalEqualArea=function(){return tr(sr).scale(124.75).clipAngle(179.999)},t.geoAzimuthalEqualAreaRaw=sr,t.geoAzimuthalEquidistant=function(){return tr(cr).scale(79.4188).clipAngle(179.999)},t.geoAzimuthalEquidistantRaw=cr,t.geoConicConformal=function(){return nr(dr).scale(109.5).parallels([30,30])},t.geoConicConformalRaw=dr,t.geoConicEqualArea=ir,t.geoConicEqualAreaRaw=rr,t.geoConicEquidistant=function(){return nr(br).scale(131.154).center([0,13.9389])},t.geoConicEquidistantRaw=br,t.geoEquirectangular=function(){return tr(pr).scale(152.63)},t.geoEquirectangularRaw=pr,t.geoGnomonic=function(){return tr(gr).scale(144.049).clipAngle(60)},t.geoGnomonicRaw=gr,t.geoIdentity=function(){var t,e,n,r,i,o,a=1,u=0,s=0,c=1,f=1,h=Ze,l=null,d=Ze;function p(){return r=i=null,o}return o={stream:function(t){return r&&i===t?r:r=h(d(i=t))},postclip:function(r){return arguments.length?(d=r,l=t=e=n=null,p()):d},clipExtent:function(r){return arguments.length?(d=null==r?(l=t=e=n=null,Ze):_e(l=+r[0][0],t=+r[0][1],e=+r[1][0],n=+r[1][1]),p()):null==l?null:[[l,t],[e,n]]},scale:function(t){return arguments.length?(h=yr((a=+t)*c,a*f,u,s),p()):a},translate:function(t){return arguments.length?(h=yr(a*c,a*f,u=+t[0],s=+t[1]),p()):[u,s]},reflectX:function(t){return arguments.length?(h=yr(a*(c=t?-1:1),a*f,u,s),p()):c<0},reflectY:function(t){return arguments.length?(h=yr(a*c,a*(f=t?-1:1),u,s),p()):f<0},fitExtent:function(t,e){return Wn(o,t,e)},fitSize:function(t,e){return Yn(o,t,e)},fitWidth:function(t,e){return Zn(o,t,e)},fitHeight:function(t,e){return Gn(o,t,e)}}},t.geoProjection=tr,t.geoProjectionMutator=er,t.geoMercator=function(){return hr(fr).scale(961/f)},t.geoMercatorRaw=fr,t.geoNaturalEarth1=function(){return tr(mr).scale(175.295)},t.geoNaturalEarth1Raw=mr,t.geoOrthographic=function(){return tr(vr).scale(249.5).clipAngle(90+a)},t.geoOrthographicRaw=vr,t.geoStereographic=function(){return tr(_r).scale(250).clipAngle(142)},t.geoStereographicRaw=_r,t.geoTransverseMercator=function(){var t=hr(wr),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)},t.geoTransverseMercatorRaw=wr,t.geoRotation=ne,t.geoStream=U,t.geoTransform=function(t){return{stream:Vn(t)}},Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("d3-array")):"function"==typeof define&&define.amd?define(["exports","d3-array"],i):i(r.d3=r.d3||{},r.d3)},{"d3-array":217}],230:[function(t,e,n){var r,i;r=this,i=function(t){"use strict";function e(t,e){return t.parent===e.parent?1:2}function n(t,e){return t+e.x}function r(t,e){return Math.max(t,e.y)}function i(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function o(t,e){var n,r,i,o,u,f=new c(t),h=+t.value&&(f.value=t.value),l=[f];for(null==e&&(e=a);n=l.pop();)if(h&&(n.value=+n.data.value),(i=e(n.data))&&(u=i.length))for(n.children=new Array(u),o=u-1;o>=0;--o)l.push(r=n.children[o]=new c(i[o])),r.parent=n,r.depth=n.depth+1;return f.eachBefore(s)}function a(t){return t.children}function u(t){t.data=t.data.data}function s(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function c(t){this.data=t,this.depth=this.height=0,this.parent=null}c.prototype=o.prototype={constructor:c,count:function(){return this.eachAfter(i)},each:function(t){var e,n,r,i,o=this,a=[o];do{for(e=a.reverse(),a=[];o=e.pop();)if(t(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r])}while(a.length);return this},eachAfter:function(t){for(var e,n,r,i=this,o=[i],a=[];i=o.pop();)if(a.push(i),e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n]);for(;i=a.pop();)t(i);return this},eachBefore:function(t){for(var e,n,r=this,i=[r];r=i.pop();)if(t(r),e=r.children)for(n=e.length-1;n>=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each(function(e){t.push(e)}),t},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return o(this).eachBefore(u)}};var f=Array.prototype.slice;var h=function(t){for(var e,n,r=0,i=(t=function(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}(f.call(t))).length,o=[];r<i;)e=t[r],n&&p(n,e)?++r:(n=g(o=l(o,e)),r=0);return n};function l(t,e){var n,r;if(b(e,t))return[e];for(n=0;n<t.length;++n)if(d(e,t[n])&&b(y(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(d(y(t[n],t[r]),e)&&d(y(t[n],e),t[r])&&d(y(t[r],e),t[n])&&b(m(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function d(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function p(t,e){var n=t.r-e.r+1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function b(t,e){for(var n=0;n<e.length;++n)if(!p(t,e[n]))return!1;return!0}function g(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return y(t[0],t[1]);case 3:return m(t[0],t[1],t[2])}var e}function y(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,u=e.r,s=o-n,c=a-r,f=u-i,h=Math.sqrt(s*s+c*c);return{x:(n+o+s/h*f)/2,y:(r+a+c/h*f)/2,r:(h+i+u)/2}}function m(t,e,n){var r=t.x,i=t.y,o=t.r,a=e.x,u=e.y,s=e.r,c=n.x,f=n.y,h=n.r,l=r-a,d=r-c,p=i-u,b=i-f,g=s-o,y=h-o,m=r*r+i*i-o*o,v=m-a*a-u*u+s*s,_=m-c*c-f*f+h*h,w=d*p-l*b,x=(p*_-b*v)/(2*w)-r,A=(b*g-p*y)/w,E=(d*v-l*_)/(2*w)-i,M=(l*y-d*g)/w,C=A*A+M*M-1,S=2*(o+x*A+E*M),B=x*x+E*E-o*o,k=-(C?(S+Math.sqrt(S*S-4*C*B))/(2*C):B/S);return{x:r+x+A*k,y:i+E+M*k,r:k}}function v(t,e,n){var r=t.x,i=t.y,o=e.r+n.r,a=t.r+n.r,u=e.x-r,s=e.y-i,c=u*u+s*s;if(c){var f=.5+((a*=a)-(o*=o))/(2*c),h=Math.sqrt(Math.max(0,2*o*(a+c)-(a-=c)*a-o*o))/(2*c);n.x=r+f*u+h*s,n.y=i+f*s-h*u}else n.x=r+a,n.y=i}function _(t,e){var n=e.x-t.x,r=e.y-t.y,i=t.r+e.r;return i*i-1e-6>n*n+r*r}function w(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function x(t){this._=t,this.next=null,this.previous=null}function A(t){if(!(i=t.length))return 0;var e,n,r,i,o,a,u,s,c,f,l;if((e=t[0]).x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;v(n,e,r=t[2]),e=new x(e),n=new x(n),r=new x(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(u=3;u<i;++u){v(e._,n._,r=t[u]),r=new x(r),s=n.next,c=e.previous,f=n._.r,l=e._.r;do{if(f<=l){if(_(s._,r._)){n=s,e.next=n,n.previous=e,--u;continue t}f+=s._.r,s=s.next}else{if(_(c._,r._)){(e=c).next=n,n.previous=e,--u;continue t}l+=c._.r,c=c.previous}}while(s!==c.next);for(r.previous=e,r.next=n,e.next=n.previous=n=r,o=w(e);(r=r.next)!==n;)(a=w(r))<o&&(e=r,o=a);n=e.next}for(e=[n._],r=n;(r=r.next)!==n;)e.push(r._);for(r=h(e),u=0;u<i;++u)(e=t[u]).x-=r.x,e.y-=r.y;return r.r}function E(t){if("function"!=typeof t)throw new Error;return t}function M(){return 0}var C=function(t){return function(){return t}};function S(t){return Math.sqrt(t.value)}function B(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function k(t,e){return function(n){if(r=n.children){var r,i,o,a=r.length,u=t(n)*e||0;if(u)for(i=0;i<a;++i)r[i].r+=u;if(o=A(r),u)for(i=0;i<a;++i)r[i].r-=u;n.r=o+u}}}function I(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}var F=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},D=function(t,e,n,r,i){for(var o,a=t.children,u=-1,s=a.length,c=t.value&&(r-e)/t.value;++u<s;)(o=a[u]).y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*c},T="$",N={depth:-1},j={};function R(t){return t.id}function O(t){return t.parentId}function L(t,e){return t.parent===e.parent?1:2}function U(t){var e=t.children;return e?e[0]:t.t}function P(t){var e=t.children;return e?e[e.length-1]:t.t}function H(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function z(t,e,n){return t.a.parent===e.parent?t.a:n}function V(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}V.prototype=Object.create(c.prototype);var X=function(t,e,n,r,i){for(var o,a=t.children,u=-1,s=a.length,c=t.value&&(i-n)/t.value;++u<s;)(o=a[u]).x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*c},q=(1+Math.sqrt(5))/2;function W(t,e,n,r,i,o){for(var a,u,s,c,f,h,l,d,p,b,g,y=[],m=e.children,v=0,_=0,w=m.length,x=e.value;v<w;){s=i-n,c=o-r;do{f=m[_++].value}while(!f&&_<w);for(h=l=f,g=f*f*(b=Math.max(c/s,s/c)/(x*t)),p=Math.max(l/g,g/h);_<w;++_){if(f+=u=m[_].value,u<h&&(h=u),u>l&&(l=u),g=f*f*b,(d=Math.max(l/g,g/h))>p){f-=u;break}p=d}y.push(a={value:f,dice:s<c,children:m.slice(v,_)}),a.dice?D(a,n,r,i,x?r+=c*f/x:o):X(a,n,r,x?n+=s*f/x:i,o),x-=f,v=_}return y}var Y=function t(e){function n(t,n,r,i,o){W(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(q),Z=function t(e){function n(t,n,r,i,o){if((a=t._squarify)&&a.ratio===e)for(var a,u,s,c,f,h=-1,l=a.length,d=t.value;++h<l;){for(s=(u=a[h]).children,c=u.value=0,f=s.length;c<f;++c)u.value+=s[c].value;u.dice?D(u,n,r,i,r+=(o-r)*u.value/d):X(u,n,r,n+=(i-n)*u.value/d,o),d-=u.value}else t._squarify=a=W(e,t,n,r,i,o),a.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(q);t.cluster=function(){var t=e,i=1,o=1,a=!1;function u(e){var u,s=0;e.eachAfter(function(e){var i=e.children;i?(e.x=function(t){return t.reduce(n,0)/t.length}(i),e.y=function(t){return 1+t.reduce(r,0)}(i)):(e.x=u?s+=t(e,u):0,e.y=0,u=e)});var c=function(t){for(var e;e=t.children;)t=e[0];return t}(e),f=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(e),h=c.x-t(c,f)/2,l=f.x+t(f,c)/2;return e.eachAfter(a?function(t){t.x=(t.x-e.x)*i,t.y=(e.y-t.y)*o}:function(t){t.x=(t.x-h)/(l-h)*i,t.y=(1-(e.y?t.y/e.y:1))*o})}return u.separation=function(e){return arguments.length?(t=e,u):t},u.size=function(t){return arguments.length?(a=!1,i=+t[0],o=+t[1],u):a?null:[i,o]},u.nodeSize=function(t){return arguments.length?(a=!0,i=+t[0],o=+t[1],u):a?[i,o]:null},u},t.hierarchy=o,t.pack=function(){var t=null,e=1,n=1,r=M;function i(i){return i.x=e/2,i.y=n/2,t?i.eachBefore(B(t)).eachAfter(k(r,.5)).eachBefore(I(1)):i.eachBefore(B(S)).eachAfter(k(M,1)).eachAfter(k(r,i.r/Math.min(e,n))).eachBefore(I(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=null==(n=e)?null:E(n),i):t;var n},i.size=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:C(+t),i):r},i},t.packSiblings=function(t){return A(t),t},t.packEnclose=h,t.partition=function(){var t=1,e=1,n=0,r=!1;function i(i){var o=i.height+1;return i.x0=i.y0=n,i.x1=t,i.y1=e/o,i.eachBefore(function(t,e){return function(r){r.children&&D(r,r.x0,t*(r.depth+1)/e,r.x1,t*(r.depth+2)/e);var i=r.x0,o=r.y0,a=r.x1-n,u=r.y1-n;a<i&&(i=a=(i+a)/2),u<o&&(o=u=(o+u)/2),r.x0=i,r.y0=o,r.x1=a,r.y1=u}}(e,o)),r&&i.eachBefore(F),i}return i.round=function(t){return arguments.length?(r=!!t,i):r},i.size=function(n){return arguments.length?(t=+n[0],e=+n[1],i):[t,e]},i.padding=function(t){return arguments.length?(n=+t,i):n},i},t.stratify=function(){var t=R,e=O;function n(n){var r,i,o,a,u,f,h,l=n.length,d=new Array(l),p={};for(i=0;i<l;++i)r=n[i],u=d[i]=new c(r),null!=(f=t(r,i,n))&&(f+="")&&(p[h=T+(u.id=f)]=h in p?j:u);for(i=0;i<l;++i)if(u=d[i],null!=(f=e(n[i],i,n))&&(f+="")){if(!(a=p[T+f]))throw new Error("missing: "+f);if(a===j)throw new Error("ambiguous: "+f);a.children?a.children.push(u):a.children=[u],u.parent=a}else{if(o)throw new Error("multiple roots");o=u}if(!o)throw new Error("no root");if(o.parent=N,o.eachBefore(function(t){t.depth=t.parent.depth+1,--l}).eachBefore(s),o.parent=null,l>0)throw new Error("cycle");return o}return n.id=function(e){return arguments.length?(t=E(e),n):t},n.parentId=function(t){return arguments.length?(e=E(t),n):e},n},t.tree=function(){var t=L,e=1,n=1,r=null;function i(i){var s=function(t){for(var e,n,r,i,o,a=new V(t,0),u=[a];e=u.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)u.push(n=e.children[i]=new V(r[i],i)),n.parent=e;return(a.parent=new V(null,0)).children=[a],a}(i);if(s.eachAfter(o),s.parent.m=-s.z,s.eachBefore(a),r)i.eachBefore(u);else{var c=i,f=i,h=i;i.eachBefore(function(t){t.x<c.x&&(c=t),t.x>f.x&&(f=t),t.depth>h.depth&&(h=t)});var l=c===f?1:t(c,f)/2,d=l-c.x,p=e/(f.x+l+d),b=n/(h.depth||1);i.eachBefore(function(t){t.x=(t.x+d)*p,t.y=t.depth*b})}return i}function o(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,o=e,a=e,u=n,s=o.parent.children[0],c=o.m,f=a.m,h=u.m,l=s.m;u=P(u),o=U(o),u&&o;)s=U(s),(a=P(a)).a=e,(i=u.z+h-o.z-c+t(u._,o._))>0&&(H(z(u,e,r),e,i),c+=i,f+=i),h+=u.m,c+=o.m,l+=s.m,f+=a.m;u&&!P(a)&&(a.t=u,a.m+=h-f),o&&!U(s)&&(s.t=o,s.m+=c-l,r=e)}return r}(e,i,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i},t.treemap=function(){var t=Y,e=!1,n=1,r=1,i=[0],o=M,a=M,u=M,s=M,c=M;function f(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(F),t}function h(e){var n=i[e.depth],r=e.x0+n,f=e.y0+n,h=e.x1-n,l=e.y1-n;h<r&&(r=h=(r+h)/2),l<f&&(f=l=(f+l)/2),e.x0=r,e.y0=f,e.x1=h,e.y1=l,e.children&&(n=i[e.depth+1]=o(e)/2,r+=c(e)-n,f+=a(e)-n,h-=u(e)-n,l-=s(e)-n,h<r&&(r=h=(r+h)/2),l<f&&(f=l=(f+l)/2),t(e,r,f,h,l))}return f.round=function(t){return arguments.length?(e=!!t,f):e},f.size=function(t){return arguments.length?(n=+t[0],r=+t[1],f):[n,r]},f.tile=function(e){return arguments.length?(t=E(e),f):t},f.padding=function(t){return arguments.length?f.paddingInner(t).paddingOuter(t):f.paddingInner()},f.paddingInner=function(t){return arguments.length?(o="function"==typeof t?t:C(+t),f):o},f.paddingOuter=function(t){return arguments.length?f.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):f.paddingTop()},f.paddingTop=function(t){return arguments.length?(a="function"==typeof t?t:C(+t),f):a},f.paddingRight=function(t){return arguments.length?(u="function"==typeof t?t:C(+t),f):u},f.paddingBottom=function(t){return arguments.length?(s="function"==typeof t?t:C(+t),f):s},f.paddingLeft=function(t){return arguments.length?(c="function"==typeof t?t:C(+t),f):c},f},t.treemapBinary=function(t,e,n,r,i){var o,a,u=t.children,s=u.length,c=new Array(s+1);for(c[0]=a=o=0;o<s;++o)c[o+1]=a+=u[o].value;!function t(e,n,r,i,o,a,s){if(e>=n-1){var f=u[e];return f.x0=i,f.y0=o,f.x1=a,void(f.y1=s)}for(var h=c[e],l=r/2+h,d=e+1,p=n-1;d<p;){var b=d+p>>>1;c[b]<l?d=b+1:p=b}l-c[d-1]<c[d]-l&&e+1<d&&--d;var g=c[d]-h,y=r-g;if(a-i>s-o){var m=(i*y+a*g)/r;t(e,d,g,i,o,m,s),t(d,n,y,m,o,a,s)}else{var v=(o*y+s*g)/r;t(e,d,g,i,o,a,v),t(d,n,y,i,v,a,s)}}(0,s,t.value,e,n,r,i)},t.treemapDice=D,t.treemapSlice=X,t.treemapSliceDice=function(t,e,n,r,i){(1&t.depth?X:D)(t,e,n,r,i)},t.treemapSquarify=Y,t.treemapResquarify=Z,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n):"function"==typeof define&&define.amd?define(["exports"],i):i(r.d3=r.d3||{})},{}],231:[function(t,e,n){var r,i;r=this,i=function(t,e){"use strict";function n(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}var r=function(t){var e=t.length-1;return function(r){var i=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),o=t[i],a=t[i+1],u=i>0?t[i-1]:2*o-a,s=i<e-1?t[i+2]:2*a-o;return n((r-i/e)*e,u,o,a,s)}},i=function(t){var e=t.length;return function(r){var i=Math.floor(((r%=1)<0?++r:r)*e),o=t[(i+e-1)%e],a=t[i%e],u=t[(i+1)%e],s=t[(i+2)%e];return n((r-i/e)*e,o,a,u,s)}},o=function(t){return function(){return t}};function a(t,e){return function(n){return t+n*e}}function u(t,e){var n=e-t;return n?a(t,n>180||n<-180?n-360*Math.round(n/360):n):o(isNaN(t)?e:t)}function s(t){return 1==(t=+t)?c:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):o(isNaN(e)?n:e)}}function c(t,e){var n=e-t;return n?a(t,n):o(isNaN(t)?e:t)}var f=function t(n){var r=s(n);function i(t,n){var i=r((t=e.rgb(t)).r,(n=e.rgb(n)).r),o=r(t.g,n.g),a=r(t.b,n.b),u=c(t.opacity,n.opacity);return function(e){return t.r=i(e),t.g=o(e),t.b=a(e),t.opacity=u(e),t+""}}return i.gamma=t,i}(1);function h(t){return function(n){var r,i,o=n.length,a=new Array(o),u=new Array(o),s=new Array(o);for(r=0;r<o;++r)i=e.rgb(n[r]),a[r]=i.r||0,u[r]=i.g||0,s[r]=i.b||0;return a=t(a),u=t(u),s=t(s),i.opacity=1,function(t){return i.r=a(t),i.g=u(t),i.b=s(t),i+""}}}var l=h(r),d=h(i),p=function(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=M(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}},b=function(t,e){var n=new Date;return e-=t=+t,function(r){return n.setTime(t+e*r),n}},g=function(t,e){return e-=t=+t,function(n){return t+e*n}},y=function(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=M(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},m=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,v=new RegExp(m.source,"g");var _,w,x,A,E=function(t,e){var n,r,i,o=m.lastIndex=v.lastIndex=0,a=-1,u=[],s=[];for(t+="",e+="";(n=m.exec(t))&&(r=v.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,s.push({i:a,x:g(n,r)})),o=v.lastIndex;return o<e.length&&(i=e.slice(o),u[a]?u[a]+=i:u[++a]=i),u.length<2?s[0]?function(t){return function(e){return t(e)+""}}(s[0].x):function(t){return function(){return t}}(e):(e=s.length,function(t){for(var n,r=0;r<e;++r)u[(n=s[r]).i]=n.x(t);return u.join("")})},M=function(t,n){var r,i=typeof n;return null==n||"boolean"===i?o(n):("number"===i?g:"string"===i?(r=e.color(n))?(n=r,f):E:n instanceof e.color?f:n instanceof Date?b:Array.isArray(n)?p:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?y:g)(t,n)},C=180/Math.PI,S={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},B=function(t,e,n,r,i,o){var a,u,s;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(s=t*n+e*r)&&(n-=t*s,r-=e*s),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,s/=u),t*r<e*n&&(t=-t,e=-e,s=-s,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*C,skewX:Math.atan(s)*C,scaleX:a,scaleY:u}};function k(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,a){var u=[],s=[];return o=t(o),a=t(a),function(t,r,i,o,a,u){if(t!==i||r!==o){var s=a.push("translate(",null,e,null,n);u.push({i:s-4,x:g(t,i)},{i:s-2,x:g(r,o)})}else(i||o)&&a.push("translate("+i+e+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,u,s),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:g(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,u,s),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:g(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,u,s),function(t,e,n,r,o,a){if(t!==n||e!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:g(t,n)},{i:u-2,x:g(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,s),o=a=null,function(t){for(var e,n=-1,r=s.length;++n<r;)u[(e=s[n]).i]=e.x(t);return u.join("")}}}var I=k(function(t){return"none"===t?S:(_||(_=document.createElement("DIV"),w=document.documentElement,x=document.defaultView),_.style.transform=t,t=x.getComputedStyle(w.appendChild(_),null).getPropertyValue("transform"),w.removeChild(_),t=t.slice(7,-1).split(","),B(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),F=k(function(t){return null==t?S:(A||(A=document.createElementNS("http://www.w3.org/2000/svg","g")),A.setAttribute("transform",t),(t=A.transform.baseVal.consolidate())?(t=t.matrix,B(t.a,t.b,t.c,t.d,t.e,t.f)):S)},", ",")",")"),D=Math.SQRT2;function T(t){return((t=Math.exp(t))+1/t)/2}function N(t){return function(n,r){var i=t((n=e.hsl(n)).h,(r=e.hsl(r)).h),o=c(n.s,r.s),a=c(n.l,r.l),u=c(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=o(t),n.l=a(t),n.opacity=u(t),n+""}}}var j=N(u),R=N(c);function O(t){return function(n,r){var i=t((n=e.hcl(n)).h,(r=e.hcl(r)).h),o=c(n.c,r.c),a=c(n.l,r.l),u=c(n.opacity,r.opacity);return function(t){return n.h=i(t),n.c=o(t),n.l=a(t),n.opacity=u(t),n+""}}}var L=O(u),U=O(c);function P(t){return function n(r){function i(n,i){var o=t((n=e.cubehelix(n)).h,(i=e.cubehelix(i)).h),a=c(n.s,i.s),u=c(n.l,i.l),s=c(n.opacity,i.opacity);return function(t){return n.h=o(t),n.s=a(t),n.l=u(Math.pow(t,r)),n.opacity=s(t),n+""}}return r=+r,i.gamma=n,i}(1)}var H=P(u),z=P(c);t.interpolate=M,t.interpolateArray=p,t.interpolateBasis=r,t.interpolateBasisClosed=i,t.interpolateDate=b,t.interpolateNumber=g,t.interpolateObject=y,t.interpolateRound=function(t,e){return e-=t=+t,function(n){return Math.round(t+e*n)}},t.interpolateString=E,t.interpolateTransformCss=I,t.interpolateTransformSvg=F,t.interpolateZoom=function(t,e){var n,r,i=t[0],o=t[1],a=t[2],u=e[0],s=e[1],c=e[2],f=u-i,h=s-o,l=f*f+h*h;if(l<1e-12)r=Math.log(c/a)/D,n=function(t){return[i+t*f,o+t*h,a*Math.exp(D*t*r)]};else{var d=Math.sqrt(l),p=(c*c-a*a+4*l)/(2*a*2*d),b=(c*c-a*a-4*l)/(2*c*2*d),g=Math.log(Math.sqrt(p*p+1)-p),y=Math.log(Math.sqrt(b*b+1)-b);r=(y-g)/D,n=function(t){var e,n=t*r,u=T(g),s=a/(2*d)*(u*(e=D*n+g,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(g));return[i+s*f,o+s*h,a*u/T(D*n+g)]}}return n.duration=1e3*r,n},t.interpolateRgb=f,t.interpolateRgbBasis=l,t.interpolateRgbBasisClosed=d,t.interpolateHsl=j,t.interpolateHslLong=R,t.interpolateLab=function(t,n){var r=c((t=e.lab(t)).l,(n=e.lab(n)).l),i=c(t.a,n.a),o=c(t.b,n.b),a=c(t.opacity,n.opacity);return function(e){return t.l=r(e),t.a=i(e),t.b=o(e),t.opacity=a(e),t+""}},t.interpolateHcl=L,t.interpolateHclLong=U,t.interpolateCubehelix=H,t.interpolateCubehelixLong=z,t.quantize=function(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n},Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("d3-color")):"function"==typeof define&&define.amd?define(["exports","d3-color"],i):i(r.d3=r.d3||{},r.d3)},{"d3-color":222}],232:[function(t,e,n){var r,i;r=this,i=function(t){"use strict";var e=Math.PI,n=2*e,r=n-1e-6;function i(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function o(){return new i}i.prototype=o.prototype={constructor:i,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,r,i,o){t=+t,n=+n,r=+r,i=+i,o=+o;var a=this._x1,u=this._y1,s=r-t,c=i-n,f=a-t,h=u-n,l=f*f+h*h;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(l>1e-6)if(Math.abs(h*s-c*f)>1e-6&&o){var d=r-a,p=i-u,b=s*s+c*c,g=d*d+p*p,y=Math.sqrt(b),m=Math.sqrt(l),v=o*Math.tan((e-Math.acos((b+l-g)/(2*y*m)))/2),_=v/m,w=v/y;Math.abs(_-1)>1e-6&&(this._+="L"+(t+_*f)+","+(n+_*h)),this._+="A"+o+","+o+",0,0,"+ +(h*d>f*p)+","+(this._x1=t+w*s)+","+(this._y1=n+w*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,i,o,a,u,s){t=+t,i=+i;var c=(o=+o)*Math.cos(a),f=o*Math.sin(a),h=t+c,l=i+f,d=1^s,p=s?a-u:u-a;if(o<0)throw new Error("negative radius: "+o);null===this._x1?this._+="M"+h+","+l:(Math.abs(this._x1-h)>1e-6||Math.abs(this._y1-l)>1e-6)&&(this._+="L"+h+","+l),o&&(p<0&&(p=p%n+n),p>r?this._+="A"+o+","+o+",0,1,"+d+","+(t-c)+","+(i-f)+"A"+o+","+o+",0,1,"+d+","+(this._x1=h)+","+(this._y1=l):p>1e-6&&(this._+="A"+o+","+o+",0,"+ +(p>=e)+","+d+","+(this._x1=t+o*Math.cos(u))+","+(this._y1=i+o*Math.sin(u))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},t.path=o,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n):"function"==typeof define&&define.amd?define(["exports"],i):i(r.d3=r.d3||{})},{}],233:[function(t,e,n){var r,i;r=this,i=function(t){"use strict";var e=function(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])};function n(t,e){return t[0]-e[0]||t[1]-e[1]}function r(t){for(var n=t.length,r=[0,1],i=2,o=2;o<n;++o){for(;i>1&&e(t[r[i-2]],t[r[i-1]],t[o])<=0;)--i;r[i++]=o}return r.slice(0,i)}t.polygonArea=function(t){for(var e,n=-1,r=t.length,i=t[r-1],o=0;++n<r;)e=i,i=t[n],o+=e[1]*i[0]-e[0]*i[1];return o/2},t.polygonCentroid=function(t){for(var e,n,r=-1,i=t.length,o=0,a=0,u=t[i-1],s=0;++r<i;)e=u,u=t[r],s+=n=e[0]*u[1]-u[0]*e[1],o+=(e[0]+u[0])*n,a+=(e[1]+u[1])*n;return[o/(s*=3),a/s]},t.polygonHull=function(t){if((i=t.length)<3)return null;var e,i,o=new Array(i),a=new Array(i);for(e=0;e<i;++e)o[e]=[+t[e][0],+t[e][1],e];for(o.sort(n),e=0;e<i;++e)a[e]=[o[e][0],-o[e][1]];var u=r(o),s=r(a),c=s[0]===u[0],f=s[s.length-1]===u[u.length-1],h=[];for(e=u.length-1;e>=0;--e)h.push(t[o[u[e]][2]]);for(e=+c;e<s.length-f;++e)h.push(t[o[s[e]][2]]);return h},t.polygonContains=function(t,e){for(var n,r,i=t.length,o=t[i-1],a=e[0],u=e[1],s=o[0],c=o[1],f=!1,h=0;h<i;++h)n=(o=t[h])[0],(r=o[1])>u!=c>u&&a<(s-n)*(u-r)/(c-r)+n&&(f=!f),s=n,c=r;return f},t.polygonLength=function(t){for(var e,n,r=-1,i=t.length,o=t[i-1],a=o[0],u=o[1],s=0;++r<i;)e=a,n=u,e-=a=(o=t[r])[0],n-=u=o[1],s+=Math.sqrt(e*e+n*n);return s},Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n):"function"==typeof define&&define.amd?define(["exports"],i):i(r.d3=r.d3||{})},{}],234:[function(t,e,n){var r,i;r=this,i=function(t){"use strict";function e(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,o,a,u,s,c,f,h,l,d=t._root,p={data:r},b=t._x0,g=t._y0,y=t._x1,m=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((c=e>=(o=(b+y)/2))?b=o:y=o,(f=n>=(a=(g+m)/2))?g=a:m=a,i=d,!(d=d[h=f<<1|c]))return i[h]=p,t;if(u=+t._x.call(null,d.data),s=+t._y.call(null,d.data),e===u&&n===s)return p.next=d,i?i[h]=p:t._root=p,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(c=e>=(o=(b+y)/2))?b=o:y=o,(f=n>=(a=(g+m)/2))?g=a:m=a}while((h=f<<1|c)==(l=(s>=a)<<1|u>=o));return i[l]=d,i[h]=p,t}var n=function(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i};function r(t){return t[0]}function i(t){return t[1]}function o(t,e,n){var o=new a(null==e?r:e,null==n?i:n,NaN,NaN,NaN,NaN);return null==t?o:o.addAll(t)}function a(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function u(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var s=o.prototype=a.prototype;s.copy=function(){var t,e,n=new a(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=u(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=u(e));return n},s.add=function(t){var n=+this._x.call(null,t),r=+this._y.call(null,t);return e(this.cover(n,r),n,r,t)},s.addAll=function(t){var n,r,i,o,a=t.length,u=new Array(a),s=new Array(a),c=1/0,f=1/0,h=-1/0,l=-1/0;for(r=0;r<a;++r)isNaN(i=+this._x.call(null,n=t[r]))||isNaN(o=+this._y.call(null,n))||(u[r]=i,s[r]=o,i<c&&(c=i),i>h&&(h=i),o<f&&(f=o),o>l&&(l=o));for(h<c&&(c=this._x0,h=this._x1),l<f&&(f=this._y0,l=this._y1),this.cover(c,f).cover(h,l),r=0;r<a;++r)e(this,u[r],s[r],t[r]);return this},s.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,o=(r=Math.floor(e))+1;else{if(!(n>t||t>i||r>e||e>o))return this;var a,u,s=i-n,c=this._root;switch(u=(e<(r+o)/2)<<1|t<(n+i)/2){case 0:do{(a=new Array(4))[u]=c,c=a}while(o=r+(s*=2),t>(i=n+s)||e>o);break;case 1:do{(a=new Array(4))[u]=c,c=a}while(o=r+(s*=2),(n=i-s)>t||e>o);break;case 2:do{(a=new Array(4))[u]=c,c=a}while(r=o-(s*=2),t>(i=n+s)||r>e);break;case 3:do{(a=new Array(4))[u]=c,c=a}while(r=o-(s*=2),(n=i-s)>t||r>e)}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},s.data=function(){var t=[];return this.visit(function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)}),t},s.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},s.find=function(t,e,r){var i,o,a,u,s,c,f,h=this._x0,l=this._y0,d=this._x1,p=this._y1,b=[],g=this._root;for(g&&b.push(new n(g,h,l,d,p)),null==r?r=1/0:(h=t-r,l=e-r,d=t+r,p=e+r,r*=r);c=b.pop();)if(!(!(g=c.node)||(o=c.x0)>d||(a=c.y0)>p||(u=c.x1)<h||(s=c.y1)<l))if(g.length){var y=(o+u)/2,m=(a+s)/2;b.push(new n(g[3],y,m,u,s),new n(g[2],o,m,y,s),new n(g[1],y,a,u,m),new n(g[0],o,a,y,m)),(f=(e>=m)<<1|t>=y)&&(c=b[b.length-1],b[b.length-1]=b[b.length-1-f],b[b.length-1-f]=c)}else{var v=t-+this._x.call(null,g.data),_=e-+this._y.call(null,g.data),w=v*v+_*_;if(w<r){var x=Math.sqrt(r=w);h=t-x,l=e-x,d=t+x,p=e+x,i=g.data}}return i},s.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t)))return this;var e,n,r,i,o,a,u,s,c,f,h,l,d=this._root,p=this._x0,b=this._y0,g=this._x1,y=this._y1;if(!d)return this;if(d.length)for(;;){if((c=o>=(u=(p+g)/2))?p=u:g=u,(f=a>=(s=(b+y)/2))?b=s:y=s,e=d,!(d=d[h=f<<1|c]))return this;if(!d.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,l=h)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[h]=i:delete e[h],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[l]=d:this._root=d),this):(this._root=i,this)},s.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},s.root=function(){return this._root},s.size=function(){var t=0;return this.visit(function(e){if(!e.length)do{++t}while(e=e.next)}),t},s.visit=function(t){var e,r,i,o,a,u,s=[],c=this._root;for(c&&s.push(new n(c,this._x0,this._y0,this._x1,this._y1));e=s.pop();)if(!t(c=e.node,i=e.x0,o=e.y0,a=e.x1,u=e.y1)&&c.length){var f=(i+a)/2,h=(o+u)/2;(r=c[3])&&s.push(new n(r,f,h,a,u)),(r=c[2])&&s.push(new n(r,i,h,f,u)),(r=c[1])&&s.push(new n(r,f,o,a,h)),(r=c[0])&&s.push(new n(r,i,o,f,h))}return this},s.visitAfter=function(t){var e,r=[],i=[];for(this._root&&r.push(new n(this._root,this._x0,this._y0,this._x1,this._y1));e=r.pop();){var o=e.node;if(o.length){var a,u=e.x0,s=e.y0,c=e.x1,f=e.y1,h=(u+c)/2,l=(s+f)/2;(a=o[0])&&r.push(new n(a,u,s,h,l)),(a=o[1])&&r.push(new n(a,h,s,c,l)),(a=o[2])&&r.push(new n(a,u,l,h,f)),(a=o[3])&&r.push(new n(a,h,l,c,f))}i.push(e)}for(;e=i.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},s.x=function(t){return arguments.length?(this._x=t,this):this._x},s.y=function(t){return arguments.length?(this._y=t,this):this._y},t.quadtree=o,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n):"function"==typeof define&&define.amd?define(["exports"],i):i(r.d3=r.d3||{})},{}],235:[function(t,e,n){var r,i;r=this,i=function(t){"use strict";var e=[].slice,n={};function r(t){this._size=t,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function i(t){if(!t._start)try{!function(t){for(;t._start=t._waiting&&t._active<t._size;){var e=t._ended+t._active,r=t._tasks[e],i=r.length-1,a=r[i];r[i]=o(t,e),--t._waiting,++t._active,r=a.apply(null,r),t._tasks[e]&&(t._tasks[e]=r||n)}}(t)}catch(e){if(t._tasks[t._ended+t._active-1])a(t,e);else if(!t._data)throw e}}function o(t,e){return function(n,r){t._tasks[e]&&(--t._active,++t._ended,t._tasks[e]=null,null==t._error&&(null!=n?a(t,n):(t._data[e]=r,t._waiting?i(t):u(t))))}}function a(t,e){var n,r=t._tasks.length;for(t._error=e,t._data=void 0,t._waiting=NaN;--r>=0;)if((n=t._tasks[r])&&(t._tasks[r]=null,n.abort))try{n.abort()}catch(e){}t._active=NaN,u(t)}function u(t){if(!t._active&&t._call){var e=t._data;t._data=void 0,t._call(t._error,e)}}function s(t){if(null==t)t=1/0;else if(!((t=+t)>=1))throw new Error("invalid concurrency");return new r(t)}r.prototype=s.prototype={constructor:r,defer:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var n=e.call(arguments,1);return n.push(t),++this._waiting,this._tasks.push(n),i(this),this},abort:function(){return null==this._error&&a(this,new Error("abort")),this},await:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(e,n){t.apply(null,[e].concat(n))},u(this),this},awaitAll:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=t,u(this),this}},t.queue=s,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n):"function"==typeof define&&define.amd?define(["exports"],i):i(r.d3=r.d3||{})},{}],236:[function(t,e,n){var r,i;r=this,i=function(t){"use strict";var e=function(){return Math.random()},n=function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,1===arguments.length?(n=t,t=0):n-=t,function(){return e()*n+t}}return n.source=t,n}(e),r=function t(e){function n(t,n){var r,i;return t=null==t?0:+t,n=null==n?1:+n,function(){var o;if(null!=r)o=r,r=null;else do{r=2*e()-1,o=2*e()-1,i=r*r+o*o}while(!i||i>1);return t+n*o*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(e),i=function t(e){function n(){var t=r.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(e),o=function t(e){function n(t){return function(){for(var n=0,r=0;r<t;++r)n+=e();return n}}return n.source=t,n}(e),a=function t(e){function n(t){var n=o.source(e)(t);return function(){return n()/t}}return n.source=t,n}(e),u=function t(e){function n(t){return function(){return-Math.log(1-e())/t}}return n.source=t,n}(e);t.randomUniform=n,t.randomNormal=r,t.randomLogNormal=i,t.randomBates=a,t.randomIrwinHall=o,t.randomExponential=u,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n):"function"==typeof define&&define.amd?define(["exports"],i):i(r.d3=r.d3||{})},{}],237:[function(t,e,n){"use strict";var r=t("xmlhttprequest").XMLHttpRequest;Object.defineProperty(n,"__esModule",{value:!0});var i=t("d3-collection"),o=t("d3-dispatch"),a=t("d3-dsv"),u=function(t,e){var n,a,u,s,c=o.dispatch("beforesend","progress","load","error"),f=i.map(),h=new r,l=null,d=null,p=0;function b(t){var e,r=h.status;if(!r&&function(t){var e=t.responseType;return e&&"text"!==e?t.response:t.responseText}(h)||r>=200&&r<300||304===r){if(u)try{e=u.call(n,h)}catch(t){return void c.call("error",n,t)}else e=h;c.call("load",n,e)}else c.call("error",n,t)}if("undefined"==typeof XDomainRequest||"withCredentials"in h||!/^(http(s)?:)?\/\//.test(t)||(h=new XDomainRequest),"onload"in h?h.onload=h.onerror=h.ontimeout=b:h.onreadystatechange=function(t){h.readyState>3&&b(t)},h.onprogress=function(t){c.call("progress",n,t)},n={header:function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?f.get(t):(null==e?f.remove(t):f.set(t,e+""),n)},mimeType:function(t){return arguments.length?(a=null==t?null:t+"",n):a},responseType:function(t){return arguments.length?(s=t,n):s},timeout:function(t){return arguments.length?(p=+t,n):p},user:function(t){return arguments.length<1?l:(l=null==t?null:t+"",n)},password:function(t){return arguments.length<1?d:(d=null==t?null:t+"",n)},response:function(t){return u=t,n},get:function(t,e){return n.send("GET",t,e)},post:function(t,e){return n.send("POST",t,e)},send:function(e,r,i){return h.open(e,t,!0,l,d),null==a||f.has("accept")||f.set("accept",a+",*/*"),h.setRequestHeader&&f.each(function(t,e){h.setRequestHeader(e,t)}),null!=a&&h.overrideMimeType&&h.overrideMimeType(a),null!=s&&(h.responseType=s),p>0&&(h.timeout=p),null==i&&"function"==typeof r&&(i=r,r=null),null!=i&&1===i.length&&(i=function(t){return function(e,n){t(null==e?n:null)}}(i)),null!=i&&n.on("error",i).on("load",function(t){i(null,t)}),c.call("beforesend",n,h),h.send(null==r?null:r),n},abort:function(){return h.abort(),n},on:function(){var t=c.on.apply(c,arguments);return t===c?n:t}},null!=e){if("function"!=typeof e)throw new Error("invalid callback: "+e);return n.get(e)}return n};var s=function(t,e){return function(n,r){var i=u(n).mimeType(t).response(e);if(null!=r){if("function"!=typeof r)throw new Error("invalid callback: "+r);return i.get(r)}return i}},c=s("text/html",function(t){return document.createRange().createContextualFragment(t.responseText)}),f=s("application/json",function(t){return JSON.parse(t.responseText)}),h=s("text/plain",function(t){return t.responseText}),l=s("application/xml",function(t){var e=t.responseXML;if(!e)throw new Error("parse error");return e}),d=function(t,e){return function(n,r,i){arguments.length<3&&(i=r,r=null);var o=u(n).mimeType(t);return o.row=function(t){return arguments.length?o.response(function(t,e){return function(n){return t(n.responseText,e)}}(e,r=t)):r},o.row(r),i?o.get(i):o}};var p=d("text/csv",a.csvParse),b=d("text/tab-separated-values",a.tsvParse);n.request=u,n.html=c,n.json=f,n.text=h,n.xml=l,n.csv=p,n.tsv=b},{"d3-collection":221,"d3-dispatch":223,"d3-dsv":225,xmlhttprequest:285}],238:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i,o,a,u){"use strict";var s=Array.prototype,c=s.map,f=s.slice,h={name:"implicit"};function l(t){var e=n.map(),r=[],i=h;function o(n){var o=n+"",a=e.get(o);if(!a){if(i!==h)return i;e.set(o,a=r.push(n))}return t[(a-1)%t.length]}return t=null==t?[]:f.call(t),o.domain=function(t){if(!arguments.length)return r.slice();r=[],e=n.map();for(var i,a,u=-1,s=t.length;++u<s;)e.has(a=(i=t[u])+"")||e.set(a,r.push(i));return o},o.range=function(e){return arguments.length?(t=f.call(e),o):t.slice()},o.unknown=function(t){return arguments.length?(i=t,o):i},o.copy=function(){return l().domain(r).range(t).unknown(i)},o}function d(){var t,n,r=l().unknown(void 0),i=r.domain,o=r.range,a=[0,1],u=!1,s=0,c=0,f=.5;function h(){var r=i().length,h=a[1]<a[0],l=a[h-0],d=a[1-h];t=(d-l)/Math.max(1,r-s+2*c),u&&(t=Math.floor(t)),l+=(d-l-t*(r-s))*f,n=t*(1-s),u&&(l=Math.round(l),n=Math.round(n));var p=e.range(r).map(function(e){return l+t*e});return o(h?p.reverse():p)}return delete r.unknown,r.domain=function(t){return arguments.length?(i(t),h()):i()},r.range=function(t){return arguments.length?(a=[+t[0],+t[1]],h()):a.slice()},r.rangeRound=function(t){return a=[+t[0],+t[1]],u=!0,h()},r.bandwidth=function(){return n},r.step=function(){return t},r.round=function(t){return arguments.length?(u=!!t,h()):u},r.padding=function(t){return arguments.length?(s=c=Math.max(0,Math.min(1,t)),h()):s},r.paddingInner=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),h()):s},r.paddingOuter=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),h()):c},r.align=function(t){return arguments.length?(f=Math.max(0,Math.min(1,t)),h()):f},r.copy=function(){return d().domain(i()).range(a).round(u).paddingInner(s).paddingOuter(c).align(f)},h()}var p=function(t){return function(){return t}},b=function(t){return+t},g=[0,1];function y(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:p(e)}function m(t,e,n,r){var i=t[0],o=t[1],a=e[0],u=e[1];return o<i?(i=n(o,i),a=r(u,a)):(i=n(i,o),a=r(a,u)),function(t){return a(i(t))}}function v(t,n,r,i){var o=Math.min(t.length,n.length)-1,a=new Array(o),u=new Array(o),s=-1;for(t[o]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++s<o;)a[s]=r(t[s],t[s+1]),u[s]=i(n[s],n[s+1]);return function(n){var r=e.bisect(t,n,1,o)-1;return u[r](a[r](n))}}function _(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function w(t,e){var n,i,o,a=g,u=g,s=r.interpolate,h=!1;function l(){return n=Math.min(a.length,u.length)>2?v:m,i=o=null,d}function d(e){return(i||(i=n(a,u,h?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=e?0:t>=n?1:r(t)}}}(t):t,s)))(+e)}return d.invert=function(t){return(o||(o=n(u,a,y,h?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:r(t)}}}(e):e)))(+t)},d.domain=function(t){return arguments.length?(a=c.call(t,b),l()):a.slice()},d.range=function(t){return arguments.length?(u=f.call(t),l()):u.slice()},d.rangeRound=function(t){return u=f.call(t),s=r.interpolateRound,l()},d.clamp=function(t){return arguments.length?(h=!!t,l()):h},d.interpolate=function(t){return arguments.length?(s=t,l()):s},l()}var x=function(t,n,r){var o,a=t[0],u=t[t.length-1],s=e.tickStep(a,u,null==n?10:n);switch((r=i.formatSpecifier(null==r?",f":r)).type){case"s":var c=Math.max(Math.abs(a),Math.abs(u));return null!=r.precision||isNaN(o=i.precisionPrefix(s,c))||(r.precision=o),i.formatPrefix(r,c);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=i.precisionRound(s,Math.max(Math.abs(a),Math.abs(u))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=i.precisionFixed(s))||(r.precision=o-2*("%"===r.type))}return i.format(r)};function A(t){var n=t.domain;return t.ticks=function(t){var r=n();return e.ticks(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,e){return x(n(),t,e)},t.nice=function(r){null==r&&(r=10);var i,o=n(),a=0,u=o.length-1,s=o[a],c=o[u];return c<s&&(i=s,s=c,c=i,i=a,a=u,u=i),(i=e.tickIncrement(s,c,r))>0?(s=Math.floor(s/i)*i,c=Math.ceil(c/i)*i,i=e.tickIncrement(s,c,r)):i<0&&(s=Math.ceil(s*i)/i,c=Math.floor(c*i)/i,i=e.tickIncrement(s,c,r)),i>0?(o[a]=Math.floor(s/i)*i,o[u]=Math.ceil(c/i)*i,n(o)):i<0&&(o[a]=Math.ceil(s*i)/i,o[u]=Math.floor(c*i)/i,n(o)),t},t}var E=function(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t};function M(t,e){return(e=Math.log(e/t))?function(n){return Math.log(n/t)/e}:p(e)}function C(t,e){return t<0?function(n){return-Math.pow(-e,n)*Math.pow(-t,1-n)}:function(n){return Math.pow(e,n)*Math.pow(t,1-n)}}function S(t){return isFinite(t)?+("1e"+t):t<0?0:t}function B(t){return 10===t?S:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function k(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}function I(t){return function(e){return-t(-e)}}function F(t,e){return t<0?-Math.pow(-t,e):Math.pow(t,e)}function D(){var t=1,e=w(function(e,n){return(n=F(n,t)-(e=F(e,t)))?function(r){return(F(r,t)-e)/n}:p(n)},function(e,n){return n=F(n,t)-(e=F(e,t)),function(r){return F(e+n*r,1/t)}}),n=e.domain;return e.exponent=function(e){return arguments.length?(t=+e,n(n())):t},e.copy=function(){return _(e,D().exponent(t))},A(e)}var T=1e3,N=60*T,j=60*N,R=24*j,O=7*R,L=30*R,U=365*R;function P(t){return new Date(t)}function H(t){return t instanceof Date?+t:+new Date(+t)}function z(t,n,i,o,a,u,s,f,h){var l=w(y,r.interpolateNumber),d=l.invert,p=l.domain,b=h(".%L"),g=h(":%S"),m=h("%I:%M"),v=h("%I %p"),x=h("%a %d"),A=h("%b %d"),M=h("%B"),C=h("%Y"),S=[[s,1,T],[s,5,5*T],[s,15,15*T],[s,30,30*T],[u,1,N],[u,5,5*N],[u,15,15*N],[u,30,30*N],[a,1,j],[a,3,3*j],[a,6,6*j],[a,12,12*j],[o,1,R],[o,2,2*R],[i,1,O],[n,1,L],[n,3,3*L],[t,1,U]];function B(e){return(s(e)<e?b:u(e)<e?g:a(e)<e?m:o(e)<e?v:n(e)<e?i(e)<e?x:A:t(e)<e?M:C)(e)}function k(n,r,i,o){if(null==n&&(n=10),"number"==typeof n){var a=Math.abs(i-r)/n,u=e.bisector(function(t){return t[2]}).right(S,a);u===S.length?(o=e.tickStep(r/U,i/U,n),n=t):u?(o=(u=S[a/S[u-1][2]<S[u][2]/a?u-1:u])[1],n=u[0]):(o=Math.max(e.tickStep(r,i,n),1),n=f)}return null==o?n:n.every(o)}return l.invert=function(t){return new Date(d(t))},l.domain=function(t){return arguments.length?p(c.call(t,H)):p().map(P)},l.ticks=function(t,e){var n,r=p(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=(n=k(t,i,o,e))?n.range(i,o+1):[],a?n.reverse():n},l.tickFormat=function(t,e){return null==e?B:h(e)},l.nice=function(t,e){var n=p();return(t=k(t,n[0],n[n.length-1],e))?p(E(n,t)):l},l.copy=function(){return _(l,z(t,n,i,o,a,u,s,f,h))},l}var V=function(t){return t.match(/.{6}/g).map(function(t){return"#"+t})},X=V("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),q=V("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),W=V("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),Y=V("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),Z=r.interpolateCubehelixLong(u.cubehelix(300,.5,0),u.cubehelix(-240,.5,1)),G=r.interpolateCubehelixLong(u.cubehelix(-100,.75,.35),u.cubehelix(80,1.5,.8)),K=r.interpolateCubehelixLong(u.cubehelix(260,.75,.35),u.cubehelix(80,1.5,.8)),J=u.cubehelix();function Q(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var $=Q(V("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),tt=Q(V("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),et=Q(V("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),nt=Q(V("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));t.scaleBand=d,t.scalePoint=function(){return function t(e){var n=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return t(n())},e}(d().paddingInner(1))},t.scaleIdentity=function t(){var e=[0,1];function n(t){return+t}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=c.call(t,b),n):e.slice()},n.copy=function(){return t().domain(e)},A(n)},t.scaleLinear=function t(){var e=w(y,r.interpolateNumber);return e.copy=function(){return _(e,t())},A(e)},t.scaleLog=function t(){var n=w(M,C).domain([1,10]),r=n.domain,o=10,a=k(10),u=B(10);function s(){return a=k(o),u=B(o),r()[0]<0&&(a=I(a),u=I(u)),n}return n.base=function(t){return arguments.length?(o=+t,s()):o},n.domain=function(t){return arguments.length?(r(t),s()):r()},n.ticks=function(t){var n,i=r(),s=i[0],c=i[i.length-1];(n=c<s)&&(d=s,s=c,c=d);var f,h,l,d=a(s),p=a(c),b=null==t?10:+t,g=[];if(!(o%1)&&p-d<b){if(d=Math.round(d)-1,p=Math.round(p)+1,s>0){for(;d<p;++d)for(h=1,f=u(d);h<o;++h)if(!((l=f*h)<s)){if(l>c)break;g.push(l)}}else for(;d<p;++d)for(h=o-1,f=u(d);h>=1;--h)if(!((l=f*h)<s)){if(l>c)break;g.push(l)}}else g=e.ticks(d,p,Math.min(p-d,b)).map(u);return n?g.reverse():g},n.tickFormat=function(t,e){if(null==e&&(e=10===o?".0e":","),"function"!=typeof e&&(e=i.format(e)),t===1/0)return e;null==t&&(t=10);var r=Math.max(1,o*t/n.ticks().length);return function(t){var n=t/u(Math.round(a(t)));return n*o<o-.5&&(n*=o),n<=r?e(t):""}},n.nice=function(){return r(E(r(),{floor:function(t){return u(Math.floor(a(t)))},ceil:function(t){return u(Math.ceil(a(t)))}}))},n.copy=function(){return _(n,t().base(o))},n},t.scaleOrdinal=l,t.scaleImplicit=h,t.scalePow=D,t.scaleSqrt=function(){return D().exponent(.5)},t.scaleQuantile=function t(){var n=[],r=[],i=[];function o(){var t=0,o=Math.max(1,r.length);for(i=new Array(o-1);++t<o;)i[t-1]=e.quantile(n,t/o);return a}function a(t){if(!isNaN(t=+t))return r[e.bisect(i,t)]}return a.invertExtent=function(t){var e=r.indexOf(t);return e<0?[NaN,NaN]:[e>0?i[e-1]:n[0],e<i.length?i[e]:n[n.length-1]]},a.domain=function(t){if(!arguments.length)return n.slice();n=[];for(var r,i=0,a=t.length;i<a;++i)null==(r=t[i])||isNaN(r=+r)||n.push(r);return n.sort(e.ascending),o()},a.range=function(t){return arguments.length?(r=f.call(t),o()):r.slice()},a.quantiles=function(){return i.slice()},a.copy=function(){return t().domain(n).range(r)},a},t.scaleQuantize=function t(){var n=0,r=1,i=1,o=[.5],a=[0,1];function u(t){if(t<=t)return a[e.bisect(o,t,0,i)]}function s(){var t=-1;for(o=new Array(i);++t<i;)o[t]=((t+1)*r-(t-i)*n)/(i+1);return u}return u.domain=function(t){return arguments.length?(n=+t[0],r=+t[1],s()):[n,r]},u.range=function(t){return arguments.length?(i=(a=f.call(t)).length-1,s()):a.slice()},u.invertExtent=function(t){var e=a.indexOf(t);return e<0?[NaN,NaN]:e<1?[n,o[0]]:e>=i?[o[i-1],r]:[o[e-1],o[e]]},u.copy=function(){return t().domain([n,r]).range(a)},A(u)},t.scaleThreshold=function t(){var n=[.5],r=[0,1],i=1;function o(t){if(t<=t)return r[e.bisect(n,t,0,i)]}return o.domain=function(t){return arguments.length?(n=f.call(t),i=Math.min(n.length,r.length-1),o):n.slice()},o.range=function(t){return arguments.length?(r=f.call(t),i=Math.min(n.length,r.length-1),o):r.slice()},o.invertExtent=function(t){var e=r.indexOf(t);return[n[e-1],n[e]]},o.copy=function(){return t().domain(n).range(r)},o},t.scaleTime=function(){return z(o.timeYear,o.timeMonth,o.timeWeek,o.timeDay,o.timeHour,o.timeMinute,o.timeSecond,o.timeMillisecond,a.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},t.scaleUtc=function(){return z(o.utcYear,o.utcMonth,o.utcWeek,o.utcDay,o.utcHour,o.utcMinute,o.utcSecond,o.utcMillisecond,a.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},t.schemeCategory10=X,t.schemeCategory20b=q,t.schemeCategory20c=W,t.schemeCategory20=Y,t.interpolateCubehelixDefault=Z,t.interpolateRainbow=function(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return J.h=360*t-100,J.s=1.5-1.5*e,J.l=.8-.9*e,J+""},t.interpolateWarm=G,t.interpolateCool=K,t.interpolateViridis=$,t.interpolateMagma=tt,t.interpolateInferno=et,t.interpolatePlasma=nt,t.scaleSequential=function t(e){var n=0,r=1,i=!1;function o(t){var o=(t-n)/(r-n);return e(i?Math.max(0,Math.min(1,o)):o)}return o.domain=function(t){return arguments.length?(n=+t[0],r=+t[1],o):[n,r]},o.clamp=function(t){return arguments.length?(i=!!t,o):i},o.interpolator=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t(e).domain([n,r]).clamp(i)},A(o)},Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("d3-array"),t("d3-collection"),t("d3-interpolate"),t("d3-format"),t("d3-time"),t("d3-time-format"),t("d3-color")):"function"==typeof define&&define.amd?define(["exports","d3-array","d3-collection","d3-interpolate","d3-format","d3-time","d3-time-format","d3-color"],i):i(r.d3=r.d3||{},r.d3,r.d3,r.d3,r.d3,r.d3,r.d3,r.d3)},{"d3-array":217,"d3-collection":221,"d3-color":222,"d3-format":228,"d3-interpolate":231,"d3-time":242,"d3-time-format":241}],239:[function(t,e,n){var r,i;r=this,i=function(t){"use strict";var e="http://www.w3.org/1999/xhtml",n={svg:"http://www.w3.org/2000/svg",xhtml:e,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function r(t){var e=t+="",r=e.indexOf(":");return r>=0&&"xmlns"!==(e=t.slice(0,r))&&(t=t.slice(r+1)),n.hasOwnProperty(e)?{space:n[e],local:t}:t}function i(t){var n=r(t);return(n.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var n=this.ownerDocument,r=this.namespaceURI;return r===e&&n.documentElement.namespaceURI===e?n.createElement(t):n.createElementNS(r,t)}})(n)}function o(){}function a(t){return null==t?o:function(){return this.querySelector(t)}}function u(){return[]}function s(t){return null==t?u:function(){return this.querySelectorAll(t)}}var c=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var f=document.documentElement;if(!f.matches){var h=f.webkitMatchesSelector||f.msMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector;c=function(t){return function(){return h.call(this,t)}}}}var l=c;function d(t){return new Array(t.length)}function p(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}p.prototype={constructor:p,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var b="$";function g(t,e,n,r,i,o){for(var a,u=0,s=e.length,c=o.length;u<c;++u)(a=e[u])?(a.__data__=o[u],r[u]=a):n[u]=new p(t,o[u]);for(;u<s;++u)(a=e[u])&&(i[u]=a)}function y(t,e,n,r,i,o,a){var u,s,c,f={},h=e.length,l=o.length,d=new Array(h);for(u=0;u<h;++u)(s=e[u])&&(d[u]=c=b+a.call(s,s.__data__,u,e),c in f?i[u]=s:f[c]=s);for(u=0;u<l;++u)(s=f[c=b+a.call(t,o[u],u,o)])?(r[u]=s,s.__data__=o[u],f[c]=null):n[u]=new p(t,o[u]);for(u=0;u<h;++u)(s=e[u])&&f[d[u]]===s&&(i[u]=s)}function m(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function v(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function _(t,e){return t.style.getPropertyValue(e)||v(t).getComputedStyle(t,null).getPropertyValue(e)}function w(t){return t.trim().split(/^|\s+/)}function x(t){return t.classList||new A(t)}function A(t){this._node=t,this._names=w(t.getAttribute("class")||"")}function E(t,e){for(var n=x(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function M(t,e){for(var n=x(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function C(){this.textContent=""}function S(){this.innerHTML=""}function B(){this.nextSibling&&this.parentNode.appendChild(this)}function k(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function I(){return null}function F(){var t=this.parentNode;t&&t.removeChild(this)}function D(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function T(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}A.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var N={};(t.event=null,"undefined"!=typeof document)&&("onmouseenter"in document.documentElement||(N={mouseenter:"mouseover",mouseleave:"mouseout"}));function j(t,e,n){return t=R(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function R(e,n,r){return function(i){var o=t.event;t.event=i;try{e.call(this,this.__data__,n,r)}finally{t.event=o}}}function O(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}}function L(t,e,n){var r=N.hasOwnProperty(t.type)?j:R;return function(i,o,a){var u,s=this.__on,c=r(e,o,a);if(s)for(var f=0,h=s.length;f<h;++f)if((u=s[f]).type===t.type&&u.name===t.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=c,u.capture=n),void(u.value=e);this.addEventListener(t.type,c,n),u={type:t.type,name:t.name,value:e,listener:c,capture:n},s?s.push(u):this.__on=[u]}}function U(t,e,n){var r=v(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}var P=[null];function H(t,e){this._groups=t,this._parents=e}function z(){return new H([[document.documentElement]],P)}function V(t){return"string"==typeof t?new H([[document.querySelector(t)]],[document.documentElement]):new H([[t]],P)}H.prototype=z.prototype={constructor:H,select:function(t){"function"!=typeof t&&(t=a(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,u,s=e[i],c=s.length,f=r[i]=new Array(c),h=0;h<c;++h)(o=s[h])&&(u=t.call(o,o.__data__,h,s))&&("__data__"in o&&(u.__data__=o.__data__),f[h]=u);return new H(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=s(t));for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,u=e[o],c=u.length,f=0;f<c;++f)(a=u[f])&&(r.push(t.call(a,a.__data__,f,u)),i.push(a));return new H(r,i)},filter:function(t){"function"!=typeof t&&(t=l(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],u=a.length,s=r[i]=[],c=0;c<u;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&s.push(o);return new H(r,this._parents)},data:function(t,e){if(!t)return p=new Array(this.size()),f=-1,this.each(function(t){p[++f]=t}),p;var n,r=e?y:g,i=this._parents,o=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var a=o.length,u=new Array(a),s=new Array(a),c=new Array(a),f=0;f<a;++f){var h=i[f],l=o[f],d=l.length,p=t.call(h,h&&h.__data__,f,i),b=p.length,m=s[f]=new Array(b),v=u[f]=new Array(b);r(h,l,m,v,c[f]=new Array(d),p,e);for(var _,w,x=0,A=0;x<b;++x)if(_=m[x]){for(x>=A&&(A=x+1);!(w=v[A])&&++A<b;);_._next=w||null}}return(u=new H(u,i))._enter=s,u._exit=c,u},enter:function(){return new H(this._enter||this._groups.map(d),this._parents)},exit:function(){return new H(this._exit||this._groups.map(d),this._parents)},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var s,c=e[u],f=n[u],h=c.length,l=a[u]=new Array(h),d=0;d<h;++d)(s=c[d]||f[d])&&(l[d]=s);for(;u<r;++u)a[u]=e[u];return new H(a,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=m);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,u=n[o],s=u.length,c=i[o]=new Array(s),f=0;f<s;++f)(a=u[f])&&(c[f]=a);c.sort(e)}return new H(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each(function(){t[++e]=this}),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){var t=0;return this.each(function(){++t}),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,u=o.length;a<u;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,e){var n=r(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}:function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):_(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=w(t+"");if(arguments.length<2){for(var r=x(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?E:M)(this,t)}}:e?function(t){return function(){E(this,t)}}:function(t){return function(){M(this,t)}})(n,e))},text:function(t){return arguments.length?this.each(null==t?C:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?S:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(B)},lower:function(){return this.each(k)},append:function(t){var e="function"==typeof t?t:i(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:i(t),r=null==e?I:"function"==typeof e?e:a(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(F)},clone:function(t){return this.select(t?T:D)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=function(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}(t+""),a=o.length;if(!(arguments.length<2)){for(u=e?L:O,null==n&&(n=!1),r=0;r<a;++r)this.each(u(o[r],e,n));return this}var u=this.node().__on;if(u)for(var s,c=0,f=u.length;c<f;++c)for(r=0,s=u[c];r<a;++r)if((i=o[r]).type===s.type&&i.name===s.name)return s.value},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return U(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return U(this,t,e)}})(t,e))}};var X=0;function q(){return new W}function W(){this._="@"+(++X).toString(36)}function Y(){for(var e,n=t.event;e=n.sourceEvent;)n=e;return n}function Z(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}W.prototype=q.prototype={constructor:W,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}},t.create=function(t){return V(i(t).call(document.documentElement))},t.creator=i,t.local=q,t.matcher=l,t.mouse=function(t){var e=Y();return e.changedTouches&&(e=e.changedTouches[0]),Z(t,e)},t.namespace=r,t.namespaces=n,t.clientPoint=Z,t.select=V,t.selectAll=function(t){return"string"==typeof t?new H([document.querySelectorAll(t)],[document.documentElement]):new H([null==t?[]:t],P)},t.selection=z,t.selector=a,t.selectorAll=s,t.style=_,t.touch=function(t,e,n){arguments.length<3&&(n=e,e=Y().changedTouches);for(var r,i=0,o=e?e.length:0;i<o;++i)if((r=e[i]).identifier===n)return Z(t,r);return null},t.touches=function(t,e){null==e&&(e=Y().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n<r;++n)i[n]=Z(t,e[n]);return i},t.window=v,t.customEvent=function(e,n,r,i){var o=t.event;e.sourceEvent=t.event,t.event=e;try{return n.apply(r,i)}finally{t.event=o}},Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n):"function"==typeof define&&define.amd?define(["exports"],i):i(r.d3=r.d3||{})},{}],240:[function(t,e,n){var r,i;r=this,i=function(t,e){"use strict";var n=function(t){return function(){return t}},r=Math.abs,i=Math.atan2,o=Math.cos,a=Math.max,u=Math.min,s=Math.sin,c=Math.sqrt,f=1e-12,h=Math.PI,l=h/2,d=2*h;function p(t){return t>=1?l:t<=-1?-l:Math.asin(t)}function b(t){return t.innerRadius}function g(t){return t.outerRadius}function y(t){return t.startAngle}function m(t){return t.endAngle}function v(t){return t&&t.padAngle}function _(t,e,n,r,i,o,u){var s=t-n,f=e-r,h=(u?o:-o)/c(s*s+f*f),l=h*f,d=-h*s,p=t+l,b=e+d,g=n+l,y=r+d,m=(p+g)/2,v=(b+y)/2,_=g-p,w=y-b,x=_*_+w*w,A=i-o,E=p*y-g*b,M=(w<0?-1:1)*c(a(0,A*A*x-E*E)),C=(E*w-_*M)/x,S=(-E*_-w*M)/x,B=(E*w+_*M)/x,k=(-E*_+w*M)/x,I=C-m,F=S-v,D=B-m,T=k-v;return I*I+F*F>D*D+T*T&&(C=B,S=k),{cx:C,cy:S,x01:-l,y01:-d,x11:C*(i/A-1),y11:S*(i/A-1)}}function w(t){this._context=t}w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var x=function(t){return new w(t)};function A(t){return t[0]}function E(t){return t[1]}var M=function(){var t=A,r=E,i=n(!0),o=null,a=x,u=null;function s(n){var s,c,f,h=n.length,l=!1;for(null==o&&(u=a(f=e.path())),s=0;s<=h;++s)!(s<h&&i(c=n[s],s,n))===l&&((l=!l)?u.lineStart():u.lineEnd()),l&&u.point(+t(c,s,n),+r(c,s,n));if(f)return u=null,f+""||null}return s.x=function(e){return arguments.length?(t="function"==typeof e?e:n(+e),s):t},s.y=function(t){return arguments.length?(r="function"==typeof t?t:n(+t),s):r},s.defined=function(t){return arguments.length?(i="function"==typeof t?t:n(!!t),s):i},s.curve=function(t){return arguments.length?(a=t,null!=o&&(u=a(o)),s):a},s.context=function(t){return arguments.length?(null==t?o=u=null:u=a(o=t),s):o},s},C=function(){var t=A,r=null,i=n(0),o=E,a=n(!0),u=null,s=x,c=null;function f(n){var f,h,l,d,p,b=n.length,g=!1,y=new Array(b),m=new Array(b);for(null==u&&(c=s(p=e.path())),f=0;f<=b;++f){if(!(f<b&&a(d=n[f],f,n))===g)if(g=!g)h=f,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),l=f-1;l>=h;--l)c.point(y[l],m[l]);c.lineEnd(),c.areaEnd()}g&&(y[f]=+t(d,f,n),m[f]=+i(d,f,n),c.point(r?+r(d,f,n):y[f],o?+o(d,f,n):m[f]))}if(p)return c=null,p+""||null}function h(){return M().defined(a).curve(s).context(u)}return f.x=function(e){return arguments.length?(t="function"==typeof e?e:n(+e),r=null,f):t},f.x0=function(e){return arguments.length?(t="function"==typeof e?e:n(+e),f):t},f.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:n(+t),f):r},f.y=function(t){return arguments.length?(i="function"==typeof t?t:n(+t),o=null,f):i},f.y0=function(t){return arguments.length?(i="function"==typeof t?t:n(+t),f):i},f.y1=function(t){return arguments.length?(o=null==t?null:"function"==typeof t?t:n(+t),f):o},f.lineX0=f.lineY0=function(){return h().x(t).y(i)},f.lineY1=function(){return h().x(t).y(o)},f.lineX1=function(){return h().x(r).y(i)},f.defined=function(t){return arguments.length?(a="function"==typeof t?t:n(!!t),f):a},f.curve=function(t){return arguments.length?(s=t,null!=u&&(c=s(u)),f):s},f.context=function(t){return arguments.length?(null==t?u=c=null:c=s(u=t),f):u},f},S=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},B=function(t){return t},k=F(x);function I(t){this._curve=t}function F(t){function e(e){return new I(t(e))}return e._curve=t,e}function D(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(F(t)):e()._curve},t}I.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var T=function(){return D(M().curve(k))},N=function(){var t=C().curve(k),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return D(n())},delete t.lineX0,t.lineEndAngle=function(){return D(r())},delete t.lineX1,t.lineInnerRadius=function(){return D(i())},delete t.lineY0,t.lineOuterRadius=function(){return D(o())},delete t.lineY1,t.curve=function(t){return arguments.length?e(F(t)):e()._curve},t},j=function(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]},R=Array.prototype.slice;function O(t){return t.source}function L(t){return t.target}function U(t){var r=O,i=L,o=A,a=E,u=null;function s(){var n,s=R.call(arguments),c=r.apply(this,s),f=i.apply(this,s);if(u||(u=n=e.path()),t(u,+o.apply(this,(s[0]=c,s)),+a.apply(this,s),+o.apply(this,(s[0]=f,s)),+a.apply(this,s)),n)return u=null,n+""||null}return s.source=function(t){return arguments.length?(r=t,s):r},s.target=function(t){return arguments.length?(i=t,s):i},s.x=function(t){return arguments.length?(o="function"==typeof t?t:n(+t),s):o},s.y=function(t){return arguments.length?(a="function"==typeof t?t:n(+t),s):a},s.context=function(t){return arguments.length?(u=null==t?null:t,s):u},s}function P(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function H(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function z(t,e,n,r,i){var o=j(e,n),a=j(e,n=(n+i)/2),u=j(r,n),s=j(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(a[0],a[1],u[0],u[1],s[0],s[1])}var V={draw:function(t,e){var n=Math.sqrt(e/h);t.moveTo(n,0),t.arc(0,0,n,0,d)}},X={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},q=Math.sqrt(1/3),W=2*q,Y={draw:function(t,e){var n=Math.sqrt(e/W),r=n*q;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},Z=Math.sin(h/10)/Math.sin(7*h/10),G=Math.sin(d/10)*Z,K=-Math.cos(d/10)*Z,J={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=G*n,i=K*n;t.moveTo(0,-n),t.lineTo(r,i);for(var o=1;o<5;++o){var a=d*o/5,u=Math.cos(a),s=Math.sin(a);t.lineTo(s*n,-u*n),t.lineTo(u*r-s*i,s*r+u*i)}t.closePath()}},Q={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},$=Math.sqrt(3),tt={draw:function(t,e){var n=-Math.sqrt(e/(3*$));t.moveTo(0,2*n),t.lineTo(-$*n,-n),t.lineTo($*n,-n),t.closePath()}},et=-.5,nt=Math.sqrt(3)/2,rt=1/Math.sqrt(12),it=3*(rt/2+1),ot={draw:function(t,e){var n=Math.sqrt(e/it),r=n/2,i=n*rt,o=r,a=n*rt+n,u=-o,s=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(u,s),t.lineTo(et*r-nt*i,nt*r+et*i),t.lineTo(et*o-nt*a,nt*o+et*a),t.lineTo(et*u-nt*s,nt*u+et*s),t.lineTo(et*r+nt*i,et*i-nt*r),t.lineTo(et*o+nt*a,et*a-nt*o),t.lineTo(et*u+nt*s,et*s-nt*u),t.closePath()}},at=[V,X,Y,Q,J,tt,ot],ut=function(){};function st(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function ct(t){this._context=t}ct.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:st(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:st(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function ft(t){this._context=t}ft.prototype={areaStart:ut,areaEnd:ut,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:st(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function ht(t){this._context=t}ht.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:st(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function lt(t,e){this._basis=new ct(t),this._beta=e}lt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],a=t[n]-i,u=e[n]-o,s=-1;++s<=n;)r=s/n,this._basis.point(this._beta*t[s]+(1-this._beta)*(i+r*a),this._beta*e[s]+(1-this._beta)*(o+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var dt=function t(e){function n(t){return 1===e?new ct(t):new lt(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function pt(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function bt(t,e){this._context=t,this._k=(1-e)/6}bt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:pt(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:pt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var gt=function t(e){function n(t){return new bt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function yt(t,e){this._context=t,this._k=(1-e)/6}yt.prototype={areaStart:ut,areaEnd:ut,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:pt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var mt=function t(e){function n(t){return new yt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function vt(t,e){this._context=t,this._k=(1-e)/6}vt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:pt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var _t=function t(e){function n(t){return new vt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function wt(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>f){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,s=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/s,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/s}if(t._l23_a>f){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/h,a=(a*c+t._y1*t._l23_2a-n*t._l12_2a)/h}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function xt(t,e){this._context=t,this._alpha=e}xt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var At=function t(e){function n(t){return e?new xt(t,e):new bt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Et(t,e){this._context=t,this._alpha=e}Et.prototype={areaStart:ut,areaEnd:ut,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Mt=function t(e){function n(t){return e?new Et(t,e):new yt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Ct(t,e){this._context=t,this._alpha=e}Ct.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var St=function t(e){function n(t){return e?new Ct(t,e):new vt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Bt(t){this._context=t}Bt.prototype={areaStart:ut,areaEnd:ut,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function kt(t){return t<0?-1:1}function It(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),u=(o*i+a*r)/(r+i);return(kt(o)+kt(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function Ft(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Dt(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*e,o-u,a-u*n,o,a)}function Tt(t){this._context=t}function Nt(t){this._context=new jt(t)}function jt(t){this._context=t}function Rt(t){this._context=t}function Ot(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(i[r-1]=a[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}Tt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Dt(this,this._t0,Ft(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Dt(this,Ft(this,n=It(this,t,e)),n);break;default:Dt(this,this._t0,n=It(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(Nt.prototype=Object.create(Tt.prototype)).point=function(t,e){Tt.prototype.point.call(this,e,t)},jt.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}},Rt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=Ot(t),i=Ot(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function Lt(t,e){this._context=t,this._t=e}Lt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var Ut=function(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],u=a.length;o<i;++o)for(r=a,a=t[e[o]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},Pt=function(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n};function Ht(t,e){return t[e]}var zt=function(t){var e=t.map(Vt);return Pt(t).sort(function(t,n){return e[t]-e[n]})};function Vt(t){for(var e,n=0,r=-1,i=t.length;++r<i;)(e=+t[r][1])&&(n+=e);return n}t.arc=function(){var t=b,a=g,w=n(0),x=null,A=y,E=m,M=v,C=null;function S(){var n,b,g,y=+t.apply(this,arguments),m=+a.apply(this,arguments),v=A.apply(this,arguments)-l,S=E.apply(this,arguments)-l,B=r(S-v),k=S>v;if(C||(C=n=e.path()),m<y&&(b=m,m=y,y=b),m>f)if(B>d-f)C.moveTo(m*o(v),m*s(v)),C.arc(0,0,m,v,S,!k),y>f&&(C.moveTo(y*o(S),y*s(S)),C.arc(0,0,y,S,v,k));else{var I,F,D=v,T=S,N=v,j=S,R=B,O=B,L=M.apply(this,arguments)/2,U=L>f&&(x?+x.apply(this,arguments):c(y*y+m*m)),P=u(r(m-y)/2,+w.apply(this,arguments)),H=P,z=P;if(U>f){var V=p(U/y*s(L)),X=p(U/m*s(L));(R-=2*V)>f?(N+=V*=k?1:-1,j-=V):(R=0,N=j=(v+S)/2),(O-=2*X)>f?(D+=X*=k?1:-1,T-=X):(O=0,D=T=(v+S)/2)}var q=m*o(D),W=m*s(D),Y=y*o(j),Z=y*s(j);if(P>f){var G=m*o(T),K=m*s(T),J=y*o(N),Q=y*s(N);if(B<h){var $=R>f?function(t,e,n,r,i,o,a,u){var s=n-t,c=r-e,f=a-i,h=u-o,l=(f*(e-o)-h*(t-i))/(h*s-f*c);return[t+l*s,e+l*c]}(q,W,J,Q,G,K,Y,Z):[Y,Z],tt=q-$[0],et=W-$[1],nt=G-$[0],rt=K-$[1],it=1/s(((g=(tt*nt+et*rt)/(c(tt*tt+et*et)*c(nt*nt+rt*rt)))>1?0:g<-1?h:Math.acos(g))/2),ot=c($[0]*$[0]+$[1]*$[1]);H=u(P,(y-ot)/(it-1)),z=u(P,(m-ot)/(it+1))}}O>f?z>f?(I=_(J,Q,q,W,m,z,k),F=_(G,K,Y,Z,m,z,k),C.moveTo(I.cx+I.x01,I.cy+I.y01),z<P?C.arc(I.cx,I.cy,z,i(I.y01,I.x01),i(F.y01,F.x01),!k):(C.arc(I.cx,I.cy,z,i(I.y01,I.x01),i(I.y11,I.x11),!k),C.arc(0,0,m,i(I.cy+I.y11,I.cx+I.x11),i(F.cy+F.y11,F.cx+F.x11),!k),C.arc(F.cx,F.cy,z,i(F.y11,F.x11),i(F.y01,F.x01),!k))):(C.moveTo(q,W),C.arc(0,0,m,D,T,!k)):C.moveTo(q,W),y>f&&R>f?H>f?(I=_(Y,Z,G,K,y,-H,k),F=_(q,W,J,Q,y,-H,k),C.lineTo(I.cx+I.x01,I.cy+I.y01),H<P?C.arc(I.cx,I.cy,H,i(I.y01,I.x01),i(F.y01,F.x01),!k):(C.arc(I.cx,I.cy,H,i(I.y01,I.x01),i(I.y11,I.x11),!k),C.arc(0,0,y,i(I.cy+I.y11,I.cx+I.x11),i(F.cy+F.y11,F.cx+F.x11),k),C.arc(F.cx,F.cy,H,i(F.y11,F.x11),i(F.y01,F.x01),!k))):C.arc(0,0,y,j,N,k):C.lineTo(Y,Z)}else C.moveTo(0,0);if(C.closePath(),n)return C=null,n+""||null}return S.centroid=function(){var e=(+t.apply(this,arguments)+ +a.apply(this,arguments))/2,n=(+A.apply(this,arguments)+ +E.apply(this,arguments))/2-h/2;return[o(n)*e,s(n)*e]},S.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:n(+e),S):t},S.outerRadius=function(t){return arguments.length?(a="function"==typeof t?t:n(+t),S):a},S.cornerRadius=function(t){return arguments.length?(w="function"==typeof t?t:n(+t),S):w},S.padRadius=function(t){return arguments.length?(x=null==t?null:"function"==typeof t?t:n(+t),S):x},S.startAngle=function(t){return arguments.length?(A="function"==typeof t?t:n(+t),S):A},S.endAngle=function(t){return arguments.length?(E="function"==typeof t?t:n(+t),S):E},S.padAngle=function(t){return arguments.length?(M="function"==typeof t?t:n(+t),S):M},S.context=function(t){return arguments.length?(C=null==t?null:t,S):C},S},t.area=C,t.line=M,t.pie=function(){var t=B,e=S,r=null,i=n(0),o=n(d),a=n(0);function u(n){var u,s,c,f,h,l=n.length,p=0,b=new Array(l),g=new Array(l),y=+i.apply(this,arguments),m=Math.min(d,Math.max(-d,o.apply(this,arguments)-y)),v=Math.min(Math.abs(m)/l,a.apply(this,arguments)),_=v*(m<0?-1:1);for(u=0;u<l;++u)(h=g[b[u]=u]=+t(n[u],u,n))>0&&(p+=h);for(null!=e?b.sort(function(t,n){return e(g[t],g[n])}):null!=r&&b.sort(function(t,e){return r(n[t],n[e])}),u=0,c=p?(m-l*_)/p:0;u<l;++u,y=f)s=b[u],f=y+((h=g[s])>0?h*c:0)+_,g[s]={data:n[s],index:u,value:h,startAngle:y,endAngle:f,padAngle:v};return g}return u.value=function(e){return arguments.length?(t="function"==typeof e?e:n(+e),u):t},u.sortValues=function(t){return arguments.length?(e=t,r=null,u):e},u.sort=function(t){return arguments.length?(r=t,e=null,u):r},u.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:n(+t),u):i},u.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:n(+t),u):o},u.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:n(+t),u):a},u},t.areaRadial=N,t.radialArea=N,t.lineRadial=T,t.radialLine=T,t.pointRadial=j,t.linkHorizontal=function(){return U(P)},t.linkVertical=function(){return U(H)},t.linkRadial=function(){var t=U(z);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t},t.symbol=function(){var t=n(V),r=n(64),i=null;function o(){var n;if(i||(i=n=e.path()),t.apply(this,arguments).draw(i,+r.apply(this,arguments)),n)return i=null,n+""||null}return o.type=function(e){return arguments.length?(t="function"==typeof e?e:n(e),o):t},o.size=function(t){return arguments.length?(r="function"==typeof t?t:n(+t),o):r},o.context=function(t){return arguments.length?(i=null==t?null:t,o):i},o},t.symbols=at,t.symbolCircle=V,t.symbolCross=X,t.symbolDiamond=Y,t.symbolSquare=Q,t.symbolStar=J,t.symbolTriangle=tt,t.symbolWye=ot,t.curveBasisClosed=function(t){return new ft(t)},t.curveBasisOpen=function(t){return new ht(t)},t.curveBasis=function(t){return new ct(t)},t.curveBundle=dt,t.curveCardinalClosed=mt,t.curveCardinalOpen=_t,t.curveCardinal=gt,t.curveCatmullRomClosed=Mt,t.curveCatmullRomOpen=St,t.curveCatmullRom=At,t.curveLinearClosed=function(t){return new Bt(t)},t.curveLinear=x,t.curveMonotoneX=function(t){return new Tt(t)},t.curveMonotoneY=function(t){return new Nt(t)},t.curveNatural=function(t){return new Rt(t)},t.curveStep=function(t){return new Lt(t,.5)},t.curveStepAfter=function(t){return new Lt(t,1)},t.curveStepBefore=function(t){return new Lt(t,0)},t.stack=function(){var t=n([]),e=Pt,r=Ut,i=Ht;function o(n){var o,a,u=t.apply(this,arguments),s=n.length,c=u.length,f=new Array(c);for(o=0;o<c;++o){for(var h,l=u[o],d=f[o]=new Array(s),p=0;p<s;++p)d[p]=h=[0,+i(n[p],l,p,n)],h.data=n[p];d.key=l}for(o=0,a=e(f);o<c;++o)f[a[o]].index=o;return r(f,a),f}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:n(R.call(e)),o):t},o.value=function(t){return arguments.length?(i="function"==typeof t?t:n(+t),o):i},o.order=function(t){return arguments.length?(e=null==t?Pt:"function"==typeof t?t:n(R.call(t)),o):e},o.offset=function(t){return arguments.length?(r=null==t?Ut:t,o):r},o},t.stackOffsetExpand=function(t,e){if((r=t.length)>0){for(var n,r,i,o=0,a=t[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=t[n][o][1]||0;if(i)for(n=0;n<r;++n)t[n][o][1]/=i}Ut(t,e)}},t.stackOffsetDiverging=function(t,e){if((u=t.length)>1)for(var n,r,i,o,a,u,s=0,c=t[e[0]].length;s<c;++s)for(o=a=0,n=0;n<u;++n)(i=(r=t[e[n]][s])[1]-r[0])>=0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):r[0]=o},t.stackOffsetNone=Ut,t.stackOffsetSilhouette=function(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],o=i.length;r<o;++r){for(var a=0,u=0;a<n;++a)u+=t[a][r][1]||0;i[r][1]+=i[r][0]=-u/2}Ut(t,e)}},t.stackOffsetWiggle=function(t,e){if((i=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var u=0,s=0,c=0;u<i;++u){for(var f=t[e[u]],h=f[a][1]||0,l=(h-(f[a-1][1]||0))/2,d=0;d<u;++d){var p=t[e[d]];l+=(p[a][1]||0)-(p[a-1][1]||0)}s+=h,c+=l*h}n[a-1][1]+=n[a-1][0]=o,s&&(o-=c/s)}n[a-1][1]+=n[a-1][0]=o,Ut(t,e)}},t.stackOrderAscending=zt,t.stackOrderDescending=function(t){return zt(t).reverse()},t.stackOrderInsideOut=function(t){var e,n,r=t.length,i=t.map(Vt),o=Pt(t).sort(function(t,e){return i[e]-i[t]}),a=0,u=0,s=[],c=[];for(e=0;e<r;++e)n=o[e],a<u?(a+=i[n],s.push(n)):(u+=i[n],c.push(n));return c.reverse().concat(s)},t.stackOrderNone=Pt,t.stackOrderReverse=function(t){return Pt(t).reverse()},Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("d3-path")):"function"==typeof define&&define.amd?define(["exports","d3-path"],i):i(r.d3=r.d3||{},r.d3)},{"d3-path":232}],241:[function(t,e,n){var r,i;r=this,i=function(t,e){"use strict";function n(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function r(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function i(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function o(t){var o=t.dateTime,a=t.date,s=t.time,c=t.periods,f=t.days,h=t.shortDays,l=t.months,yt=t.shortMonths,mt=d(c),vt=p(c),_t=d(f),wt=p(f),xt=d(h),At=p(h),Et=d(l),Mt=p(l),Ct=d(yt),St=p(yt),Bt={a:function(t){return h[t.getDay()]},A:function(t){return f[t.getDay()]},b:function(t){return yt[t.getMonth()]},B:function(t){return l[t.getMonth()]},c:null,d:N,e:N,f:U,H:j,I:R,j:O,L:L,m:P,M:H,p:function(t){return c[+(t.getHours()>=12)]},Q:bt,s:gt,S:z,u:V,U:X,V:q,w:W,W:Y,x:null,X:null,y:Z,Y:G,Z:K,"%":pt},kt={a:function(t){return h[t.getUTCDay()]},A:function(t){return f[t.getUTCDay()]},b:function(t){return yt[t.getUTCMonth()]},B:function(t){return l[t.getUTCMonth()]},c:null,d:J,e:J,f:nt,H:Q,I:$,j:tt,L:et,m:rt,M:it,p:function(t){return c[+(t.getUTCHours()>=12)]},Q:bt,s:gt,S:ot,u:at,U:ut,V:st,w:ct,W:ft,x:null,X:null,y:ht,Y:lt,Z:dt,"%":pt},It={a:function(t,e,n){var r=xt.exec(e.slice(n));return r?(t.w=At[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=_t.exec(e.slice(n));return r?(t.w=wt[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=Ct.exec(e.slice(n));return r?(t.m=St[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=Et.exec(e.slice(n));return r?(t.m=Mt[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,e,n){return Tt(t,o,e,n)},d:E,e:E,f:I,H:C,I:C,j:M,L:k,m:A,M:S,p:function(t,e,n){var r=mt.exec(e.slice(n));return r?(t.p=vt[r[0].toLowerCase()],n+r[0].length):-1},Q:D,s:T,S:B,u:g,U:y,V:m,w:b,W:v,x:function(t,e,n){return Tt(t,a,e,n)},X:function(t,e,n){return Tt(t,s,e,n)},y:w,Y:_,Z:x,"%":F};function Ft(t,e){return function(n){var r,i,o,a=[],s=-1,c=0,f=t.length;for(n instanceof Date||(n=new Date(+n));++s<f;)37===t.charCodeAt(s)&&(a.push(t.slice(c,s)),null!=(i=u[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),c=s+1);return a.push(t.slice(c,s)),a.join("")}}function Dt(t,n){return function(o){var a,u,s=i(1900);if(Tt(s,t,o+="",0)!=o.length)return null;if("Q"in s)return new Date(s.Q);if("p"in s&&(s.H=s.H%12+12*s.p),"V"in s){if(s.V<1||s.V>53)return null;"w"in s||(s.w=1),"Z"in s?(a=(u=(a=r(i(s.y))).getUTCDay())>4||0===u?e.utcMonday.ceil(a):e.utcMonday(a),a=e.utcDay.offset(a,7*(s.V-1)),s.y=a.getUTCFullYear(),s.m=a.getUTCMonth(),s.d=a.getUTCDate()+(s.w+6)%7):(a=(u=(a=n(i(s.y))).getDay())>4||0===u?e.timeMonday.ceil(a):e.timeMonday(a),a=e.timeDay.offset(a,7*(s.V-1)),s.y=a.getFullYear(),s.m=a.getMonth(),s.d=a.getDate()+(s.w+6)%7)}else("W"in s||"U"in s)&&("w"in s||(s.w="u"in s?s.u%7:"W"in s?1:0),u="Z"in s?r(i(s.y)).getUTCDay():n(i(s.y)).getDay(),s.m=0,s.d="W"in s?(s.w+6)%7+7*s.W-(u+5)%7:s.w+7*s.U-(u+6)%7);return"Z"in s?(s.H+=s.Z/100|0,s.M+=s.Z%100,r(s)):n(s)}}function Tt(t,e,n,r){for(var i,o,a=0,s=e.length,c=n.length;a<s;){if(r>=c)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=It[i in u?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return Bt.x=Ft(a,Bt),Bt.X=Ft(s,Bt),Bt.c=Ft(o,Bt),kt.x=Ft(a,kt),kt.X=Ft(s,kt),kt.c=Ft(o,kt),{format:function(t){var e=Ft(t+="",Bt);return e.toString=function(){return t},e},parse:function(t){var e=Dt(t+="",n);return e.toString=function(){return t},e},utcFormat:function(t){var e=Ft(t+="",kt);return e.toString=function(){return t},e},utcParse:function(t){var e=Dt(t,r);return e.toString=function(){return t},e}}}var a,u={"-":"",_:" ",0:"0"},s=/^\s*\d+/,c=/^%/,f=/[\\^$*+?|[\]().{}]/g;function h(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function l(t){return t.replace(f,"\\$&")}function d(t){return new RegExp("^(?:"+t.map(l).join("|")+")","i")}function p(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function b(t,e,n){var r=s.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function g(t,e,n){var r=s.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function y(t,e,n){var r=s.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function m(t,e,n){var r=s.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function v(t,e,n){var r=s.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function _(t,e,n){var r=s.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function w(t,e,n){var r=s.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function x(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function A(t,e,n){var r=s.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function E(t,e,n){var r=s.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function M(t,e,n){var r=s.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function C(t,e,n){var r=s.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function S(t,e,n){var r=s.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function B(t,e,n){var r=s.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function k(t,e,n){var r=s.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function I(t,e,n){var r=s.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function F(t,e,n){var r=c.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function D(t,e,n){var r=s.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function T(t,e,n){var r=s.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function N(t,e){return h(t.getDate(),e,2)}function j(t,e){return h(t.getHours(),e,2)}function R(t,e){return h(t.getHours()%12||12,e,2)}function O(t,n){return h(1+e.timeDay.count(e.timeYear(t),t),n,3)}function L(t,e){return h(t.getMilliseconds(),e,3)}function U(t,e){return L(t,e)+"000"}function P(t,e){return h(t.getMonth()+1,e,2)}function H(t,e){return h(t.getMinutes(),e,2)}function z(t,e){return h(t.getSeconds(),e,2)}function V(t){var e=t.getDay();return 0===e?7:e}function X(t,n){return h(e.timeSunday.count(e.timeYear(t),t),n,2)}function q(t,n){var r=t.getDay();return t=r>=4||0===r?e.timeThursday(t):e.timeThursday.ceil(t),h(e.timeThursday.count(e.timeYear(t),t)+(4===e.timeYear(t).getDay()),n,2)}function W(t){return t.getDay()}function Y(t,n){return h(e.timeMonday.count(e.timeYear(t),t),n,2)}function Z(t,e){return h(t.getFullYear()%100,e,2)}function G(t,e){return h(t.getFullYear()%1e4,e,4)}function K(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+h(e/60|0,"0",2)+h(e%60,"0",2)}function J(t,e){return h(t.getUTCDate(),e,2)}function Q(t,e){return h(t.getUTCHours(),e,2)}function $(t,e){return h(t.getUTCHours()%12||12,e,2)}function tt(t,n){return h(1+e.utcDay.count(e.utcYear(t),t),n,3)}function et(t,e){return h(t.getUTCMilliseconds(),e,3)}function nt(t,e){return et(t,e)+"000"}function rt(t,e){return h(t.getUTCMonth()+1,e,2)}function it(t,e){return h(t.getUTCMinutes(),e,2)}function ot(t,e){return h(t.getUTCSeconds(),e,2)}function at(t){var e=t.getUTCDay();return 0===e?7:e}function ut(t,n){return h(e.utcSunday.count(e.utcYear(t),t),n,2)}function st(t,n){var r=t.getUTCDay();return t=r>=4||0===r?e.utcThursday(t):e.utcThursday.ceil(t),h(e.utcThursday.count(e.utcYear(t),t)+(4===e.utcYear(t).getUTCDay()),n,2)}function ct(t){return t.getUTCDay()}function ft(t,n){return h(e.utcMonday.count(e.utcYear(t),t),n,2)}function ht(t,e){return h(t.getUTCFullYear()%100,e,2)}function lt(t,e){return h(t.getUTCFullYear()%1e4,e,4)}function dt(){return"+0000"}function pt(){return"%"}function bt(t){return+t}function gt(t){return Math.floor(+t/1e3)}function yt(e){return a=o(e),t.timeFormat=a.format,t.timeParse=a.parse,t.utcFormat=a.utcFormat,t.utcParse=a.utcParse,a}yt({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var mt=Date.prototype.toISOString?function(t){return t.toISOString()}:t.utcFormat("%Y-%m-%dT%H:%M:%S.%LZ");var vt=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:t.utcParse("%Y-%m-%dT%H:%M:%S.%LZ");t.timeFormatDefaultLocale=yt,t.timeFormatLocale=o,t.isoFormat=mt,t.isoParse=vt,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("d3-time")):"function"==typeof define&&define.amd?define(["exports","d3-time"],i):i(r.d3=r.d3||{},r.d3)},{"d3-time":242}],242:[function(t,e,n){var r,i;r=this,i=function(t){"use strict";var e=new Date,n=new Date;function r(t,i,o,a){function u(e){return t(e=new Date(+e)),e}return u.floor=u,u.ceil=function(e){return t(e=new Date(e-1)),i(e,1),t(e),e},u.round=function(t){var e=u(t),n=u.ceil(t);return t-e<n-t?e:n},u.offset=function(t,e){return i(t=new Date(+t),null==e?1:Math.floor(e)),t},u.range=function(e,n,r){var o,a=[];if(e=u.ceil(e),r=null==r?1:Math.floor(r),!(e<n&&r>0))return a;do{a.push(o=new Date(+e)),i(e,r),t(e)}while(o<e&&e<n);return a},u.filter=function(e){return r(function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)},function(t,n){if(t>=t)if(n<0)for(;++n<=0;)for(;i(t,-1),!e(t););else for(;--n>=0;)for(;i(t,1),!e(t););})},o&&(u.count=function(r,i){return e.setTime(+r),n.setTime(+i),t(e),t(n),Math.floor(o(e,n))},u.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?u.filter(a?function(e){return a(e)%t==0}:function(e){return u.count(0,e)%t==0}):u:null}),u}var i=r(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):i:null};var o=i.range,a=6e4,u=6048e5,s=r(function(t){t.setTime(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}),c=s.range,f=r(function(t){t.setTime(Math.floor(t/a)*a)},function(t,e){t.setTime(+t+e*a)},function(t,e){return(e-t)/a},function(t){return t.getMinutes()}),h=f.range,l=r(function(t){var e=t.getTimezoneOffset()*a%36e5;e<0&&(e+=36e5),t.setTime(36e5*Math.floor((+t-e)/36e5)+e)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getHours()}),d=l.range,p=r(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*a)/864e5},function(t){return t.getDate()-1}),b=p.range;function g(t){return r(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*a)/u})}var y=g(0),m=g(1),v=g(2),_=g(3),w=g(4),x=g(5),A=g(6),E=y.range,M=m.range,C=v.range,S=_.range,B=w.range,k=x.range,I=A.range,F=r(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),D=F.range,T=r(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});T.every=function(t){return isFinite(t=Math.floor(t))&&t>0?r(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var N=T.range,j=r(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*a)},function(t,e){return(e-t)/a},function(t){return t.getUTCMinutes()}),R=j.range,O=r(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getUTCHours()}),L=O.range,U=r(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1}),P=U.range;function H(t){return r(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/u})}var z=H(0),V=H(1),X=H(2),q=H(3),W=H(4),Y=H(5),Z=H(6),G=z.range,K=V.range,J=X.range,Q=q.range,$=W.range,tt=Y.range,et=Z.range,nt=r(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),rt=nt.range,it=r(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});it.every=function(t){return isFinite(t=Math.floor(t))&&t>0?r(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var ot=it.range;t.timeInterval=r,t.timeMillisecond=i,t.timeMilliseconds=o,t.utcMillisecond=i,t.utcMilliseconds=o,t.timeSecond=s,t.timeSeconds=c,t.utcSecond=s,t.utcSeconds=c,t.timeMinute=f,t.timeMinutes=h,t.timeHour=l,t.timeHours=d,t.timeDay=p,t.timeDays=b,t.timeWeek=y,t.timeWeeks=E,t.timeSunday=y,t.timeSundays=E,t.timeMonday=m,t.timeMondays=M,t.timeTuesday=v,t.timeTuesdays=C,t.timeWednesday=_,t.timeWednesdays=S,t.timeThursday=w,t.timeThursdays=B,t.timeFriday=x,t.timeFridays=k,t.timeSaturday=A,t.timeSaturdays=I,t.timeMonth=F,t.timeMonths=D,t.timeYear=T,t.timeYears=N,t.utcMinute=j,t.utcMinutes=R,t.utcHour=O,t.utcHours=L,t.utcDay=U,t.utcDays=P,t.utcWeek=z,t.utcWeeks=G,t.utcSunday=z,t.utcSundays=G,t.utcMonday=V,t.utcMondays=K,t.utcTuesday=X,t.utcTuesdays=J,t.utcWednesday=q,t.utcWednesdays=Q,t.utcThursday=W,t.utcThursdays=$,t.utcFriday=Y,t.utcFridays=tt,t.utcSaturday=Z,t.utcSaturdays=et,t.utcMonth=nt,t.utcMonths=rt,t.utcYear=it,t.utcYears=ot,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n):"function"==typeof define&&define.amd?define(["exports"],i):i(r.d3=r.d3||{})},{}],243:[function(t,e,n){var r,i;r=this,i=function(t){"use strict";var e,n,r=0,i=0,o=0,a=1e3,u=0,s=0,c=0,f="object"==typeof performance&&performance.now?performance:Date,h="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function l(){return s||(h(d),s=f.now()+c)}function d(){s=0}function p(){this._call=this._time=this._next=null}function b(t,e,n){var r=new p;return r.restart(t,e,n),r}function g(){l(),++r;for(var t,n=e;n;)(t=s-n._time)>=0&&n._call.call(null,t),n=n._next;--r}function y(){s=(u=f.now())+c,r=i=0;try{g()}finally{r=0,function(){var t,r,i=e,o=1/0;for(;i;)i._call?(o>i._time&&(o=i._time),t=i,i=i._next):(r=i._next,i._next=null,i=t?t._next=r:e=r);n=t,v(o)}(),s=0}}function m(){var t=f.now(),e=t-u;e>a&&(c-=e,u=t)}function v(t){r||(i&&(i=clearTimeout(i)),t-s>24?(t<1/0&&(i=setTimeout(y,t-f.now()-c)),o&&(o=clearInterval(o))):(o||(u=f.now(),o=setInterval(m,a)),r=1,h(y)))}p.prototype=b.prototype={constructor:p,restart:function(t,r,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?l():+i)+(null==r?0:+r),this._next||n===this||(n?n._next=this:e=this,n=this),this._call=t,this._time=i,v()},stop:function(){this._call&&(this._call=null,this._time=1/0,v())}};t.now=l,t.timer=b,t.timerFlush=g,t.timeout=function(t,e,n){var r=new p;return e=null==e?0:+e,r.restart(function(n){r.stop(),t(n+e)},e,n),r},t.interval=function(t,e,n){var r=new p,i=e;return null==e?(r.restart(t,e,n),r):(e=+e,n=null==n?l():+n,r.restart(function o(a){a+=i,r.restart(o,i+=e,n),t(a)},e,n),r)},Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n):"function"==typeof define&&define.amd?define(["exports"],i):i(r.d3=r.d3||{})},{}],244:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i,o,a){"use strict";var u=n.dispatch("start","end","interrupt"),s=[],c=0,f=1,h=2,l=3,d=4,p=5,b=6,g=function(t,e,n,i,o,a){var g=t.__transition;if(g){if(n in g)return}else t.__transition={};!function(t,e,n){var i,o=t.__transition;function a(c){var p,g,y,m;if(n.state!==f)return s();for(p in o)if((m=o[p]).name===n.name){if(m.state===l)return r.timeout(a);m.state===d?(m.state=b,m.timer.stop(),m.on.call("interrupt",t,t.__data__,m.index,m.group),delete o[p]):+p<e&&(m.state=b,m.timer.stop(),delete o[p])}if(r.timeout(function(){n.state===l&&(n.state=d,n.timer.restart(u,n.delay,n.time),u(c))}),n.state=h,n.on.call("start",t,t.__data__,n.index,n.group),n.state===h){for(n.state=l,i=new Array(y=n.tween.length),p=0,g=-1;p<y;++p)(m=n.tween[p].value.call(t,t.__data__,n.index,n.group))&&(i[++g]=m);i.length=g+1}}function u(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(s),n.state=p,1),o=-1,a=i.length;++o<a;)i[o].call(null,r);n.state===p&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){for(var r in n.state=b,n.timer.stop(),delete o[e],o)return;delete t.__transition}o[e]=n,n.timer=r.timer(function(t){n.state=f,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)},0,n.time)}(t,n,{name:e,index:i,group:o,on:u,tween:s,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:c})};function y(t,e){var n=v(t,e);if(n.state>c)throw new Error("too late; already scheduled");return n}function m(t,e){var n=v(t,e);if(n.state>h)throw new Error("too late; already started");return n}function v(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var _=function(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>h&&n.state<p,n.state=b,n.timer.stop(),r&&n.on.call("interrupt",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}};function w(t,e,n){var r=t._id;return t.each(function(){var t=m(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return v(t,r).value[e]}}var x=function(t,e){var n;return("number"==typeof e?i.interpolateNumber:e instanceof o.color?i.interpolateRgb:(n=o.color(e))?(e=n,i.interpolateRgb):i.interpolateString)(t,e)};var A=e.selection.prototype.constructor;var E=0;function M(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function C(t){return e.selection().transition(t)}function S(){return++E}var B=e.selection.prototype;M.prototype=C.prototype={constructor:M,select:function(t){var n=this._name,r=this._id;"function"!=typeof t&&(t=e.selector(t));for(var i=this._groups,o=i.length,a=new Array(o),u=0;u<o;++u)for(var s,c,f=i[u],h=f.length,l=a[u]=new Array(h),d=0;d<h;++d)(s=f[d])&&(c=t.call(s,s.__data__,d,f))&&("__data__"in s&&(c.__data__=s.__data__),l[d]=c,g(l[d],n,r,d,l,v(s,r)));return new M(a,this._parents,n,r)},selectAll:function(t){var n=this._name,r=this._id;"function"!=typeof t&&(t=e.selectorAll(t));for(var i=this._groups,o=i.length,a=[],u=[],s=0;s<o;++s)for(var c,f=i[s],h=f.length,l=0;l<h;++l)if(c=f[l]){for(var d,p=t.call(c,c.__data__,l,f),b=v(c,r),y=0,m=p.length;y<m;++y)(d=p[y])&&g(d,n,r,y,p,b);a.push(p),u.push(c)}return new M(a,u,n,r)},filter:function(t){"function"!=typeof t&&(t=e.matcher(t));for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o)for(var a,u=n[o],s=u.length,c=i[o]=[],f=0;f<s;++f)(a=u[f])&&t.call(a,a.__data__,f,u)&&c.push(a);return new M(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var s,c=e[u],f=n[u],h=c.length,l=a[u]=new Array(h),d=0;d<h;++d)(s=c[d]||f[d])&&(l[d]=s);for(;u<r;++u)a[u]=e[u];return new M(a,this._parents,this._name,this._id)},selection:function(){return new A(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=S(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],s=u.length,c=0;c<s;++c)if(a=u[c]){var f=v(a,e);g(a,t,n,c,u,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new M(r,this._parents,t,n)},call:B.call,nodes:B.nodes,node:B.node,size:B.size,empty:B.empty,each:B.each,on:function(t,e){var n=this._id;return arguments.length<2?v(this.node(),n).on.on(t):this.each(function(t,e,n){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?y:m;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(e,n),a.on=i}}(n,t,e))},attr:function(t,n){var r=e.namespace(t),o="transform"===r?i.interpolateTransformSvg:x;return this.attrTween(t,"function"==typeof n?(r.local?function(t,e,n){var r,i,o;return function(){var a,u=n(this);if(null!=u)return(a=this.getAttributeNS(t.space,t.local))===u?null:a===r&&u===i?o:o=e(r=a,i=u);this.removeAttributeNS(t.space,t.local)}}:function(t,e,n){var r,i,o;return function(){var a,u=n(this);if(null!=u)return(a=this.getAttribute(t))===u?null:a===r&&u===i?o:o=e(r=a,i=u);this.removeAttribute(t)}})(r,o,w(this,"attr."+t,n)):null==n?(r.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(r):(r.local?function(t,e,n){var r,i;return function(){var o=this.getAttributeNS(t.space,t.local);return o===n?null:o===r?i:i=e(r=o,n)}}:function(t,e,n){var r,i;return function(){var o=this.getAttribute(t);return o===n?null:o===r?i:i=e(r=o,n)}})(r,o,n+""))},attrTween:function(t,n){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;var i=e.namespace(t);return this.tween(r,(i.local?function(t,e){function n(){var n=this,r=e.apply(n,arguments);return r&&function(e){n.setAttributeNS(t.space,t.local,r(e))}}return n._value=e,n}:function(t,e){function n(){var n=this,r=e.apply(n,arguments);return r&&function(e){n.setAttribute(t,r(e))}}return n._value=e,n})(i,n))},style:function(t,n,r){var o="transform"==(t+="")?i.interpolateTransformCss:x;return null==n?this.styleTween(t,function(t,n){var r,i,o;return function(){var a=e.style(this,t),u=(this.style.removeProperty(t),e.style(this,t));return a===u?null:a===r&&u===i?o:o=n(r=a,i=u)}}(t,o)).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof n?function(t,n,r){var i,o,a;return function(){var u=e.style(this,t),s=r(this);return null==s&&(this.style.removeProperty(t),s=e.style(this,t)),u===s?null:u===i&&s===o?a:a=n(i=u,o=s)}}(t,o,w(this,"style."+t,n)):function(t,n,r){var i,o;return function(){var a=e.style(this,t);return a===r?null:a===i?o:o=n(i=a,r)}}(t,o,n+""),r)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){function r(){var r=this,i=e.apply(r,arguments);return i&&function(e){r.style.setProperty(t,i(e),n)}}return r._value=e,r}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(w(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=v(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?function(t,e){var n,r;return function(){var i=m(this,t),o=i.tween;if(o!==n)for(var a=0,u=(r=n=o).length;a<u;++a)if(r[a].name===e){(r=r.slice()).splice(a,1);break}i.tween=r}}:function(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=m(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var u={name:e,value:n},s=0,c=i.length;s<c;++s)if(i[s].name===e){i[s]=u;break}s===c&&i.push(u)}o.tween=i}})(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){y(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){y(this,t).delay=e}})(e,t)):v(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){m(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){m(this,t).duration=e}})(e,t)):v(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){m(this,t).ease=e}}(e,t)):v(this.node(),e).ease}};var k={time:null,delay:0,duration:250,ease:a.easeCubicInOut};function I(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return k.time=r.now(),k;return n}e.selection.prototype.interrupt=function(t){return this.each(function(){_(this,t)})},e.selection.prototype.transition=function(t){var e,n;t instanceof M?(e=t._id,t=t._name):(e=S(),(n=k).time=r.now(),t=null==t?null:t+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var u,s=i[a],c=s.length,f=0;f<c;++f)(u=s[f])&&g(u,t,e,f,s,n||I(u,e));return new M(i,this._parents,t,e)};var F=[null];t.transition=C,t.active=function(t,e){var n,r,i=t.__transition;if(i)for(r in e=null==e?null:e+"",i)if((n=i[r]).state>f&&n.name===e)return new M([[t]],F,e,+r);return null},t.interrupt=_,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("d3-selection"),t("d3-dispatch"),t("d3-timer"),t("d3-interpolate"),t("d3-color"),t("d3-ease")):"function"==typeof define&&define.amd?define(["exports","d3-selection","d3-dispatch","d3-timer","d3-interpolate","d3-color","d3-ease"],i):i(r.d3=r.d3||{},r.d3,r.d3,r.d3,r.d3,r.d3,r.d3)},{"d3-color":222,"d3-dispatch":223,"d3-ease":226,"d3-interpolate":231,"d3-selection":239,"d3-timer":243}],245:[function(t,e,n){var r,i;r=this,i=function(t){"use strict";var e=function(t){return function(){return t}};function n(t){return t[0]}function r(t){return t[1]}function i(){this._=null}function o(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function a(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function u(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function s(t){for(;t.L;)t=t.L;return t}function c(t,e,n,r){var i=[null,null],o=F.push(i)-1;return i.left=t,i.right=e,n&&h(i,t,e,n),r&&h(i,e,t,r),k[t.index].halfedges.push(o),k[e.index].halfedges.push(o),i}function f(t,e,n){var r=[e,n];return r.left=t,r}function h(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function l(t,e,n,r,i){var o,a=t[0],u=t[1],s=a[0],c=a[1],f=0,h=1,l=u[0]-s,d=u[1]-c;if(o=e-s,l||!(o>0)){if(o/=l,l<0){if(o<f)return;o<h&&(h=o)}else if(l>0){if(o>h)return;o>f&&(f=o)}if(o=r-s,l||!(o<0)){if(o/=l,l<0){if(o>h)return;o>f&&(f=o)}else if(l>0){if(o<f)return;o<h&&(h=o)}if(o=n-c,d||!(o>0)){if(o/=d,d<0){if(o<f)return;o<h&&(h=o)}else if(d>0){if(o>h)return;o>f&&(f=o)}if(o=i-c,d||!(o<0)){if(o/=d,d<0){if(o>h)return;o>f&&(f=o)}else if(d>0){if(o<f)return;o<h&&(h=o)}return!(f>0||h<1)||(f>0&&(t[0]=[s+f*l,c+f*d]),h<1&&(t[1]=[s+h*l,c+h*d]),!0)}}}}}function d(t,e,n,r,i){var o=t[1];if(o)return!0;var a,u,s=t[0],c=t.left,f=t.right,h=c[0],l=c[1],d=f[0],p=f[1],b=(h+d)/2,g=(l+p)/2;if(p===l){if(b<e||b>=r)return;if(h>d){if(s){if(s[1]>=i)return}else s=[b,n];o=[b,i]}else{if(s){if(s[1]<n)return}else s=[b,i];o=[b,n]}}else if(u=g-(a=(h-d)/(p-l))*b,a<-1||a>1)if(h>d){if(s){if(s[1]>=i)return}else s=[(n-u)/a,n];o=[(i-u)/a,i]}else{if(s){if(s[1]<n)return}else s=[(i-u)/a,i];o=[(n-u)/a,n]}else if(l<p){if(s){if(s[0]>=r)return}else s=[e,a*e+u];o=[r,a*r+u]}else{if(s){if(s[0]<e)return}else s=[r,a*r+u];o=[e,a*e+u]}return t[0]=s,t[1]=o,!0}function p(t,e){var n=t.site,r=e.left,i=e.right;return n===i&&(i=r,r=n),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(n===r?(r=e[1],i=e[0]):(r=e[0],i=e[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function b(t,e){return e[+(e.left!==t.site)]}function g(t,e){return e[+(e.left===t.site)]}i.prototype={constructor:i,insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=s(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(a(this,n),n=(t=n).U),n.C=!1,r.C=!0,u(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(u(this,n),n=(t=n).U),n.C=!1,r.C=!0,a(this,r)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,i=t.U,o=t.L,c=t.R;if(n=o?c?s(c):o:c,i?i.L===t?i.L=n:i.R=n:this._=n,o&&c?(r=n.C,n.C=t.C,n.L=o,o.U=n,n!==c?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=c,c.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,a(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,u(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,a(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,u(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,a(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,u(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var y,m=[];function v(t){var e=t.P,n=t.N;if(e&&n){var r=e.site,i=t.site,a=n.site;if(r!==a){var u=i[0],s=i[1],c=r[0]-u,f=r[1]-s,h=a[0]-u,l=a[1]-s,d=2*(c*l-f*h);if(!(d>=-T)){var p=c*c+f*f,b=h*h+l*l,g=(l*p-f*b)/d,v=(c*b-h*p)/d,_=m.pop()||new function(){o(this),this.x=this.y=this.arc=this.site=this.cy=null};_.arc=t,_.site=i,_.x=g+u,_.y=(_.cy=v+s)+Math.sqrt(g*g+v*v),t.circle=_;for(var w=null,x=I._;x;)if(_.y<x.y||_.y===x.y&&_.x<=x.x){if(!x.L){w=x.P;break}x=x.L}else{if(!x.R){w=x;break}x=x.R}I.insert(w,_),w||(y=_)}}}}function _(t){var e=t.circle;e&&(e.P||(y=e.N),I.remove(e),m.push(e),o(e),t.circle=null)}var w=[];function x(t){var e=w.pop()||new function(){o(this),this.edge=this.site=this.circle=null};return e.site=t,e}function A(t){_(t),B.remove(t),w.push(t),o(t)}function E(t){var e=t.circle,n=e.x,r=e.cy,i=[n,r],o=t.P,a=t.N,u=[t];A(t);for(var s=o;s.circle&&Math.abs(n-s.circle.x)<D&&Math.abs(r-s.circle.cy)<D;)o=s.P,u.unshift(s),A(s),s=o;u.unshift(s),_(s);for(var f=a;f.circle&&Math.abs(n-f.circle.x)<D&&Math.abs(r-f.circle.cy)<D;)a=f.N,u.push(f),A(f),f=a;u.push(f),_(f);var l,d=u.length;for(l=1;l<d;++l)f=u[l],s=u[l-1],h(f.edge,s.site,f.site,i);s=u[0],(f=u[d-1]).edge=c(s.site,f.site,null,i),v(s),v(f)}function M(t){for(var e,n,r,i,o=t[0],a=t[1],u=B._;u;)if((r=C(u,a)-o)>D)u=u.L;else{if(!((i=o-S(u,a))>D)){r>-D?(e=u.P,n=u):i>-D?(e=u,n=u.N):e=n=u;break}if(!u.R){e=u;break}u=u.R}!function(t){k[t.index]={site:t,halfedges:[]}}(t);var s=x(t);if(B.insert(e,s),e||n){if(e===n)return _(e),n=x(e.site),B.insert(s,n),s.edge=n.edge=c(e.site,s.site),v(e),void v(n);if(n){_(e),_(n);var f=e.site,l=f[0],d=f[1],p=t[0]-l,b=t[1]-d,g=n.site,y=g[0]-l,m=g[1]-d,w=2*(p*m-b*y),A=p*p+b*b,E=y*y+m*m,M=[(m*A-b*E)/w+l,(p*E-y*A)/w+d];h(n.edge,f,g,M),s.edge=c(f,t,null,M),n.edge=c(t,g,null,M),v(e),v(n)}else s.edge=c(e.site,s.site)}}function C(t,e){var n=t.site,r=n[0],i=n[1],o=i-e;if(!o)return r;var a=t.P;if(!a)return-1/0;var u=(n=a.site)[0],s=n[1],c=s-e;if(!c)return u;var f=u-r,h=1/o-1/c,l=f/c;return h?(-l+Math.sqrt(l*l-2*h*(f*f/(-2*c)-s+c/2+i-o/2)))/h+r:(r+u)/2}function S(t,e){var n=t.N;if(n)return C(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var B,k,I,F,D=1e-6,T=1e-12;function N(t,e){return e[1]-t[1]||e[0]-t[0]}function j(t,e){var n,r,o,a=t.sort(N).pop();for(F=[],k=new Array(t.length),B=new i,I=new i;;)if(o=y,a&&(!o||a[1]<o.y||a[1]===o.y&&a[0]<o.x))a[0]===n&&a[1]===r||(M(a),n=a[0],r=a[1]),a=t.pop();else{if(!o)break;E(o.arc)}if(function(){for(var t,e,n,r,i=0,o=k.length;i<o;++i)if((t=k[i])&&(r=(e=t.halfedges).length)){var a=new Array(r),u=new Array(r);for(n=0;n<r;++n)a[n]=n,u[n]=p(t,F[e[n]]);for(a.sort(function(t,e){return u[e]-u[t]}),n=0;n<r;++n)u[n]=e[a[n]];for(n=0;n<r;++n)e[n]=u[n]}}(),e){var u=+e[0][0],s=+e[0][1],c=+e[1][0],h=+e[1][1];!function(t,e,n,r){for(var i,o=F.length;o--;)d(i=F[o],t,e,n,r)&&l(i,t,e,n,r)&&(Math.abs(i[0][0]-i[1][0])>D||Math.abs(i[0][1]-i[1][1])>D)||delete F[o]}(u,s,c,h),function(t,e,n,r){var i,o,a,u,s,c,h,l,d,p,y,m,v=k.length,_=!0;for(i=0;i<v;++i)if(o=k[i]){for(a=o.site,u=(s=o.halfedges).length;u--;)F[s[u]]||s.splice(u,1);for(u=0,c=s.length;u<c;)y=(p=g(o,F[s[u]]))[0],m=p[1],l=(h=b(o,F[s[++u%c]]))[0],d=h[1],(Math.abs(y-l)>D||Math.abs(m-d)>D)&&(s.splice(u,0,F.push(f(a,p,Math.abs(y-t)<D&&r-m>D?[t,Math.abs(l-t)<D?d:r]:Math.abs(m-r)<D&&n-y>D?[Math.abs(d-r)<D?l:n,r]:Math.abs(y-n)<D&&m-e>D?[n,Math.abs(l-n)<D?d:e]:Math.abs(m-e)<D&&y-t>D?[Math.abs(d-e)<D?l:t,e]:null))-1),++c);c&&(_=!1)}if(_){var w,x,A,E=1/0;for(i=0,_=null;i<v;++i)(o=k[i])&&(A=(w=(a=o.site)[0]-t)*w+(x=a[1]-e)*x)<E&&(E=A,_=o);if(_){var M=[t,e],C=[t,r],S=[n,r],B=[n,e];_.halfedges.push(F.push(f(a=_.site,M,C))-1,F.push(f(a,C,S))-1,F.push(f(a,S,B))-1,F.push(f(a,B,M))-1)}}for(i=0;i<v;++i)(o=k[i])&&(o.halfedges.length||delete k[i])}(u,s,c,h)}this.edges=F,this.cells=k,B=I=F=k=null}j.prototype={constructor:j,polygons:function(){var t=this.edges;return this.cells.map(function(e){var n=e.halfedges.map(function(n){return b(e,t[n])});return n.data=e.site.data,n})},triangles:function(){var t=[],e=this.edges;return this.cells.forEach(function(n,r){if(o=(i=n.halfedges).length)for(var i,o,a,u,s,c,f=n.site,h=-1,l=e[i[o-1]],d=l.left===f?l.right:l.left;++h<o;)a=d,d=(l=e[i[h]]).left===f?l.right:l.left,a&&d&&r<a.index&&r<d.index&&(s=a,c=d,((u=f)[0]-c[0])*(s[1]-u[1])-(u[0]-s[0])*(c[1]-u[1])<0)&&t.push([f.data,a.data,d.data])}),t},links:function(){return this.edges.filter(function(t){return t.right}).map(function(t){return{source:t.left.data,target:t.right.data}})},find:function(t,e,n){for(var r,i,o=this,a=o._found||0,u=o.cells.length;!(i=o.cells[a]);)if(++a>=u)return null;var s=t-i.site[0],c=e-i.site[1],f=s*s+c*c;do{i=o.cells[r=a],a=null,i.halfedges.forEach(function(n){var r=o.edges[n],u=r.left;if(u!==i.site&&u||(u=r.right)){var s=t-u[0],c=e-u[1],h=s*s+c*c;h<f&&(f=h,a=u.index)}})}while(null!==a);return o._found=r,null==n||f<=n*n?i.site:null}};t.voronoi=function(){var t=n,i=r,o=null;function a(e){return new j(e.map(function(n,r){var o=[Math.round(t(n,r,e)/D)*D,Math.round(i(n,r,e)/D)*D];return o.index=r,o.data=n,o}),o)}return a.polygons=function(t){return a(t).polygons()},a.links=function(t){return a(t).links()},a.triangles=function(t){return a(t).triangles()},a.x=function(n){return arguments.length?(t="function"==typeof n?n:e(+n),a):t},a.y=function(t){return arguments.length?(i="function"==typeof t?t:e(+t),a):i},a.extent=function(t){return arguments.length?(o=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],a):o&&[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},a.size=function(t){return arguments.length?(o=null==t?null:[[0,0],[+t[0],+t[1]]],a):o&&[o[1][0]-o[0][0],o[1][1]-o[0][1]]},a},Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n):"function"==typeof define&&define.amd?define(["exports"],i):i(r.d3=r.d3||{})},{}],246:[function(t,e,n){var r,i;r=this,i=function(t,e,n,r,i,o){"use strict";var a=function(t){return function(){return t}};function u(t,e,n){this.k=t,this.x=e,this.y=n}u.prototype={constructor:u,scale:function(t){return 1===t?this:new u(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new u(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var s=new u(1,0,0);function c(t){return t.__zoom||s}function f(){i.event.stopImmediatePropagation()}c.prototype=u.prototype;var h=function(){i.event.preventDefault(),i.event.stopImmediatePropagation()};function l(){return!i.event.button}function d(){var t,e,n=this;return n instanceof SVGElement?(t=(n=n.ownerSVGElement||n).width.baseVal.value,e=n.height.baseVal.value):(t=n.clientWidth,e=n.clientHeight),[[0,0],[t,e]]}function p(){return this.__zoom||s}function b(){return-i.event.deltaY*(i.event.deltaMode?120:1)/500}function g(){return"ontouchstart"in this}function y(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}t.zoom=function(){var t,c,m=l,v=d,_=y,w=b,x=g,A=[0,1/0],E=[[-1/0,-1/0],[1/0,1/0]],M=250,C=r.interpolateZoom,S=[],B=e.dispatch("start","zoom","end"),k=500,I=150,F=0;function D(t){t.property("__zoom",p).on("wheel.zoom",U).on("mousedown.zoom",P).on("dblclick.zoom",H).filter(x).on("touchstart.zoom",z).on("touchmove.zoom",V).on("touchend.zoom touchcancel.zoom",X).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function T(t,e){return(e=Math.max(A[0],Math.min(A[1],e)))===t.k?t:new u(e,t.x,t.y)}function N(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new u(t.k,r,i)}function j(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function R(t,e,n){t.on("start.zoom",function(){O(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){O(this,arguments).end()}).tween("zoom",function(){var t=arguments,r=O(this,t),i=v.apply(this,t),o=n||j(i),a=Math.max(i[1][0]-i[0][0],i[1][1]-i[0][1]),s=this.__zoom,c="function"==typeof e?e.apply(this,t):e,f=C(s.invert(o).concat(a/s.k),c.invert(o).concat(a/c.k));return function(t){if(1===t)t=c;else{var e=f(t),n=a/e[2];t=new u(n,o[0]-e[0]*n,o[1]-e[1]*n)}r.zoom(null,t)}})}function O(t,e){for(var n,r=0,i=S.length;r<i;++r)if((n=S[r]).that===t)return n;return new L(t,e)}function L(t,e){this.that=t,this.args=e,this.index=-1,this.active=0,this.extent=v.apply(t,e)}function U(){if(m.apply(this,arguments)){var t=O(this,arguments),e=this.__zoom,n=Math.max(A[0],Math.min(A[1],e.k*Math.pow(2,w.apply(this,arguments)))),r=i.mouse(this);if(t.wheel)t.mouse[0][0]===r[0]&&t.mouse[0][1]===r[1]||(t.mouse[1]=e.invert(t.mouse[0]=r)),clearTimeout(t.wheel);else{if(e.k===n)return;t.mouse=[r,e.invert(r)],o.interrupt(this),t.start()}h(),t.wheel=setTimeout(function(){t.wheel=null,t.end()},I),t.zoom("mouse",_(N(T(e,n),t.mouse[0],t.mouse[1]),t.extent,E))}}function P(){if(!c&&m.apply(this,arguments)){var t=O(this,arguments),e=i.select(i.event.view).on("mousemove.zoom",function(){if(h(),!t.moved){var e=i.event.clientX-a,n=i.event.clientY-u;t.moved=e*e+n*n>F}t.zoom("mouse",_(N(t.that.__zoom,t.mouse[0]=i.mouse(t.that),t.mouse[1]),t.extent,E))},!0).on("mouseup.zoom",function(){e.on("mousemove.zoom mouseup.zoom",null),n.dragEnable(i.event.view,t.moved),h(),t.end()},!0),r=i.mouse(this),a=i.event.clientX,u=i.event.clientY;n.dragDisable(i.event.view),f(),t.mouse=[r,this.__zoom.invert(r)],o.interrupt(this),t.start()}}function H(){if(m.apply(this,arguments)){var t=this.__zoom,e=i.mouse(this),n=t.invert(e),r=t.k*(i.event.shiftKey?.5:2),o=_(N(T(t,r),e,n),v.apply(this,arguments),E);h(),M>0?i.select(this).transition().duration(M).call(R,o,e):i.select(this).call(D.transform,o)}}function z(){if(m.apply(this,arguments)){var e,n,r,a,u=O(this,arguments),s=i.event.changedTouches,c=s.length;for(f(),n=0;n<c;++n)r=s[n],a=[a=i.touch(this,s,r.identifier),this.__zoom.invert(a),r.identifier],u.touch0?u.touch1||(u.touch1=a):(u.touch0=a,e=!0);if(t&&(t=clearTimeout(t),!u.touch1))return u.end(),void((a=i.select(this).on("dblclick.zoom"))&&a.apply(this,arguments));e&&(t=setTimeout(function(){t=null},k),o.interrupt(this),u.start())}}function V(){var e,n,r,o,a=O(this,arguments),u=i.event.changedTouches,s=u.length;for(h(),t&&(t=clearTimeout(t)),e=0;e<s;++e)n=u[e],r=i.touch(this,u,n.identifier),a.touch0&&a.touch0[2]===n.identifier?a.touch0[0]=r:a.touch1&&a.touch1[2]===n.identifier&&(a.touch1[0]=r);if(n=a.that.__zoom,a.touch1){var c=a.touch0[0],f=a.touch0[1],l=a.touch1[0],d=a.touch1[1],p=(p=l[0]-c[0])*p+(p=l[1]-c[1])*p,b=(b=d[0]-f[0])*b+(b=d[1]-f[1])*b;n=T(n,Math.sqrt(p/b)),r=[(c[0]+l[0])/2,(c[1]+l[1])/2],o=[(f[0]+d[0])/2,(f[1]+d[1])/2]}else{if(!a.touch0)return;r=a.touch0[0],o=a.touch0[1]}a.zoom("touch",_(N(n,r,o),a.extent,E))}function X(){var t,e,n=O(this,arguments),r=i.event.changedTouches,o=r.length;for(f(),c&&clearTimeout(c),c=setTimeout(function(){c=null},k),t=0;t<o;++t)e=r[t],n.touch0&&n.touch0[2]===e.identifier?delete n.touch0:n.touch1&&n.touch1[2]===e.identifier&&delete n.touch1;n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0?n.touch0[1]=this.__zoom.invert(n.touch0[0]):n.end()}return D.transform=function(t,e){var n=t.selection?t.selection():t;n.property("__zoom",p),t!==n?R(t,e):n.interrupt().each(function(){O(this,arguments).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()})},D.scaleBy=function(t,e){D.scaleTo(t,function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)})},D.scaleTo=function(t,e){D.transform(t,function(){var t=v.apply(this,arguments),n=this.__zoom,r=j(t),i=n.invert(r),o="function"==typeof e?e.apply(this,arguments):e;return _(N(T(n,o),r,i),t,E)})},D.translateBy=function(t,e,n){D.transform(t,function(){return _(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),v.apply(this,arguments),E)})},D.translateTo=function(t,e,n){D.transform(t,function(){var t=v.apply(this,arguments),r=this.__zoom,i=j(t);return _(s.translate(i[0],i[1]).scale(r.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,E)})},L.prototype={start:function(){return 1==++this.active&&(this.index=S.push(this)-1,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(S.splice(this.index,1),this.index=-1,this.emit("end")),this},emit:function(t){i.customEvent(new function(t,e,n){this.target=t,this.type=e,this.transform=n}(D,t,this.that.__zoom),B.apply,B,[t,this.that,this.args])}},D.wheelDelta=function(t){return arguments.length?(w="function"==typeof t?t:a(+t),D):w},D.filter=function(t){return arguments.length?(m="function"==typeof t?t:a(!!t),D):m},D.touchable=function(t){return arguments.length?(x="function"==typeof t?t:a(!!t),D):x},D.extent=function(t){return arguments.length?(v="function"==typeof t?t:a([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),D):v},D.scaleExtent=function(t){return arguments.length?(A[0]=+t[0],A[1]=+t[1],D):[A[0],A[1]]},D.translateExtent=function(t){return arguments.length?(E[0][0]=+t[0][0],E[1][0]=+t[1][0],E[0][1]=+t[0][1],E[1][1]=+t[1][1],D):[[E[0][0],E[0][1]],[E[1][0],E[1][1]]]},D.constrain=function(t){return arguments.length?(_=t,D):_},D.duration=function(t){return arguments.length?(M=+t,D):M},D.interpolate=function(t){return arguments.length?(C=t,D):C},D.on=function(){var t=B.on.apply(B,arguments);return t===B?D:t},D.clickDistance=function(t){return arguments.length?(F=(t=+t)*t,D):Math.sqrt(F)},D},t.zoomTransform=c,t.zoomIdentity=s,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?i(n,t("d3-dispatch"),t("d3-drag"),t("d3-interpolate"),t("d3-selection"),t("d3-transition")):"function"==typeof define&&define.amd?define(["exports","d3-dispatch","d3-drag","d3-interpolate","d3-selection","d3-transition"],i):i(r.d3=r.d3||{},r.d3,r.d3,r.d3,r.d3,r.d3)},{"d3-dispatch":223,"d3-drag":224,"d3-interpolate":231,"d3-selection":239,"d3-transition":244}],247:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("d3-array"),i=t("d3-axis"),o=t("d3-brush"),a=t("d3-chord"),u=t("d3-collection"),s=t("d3-color"),c=t("d3-dispatch"),f=t("d3-drag"),h=t("d3-dsv"),l=t("d3-ease"),d=t("d3-force"),p=t("d3-format"),b=t("d3-geo"),g=t("d3-hierarchy"),y=t("d3-interpolate"),m=t("d3-path"),v=t("d3-polygon"),_=t("d3-quadtree"),w=t("d3-queue"),x=t("d3-random"),A=t("d3-request"),E=t("d3-scale"),M=t("d3-selection"),C=t("d3-shape"),S=t("d3-time"),B=t("d3-time-format"),k=t("d3-timer"),I=t("d3-transition"),F=t("d3-voronoi"),D=t("d3-zoom");n.version="4.13.0",Object.keys(r).forEach(function(t){n[t]=r[t]}),Object.keys(i).forEach(function(t){n[t]=i[t]}),Object.keys(o).forEach(function(t){n[t]=o[t]}),Object.keys(a).forEach(function(t){n[t]=a[t]}),Object.keys(u).forEach(function(t){n[t]=u[t]}),Object.keys(s).forEach(function(t){n[t]=s[t]}),Object.keys(c).forEach(function(t){n[t]=c[t]}),Object.keys(f).forEach(function(t){n[t]=f[t]}),Object.keys(h).forEach(function(t){n[t]=h[t]}),Object.keys(l).forEach(function(t){n[t]=l[t]}),Object.keys(d).forEach(function(t){n[t]=d[t]}),Object.keys(p).forEach(function(t){n[t]=p[t]}),Object.keys(b).forEach(function(t){n[t]=b[t]}),Object.keys(g).forEach(function(t){n[t]=g[t]}),Object.keys(y).forEach(function(t){n[t]=y[t]}),Object.keys(m).forEach(function(t){n[t]=m[t]}),Object.keys(v).forEach(function(t){n[t]=v[t]}),Object.keys(_).forEach(function(t){n[t]=_[t]}),Object.keys(w).forEach(function(t){n[t]=w[t]}),Object.keys(x).forEach(function(t){n[t]=x[t]}),Object.keys(A).forEach(function(t){n[t]=A[t]}),Object.keys(E).forEach(function(t){n[t]=E[t]}),Object.keys(M).forEach(function(t){n[t]=M[t]}),Object.keys(C).forEach(function(t){n[t]=C[t]}),Object.keys(S).forEach(function(t){n[t]=S[t]}),Object.keys(B).forEach(function(t){n[t]=B[t]}),Object.keys(k).forEach(function(t){n[t]=k[t]}),Object.keys(I).forEach(function(t){n[t]=I[t]}),Object.keys(F).forEach(function(t){n[t]=F[t]}),Object.keys(D).forEach(function(t){n[t]=D[t]}),Object.defineProperty(n,"event",{get:function(){return M.event}})},{"d3-array":217,"d3-axis":218,"d3-brush":219,"d3-chord":220,"d3-collection":221,"d3-color":222,"d3-dispatch":223,"d3-drag":224,"d3-dsv":225,"d3-ease":226,"d3-force":227,"d3-format":228,"d3-geo":229,"d3-hierarchy":230,"d3-interpolate":231,"d3-path":232,"d3-polygon":233,"d3-quadtree":234,"d3-queue":235,"d3-random":236,"d3-request":237,"d3-scale":238,"d3-selection":239,"d3-shape":240,"d3-time":242,"d3-time-format":241,"d3-timer":243,"d3-transition":244,"d3-voronoi":245,"d3-zoom":246}],248:[function(t,e,n){var r=t("prefix-style"),i=t("to-camel-case"),o={float:"cssFloat"},a=t("add-px-to-style");function u(t,e,n){var u=o[e];if(void 0===u&&(u=function(t){var e=i(t),n=r(e);return o[e]=o[t]=o[n]=n,n}(e)),u){if(void 0===n)return t.style[u];t.style[u]=a(u,n)}}function s(){2===arguments.length?"string"==typeof arguments[1]?arguments[0].style.cssText=arguments[1]:function(t,e){for(var n in e)e.hasOwnProperty(n)&&u(t,n,e[n])}(arguments[0],arguments[1]):u(arguments[0],arguments[1],arguments[2])}e.exports=s,e.exports.set=s,e.exports.get=function(t,e){return Array.isArray(e)?e.reduce(function(e,n){return e[n]=u(t,n||""),e},{}):u(t,e||"")}},{"add-px-to-style":202,"prefix-style":271,"to-camel-case":280}],249:[function(t,e,n){"use strict";var r=t("trim"),i=t("prefix"),o=i("transform"),a=i("transformOrigin"),u=t("./lib/properties"),s=Object.prototype.hasOwnProperty,c={x:"translateX",y:"translateY",z:"translateZ"};function f(t){return"number"==typeof t?t+="":t=r(t),t}(n=e.exports=function(t,e){var n,r,i,h=[];for(n in e)i=e[n],r=r=s.call(c,n)?c[n]:n,s.call(u,r)?h.push(u[r](f(i))):"origin"!==r?console.warn(r,"is not a valid property"):t.style[a]=i;t.style[o]=h.join(" ")}).get=function(t){return function(t){return t.style[o]}(t)},n.none=function(t){t.style[o]="",t.style[a]=""},n.isSupported=function(){return o.length>0}},{"./lib/properties":251,prefix:272,trim:283}],250:[function(t,e,n){"use strict";e.exports=function(){var t=arguments;return function(){for(var e=arguments,n=t.length-1;n>=0;n--)e=[t[n].apply(this,e)];return e[0]}}},{}],251:[function(t,e,n){"use strict";var r=t("trim"),i=t("./compose"),o=/^-?\d+(\.\d+)?$/;function a(t){return/,/.test(t)||(t=t.split(" ").join(",")),t}function u(t){return function(e){return e.split(",").map(function(e){return e=r(e),o.test(e)&&(e+=t),e}).join(",")}}e.exports={translate:i(function(t){return"translate("+t+")"},u("px"),a),translate3d:i(function(t){return"translate3d("+t+")"},u("px"),a),translateX:i(function(t){return"translateX("+t+")"},u("px")),translateY:i(function(t){return"translateY("+t+")"},u("px")),translateZ:i(function(t){return"translateZ("+t+")"},u("px")),scale:i(function(t){return"scale("+t+")"},a),scale3d:i(function(t){return"scale3d("+t+")"},a),scaleX:function(t){return"scaleX("+t+")"},scaleY:function(t){return"scaleY("+t+")"},scaleZ:function(t){return"scaleZ("+t+")"},rotate:i(function(t){return"rotate("+t+")"},u("deg"),a),rotate3d:i(function(t){return"rotate3d("+t+")"},a),rotateX:i(function(t){return"rotateX("+t+")"},u("deg")),rotateY:i(function(t){return"rotateY("+t+")"},u("deg")),rotateZ:i(function(t){return"rotateZ("+t+")"},u("deg")),skew:i(function(t){return"skew("+t+")"},u("deg"),a),skewX:i(function(t){return"skewX("+t+")"},u("deg")),skewY:i(function(t){return"skewY("+t+")"},u("deg")),matrix:i(function(t){return"matrix("+t+")"},a),matrix3d:i(function(t){return"matrix3d("+t+")"},a),perspective:i(function(t){return"perspective("+t+")"},u("px"))}},{"./compose":250,trim:283}],252:[function(t,e,n){arguments[4][123][0].apply(n,arguments)},{dup:123}],253:[function(t,e,n){var r={};e.exports=function(t,e){if(!r[t]){r[t]=!0;var n=document.createElement("style");n.setAttribute("type","text/css"),"textContent"in n?n.textContent=t:n.styleSheet.cssText=t;var i=document.getElementsByTagName("head")[0];e&&e.prepend?i.insertBefore(n,i.childNodes[0]):i.appendChild(n)}}},{}],254:[function(t,e,n){"use strict";e.exports=function(t){return!!+t&&!Array.isArray(t)&&isFinite(t)||"0"===t||0===t}},{}],255:[function(t,e,n){!function(t){"use strict";function r(t){return"number"==typeof t&&!isNaN(t)||!!(t=(t||"").toString().trim())&&!isNaN(t)}void 0!==n?(void 0!==e&&e.exports&&(n=e.exports=r),n.isNumeric=r):"function"==typeof define&&define.amd?define([],function(){return r}):t.isNumeric=r}(this)},{}],256:[function(t,e,n){"use strict";var r=String.prototype.valueOf,i=Object.prototype.toString,o="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(t){return"string"==typeof t||"object"==typeof t&&(o?function(t){try{return r.call(t),!0}catch(t){return!1}}(t):"[object String]"===i.call(t))}},{}],257:[function(t,e,n){var r=t("lodash.isarguments"),i=t("lodash.isarray");function o(t){return!!t&&"object"==typeof t}var a=9007199254740991;function u(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var s,c=(s="length",function(t){return null==t?void 0:t[s]});function f(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=a}(c(t))}e.exports=function t(e,n,a,s){s||(s=[]);for(var c=-1,h=e.length;++c<h;){var l=e[c];o(l)&&f(l)&&(a||i(l)||r(l))?n?t(l,n,a,s):u(s,l):a||(s[s.length]=l)}return s}},{"lodash.isarguments":263,"lodash.isarray":264}],258:[function(t,e,n){var r=t("lodash.isfunction");e.exports=function(t,e){for(var n=-1,i=e.length,o=-1,a=[];++n<i;){var u=e[n];r(t[u])&&(a[++o]=u)}return a}},{"lodash.isfunction":265}],259:[function(t,e,n){var r=t("lodash._root"),i=1,o=2,a=4,u=8,s=16,c=32,f=64,h=128,l=512,d="Expected a function",p=1/0,b=9007199254740991,g=1.7976931348623157e308,y=NaN,m="__lodash_placeholder__",v="[object Function]",_="[object GeneratorFunction]",w=/^\s+|\s+$/g,x=/^[-+]0x[0-9a-f]+$/i,A=/^0b[01]+$/i,E=/^0o[0-7]+$/i,M=/^(?:0|[1-9]\d*)$/,C=parseInt;function S(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function B(t,e){return t="number"==typeof t||M.test(t)?+t:-1,e=null==e?b:e,t>-1&&t%1==0&&t<e}function k(t,e){for(var n=-1,r=t.length,i=-1,o=[];++n<r;)t[n]===e&&(t[n]=m,o[++i]=n);return o}var I=Object.prototype.toString,F=Math.max,D=Math.min,T=function(){function t(){}return function(e){if(L(e)){t.prototype=e;var n=new t;t.prototype=void 0}return n||{}}}();function N(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function j(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=T(t.prototype),r=t.apply(n,e);return L(r)?r:n}}function R(t,e,n,a,c,f,d,p,b,g){var y=e&h,m=e&i,v=e&o,_=e&u,w=e&s,x=e&l,A=v?void 0:j(t);return function i(){for(var o=arguments.length,u=o,s=Array(o);u--;)s[u]=arguments[u];if(a&&(s=function(t,e,n){for(var r=n.length,i=-1,o=F(t.length-r,0),a=-1,u=e.length,s=Array(u+o);++a<u;)s[a]=e[a];for(;++i<r;)s[n[i]]=t[i];for(;o--;)s[a++]=t[i++];return s}(s,a,c)),f&&(s=function(t,e,n){for(var r=-1,i=n.length,o=-1,a=F(t.length-i,0),u=-1,s=e.length,c=Array(a+s);++o<a;)c[o]=t[o];for(var f=o;++u<s;)c[f+u]=e[u];for(;++r<i;)c[f+n[r]]=t[o++];return c}(s,f,d)),_||w){var h=i.placeholder,l=k(s,h);if((o-=l.length)<g)return O(t,e,R,h,n,s,l,p,b,g-o)}var E=m?n:this,M=v?E[t]:t;return p?s=function(t,e){for(var n=t.length,r=D(e.length,n),i=N(t);r--;){var o=e[r];t[r]=B(o,n)?i[o]:void 0}return t}(s,p):x&&s.length>1&&s.reverse(),y&&b<s.length&&(s.length=b),this&&this!==r&&this instanceof i&&(M=A||j(M)),M.apply(E,s)}}function O(t,e,n,r,s,h,l,d,p,b){var g=e&u,y=d?N(d):void 0;e|=g?c:f,(e&=~(g?f:c))&a||(e&=~(i|o));var m=n(t,e,s,g?h:void 0,g?l:void 0,g?void 0:h,g?void 0:l,y,p,b);return m.placeholder=r,m}function L(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function U(t){if(!t)return 0===t?t:0;if((t=function(t){if(L(t)){var e=function(t){var e=L(t)?I.call(t):"";return e==v||e==_}(t.valueOf)?t.valueOf():t;t=L(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(w,"");var n=A.test(t);return n||E.test(t)?C(t.slice(2),n?2:8):x.test(t)?y:+t}(t))===p||t===-p)return(t<0?-1:1)*g;var e=t%1;return t==t?e?t-e:t:0}e.exports=function(t,e,n,a,h,l,p,b){var g=e&o;if(!g&&"function"!=typeof t)throw new TypeError(d);var y=a?a.length:0;if(y||(e&=~(c|f),a=h=void 0),p=void 0===p?p:F(U(p),0),b=void 0===b?b:U(b),y-=h?h.length:0,e&f){var m=a,v=h;a=h=void 0}var _=[t,e,n,a,h,m,v,l,p,b];if(t=_[0],e=_[1],n=_[2],a=_[3],h=_[4],!(b=_[9]=null==_[9]?g?0:t.length:F(_[9]-y,0))&&e&(u|s)&&(e&=~(u|s)),e&&e!=i)w=e==u||e==s?function(t,e,n){var i=j(t);return function o(){for(var a=arguments.length,u=a,s=Array(a),c=this&&this!==r&&this instanceof o?i:t,f=o.placeholder;u--;)s[u]=arguments[u];var h=a<3&&s[0]!==f&&s[a-1]!==f?[]:k(s,f);return(a-=h.length)<n?O(t,e,R,f,void 0,s,h,void 0,void 0,n-a):S(c,this,s)}}(t,e,b):e!=c&&e!=(i|c)||h.length?R.apply(void 0,_):function(t,e,n,o){var a=e&i,u=j(t);return function e(){for(var i=-1,s=arguments.length,c=-1,f=o.length,h=Array(f+s),l=this&&this!==r&&this instanceof e?u:t;++c<f;)h[c]=o[c];for(;s--;)h[c++]=arguments[++i];return S(l,a?n:this,h)}}(t,e,n,a);else var w=function(t,e,n){var o=e&i,a=j(t);return function e(){return(this&&this!==r&&this instanceof e?a:t).apply(o?n:this,arguments)}}(t,e,n);return w}},{"lodash._root":260}],260:[function(t,e,n){(function(t){var r={function:!0,object:!0},i=r[typeof n]&&n&&!n.nodeType?n:void 0,o=r[typeof e]&&e&&!e.nodeType?e:void 0,a=h(i&&o&&"object"==typeof t&&t),u=h(r[typeof self]&&self),s=h(r[typeof window]&&window),c=h(r[typeof this]&&this),f=a||s!==(c&&c.window)&&s||u||c||Function("return this")();function h(t){return t&&t.Object===Object?t:null}e.exports=f}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],261:[function(t,e,n){var r=t("lodash._baseflatten"),i=t("lodash._createwrapper"),o=t("lodash.functions"),a=t("lodash.restparam")(function(t,e){for(var n=-1,a=(e=e.length?r(e):o(t)).length;++n<a;){var u=e[n];t[u]=i(t[u],1,t)}return t});e.exports=a},{"lodash._baseflatten":257,"lodash._createwrapper":259,"lodash.functions":262,"lodash.restparam":267}],262:[function(t,e,n){var r=t("lodash._basefunctions"),i=t("lodash.keysin");e.exports=function(t){return r(t,i(t))}},{"lodash._basefunctions":258,"lodash.keysin":266}],263:[function(t,e,n){var r=9007199254740991,i="[object Arguments]",o="[object Function]",a="[object GeneratorFunction]",u=Object.prototype,s=u.hasOwnProperty,c=u.toString,f=u.propertyIsEnumerable;e.exports=function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&function(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}(t.length)&&!function(t){var e=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}(t)?c.call(t):"";return e==o||e==a}(t)}(t)}(t)&&s.call(t,"callee")&&(!f.call(t,"callee")||c.call(t)==i)}},{}],264:[function(t,e,n){var r="[object Function]",i=/^\[object .+?Constructor\]$/;function o(t){return!!t&&"object"==typeof t}var a,u,s=Object.prototype,c=Function.prototype.toString,f=s.hasOwnProperty,h=s.toString,l=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),d=9007199254740991;var p=(a=Array,function(t){return null!=t&&(function(t){return function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}(t)&&h.call(t)==r}(t)?l.test(c.call(t)):o(t)&&i.test(t))}(u=null==a?void 0:a["isArray"])?u:void 0)||function(t){return o(t)&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=d}(t.length)&&"[object Array]"==h.call(t)};e.exports=p},{}],265:[function(t,e,n){(function(t){var n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",o="[object Null]",a="[object Proxy]",u="[object Undefined]",s="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,f=s||c||Function("return this")(),h=Object.prototype,l=h.hasOwnProperty,d=h.toString,p=f.Symbol,b=p?p.toStringTag:void 0;function g(t){return null==t?void 0===t?u:o:b&&b in Object(t)?function(t){var e=l.call(t,b),n=t[b];try{t[b]=void 0;var r=!0}catch(t){}var i=d.call(t);r&&(e?t[b]=n:delete t[b]);return i}(t):function(t){return d.call(t)}(t)}e.exports=function(t){if(!function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}(t))return!1;var e=g(t);return e==r||e==i||e==n||e==a}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],266:[function(t,e,n){var r=t("lodash.isarguments"),i=t("lodash.isarray"),o=/^\d+$/,a=Object.prototype.hasOwnProperty,u=9007199254740991;function s(t,e){return t="number"==typeof t||o.test(t)?+t:-1,e=null==e?u:e,t>-1&&t%1==0&&t<e}e.exports=function(t){if(null==t)return[];var e,n;n=typeof(e=t),(!e||"object"!=n&&"function"!=n)&&(t=Object(t));var o=t.length;o=o&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=u}(o)&&(i(t)||r(t))&&o||0;for(var c=t.constructor,f=-1,h="function"==typeof c&&c.prototype===t,l=Array(o),d=o>0;++f<o;)l[f]=f+"";for(var p in t)d&&s(p,o)||"constructor"==p&&(h||!a.call(t,p))||l.push(p);return l}},{"lodash.isarguments":263,"lodash.isarray":264}],267:[function(t,e,n){var r="Expected a function",i=Math.max;e.exports=function(t,e){if("function"!=typeof t)throw new TypeError(r);return e=i(void 0===e?t.length-1:+e||0,0),function(){for(var n=arguments,r=-1,o=i(n.length-e,0),a=Array(o);++r<o;)a[r]=n[e+r];switch(e){case 0:return t.call(this,a);case 1:return t.call(this,n[0],a);case 2:return t.call(this,n[0],n[1],a)}var u=Array(e+1);for(r=-1;++r<e;)u[r]=n[r];return u[e]=a,t.apply(this,u)}}},{}],268:[function(t,e,n){var r={tr:{regexp:/\u0130|\u0049|\u0049\u0307/g,map:{"İ":"i",I:"ı","İ":"i"}},az:{regexp:/[\u0130]/g,map:{"İ":"i",I:"ı","İ":"i"}},lt:{regexp:/[\u0049\u004A\u012E\u00CC\u00CD\u0128]/g,map:{I:"i̇",J:"j̇","Į":"į̇","Ì":"i̇̀","Í":"i̇́","Ĩ":"i̇̃"}}};e.exports=function(t,e){var n=r[e];return t=null==t?"":String(t),n&&(t=t.replace(n.regexp,function(t){return n.map[t]})),t.toLowerCase()}},{}],269:[function(t,e,n){(function(n){!function(r){"use strict";var i,o,a,u,s;r?function(){var t=r.crypto||r.msCrypto;if(!i&&t&&t.getRandomValues)try{var e=new Uint8Array(16);u=i=function(){return t.getRandomValues(e),e},i()}catch(t){}if(!i){var n=new Array(16);o=i=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),n[e]=t>>>((3&e)<<3)&255;return n},"undefined"!=typeof console&&console.warn&&console.warn("[SECURITY] node-uuid: crypto not usable, falling back to insecure Math.random()")}}():function(){if("function"==typeof t)try{var e=t("crypto").randomBytes;a=i=e&&function(){return e(16)},i()}catch(t){}}();for(var c="function"==typeof n?n:Array,f=[],h={},l=0;l<256;l++)f[l]=(l+256).toString(16).substr(1),h[f[l]]=l;function d(t,e){var n=e||0,r=f;return r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]}var p=i(),b=[1|p[0],p[1],p[2],p[3],p[4],p[5]],g=16383&(p[6]<<8|p[7]),y=0,m=0;function v(t,e,n){var r=e&&n||0;"string"==typeof t&&(e="binary"===t?new c(16):null,t=null);var o=(t=t||{}).random||(t.rng||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var a=0;a<16;a++)e[r+a]=o[a];return e||d(o)}var _=v;_.v1=function(t,e,n){var r=e&&n||0,i=e||[],o=null!=(t=t||{}).clockseq?t.clockseq:g,a=null!=t.msecs?t.msecs:(new Date).getTime(),u=null!=t.nsecs?t.nsecs:m+1,s=a-y+(u-m)/1e4;if(s<0&&null==t.clockseq&&(o=o+1&16383),(s<0||a>y)&&null==t.nsecs&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");y=a,m=u,g=o;var c=(1e4*(268435455&(a+=122192928e5))+u)%4294967296;i[r++]=c>>>24&255,i[r++]=c>>>16&255,i[r++]=c>>>8&255,i[r++]=255&c;var f=a/4294967296*1e4&268435455;i[r++]=f>>>8&255,i[r++]=255&f,i[r++]=f>>>24&15|16,i[r++]=f>>>16&255,i[r++]=o>>>8|128,i[r++]=255&o;for(var h=t.node||b,l=0;l<6;l++)i[r+l]=h[l];return e||d(i)},_.v4=v,_.parse=function(t,e,n){var r=e&&n||0,i=0;for(e=e||[],t.toLowerCase().replace(/[0-9a-f]{2}/g,function(t){i<16&&(e[r+i++]=h[t])});i<16;)e[r+i++]=0;return e},_.unparse=d,_.BufferClass=c,_._rng=i,_._mathRNG=o,_._nodeRNG=a,_._whatwgRNG=u,void 0!==e&&e.exports?e.exports=_:"function"==typeof define&&define.amd?define(function(){return _}):(s=r.uuid,_.noConflict=function(){return r.uuid=s,_},r.uuid=_)}("undefined"!=typeof window?window:null)}).call(this,t("buffer").Buffer)},{buffer:48,crypto:59}],270:[function(t,e,n){var r=t("sentence-case");e.exports=function(t,e){return r(t,e,"-")}},{"sentence-case":273}],271:[function(t,e,n){var r=null,i=["Webkit","Moz","O","ms"];e.exports=function(t){r||(r=document.createElement("div"));var e=r.style;if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),o=i.length;o>=0;o--){var a=i[o]+n;if(a in e)return a}return!1}},{}],272:[function(t,e,n){function r(t){return t}e.exports=r,e.exports.dash=r,e.exports.dash=r},{}],273:[function(t,e,n){var r=t("lower-case"),i=t("./vendor/non-word-regexp"),o=t("./vendor/camel-case-regexp"),a=t("./vendor/trailing-digit-regexp");e.exports=function(t,e,n){if(null==t)return"";return n=n||" ",t=String(t).replace(o,"$1 $2").replace(a,"$1 $2").replace(i,function(t,e,r){return 0===e||e===r.length-t.length?"":n}),r(t,e)}},{"./vendor/camel-case-regexp":274,"./vendor/non-word-regexp":275,"./vendor/trailing-digit-regexp":276,"lower-case":268}],274:[function(t,e,n){e.exports=/([\u0061-\u007A\u00B5\u00DF-\u00F6\u00F8-\u00FF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0561-\u0587\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD0-\u1FD3\u1FD6\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7FA\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A])([\u0041-\u005A\u00C0-\u00D6\u00D8-\u00DE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA\uFF21-\uFF3A\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])/g},{}],275:[function(t,e,n){e.exports=/[^\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]+/g},{}],276:[function(t,e,n){e.exports=/([\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])([^\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])/g},{}],277:[function(t,e,n){"use strict";var r=t("lodash.bindall"),i=t("dom-transform"),o=t("tinycolor2"),a=t("component-emitter"),u=t("is-number"),s=t("./src/utils/maths/clamp");function c(t){return t=t||{},this.color=null,this.width=0,this.height=0,this.hue=0,this.choosing=!1,this.position={x:0,y:0},this.huePosition=0,this.saturationWidth=0,this.maxHue=0,this.inputIsNumber=!1,r(this,"_onSaturationMouseMove","_onSaturationMouseDown","_onSaturationMouseUp","_onHueMouseDown","_onHueMouseUp","_onHueMouseMove"),this.$el=document.createElement("div"),this.$el.className="Scp",this.$el.innerHTML=['<div class="Scp-saturation">','<div class="Scp-brightness"></div>','<div class="Scp-sbSelector"></div>',"</div>",'<div class="Scp-hue">','<div class="Scp-hSelector"></div>',"</div>"].join("\n"),this.$saturation=this.$el.querySelector(".Scp-saturation"),this.$hue=this.$el.querySelector(".Scp-hue"),this.$sbSelector=this.$el.querySelector(".Scp-sbSelector"),this.$hSelector=this.$el.querySelector(".Scp-hSelector"),this.$saturation.addEventListener("mousedown",this._onSaturationMouseDown),this.$saturation.addEventListener("touchstart",this._onSaturationMouseDown),this.$hue.addEventListener("mousedown",this._onHueMouseDown),this.$hue.addEventListener("touchstart",this._onHueMouseDown),t.el&&this.appendTo(t.el),t.background&&this.setBackgroundColor(t.background),this.setSize(t.width||175,t.height||150),this.setColor(t.color),this}a(c.prototype),c.prototype.appendTo=function(t){return t.appendChild(this.$el),this},c.prototype.remove=function(){this.$saturation.removeEventListener("mousedown",this._onSaturationMouseDown),this.$saturation.removeEventListener("touchstart",this._onSaturationMouseDown),this.$hue.removeEventListener("mousedown",this._onHueMouseDown),this.$hue.removeEventListener("touchstart",this._onHueMouseDown),this._onSaturationMouseUp(),this._onHueMouseUp(),this.off(),this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},c.prototype.setColor=function(t){u(t)?(this.inputIsNumber=!0,t="#"+("00000"+(0|t).toString(16)).substr(-6)):this.inputIsNumber=!1,this.color=o(t);var e=this.color.toHsv();return isNaN(e.h)||(this.hue=e.h),this._moveSelectorTo(this.saturationWidth*e.s,(1-e.v)*this.height),this._moveHueTo((1-this.hue/360)*this.height),this._updateHue(),this},c.prototype.setSize=function(t,e){return this.width=t,this.height=e,this.$el.style.width=this.width+"px",this.$el.style.height=this.height+"px",this.saturationWidth=this.width-25,this.maxHue=this.height-2,this},c.prototype.setBackgroundColor=function(t){u(t)&&(t="#"+("00000"+(0|t).toString(16)).substr(-6)),this.$el.style.padding="5px",this.$el.style.background=o(t).toHexString()},c.prototype.setNoBackground=function(){this.$el.style.padding="0px",this.$el.style.background="none"},c.prototype.onChange=function(t){return this.on("update",t),this.emit("update",this.getHexString()),this},c.prototype.getColor=function(){return this.inputIsNumber?this.getHexNumber():this.color.toString()},c.prototype.getHexString=function(){return this.color.toHexString().toUpperCase()},c.prototype.getHexNumber=function(){return parseInt(this.color.toHex(),16)},c.prototype.getRGB=function(){return this.color.toRgb()},c.prototype.getHSV=function(){return this.color.toHsv()},c.prototype.isDark=function(){return this.color.isDark()},c.prototype.isLight=function(){return this.color.isLight()},c.prototype._moveSelectorTo=function(t,e){this.position.x=s(t,0,this.saturationWidth),this.position.y=s(e,0,this.height),i(this.$sbSelector,{x:this.position.x,y:this.position.y})},c.prototype._updateColorFromPosition=function(){this.color=o({h:this.hue,s:this.position.x/this.saturationWidth,v:1-this.position.y/this.height}),this._updateColor()},c.prototype._moveHueTo=function(t){this.huePosition=s(t,0,this.maxHue),i(this.$hSelector,{y:this.huePosition})},c.prototype._updateHueFromPosition=function(){var t=this.color.toHsv();this.hue=360*(1-this.huePosition/this.maxHue),this.color=o({h:this.hue,s:t.s,v:t.v}),this._updateHue()},c.prototype._updateHue=function(){var t=o({h:this.hue,s:1,v:1});this.$saturation.style.background="linear-gradient(to right, #fff 0%, "+t.toHexString()+" 100%)",this._updateColor()},c.prototype._updateColor=function(){this.$sbSelector.style.background=this.color.toHexString(),this.$sbSelector.style.borderColor=this.color.isDark()?"#FFF":"#000",this.emit("update",this.color.toHexString())},c.prototype._onSaturationMouseDown=function(t){this.choosing=!0;var e=this.$saturation.getBoundingClientRect(),n=0===t.type.indexOf("touch")?t.touches[0].clientX:t.clientX,r=0===t.type.indexOf("touch")?t.touches[0].clientY:t.clientY;this._moveSelectorTo(n-e.left,r-e.top),this._updateColorFromPosition(),window.addEventListener("mouseup",this._onSaturationMouseUp),window.addEventListener("touchend",this._onSaturationMouseUp),window.addEventListener("mousemove",this._onSaturationMouseMove),window.addEventListener("touchmove",this._onSaturationMouseMove),t.preventDefault()},c.prototype._onSaturationMouseMove=function(t){var e=this.$saturation.getBoundingClientRect(),n=0===t.type.indexOf("touch")?t.touches[0].clientX:t.clientX,r=0===t.type.indexOf("touch")?t.touches[0].clientY:t.clientY;this._moveSelectorTo(n-e.left,r-e.top),this._updateColorFromPosition()},c.prototype._onSaturationMouseUp=function(){this.choosing=!1,window.removeEventListener("mouseup",this._onSaturationMouseUp),window.removeEventListener("touchend",this._onSaturationMouseUp),window.removeEventListener("mousemove",this._onSaturationMouseMove),window.removeEventListener("touchmove",this._onSaturationMouseMove)},c.prototype._onHueMouseDown=function(t){this.choosing=!0;var e=this.$hue.getBoundingClientRect(),n=0===t.type.indexOf("touch")?t.touches[0].clientY:t.clientY;this._moveHueTo(n-e.top),this._updateHueFromPosition(),window.addEventListener("mouseup",this._onHueMouseUp),window.addEventListener("touchend",this._onHueMouseUp),window.addEventListener("mousemove",this._onHueMouseMove),window.addEventListener("touchmove",this._onHueMouseMove),t.preventDefault()},c.prototype._onHueMouseMove=function(t){var e=this.$hue.getBoundingClientRect(),n=0===t.type.indexOf("touch")?t.touches[0].clientY:t.clientY;this._moveHueTo(n-e.top),this._updateHueFromPosition()},c.prototype._onHueMouseUp=function(){this.choosing=!1,window.removeEventListener("mouseup",this._onHueMouseUp),window.removeEventListener("touchend",this._onHueMouseUp),window.removeEventListener("mousemove",this._onHueMouseMove),window.removeEventListener("touchmove",this._onHueMouseMove)},e.exports=c},{"./src/utils/maths/clamp":278,"component-emitter":203,"dom-transform":249,"is-number":254,"lodash.bindall":261,tinycolor2:279}],278:[function(t,e,n){"use strict";e.exports=function(t,e,n){return Math.min(Math.max(t,e),n)}},{}],279:[function(t,e,n){!function(t){var n=/^\s+/,r=/\s+$/,i=0,o=t.round,a=t.min,u=t.max,s=t.random;function c(e,s){if(e=e||"",s=s||{},e instanceof c)return e;if(!(this instanceof c))return new c(e,s);var f=function(e){var i={r:0,g:0,b:0},o=1,s=null,c=null,f=null,h=!1,l=!1;"string"==typeof e&&(e=function(t){t=t.replace(n,"").replace(r,"").toLowerCase();var e,i=!1;if(S[t])t=S[t],i=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=P.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=P.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=P.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=P.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=P.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=P.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=P.hex8.exec(t))return{r:D(e[1]),g:D(e[2]),b:D(e[3]),a:R(e[4]),format:i?"name":"hex8"};if(e=P.hex6.exec(t))return{r:D(e[1]),g:D(e[2]),b:D(e[3]),format:i?"name":"hex"};if(e=P.hex4.exec(t))return{r:D(e[1]+""+e[1]),g:D(e[2]+""+e[2]),b:D(e[3]+""+e[3]),a:R(e[4]+""+e[4]),format:i?"name":"hex8"};if(e=P.hex3.exec(t))return{r:D(e[1]+""+e[1]),g:D(e[2]+""+e[2]),b:D(e[3]+""+e[3]),format:i?"name":"hex"};return!1}(e));"object"==typeof e&&(H(e.r)&&H(e.g)&&H(e.b)?(d=e.r,p=e.g,b=e.b,i={r:255*I(d,255),g:255*I(p,255),b:255*I(b,255)},h=!0,l="%"===String(e.r).substr(-1)?"prgb":"rgb"):H(e.h)&&H(e.s)&&H(e.v)?(s=N(e.s),c=N(e.v),i=function(e,n,r){e=6*I(e,360),n=I(n,100),r=I(r,100);var i=t.floor(e),o=e-i,a=r*(1-n),u=r*(1-o*n),s=r*(1-(1-o)*n),c=i%6;return{r:255*[r,u,a,a,s,r][c],g:255*[s,r,r,u,a,a][c],b:255*[a,a,s,r,r,u][c]}}(e.h,s,c),h=!0,l="hsv"):H(e.h)&&H(e.s)&&H(e.l)&&(s=N(e.s),f=N(e.l),i=function(t,e,n){var r,i,o;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=I(t,360),e=I(e,100),n=I(n,100),0===e)r=i=o=n;else{var u=n<.5?n*(1+e):n+e-n*e,s=2*n-u;r=a(s,u,t+1/3),i=a(s,u,t),o=a(s,u,t-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,s,f),h=!0,l="hsl"),e.hasOwnProperty("a")&&(o=e.a));var d,p,b;return o=k(o),{ok:h,format:e.format||l,r:a(255,u(i.r,0)),g:a(255,u(i.g,0)),b:a(255,u(i.b,0)),a:o}}(e);this._originalInput=e,this._r=f.r,this._g=f.g,this._b=f.b,this._a=f.a,this._roundA=o(100*this._a)/100,this._format=s.format||f.format,this._gradientType=s.gradientType,this._r<1&&(this._r=o(this._r)),this._g<1&&(this._g=o(this._g)),this._b<1&&(this._b=o(this._b)),this._ok=f.ok,this._tc_id=i++}function f(t,e,n){t=I(t,255),e=I(e,255),n=I(n,255);var r,i,o=u(t,e,n),s=a(t,e,n),c=(o+s)/2;if(o==s)r=i=0;else{var f=o-s;switch(i=c>.5?f/(2-o-s):f/(o+s),o){case t:r=(e-n)/f+(e<n?6:0);break;case e:r=(n-t)/f+2;break;case n:r=(t-e)/f+4}r/=6}return{h:r,s:i,l:c}}function h(t,e,n){t=I(t,255),e=I(e,255),n=I(n,255);var r,i,o=u(t,e,n),s=a(t,e,n),c=o,f=o-s;if(i=0===o?0:f/o,o==s)r=0;else{switch(o){case t:r=(e-n)/f+(e<n?6:0);break;case e:r=(n-t)/f+2;break;case n:r=(t-e)/f+4}r/=6}return{h:r,s:i,v:c}}function l(t,e,n,r){var i=[T(o(t).toString(16)),T(o(e).toString(16)),T(o(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function d(t,e,n,r){return[T(j(r)),T(o(t).toString(16)),T(o(e).toString(16)),T(o(n).toString(16))].join("")}function p(t,e){e=0===e?0:e||10;var n=c(t).toHsl();return n.s-=e/100,n.s=F(n.s),c(n)}function b(t,e){e=0===e?0:e||10;var n=c(t).toHsl();return n.s+=e/100,n.s=F(n.s),c(n)}function g(t){return c(t).desaturate(100)}function y(t,e){e=0===e?0:e||10;var n=c(t).toHsl();return n.l+=e/100,n.l=F(n.l),c(n)}function m(t,e){e=0===e?0:e||10;var n=c(t).toRgb();return n.r=u(0,a(255,n.r-o(-e/100*255))),n.g=u(0,a(255,n.g-o(-e/100*255))),n.b=u(0,a(255,n.b-o(-e/100*255))),c(n)}function v(t,e){e=0===e?0:e||10;var n=c(t).toHsl();return n.l-=e/100,n.l=F(n.l),c(n)}function _(t,e){var n=c(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,c(n)}function w(t){var e=c(t).toHsl();return e.h=(e.h+180)%360,c(e)}function x(t){var e=c(t).toHsl(),n=e.h;return[c(t),c({h:(n+120)%360,s:e.s,l:e.l}),c({h:(n+240)%360,s:e.s,l:e.l})]}function A(t){var e=c(t).toHsl(),n=e.h;return[c(t),c({h:(n+90)%360,s:e.s,l:e.l}),c({h:(n+180)%360,s:e.s,l:e.l}),c({h:(n+270)%360,s:e.s,l:e.l})]}function E(t){var e=c(t).toHsl(),n=e.h;return[c(t),c({h:(n+72)%360,s:e.s,l:e.l}),c({h:(n+216)%360,s:e.s,l:e.l})]}function M(t,e,n){e=e||6,n=n||30;var r=c(t).toHsl(),i=360/n,o=[c(t)];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(c(r));return o}function C(t,e){e=e||6;for(var n=c(t).toHsv(),r=n.h,i=n.s,o=n.v,a=[],u=1/e;e--;)a.push(c({h:r,s:i,v:o})),o=(o+u)%1;return a}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var e,n,r,i=this.toRgb();return e=i.r/255,n=i.g/255,r=i.b/255,.2126*(e<=.03928?e/12.92:t.pow((e+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:t.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:t.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=k(t),this._roundA=o(100*this._a)/100,this},toHsv:function(){var t=h(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=h(this._r,this._g,this._b),e=o(360*t.h),n=o(100*t.s),r=o(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=f(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=f(this._r,this._g,this._b),e=o(360*t.h),n=o(100*t.s),r=o(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return l(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,r,i){var a=[T(o(t).toString(16)),T(o(e).toString(16)),T(o(n).toString(16)),T(j(r))];if(i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:o(this._r),g:o(this._g),b:o(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+o(this._r)+", "+o(this._g)+", "+o(this._b)+")":"rgba("+o(this._r)+", "+o(this._g)+", "+o(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:o(100*I(this._r,255))+"%",g:o(100*I(this._g,255))+"%",b:o(100*I(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+o(100*I(this._r,255))+"%, "+o(100*I(this._g,255))+"%, "+o(100*I(this._b,255))+"%)":"rgba("+o(100*I(this._r,255))+"%, "+o(100*I(this._g,255))+"%, "+o(100*I(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(B[l(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+d(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var i=c(t);n="#"+d(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return c(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(m,arguments)},darken:function(){return this._applyModification(v,arguments)},desaturate:function(){return this._applyModification(p,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(M,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(C,arguments)},splitcomplement:function(){return this._applyCombination(E,arguments)},triad:function(){return this._applyCombination(x,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},c.fromRatio=function(t,e){if("object"==typeof t){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]="a"===r?t[r]:N(t[r]));t=n}return c(t,e)},c.equals=function(t,e){return!(!t||!e)&&c(t).toRgbString()==c(e).toRgbString()},c.random=function(){return c.fromRatio({r:s(),g:s(),b:s()})},c.mix=function(t,e,n){n=0===n?0:n||50;var r=c(t).toRgb(),i=c(e).toRgb(),o=n/100;return c({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},c.readability=function(e,n){var r=c(e),i=c(n);return(t.max(r.getLuminance(),i.getLuminance())+.05)/(t.min(r.getLuminance(),i.getLuminance())+.05)},c.isReadable=function(t,e,n){var r,i,o=c.readability(t,e);switch(i=!1,(r=function(t){var e,n;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==n&&"large"!==n&&(n="small");return{level:e,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},c.mostReadable=function(t,e,n){var r,i,o,a,u=null,s=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var f=0;f<e.length;f++)(r=c.readability(t,e[f]))>s&&(s=r,u=c(e[f]));return c.isReadable(t,u,{level:o,size:a})||!i?u:(n.includeFallbackColors=!1,c.mostReadable(t,["#fff","#000"],n))};var S=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},B=c.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(S);function k(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function I(e,n){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(e)&&(e="100%");var r=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(e);return e=a(n,u(0,parseFloat(e))),r&&(e=parseInt(e*n,10)/100),t.abs(e-n)<1e-6?1:e%n/parseFloat(n)}function F(t){return a(1,u(0,t))}function D(t){return parseInt(t,16)}function T(t){return 1==t.length?"0"+t:""+t}function N(t){return t<=1&&(t=100*t+"%"),t}function j(e){return t.round(255*parseFloat(e)).toString(16)}function R(t){return D(t)/255}var O,L,U,P=(L="[\\s|\\(]+("+(O="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+O+")[,|\\s]+("+O+")\\s*\\)?",U="[\\s|\\(]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")\\s*\\)?",{CSS_UNIT:new RegExp(O),rgb:new RegExp("rgb"+L),rgba:new RegExp("rgba"+U),hsl:new RegExp("hsl"+L),hsla:new RegExp("hsla"+U),hsv:new RegExp("hsv"+L),hsva:new RegExp("hsva"+U),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function H(t){return!!P.CSS_UNIT.exec(t)}void 0!==e&&e.exports?e.exports=c:"function"==typeof define&&define.amd?define(function(){return c}):window.tinycolor=c}(Math)},{}],280:[function(t,e,n){var r=t("to-space-case");e.exports=function(t){return r(t).replace(/\s(\w)/g,function(t,e){return e.toUpperCase()})}},{"to-space-case":282}],281:[function(t,e,n){e.exports=function(t){return r.test(t)?t.toLowerCase():i.test(t)?(function(t){return t.replace(a,function(t,e){return e?" "+e:""})}(t)||t).toLowerCase():o.test(t)?function(t){return t.replace(u,function(t,e,n){return e+" "+n.toLowerCase().split("").join(" ")})}(t).toLowerCase():t.toLowerCase()};var r=/\s/,i=/(_|-|\.|:)/,o=/([a-z][A-Z]|[A-Z][a-z])/;var a=/[\W_]+(.|$)/g;var u=/(.)([A-Z]+)/g},{}],282:[function(t,e,n){var r=t("to-no-case");e.exports=function(t){return r(t).replace(/[\W_]+(.|$)/g,function(t,e){return e?" "+e:""}).trim()}},{"to-no-case":281}],283:[function(t,e,n){(n=e.exports=function(t){return t.replace(/^\s*|\s*$/g,"")}).left=function(t){return t.replace(/^\s*/,"")},n.right=function(t){return t.replace(/\s*$/,"")}},{}],284:[function(t,e,n){e.exports=function(t,e){if(!e||"object"!=typeof e)return t;var n=Object.keys(e),r=n.length;for(;r--;)t[n[r]]=e[n[r]];return t}},{}],285:[function(t,e,n){(function(e,r){var i=t("url"),o=t("child_process").spawn,a=t("fs");n.XMLHttpRequest=function(){"use strict";var n,u,s=this,c=t("http"),f=t("https"),h={},l=!1,d={"User-Agent":"node-XMLHttpRequest",Accept:"*/*"},p={},b={},g=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","content-transfer-encoding","cookie","cookie2","date","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],y=["TRACE","TRACK","CONNECT"],m=!1,v=!1,_={};this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4,this.readyState=this.UNSENT,this.onreadystatechange=null,this.responseText="",this.responseXML="",this.status=null,this.statusText=null,this.withCredentials=!1;this.open=function(t,e,n,r,i){if(this.abort(),v=!1,!function(t){return t&&-1===y.indexOf(t)}(t))throw new Error("SecurityError: Request method not allowed");h={method:t,url:e.toString(),async:"boolean"!=typeof n||n,user:r||null,password:i||null},w(this.OPENED)},this.setDisableHeaderCheck=function(t){l=t},this.setRequestHeader=function(t,e){if(this.readyState!==this.OPENED)throw new Error("INVALID_STATE_ERR: setRequestHeader can only be called when state is OPEN");if(function(t){return l||t&&-1===g.indexOf(t.toLowerCase())}(t)){if(m)throw new Error("INVALID_STATE_ERR: send flag is true");t=b[t.toLowerCase()]||t,b[t.toLowerCase()]=t,p[t]=p[t]?p[t]+", "+e:e}else console.warn('Refused to set unsafe header "'+t+'"')},this.getResponseHeader=function(t){return"string"==typeof t&&this.readyState>this.OPENED&&u&&u.headers&&u.headers[t.toLowerCase()]&&!v?u.headers[t.toLowerCase()]:null},this.getAllResponseHeaders=function(){if(this.readyState<this.HEADERS_RECEIVED||v)return"";var t="";for(var e in u.headers)"set-cookie"!==e&&"set-cookie2"!==e&&(t+=e+": "+u.headers[e]+"\r\n");return t.substr(0,t.length-2)},this.getRequestHeader=function(t){return"string"==typeof t&&b[t.toLowerCase()]?p[b[t.toLowerCase()]]:""},this.send=function(t){if(this.readyState!==this.OPENED)throw new Error("INVALID_STATE_ERR: connection must be opened before send() is called");if(m)throw new Error("INVALID_STATE_ERR: send has already been called");var l,g=!1,y=!1,_=i.parse(h.url);switch(_.protocol){case"https:":g=!0;case"http:":l=_.hostname;break;case"file:":y=!0;break;case void 0:case null:case"":l="localhost";break;default:throw new Error("Protocol not supported.")}if(y){if("GET"!==h.method)throw new Error("XMLHttpRequest: Only GET method is supported");if(h.async)a.readFile(_.pathname,"utf8",function(t,e){t?s.handleError(t):(s.status=200,s.responseText=e,w(s.DONE))});else try{this.responseText=a.readFileSync(_.pathname,"utf8"),this.status=200,w(s.DONE)}catch(t){this.handleError(t)}}else{var x=_.port||(g?443:80),A=_.pathname+(_.search?_.search:"");for(var E in d)b[E.toLowerCase()]||(p[E]=d[E]);if(p.Host=l,g&&443===x||80===x||(p.Host+=":"+_.port),h.user){void 0===h.password&&(h.password="");var M=new r(h.user+":"+h.password);p.Authorization="Basic "+M.toString("base64")}"GET"===h.method||"HEAD"===h.method?t=null:t?(p["Content-Length"]=r.isBuffer(t)?t.length:r.byteLength(t),p["Content-Type"]||(p["Content-Type"]="text/plain;charset=UTF-8")):"POST"===h.method&&(p["Content-Length"]=0);var C={host:l,port:x,path:A,method:h.method,headers:p,agent:!1,withCredentials:s.withCredentials};if(v=!1,h.async){var S=g?f.request:c.request;m=!0,s.dispatchEvent("readystatechange");var B=function(t){s.handleError(t)};n=S(C,function t(e){if(301!==(u=e).statusCode&&302!==u.statusCode&&303!==u.statusCode&&307!==u.statusCode)u.setEncoding("utf8"),w(s.HEADERS_RECEIVED),s.status=u.statusCode,u.on("data",function(t){t&&(s.responseText+=t),m&&w(s.LOADING)}),u.on("end",function(){m&&(w(s.DONE),m=!1)}),u.on("error",function(t){s.handleError(t)});else{h.url=u.headers.location;var r=i.parse(h.url);l=r.hostname;var o={hostname:r.hostname,port:r.port,path:r.path,method:303===u.statusCode?"GET":h.method,headers:p,withCredentials:s.withCredentials};(n=S(o,t).on("error",B)).end()}}).on("error",B),t&&n.write(t),n.end(),s.dispatchEvent("loadstart")}else{var k=".node-xmlhttprequest-content-"+e.pid,I=".node-xmlhttprequest-sync-"+e.pid;a.writeFileSync(I,"","utf8");for(var F="var http = require('http'), https = require('https'), fs = require('fs');var doRequest = http"+(g?"s":"")+".request;var options = "+JSON.stringify(C)+";var responseText = '';var req = doRequest(options, function(response) {response.setEncoding('utf8');response.on('data', function(chunk) { responseText += chunk;});response.on('end', function() {fs.writeFileSync('"+k+"', JSON.stringify({err: null, data: {statusCode: response.statusCode, headers: response.headers, text: responseText}}), 'utf8');fs.unlinkSync('"+I+"');});response.on('error', function(error) {fs.writeFileSync('"+k+"', JSON.stringify({err: error}), 'utf8');fs.unlinkSync('"+I+"');});}).on('error', function(error) {fs.writeFileSync('"+k+"', JSON.stringify({err: error}), 'utf8');fs.unlinkSync('"+I+"');});"+(t?"req.write('"+JSON.stringify(t).slice(1,-1).replace(/'/g,"\\'")+"');":"")+"req.end();",D=o(e.argv[0],["-e",F]);a.existsSync(I););var T=JSON.parse(a.readFileSync(k,"utf8"));D.stdin.end(),a.unlinkSync(k),T.err?s.handleError(T.err):(u=T.data,s.status=T.data.statusCode,s.responseText=T.data.text,w(s.DONE))}}},this.handleError=function(t){this.status=0,this.statusText=t,this.responseText=t.stack,v=!0,w(this.DONE),this.dispatchEvent("error")},this.abort=function(){n&&(n.abort(),n=null),p=d,this.status=0,this.responseText="",this.responseXML="",v=!0,this.readyState===this.UNSENT||this.readyState===this.OPENED&&!m||this.readyState===this.DONE||(m=!1,w(this.DONE)),this.readyState=this.UNSENT,this.dispatchEvent("abort")},this.addEventListener=function(t,e){t in _||(_[t]=[]),_[t].push(e)},this.removeEventListener=function(t,e){t in _&&(_[t]=_[t].filter(function(t){return t!==e}))},this.dispatchEvent=function(t){if("function"==typeof s["on"+t]&&s["on"+t](),t in _)for(var e=0,n=_[t].length;e<n;e++)_[t][e].call(s)};var w=function(t){t!=s.LOADING&&s.readyState===t||(s.readyState=t,(h.async||s.readyState<s.OPENED||s.readyState===s.DONE)&&s.dispatchEvent("readystatechange"),s.readyState!==s.DONE||v||(s.dispatchEvent("load"),s.dispatchEvent("loadend")))}}}).call(this,t("_process"),t("buffer").Buffer)},{_process:144,buffer:48,child_process:46,fs:46,http:185,https:120,url:191}]},{},[196]);