text: layui.config({
  	base: basePath, 
  }).extend({  //指定js别名
  }).define(['jquery', 'g6'], function (exports) {
  	var jQuery = layui.jquery;
  	(function($) {
  !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("G6")):"function"==typeof define&&define.amd?define("G6Plugins",["G6"],e):"object"==typeof exports?exports.G6Plugins=e(require("G6")):t.G6Plugins=e(t.G6)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}(function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(typeof t[e]){case"function":break;case"object":t[e]=function(e){var n=e.slice(1),r=t[e[0]];return function(t,e,i){r.apply(this,[t,e,i].concat(n))}}(t[e]);break;default:t[e]=t[t[e]]}return t}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=n(4),a=r(i),o={"enhance.d3.mapper":n(152),"enhance.g2.mapper":n(153),"layout.circle":n(154),"layout.grid":n(159),"layout.d3.force":n(156),"layout.dagre":n(157),"template.analysis.maxSpanningForest":n(77),"template.analysis.simple.graph":n(77),"template.analysis.sankey":n(166),"tool.minimap":n(169)};a.default.Plugins=o,t.exports=o},function(t,e,n){var r=n(151);t.exports=r},function(t,e,n){var r={Matrix3:n(143),Vector2:n(144),Vector3:n(145)};t.exports=r},function(t,e,n){var r;try{r=n(90)}catch(t){}r||(r=window._),t.exports=r},function(e,n){e.exports=t},function(t,e,n){var r=n(1),i=n(55),a=n(6),o=n(2).Vector3,u=function(t){u.superclass.constructor.call(this,t)};u.ATTRS={},r.extend(u,i),r.augment(u,{isShape:!0,createPath:function(){},drawInner:function(t){var e=this,n=e.__attrs;e.createPath(t);var i=t.globalAlpha;if(e.hasFill()){var a=n.fillOpacity;r.isNull(a)||1===a?t.fill():(t.globalAlpha=a,t.fill(),t.globalAlpha=i)}if(e.hasStroke()){var o=e.__attrs.lineWidth;if(o>0){var u=n.strokeOpacity;r.isNull(u)||1===u||(t.globalAlpha=u),t.stroke()}}},isPointInPath:function(){return!1},isHitBox:function(){return!0},isHit:function(t,e){var n=this,r=new o(t,e,1);if(n.invert(r),n.isHitBox()){var i=n.getBBox();if(i&&!a.box(i.minX,i.maxX,i.minY,i.maxY,r.x,r.y))return!1}var u=n.__attrs.clip;return u?!!u.inside(t,e)&&n.isPointInPath(r.x,r.y):n.isPointInPath(r.x,r.y)},calculateBox:function(){return null},clearTotalMatrix:function(){this.__cfg.totalMatrix=null,this.__cfg.region=null},clearBBox:function(){this.__cfg.box=null,this.__cfg.region=null},getBBox:function(){var t=this.__cfg.box;return t||(t=this.calculateBox(),t&&(t.x=t.minX,t.y=t.minY,t.width=t.maxX-t.minX,t.height=t.maxY-t.minY),this.__cfg.box=t),t}}),t.exports=u},function(t,e,n){var r=n(37),i=n(38),a=n(27),o=n(36);t.exports={line:function(t,e,n,i,a,o,u){var s=r.box(t,e,n,i,a);if(!this.box(s.minX,s.maxX,s.minY,s.maxY,o,u))return!1;var c=r.pointDistance(t,e,n,i,o,u);return!isNaN(c)&&c<=a/2},polyline:function(t,e,n,r){var i=t.length-1;if(i<1)return!1;for(var a=0;a<i;a++){var o=t[a][0],u=t[a][1],s=t[a+1][0],c=t[a+1][1];if(this.line(o,u,s,c,e,n,r))return!0}return!1},cubicline:function(t,e,n,r,i,o,u,s,c,l,h){return a.pointDistance(t,e,n,r,i,o,u,s,l,h)<=c/2},quadraticline:function(t,e,n,r,a,o,u,s,c){return i.pointDistance(t,e,n,r,a,o,s,c)<=u/2},arcline:function(t,e,n,r,i,a,u,s,c){return o.pointDistance(t,e,n,r,i,a,s,c)<=u/2},rect:function(t,e,n,r,i,a){return t<=i&&i<=t+n&&e<=a&&a<=e+r},circle:function(t,e,n,r,i){return Math.pow(r-t,2)+Math.pow(i-e,2)<=Math.pow(n,2)},box:function(t,e,n,r,i,a){return t<=i&&i<=e&&n<=a&&a<=r}}},function(t,e,n){var r=n(142);t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){var i;do i=y.uniqueId(r);while(t.hasNode(i));return n.dummy=e,t.setNode(i,n),i}function i(t){var e=(new m).setGraph(t.graph());return y.each(t.nodes(),function(n){e.setNode(n,t.node(n))}),y.each(t.edges(),function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),e}function a(t){var e=new m({multigraph:t.isMultigraph()}).setGraph(t.graph());return y.each(t.nodes(),function(n){t.children(n).length||e.setNode(n,t.node(n))}),y.each(t.edges(),function(n){e.setEdge(n,t.edge(n))}),e}function o(t){var e=y.map(t.nodes(),function(e){var n={};return y.each(t.outEdges(e),function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight}),n});return y.zipObject(t.nodes(),e)}function u(t){var e=y.map(t.nodes(),function(e){var n={};return y.each(t.inEdges(e),function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight}),n});return y.zipObject(t.nodes(),e)}function s(t,e){var n=t.x,r=t.y,i=e.x-n,a=e.y-r,o=t.width/2,u=t.height/2;if(!i&&!a)throw new Error("Not possible to find intersection inside of the rectangle");var s,c;return Math.abs(a)*o>Math.abs(i)*u?(a<0&&(u=-u),s=u*i/a,c=u):(i<0&&(o=-o),s=o,c=o*a/i),{x:n+s,y:r+c}}function c(t){var e=y.map(y.range(d(t)+1),function(){return[]});return y.each(t.nodes(),function(n){var r=t.node(n),i=r.rank;y.isUndefined(i)||(e[i][r.order]=n)}),e}function l(t){var e=y.min(y.map(t.nodes(),function(e){return t.node(e).rank}));y.each(t.nodes(),function(n){var r=t.node(n);y.has(r,"rank")&&(r.rank-=e)})}function h(t){var e=y.min(y.map(t.nodes(),function(e){return t.node(e).rank})),n=[];y.each(t.nodes(),function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)});var r=0,i=t.graph().nodeRankFactor;y.each(n,function(e,n){y.isUndefined(e)&&n%i!==0?--r:r&&y.each(e,function(e){t.node(e).rank+=r})})}function f(t,e,n,i){var a={width:0,height:0};return arguments.length>=4&&(a.rank=n,a.order=i),r(t,"border",a,e)}function d(t){return y.max(y.map(t.nodes(),function(e){var n=t.node(e).rank;if(!y.isUndefined(n))return n}))}function p(t,e){var n={lhs:[],rhs:[]};return y.each(t,function(t){e(t)?n.lhs.push(t):n.rhs.push(t)}),n}function g(t,e){var n=y.now();try{return e()}finally{console.log(t+" time: "+(y.now()-n)+"ms")}}function v(t,e){return e()}var y=n(3),m=n(10).Graph;t.exports={addDummyNode:r,simplify:i,asNonCompoundGraph:a,successorWeights:o,predecessorWeights:u,intersectRect:s,buildLayerMatrix:c,normalizeRanks:l,removeEmptyRanks:h,addBorderNode:f,maxRank:d,partition:p,time:g,notime:v}},3,function(t,e,n){var r;try{r=n(216)}catch(t){}r||(r=window.graphlib),t.exports=r},function(t,e,n){"use strict";var r=n(4),i=n(25),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={},r.Util.extend(a,i),r.Util.augment(a,{init:function(){}}),t.exports=a},function(t,e,n){var r=n(116),i=n(57);r.G=i,r.Group=i.Group,r.Shape={},r.Shape.Marker=i.Marker,r.Util=n(72),r.Matrix=n(2),t.exports=r},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(){for(var t,e=0,r=arguments.length,i={};e<r;++e){if(!(t=arguments[e]+"")||t in i)throw new Error("illegal type: "+t);i[t]=[]}return new n(i)}function n(t){this._=t}function r(t,e){return t.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}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 a(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=o,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}var o={value:function(){}};n.prototype=e.prototype={constructor:n,on:function(t,e){var n,o=this._,u=r(t+"",o),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)o[n]=a(o[n],t.name,e);else if(null==e)for(n in o)o[n]=a(o[n],t.name,null);return this}for(;++s<c;)if((n=(t=u[s]).type)&&(n=i(o[n],t.name)))return n}},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new n(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(r=this._[t],a=0,n=r.length;a<n;++a)r[a].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,a=r.length;i<a;++i)r[i].value.apply(e,n)}},t.dispatch=e,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function a(t){if(h===clearTimeout)return clearTimeout(t);if((h===r||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(t);try{return h(t)}catch(e){try{return h.call(null,t)}catch(e){return h.call(this,t)}}}function o(){g&&d&&(g=!1,d.length?p=d.concat(p):v=-1,p.length&&u())}function u(){if(!g){var t=i(o);g=!0;for(var e=p.length;e;){for(d=p,p=[];++v<e;)d&&d[v].run();v=-1,e=p.length}d=null,g=!1,a(t)}}function s(t,e){this.fun=t,this.array=e}function c(){}var l,h,f=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(t){l=n}try{h="function"==typeof clearTimeout?clearTimeout:r}catch(t){h=r}}();var d,p=[],g=!1,v=-1;f.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];p.push(new s(t,e)),1!==p.length||g||i(u)},s.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=c,f.addListener=c,f.once=c,f.off=c,f.removeListener=c,f.removeAllListeners=c,f.emit=c,f.prependListener=c,f.prependOnceListener=c,f.listeners=function(t){return[]},f.binding=function(t){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(t){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(t,e,n){function r(t,e,n){var r=new u(1,0).angleTo(t),i=r-s,a=r+s,o=6+3*n;return[{x:e.x-o*Math.cos(i),y:e.y-o*Math.sin(i)},e,{x:e.x-o*Math.cos(a),y:e.y-o*Math.sin(a)}]}function i(t,e){t.moveTo(e[0].x,e[0].y),t.lineTo(e[1].x,e[1].y),t.lineTo(e[2].x,e[2].y)}function a(t,e,n,a){i(t,r(e,n,a))}function o(t,e,n){var r=n/Math.sin(s);return t.setLength(r/2),e.sub(t),e}var u=n(2).Vector2,s=Math.PI/6;t.exports={makeArrow:a,getEndPoint:o}},function(t,e,n){(function(t){/*!
  	 * The buffer module from node.js, for the browser.
  	 *
  	 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
  	 * @license  MIT
  	 */
  "use strict";function r(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}function i(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(i()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,n){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(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 l(this,t)}return u(this,t,e,n)}function u(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?d(t,e,n,r):"string"==typeof e?h(t,e,n):p(t,e)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function c(t,e,n,r){return s(e),e<=0?a(t,e):void 0!==n?"string"==typeof r?a(t,e).fill(n,r):a(t,e).fill(n):a(t,e)}function l(t,e){if(s(e),t=a(t,e<0?0:0|g(e)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function h(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|y(e,n);t=a(t,r);var i=t.write(e,n);return i!==r&&(t=t.slice(0,i)),t}function f(t,e){var n=e.length<0?0:0|g(e.length);t=a(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function d(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),o.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=o.prototype):t=f(t,e),t}function p(t,e){if(o.isBuffer(e)){var n=0|g(e.length);return t=a(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||Z(e.length)?a(t,0):f(t,e);if("Buffer"===e.type&&J(e.data))return f(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function g(t){if(t>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function v(t){return+t!=t&&(t=0),o.alloc(+t)}function y(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))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 X(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(t).length;default:if(r)return X(t).length;e=(""+e).toLowerCase(),r=!0}}function m(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,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,n);case"utf8":case"utf-8":return C(this,e,n);case"ascii":return N(this,e,n);case"latin1":case"binary":return I(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function _(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function x(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),n=+n,isNaN(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=o.from(e,r)),o.isBuffer(e))return 0===e.length?-1:b(t,e,n,r,i);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):b(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,n,r,i){function a(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}var o=1,u=t.length,s=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;o=2,u/=2,s/=2,n/=2}var c;if(i){var l=-1;for(c=n;c<u;c++)if(a(t,c)===a(e,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===s)return l*o}else l!==-1&&(c-=c-l),l=-1}else for(n+s>u&&(n=u-s),c=n;c>=0;c--){for(var h=!0,f=0;f<s;f++)if(a(t,c+f)!==a(e,f)){h=!1;break}if(h)return c}return-1}function w(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var a=e.length;if(a%2!==0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var u=parseInt(e.substr(2*o,2),16);if(isNaN(u))return o;t[n+o]=u}return o}function M(t,e,n,r){return $(X(e,t.length-n),t,n,r)}function S(t,e,n,r){return $(G(e),t,n,r)}function k(t,e,n,r){return S(t,e,n,r)}function T(t,e,n,r){return $(V(e),t,n,r)}function E(t,e,n,r){return $(W(e,t.length-n),t,n,r)}function A(t,e,n){return 0===e&&n===t.length?Q.fromByteArray(t):Q.fromByteArray(t.slice(e,n))}function C(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var a=t[i],o=null,u=a>239?4:a>223?3:a>191?2:1;if(i+u<=n){var s,c,l,h;switch(u){case 1:a<128&&(o=a);break;case 2:s=t[i+1],128===(192&s)&&(h=(31&a)<<6|63&s,h>127&&(o=h));break;case 3:s=t[i+1],c=t[i+2],128===(192&s)&&128===(192&c)&&(h=(15&a)<<12|(63&s)<<6|63&c,h>2047&&(h<55296||h>57343)&&(o=h));break;case 4:s=t[i+1],c=t[i+2],l=t[i+3],128===(192&s)&&128===(192&c)&&128===(192&l)&&(h=(15&a)<<18|(63&s)<<12|(63&c)<<6|63&l,h>65535&&h<1114112&&(o=h))}}null===o?(o=65533,u=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=u}return P(r)}function P(t){var e=t.length;if(e<=tt)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=tt));return n}function N(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 I(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 L(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=e;a<n;++a)i+=H(t[a]);return i}function R(t,e,n){for(var r=t.slice(e,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function O(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 B(t,e,n,r,i,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function U(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,a=Math.min(t.length-n,2);i<a;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function D(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,a=Math.min(t.length-n,4);i<a;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function z(t,e,n,r,i,a){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(t,e,n,r,i){return i||z(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),K.write(t,e,n,r,23,4),n+4}function j(t,e,n,r,i){return i||z(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),K.write(t,e,n,r,52,8),n+8}function q(t){if(t=Y(t).replace(et,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function Y(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function H(t){return t<16?"0"+t.toString(16):t.toString(16)}function X(t,e){e=e||1/0;for(var n,r=t.length,i=null,a=[],o=0;o<r;++o){if(n=t.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(e-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;a.push(n)}else if(n<2048){if((e-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;a.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;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function G(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function W(t,e){for(var n,r,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)n=t.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}function V(t){return Q.toByteArray(q(t))}function $(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 Z(t){return t!==t}var Q=n(170),K=n(230),J=n(89);e.Buffer=o,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:r(),e.kMaxLength=i(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,n){return u(null,t,e,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,n){return c(null,t,e,n)},o.allocUnsafe=function(t){return l(null,t)},o.allocUnsafeSlow=function(t){return l(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,a=Math.min(n,r);i<a;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},o.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}},o.concat=function(t,e){if(!J(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=o.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},o.byteLength=y,o.prototype._isBuffer=!0,o.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)_(this,e,e+1);return this},o.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)_(this,e,e+3),_(this,e+1,e+2);return this},o.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)_(this,e,e+7),_(this,e+1,e+6),_(this,e+2,e+5),_(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?C(this,0,t):m.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t,e,n,r,i){if(!o.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 a=i-r,u=n-e,s=Math.min(a,u),c=this.slice(r,i),l=t.slice(e,n),h=0;h<s;++h)if(c[h]!==l[h]){a=c[h],u=l[h];break}return a<u?-1:u<a?1:0},o.prototype.includes=function(t,e,n){return this.indexOf(t,e,n)!==-1},o.prototype.indexOf=function(t,e,n){return x(this,t,e,n,!0)},o.prototype.lastIndexOf=function(t,e,n){return x(this,t,e,n,!1)},o.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 a=!1;;)switch(r){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return M(this,t,e,n);case"ascii":return S(this,t,e,n);case"latin1":case"binary":return k(this,t,e,n);case"base64":return T(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,e,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var tt=4096;o.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<t&&(e=t);var r;if(o.TYPED_ARRAY_SUPPORT)r=this.subarray(t,e),r.__proto__=o.prototype;else{var i=e-t;r=new o(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+t]}return r},o.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var r=this[t],i=1,a=0;++a<e&&(i*=256);)r+=this[t+a]*i;return r},o.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},o.prototype.readUInt8=function(t,e){return e||O(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||O(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||O(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var r=this[t],i=1,a=0;++a<e&&(i*=256);)r+=this[t+a]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var r=e,i=1,a=this[t+--r];r>0&&(i*=256);)a+=this[t+--r]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*e)),a},o.prototype.readInt8=function(t,e){return e||O(t,1,this.length),128&this[t]?(255-this[t]+1)*-1:this[t]},o.prototype.readInt16LE=function(t,e){e||O(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||O(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||O(t,4,this.length),K.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||O(t,4,this.length),K.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||O(t,8,this.length),K.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||O(t,8,this.length),K.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;B(this,t,e,n,i,0)}var a=1,o=0;for(this[e]=255&t;++o<n&&(a*=256);)this[e+o]=t/a&255;return e+n},o.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;B(this,t,e,n,i,0)}var a=n-1,o=1;for(this[e+a]=255&t;--a>=0&&(o*=256);)this[e+a]=t/o&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):U(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):U(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):D(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);B(this,t,e,n,i-1,-i)}var a=0,o=1,u=0;for(this[e]=255&t;++a<n&&(o*=256);)t<0&&0===u&&0!==this[e+a-1]&&(u=1),this[e+a]=(t/o>>0)-u&255;return e+n},o.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);B(this,t,e,n,i-1,-i)}var a=n-1,o=1,u=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===u&&0!==this[e+a+1]&&(u=1),this[e+a]=(t/o>>0)-u&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):U(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):U(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):D(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return F(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return F(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return j(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return j(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,r){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("sourceStart out of bounds");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,a=r-n;if(this===t&&n<e&&e<r)for(i=a-1;i>=0;--i)t[i+e]=this[i+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},o.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),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}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;e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a<n;++a)this[a]=t;else{var u=o.isBuffer(t)?t:X(new o(t,r).toString()),s=u.length;for(a=0;a<n-e;++a)this[a+e]=u[a%s]}return this};var et=/[^+\/0-9A-Za-z-_]/g}).call(e,function(){return this}())},function(t,e,n){!function(t,r){r(e,n(23))}(this,function(t,e){"use strict";function n(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}function r(t,e){return function(n){return t+n*e}}function i(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)}}function a(t,e){var n=e-t;return n?r(t,n>180||n<-180?n-360*Math.round(n/360):n):E(isNaN(t)?e:t)}function o(t){return 1===(t=+t)?u:function(e,n){return n-e?i(e,n,t):E(isNaN(e)?n:e)}}function u(t,e){var n=e-t;return n?r(t,n):E(isNaN(t)?e:t)}function s(t){return function(n){var r,i,a=n.length,o=new Array(a),u=new Array(a),s=new Array(a);for(r=0;r<a;++r)i=e.rgb(n[r]),o[r]=i.r||0,u[r]=i.g||0,s[r]=i.b||0;return o=t(o),u=t(u),s=t(s),i.opacity=1,function(t){return i.r=o(t),i.g=u(t),i.b=s(t),i+""}}}function c(t){return function(){return t}}function l(t){return function(e){return t(e)+""}}function h(t){return"none"===t?j:(b||(b=document.createElement("DIV"),w=document.documentElement,M=document.defaultView),b.style.transform=t,t=M.getComputedStyle(w.appendChild(b),null).getPropertyValue("transform"),w.removeChild(b),t=t.slice(7,-1).split(","),q(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function f(t){return null==t?j:(S||(S=document.createElementNS("http://www.w3.org/2000/svg","g")),S.setAttribute("transform",t),(t=S.transform.baseVal.consolidate())?(t=t.matrix,q(t.a,t.b,t.c,t.d,t.e,t.f)):j)}function d(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}function a(t,r,i,a,o,u){if(t!==i||r!==a){var s=o.push("translate(",null,e,null,n);u.push({i:s-4,x:L(t,i)},{i:s-2,x:L(r,a)})}else(i||a)&&o.push("translate("+i+e+a+n)}function o(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:L(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}function u(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:L(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}function s(t,e,n,r,a,o){if(t!==n||e!==r){var u=a.push(i(a)+"scale(",null,",",null,")");o.push({i:u-4,x:L(t,n)},{i:u-2,x:L(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}return function(e,n){var r=[],i=[];return e=t(e),n=t(n),a(e.translateX,e.translateY,n.translateX,n.translateY,r,i),o(e.rotate,n.rotate,r,i),u(e.skewX,n.skewX,r,i),s(e.scaleX,e.scaleY,n.scaleX,n.scaleY,r,i),e=n=null,function(t){for(var e,n=-1,a=i.length;++n<a;)r[(e=i[n]).i]=e.x(t);return r.join("")}}}function p(t){return((t=Math.exp(t))+1/t)/2}function g(t){return((t=Math.exp(t))-1/t)/2}function v(t){return((t=Math.exp(2*t))-1)/(t+1)}function y(t){return function(n,r){var i=t((n=e.hsl(n)).h,(r=e.hsl(r)).h),a=u(n.s,r.s),o=u(n.l,r.l),s=u(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=a(t),n.l=o(t),n.opacity=s(t),n+""}}}function m(t,n){var r=u((t=e.lab(t)).l,(n=e.lab(n)).l),i=u(t.a,n.a),a=u(t.b,n.b),o=u(t.opacity,n.opacity);return function(e){return t.l=r(e),t.a=i(e),t.b=a(e),t.opacity=o(e),t+""}}function _(t){return function(n,r){var i=t((n=e.hcl(n)).h,(r=e.hcl(r)).h),a=u(n.c,r.c),o=u(n.l,r.l),s=u(n.opacity,r.opacity);return function(t){return n.h=i(t),n.c=a(t),n.l=o(t),n.opacity=s(t),n+""}}}function x(t){return function n(r){function i(n,i){var a=t((n=e.cubehelix(n)).h,(i=e.cubehelix(i)).h),o=u(n.s,i.s),s=u(n.l,i.l),c=u(n.opacity,i.opacity);return function(t){return n.h=a(t),n.s=o(t),n.l=s(Math.pow(t,r)),n.opacity=c(t),n+""}}return r=+r,i.gamma=n,i}(1)}var b,w,M,S,k=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),a=t[i],o=t[i+1],u=i>0?t[i-1]:2*a-o,s=i<e-1?t[i+2]:2*o-a;return n((r-i/e)*e,u,a,o,s)}},T=function(t){var e=t.length;return function(r){var i=Math.floor(((r%=1)<0?++r:r)*e),a=t[(i+e-1)%e],o=t[i%e],u=t[(i+1)%e],s=t[(i+2)%e];return n((r-i/e)*e,a,o,u,s)}},E=function(t){return function(){return t}},A=function t(n){function r(t,n){var r=i((t=e.rgb(t)).r,(n=e.rgb(n)).r),a=i(t.g,n.g),o=i(t.b,n.b),s=u(t.opacity,n.opacity);return function(e){return t.r=r(e),t.g=a(e),t.b=o(e),t.opacity=s(e),t+""}}var i=o(n);return r.gamma=t,r}(1),C=s(k),P=s(T),N=function(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,a=new Array(i),o=new Array(r);for(n=0;n<i;++n)a[n]=D(t[n],e[n]);for(;n<r;++n)o[n]=e[n];return function(t){for(n=0;n<i;++n)o[n]=a[n](t);return o}},I=function(t,e){var n=new Date;return t=+t,e-=t,function(r){return n.setTime(t+e*r),n}},L=function(t,e){return t=+t,e-=t,function(n){return t+e*n}},R=function(t,e){var n,r={},i={};null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={});for(n in e)n in t?r[n]=D(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},O=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,B=new RegExp(O.source,"g"),U=function(t,e){var n,r,i,a=O.lastIndex=B.lastIndex=0,o=-1,u=[],s=[];for(t+="",e+="";(n=O.exec(t))&&(r=B.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),u[o]?u[o]+=i:u[++o]=i),(n=n[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,s.push({i:o,x:L(n,r)})),a=B.lastIndex;return a<e.length&&(i=e.slice(a),u[o]?u[o]+=i:u[++o]=i),u.length<2?s[0]?l(s[0].x):c(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("")})},D=function(t,n){var r,i=typeof n;return null==n||"boolean"===i?E(n):("number"===i?L:"string"===i?(r=e.color(n))?(n=r,A):U:n instanceof e.color?A:n instanceof Date?I:Array.isArray(n)?N:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?R:L)(t,n)},z=function(t,e){return t=+t,e-=t,function(n){return Math.round(t+e*n)}},F=180/Math.PI,j={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},q=function(t,e,n,r,i,a){var o,u,s;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(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,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*F,skewX:Math.atan(s)*F,scaleX:o,scaleY:u}},Y=d(h,"px, ","px)","deg)"),H=d(f,", ",")",")"),X=Math.SQRT2,G=2,W=4,V=1e-12,$=function(t,e){var n,r,i=t[0],a=t[1],o=t[2],u=e[0],s=e[1],c=e[2],l=u-i,h=s-a,f=l*l+h*h;if(f<V)r=Math.log(c/o)/X,n=function(t){return[i+t*l,a+t*h,o*Math.exp(X*t*r)]};else{var d=Math.sqrt(f),y=(c*c-o*o+W*f)/(2*o*G*d),m=(c*c-o*o-W*f)/(2*c*G*d),_=Math.log(Math.sqrt(y*y+1)-y),x=Math.log(Math.sqrt(m*m+1)-m);r=(x-_)/X,n=function(t){var e=t*r,n=p(_),u=o/(G*d)*(n*v(X*e+_)-g(_));return[i+u*l,a+u*h,o*n/p(X*e+_)]}}return n.duration=1e3*r,n},Z=y(a),Q=y(u),K=_(a),J=_(u),tt=x(a),et=x(u),nt=function(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n};t.interpolate=D,t.interpolateArray=N,t.interpolateBasis=k,t.interpolateBasisClosed=T,t.interpolateDate=I,t.interpolateNumber=L,t.interpolateObject=R,t.interpolateRound=z,t.interpolateString=U,t.interpolateTransformCss=Y,t.interpolateTransformSvg=H,t.interpolateZoom=$,t.interpolateRgb=A,t.interpolateRgbBasis=C,t.interpolateRgbBasisClosed=P,t.interpolateHsl=Z,t.interpolateHslLong=Q,t.interpolateLab=m,t.interpolateHcl=K,t.interpolateHclLong=J,t.interpolateCubehelix=tt,t.interpolateCubehelixLong=et,t.quantize=nt,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){"use strict";function r(t){return this instanceof r?(c.call(this,t),l.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),void this.once("end",i)):new r(t)}function i(){this.allowHalfOpen||this._writableState.ended||o(a,this)}function a(t){t.end()}var o=n(33),u=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=r;var s=n(20);s.inherits=n(14);var c=n(92),l=n(94);s.inherits(r,c);for(var h=u(l.prototype),f=0;f<h.length;f++){var d=h[f];r.prototype[d]||(r.prototype[d]=l.prototype[d])}Object.defineProperty(r.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)}}),r.prototype._destroy=function(t,e){this.push(null),this.end(),o(e,t)}},function(t,e,n){(function(t){function n(t){return Array.isArray?Array.isArray(t):"[object Array]"===v(t)}function r(t){return"boolean"==typeof t}function i(t){return null===t}function a(t){return null==t}function o(t){return"number"==typeof t}function u(t){return"string"==typeof t}function s(t){return"symbol"==typeof t}function c(t){return void 0===t}function l(t){return"[object RegExp]"===v(t)}function h(t){return"object"==typeof t&&null!==t}function f(t){return"[object Date]"===v(t)}function d(t){return"[object Error]"===v(t)||t instanceof Error}function p(t){return"function"==typeof t}function g(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||"undefined"==typeof t}function v(t){return Object.prototype.toString.call(t)}e.isArray=n,e.isBoolean=r,e.isNull=i,e.isNullOrUndefined=a,e.isNumber=o,e.isString=u,e.isSymbol=s,e.isUndefined=c,e.isRegExp=l,e.isObject=h,e.isDate=f,e.isError=d,e.isFunction=p,e.isPrimitive=g,e.isBuffer=t.isBuffer}).call(e,n(17).Buffer)},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(t){return function(e,n){return o(t(e),n)}}function n(t,e){return[t,e]}function r(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=S?10:a>=k?5:a>=T?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=S?10:a>=k?5:a>=T?2:1)}function i(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=S?i*=10:a>=k?i*=5:a>=T&&(i*=2),e<t?-i:i}function a(t){return t.length}var o=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},u=function(t){return 1===t.length&&(t=e(t)),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var a=r+i>>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var a=r+i>>>1;t(e[a],n)>0?i=a:r=a+1}return r}}},s=u(o),c=s.right,l=s.left,h=function(t,e){null==e&&(e=n);for(var r=0,i=t.length-1,a=t[0],o=new Array(i<0?0:i);r<i;)o[r]=e(a,a=t[++r]);return o},f=function(t,e,r){var i,a,o,u,s=t.length,c=e.length,l=new Array(s*c);for(null==r&&(r=n),i=o=0;i<s;++i)for(u=t[i],a=0;a<c;++a,++o)l[o]=r(u,e[a]);return l},d=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},p=function(t){return null===t?NaN:+t},g=function(t,e){var n,r,i=t.length,a=0,o=-1,u=0,s=0;if(null==e)for(;++o<i;)isNaN(n=p(t[o]))||(r=n-u,u+=r/++a,s+=r*(n-u));else for(;++o<i;)isNaN(n=p(e(t[o],o,t)))||(r=n-u,u+=r/++a,s+=r*(n-u));if(a>1)return s/(a-1)},v=function(t,e){var n=g(t,e);return n?Math.sqrt(n):n},y=function(t,e){var n,r,i,a=t.length,o=-1;if(null==e){for(;++o<a;)if(null!=(n=t[o])&&n>=n)for(r=i=n;++o<a;)null!=(n=t[o])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++o<a;)if(null!=(n=e(t[o],o,t))&&n>=n)for(r=i=n;++o<a;)null!=(n=e(t[o],o,t))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]},m=Array.prototype,_=m.slice,x=m.map,b=function(t){return function(){return t}},w=function(t){return t},M=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)),a=new Array(i);++r<i;)a[r]=t+r*n;return a},S=Math.sqrt(50),k=Math.sqrt(10),T=Math.sqrt(2),E=function(t,e,n){var i,a,o,u,s=-1;if(e=+e,t=+t,n=+n,t===e&&n>0)return[t];if((i=e<t)&&(a=t,t=e,e=a),0===(u=r(t,e,n))||!isFinite(u))return[];if(u>0)for(t=Math.ceil(t/u),e=Math.floor(e/u),o=new Array(a=Math.ceil(e-t+1));++s<a;)o[s]=(t+s)*u;else for(t=Math.floor(t*u),e=Math.ceil(e*u),o=new Array(a=Math.ceil(t-e+1));++s<a;)o[s]=(t-s)/u;return i&&o.reverse(),o},A=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1},C=function(){function t(t){var a,o,u=t.length,s=new Array(u);for(a=0;a<u;++a)s[a]=e(t[a],a,t);var l=n(s),h=l[0],f=l[1],d=r(s,h,f);Array.isArray(d)||(d=i(h,f,d),d=M(Math.ceil(h/d)*d,Math.floor(f/d)*d,d));for(var p=d.length;d[0]<=h;)d.shift(),--p;for(;d[p-1]>f;)d.pop(),--p;var g,v=new Array(p+1);for(a=0;a<=p;++a)g=v[a]=[],g.x0=a>0?d[a-1]:h,g.x1=a<p?d[a]:f;for(a=0;a<u;++a)o=s[a],h<=o&&o<=f&&v[c(d,o,0,p)].push(t[a]);return v}var e=w,n=y,r=A;return t.value=function(n){return arguments.length?(e="function"==typeof n?n:b(n),t):e},t.domain=function(e){
  return arguments.length?(n="function"==typeof e?e:b([e[0],e[1]]),t):n},t.thresholds=function(e){return arguments.length?(r="function"==typeof e?e:b(Array.isArray(e)?_.call(e):e),t):r},t},P=function(t,e,n){if(null==n&&(n=p),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,a=Math.floor(i),o=+n(t[a],a,t),u=+n(t[a+1],a+1,t);return o+(u-o)*(i-a)}},N=function(t,e,n){return t=x.call(t,p).sort(o),Math.ceil((n-e)/(2*(P(t,.75)-P(t,.25))*Math.pow(t.length,-1/3)))},I=function(t,e,n){return Math.ceil((n-e)/(3.5*v(t)*Math.pow(t.length,-1/3)))},L=function(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a<i;)if(null!=(n=t[a])&&n>=n)for(r=n;++a<i;)null!=(n=t[a])&&n>r&&(r=n)}else for(;++a<i;)if(null!=(n=e(t[a],a,t))&&n>=n)for(r=n;++a<i;)null!=(n=e(t[a],a,t))&&n>r&&(r=n);return r},R=function(t,e){var n,r=t.length,i=r,a=-1,o=0;if(null==e)for(;++a<r;)isNaN(n=p(t[a]))?--i:o+=n;else for(;++a<r;)isNaN(n=p(e(t[a],a,t)))?--i:o+=n;if(i)return o/i},O=function(t,e){var n,r=t.length,i=-1,a=[];if(null==e)for(;++i<r;)isNaN(n=p(t[i]))||a.push(n);else for(;++i<r;)isNaN(n=p(e(t[i],i,t)))||a.push(n);return P(a.sort(o),.5)},B=function(t){for(var e,n,r,i=t.length,a=-1,o=0;++a<i;)o+=t[a].length;for(n=new Array(o);--i>=0;)for(r=t[i],e=r.length;--e>=0;)n[--o]=r[e];return n},U=function(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a<i;)if(null!=(n=t[a])&&n>=n)for(r=n;++a<i;)null!=(n=t[a])&&r>n&&(r=n)}else for(;++a<i;)if(null!=(n=e(t[a],a,t))&&n>=n)for(r=n;++a<i;)null!=(n=e(t[a],a,t))&&r>n&&(r=n);return r},D=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},z=function(t,e){if(n=t.length){var n,r,i=0,a=0,u=t[a];for(null==e&&(e=o);++i<n;)(e(r=t[i],u)<0||0!==e(u,u))&&(u=r,a=i);return 0===e(u,u)?a:void 0}},F=function(t,e,n){for(var r,i,a=(null==n?t.length:n)-(e=null==e?0:+e);a;)i=Math.random()*a--|0,r=t[a+e],t[a+e]=t[i+e],t[i+e]=r;return t},j=function(t,e){var n,r=t.length,i=-1,a=0;if(null==e)for(;++i<r;)(n=+t[i])&&(a+=n);else for(;++i<r;)(n=+e(t[i],i,t))&&(a+=n);return a},q=function(t){if(!(i=t.length))return[];for(var e=-1,n=U(t,a),r=new Array(n);++e<n;)for(var i,o=-1,u=r[e]=new Array(i);++o<i;)u[o]=t[o][e];return r},Y=function(){return q(arguments)};t.bisect=c,t.bisectRight=c,t.bisectLeft=l,t.ascending=o,t.bisector=u,t.cross=f,t.descending=d,t.deviation=v,t.extent=y,t.histogram=C,t.thresholdFreedmanDiaconis=N,t.thresholdScott=I,t.thresholdSturges=A,t.max=L,t.mean=R,t.median=O,t.merge=B,t.min=U,t.pairs=h,t.permute=D,t.quantile=P,t.range=M,t.scan=z,t.shuffle=F,t.sum=j,t.ticks=E,t.tickIncrement=r,t.tickStep=i,t.transpose=q,t.variance=g,t.zip=Y,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,n){n(e)}(this,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,a=-1,o=t.length;if(null==n)for(;++a<o;)r.set(a,t[a]);else for(;++a<o;)r.set(n(i=t[a],a,t),i)}else if(t)for(var u in t)r.set(u,t[u]);return r}function r(){return{}}function i(t,e,n){t[e]=n}function a(){return n()}function o(t,e,n){t.set(e,n)}function u(){}function s(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}var c="$";e.prototype=n.prototype={constructor:e,has:function(t){return c+t in this},get:function(t){return this[c+t]},set:function(t,e){return this[c+t]=e,this},remove:function(t){var e=c+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===c&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===c&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===c&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===c&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===c&&++t;return t},empty:function(){for(var t in this)if(t[0]===c)return!1;return!0},each:function(t){for(var e in this)e[0]===c&&t(this[e],e.slice(1),this)}};var l=function(){function t(e,r,i,a){if(r>=l.length)return null!=u&&e.sort(u),null!=s?s(e):e;for(var o,c,h,f=-1,d=e.length,p=l[r++],g=n(),v=i();++f<d;)(h=g.get(o=p(c=e[f])+""))?h.push(c):g.set(o,[c]);return g.each(function(e,n){a(v,n,t(e,r,i,a))}),v}function e(t,n){if(++n>l.length)return t;var r,i=h[n-1];return null!=s&&n>=l.length?r=t.entries():(r=[],t.each(function(t,i){r.push({key:i,values:e(t,n)})})),null!=i?r.sort(function(t,e){return i(t.key,e.key)}):r}var u,s,c,l=[],h=[];return c={object:function(e){return t(e,0,r,i)},map:function(e){return t(e,0,a,o)},entries:function(n){return e(t(n,0,a,o),0)},key:function(t){return l.push(t),c},sortKeys:function(t){return h[l.length-1]=t,c},sortValues:function(t){return u=t,c},rollup:function(t){return s=t,c}}},h=n.prototype;u.prototype=s.prototype={constructor:u,has:h.has,add:function(t){return t+="",this[c+t]=t,this},remove:h.remove,clear:h.clear,values:h.keys,size:h.size,empty:h.empty,each:h.each};var f=function(t){var e=[];for(var n in t)e.push(n);return e},d=function(t){var e=[];for(var n in t)e.push(t[n]);return e},p=function(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e};t.nest=l,t.set=s,t.map=n,t.keys=f,t.values=d,t.entries=p,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function n(){}function r(t){var e;return t=(t+"").trim().toLowerCase(),(e=L.exec(t))?(e=parseInt(e[1],16),new s(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1)):(e=R.exec(t))?i(parseInt(e[1],16)):(e=O.exec(t))?new s(e[1],e[2],e[3],1):(e=B.exec(t))?new s(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=U.exec(t))?a(e[1],e[2],e[3],e[4]):(e=D.exec(t))?a(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=z.exec(t))?c(e[1],e[2]/100,e[3]/100,1):(e=F.exec(t))?c(e[1],e[2]/100,e[3]/100,e[4]):j.hasOwnProperty(t)?i(j[t]):"transparent"===t?new s(NaN,NaN,NaN,0):null}function i(t){return new s(t>>16&255,t>>8&255,255&t,1)}function a(t,e,n,r){return r<=0&&(t=e=n=NaN),new s(t,e,n,r)}function o(t){return t instanceof n||(t=r(t)),t?(t=t.rgb(),new s(t.r,t.g,t.b,t.opacity)):new s}function u(t,e,n,r){return 1===arguments.length?o(t):new s(t,e,n,null==r?1:r)}function s(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function c(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new f(t,e,n,r)}function l(t){if(t instanceof f)return new f(t.h,t.s,t.l,t.opacity);if(t instanceof n||(t=r(t)),!t)return new f;if(t instanceof f)return t;t=t.rgb();var e=t.r/255,i=t.g/255,a=t.b/255,o=Math.min(e,i,a),u=Math.max(e,i,a),s=NaN,c=u-o,l=(u+o)/2;return c?(s=e===u?(i-a)/c+6*(i<a):i===u?(a-e)/c+2:(e-i)/c+4,c/=l<.5?u+o:2-u-o,s*=60):c=l>0&&l<1?0:s,new f(s,c,l,t.opacity)}function h(t,e,n,r){return 1===arguments.length?l(t):new f(t,e,n,null==r?1:r)}function f(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function d(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function p(t){if(t instanceof v)return new v(t.l,t.a,t.b,t.opacity);if(t instanceof M){var e=t.h*q;return new v(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof s||(t=o(t));var n=x(t.r),r=x(t.g),i=x(t.b),a=y((.4124564*n+.3575761*r+.1804375*i)/X),u=y((.2126729*n+.7151522*r+.072175*i)/G),c=y((.0193339*n+.119192*r+.9503041*i)/W);return new v(116*u-16,500*(a-u),200*(u-c),t.opacity)}function g(t,e,n,r){return 1===arguments.length?p(t):new v(t,e,n,null==r?1:r)}function v(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function y(t){return t>Q?Math.pow(t,1/3):t/Z+V}function m(t){return t>$?t*t*t:Z*(t-V)}function _(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function x(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function b(t){if(t instanceof M)return new M(t.h,t.c,t.l,t.opacity);t instanceof v||(t=p(t));var e=Math.atan2(t.b,t.a)*Y;return new M(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function w(t,e,n,r){return 1===arguments.length?b(t):new M(t,e,n,null==r?1:r)}function M(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function S(t){if(t instanceof T)return new T(t.h,t.s,t.l,t.opacity);t instanceof s||(t=o(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(at*r+rt*e-it*n)/(at+rt-it),a=r-i,u=(nt*(n-i)-tt*a)/et,c=Math.sqrt(u*u+a*a)/(nt*i*(1-i)),l=c?Math.atan2(u,a)*Y-120:NaN;return new T(l<0?l+360:l,c,i,t.opacity)}function k(t,e,n,r){return 1===arguments.length?S(t):new T(t,e,n,null==r?1:r)}function T(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}var E=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t},A=.7,C=1/A,P="\\s*([+-]?\\d+)\\s*",N="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",I="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",L=/^#([0-9a-f]{3})$/,R=/^#([0-9a-f]{6})$/,O=new RegExp("^rgb\\("+[P,P,P]+"\\)$"),B=new RegExp("^rgb\\("+[I,I,I]+"\\)$"),U=new RegExp("^rgba\\("+[P,P,P,N]+"\\)$"),D=new RegExp("^rgba\\("+[I,I,I,N]+"\\)$"),z=new RegExp("^hsl\\("+[N,I,I]+"\\)$"),F=new RegExp("^hsla\\("+[N,I,I,N]+"\\)$"),j={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};E(n,r,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),E(s,u,e(n,{brighter:function(t){return t=null==t?C:Math.pow(C,t),new s(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?A:Math.pow(A,t),new s(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 t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(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(f,h,e(n,{brighter:function(t){return t=null==t?C:Math.pow(C,t),new f(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?A:Math.pow(A,t),new f(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 s(d(t>=240?t-240:t+120,i,r),d(t,i,r),d(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 q=Math.PI/180,Y=180/Math.PI,H=18,X=.95047,G=1,W=1.08883,V=4/29,$=6/29,Z=3*$*$,Q=$*$*$;E(v,g,e(n,{brighter:function(t){return new v(this.l+H*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new v(this.l-H*(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=G*m(t),e=X*m(e),n=W*m(n),new s(_(3.2404542*e-1.5371385*t-.4985314*n),_(-.969266*e+1.8760108*t+.041556*n),_(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),E(M,w,e(n,{brighter:function(t){return new M(this.h,this.c,this.l+H*(null==t?1:t),this.opacity)},darker:function(t){return new M(this.h,this.c,this.l-H*(null==t?1:t),this.opacity)},rgb:function(){return p(this).rgb()}}));var K=-.14861,J=1.78277,tt=-.29227,et=-.90649,nt=1.97294,rt=nt*et,it=nt*J,at=J*tt-et*K;E(T,k,e(n,{brighter:function(t){return t=null==t?C:Math.pow(C,t),new T(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?A:Math.pow(A,t),new T(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*q,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new s(255*(e+n*(K*r+J*i)),255*(e+n*(tt*r+et*i)),255*(e+n*(nt*r)),this.opacity)}})),t.color=r,t.rgb=u,t.hsl=h,t.lab=g,t.hcl=w,t.cubehelix=k,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===J&&e.documentElement.namespaceURI===J?e.createElement(t):e.createElementNS(n,t)}}function n(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function r(){return new i}function i(){this._="@"+(++rt).toString(36)}function a(t,e,n){return t=o(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function o(e,n,r){return function(i){var a=t.event;t.event=i;try{e.call(this,this.__data__,n,r)}finally{t.event=a}}}function u(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}})}function s(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r<a;++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 c(t,e,n){var r=st.hasOwnProperty(t.type)?a:o;return function(i,a,o){var u,s=this.__on,c=r(e,a,o);if(s)for(var l=0,h=s.length;l<h;++l)if((u=s[l]).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 l(e,n,r,i){var a=t.event;e.sourceEvent=t.event,t.event=e;try{return n.apply(r,i)}finally{t.event=a}}function h(){}function f(){return[]}function d(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function p(t,e,n,r,i,a){for(var o,u=0,s=e.length,c=a.length;u<c;++u)(o=e[u])?(o.__data__=a[u],r[u]=o):n[u]=new d(t,a[u]);for(;u<s;++u)(o=e[u])&&(i[u]=o)}function g(t,e,n,r,i,a,o){var u,s,c,l={},h=e.length,f=a.length,p=new Array(h);for(u=0;u<h;++u)(s=e[u])&&(p[u]=c=wt+o.call(s,s.__data__,u,e),c in l?i[u]=s:l[c]=s);for(u=0;u<f;++u)c=wt+o.call(t,a[u],u,a),(s=l[c])?(r[u]=s,s.__data__=a[u],l[c]=null):n[u]=new d(t,a[u]);for(u=0;u<h;++u)(s=e[u])&&l[p[u]]===s&&(i[u]=s)}function v(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function y(t){return function(){this.removeAttribute(t)}}function m(t){return function(){this.removeAttributeNS(t.space,t.local)}}function _(t,e){return function(){this.setAttribute(t,e)}}function x(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function b(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function w(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 M(t){return function(){this.style.removeProperty(t)}}function S(t,e,n){return function(){this.style.setProperty(t,e,n)}}function k(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(t,e){return t.style.getPropertyValue(e)||Ot(t).getComputedStyle(t,null).getPropertyValue(e)}function E(t){return function(){delete this[t]}}function A(t,e){return function(){this[t]=e}}function C(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function P(t){return t.trim().split(/^|\s+/)}function N(t){return t.classList||new I(t)}function I(t){this._node=t,this._names=P(t.getAttribute("class")||"")}function L(t,e){for(var n=N(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function R(t,e){for(var n=N(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function O(t){return function(){L(this,t)}}function B(t){return function(){R(this,t)}}function U(t,e){return function(){(e.apply(this,arguments)?L:R)(this,t)}}function D(){this.textContent=""}function z(t){return function(){this.textContent=t}}function F(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function j(){this.innerHTML=""}function q(t){return function(){this.innerHTML=t}}function Y(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function H(){this.nextSibling&&this.parentNode.appendChild(this)}function X(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function G(){return null}function W(){var t=this.parentNode;t&&t.removeChild(this)}function V(t,e,n){var r=Ot(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)}function $(t,e){return function(){return V(this,t,e)}}function Z(t,e){return function(){return V(this,t,e.apply(this,arguments))}}function Q(t,e){this._groups=t,this._parents=e}function K(){return new Q([[document.documentElement]],Vt)}var J="http://www.w3.org/1999/xhtml",tt={svg:"http://www.w3.org/2000/svg",xhtml:J,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},et=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),tt.hasOwnProperty(e)?{space:tt[e],local:t}:t},nt=function(t){var r=et(t);return(r.local?n:e)(r)},rt=0;i.prototype=r.prototype={constructor:i,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._}};var it=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var at=document.documentElement;if(!at.matches){var ot=at.webkitMatchesSelector||at.msMatchesSelector||at.mozMatchesSelector||at.oMatchesSelector;it=function(t){return function(){return ot.call(this,t)}}}}var ut=it,st={};if(t.event=null,"undefined"!=typeof document){var ct=document.documentElement;"onmouseenter"in ct||(st={mouseenter:"mouseover",mouseleave:"mouseout"})}var lt=function(t,e,n){var r,i,a=u(t+""),o=a.length;{if(!(arguments.length<2)){for(l=e?c:s,null==n&&(n=!1),r=0;r<o;++r)this.each(l(a[r],e,n));return this}var l=this.node().__on;if(l)for(var h,f=0,d=l.length;f<d;++f)for(r=0,h=l[f];r<o;++r)if((i=a[r]).type===h.type&&i.name===h.name)return h.value}},ht=function(){for(var e,n=t.event;e=n.sourceEvent;)n=e;return n},ft=function(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()),[r.x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]},dt=function(t){var e=ht();return e.changedTouches&&(e=e.changedTouches[0]),ft(t,e)},pt=function(t){return null==t?h:function(){return this.querySelector(t)}},gt=function(t){"function"!=typeof t&&(t=pt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o,u=e[i],s=u.length,c=r[i]=new Array(s),l=0;l<s;++l)(a=u[l])&&(o=t.call(a,a.__data__,l,u))&&("__data__"in a&&(o.__data__=a.__data__),c[l]=o);return new Q(r,this._parents)},vt=function(t){return null==t?f:function(){return this.querySelectorAll(t)}},yt=function(t){"function"!=typeof t&&(t=vt(t));for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var o,u=e[a],s=u.length,c=0;c<s;++c)(o=u[c])&&(r.push(t.call(o,o.__data__,c,u)),i.push(o));return new Q(r,i)},mt=function(t){"function"!=typeof t&&(t=ut(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],u=o.length,s=r[i]=[],c=0;c<u;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&s.push(a);return new Q(r,this._parents)},_t=function(t){return new Array(t.length)},xt=function(){return new Q(this._enter||this._groups.map(_t),this._parents)};d.prototype={constructor:d,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 bt=function(t){return function(){return t}},wt="$",Mt=function(t,e){if(!t)return d=new Array(this.size()),c=-1,this.each(function(t){d[++c]=t}),d;var n=e?g:p,r=this._parents,i=this._groups;"function"!=typeof t&&(t=bt(t));for(var a=i.length,o=new Array(a),u=new Array(a),s=new Array(a),c=0;c<a;++c){var l=r[c],h=i[c],f=h.length,d=t.call(l,l&&l.__data__,c,r),v=d.length,y=u[c]=new Array(v),m=o[c]=new Array(v),_=s[c]=new Array(f);n(l,h,y,m,_,d,e);for(var x,b,w=0,M=0;w<v;++w)if(x=y[w]){for(w>=M&&(M=w+1);!(b=m[M])&&++M<v;);x._next=b||null}}return o=new Q(o,r),o._enter=u,o._exit=s,o},St=function(){return new Q(this._exit||this._groups.map(_t),this._parents)},kt=function(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),u=0;u<a;++u)for(var s,c=e[u],l=n[u],h=c.length,f=o[u]=new Array(h),d=0;d<h;++d)(s=c[d]||l[d])&&(f[d]=s);for(;u<r;++u)o[u]=e[u];return new Q(o,this._parents)},Tt=function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&o!==r.nextSibling&&o.parentNode.insertBefore(r,o),o=r);return this},Et=function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=v);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o,u=n[a],s=u.length,c=i[a]=new Array(s),l=0;l<s;++l)(o=u[l])&&(c[l]=o);c.sort(e)}return new Q(i,this._parents).order()},At=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},Ct=function(){var t=new Array(this.size()),e=-1;return this.each(function(){t[++e]=this}),t},Pt=function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null},Nt=function(){var t=0;return this.each(function(){++t}),t},It=function(){return!this.node()},Lt=function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,a=e[n],o=0,u=a.length;o<u;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this},Rt=function(t,e){var n=et(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?m:y:"function"==typeof e?n.local?w:b:n.local?x:_)(n,e))},Ot=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView},Bt=function(t,e,n){return arguments.length>1?this.each((null==e?M:"function"==typeof e?k:S)(t,e,null==n?"":n)):T(this.node(),t)},Ut=function(t,e){return arguments.length>1?this.each((null==e?E:"function"==typeof e?C:A)(t,e)):this.node()[t]};I.prototype={add:function(t){var e=this._names.indexOf(t);e<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 Dt=function(t,e){var n=P(t+"");if(arguments.length<2){for(var r=N(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?U:e?O:B)(n,e))},zt=function(t){return arguments.length?this.each(null==t?D:("function"==typeof t?F:z)(t)):this.node().textContent},Ft=function(t){return arguments.length?this.each(null==t?j:("function"==typeof t?Y:q)(t)):this.node().innerHTML},jt=function(){return this.each(H)},qt=function(){return this.each(X)},Yt=function(t){var e="function"==typeof t?t:nt(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},Ht=function(t,e){var n="function"==typeof t?t:nt(t),r=null==e?G:"function"==typeof e?e:pt(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},Xt=function(){return this.each(W)},Gt=function(t){return arguments.length?this.property("__data__",t):this.node().__data__},Wt=function(t,e){return this.each(("function"==typeof e?Z:$)(t,e))},Vt=[null];Q.prototype=K.prototype={constructor:Q,select:gt,selectAll:yt,filter:mt,data:Mt,enter:xt,exit:St,merge:kt,order:Tt,sort:Et,call:At,nodes:Ct,node:Pt,size:Nt,empty:It,each:Lt,attr:Rt,style:Bt,property:Ut,classed:Dt,text:zt,html:Ft,raise:jt,lower:qt,append:Yt,insert:Ht,remove:Xt,datum:Gt,on:lt,dispatch:Wt};var $t=function(t){return"string"==typeof t?new Q([[document.querySelector(t)]],[document.documentElement]):new Q([[t]],Vt)},Zt=function(t){return"string"==typeof t?new Q([document.querySelectorAll(t)],[document.documentElement]):new Q([null==t?[]:t],Vt)},Qt=function(t,e,n){arguments.length<3&&(n=e,e=ht().changedTouches);for(var r,i=0,a=e?e.length:0;i<a;++i)if((r=e[i]).identifier===n)return ft(t,r);return null},Kt=function(t,e){null==e&&(e=ht().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n<r;++n)i[n]=ft(t,e[n]);return i};t.creator=nt,t.local=r,t.matcher=ut,t.mouse=dt,t.namespace=et,t.namespaces=tt,t.clientPoint=ft,t.select=$t,t.selectAll=Zt,t.selection=K,t.selector=pt,t.selectorAll=vt,t.style=T,t.touch=Qt,t.touches=Kt,t.window=Ot,t.customEvent=l,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){var r=n(103);t.exports=r},function(t,e,n){"use strict";var r=n(1),i=n(49),a=n(12).Group,o=i.ShowLabels,u="x-chart-axis",s=n(106),c=function(t){c.superclass.constructor.call(this,t)};c.CFG={zIndex:4,ticks:null,line:null,tickLine:null,subTick:null,grid:null,labels:{label:{},autoRotate:!0},title:{},autoPaint:!0,labelOffset:10,titleOffset:20,formatter:null,firstTick:!0},r.mixin(c,[o]),r.extend(c,a),r.augment(c,{_renderUI:function(){var t=this.get("labels");t&&this.renderLabels(),this.get("autoPaint")&&this.paint(),r.isNull(this.get("title"))||this.renderTitle(),this.sort()},_parseTicks:function(t){t=t||[];for(var e=t.length,n=0;n<e;n++){var i=t[n];r.isObject(i)||(t[n]=this.parseTick(i,n,e))}return this.set("ticks",t),t},_addTickItem:function(t,e,n){var r=this.get("tickItems"),i={x1:e.x,y1:e.y},a=this.getTickEnd(e,n,t);i.x2=a.x,i.y2=a.y,r||(r=[],this.set("tickItems",r)),r.push(i)},_formatPoint:function(t){var e=this.get("formatter");return e&&(t=e.call(this,t)),t},_renderLines:function(){var t,e=this.get("line"),n=this.get("id");if(e){t=this.getLinePath(),e=r.mix({path:t},e);var i=this.addShape("path",{elCls:u+"-line",attrs:e});i.id=n+"axisLine",i.animateType="axisLine",this.set("lineShape",i)}},_processTicks:function(){var t=this,e=t.get("labels"),n=t.get("subTick"),i=t.get("tickLine"),a=t.get("ticks");a=t._parseTicks(a),r.each(a,function(n,r){var a=t.getTickPoint(n.value,r);i&&t._addTickItem(r,a),e&&t.addLabel(t._formatPoint(n.text),a,r,n.value)}),n&&r.each(a,function(e,r){var o=r?e.value-a[r-1].value:e.value;o/=t.get("subTick");for(var u=1;u<n;u++){var s={text:"",value:r?a[r-1].value+u*o:u*o};if(i){var c=t.getTickPoint(s.value),l=parseInt(.6*i.value,10);t._addTickItem(u-1,c,l)}}})},_renderTicks:function(){var t=this,e=t.get("tickItems"),n=t.get("tickLine"),i=t.get("id"),a="",o=r.mix({},n);if(e){r.each(e,function(t){var e=r.substitute("M{x1} {y1}L{x2} {y2}",t);a+=e}),delete o.value,o.path=a;var s=t.addShape("path",{elCls:u+"-ticks",attrs:o});s.id=i+"axisTick",s.animateType="axisTick",t.set("tickShape",s)}},_renderGrid:function(){var t=this.get("grid");if(t){r.isNull(t.animate)&&(t.animate=this.get("animate")),this.get("start")&&(t.start=this.get("start"));var e=this.addGroup(s,t);this.set("gridGroup",e)}},paint:function(){this._renderLines(),this._processTicks(),this._renderTicks(),this._renderGrid();var t=this.get("labels");t&&t.autoRotate&&this.autoRotateLabels()},parseTick:function(t,e,n){return{text:t,value:e/(n-1)}},getTextAnchor:function(t){var e,n=Math.abs(t.y/t.x);return e=n>=1?"center":t.x>0?"left":"right"},addLabel:function(t,e,n,r){var i,a=this.get("id")+"label"+r,o=this.get("labelsGroup"),u={};if(o){var s=this.get("labelOffset")||10,c=this.getSideVector(s,e,n);e={x:e.x+c.x,y:e.y+c.y},u.text=t,u.x=e.x,u.y=e.y,u.textAlign=this.getTextAnchor(c),u.id=a?a:t,i=o.addLabel(u)}return i},getMaxLabelWidth:function(t){var e=t.get("children"),n=0;return r.each(e,function(t){var e=t.getBBox(),r=e.width;n<r&&(n=r)}),n},remove:function(){c.superclass.remove.call(this);var t=this.get("gridGroup");t&&t.remove(),this.removeLabels()},autoRotateLabels:function(){},renderTitle:function(){},getLinePath:function(){},getTickPoint:function(){},getTickEnd:function(){},getSideVector:function(){}}),t.exports=c},function(t,e,n){function r(t,e,n,r,i){var a=1-i;return a*a*(a*r+3*i*n)+i*i*(i*t+3*a*e)}function i(t,e,n,r,i){var a=1-i;return 3*(((e-t)*a+2*(n-e)*i)*a+(r-n)*i*i)}function a(t,e,n,i,a,o,u,s,l,h,f){var d,p,g,v,y,m,_,x,b=.005,w=1/0,M=1e-4,S=new c(l,h);for(p=0;p<1;p+=.05)g=new c(r(t,n,a,u,p),r(e,i,o,s,p)),v=g.distanceToSquared(S),v<w&&(d=p,w=v);w=1/0;for(var k=0;k<32&&!(b<M);k++)_=d-b,x=d+b,g=new c(r(t,n,a,u,_),r(e,i,o,s,_)),v=g.distanceToSquared(S),_>=0&&v<w?(d=_,w=v):(m=new c(r(t,n,a,u,x),r(e,i,o,s,x)),y=m.distanceToSquared(S),x<=1&&y<w?(d=x,w=y):b*=.5);return f&&(f.x=r(t,n,a,u,d),f.y=r(e,i,o,s,d)),Math.sqrt(w)}function o(t,e,n,r){var i,a,o,u=3*t-9*e+9*n-3*r,s=6*e-12*n+6*r,c=3*n-3*r,h=[];if(l.equal(u,0))l.equal(s,0)||(i=-c/s,i>=0&&i<=1&&h.push(i));else{var f=s*s-4*u*c;l.equal(f,0)?h.push(-s/(2*u)):f>0&&(o=Math.sqrt(f),i=(-s+o)/(2*u),a=(-s-o)/(2*u),i>=0&&i<=1&&h.push(i),a>=0&&a<=1&&h.push(a))}return h}function u(t,e,n,r,i){var a=-3*e+9*n-9*r+3*i,o=t*a+6*e-12*n+6*r;return t*o-3*e+3*n}function s(t,e,n,r,i,a,o,s,c){h.isNull(c)&&(c=1),c=c>1?1:c<0?0:c;for(var l=c/2,f=12,d=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],g=0,v=0;v<f;v++){
  var y=l*d[v]+l,m=u(y,t,n,i,o),_=u(y,e,r,a,s),x=m*m+_*_;g+=p[v]*Math.sqrt(x)}return l*g}var c=n(2).Vector2,l=n(7),h=n(1);t.exports={at:r,derivativeAt:i,projectPoint:function(t,e,n,r,i,o,u,s,c,l){var h={};return a(t,e,n,r,i,o,u,s,c,l,h),h},pointDistance:a,extrema:o,len:s}},function(t,e,n){t.exports=n(129)},function(t,e,n){"use strict";function r(t,e){if(a.isNumeric(t)&&a.isNumeric(e))return o.number(t,e);if(a.isString(t)&&a.isString(e)){var n=new s(t),r=new s(e);if(n.getType()&&r.getType())return u.color(n,r)}}function i(t,e){if(a.isNumeric(t)&&a.isNumeric(e))return o.unNumber(t,e);if(a.isString(t)&&a.isString(e)){var n=new s(t),r=new s(e);if(n.getType()&&r.getType())return u.unColor(n,r)}}var a=n(1),o=n(139),u=n(136),s=n(28);t.exports={singular:r,unSingular:i}},function(t,e,n){!function(t,r){r(e,n(21),n(22),n(18),n(42),n(31),n(44),n(23))}(this,function(t,e,n,r,i,a,o,u){"use strict";function s(t){function e(e){var n=e+"",o=r.get(n);if(!o){if(a!==Y)return a;r.set(n,o=i.push(e))}return t[(o-1)%t.length]}var r=n.map(),i=[],a=Y;return t=null==t?[]:q.call(t),e.domain=function(t){if(!arguments.length)return i.slice();i=[],r=n.map();for(var a,o,u=-1,s=t.length;++u<s;)r.has(o=(a=t[u])+"")||r.set(o,i.push(a));return e},e.range=function(n){return arguments.length?(t=q.call(n),e):t.slice()},e.unknown=function(t){return arguments.length?(a=t,e):a},e.copy=function(){return s().domain(i).range(t).unknown(a)},e}function c(){function t(){var t=a().length,i=u[1]<u[0],s=u[i-0],c=u[1-i];n=(c-s)/Math.max(1,t-h+2*f),l&&(n=Math.floor(n)),s+=(c-s-n*(t-h))*d,r=n*(1-h),l&&(s=Math.round(s),r=Math.round(r));var p=e.range(t).map(function(t){return s+n*t});return o(i?p.reverse():p)}var n,r,i=s().unknown(void 0),a=i.domain,o=i.range,u=[0,1],l=!1,h=0,f=0,d=.5;return delete i.unknown,i.domain=function(e){return arguments.length?(a(e),t()):a()},i.range=function(e){return arguments.length?(u=[+e[0],+e[1]],t()):u.slice()},i.rangeRound=function(e){return u=[+e[0],+e[1]],l=!0,t()},i.bandwidth=function(){return r},i.step=function(){return n},i.round=function(e){return arguments.length?(l=!!e,t()):l},i.padding=function(e){return arguments.length?(h=f=Math.max(0,Math.min(1,e)),t()):h},i.paddingInner=function(e){return arguments.length?(h=Math.max(0,Math.min(1,e)),t()):h},i.paddingOuter=function(e){return arguments.length?(f=Math.max(0,Math.min(1,e)),t()):f},i.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),t()):d},i.copy=function(){return c().domain(a()).range(u).round(l).paddingInner(h).paddingOuter(f).align(d)},t()}function l(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return l(e())},t}function h(){return l(c().paddingInner(1))}function f(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:H(e)}function d(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=e?0:t>=n?1:r(t)}}}function p(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:r(t)}}}function g(t,e,n,r){var i=t[0],a=t[1],o=e[0],u=e[1];return a<i?(i=n(a,i),o=r(u,o)):(i=n(i,a),o=r(o,u)),function(t){return o(i(t))}}function v(t,n,r,i){var a=Math.min(t.length,n.length)-1,o=new Array(a),u=new Array(a),s=-1;for(t[a]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++s<a;)o[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,a)-1;return u[r](o[r](n))}}function y(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function m(t,e){function n(){return a=Math.min(s.length,c.length)>2?v:g,o=u=null,i}function i(e){return(o||(o=a(s,c,h?d(t):t,l)))(+e)}var a,o,u,s=G,c=G,l=r.interpolate,h=!1;return i.invert=function(t){return(u||(u=a(c,s,f,h?p(e):e)))(+t)},i.domain=function(t){return arguments.length?(s=j.call(t,X),n()):s.slice()},i.range=function(t){return arguments.length?(c=q.call(t),n()):c.slice()},i.rangeRound=function(t){return c=q.call(t),l=r.interpolateRound,n()},i.clamp=function(t){return arguments.length?(h=!!t,n()):h},i.interpolate=function(t){return arguments.length?(l=t,n()):l},n()}function _(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 W(n(),t,e)},t.nice=function(r){null==r&&(r=10);var i,a=n(),o=0,u=a.length-1,s=a[o],c=a[u];return c<s&&(i=s,s=c,c=i,i=o,o=u,u=i),i=e.tickIncrement(s,c,r),i>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?(a[o]=Math.floor(s/i)*i,a[u]=Math.ceil(c/i)*i,n(a)):i<0&&(a[o]=Math.ceil(s*i)/i,a[u]=Math.floor(c*i)/i,n(a)),t},t}function x(){var t=m(f,r.interpolateNumber);return t.copy=function(){return y(t,x())},_(t)}function b(){function t(t){return+t}var e=[0,1];return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=j.call(n,X),t):e.slice()},t.copy=function(){return b().domain(e)},_(t)}function w(t,e){return(e=Math.log(e/t))?function(n){return Math.log(n/t)/e}:H(e)}function M(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 k(t){return 10===t?S:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function T(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 E(t){return function(e){return-t(-e)}}function A(){function t(){return o=T(a),u=k(a),r()[0]<0&&(o=E(o),u=E(u)),n}var n=m(w,M).domain([1,10]),r=n.domain,a=10,o=T(10),u=k(10);return n.base=function(e){return arguments.length?(a=+e,t()):a},n.domain=function(e){return arguments.length?(r(e),t()):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 l,h,f,d=o(s),p=o(c),g=null==t?10:+t,v=[];if(!(a%1)&&p-d<g){if(d=Math.round(d)-1,p=Math.round(p)+1,s>0){for(;d<p;++d)for(h=1,l=u(d);h<a;++h)if(f=l*h,!(f<s)){if(f>c)break;v.push(f)}}else for(;d<p;++d)for(h=a-1,l=u(d);h>=1;--h)if(f=l*h,!(f<s)){if(f>c)break;v.push(f)}}else v=e.ticks(d,p,Math.min(p-d,g)).map(u);return n?v.reverse():v},n.tickFormat=function(t,e){if(null==e&&(e=10===a?".0e":","),"function"!=typeof e&&(e=i.format(e)),t===1/0)return e;null==t&&(t=10);var r=Math.max(1,a*t/n.ticks().length);return function(t){var n=t/u(Math.round(o(t)));return n*a<a-.5&&(n*=a),n<=r?e(t):""}},n.nice=function(){return r(V(r(),{floor:function(t){return u(Math.floor(o(t)))},ceil:function(t){return u(Math.ceil(o(t)))}}))},n.copy=function(){return y(n,A().base(a))},n}function C(t,e){return t<0?-Math.pow(-t,e):Math.pow(t,e)}function P(){function t(t,e){return(e=C(e,n)-(t=C(t,n)))?function(r){return(C(r,n)-t)/e}:H(e)}function e(t,e){return e=C(e,n)-(t=C(t,n)),function(r){return C(t+e*r,1/n)}}var n=1,r=m(t,e),i=r.domain;return r.exponent=function(t){return arguments.length?(n=+t,i(i())):n},r.copy=function(){return y(r,P().exponent(n))},_(r)}function N(){return P().exponent(.5)}function I(){function t(){var t=0,o=Math.max(1,i.length);for(a=new Array(o-1);++t<o;)a[t-1]=e.quantile(r,t/o);return n}function n(t){if(!isNaN(t=+t))return i[e.bisect(a,t)]}var r=[],i=[],a=[];return n.invertExtent=function(t){var e=i.indexOf(t);return e<0?[NaN,NaN]:[e>0?a[e-1]:r[0],e<a.length?a[e]:r[r.length-1]]},n.domain=function(n){if(!arguments.length)return r.slice();r=[];for(var i,a=0,o=n.length;a<o;++a)i=n[a],null==i||isNaN(i=+i)||r.push(i);return r.sort(e.ascending),t()},n.range=function(e){return arguments.length?(i=q.call(e),t()):i.slice()},n.quantiles=function(){return a.slice()},n.copy=function(){return I().domain(r).range(i)},n}function L(){function t(t){if(t<=t)return u[e.bisect(o,t,0,a)]}function n(){var e=-1;for(o=new Array(a);++e<a;)o[e]=((e+1)*i-(e-a)*r)/(a+1);return t}var r=0,i=1,a=1,o=[.5],u=[0,1];return t.domain=function(t){return arguments.length?(r=+t[0],i=+t[1],n()):[r,i]},t.range=function(t){return arguments.length?(a=(u=q.call(t)).length-1,n()):u.slice()},t.invertExtent=function(t){var e=u.indexOf(t);return e<0?[NaN,NaN]:e<1?[r,o[0]]:e>=a?[o[a-1],i]:[o[e-1],o[e]]},t.copy=function(){return L().domain([r,i]).range(u)},_(t)}function R(){function t(t){if(t<=t)return r[e.bisect(n,t,0,i)]}var n=[.5],r=[0,1],i=1;return t.domain=function(e){return arguments.length?(n=q.call(e),i=Math.min(n.length,r.length-1),t):n.slice()},t.range=function(e){return arguments.length?(r=q.call(e),i=Math.min(n.length,r.length-1),t):r.slice()},t.invertExtent=function(t){var e=r.indexOf(t);return[n[e-1],n[e]]},t.copy=function(){return R().domain(n).range(r)},t}function O(t){return new Date(t)}function B(t){return t instanceof Date?+t:+new Date(+t)}function U(t,n,i,a,o,u,s,c,l){function h(e){return(s(e)<e?_:u(e)<e?x:o(e)<e?b:a(e)<e?w:n(e)<e?i(e)<e?M:S:t(e)<e?k:T)(e)}function d(n,r,i,a){if(null==n&&(n=10),"number"==typeof n){var o=Math.abs(i-r)/n,u=e.bisector(function(t){return t[2]}).right(E,o);u===E.length?(a=e.tickStep(r/et,i/et,n),n=t):u?(u=E[o/E[u-1][2]<E[u][2]/o?u-1:u],a=u[1],n=u[0]):(a=Math.max(e.tickStep(r,i,n),1),n=c)}return null==a?n:n.every(a)}var p=m(f,r.interpolateNumber),g=p.invert,v=p.domain,_=l(".%L"),x=l(":%S"),b=l("%I:%M"),w=l("%I %p"),M=l("%a %d"),S=l("%b %d"),k=l("%B"),T=l("%Y"),E=[[s,1,$],[s,5,5*$],[s,15,15*$],[s,30,30*$],[u,1,Z],[u,5,5*Z],[u,15,15*Z],[u,30,30*Z],[o,1,Q],[o,3,3*Q],[o,6,6*Q],[o,12,12*Q],[a,1,K],[a,2,2*K],[i,1,J],[n,1,tt],[n,3,3*tt],[t,1,et]];return p.invert=function(t){return new Date(g(t))},p.domain=function(t){return arguments.length?v(j.call(t,B)):v().map(O)},p.ticks=function(t,e){var n,r=v(),i=r[0],a=r[r.length-1],o=a<i;return o&&(n=i,i=a,a=n),n=d(t,i,a,e),n=n?n.range(i,a+1):[],o?n.reverse():n},p.tickFormat=function(t,e){return null==e?h:l(e)},p.nice=function(t,e){var n=v();return(t=d(t,n[0],n[n.length-1],e))?v(V(n,t)):p},p.copy=function(){return y(p,U(t,n,i,a,o,u,s,c,l))},p}function D(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}function z(t){function e(e){var a=(e-n)/(r-n);return t(i?Math.max(0,Math.min(1,a)):a)}var n=0,r=1,i=!1;return e.domain=function(t){return arguments.length?(n=+t[0],r=+t[1],e):[n,r]},e.clamp=function(t){return arguments.length?(i=!!t,e):i},e.interpolator=function(n){return arguments.length?(t=n,e):t},e.copy=function(){return z(t).domain([n,r]).clamp(i)},_(e)}var F=Array.prototype,j=F.map,q=F.slice,Y={name:"implicit"},H=function(t){return function(){return t}},X=function(t){return+t},G=[0,1],W=function(t,n,r){var a,o=t[0],u=t[t.length-1],s=e.tickStep(o,u,null==n?10:n);switch(r=i.formatSpecifier(null==r?",f":r),r.type){case"s":var c=Math.max(Math.abs(o),Math.abs(u));return null!=r.precision||isNaN(a=i.precisionPrefix(s,c))||(r.precision=a),i.formatPrefix(r,c);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(a=i.precisionRound(s,Math.max(Math.abs(o),Math.abs(u))))||(r.precision=a-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(a=i.precisionFixed(s))||(r.precision=a-2*("%"===r.type))}return i.format(r)},V=function(t,e){t=t.slice();var n,r=0,i=t.length-1,a=t[r],o=t[i];return o<a&&(n=r,r=i,i=n,n=a,a=o,o=n),t[r]=e.floor(a),t[i]=e.ceil(o),t},$=1e3,Z=60*$,Q=60*Z,K=24*Q,J=7*K,tt=30*K,et=365*K,nt=function(){return U(a.timeYear,a.timeMonth,a.timeWeek,a.timeDay,a.timeHour,a.timeMinute,a.timeSecond,a.timeMillisecond,o.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},rt=function(){return U(a.utcYear,a.utcMonth,a.utcWeek,a.utcDay,a.utcHour,a.utcMinute,a.utcSecond,a.utcMillisecond,o.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},it=function(t){return t.match(/.{6}/g).map(function(t){return"#"+t})},at=it("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),ot=it("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),ut=it("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),st=it("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),ct=r.interpolateCubehelixLong(u.cubehelix(300,.5,0),u.cubehelix(-240,.5,1)),lt=r.interpolateCubehelixLong(u.cubehelix(-100,.75,.35),u.cubehelix(80,1.5,.8)),ht=r.interpolateCubehelixLong(u.cubehelix(260,.75,.35),u.cubehelix(80,1.5,.8)),ft=u.cubehelix(),dt=function(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return ft.h=360*t-100,ft.s=1.5-1.5*e,ft.l=.8-.9*e,ft+""},pt=D(it("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),gt=D(it("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),vt=D(it("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),yt=D(it("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));t.scaleBand=c,t.scalePoint=h,t.scaleIdentity=b,t.scaleLinear=x,t.scaleLog=A,t.scaleOrdinal=s,t.scaleImplicit=Y,t.scalePow=P,t.scaleSqrt=N,t.scaleQuantile=I,t.scaleQuantize=L,t.scaleThreshold=R,t.scaleTime=nt,t.scaleUtc=rt,t.schemeCategory10=at,t.schemeCategory20b=ot,t.schemeCategory20c=ut,t.schemeCategory20=st,t.interpolateCubehelixDefault=ct,t.interpolateRainbow=dt,t.interpolateWarm=lt,t.interpolateCool=ht,t.interpolateViridis=pt,t.interpolateMagma=gt,t.interpolateInferno=vt,t.interpolatePlasma=yt,t.scaleSequential=z,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(t,n,r,o){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)),n(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 n(t=new Date(+t),null==e?1:Math.floor(e)),t},u.range=function(e,r,i){var a,o=[];if(e=u.ceil(e),i=null==i?1:Math.floor(i),!(e<r&&i>0))return o;do o.push(a=new Date(+e)),n(e,i),t(e);while(a<e&&e<r);return o},u.filter=function(r){return e(function(e){if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)},function(t,e){if(t>=t)if(e<0)for(;++e<=0;)for(;n(t,-1),!r(t););else for(;--e>=0;)for(;n(t,1),!r(t););})},r&&(u.count=function(e,n){return i.setTime(+e),a.setTime(+n),t(i),t(a),Math.floor(r(i,a))},u.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?u.filter(o?function(e){return o(e)%t===0}:function(e){return u.count(0,e)%t===0}):u:null}),u}function n(t){return e(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())*c)/f})}function r(t){return e(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)/f})}var i=new Date,a=new Date,o=e(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?e(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):o:null};var u=o.range,s=1e3,c=6e4,l=36e5,h=864e5,f=6048e5,d=e(function(t){t.setTime(Math.floor(t/s)*s)},function(t,e){t.setTime(+t+e*s)},function(t,e){return(e-t)/s},function(t){return t.getUTCSeconds()}),p=d.range,g=e(function(t){t.setTime(Math.floor(t/c)*c)},function(t,e){t.setTime(+t+e*c)},function(t,e){return(e-t)/c},function(t){return t.getMinutes()}),v=g.range,y=e(function(t){var e=t.getTimezoneOffset()*c%l;e<0&&(e+=l),t.setTime(Math.floor((+t-e)/l)*l+e)},function(t,e){t.setTime(+t+e*l)},function(t,e){return(e-t)/l},function(t){return t.getHours()}),m=y.range,_=e(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())*c)/h},function(t){return t.getDate()-1}),x=_.range,b=n(0),w=n(1),M=n(2),S=n(3),k=n(4),T=n(5),E=n(6),A=b.range,C=w.range,P=M.range,N=S.range,I=k.range,L=T.range,R=E.range,O=e(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()}),B=O.range,U=e(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()});U.every=function(t){return isFinite(t=Math.floor(t))&&t>0?e(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 D=U.range,z=e(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*c)},function(t,e){return(e-t)/c},function(t){return t.getUTCMinutes()}),F=z.range,j=e(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*l)},function(t,e){return(e-t)/l},function(t){return t.getUTCHours()}),q=j.range,Y=e(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/h},function(t){return t.getUTCDate()-1}),H=Y.range,X=r(0),G=r(1),W=r(2),V=r(3),$=r(4),Z=r(5),Q=r(6),K=X.range,J=G.range,tt=W.range,et=V.range,nt=$.range,rt=Z.range,it=Q.range,at=e(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()}),ot=at.range,ut=e(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()});ut.every=function(t){return isFinite(t=Math.floor(t))&&t>0?e(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 st=ut.range;t.timeInterval=e,t.timeMillisecond=o,t.timeMilliseconds=u,t.utcMillisecond=o,t.utcMilliseconds=u,t.timeSecond=d,t.timeSeconds=p,t.utcSecond=d,t.utcSeconds=p,t.timeMinute=g,t.timeMinutes=v,t.timeHour=y,t.timeHours=m,t.timeDay=_,t.timeDays=x,t.timeWeek=b,t.timeWeeks=A,t.timeSunday=b,t.timeSundays=A,t.timeMonday=w,t.timeMondays=C,t.timeTuesday=M,t.timeTuesdays=P,t.timeWednesday=S,t.timeWednesdays=N,t.timeThursday=k,t.timeThursdays=I,t.timeFriday=T,t.timeFridays=L,t.timeSaturday=E,t.timeSaturdays=R,t.timeMonth=O,t.timeMonths=B,t.timeYear=U,t.timeYears=D,t.utcMinute=z,t.utcMinutes=F,t.utcHour=j,t.utcHours=q,t.utcDay=Y,t.utcDays=H,t.utcWeek=X,t.utcWeeks=K,t.utcSunday=X,t.utcSundays=K,t.utcMonday=G,t.utcMondays=J,t.utcTuesday=W,t.utcTuesdays=tt,t.utcWednesday=V,t.utcWednesdays=et,t.utcThursday=$,t.utcThursdays=nt,t.utcFriday=Z,t.utcFridays=rt,t.utcSaturday=Q,t.utcSaturdays=it,t.utcMonth=at,t.utcMonths=ot,t.utcYear=ut,t.utcYears=st,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){"use strict";function r(t){function e(r){var i=t.node(r);if(a.has(n,r))return i.rank;n[r]=!0;var o=a.min(a.map(t.outEdges(r),function(n){return e(n.w)-t.edge(n).minlen}));return o===Number.POSITIVE_INFINITY&&(o=0),i.rank=o}var n={};a.each(t.sources(),e)}function i(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}var a=n(3);t.exports={longestPath:r,slack:i}},function(t,e,n){(function(e){"use strict";function n(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var a,o,u=arguments.length;switch(u){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick(function(){t.call(null,n)});case 3:return e.nextTick(function(){t.call(null,n,r)});case 4:return e.nextTick(function(){t.call(null,n,r,i)});default:for(a=new Array(u-1),o=0;o<a.length;)a[o++]=arguments[o];return e.nextTick(function(){t.apply(null,a)})}}!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports=n:t.exports=e.nextTick}).call(e,n(15))},function(t,e,n){function r(t,e){for(var n in t)e[n]=t[n]}function i(t,e,n){return o(t,e,n)}var a=n(17),o=a.Buffer;o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=a:(r(a,e),e.Buffer=i),r(o,i),i.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,n)},i.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=o(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},i.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},i.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return a.SlowBuffer(t)}},function(t,e,n){"use strict";var r=n(1),i=n(12).Group,a=function(t){a.superclass.constructor.call(this,t)};a.CFG={title:{},titleText:null,dx:0,dy:0,position:!0,animate:!1},r.extend(a,i),r.augment(a,{_beforeRenderUI:function(){var t=this.get("title");r.isNull(t)&&this.set("titleText",null),this.set("itemsGroup",this.addGroup()),this.set("titleShape",this.addShape("text",{attrs:r.mix({x:0,y:0},t)}))},_renderUI:function(){this._renderTitle()},_renderTitle:function(){var t=this.get("titleShape"),e=this.get("titleText");t.attr({x:0,y:0,text:e})},setPosition:function(t){t=t?t:this.get("position");var e=this.get("plotRange");if(e){var n=e.tl,r=e.br,i=this.get("dx"),a=this.get("dy"),o=this.getBBox().width,u=0,s=0;switch(t){case"top":u=n.x,s=n.y;break;case"left":u=n.x,s=(n.y+r.y)/2;break;case"right":u=r.x-o,s=(n.y+r.y)/2;break;case"bottom":u=(n.x+r.x)/2-o/2,s=r.y}this.move(u+i,s+a),this.set("position",t)}},getCount:function(){return this.get("itemsGroup").get("children").length},getLeaveCount:function(){var t=this.get("itemsGroup"),e=t.get("children"),n=[];return n=r.filter(e,function(t){return t.get("checked")}),n.length},setItems:function(t){this.set("items",t),this.clearItems(),this._renderUI()},addItem:function(t){var e=this.get("items");e.push(t),this.clearItems(),this._renderUI()},clearItems:function(){var t=this.get("itemsGroup");t.clear()}}),t.exports=a},function(t,e,n){function r(t,e,n,r){return{x:Math.cos(r)*n+t,y:Math.sin(r)*n+e}}function i(t,e,n,r){var i,a;return r?t<e?(i=e-t,a=2*Math.PI-n+t):t>n&&(i=2*Math.PI-t+e,a=t-n):(i=t-e,a=n-t),i>a?n:e}function a(t,e,n,r){var a=0;return n-e>=2*Math.PI&&(a=2*Math.PI),e=c.mod(e,2*Math.PI),n=c.mod(n,2*Math.PI)+a,t=c.mod(t,2*Math.PI),r?e>=n?t>n&&t<e?t:i(t,n,e,!0):t<e||t>n?t:i(t,e,n):e<=n?e<t&&t<n?t:i(t,e,n,!0):t>e||t<n?t:i(t,n,e)}function o(t,e,n,r,i,o,u,c,l){var h=new s(u,c),f=new s(t,e),d=new s(1,0),p=s.sub(h,f),g=d.angleTo(p);g=a(g,r,i,o);var v=new s(n*Math.cos(g)+t,n*Math.sin(g)+e);l&&(l.x=v.x,l.y=v.y);var y=h.distanceTo(v);return y}function u(t,e,n,i,o,u){var s=0,c=Math.PI/2,h=Math.PI,f=3*Math.PI/2,d=[],p=a(s,i,o,u);p===s&&d.push(r(t,e,n,s)),p=a(c,i,o,u),p===c&&d.push(r(t,e,n,c)),p=a(h,i,o,u),p===h&&d.push(r(t,e,n,h)),p=a(f,i,o,u),p===f&&d.push(r(t,e,n,f)),d.push(r(t,e,n,i)),d.push(r(t,e,n,o));var g=1/0,v=-(1/0),y=1/0,m=-(1/0);return l.each(d,function(t){g>t.x&&(g=t.x),v<t.x&&(v=t.x),y>t.y&&(y=t.y),m<t.y&&(m=t.y)}),{minX:g,minY:y,maxX:v,maxY:m}}var s=n(2).Vector2,c=n(7),l=n(1);t.exports={nearAngle:a,projectPoint:function(t,e,n,r,i,a,u,s){var c={};return o(t,e,n,r,i,a,u,s,c),c},pointDistance:o,box:u}},function(t,e,n){var r=n(2).Vector2;t.exports={at:function(t,e,n){return(e-t)*n+t},pointDistance:function(t,e,n,i,a,o){var u=new r(n-t,i-e);if(u.isZero())return NaN;var s=u.vertical();s.normalize();var c=new r(a-t,o-e);return Math.abs(c.dot(s))},box:function(t,e,n,r,i){var a=i/2,o=Math.min(t,n),u=Math.max(t,n),s=Math.min(e,r),c=Math.max(e,r);return{minX:o-a,minY:s-a,maxX:u+a,maxY:c+a}},len:function(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))}}},function(t,e,n){function r(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function i(t,e,n,i,a,u,s,c,l){var h,f,d,p,g,v,y,m=.005,_=1/0,x=1e-4,b=new o(s,c);for(g=0;g<1;g+=.05)d=new o(r(t,n,a,g),r(e,i,u,g)),f=d.distanceToSquared(b),f<_&&(h=g,_=f);for(_=1/0,y=0;y<32&&!(m<x);y++){var w=h-m,M=h+m;d=new o(r(t,n,a,w),r(e,i,u,w)),f=d.distanceToSquared(b),w>=0&&f<_?(h=w,_=f):(p=new o(r(t,n,a,M),r(e,i,u,M)),v=p.distanceToSquared(b),M<=1&&v<_?(h=M,_=v):m*=.5)}return l&&(l.x=r(t,n,a,h),l.y=r(e,i,u,h)),Math.sqrt(_)}function a(t,e,n){var r=t+n-2*e;if(u.equal(r,0))return[.5];var i=(t-e)/r;return i<=1&&i>=0?[i]:[]}var o=n(2).Vector2,u=n(7);t.exports={at:r,projectPoint:function(t,e,n,r,a,o,u,s){var c={};return i(t,e,n,r,a,o,u,s,c),c},pointDistance:i,extrema:a}},function(t,e,n){var r=n(133);t.exports=r},function(t,e,n){"use strict";var r=(n(1),"\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029"),i=new RegExp("([a-z])["+r+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+r+"]*,?["+r+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+r+"]*,?["+r+"]*","ig"),o=function(t){if(!t)return null;if(typeof t==typeof[])return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(i,function(t,r,i){var o=[],u=r.toLowerCase();if(i.replace(a,function(t,e){e&&o.push(+e)}),"m"==u&&o.length>2&&(n.push([r].concat(o.splice(0,2))),u="l",r="m"==r?"l":"L"),"o"==u&&1==o.length&&n.push([r,o[0]]),"r"==u)n.push([r].concat(o));else for(;o.length>=e[u]&&(n.push([r].concat(o.splice(0,e[u]))),e[u]););}),n},u=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4==r?a[3]={x:+t[0],y:+t[1]}:i-2==r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4==r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n},s=function(t,e,n,r,i){if(null==i&&null==r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!=i)var a=Math.PI/180,o=t+n*Math.cos(-r*a),u=t+n*Math.cos(-i*a),s=e+n*Math.sin(-r*a),c=e+n*Math.sin(-i*a),l=[["M",o,s],["A",n,n,0,+(i-r>180),0,u,c]];else l=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return l},c=function(t){if(t=o(t),!t||!t.length)return[["M",0,0]];var e,n=[],r=0,i=0,a=0,c=0,l=0;"M"==t[0][0]&&(r=+t[0][1],i=+t[0][2],a=r,c=i,l++,n[0]=["M",r,i]);for(var h,f,d=3==t.length&&"M"==t[0][0]&&"R"==t[1][0].toUpperCase()&&"Z"==t[2][0].toUpperCase(),p=l,g=t.length;p<g;p++){
  if(n.push(h=[]),f=t[p],e=f[0],e!=e.toUpperCase())switch(h[0]=e.toUpperCase(),h[0]){case"A":h[1]=f[1],h[2]=f[2],h[3]=f[3],h[4]=f[4],h[5]=f[5],h[6]=+f[6]+r,h[7]=+f[7]+i;break;case"V":h[1]=+f[1]+i;break;case"H":h[1]=+f[1]+r;break;case"R":for(var v=[r,i].concat(f.slice(1)),y=2,m=v.length;y<m;y++)v[y]=+v[y]+r,v[++y]=+v[y]+i;n.pop(),n=n.concat(u(v,d));break;case"O":n.pop(),v=s(r,i,f[1],f[2]),v.push(v[0]),n=n.concat(v);break;case"U":n.pop(),n=n.concat(s(r,i,f[1],f[2],f[3])),h=["U"].concat(n[n.length-1].slice(-2));break;case"M":a=+f[1]+r,c=+f[2]+i;default:for(y=1,m=f.length;y<m;y++)h[y]=+f[y]+(y%2?r:i)}else if("R"==e)v=[r,i].concat(f.slice(1)),n.pop(),n=n.concat(u(v,d)),h=["R"].concat(f.slice(-2));else if("O"==e)n.pop(),v=s(r,i,f[1],f[2]),v.push(v[0]),n=n.concat(v);else if("U"==e)n.pop(),n=n.concat(s(r,i,f[1],f[2],f[3])),h=["U"].concat(n[n.length-1].slice(-2));else for(var _=0,x=f.length;_<x;_++)h[_]=f[_];if(e=e.toUpperCase(),"O"!=e)switch(h[0]){case"Z":r=+a,i=+c;break;case"H":r=h[1];break;case"V":i=h[1];break;case"M":a=h[h.length-2],c=h[h.length-1];default:r=h[h.length-2],i=h[h.length-1]}}return n},l=function(t,e,n,r){return[t,e,n,r,n,r]},h=function(t,e,n,r,i,a){var o=1/3,u=2/3;return[o*t+u*n,o*e+u*r,o*i+u*n,o*a+u*r,i,a]},f=function(t,e,n,r,i,a,o,u,s,c){n===r&&(n+=1);var l,h=120*Math.PI/180,d=Math.PI/180*(+i||0),p=[],g=function(t,e,n){var r=t*Math.cos(n)-e*Math.sin(n),i=t*Math.sin(n)+e*Math.cos(n);return{x:r,y:i}};if(c)S=c[0],k=c[1],w=c[2],M=c[3];else{l=g(t,e,-d),t=l.x,e=l.y,l=g(u,s,-d),u=l.x,s=l.y,t===u&&e===s&&(u+=1,s+=1);var v=(Math.cos(Math.PI/180*i),Math.sin(Math.PI/180*i),(t-u)/2),y=(e-s)/2,m=v*v/(n*n)+y*y/(r*r);m>1&&(m=Math.sqrt(m),n*=m,r*=m);var _=n*n,x=r*r,b=(a==o?-1:1)*Math.sqrt(Math.abs((_*x-_*y*y-x*v*v)/(_*y*y+x*v*v))),w=b*n*y/r+(t+u)/2,M=b*-r*v/n+(e+s)/2,S=Math.asin(((e-M)/r).toFixed(9)),k=Math.asin(((s-M)/r).toFixed(9));S=t<w?Math.PI-S:S,k=u<w?Math.PI-k:k,S<0&&(S=2*Math.PI+S),k<0&&(k=2*Math.PI+k),o&&S>k&&(S-=2*Math.PI),!o&&k>S&&(k-=2*Math.PI)}var T=k-S;if(Math.abs(T)>h){var E=k,A=u,C=s;k=S+h*(o&&k>S?1:-1),u=w+n*Math.cos(k),s=M+r*Math.sin(k),p=f(u,s,n,r,i,0,o,A,C,[k,E,w,M])}T=k-S;var P=Math.cos(S),N=Math.sin(S),I=Math.cos(k),L=Math.sin(k),R=Math.tan(T/4),O=4/3*n*R,B=4/3*r*R,U=[t,e],D=[t+O*N,e-B*P],z=[u+O*L,s-B*I],F=[u,s];if(D[0]=2*U[0]-D[0],D[1]=2*U[1]-D[1],c)return[D,z,F].concat(p);p=[D,z,F].concat(p).join().split(",");for(var j=[],q=0,Y=p.length;q<Y;q++)j[q]=q%2?g(p[q-1],p[q],d).y:g(p[q],p[q+1],d).x;return j},d=function(t,e){for(var n=c(t),r=e&&c(e),i={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o=(function(t,e,n){var r,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(f.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"==n||"S"==n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"==n||"T"==n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(h(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(h(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(l(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(l(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(l(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(l(e.x,e.y,e.X,e.Y))}return t}),u=function(t,e){if(t[e].length>7){t[e].shift();for(var i=t[e];i.length;)d[e]="A",r&&(p[e]="A"),t.splice(e++,0,["C"].concat(i.splice(0,6)));t.splice(e,1),m=Math.max(n.length,r&&r.length||0)}},s=function(t,e,i,a,o){t&&e&&"M"==t[o][0]&&"M"!=e[o][0]&&(e.splice(o,0,["M",a.x,a.y]),i.bx=0,i.by=0,i.x=t[o][1],i.y=t[o][2],m=Math.max(n.length,r&&r.length||0))},d=[],p=[],g="",v="",y=0,m=Math.max(n.length,r&&r.length||0);y<m;y++){n[y]&&(g=n[y][0]),"C"!=g&&(d[y]=g,y&&(v=d[y-1])),n[y]=o(n[y],i,v),"A"!=d[y]&&"C"==g&&(d[y]="C"),u(n,y),r&&(r[y]&&(g=r[y][0]),"C"!=g&&(p[y]=g,y&&(v=p[y-1])),r[y]=o(r[y],a,v),"A"!=p[y]&&"C"==g&&(p[y]="C"),u(r,y)),s(n,r,i,a,y),s(r,n,a,i,y);var _=n[y],x=r&&r[y],b=_.length,w=r&&x.length;i.x=_[b-2],i.y=_[b-1],i.bx=parseFloat(_[b-4])||i.x,i.by=parseFloat(_[b-3])||i.y,a.bx=r&&(parseFloat(x[w-4])||a.x),a.by=r&&(parseFloat(x[w-3])||a.y),a.x=r&&x[w-2],a.y=r&&x[w-1]}return r?[n,r]:n},p=/,?([a-z]),?/gi,g=function(t){return t.join(",").replace(p,"$1")},v={toArray:o,toString:g,toCurve:d,toAbsolute:c,catmullRomToBezier:u};t.exports=v},function(t,e,n){!function(t,r){r(e,n(13),n(24))}(this,function(t,e,n){"use strict";function r(){n.event.stopImmediatePropagation()}function i(t,e){var r=t.document.documentElement,i=n.select(t).on("dragstart.drag",null);e&&(i.on("click.drag",l,!0),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in r?i.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}function a(t,e,n,r,i,a,o,u,s,c){this.target=t,this.type=e,this.subject=n,this.identifier=r,this.active=i,this.x=a,this.y=o,this.dx=u,this.dy=s,this._=c}function o(){return!n.event.button}function u(){return this.parentNode}function s(t){return null==t?{x:n.event.x,y:n.event.y}:t}function c(){return"ontouchstart"in this}var l=function(){n.event.preventDefault(),n.event.stopImmediatePropagation()},h=function(t){var e=t.document.documentElement,r=n.select(t).on("dragstart.drag",l,!0);"onselectstart"in e?r.on("selectstart.drag",l,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")},f=function(t){return function(){return t}};a.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var d=function(){function t(t){t.on("mousedown.drag",d).filter(E).on("touchstart.drag",v).on("touchmove.drag",y).on("touchend.drag touchcancel.drag",m).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(){if(!M&&S.apply(this,arguments)){var t=_("mouse",k.apply(this,arguments),n.mouse,this,arguments);t&&(n.select(n.event.view).on("mousemove.drag",p,!0).on("mouseup.drag",g,!0),h(n.event.view),r(),w=!1,x=n.event.clientX,b=n.event.clientY,t("start"))}}function p(){if(l(),!w){var t=n.event.clientX-x,e=n.event.clientY-b;w=t*t+e*e>N}A.mouse("drag")}function g(){n.select(n.event.view).on("mousemove.drag mouseup.drag",null),i(n.event.view,w),l(),A.mouse("end")}function v(){if(S.apply(this,arguments)){var t,e,i=n.event.changedTouches,a=k.apply(this,arguments),o=i.length;for(t=0;t<o;++t)(e=_(i[t].identifier,a,n.touch,this,arguments))&&(r(),e("start"))}}function y(){var t,e,r=n.event.changedTouches,i=r.length;for(t=0;t<i;++t)(e=A[r[t].identifier])&&(l(),e("drag"))}function m(){var t,e,i=n.event.changedTouches,a=i.length;for(M&&clearTimeout(M),M=setTimeout(function(){M=null},500),t=0;t<a;++t)(e=A[i[t].identifier])&&(r(),e("end"))}function _(e,r,i,o,u){var s,c,l,h=i(r,e),f=C.copy();if(n.customEvent(new a(t,"beforestart",s,e,P,h[0],h[1],0,0,f),function(){return null!=(n.event.subject=s=T.apply(o,u))&&(c=s.x-h[0]||0,l=s.y-h[1]||0,!0)}))return function d(p){var g,v=h;switch(p){case"start":A[e]=d,g=P++;break;case"end":delete A[e],--P;case"drag":h=i(r,e),g=P}n.customEvent(new a(t,p,s,e,g,h[0]+c,h[1]+l,h[0]-v[0],h[1]-v[1],f),f.apply,f,[p,o,u])}}var x,b,w,M,S=o,k=u,T=s,E=c,A={},C=e.dispatch("start","drag","end"),P=0,N=0;return t.filter=function(e){return arguments.length?(S="function"==typeof e?e:f(!!e),t):S},t.container=function(e){return arguments.length?(k="function"==typeof e?e:f(e),t):k},t.subject=function(e){return arguments.length?(T="function"==typeof e?e:f(e),t):T},t.touchable=function(e){return arguments.length?(E="function"==typeof e?e:f(!!e),t):E},t.on=function(){var e=C.on.apply(C,arguments);return e===C?t:e},t.clickDistance=function(e){return arguments.length?(N=(e=+e)*e,t):Math.sqrt(N)},t};t.drag=d,t.dragDisable=h,t.dragEnable=i,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(t){return new n(t)}function n(t){if(!(e=d.exec(t)))throw new Error("invalid format: "+t);var e,n=e[1]||" ",r=e[2]||">",i=e[3]||"-",a=e[4]||"",o=!!e[5],u=e[6]&&+e[6],s=!!e[7],c=e[8]&&+e[8].slice(1),l=e[9]||"";"n"===l?(s=!0,l="g"):f[l]||(l=""),(o||"0"===n&&"="===r)&&(o=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=i,this.symbol=a,this.zero=o,this.width=u,this.comma=s,this.precision=c,this.type=l}function r(e){return p=y(e),t.format=p.format,t.formatPrefix=p.formatPrefix,p}var i,a=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)]},o=function(t){return t=a(Math.abs(t)),t?t[1]:NaN},u=function(t,e){return function(n,r){for(var i=n.length,a=[],o=0,u=t[0],s=0;i>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),a.push(n.substring(i-=u,i+u)),!((s+=u+1)>r));)u=t[o=(o+1)%t.length];return a.reverse().join(e)}},s=function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}},c=function(t,e){t=t.toPrecision(e);t:for(var n,r=t.length,i=1,a=-1;i<r;++i)switch(t[i]){case".":a=n=i;break;case"0":0===a&&(a=i),n=i;break;case"e":break t;default:a>0&&(a=0)}return a>0?t.slice(0,a)+t.slice(n+1):t},l=function(t,e){var n=a(t,e);if(!n)return t+"";var r=n[0],o=n[1],u=o-(i=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=r.length;return u===s?r:u>s?r+new Array(u-s+1).join("0"):u>0?r.slice(0,u)+"."+r.slice(u):"0."+new Array(1-u).join("0")+a(t,Math.max(0,e+u-1))[0]},h=function(t,e){var n=a(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},f={"":c,"%":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 h(100*t,e)},r:h,s:l,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},d=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;e.prototype=n.prototype,n.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 p,g=function(t){return t},v=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"],y=function(t){function n(t){function n(t){var e,n,s,c=x,f=b;if("c"===_)f=w(t)+f,t="";else{t=+t;var d=t<0;if(t=w(Math.abs(t),m),d&&0===+t&&(d=!1),c=(d?"("===u?u:"-":"-"===u||"("===u?"":u)+c,f=f+("s"===_?v[8+i/3]:"")+(d&&"("===u?")":""),M)for(e=-1,n=t.length;++e<n;)if(s=t.charCodeAt(e),48>s||s>57){f=(46===s?l+t.slice(e+1):t.slice(e))+f,t=t.slice(0,e);break}}y&&!p&&(t=a(t,1/0));var S=c.length+t.length+f.length,k=S<g?new Array(g-S+1).join(r):"";switch(y&&p&&(t=a(k+t,k.length?g-f.length:1/0),k=""),o){case"<":t=c+t+f+k;break;case"=":t=c+k+t+f;break;case"^":t=k.slice(0,S=k.length>>1)+c+t+f+k.slice(S);break;default:t=k+c+t+f}return h(t)}t=e(t);var r=t.fill,o=t.align,u=t.sign,s=t.symbol,p=t.zero,g=t.width,y=t.comma,m=t.precision,_=t.type,x="$"===s?c[0]:"#"===s&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",b="$"===s?c[1]:/[%p]/.test(_)?d:"",w=f[_],M=!_||/[defgprs%]/.test(_);return m=null==m?_?6:12:/[gprs]/.test(_)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),n.toString=function(){return t+""},n}function r(t,r){var i=n((t=e(t),t.type="f",t)),a=3*Math.max(-8,Math.min(8,Math.floor(o(r)/3))),u=Math.pow(10,-a),s=v[8+a/3];return function(t){return i(u*t)+s}}var a=t.grouping&&t.thousands?u(t.grouping,t.thousands):g,c=t.currency,l=t.decimal,h=t.numerals?s(t.numerals):g,d=t.percent||"%";return{format:n,formatPrefix:r}};r({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var m=function(t){return Math.max(0,-o(Math.abs(t)))},_=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(o(e)/3)))-o(Math.abs(t)))},x=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,o(e)-o(t))+1};t.formatDefaultLocale=r,t.formatLocale=y,t.formatSpecifier=e,t.precisionFixed=m,t.precisionPrefix=_,t.precisionRound=x,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function n(){return new e}var r=Math.PI,i=2*r,a=1e-6,o=i-a;e.prototype=n.prototype={constructor:e,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,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(t,e,n,i,o){t=+t,e=+e,n=+n,i=+i,o=+o;var u=this._x1,s=this._y1,c=n-t,l=i-e,h=u-t,f=s-e,d=h*h+f*f;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(d>a)if(Math.abs(f*c-l*h)>a&&o){var p=n-u,g=i-s,v=c*c+l*l,y=p*p+g*g,m=Math.sqrt(v),_=Math.sqrt(d),x=o*Math.tan((r-Math.acos((v+d-y)/(2*m*_)))/2),b=x/_,w=x/m;Math.abs(b-1)>a&&(this._+="L"+(t+b*h)+","+(e+b*f)),this._+="A"+o+","+o+",0,0,"+ +(f*p>h*g)+","+(this._x1=t+w*c)+","+(this._y1=e+w*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,u,s,c){t=+t,e=+e,n=+n;var l=n*Math.cos(u),h=n*Math.sin(u),f=t+l,d=e+h,p=1^c,g=c?u-s:s-u;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+f+","+d:(Math.abs(this._x1-f)>a||Math.abs(this._y1-d)>a)&&(this._+="L"+f+","+d),n&&(g<0&&(g=g%i+i),g>o?this._+="A"+n+","+n+",0,1,"+p+","+(t-l)+","+(e-h)+"A"+n+","+n+",0,1,"+p+","+(this._x1=f)+","+(this._y1=d):g>a&&(this._+="A"+n+","+n+",0,"+ +(g>=r)+","+p+","+(this._x1=t+n*Math.cos(s))+","+(this._y1=e+n*Math.sin(s))))},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=n,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,r){r(e,n(31))}(this,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 a(t){function a(t,e){return function(n){var r,i,a,o=[],u=-1,s=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++u<c;)37===t.charCodeAt(u)&&(o.push(t.slice(s,u)),null!=(i=vt[r=t.charAt(++u)])?r=t.charAt(++u):i="e"===r?" ":"0",(a=e[r])&&(r=a(n,i)),o.push(r),s=u+1);return o.push(t.slice(s,u)),o.join("")}}function o(t,n){return function(a){var o,s,c=i(1900),l=u(c,t,a+="",0);if(l!=a.length)return null;if("Q"in c)return new Date(c.Q);if("p"in c&&(c.H=c.H%12+12*c.p),"V"in c){if(c.V<1||c.V>53)return null;"w"in c||(c.w=1),"Z"in c?(o=r(i(c.y)),s=o.getUTCDay(),o=s>4||0===s?e.utcMonday.ceil(o):e.utcMonday(o),o=e.utcDay.offset(o,7*(c.V-1)),c.y=o.getUTCFullYear(),c.m=o.getUTCMonth(),c.d=o.getUTCDate()+(c.w+6)%7):(o=n(i(c.y)),s=o.getDay(),o=s>4||0===s?e.timeMonday.ceil(o):e.timeMonday(o),o=e.timeDay.offset(o,7*(c.V-1)),c.y=o.getFullYear(),c.m=o.getMonth(),c.d=o.getDate()+(c.w+6)%7)}else("W"in c||"U"in c)&&("w"in c||(c.w="u"in c?c.u%7:"W"in c?1:0),s="Z"in c?r(i(c.y)).getUTCDay():n(i(c.y)).getDay(),c.m=0,c.d="W"in c?(c.w+6)%7+7*c.W-(s+5)%7:c.w+7*c.U-(s+6)%7);return"Z"in c?(c.H+=c.Z/100|0,c.M+=c.Z%100,r(c)):n(c)}}function u(t,e,n,r){for(var i,a,o=0,u=e.length,s=n.length;o<u;){if(r>=s)return-1;if(i=e.charCodeAt(o++),37===i){if(i=e.charAt(o++),a=Qt[i in vt?e.charAt(o++):i],!a||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function ft(t,e,n){var r=zt.exec(e.slice(n));return r?(t.p=Ft[r[0].toLowerCase()],n+r[0].length):-1}function dt(t,e,n){var r=Yt.exec(e.slice(n));return r?(t.w=Ht[r[0].toLowerCase()],n+r[0].length):-1}function pt(t,e,n){var r=jt.exec(e.slice(n));return r?(t.w=qt[r[0].toLowerCase()],n+r[0].length):-1}function gt(t,e,n){var r=Wt.exec(e.slice(n));return r?(t.m=Vt[r[0].toLowerCase()],n+r[0].length):-1}function yt(t,e,n){var r=Xt.exec(e.slice(n));return r?(t.m=Gt[r[0].toLowerCase()],n+r[0].length):-1}function mt(t,e,n){return u(t,Nt,e,n)}function _t(t,e,n){return u(t,It,e,n)}function xt(t,e,n){return u(t,Lt,e,n)}function bt(t){return Bt[t.getDay()]}function wt(t){return Ot[t.getDay()]}function Mt(t){return Dt[t.getMonth()]}function St(t){return Ut[t.getMonth()]}function kt(t){return Rt[+(t.getHours()>=12)]}function Tt(t){return Bt[t.getUTCDay()]}function Et(t){return Ot[t.getUTCDay()]}function At(t){return Dt[t.getUTCMonth()]}function Ct(t){return Ut[t.getUTCMonth()]}function Pt(t){return Rt[+(t.getUTCHours()>=12)]}var Nt=t.dateTime,It=t.date,Lt=t.time,Rt=t.periods,Ot=t.days,Bt=t.shortDays,Ut=t.months,Dt=t.shortMonths,zt=s(Rt),Ft=c(Rt),jt=s(Ot),qt=c(Ot),Yt=s(Bt),Ht=c(Bt),Xt=s(Ut),Gt=c(Ut),Wt=s(Dt),Vt=c(Dt),$t={a:bt,A:wt,b:Mt,B:St,c:null,d:C,e:C,f:R,H:P,I:N,j:I,L:L,m:O,M:B,p:kt,Q:lt,s:ht,S:U,u:D,U:z,V:F,w:j,W:q,x:null,X:null,y:Y,Y:H,Z:X,"%":ct},Zt={a:Tt,A:Et,b:At,B:Ct,c:null,d:G,e:G,f:Q,H:W,I:V,j:$,L:Z,m:K,M:J,p:Pt,Q:lt,s:ht,S:tt,u:et,U:nt,V:rt,w:it,W:at,x:null,X:null,y:ot,Y:ut,Z:st,"%":ct},Qt={a:dt,A:pt,b:gt,B:yt,c:mt,d:_,e:_,f:k,H:b,I:b,j:x,L:S,m:m,M:w,p:ft,Q:E,s:A,S:M,u:h,U:f,V:d,w:l,W:p,x:_t,X:xt,y:v,Y:g,Z:y,"%":T};return $t.x=a(It,$t),$t.X=a(Lt,$t),$t.c=a(Nt,$t),Zt.x=a(It,Zt),Zt.X=a(Lt,Zt),Zt.c=a(Nt,Zt),{format:function(t){var e=a(t+="",$t);return e.toString=function(){return t},e},parse:function(t){var e=o(t+="",n);return e.toString=function(){return t},e},utcFormat:function(t){var e=a(t+="",Zt);return e.toString=function(){return t},e},utcParse:function(t){var e=o(t,r);return e.toString=function(){return t},e}}}function o(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(e)+i:i)}function u(t){return t.replace(_t,"\\$&")}function s(t){return new RegExp("^(?:"+t.map(u).join("|")+")","i")}function c(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function l(t,e,n){var r=yt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function h(t,e,n){var r=yt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function f(t,e,n){var r=yt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function d(t,e,n){var r=yt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function p(t,e,n){var r=yt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function g(t,e,n){var r=yt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function v(t,e,n){var r=yt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function y(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 m(t,e,n){var r=yt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function _(t,e,n){var r=yt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function x(t,e,n){var r=yt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function b(t,e,n){var r=yt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function w(t,e,n){var r=yt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function M(t,e,n){var r=yt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function S(t,e,n){var r=yt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function k(t,e,n){var r=yt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function T(t,e,n){var r=mt.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function E(t,e,n){var r=yt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function A(t,e,n){var r=yt.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function C(t,e){return o(t.getDate(),e,2)}function P(t,e){return o(t.getHours(),e,2)}function N(t,e){return o(t.getHours()%12||12,e,2)}function I(t,n){return o(1+e.timeDay.count(e.timeYear(t),t),n,3)}function L(t,e){return o(t.getMilliseconds(),e,3)}function R(t,e){return L(t,e)+"000"}function O(t,e){return o(t.getMonth()+1,e,2)}function B(t,e){return o(t.getMinutes(),e,2)}function U(t,e){return o(t.getSeconds(),e,2)}function D(t){var e=t.getDay();return 0===e?7:e}function z(t,n){return o(e.timeSunday.count(e.timeYear(t),t),n,2)}function F(t,n){var r=t.getDay();return t=r>=4||0===r?e.timeThursday(t):e.timeThursday.ceil(t),o(e.timeThursday.count(e.timeYear(t),t)+(4===e.timeYear(t).getDay()),n,2)}function j(t){return t.getDay()}function q(t,n){return o(e.timeMonday.count(e.timeYear(t),t),n,2)}function Y(t,e){return o(t.getFullYear()%100,e,2)}function H(t,e){return o(t.getFullYear()%1e4,e,4)}function X(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+o(e/60|0,"0",2)+o(e%60,"0",2)}function G(t,e){return o(t.getUTCDate(),e,2)}function W(t,e){return o(t.getUTCHours(),e,2)}function V(t,e){return o(t.getUTCHours()%12||12,e,2)}function $(t,n){return o(1+e.utcDay.count(e.utcYear(t),t),n,3)}function Z(t,e){return o(t.getUTCMilliseconds(),e,3)}function Q(t,e){return Z(t,e)+"000"}function K(t,e){return o(t.getUTCMonth()+1,e,2)}function J(t,e){return o(t.getUTCMinutes(),e,2)}function tt(t,e){return o(t.getUTCSeconds(),e,2)}function et(t){var e=t.getUTCDay();return 0===e?7:e}function nt(t,n){return o(e.utcSunday.count(e.utcYear(t),t),n,2)}function rt(t,n){var r=t.getUTCDay();return t=r>=4||0===r?e.utcThursday(t):e.utcThursday.ceil(t),o(e.utcThursday.count(e.utcYear(t),t)+(4===e.utcYear(t).getUTCDay()),n,2)}function it(t){return t.getUTCDay()}function at(t,n){return o(e.utcMonday.count(e.utcYear(t),t),n,2)}function ot(t,e){return o(t.getUTCFullYear()%100,e,2)}function ut(t,e){return o(t.getUTCFullYear()%1e4,e,4)}function st(){return"+0000"}function ct(){return"%"}function lt(t){return+t}function ht(t){return Math.floor(+t/1e3)}function ft(e){return gt=a(e),t.timeFormat=gt.format,t.timeParse=gt.parse,t.utcFormat=gt.utcFormat,t.utcParse=gt.utcParse,gt}function dt(t){return t.toISOString()}function pt(t){var e=new Date(t);return isNaN(e)?null:e}var gt,vt={"-":"",_:" ",0:"0"},yt=/^\s*\d+/,mt=/^%/,_t=/[\\^$*+?|[\]().{}]/g;ft({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 xt="%Y-%m-%dT%H:%M:%S.%LZ",bt=Date.prototype.toISOString?dt:t.utcFormat(xt),wt=+new Date("2000-01-01T00:00:00.000Z")?pt:t.utcParse(xt);t.timeFormatDefaultLocale=ft,t.timeFormatLocale=a,t.isoFormat=bt,t.isoParse=wt,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(){return y||(x(n),y=_.now()+m)}function n(){y=0}function r(){this._call=this._time=this._next=null}function i(t,e,n){var i=new r;return i.restart(t,e,n),i}function a(){e(),++f;for(var t,n=l;n;)(t=y-n._time)>=0&&n._call.call(null,t),n=n._next;--f}function o(){y=(v=_.now())+m,f=d=0;try{a()}finally{f=0,s(),y=0}}function u(){var t=_.now(),e=t-v;e>g&&(m-=e,v=t)}function s(){for(var t,e,n=l,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:l=e);h=t,c(r)}function c(t){if(!f){d&&(d=clearTimeout(d));var e=t-y;e>24?(t<1/0&&(d=setTimeout(o,t-_.now()-m)),p&&(p=clearInterval(p))):(p||(v=_.now(),p=setInterval(u,g)),f=1,x(o))}}var l,h,f=0,d=0,p=0,g=1e3,v=0,y=0,m=0,_="object"==typeof performance&&performance.now?performance:Date,x="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};r.prototype=i.prototype={constructor:r,restart:function(t,n,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?e():+r)+(null==n?0:+n),this._next||h===this||(h?h._next=this:l=this,h=this),this._call=t,this._time=r,c()},stop:function(){this._call&&(this._call=null,this._time=1/0,c())}};var b=function(t,e,n){var i=new r;return e=null==e?0:+e,i.restart(function(n){i.stop(),t(n+e)},e,n),i},w=function(t,n,i){var a=new r,o=n;return null==n?(a.restart(t,n,i),a):(n=+n,i=null==i?e():+i,a.restart(function e(r){r+=o,a.restart(e,o+=n,i),t(r)},n,i),a)};t.now=e,t.timer=i,t.timerFlush=a,t.timeout=b,t.interval=w,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,r){r(e,n(24),n(13),n(45),n(18),n(23),n(79))}(this,function(t,e,n,r,i,a,o){"use strict";function u(t,e){var n=c(t,e);if(n.state>Y)throw new Error("too late; already scheduled");return n}function s(t,e){var n=c(t,e);if(n.state>X)throw new Error("too late; already started");return n}function c(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function l(t,e,n){function i(t){n.state=H,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}function a(i){var l,h,f,d;if(n.state!==H)return u();for(l in c)if(d=c[l],d.name===n.name){if(d.state===G)return r.timeout(a);d.state===W?(d.state=$,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete c[l]):+l<e&&(d.state=$,d.timer.stop(),delete c[l])}if(r.timeout(function(){n.state===G&&(n.state=W,n.timer.restart(o,n.delay,n.time),o(i))}),n.state=X,n.on.call("start",t,t.__data__,n.index,n.group),n.state===X){for(n.state=G,s=new Array(f=n.tween.length),l=0,h=-1;l<f;++l)(d=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(s[++h]=d);s.length=h+1}}function o(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(u),n.state=V,1),i=-1,a=s.length;++i<a;)s[i].call(null,r);n.state===V&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){n.state=$,n.timer.stop(),delete c[e];for(var r in c)return;delete t.__transition}var s,c=t.__transition;c[e]=n,n.timer=r.timer(i,0,n.time)}function h(t,e){var n,r;return function(){var i=s(this,t),a=i.tween;if(a!==n){r=n=a;for(var o=0,u=r.length;o<u;++o)if(r[o].name===e){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function f(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var a=s(this,t),o=a.tween;if(o!==r){i=(r=o).slice();for(var u={name:e,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===e){i[c]=u;break}c===l&&i.push(u)}a.tween=i}}function d(t,e,n){var r=t._id;return t.each(function(){var t=s(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return c(t,r).value[e]}}function p(t){return function(){this.removeAttribute(t)}}function g(t){return function(){this.removeAttributeNS(t.space,t.local)}}function v(t,e,n){var r,i;return function(){var a=this.getAttribute(t);return a===n?null:a===r?i:i=e(r=a,n)}}function y(t,e,n){var r,i;return function(){var a=this.getAttributeNS(t.space,t.local);return a===n?null:a===r?i:i=e(r=a,n)}}function m(t,e,n){var r,i,a;return function(){var o,u=n(this);return null==u?void this.removeAttribute(t):(o=this.getAttribute(t),o===u?null:o===r&&u===i?a:a=e(r=o,i=u))}}function _(t,e,n){var r,i,a;return function(){var o,u=n(this);return null==u?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),o===u?null:o===r&&u===i?a:a=e(r=o,i=u))}}function x(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 b(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}function w(t,e){return function(){u(this,t).delay=+e.apply(this,arguments)}}function M(t,e){return e=+e,function(){u(this,t).delay=e}}function S(t,e){return function(){s(this,t).duration=+e.apply(this,arguments)}}function k(t,e){return e=+e,function(){s(this,t).duration=e}}function T(t,e){if("function"!=typeof e)throw new Error;return function(){s(this,t).ease=e}}function E(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})}function A(t,e,n){var r,i,a=E(e)?u:s;return function(){var o=a(this,t),u=o.on;u!==r&&(i=(r=u).copy()).on(e,n),o.on=i}}function C(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function P(t,n){var r,i,a;return function(){var o=e.style(this,t),u=(this.style.removeProperty(t),e.style(this,t));return o===u?null:o===r&&u===i?a:a=n(r=o,i=u)}}function N(t){return function(){this.style.removeProperty(t)}}function I(t,n,r){var i,a;return function(){var o=e.style(this,t);return o===r?null:o===i?a:a=n(i=o,r)}}function L(t,n,r){var i,a,o;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===a?o:o=n(i=u,a=s)}}function R(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}function O(t){return function(){this.textContent=t}}function B(t){return function(){var e=t(this);this.textContent=null==e?"":e}}function U(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function D(t){return e.selection().transition(t)}function z(){return++mt}function F(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return xt.time=r.now(),xt;return n}var j=n.dispatch("start","end","interrupt"),q=[],Y=0,H=1,X=2,G=3,W=4,V=5,$=6,Z=function(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};l(t,n,{name:e,index:r,group:i,on:j,tween:q,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Y})},Q=function(t,e){var n,r,i,a=t.__transition,o=!0;if(a){e=null==e?null:e+"";for(i in a)(n=a[i]).name===e?(r=n.state>X&&n.state<V,n.state=$,n.timer.stop(),r&&n.on.call("interrupt",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete t.__transition}},K=function(t){return this.each(function(){Q(this,t)})},J=function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=c(this.node(),n).tween,a=0,o=i.length;a<o;++a)if((r=i[a]).name===t)return r.value;return null}return this.each((null==e?h:f)(n,t,e))},tt=function(t,e){var n;return("number"==typeof e?i.interpolateNumber:e instanceof a.color?i.interpolateRgb:(n=a.color(e))?(e=n,i.interpolateRgb):i.interpolateString)(t,e)},et=function(t,n){var r=e.namespace(t),a="transform"===r?i.interpolateTransformSvg:tt;return this.attrTween(t,"function"==typeof n?(r.local?_:m)(r,a,d(this,"attr."+t,n)):null==n?(r.local?g:p)(r):(r.local?y:v)(r,a,n+""))},nt=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?x:b)(i,n))},rt=function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?w:M)(e,t)):c(this.node(),e).delay},it=function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?S:k)(e,t)):c(this.node(),e).duration},at=function(t){var e=this._id;return arguments.length?this.each(T(e,t)):c(this.node(),e).ease},ot=function(t){"function"!=typeof t&&(t=e.matcher(t));for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a)for(var o,u=n[a],s=u.length,c=i[a]=[],l=0;l<s;++l)(o=u[l])&&t.call(o,o.__data__,l,u)&&c.push(o);return new U(i,this._parents,this._name,this._id)},ut=function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),u=0;u<a;++u)for(var s,c=e[u],l=n[u],h=c.length,f=o[u]=new Array(h),d=0;d<h;++d)(s=c[d]||l[d])&&(f[d]=s);for(;u<r;++u)o[u]=e[u];return new U(o,this._parents,this._name,this._id)},st=function(t,e){var n=this._id;return arguments.length<2?c(this.node(),n).on.on(t):this.each(A(n,t,e));
  },ct=function(){return this.on("end.remove",C(this._id))},lt=function(t){var n=this._name,r=this._id;"function"!=typeof t&&(t=e.selector(t));for(var i=this._groups,a=i.length,o=new Array(a),u=0;u<a;++u)for(var s,l,h=i[u],f=h.length,d=o[u]=new Array(f),p=0;p<f;++p)(s=h[p])&&(l=t.call(s,s.__data__,p,h))&&("__data__"in s&&(l.__data__=s.__data__),d[p]=l,Z(d[p],n,r,p,d,c(s,r)));return new U(o,this._parents,n,r)},ht=function(t){var n=this._name,r=this._id;"function"!=typeof t&&(t=e.selectorAll(t));for(var i=this._groups,a=i.length,o=[],u=[],s=0;s<a;++s)for(var l,h=i[s],f=h.length,d=0;d<f;++d)if(l=h[d]){for(var p,g=t.call(l,l.__data__,d,h),v=c(l,r),y=0,m=g.length;y<m;++y)(p=g[y])&&Z(p,n,r,y,g,v);o.push(g),u.push(l)}return new U(o,u,n,r)},ft=e.selection.prototype.constructor,dt=function(){return new ft(this._groups,this._parents)},pt=function(t,e,n){var r="transform"==(t+="")?i.interpolateTransformCss:tt;return null==e?this.styleTween(t,P(t,r)).on("end.style."+t,N(t)):this.styleTween(t,"function"==typeof e?L(t,r,d(this,"style."+t,e)):I(t,r,e+""),n)},gt=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,R(t,e,null==n?"":n))},vt=function(t){return this.tween("text","function"==typeof t?B(d(this,"text",t)):O(null==t?"":t+""))},yt=function(){for(var t=this._name,e=this._id,n=z(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o,u=r[a],s=u.length,l=0;l<s;++l)if(o=u[l]){var h=c(o,e);Z(o,t,n,l,u,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new U(r,this._parents,t,n)},mt=0,_t=e.selection.prototype;U.prototype=D.prototype={constructor:U,select:lt,selectAll:ht,filter:ot,merge:ut,selection:dt,transition:yt,call:_t.call,nodes:_t.nodes,node:_t.node,size:_t.size,empty:_t.empty,each:_t.each,on:st,attr:et,attrTween:nt,style:pt,styleTween:gt,text:vt,remove:ct,tween:J,delay:rt,duration:it,ease:at};var xt={time:null,delay:0,duration:250,ease:o.easeCubicInOut},bt=function(t){var e,n;t instanceof U?(e=t._id,t=t._name):(e=z(),(n=xt).time=r.now(),t=null==t?null:t+"");for(var i=this._groups,a=i.length,o=0;o<a;++o)for(var u,s=i[o],c=s.length,l=0;l<c;++l)(u=s[l])&&Z(u,t,e,l,s,n||F(u,e));return new U(i,this._parents,t,e)};e.selection.prototype.interrupt=K,e.selection.prototype.transition=bt;var wt=[null],Mt=function(t,e){var n,r,i=t.__transition;if(i){e=null==e?null:e+"";for(r in i)if((n=i[r]).state>H&&n.name===e)return new U([[t]],wt,e,+r)}return null};t.transition=D,t.active=Mt,t.interrupt=Q,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){"use strict";function r(t){this._isDirected=!c.has(t,"directed")||t.directed,this._isMultigraph=!!c.has(t,"multigraph")&&t.multigraph,this._isCompound=!!c.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=c.constant(void 0),this._defaultEdgeLabelFn=c.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[h]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function i(t,e){t[e]?t[e]++:t[e]=1}function a(t,e){--t[e]||delete t[e]}function o(t,e,n,r){var i=""+e,a=""+n;if(!t&&i>a){var o=i;i=a,a=o}return i+f+a+f+(c.isUndefined(r)?l:r)}function u(t,e,n,r){var i=""+e,a=""+n;if(!t&&i>a){var o=i;i=a,a=o}var u={v:i,w:a};return r&&(u.name=r),u}function s(t,e){return o(t,e.v,e.w,e.name)}var c=n(9);t.exports=r;var l="\0",h="\0",f="\x01";r.prototype._nodeCount=0,r.prototype._edgeCount=0,r.prototype.isDirected=function(){return this._isDirected},r.prototype.isMultigraph=function(){return this._isMultigraph},r.prototype.isCompound=function(){return this._isCompound},r.prototype.setGraph=function(t){return this._label=t,this},r.prototype.graph=function(){return this._label},r.prototype.setDefaultNodeLabel=function(t){return c.isFunction(t)||(t=c.constant(t)),this._defaultNodeLabelFn=t,this},r.prototype.nodeCount=function(){return this._nodeCount},r.prototype.nodes=function(){return c.keys(this._nodes)},r.prototype.sources=function(){return c.filter(this.nodes(),function(t){return c.isEmpty(this._in[t])},this)},r.prototype.sinks=function(){return c.filter(this.nodes(),function(t){return c.isEmpty(this._out[t])},this)},r.prototype.setNodes=function(t,e){var n=arguments;return c.each(t,function(t){n.length>1?this.setNode(t,e):this.setNode(t)},this),this},r.prototype.setNode=function(t,e){return c.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=h,this._children[t]={},this._children[h][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},r.prototype.node=function(t){return this._nodes[t]},r.prototype.hasNode=function(t){return c.has(this._nodes,t)},r.prototype.removeNode=function(t){var e=this;if(c.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],c.each(this.children(t),function(t){this.setParent(t)},this),delete this._children[t]),c.each(c.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],c.each(c.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},r.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(c.isUndefined(e))e=h;else{e+="";for(var n=e;!c.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},r.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},r.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==h)return e}},r.prototype.children=function(t){if(c.isUndefined(t)&&(t=h),this._isCompound){var e=this._children[t];if(e)return c.keys(e)}else{if(t===h)return this.nodes();if(this.hasNode(t))return[]}},r.prototype.predecessors=function(t){var e=this._preds[t];if(e)return c.keys(e)},r.prototype.successors=function(t){var e=this._sucs[t];if(e)return c.keys(e)},r.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return c.union(e,this.successors(t))},r.prototype.filterNodes=function(t){function e(t){var a=r.parent(t);return void 0===a||n.hasNode(a)?(i[t]=a,a):a in i?i[a]:e(a)}var n=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});n.setGraph(this.graph()),c.each(this._nodes,function(e,r){t(r)&&n.setNode(r,e)},this),c.each(this._edgeObjs,function(t){n.hasNode(t.v)&&n.hasNode(t.w)&&n.setEdge(t,this.edge(t))},this);var r=this,i={};return this._isCompound&&c.each(n.nodes(),function(t){n.setParent(t,e(t))}),n},r.prototype.setDefaultEdgeLabel=function(t){return c.isFunction(t)||(t=c.constant(t)),this._defaultEdgeLabelFn=t,this},r.prototype.edgeCount=function(){return this._edgeCount},r.prototype.edges=function(){return c.values(this._edgeObjs)},r.prototype.setPath=function(t,e){var n=this,r=arguments;return c.reduce(t,function(t,i){return r.length>1?n.setEdge(t,i,e):n.setEdge(t,i),i}),this},r.prototype.setEdge=function(){var t,e,n,r,a=!1,s=arguments[0];"object"==typeof s&&null!==s&&"v"in s?(t=s.v,e=s.w,n=s.name,2===arguments.length&&(r=arguments[1],a=!0)):(t=s,e=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],a=!0)),t=""+t,e=""+e,c.isUndefined(n)||(n=""+n);var l=o(this._isDirected,t,e,n);if(c.has(this._edgeLabels,l))return a&&(this._edgeLabels[l]=r),this;if(!c.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[l]=a?r:this._defaultEdgeLabelFn(t,e,n);var h=u(this._isDirected,t,e,n);return t=h.v,e=h.w,Object.freeze(h),this._edgeObjs[l]=h,i(this._preds[e],t),i(this._sucs[t],e),this._in[e][l]=h,this._out[t][l]=h,this._edgeCount++,this},r.prototype.edge=function(t,e,n){var r=1===arguments.length?s(this._isDirected,arguments[0]):o(this._isDirected,t,e,n);return this._edgeLabels[r]},r.prototype.hasEdge=function(t,e,n){var r=1===arguments.length?s(this._isDirected,arguments[0]):o(this._isDirected,t,e,n);return c.has(this._edgeLabels,r)},r.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?s(this._isDirected,arguments[0]):o(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],a(this._preds[e],t),a(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},r.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var r=c.values(n);return e?c.filter(r,function(t){return t.v===e}):r}},r.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var r=c.values(n);return e?c.filter(r,function(t){return t.w===e}):r}},r.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},function(t,e,n){"use strict";function r(t){r.superclass.constructor.call(this,t)}var i=n(26),a=n(1),o="x-chart-axis",u=n(2),s=u.Vector2,c=n(7);r.CFG={zIndex:4,x:null,y:null,elCls:o,line:{lineWidth:1,stroke:"#C0D0E0"},tickLine:{lineWidth:1,stroke:"#C0D0E0",value:5},isVertical:!1,start:null,end:null},a.extend(r,i),a.augment(r,{_getAvgLabelLength:function(t){var e=t.get("children");return e[1].attr("x")-e[0].attr("x")},getSideVector:function(t){var e=this,n=e.get("factor"),r=e.get("isVertical"),i=e.get("start"),a=e.get("end"),o=e.getAxisVector(),u=o.normalize(),s=!1;(r&&i.y<a.y||!r&&i.x>a.x)&&(s=!0);var c=u.vertical(s);return c.multiplyScaler(t*n)},getAxisVector:function(){var t=this.get("start"),e=this.get("end");return new s(e.x-t.x,e.y-t.y)},getLinePath:function(){var t=this,e=t.get("start"),n=t.get("end"),r=[];return r.push(["M",e.x,e.y]),r.push(["L",n.x,n.y]),r},getTickEnd:function(t,e){var n,r=this,i=r.get("tickLine");return e=e?e:i.value,n=r.getSideVector(e),{x:t.x+n.x,y:t.y+n.y}},getTickPoint:function(t){var e=this,n=e.get("start"),r=e.get("end"),i=r.x-n.x,a=r.y-n.y;return{x:n.x+i*t,y:n.y+a*t}},renderTitle:function(){var t=this,e=t.get("title"),n=t.getTickPoint(.5),r=t.get("titleOffset"),i=t.get("labelsGroup");if(i){var u=t.getMaxLabelWidth(i),l=t.get("labelOffset")||10;u+l+20<r&&(r=u+l+20)}var h=a.mix({},e);if(e.text){var f=t.getSideVector(r),d={x:n.x+f.x,y:n.y+f.y},p=t.getAxisVector(),g=0;if(!c.equal(p.y,0)){var v=new s(1,0),y=new s(p.x,p.y);g=y.angleTo(v,!0)}h.rotate=g*(180/Math.PI),h.x=d.x,h.y=d.y,t.addShape("Text",{elCls:o+"-title",attrs:h})}},autoRotateLabels:function(){var t=this,e=t.get("labelsGroup"),n=t.get("title");if(e){var r,i,o=t.get("labelOffset")||10,u=o,s=t.get("titleOffset"),l=t.getAxisVector();if(c.equal(l.x,0)&&n&&n.text)i=t.getMaxLabelWidth(e),i+o>s-u&&(r=Math.acos((s-u)/(i+o))*-1);else if(c.equal(l.y,0)&&e.getCount()>1){var h=Math.abs(t._getAvgLabelLength(e));i=t.getMaxLabelWidth(e),i>h&&(r=Math.atan2(1.5*o,h))}if(r){var f=t.get("factor");a.each(e.get("children"),function(t){t.rotateAtStart(r),c.equal(l.y,0)&&(f>0?t.attr("textAlign","left"):t.attr("textAlign","right"))})}}}}),t.exports=r},function(t,e,n){var r=n(50);r.ShowLabels=n(110),t.exports=r},function(t,e,n){"use strict";var r=n(12).Group,i=n(1),a=function(t){a.superclass.constructor.call(this,t)};a.CFG={zIndex:6,items:null,label:null,renderer:null,custom:!1,animate:!1,html:'<div class="g-labels" style="position:absolute;top:0;left:0;"></div>',itemTpl:'<div class="g-label" style="position:absolute;">{text}</div>',duration:400},i.extend(a,r),i.augment(a,{_renderUI:function(){this._drawLabels()},_drawLabels:function(){var t=this,e=t.get("items");i.each(e,function(e,n){t._addLabel(e,n)})},_addLabel:function(t,e){var n=this._getLabelCfg(t,e);return this._createText(n)},_getLabelCfg:function(t,e){var n=this.get("label")||{},r=this.get("renderer");if(!i.isObject(t)){var a=t;t={},t.text=a}r&&(t.text=r(t.text,t,e)),i.isNull(t.text)&&(t.text=""),t.text=t.text+"";var o=i.mix({},t,n,{x:(t.x||0)+(n.x||0),y:(t.y||0)+(n.y||0)});return o},_createText:function(t){var e,n=this,r=n.get("custom"),a=n.get("customDiv");if(!r)return e=this.addShape("text",{attrs:t}),e.id=t.id,e.animateType="label",e;if(!a){var o=n.get("html"),u=n.get("canvas").get("el").parentNode;a=i.createDom(o),u.style.position="relative",u.appendChild(a),n.set("customDiv",a)}var s=n._createDom(t);a.appendChild(s),n._setCustomPosition(t,s)},_setCustomPosition:function(t,e){var n=t.textAlign||"left",r=t.y,a=t.x,o=i.getWidth(e),u=i.getHeight(e);r-=u/2,"center"===n?a-=o/2:"right"===n&&(a-=o),e.style.top=parseInt(r,10)+"px",e.style.left=parseInt(a,10)+"px"},_createDom:function(t){var e=this,n=e.get("itemTpl"),r=i.substitute(n,t),a=i.createDom(r);return a},getLabels:function(){var t=this,e=t.get("customDiv");return e?i.toArray(e.childNodes):t.get("children")},addLabel:function(t){var e=this.get("items"),n=e.length;return e.push(t),this._addLabel(t,n)},changeLabel:function(t,e){var n,r,a=this,o=a.get("custom");if(n=i.indexOf(a.get("children"),t),r=a._getLabelCfg(e,n),t)if(o){var u=a._createDom(r);t.innerHTML=u.innerHTML,a._setCustomPosition(r,t)}else if(t.attr("text",r.text),t.attr("x")!==r.x||t.attr("y")!==r.y){var s=t.get("attrs").rotate;s&&t.rotateAtStart(-s),t.attr(r),s&&t.rotateAtStart(s)}},clear:function(){var t=this,e=t.get("customDiv");e&&(e.innerHTML=""),a.superclass.clear.call(t)},setItems:function(t){var e=this;e.clear(),e.set("items",t),e._drawLabels()},remove:function(){var t=this.get("customDiv");t&&t.parentNode.removeChild(t),a.superclass.remove.call(this)}}),t.exports=a},function(t,e,n){"use strict";var r=n(1);t.exports={addEachItem:function(t,e){var n,i=t.addGroup(e),a=r.mix({fill:"#fff",textBaseline:"middle"},e.word),o=e.wordSpaceing||6,u=r.mix({fill:"red",lineWidth:0,radius:2.5},e.marker),s=e.markerAlign||"center",c=e.items,l=0;if(c.marker&&(n=r.mix({},u,c.marker,{x:"center"===s?0:c.marker.radius,y:0}),n.x+=e.x,n.y+=e.y,n.symbol)){var h=i.addShape("marker",{type:"marker",attrs:n});l+=h.getBBox().width+o}return r.each(c.words,function(t){n=r.mix({},a,t,{x:l,y:0}),n.x+=e.x,n.y+=e.y;var u=i.addShape("text",{attrs:n});l+=o+u.getBBox().width}),i}}},function(t,e,n){"use strict";function r(t,e){return t>e?e:t}function i(t,e){return t>e?t:e}var a=n(1),o=function(t,e){this.reset(t,e)};o.CFG={start:null,end:null,background:null},a.augment(o,{init:function(){var t=this.start,e=this.end,n=this.tl={x:r(t.x,e.x),y:r(t.y,e.y)};this.tr={x:i(t.x,e.x),y:r(t.y,e.y)},this.bl={x:r(t.x,e.x),y:i(t.y,e.y)};var a=this.br={x:i(t.x,e.x),y:i(t.y,e.y)};this.cc={x:(a.x-n.x)/2+n.x,y:(a.y-n.y)/2+n.y}},reset:function(t,e){this.start=t,this.end=e,this.init()},isInRange:function(t,e){a.isObject(t)&&(e=t.y,t=t.x);var n=this.tl,r=this.br;return t>=n.x&&t<=r.x&&e>=n.y&&e<=r.y},isInVertical:function(t){a.isObject(t)&&(t=t.y);var e=this.tl,n=this.br;return t>=e.y&&t<=n.y},isInHorizontal:function(t){a.isObject(t)&&(t=t.x);var e=this.tl,n=this.br;return t>=e.x&&t<=n.x},getWidth:function(){var t=this.tl,e=this.br;return e.x-t.x},getHeight:function(){var t=this.tl,e=this.br;return e.y-t.y}}),t.exports=o},function(t,e,n){"use strict";var r=n(1),i=n(12).Group,a=function(t){a.superclass.constructor.call(this,t)};a.CFG={range:null,middleAttr:null,backgroundElement:null,minHandleElement:null,maxHandleElement:null,middleHandleElement:null,currentTarget:null,layout:"vertical",width:null,height:null,pageX:null,pageY:null,animate:!1,operable:!0},r.extend(a,i),r.augment(a,{_beforeRenderUI:function(){var t=this.get("layout"),e=this.get("backgroundElement"),n=this.get("minHandleElement"),r=this.get("maxHandleElement"),i=this.addShape("rect",{attrs:this.get("middleAttr")}),a="vertical"===t?"ns-resize":"ew-resize";this.add([e,n,r]),this.set("middleHandleElement",i),e.set("zIndex",0),i.set("zIndex",1),n.set("zIndex",2),r.set("zIndex",2),this.get("operable")&&(i.set("cursor","move"),n.set("cursor",a),r.set("cursor",a)),this.sort()},_renderUI:function(){var t=this.get("layout");"horizontal"===t?this._renderHorizontal():this._renderVertical()},_transform:function(t){var e=this.get("range"),n=e[0]/100,r=e[1]/100,i=this.get("width"),a=this.get("height"),o=this.get("minHandleElement"),u=this.get("maxHandleElement"),s=this.get("middleHandleElement");o.initTransform(),u.initTransform(),"horizontal"===t?(s.attr({x:i*n,y:0,width:(r-n)*i,height:a}),o.translate(n*i,0),u.translate(r*i,0)):(s.attr({x:0,y:a*(1-r),width:i,height:(r-n)*a}),o.translate(i/2,(1-n)*a),u.translate(i/2,(1-r)*a))},_renderHorizontal:function(){this._transform("horizontal")},_renderVertical:function(){this._transform("vertical")},_bindUI:function(){this.get("operable")&&(this.on("mousedown",r.wrapBehavior(this,"_onMouseDown")),this.on("mousemove",r.wrapBehavior(this,"_onMouseMove")),this.on("mouseleave",r.wrapBehavior(this,"_onMouseLeave")))},_isElement:function(t,e){var n=this.get(e);if(t===n)return!0;if(n.isGroup){var r=n.get("children");return r.indexOf(t)>-1}return!1},_getRange:function(t,e){var n=t+e;return n=n>100?100:n,n=n<0?0:n},_updateStatus:function(t,e){var n,i="x"===t?this.get("width"):this.get("height"),a=r.ucfirst(t),o=this.get("range"),u=this.get("page"+a),s=this.get("currentTarget"),c=this.get("rangeStash"),l=this.get("layout"),h="vertical"===l?-1:1,f=e["page"+a],d=f-u,p=d/i*100*h;o[1]<=o[0]?(this._isElement(s,"minHandleElement")||this._isElement(s,"maxHandleElement"))&&(o[0]=this._getRange(p,o[0]),o[1]=this._getRange(p,o[0])):(this._isElement(s,"minHandleElement")&&(o[0]=this._getRange(p,o[0])),this._isElement(s,"maxHandleElement")&&(o[1]=this._getRange(p,o[1]))),this._isElement(s,"middleHandleElement")&&(n=c[1]-c[0],o[0]=this._getRange(p,o[0]),o[1]=o[0]+n,o[1]>100&&(o[1]=100,o[0]=o[1]-n)),this.fire("rangeChange",{range:o}),this.set("page"+a,f),this._renderUI(),this.get("canvas").draw()},_onMouseLeave:function(){var t=this.get("canvas").get("containerDOM");t.style.cursor="default"},_onMouseMove:function(t){var e=t.currentTarget.get("cursor"),n=this.get("canvas").get("containerDOM");n&&(e?n.style.cursor=e:n.style.cursor="default")},_onMouseDown:function(t){var e=t.currentTarget,n=t.event,r=this.get("range");n.stopPropagation(),n.preventDefault(),this.set("pageX",n.pageX),this.set("pageY",n.pageY),this.set("currentTarget",e),this.set("rangeStash",[r[0],r[1]]),this._bindCanvasEvents()},_bindCanvasEvents:function(){this.onMouseMoveListener=r.addEventListener(document,"mousemove",r.wrapBehavior(this,"_onCanvasMouseMove")),this.onMouseUpListener=r.addEventListener(document,"mouseup",r.wrapBehavior(this,"_onCanvasMouseUp"))},_onCanvasMouseMove:function(t){var e=this.get("layout");"horizontal"===e?this._updateStatus("x",t):this._updateStatus("y",t)},_onCanvasMouseUp:function(){this._removeDocumentEvents()},_removeDocumentEvents:function(){this.onMouseMoveListener.remove(),this.onMouseUpListener.remove()}}),t.exports=a},function(t,e){t.exports={prefix:"g",backupContext:document.createElement("canvas").getContext("2d"),debug:!1,warn:function(){}}},function(t,e,n){var r=n(1),i=n(122),a=n(123),o=n(121),u=n(56),s=n(118),c=["fillStyle","font","globalAlpha","lineCap","lineWidth","lineJoin","miterLimit","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","strokeStyle","textAlign","textBaseline","lineDash"],l=function(t){this.__cfg={zIndex:0,capture:!0,visible:!0,destroyed:!1},r.simpleMix(this.__cfg,this.getDefaultCfg(),t),this.initAttrs(this.__cfg.attrs),this.initTransform(),this.initEventDispatcher(),this.init()};l.CFG={id:null,zIndex:0,canvas:null,parent:null,capture:!0,context:null,visible:!0,destroyed:!1},r.augment(l,i,s,a,o,{init:function(){this.setSilent("animable",!0);var t=this.__attrs;t&&t.rotate&&this.rotateAtStart(t.rotate)},getParent:function(){return this.get("parent")},getDefaultCfg:function(){return{}},set:function(t,e){var n="__set"+r.ucfirst(t);return this[n]&&(e=this[n](e)),this.__cfg[t]=e,this},setSilent:function(t,e){this.__cfg[t]=e},get:function(t){return this.__cfg[t]},draw:function(t){this.get("destroyed")||this.get("visible")&&(this.setContext(t),this.drawInner(t),this.restoreContext(t))},setContext:function(t){var e=this.__attrs.clip;t.save(),e&&(e.resetTransform(t),e.createPath(t),t.clip()),this.resetContext(t),this.resetTransform(t)},restoreContext:function(t){t.restore()},resetContext:function(t){var e=this.__attrs;if(!this.isGroup)for(var n in e)if(c.indexOf(n)>-1){var i=e[n];"fillStyle"===n&&(i=u.parseStyle(i,this)),"strokeStyle"===n&&(i=u.parseStyle(i,this)),"lineDash"===n&&t.setLineDash?r.isArray(i)?t.setLineDash(i):r.isString(i)&&t.setLineDash(i.split(" ")):t[n]=i}},drawInner:function(){},show:function(){return this.set("visible",!0),this},hide:function(){return this.set("visible",!1),this},remove:function(t){if(void 0===t&&(t=!0),this.get("parent")){var e=this.get("parent"),n=e.get("children");r.remove(n,this)}return t&&this.destroy(),this},destroy:function(){var t=this.get("destroyed");t||(this.__cfg={},this.__attrs=null,this.__listeners=null,this.__m=null,this.set("destroyed",!0))},__setZIndex:function(t){return this.__cfg.zIndex=t,r.notNull(this.get("parent"))&&this.get("parent").sort(),t},__setAttrs:function(t){return this.attr(t),t},clone:function(){return r.clone(this)},getBBox:function(){return{minX:0,maxX:0,minY:0,maxY:0}}}),t.exports=l},function(t,e,n){function r(t,e){if(void 0===e)return t;t=new l(t),t.multiplyA(e);var n=t.getType();return"hsl"===n?t.getHSLStyle():"rgb"===n?t.getRGBStyle():void 0}function i(t,e,n){var i=t.match(v);s.each(i,function(t){t=t.split(":");var i=r(t[1],n);e.addColorStop(t[0],i)})}function a(t,e,n){var r,a,o=d.exec(t),u=c.mod(c.degreeToRad(parseFloat(o[1])),2*Math.PI),s=o[2],l=e.getBBox();u>=0&&u<.5*Math.PI?(r={x:l.minX,y:l.minY},a={x:l.maxX,y:l.maxY}):.5*Math.PI<=u&&u<Math.PI?(r={x:l.maxX,y:l.minY},a={x:l.minX,y:l.maxY}):Math.PI<=u&&u<1.5*Math.PI?(r={x:l.maxX,y:l.maxY},a={x:l.minX,y:l.minY}):(r={x:l.minX,y:l.maxY},a={x:l.maxX,y:l.minY});var h=Math.tan(u),f=h*h,p=(a.x-r.x+h*(a.y-r.y))/(f+1)+r.x,g=h*(a.x-r.x+h*(a.y-r.y))/(f+1)+r.y,v=e.get("context"),y=v.createLinearGradient(r.x,r.y,p,g);return i(s,y,n),y}function o(t,e,n){var r=p.exec(t),a=parseFloat(r[1]),o=parseFloat(r[2]),u=parseFloat(r[3]),s=r[4],c=e.getBBox(),l=e.get("context"),h=c.maxX-c.minX,f=c.maxY-c.minY,d=Math.sqrt(h*h+f*f)/2,g=l.createRadialGradient(c.minX+h*a,c.minY+f*o,u,c.minX+h/2,c.minY+f/2,d);return i(s,g,n),g}function u(t,e){var n=g.exec(t),r=n[1],i=n[2];switch(r){case"a":r="repeat";break;case"x":r="repeat-x";break;case"y":r="repeat-y";break;case"n":r="no-repeat";break;default:r="no-repeat"}var a=document.getElementById(i),o=e.get("context"),u=o.createPattern(a,r);return u}var s=n(1),c=n(7),l=n(28),h=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,f=/[^\s\,]+/gi,d=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,p=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,g=/^p\s*([axyn])\s+(.*)/i,v=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,y={};t.exports={parsePath:function(t){return t=t||[],s.isArray(t)?t:s.isString(t)?(t=t.match(h),s.each(t,function(e,n){if(e=e.match(f),e[0].length>1){var r=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=r}s.each(e,function(t,n){isNaN(t)||(e[n]=+t)}),t[n]=e}),t):void 0},parseStyle:function(t,e,n){if(s.isString(t)){if("("===t[1]||"("===t[2]){if("l"===t[0])return a(t,e,n);if("r"===t[0])return o(t,e,n);if("p"===t[0])return u(t,e)}return s.isNull(n)?t:r(t,n)}},numberToColor:function(t){var e=y[t];if(!e){for(var n=t.toString(16),r=n.length;r<6;r++)n="0"+n;e="#"+n,y[t]=e}return e}}},function(t,e,n){var r=n(54),i={Group:n(120),Shape:n(5),Rect:n(70),Circle:n(59),Ellipse:n(61),Path:n(66),Text:n(71),Line:n(64),Image:n(63),Polygon:n(67),Polyline:n(68),Arc:n(58),Fan:n(62),Cubic:n(60),Quadratic:n(69),Marker:n(65),debug:function(t){r.debug=t}};t.exports=i},function(t,e,n){var r=n(1),i=n(2).Vector2,a=n(5),o=n(6),u=n(36),s=n(16),c=function(t){c.superclass.constructor.call(this,t)};c.ATTRS={x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,arrow:!1},r.extend(c,a),r.augment(c,{canStroke:!0,type:"arc",getDefaultAttrs:function(){return{x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,arrow:!1}},calculateBox:function(){var t=this.__attrs,e=t.x,n=t.y,r=t.r,i=t.startAngle,a=t.endAngle,o=t.clockwise,s=t.lineWidth,c=s/2,l=u.box(e,n,r,i,a,o);return l.minX-=c,l.minY-=c,l.maxX+=c,l.maxY+=c,l},isPointInPath:function(t,e){var n=this.__attrs,r=n.x,i=n.y,a=n.r,u=n.startAngle,s=n.endAngle,c=n.clockwise,l=n.lineWidth;return!!this.hasStroke()&&o.arcline(r,i,a,u,s,c,l,t,e)},createPath:function(t){var e=this.__attrs,n=e.x,r=e.y,a=e.r,o=e.startAngle,u=e.endAngle,c=e.clockwise,l=e.lineWidth,h=e.arrow;if(t=t||self.get("context"),t.beginPath(),t.arc(n,r,a,o,u,c),h){var f={x:n+a*Math.cos(u),y:r+a*Math.sin(u)},d=new i(-a*Math.sin(u),a*Math.cos(u));c&&d.multiplyScaler(-1),s.makeArrow(t,d,f,l)}}}),t.exports=c},function(t,e,n){var r=n(1),i=n(5),a=n(6),o=function(t){o.superclass.constructor.call(this,t)};o.ATTRS={x:0,y:0,r:0,lineWidth:1},r.extend(o,i),r.augment(o,{canFill:!0,canStroke:!0,type:"circle",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this.__attrs,e=t.x,n=t.y,r=t.r,i=t.lineWidth,a=i/2+r;return{minX:e-a,minY:n-a,maxX:e+a,maxY:n+a}},isPointInPath:function(t,e){var n=this.hasFill(),r=this.hasStroke();return n&&r?this.__isPointInFill(t,e)||this.__isPointInStroke(t,e):n?this.__isPointInFill(t,e):!!r&&this.__isPointInStroke(t,e)},__isPointInFill:function(t,e){var n=this.__attrs,r=n.x,i=n.y,o=n.r;return a.circle(r,i,o,t,e)},__isPointInStroke:function(t,e){var n=this.__attrs,r=n.x,i=n.y,o=n.r,u=n.lineWidth;return a.arcline(r,i,o,0,2*Math.PI,!1,u,t,e)},createPath:function(t){var e=this.__attrs,n=e.x,r=e.y,i=e.r;t=t||self.get("context"),t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1)}}),t.exports=o},function(t,e,n){var r=n(1),i=n(5),a=n(6),o=n(16),u=n(27),s=n(2).Vector2,c=function(t){c.superclass.constructor.call(this,t)};c.ATTRS={p1:null,p2:null,p3:null,p4:null,lineWidth:1,arrow:!1},r.extend(c,i),r.augment(c,{canStroke:!0,type:"cubic",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t,e,n=this.__attrs,i=n.p1,a=n.p2,o=n.p3,s=n.p4;if(r.isNull(i)||r.isNull(a)||r.isNull(o)||r.isNull(s))return null;var c=n.lineWidth/2,l=u.extrema(i[0],a[0],o[0],s[0]);for(t=0,e=l.length;t<e;t++)l[t]=u.at(i[0],a[0],o[0],s[0],l[t]);var h=u.extrema(i[1],a[1],o[1],s[1]);for(t=0,e=h.length;t<e;t++)h[t]=u.at(i[1],a[1],o[1],s[1],h[t]);return l.push(i[0],s[0]),h.push(i[1],s[1]),{minX:Math.min.apply(Math,l)-c,maxX:Math.max.apply(Math,l)+c,minY:Math.min.apply(Math,h)-c,maxY:Math.max.apply(Math,h)+c}},isPointInPath:function(t,e){var n=this.__attrs,r=n.p1,i=n.p2,o=n.p3,u=n.p4,s=n.lineWidth;return a.cubicline(r[0],r[1],i[0],i[1],o[0],o[1],u[0],u[1],s,t,e)},createPath:function(t){var e=this.__attrs,n=e.p1,i=e.p2,a=e.p3,u=e.p4,c=e.lineWidth,l=e.arrow;if(t=t||self.get("context"),!(r.isNull(n)||r.isNull(i)||r.isNull(a)||r.isNull(u)))if(t.beginPath(),t.moveTo(n[0],n[1]),l){var h=new s(u[0]-a[0],u[1]-a[1]),f=o.getEndPoint(h,new s(u[0],u[1]),c);t.bezierCurveTo(i[0],i[1],a[0],a[1],f.x,f.y),o.makeArrow(t,h,f,c)}else t.bezierCurveTo(i[0],i[1],a[0],a[1],u[0],u[1])},getPoint:function(t){var e=this.__attrs;return{x:u.at(e.p4[0],e.p3[0],e.p2[0],e.p1[0],t),y:u.at(e.p4[1],e.p3[1],e.p2[1],e.p1[1],t)}}}),t.exports=c},function(t,e,n){var r=n(1),i=n(5),a=n(6),o=n(2),u=o.Matrix3,s=o.Vector3,c=function(t){c.superclass.constructor.call(this,t)};c.ATTRS={x:0,y:0,rx:1,ry:1,lineWidth:1},r.extend(c,i),r.augment(c,{canFill:!0,canStroke:!0,type:"ellipse",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this.__attrs,e=t.x,n=t.y,r=t.rx,i=t.ry,a=t.lineWidth,o=r+a/2,u=i+a/2;return{minX:e-o,minY:n-u,maxX:e+o,maxY:n+u}},isPointInPath:function(t,e){var n=this.hasFill(),r=this.hasStroke();return n&&r?this.__isPointInFill(t,e)||this.__isPointInStroke(t,e):n?this.__isPointInFill(t,e):!!r&&this.__isPointInStroke(t,e)},__isPointInFill:function(t,e){var n=this.__attrs,r=n.x,i=n.y,o=n.rx,c=n.ry,l=o>c?o:c,h=o>c?1:o/c,f=o>c?c/o:1,d=new s(t,e,1),p=new u;p.scale(h,f),p.translate(r,i);var g=p.getInverse();return d.applyMatrix(g),a.circle(0,0,l,d.x,d.y)},__isPointInStroke:function(t,e){var n=this.__attrs,r=n.x,i=n.y,o=n.rx,c=n.ry,l=n.lineWidth,h=o>c?o:c,f=o>c?1:o/c,d=o>c?c/o:1,p=new s(t,e,1),g=new u;g.scale(f,d),g.translate(r,i);var v=g.getInverse();return p.applyMatrix(v),a.arcline(0,0,h,0,2*Math.PI,!1,l,p.x,p.y)},createPath:function(t){var e=this.__attrs,n=e.x,r=e.y,i=e.rx,a=e.ry;t=t||self.get("context");var o=i>a?i:a,s=i>a?1:i/a,c=i>a?a/i:1,l=new u;l.scale(s,c),l.translate(n,r);var h=l.to2DObject();t.beginPath(),t.save(),t.transform(h.a,h.b,h.c,h.d,h.e,h.f),t.arc(0,0,o,0,2*Math.PI),t.restore(),t.closePath()}}),t.exports=c},function(t,e,n){var r=n(1),i=n(5),a=n(6),o=n(7),u=n(36),s=n(2),c=s.Vector2,l=function(t){l.superclass.constructor.call(this,t)};l.ATTRS={x:0,y:0,rs:0,re:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1},r.extend(l,i),r.augment(l,{canFill:!0,canStroke:!0,type:"fan",getDefaultAttrs:function(){return{clockwise:!1,lineWidth:1,rs:0,re:0}},calculateBox:function(){var t=this,e=t.__attrs,n=e.x,r=e.y,i=e.rs,a=e.re,o=e.startAngle,s=e.endAngle,c=e.clockwise,l=e.lineWidth,h=u.box(n,r,i,o,s,c),f=u.box(n,r,a,o,s,c),d=Math.min(h.minX,f.minX),p=Math.min(h.minY,f.minY),g=Math.max(h.maxX,f.maxX),v=Math.max(h.maxY,f.maxY),y=l/2;return{minX:d-y,minY:p-y,maxX:g+y,maxY:v+y}},isPointInPath:function(t,e){var n=this.hasFill(),r=this.hasStroke();return n&&r?this.__isPointInFill(t,e)||this.__isPointInStroke(t,e):n?this.__isPointInFill(t,e):!!r&&this.__isPointInStroke(t,e)},__isPointInFill:function(t,e){var n=this.__attrs,r=n.x,i=n.y,a=n.rs,s=n.re,l=n.startAngle,h=n.endAngle,f=n.clockwise,d=new c(1,0),p=new c(t-r,e-i),g=d.angleTo(p),v=u.nearAngle(g,l,h,f);if(o.equal(g,v)){var y=p.lengthSq();if(a*a<=y&&y<=s*s)return!0}return!1},__isPointInStroke:function(t,e){var n=this.__attrs,r=n.x,i=n.y,o=n.rs,u=n.re,s=n.startAngle,c=n.endAngle,l=n.clockwise,h=n.lineWidth,f={x:Math.cos(s)*o+r,y:Math.sin(s)*o+i},d={x:Math.cos(s)*u+r,y:Math.sin(s)*u+i},p={x:Math.cos(c)*o+r,y:Math.sin(c)*o+i},g={x:Math.cos(c)*u+r,y:Math.sin(c)*u+i};return!!a.line(f.x,f.y,d.x,d.y,h,t,e)||(!!a.line(p.x,p.y,g.x,g.y,h,t,e)||(!!a.arcline(r,i,o,s,c,l,h,t,e)||!!a.arcline(r,i,u,s,c,l,h,t,e)))},createPath:function(t){var e=this.__attrs,n=e.x,r=e.y,i=e.rs,a=e.re,o=e.startAngle,u=e.endAngle,s=e.clockwise,c={x:Math.cos(o)*i+n,y:Math.sin(o)*i+r},l={x:Math.cos(o)*a+n,y:Math.sin(o)*a+r},h={x:Math.cos(u)*i+n,y:Math.sin(u)*i+r};t=t||self.get("context"),t.beginPath(),t.moveTo(c.x,c.y),t.lineTo(l.x,l.y),t.arc(n,r,a,o,u,s),t.lineTo(h.x,h.y),t.arc(n,r,i,u,o,!s),t.closePath()}}),t.exports=l},function(t,e,n){var r=n(1),i=n(5),a=n(6),o=function(t){o.superclass.constructor.call(this,t)};o.ATTRS={x:0,y:0,img:void 0,width:0,height:0,sx:null,sy:null,swidth:null,sheight:null},r.extend(o,i),r.augment(o,{type:"image",__afterSetAttrImg:function(t){this.__setAttrImg(t)},__afterSetAttrAll:function(t){t.img&&this.__setAttrImg(t.img)},isHitBox:function(){return!1},calculateBox:function(){var t=this.__attrs,e=t.x,n=t.y,r=t.width,i=t.height;return{minX:e,minY:n,maxX:e+r,maxY:n+i}},isPointInPath:function(t,e){var n=this.__attrs;if(this.get("toDraw")||!n.img)return!1;var r=n.x,i=n.y,o=n.width,u=n.height;return a.rect(r,i,o,u,t,e)},__setLoading:function(t){var e=this.get("canvas");return t===!1&&this.get("toDraw")===!0&&(this.__cfg.loading=!1,e.draw()),t},__setAttrImg:function(t){var e=this,n=e.__attrs;if(!r.isString(t))return t instanceof Image?(n.width||e.attr("width",t.width),n.height||e.attr("height",t.height),t):t instanceof HTMLElement&&r.isString(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()?(n.width||e.attr("width",Number(t.getAttribute("width"))),n.height||e.attr("height",Number(t.getAttribute("height"))),t):t instanceof ImageData?(n.width||e.attr("width",t.width),n.height||e.attr("height",t.height),t):null;var i=new Image;i.onload=function(){if(e.get("destroyed"))return!1;
  e.attr("imgSrc",t),e.attr("img",i);var n=e.get("callback");n&&n.call(e),e.set("loading",!1)},i.src=t,e.set("loading",!0)},drawInner:function(t){return this.get("loading")?void this.set("toDraw",!0):void this.__drawImage(t)},__drawImage:function(t){var e=this.__attrs,n=e.x,i=e.y,a=e.img,o=e.width,u=e.height,s=e.sx,c=e.sy,l=e.swidth,h=e.sheight;if(this.set("toDraw",!1),a instanceof Image||a instanceof HTMLElement&&r.isString(a.nodeName)&&"CANVAS"===a.nodeName.toUpperCase()){if(r.isNull(s)||r.isNull(c)||r.isNull(l)||r.isNull(h))return void t.drawImage(a,n,i,o,u);if(r.notNull(s)&&r.notNull(c)&&r.notNull(l)&&r.notNull(h))return void t.drawImage(a,s,c,l,h,n,i,o,u)}else if(a instanceof ImageData)return void t.putImageData(a,n,i,s||0,c||0,l||o,h||u)}}),t.exports=o},function(t,e,n){var r=n(1),i=n(5),a=n(6),o=n(16),u=n(37),s=n(2),c=s.Vector2,l=function(t){l.superclass.constructor.call(this,t)};l.ATTRS={x1:0,y1:0,x2:0,y2:0,lineWidth:1,arrow:!1},r.extend(l,i),r.augment(l,{canStroke:!0,type:"line",getDefaultAttrs:function(){return{lineWidth:1,arrow:!1}},calculateBox:function(){var t=this.__attrs,e=t.x1,n=t.y1,r=t.x2,i=t.y2,a=t.lineWidth;return u.box(e,n,r,i,a)},isPointInPath:function(t,e){var n=this.__attrs,r=n.x1,i=n.y1,o=n.x2,u=n.y2,s=n.lineWidth;return!!this.hasStroke()&&a.line(r,i,o,u,s,t,e)},createPath:function(t){var e=this.__attrs,n=e.x1,r=e.y1,i=e.x2,a=e.y2,u=e.arrow,s=e.lineWidth;if(t=t||self.get("context"),t.beginPath(),t.moveTo(n,r),u){var l=new c(i-n,a-r),h=o.getEndPoint(l,new c(i,a),s);t.lineTo(h.x,h.y),o.makeArrow(t,l,h,s)}else t.lineTo(i,a)},getPoint:function(t){var e=this.__attrs;return{x:u.at(e.x1,e.x2,t),y:u.at(e.y1,e.y2,t)}}}),t.exports=l},function(t,e,n){var r=n(1),i=n(5),a=n(6),o=function(t){o.superclass.constructor.call(this,t)};o.Symbols={circle:function(t,e,n,r){r.arc(t,e,n,0,2*Math.PI,!1)},square:function(t,e,n,r){r.moveTo(t-n,e-n),r.lineTo(t+n,e-n),r.lineTo(t+n,e+n),r.lineTo(t-n,e+n),r.closePath()},diamond:function(t,e,n,r){r.moveTo(t-n,e),r.lineTo(t,e-n),r.lineTo(t+n,e),r.lineTo(t,e+n),r.closePath()},triangle:function(t,e,n,r){var i=n/.966,a=n;r.moveTo(t,e-n),r.lineTo(t+i,e+a),r.lineTo(t-i,e+a),r.closePath()},"triangle-down":function(t,e,n,r){var i=n/.966,a=n;r.moveTo(t,e+n),r.lineTo(t+i,e-a),r.lineTo(t-i,e-a),r.closePath()}},o.ATTRS={path:null,lineWidth:1},r.extend(o,i),r.augment(o,{type:"marker",canFill:!0,canStroke:!0,getDefaultAttrs:function(){return{x:0,y:0,lineWidth:1}},calculateBox:function(){var t=this.__attrs,e=t.x,n=t.y,r=t.radius,i=t.lineWidth,a=i/2+r;return{minX:e-a,minY:n-a,maxX:e+a,maxY:n+a}},isPointInPath:function(t,e){var n=this.__attrs,r=n.x,i=n.y,o=n.radius;return a.circle(r,i,o,t,e)},createPath:function(t){var e,n=this.__attrs,i=n.x,a=n.y,u=n.radius,s=n.symbol||"circle";e=r.isFunction(s)?s:o.Symbols[s],t.beginPath(),e(i,a,u,t)}}),t.exports=o},function(t,e,n){var r=n(1),i=n(5),a=n(126),o=n(56),u=n(16),s=n(40),c=n(27),l=n(2),h=l.Vector2,f=function(t){f.superclass.constructor.call(this,t)};f.ATTRS={path:null,lineWidth:1,curve:null,tCache:null},r.extend(f,i),r.augment(f,{canFill:!0,canStroke:!0,type:"path",getDefaultAttrs:function(){return{lineWidth:1}},__afterSetAttrPath:function(t){var e=this;if(r.isNull(t))return e.setSilent("segments",null),void e.setSilent("box",void 0);var n,i=o.parsePath(t),u=[];if(r.isArray(i)&&0!==i.length&&("M"===i[0][0]||"m"===i[0][0])){for(var s=i.length,c=0;c<i.length;c++){var l=i[c];n=new a(l,n,c===s-1),u.push(n)}e.setSilent("segments",u),e.set("tCache",null),this.setSilent("box",null)}},__afterSetAttrAll:function(t){t.path&&this.__afterSetAttrPath(t.path)},calculateBox:function(){var t=this,e=t.__attrs,n=e.lineWidth,i=e.lineAppendWidth||0,a=t.get("segments");if(!a)return null;n+=i;var o=1/0,u=-(1/0),s=1/0,c=-(1/0);return r.each(a,function(t){t.getBBox(n);var e=t.box;e&&(e.minX<o&&(o=e.minX),e.maxX>u&&(u=e.maxX),e.minY<s&&(s=e.minY),e.maxY>c&&(c=e.maxY))}),{minX:o,minY:s,maxX:u,maxY:c}},isPointInPath:function(t,e){var n=this,r=n.hasFill(),i=n.hasStroke();return r&&i?n.__isPointInFill(t,e)||n.__isPointInStroke(t,e):r?n.__isPointInFill(t,e):!!i&&n.__isPointInStroke(t,e)},__isPointInFill:function(t,e){var n=this,r=n.get("context");if(r)return n.createPath(),r.isPointInPath(t,e)},__isPointInStroke:function(t,e){var n=this,r=n.get("segments"),i=n.__attrs,a=i.lineWidth,o=i.lineAppendWidth||0;a+=o;for(var u=0,s=r.length;u<s;u++)if(r[u].isInside(t,e,a))return!0;return!1},__setTcache:function(){var t,e,n,i,a=0,o=0,u=[],s=this.curve;s&&(r.each(s,function(t,e){n=s[e+1],i=t.length,n&&(a+=c.len(t[i-2],t[i-1],n[1],n[2],n[3],n[4],n[5],n[6]))}),r.each(s,function(r,l){n=s[l+1],i=r.length,n&&(t=[],t[0]=o/a,e=c.len(r[i-2],r[i-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e,t[1]=o/a,u.push(t))}),this.tCache=u)},__calculateCurve:function(){var t=this,e=t.__attrs,n=e.path;this.curve=s.toCurve(n)},getPoint:function(t){var e,n,i,a,o,u,s=this.tCache;return s||(this.__calculateCurve(),this.__setTcache(),s=this.tCache),e=this.curve,s?(r.each(s,function(e,r){t>=e[0]&&t<=e[1]&&(n=(t-e[0])/(e[1]-e[0]),i=r)}),a=e[i],r.isNull(a)||r.isNull(i)?null:(o=a.length,u=e[i+1],{x:c.at(a[o-2],u[1],u[3],u[5],1-n),y:c.at(a[o-1],u[2],u[4],u[6],1-n)})):e?{x:e[0][1],y:e[0][2]}:null},createPath:function(t){var e=this,n=e.__attrs,i=e.get("segments"),a=n.lineWidth,o=n.arrow;if(r.isArray(i)){t=t||e.get("context"),t.beginPath();for(var s=0,c=i.length;s<c;s++)if(s===c-1&&o){var l=i[s],f=i[s].endTangent,d={x:l.params[l.params.length-1].x,y:l.params[l.params.length-1].y};if(l&&r.isFunction(f)){var p=f(),g=u.getEndPoint(p,new h(d.x,d.y),a);l.params[l.params.length-1]=g,i[s].draw(t),u.makeArrow(t,p,g,a),l.params[l.params.length-1]=d}}else i[s].draw(t)}}}),t.exports=f},function(t,e,n){var r=n(1),i=n(5),a=n(6),o=function(t){o.superclass.constructor.call(this,t)};o.ATTRS={points:null,lineWidth:1},r.extend(o,i),r.augment(o,{canFill:!0,canStroke:!0,type:"polygon",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this,e=t.__attrs,n=e.points,i=e.lineWidth;if(!n||0===n.length)return null;var a=1/0,o=1/0,u=-(1/0),s=-(1/0);r.each(n,function(t){var e=t[0],n=t[1];e<a&&(a=e),e>u&&(u=e),n<o&&(o=n),n>s&&(s=n)});var c=i/2;return{minX:a-c,minY:o-c,maxX:u+c,maxY:s+c}},isPointInPath:function(t,e){var n=this,r=n.hasFill(),i=n.hasStroke();return r&&i?n.__isPointInFill(t,e)||n.__isPointInStroke(t,e):r?n.__isPointInFill(t,e):!!i&&n.__isPointInStroke(t,e)},__isPointInFill:function(t,e){var n=this,r=n.get("context");return n.createPath(),r.isPointInPath(t,e)},__isPointInStroke:function(t,e){var n=this,r=n.__attrs,i=r.points;if(i.length<2)return!1;var o=r.lineWidth,u=i.slice(0);return i.length>=3&&u.push(i[0]),a.polyline(u,o,t,e)},createPath:function(t){var e=this,n=e.__attrs,i=n.points;i.length<2||(t=t||e.get("context"),t.beginPath(),r.each(i,function(e,n){0===n?t.moveTo(e[0],e[1]):t.lineTo(e[0],e[1])}),t.closePath())}}),t.exports=o},function(t,e,n){var r=n(1),i=n(5),a=n(6),o=n(16),u=n(37),s=n(2),c=s.Vector2,l=function(t){l.superclass.constructor.call(this,t)};l.ATTRS={points:null,lineWidth:1,arrow:!1,tCache:null},r.extend(l,i),r.augment(l,{canStroke:!0,type:"polyline",tCache:null,getDefaultAttrs:function(){return{lineWidth:1,arrow:!1}},calculateBox:function(){var t=this,e=t.__attrs,n=e.lineWidth,i=e.points;if(!i||0===i.length)return null;var a=1/0,o=1/0,u=-(1/0),s=-(1/0);r.each(i,function(t){var e=t[0],n=t[1];e<a&&(a=e),e>u&&(u=e),n<o&&(o=n),n>s&&(s=n)});var c=n/2;return{minX:a-c,minY:o-c,maxX:u+c,maxY:s+c}},__setTcache:function(){var t,e,n=this,i=n.__attrs,a=i.points,o=0,s=0,c=[];a&&0!==a.length&&(r.each(a,function(t,e){a[e+1]&&(o+=u.len(t[0],t[1],a[e+1][0],a[e+1][1]))}),o<=0||(r.each(a,function(n,r){a[r+1]&&(t=[],t[0]=s/o,e=u.len(n[0],n[1],a[r+1][0],a[r+1][1]),s+=e,t[1]=s/o,c.push(t))}),this.tCache=c))},isPointInPath:function(t,e){var n=this,r=n.__attrs;if(n.hasStroke()){var i=r.points;if(i.length<2)return!1;var o=r.lineWidth;return a.polyline(i,o,t,e)}return!1},createPath:function(t){var e,n,r=this,i=r.__attrs,a=i.points,u=i.arrow,s=i.lineWidth;if(!(a.length<2)){for(t=t||r.get("context"),t.beginPath(),t.moveTo(a[0][0],a[0][1]),n=1,e=a.length-1;n<e;n++)t.lineTo(a[n][0],a[n][1]);if(u){var l=new c(a[e][0]-a[e-1][0],a[e][1]-a[e-1][1]),h=o.getEndPoint(l,new c(a[e][0],a[e][1]),s);t.lineTo(h.x,h.y),o.makeArrow(t,l,h,s)}else t.lineTo(a[e][0],a[e][1])}},getPoint:function(t){var e,n,i=this.__attrs,a=i.points,o=this.tCache;return o||(this.__setTcache(),o=this.tCache),r.each(o,function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}),{x:u.at(a[n][0],a[n+1][0],e),y:u.at(a[n][1],a[n+1][1],e)}}}),t.exports=l},function(t,e,n){var r=n(1),i=n(5),a=n(6),o=n(16),u=n(38),s=n(2).Vector2,c=function(t){c.superclass.constructor.call(this,t)};c.ATTRS={p1:null,p2:null,p3:null,lineWidth:1,arrow:!1},r.extend(c,i),r.augment(c,{canStroke:!0,type:"quadratic",getDefaultAttrs:function(){return{lineWidth:1,arrow:!1}},calculateBox:function(){var t,e,n=this,i=n.__attrs,a=i.p1,o=i.p2,s=i.p3;if(r.isNull(a)||r.isNull(o)||r.isNull(s))return null;var c=i.lineWidth/2,l=u.extrema(a[0],o[0],s[0]);for(t=0,e=l.length;t<e;t++)l[t]=u.at(a[0],o[0],s[0],l[t]);l.push(a[0],s[0]);var h=u.extrema(a[1],o[1],s[1]);for(t=0,e=h.length;t<e;t++)h[t]=u.at(a[1],o[1],s[1],h[t]);return h.push(a[1],s[1]),{minX:Math.min.apply(Math,l)-c,maxX:Math.max.apply(Math,l)+c,minY:Math.min.apply(Math,h)-c,maxY:Math.max.apply(Math,h)+c}},isPointInPath:function(t,e){var n=this,r=n.__attrs,i=r.p1,o=r.p2,u=r.p3,s=r.lineWidth;return a.quadraticline(i[0],i[1],o[0],o[1],u[0],u[1],s,t,e)},createPath:function(t){var e=this,n=e.__attrs,i=n.p1,a=n.p2,u=n.p3,c=n.lineWidth,l=n.arrow;if(!(r.isNull(i)||r.isNull(a)||r.isNull(u)))if(t=t||e.get("context"),t.beginPath(),t.moveTo(i[0],i[1]),l){var h=new s(u[0]-a[0],u[1]-a[1]),f=o.getEndPoint(h,new s(u[0],u[1]),c);t.quadraticCurveTo(a[0],a[1],f.x,f.y),o.makeArrow(t,h,f,c)}else t.quadraticCurveTo(a[0],a[1],u[0],u[1])},getPoint:function(t){var e=this.__attrs;return{x:u.at(e.p1[0],e.p2[0],e.p3[0],t),y:u.at(e.p1[1],e.p2[1],e.p3[1],t)}}}),t.exports=c},function(t,e,n){var r=n(1),i=n(5),a=n(6),o=function(t){o.superclass.constructor.call(this,t)};o.ATTRS={x:0,y:0,width:0,height:0,radius:0,lineWidth:1},r.extend(o,i),r.augment(o,{canFill:!0,canStroke:!0,type:"rect",getDefaultAttrs:function(){return{lineWidth:1,radius:0}},calculateBox:function(){var t=this,e=t.__attrs,n=e.x,r=e.y,i=e.width,a=e.height,o=e.lineWidth,u=o/2;return{minX:n-u,minY:r-u,maxX:n+i+u,maxY:r+a+u}},isPointInPath:function(t,e){var n=this,r=n.hasFill(),i=n.hasStroke();return r&&i?n.__isPointInFill(t,e)||n.__isPointInStroke(t,e):r?n.__isPointInFill(t,e):!!i&&n.__isPointInStroke(t,e)},__isPointInFill:function(t,e){var n=this.get("context");return!!n&&(this.createPath(),n.isPointInPath(t,e))},__isPointInStroke:function(t,e){var n=this,r=n.__attrs,i=r.x,o=r.y,u=r.width,s=r.height,c=r.radius,l=r.lineWidth;if(0===c){var h=l/2;return a.line(i-h,o,i+u+h,o,l,t,e)||a.line(i+u,o-h,i+u,o+s+h,l,t,e)||a.line(i+u+h,o+s,i-h,o+s,l,t,e)||a.line(i,o+s+h,i,o-h,l,t,e)}return a.line(i+c,o,i+u-c,o,l,t,e)||a.line(i+u,o+c,i+u,o+s-c,l,t,e)||a.line(i+u-c,o+s,i+c,o+s,l,t,e)||a.line(i,o+s-c,i,o+c,l,t,e)||a.arcline(i+u-c,o+c,c,1.5*Math.PI,2*Math.PI,!1,l,t,e)||a.arcline(i+u-c,o+s-c,c,0,.5*Math.PI,!1,l,t,e)||a.arcline(i+c,o+s-c,c,.5*Math.PI,Math.PI,!1,l,t,e)||a.arcline(i+c,o+c,c,Math.PI,1.5*Math.PI,!1,l,t,e)},createPath:function(t){var e=this,n=e.__attrs,r=n.x,i=n.y,a=n.width,o=n.height,u=n.radius;t=t||e.get("context"),t.beginPath(),0===u?t.rect(r,i,a,o):(t.moveTo(r+u,i),t.lineTo(r+a-u,i),t.arc(r+a-u,i+u,u,-Math.PI/2,0,!1),t.lineTo(r+a,i+o-u),t.arc(r+a-u,i+o-u,u,0,Math.PI/2,!1),t.lineTo(r+u,i+o),t.arc(r+u,i+o-u,u,Math.PI/2,Math.PI,!1),t.lineTo(r,i+u),t.arc(r+u,i+u,u,Math.PI,3*Math.PI/2,!1),t.closePath())}}),t.exports=o},function(t,e,n){var r=n(1),i=n(5),a=n(6),o=n(54),u=function(t){u.superclass.constructor.call(this,t)};u.ATTRS={x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom",lineHeight:null,textArr:null},r.extend(u,i),r.augment(u,{canFill:!0,canStroke:!0,type:"text",getDefaultAttrs:function(){return{lineWidth:1,lineCount:1,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"}},__assembleFont:function(){var t=this.__attrs,e=t.fontSize,n=t.fontFamily,r=t.fontWeight,i=t.fontStyle,a=t.fontVariant;t.font=[i,a,r,e+"px",n].join(" ")},__afterSetAttrFontSize:function(){this.__assembleFont()},__afterSetAttrFontFamily:function(){this.__assembleFont()},__afterSetAttrFontWeight:function(){this.__assembleFont()},__afterSetAttrFontStyle:function(){this.__assembleFont()},__afterSetAttrFontVariant:function(){this.__assembleFont()},__afterSetAttrFont:function(){},__afterSetAttrText:function(){var t,e=this.__attrs,n=e.text;if(r.isString(n)&&n.indexOf("\n")!==-1){t=n.split("\n");var i=t.length;e.lineCount=i,e.textArr=t}},__getTextHeight:function(){var t=this.__attrs,e=t.lineCount,n=1*t.fontSize;if(e>1){var r=this.__getSpaceingY();return n*e+r*(e-1)}return n},__afterSetAttrAll:function(t){var e=this;("fontSize"in t||"fontWeight"in t||"fontStyle"in t||"fontVariant"in t||"fontFamily"in t)&&e.__assembleFont(),"text"in t&&e.__afterSetAttrText(t.text)},isHitBox:function(){return!1},calculateBox:function(){var t=this,e=t.__attrs,n=e.x,r=e.y,i=t.measureText();if(!i)return{minX:n,minY:r,maxX:n,maxY:r};var a=t.__getTextHeight(),o=e.textAlign,u=e.textBaseline,s=e.lineWidth,c={x:n,y:r-a};o&&("end"===o||"right"===o?c.x-=i:"center"===o&&(c.x-=i/2)),u&&("top"===u?c.y+=a:"middle"===u&&(c.y+=a/2)),this.set("startPoint",c);var l=s/2;return{minX:c.x-l,minY:c.y-l,maxX:c.x+i+l,maxY:c.y+a+l}},__getSpaceingY:function(){var t=this.__attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},isPointInPath:function(t,e){var n=this,r=n.getBBox();if(n.hasFill()||n.hasStroke())return a.box(r.minX,r.maxX,r.minY,r.maxY,t,e)},drawInner:function(t){var e=this,n=e.__attrs,i=n.text;if(i){var a,o=n.textArr,u=1*n.fontSize,s=e.__getSpaceingY(),c=n.x,l=n.y,h=n.textBaseline;if(o){var f=e.getBBox();a=f.maxY-f.minY}var d;if(t.beginPath(),e.hasFill()){var p=n.fillOpacity;r.isNull(p)||1===p||(t.globalAlpha=p),o?r.each(o,function(e,n){d=l+n*(s+u)-a+u,"middle"===h&&(d+=a-u-(a-u)/2),"top"===h&&(d+=a-u),t.fillText(e,c,d)}):t.fillText(i,c,l)}e.hasStroke()&&(o?r.each(o,function(e,n){d=l+n*(s+u)-a+u,"middle"===h&&(d+=a-u-(a-u)/2),"top"===h&&(d+=a-u),t.strokeText(e,c,d)}):t.strokeText(i,c,l))}},measureText:function(){var t,e=this,n=e.__attrs,i=n.text,a=n.font,u=n.textArr,s=0;if(!r.isNull(i)){var c=o.backupContext;return c.save(),c.font=a,u?r.each(u,function(e){t=c.measureText(e).width,s<t&&(s=t),c.restore()}):(s=c.measureText(i).width,c.restore()),s}}}),t.exports=u},function(t,e,n){var r=n(1),i=n(128),a=n(127),o=n(40);r.mix(r,a,{mixin:function(t,e){var n=t.CFG?"CFG":"ATTRS";if(t&&e){t._mixins=e,t[n]=t[n]||{};var i={};r.each(e,function(e){r.augment(t,e);var a=e[n];a&&r.mix(i,a)}),t[n]=r.mix(i,t[n])}},isPositiveNum:function(t){var e=/^[0-9]*[1-9][0-9]*$/;return e.test(t)},getRatio:function(){return window.devicePixelRatio?window.devicePixelRatio:2},getWidth:function(t){var e=r.getStyle(t,"width");return"auto"===e&&(e=t.offsetWidth),parseFloat(e)},getHeight:function(t){var e=r.getStyle(t,"height");return"auto"===e&&(e=t.offsetHeight),parseFloat(e)},getOuterHeight:function(t){var e=r.getHeight(t),n=parseFloat(r.getStyle(t,"borderTopWidth"))||0,i=parseFloat(r.getStyle(t,"paddingTop")),a=parseFloat(r.getStyle(t,"paddingBottom")),o=parseFloat(r.getStyle(t,"borderBottomWidth"))||0;return e+n+o+i+a},parsePathString:o.toArray,path2string:o.toString,path2curve:o.toCurve,pathToAbsolute:o.toAbsolute,catmullRom2bezier:o.catmullRomToBezier,parsePathArray:function(t){return r.path2string(t)},path2Absolute:function(t){return r.pathToAbsolute(t)}}),r.MatrixUtil=i,t.exports=r},function(t,e){var n={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-1*t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return 1*((t=t/1-1)*t*t+1)},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-1*((t=t/1-1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return 1*(t/=1)*t*t*t*t},easeOutQuint:function(t){return 1*((t=t/1-1)*t*t*t*t+1)},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return-1*Math.cos(t/1*(Math.PI/2))+1},easeOutSine:function(t){return 1*Math.sin(t/1*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t/1)-1)},easeInExpo:function(t){return 0===t?1:1*Math.pow(2,10*(t/1-1))},easeOutExpo:function(t){return 1===t?1:1*(-Math.pow(2,-10*t/1)+1)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(-Math.pow(2,-10*--t)+2)},easeInCirc:function(t){return t>=1?t:-1*(Math.sqrt(1-(t/=1)*t)-1)},easeOutCirc:function(t){return 1*Math.sqrt(1-(t=t/1-1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,r=1;return 0===t?0:1==(t/=1)?1:(n||(n=.3),r<Math.abs(1)?(r=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/r),-(r*Math.pow(2,10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/n)))},easeOutElastic:function(t){var e=1.70158,n=0,r=1;return 0===t?0:1==(t/=1)?1:(n||(n=.3),r<Math.abs(1)?(r=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/r),r*Math.pow(2,-10*t)*Math.sin((1*t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,r=1;return 0===t?0:2==(t/=.5)?1:(n||(n=1*(.3*1.5)),r<Math.abs(1)?(r=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/r),t<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){var e=1.70158;return 1*(t/=1)*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return 1*((t=t/1-1)*t*((e+1)*t+e)+1)},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:function(t){return 1-n.easeOutBounce(1-t)},easeOutBounce:function(t){return(t/=1)<1/2.75?1*(7.5625*t*t):t<2/2.75?1*(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1*(7.5625*(t-=2.25/2.75)*t+.9375):1*(7.5625*(t-=2.625/2.75)*t+.984375)},easeInOutBounce:function(t){return t<.5?.5*n.easeInBounce(2*t):.5*n.easeOutBounce(2*t-1)+.5}};t.exports=n},function(t,e,n){"use strict";var r=n(1),i=n(2),a=n(134),o={duration:"duration",destroy:"destroy",delay:"delay",repeat:"repeat",onUpdate:"onUpdate"},u=i.Matrix3,s={getObjectLength:function(t){var e,n=0;for(e in t)t.hasOwnProperty(e)&&n++;return n},isEqual:function(t,e){var n,i;if(typeof t!=typeof e)return!1;if(r.isNumber(t)||r.isString(t))return t===e;if(r.isArray(t)){if(!r.isArray(t[0]))return!!r.equalsArray(t,e);if(t===e)return!0;if(t.length!==e.length)return!1;for(n=0;n<t.length;n++)if(!r.equalsArray(t[n],e[n]))return!1;return!0}if(r.isObject(t)){if(s.getObjectLength(t)!==s.getObjectLength(e))return!1;for(i in t){if(typeof t[i]!=typeof e[i])return!1;if(t[i]!==e[i])return!1}return!0}return t===e},interpolation:a.interpolation,getFrame:function(t,e,n,i,a){var o={attrs:{},matrix:null},u=n.onUpdate;for(var s in i.attrs)o.attrs[s]=i.attrs[s](t);return i.matrix&&(o.matrix=i.matrix(t)),r.isFunction(u)&&u(o,t),o},getInterpolations:function(t,e){var n,i,a={attrs:{},matrix:null};return r.each(t.attrs,function(t,o){n=null,i=e.attrs[o],s.isEqual(t,i)||(n="path"===o?s.interpolation({path:t,type:"path"},{path:i,type:"path"}):s.interpolation(t,i),r.isFunction(n)&&(a.attrs[o]=n))}),e.matrix&&t.matrix&&!u.equal(t.matrix,e.matrix)&&(n=s.interpolation(t.matrix,e.matrix),r.isFunction(n)&&(a.matrix=n)),a},getKeyFrameByProps:function(t,e){var n=[],r=s.props2frame(t,e),i={attrs:s.getTargetAttrs(t,r.attrs),matrix:t.getMatrix()};return n[0]=i,n[1]=r,n},props2frame:function(t,e){var n={matrix:null,attrs:{}};return r.each(e,function(r,i){"transform"!==i||e.k?"matrix"===i?n.matrix=r:"onUpdate"===i?n.onUpdate=e.onUpdate:o[i]||(n.attrs[i]=r):n.matrix=s.transform(t.getMatrix(),r)}),n},transform:function(t,e){return t=t.clone(),r.each(e,function(e){switch(e[0]){case"t":t.translate(e[1],e[2]);break;case"s":t.scale(e[1],e[2]);break;case"r":t.rotate(e[1]);break;case"m":t.multiply(e[1]);break;default:return!1}}),t},getTargetAttrs:function(t,e){var n,r={};for(n in e)r[n]=t.attr(n);return r}};t.exports=s},function(t,e,n){"use strict";var r=(n(25),n(74)),i=n(1),a=n(73),o=function(t){i.mix(this,t),this._init()};i.augment(o,{type:"tween",canvas:null,target:null,startTime:null,endTime:null,duration:null,ratio:0,destroyTarget:!1,needsDestroy:!1,available:!0,repeat:!1,callBack:null,currentFrame:null,startKeyFrame:{attrs:null,matrix:null},endKeyFrame:{attrs:null,matrix:null},interpolations:null,_init:function(){var t=this.startTime,e=this.duration;this.endTime=t+e},tryStep:function(t){var e=(this.startTime,this.duration,this.startKeyFrame,this.target);if(!e||e.get("destroyed"))return this.needsDestroy=!0,!1;try{this.step(t)}catch(t){return this.needsDestroy=!0,!1}},step:function(t){var e,n,o,u=this.target,s=this.startTime,c=t-s,l=this.duration,h=this.startKeyFrame,f=this.endKeyFrame,d=this.easing,p=this.interpolations;return i.isFunction(d)||(d=a[d]?a[d]:a.linear),n=c/l,n=n<=0?0:n>=1?1:n,o=d(n),e=r.getFrame(o,h,f,p,u),e.attrs&&u.attr(e.attrs),e.matrix&&u.setMatrix(e.matrix),this.ratio=n,this.currentFrame=e,this.updateStatus(),u},updateStatus:function(){var t=this.ratio,e=this.callBack,n=this.destroyTarget,r=this.target,i=this.repeat;if(t>=1)if(i){var a=this.startTime,o=this.endTime,u=this.duration;this.startTime=a+u,this.endTime=o+u,this.reset()}else this.needsDestroy=!0,e&&e.call(r),n&&!r.get("destroyed")&&r.remove(!0)},reset:function(){var t=this.target,e=this.startKeyFrame;e.attrs&&t.attr(e.attrs),e.matrix&&t.setMatrix(e.matrix),this.ratio=0,this.needsDestroy=!1},destroy:function(){var t=this.target,e=this.endKeyFrame;t&&!t.get("destroyed")&&(e.attrs&&t.attr(e.attrs),e.matrix&&t.setMatrix(e.matrix)),this.destroyed=!0}}),t.exports=o},function(t,e,n){"use strict";function r(t){i.Util.mix(this,t)}var i=n(4),a=n(81);i.Util.augment(r,{dynamic:!1,manyBody:!0,forceCollideRadius:function(t){return Math.max(t.width,t.height)/2+2},manyBodyStrength:function(){return-30},width:null,height:null,center:null,nodes:null,edges:null,maxLineWidth:null,dynamicCallback:null,maxLinkDistance:30,callback:null,edgeDistance:null,edgeStrength:null,manyBodyDistanceMax:function(t,e){return 3*t},getMaxLineWidth:function(){var t=this.edges,e=-(1/0);return i.Util.each(t,function(t){t.lineWidth>e&&(e=t.lineWidth)}),e},execute:function(){var t=this.nodes,e=i.Util.clone(this.edges),n=this.width?this.width:this.graphWidth,r=this.height?this.height:this.graphHeight,o=this.center?this.center:{x:n/2,y:r/2},u=this.forceCollideRadius,s=this.dynamic,c=this.manyBody,l=this.dynamicCallback,h=this.callback,f=this.getMaxLineWidth(),d=this.maxLinkDistance,p=this.edgeDistance,g=this.edgeStrength,v=(0,a.forceSimulation)(t).force("link",(0,a.forceLink)(e).id(function(t){return t.id}).distance(p?p:function(t){return t.lineWidth/f*d}).strength(g?g:1)).force("collision",(0,a.forceCollide)().radius(u)).force("center",(0,a.forceCenter)(o.x,o.y));if(v.on("end",function(){t.forEach(function(t){delete t.vx,delete t.vy})}),h&&h(v),c&&v.force("charge",(0,a.forceManyBody)().distanceMax(this.manyBodyDistanceMax(n,r))),s)v.on("tick",l);else{v.stop();for(var y=0,m=Math.ceil(Math.log(v.alphaMin())/Math.log(1-v.alphaDecay()));y<m;++y)v.tick();t.forEach(function(t){delete t.vx,delete t.vy})}this.simulation=v},stop:function(){this.simulation.stop()}}),t.exports=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=n(4),a=n(162),o=r(a),u=n(11),s=r(u),c=n(76),l=r(c),h=n(164),f=r(h);n(165);var d=function t(e){t.superclass.constructor.call(this,e)};d.ATTRS={layout:null,nodeTool:null,layoutCfg:{},dx:0,dy:0,nodeHoverActived:!0,arrow:function(t){var e=t.attr("stroke");return{stroke:e,strokeOpacity:1}},nodeToolCfg:{class:"node-tool",lists:[{html:"\u663e\u793a\u6240\u6709\u6765\u6e90",event:"click",callback:"showSource"},{html:"\u663e\u793a\u6240\u6709\u53bb\u5411",event:"click",callback:"showTargets"},{html:"\u663e\u793a\u6765\u6e90\u4e0e\u53bb\u5411",event:"click",callback:"showAll"}]}},i.Util.extend(d,s.default),i.Util.augment(d,{init:function(){var t=this,e=this.get("graph");this._registerShape(),e.on("beforeinit",function(){var t={default:["dragCanvas","wheelZoom","clickFocus","wheelZoomAutoTexts","clickBlankClearActive"]};e.set("preciseAnchor",!0),e.set("modes",t),e.set("useFreezeSizeGroup",!0),e.set("useEdgeSortGroup",!1),e.set("useNodeSortGroup",!0),e.set("grid",null)}),e.on("afterinit",function(){var n=t.get("nodeToolCfg"),r=t.get("nodeTool");n&&r!==!1&&(r=new f.default(i.Util.mix({graph:e},n)),t.set("nodeTool",r)),e.node().shape("plugin-template-net-analysis-node-shape"),e.edge().shape(function(t){return t.isTreeEdge?"plugin-template-net-analysis-tree-edge-shape":"plugin-template-net-analysis-out-tree-edge-shape"}),r&&t._clickShowNodeTool()}),e.on("afterinit",function(){var n=t.get("layoutCfg"),r=e.get("width"),a=e.get("height"),o=e.get("layout");o||(o=new l.default(i.Util.mix({},{graphWidth:r,graphHeight:a,dynamicCallback:function(){e.updateNodesPosition()},forceCollideRadius:function(t){return Math.max(t.width,t.height)/2+12}},n)),e.set("layout",o))}),e.on("beforerender",function(){var n=e.get("nodes"),r=e.get("edges"),i=(0,o.default)(n,r);i.edges.forEach(function(t){t.isTreeEdge=!0}),e.set("layoutEdgeFilter",function(t){return t.isTreeEdge}),t.set("forest",i)}),this.on("afterrender",function(){var n=t.get("forest"),r=t.get("dx"),i=t.get("dy"),a=n.maxRankNode;t._bindEvent(),t._switchXY(),e.focusPoint({x:a.x+r,y:a.y+i})}),this.get("nodeHoverActived")&&this._onNodeHover()},_registerShape:function(){var t=this.get("arrow");(0,i.registerEdge)("plugin-template-net-analysis-out-tree-edge-shape",{arrowStyle:t}),(0,i.registerEdge)("plugin-template-net-analysis-tree-edge-shape",{arrowStyle:t})},_switchXY:function(){var t=this.get("graph"),e=t.get("rootGroup"),n=e.getBBox();if(n.maxY-n.minY>n.maxX-n.minX){var r=t.get("nodes");r.forEach(function(t){var e=t.x;t.x=t.y,t.y=e}),t.updateNodesPosition()}},_clickShowNodeTool:function(){var t=this.get("graph"),e=this.get("nodeTool");t.on("itemclick",function(t){var n=t.item;"node"===n.get("type")&&e.show(n,t.domX,t.domY)}),t.on("mousedown",function(){e.hide()})},_onNodeHover:function(){var t=this.get("graph");t.on("itemmouseenter",function(e){var n=e.item;if("node"===e.itemType&&!n.get("actived")){var r=n.getGroup(),i=r.get("acitvedOutterShape");i.show(),t.refresh(),t.css({cursor:"pointer"})}}),t.on("itemmouseleave",function(e){var n=e.item;if("node"===e.itemType){if(!n.get("actived")){var r=n.getGroup(),i=r.get("acitvedOutterShape");i.hide(),t.refresh()}t.css({cursor:"default"})}})}}),t.exports=d},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(t){return new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+"]"}).join(",")+"}")}function n(t,n){var r=e(t);return function(e,i){return n(r(e),i,t)}}function r(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}var i={},a={},o=34,u=10,s=13,c=function(t){function c(t,r){var i,a,o=l(t,function(t,o){return i?i(t,o-1):(a=t,void(i=r?n(t,r):e(t)))});return o.columns=a||[],o}function l(t,e){function n(){if(d)return a;if(p)return p=!1,i;var e,n,r=h;if(t.charCodeAt(r)===o){for(;h++<l&&t.charCodeAt(h)!==o||t.charCodeAt(++h)===o;);return(e=h)>=l?d=!0:(n=t.charCodeAt(h++))===u?p=!0:n===s&&(p=!0,t.charCodeAt(h)===u&&++h),t.slice(r+1,e-1).replace(/""/g,'"')}for(;h<l;){if((n=t.charCodeAt(e=h++))===u)p=!0;else if(n===s)p=!0,t.charCodeAt(h)===u&&++h;else if(n!==v)continue;return t.slice(r,e)}return d=!0,t.slice(r,l)}var r,c=[],l=t.length,h=0,f=0,d=l<=0,p=!1;for(t.charCodeAt(l-1)===u&&--l,t.charCodeAt(l-1)===s&&--l;(r=n())!==a;){for(var g=[];r!==i&&r!==a;)g.push(r),r=n();e&&null==(g=e(g,f++))||c.push(g)}return c}function h(e,n){return null==n&&(n=r(e)),[n.map(p).join(t)].concat(e.map(function(e){return n.map(function(t){return p(e[t])}).join(t)})).join("\n")}function f(t){return t.map(d).join("\n")}function d(e){return e.map(p).join(t)}function p(t){return null==t?"":g.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}var g=new RegExp('["'+t+"\n\r]"),v=t.charCodeAt(0);return{parse:c,parseRows:l,format:h,formatRows:f}},l=c(","),h=l.parse,f=l.parseRows,d=l.format,p=l.formatRows,g=c("\t"),v=g.parse,y=g.parseRows,m=g.format,_=g.formatRows;t.dsvFormat=c,t.csvParse=h,t.csvParseRows=f,t.csvFormat=d,t.csvFormatRows=p,t.tsvParse=v,t.tsvParseRows=y,t.tsvFormat=m,t.tsvFormatRows=_,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(t){return+t}function n(t){return t*t}function r(t){return t*(2-t)}function i(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function a(t){return t*t*t}function o(t){return--t*t*t+1}function u(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}function s(t){return 1-Math.cos(t*k)}function c(t){return Math.sin(t*k)}function l(t){return(1-Math.cos(S*t))/2}function h(t){return Math.pow(2,10*t-10)}function f(t){return 1-Math.pow(2,-10*t)}function d(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function p(t){return 1-Math.sqrt(1-t*t)}function g(t){return Math.sqrt(1- --t*t)}function v(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}function y(t){return 1-m(1-t)}function m(t){return(t=+t)<T?O*t*t:t<A?O*(t-=E)*t+C:t<N?O*(t-=P)*t+I:O*(t-=L)*t+R}function _(t){return((t*=2)<=1?1-m(1-t):m(t-1)+1)/2}var x=3,b=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(x),w=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(x),M=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}(x),S=Math.PI,k=S/2,T=4/11,E=6/11,A=8/11,C=.75,P=9/11,N=10/11,I=.9375,L=21/22,R=63/64,O=1/T/T,B=1.70158,U=function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n}(B),D=function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(B),z=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}(B),F=2*Math.PI,j=1,q=.3,Y=function t(e,n){function r(t){return e*Math.pow(2,10*--t)*Math.sin((i-t)/n)}var i=Math.asin(1/(e=Math.max(1,e)))*(n/=F);return r.amplitude=function(e){return t(e,n*F)},r.period=function(n){return t(e,n)},r}(j,q),H=function t(e,n){function r(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+i)/n)}var i=Math.asin(1/(e=Math.max(1,e)))*(n/=F);return r.amplitude=function(e){return t(e,n*F)},r.period=function(n){return t(e,n)},r}(j,q),X=function t(e,n){function r(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((i-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((i+t)/n))/2}var i=Math.asin(1/(e=Math.max(1,e)))*(n/=F);return r.amplitude=function(e){return t(e,n*F)},r.period=function(n){return t(e,n)},r}(j,q);t.easeLinear=e,t.easeQuad=i,t.easeQuadIn=n,t.easeQuadOut=r,t.easeQuadInOut=i,t.easeCubic=u,t.easeCubicIn=a,t.easeCubicOut=o,t.easeCubicInOut=u,t.easePoly=M,t.easePolyIn=b,t.easePolyOut=w,t.easePolyInOut=M,t.easeSin=l,t.easeSinIn=s,t.easeSinOut=c,t.easeSinInOut=l,t.easeExp=d,t.easeExpIn=h,t.easeExpOut=f,t.easeExpInOut=d,t.easeCircle=v,t.easeCircleIn=p,t.easeCircleOut=g,t.easeCircleInOut=v,t.easeBounce=m,t.easeBounceIn=y,t.easeBounceOut=m,t.easeBounceInOut=_,t.easeBack=z,t.easeBackIn=U,t.easeBackOut=D,t.easeBackInOut=z,t.easeElastic=H,t.easeElasticIn=Y,t.easeElasticOut=H,t.easeElasticInOut=X,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(t,e,n,r){if(isNaN(e)||isNaN(n))return t;
  var i,a,o,u,s,c,l,h,f,d=t._root,p={data:r},g=t._x0,v=t._y0,y=t._x1,m=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((c=e>=(a=(g+y)/2))?g=a:y=a,(l=n>=(o=(v+m)/2))?v=o:m=o,i=d,!(d=d[h=l<<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>=(a=(g+y)/2))?g=a:y=a,(l=n>=(o=(v+m)/2))?v=o:m=o;while((h=l<<1|c)===(f=(s>=o)<<1|u>=a));return i[f]=d,i[h]=p,t}function n(t){var n,r,i,a,o=t.length,u=new Array(o),s=new Array(o),c=1/0,l=1/0,h=-(1/0),f=-(1/0);for(r=0;r<o;++r)isNaN(i=+this._x.call(null,n=t[r]))||isNaN(a=+this._y.call(null,n))||(u[r]=i,s[r]=a,i<c&&(c=i),i>h&&(h=i),a<l&&(l=a),a>f&&(f=a));for(h<c&&(c=this._x0,h=this._x1),f<l&&(l=this._y0,f=this._y1),this.cover(c,l).cover(h,f),r=0;r<o;++r)e(this,u[r],s[r],t[r]);return this}function r(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this}function i(t){return t[0]}function a(t){return t[1]}function o(t,e,n){var r=new u(null==e?i:e,null==n?a:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function u(t,e,n,r,i,a){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function s(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var c=function(t){var n=+this._x.call(null,t),r=+this._y.call(null,t);return e(this.cover(n,r),n,r,t)},l=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,a=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,a=(r=Math.floor(e))+1;else{if(!(n>t||t>i||r>e||e>a))return this;var o,u,s=i-n,c=this._root;switch(u=(e<(r+a)/2)<<1|t<(n+i)/2){case 0:do o=new Array(4),o[u]=c,c=o;while(s*=2,i=n+s,a=r+s,t>i||e>a);break;case 1:do o=new Array(4),o[u]=c,c=o;while(s*=2,n=i-s,a=r+s,n>t||e>a);break;case 2:do o=new Array(4),o[u]=c,c=o;while(s*=2,i=n+s,r=a-s,t>i||r>e);break;case 3:do o=new Array(4),o[u]=c,c=o;while(s*=2,n=i-s,r=a-s,n>t||r>e)}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=i,this._y1=a,this},h=function(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t},f=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]]},d=function(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i},p=function(t,e,n){var r,i,a,o,u,s,c,l=this._x0,h=this._y0,f=this._x1,p=this._y1,g=[],v=this._root;for(v&&g.push(new d(v,l,h,f,p)),null==n?n=1/0:(l=t-n,h=e-n,f=t+n,p=e+n,n*=n);s=g.pop();)if(!(!(v=s.node)||(i=s.x0)>f||(a=s.y0)>p||(o=s.x1)<l||(u=s.y1)<h))if(v.length){var y=(i+o)/2,m=(a+u)/2;g.push(new d(v[3],y,m,o,u),new d(v[2],i,m,y,u),new d(v[1],y,a,o,m),new d(v[0],i,a,y,m)),(c=(e>=m)<<1|t>=y)&&(s=g[g.length-1],g[g.length-1]=g[g.length-1-c],g[g.length-1-c]=s)}else{var _=t-+this._x.call(null,v.data),x=e-+this._y.call(null,v.data),b=_*_+x*x;if(b<n){var w=Math.sqrt(n=b);l=t-w,h=e-w,f=t+w,p=e+w,r=v.data}}return r},g=function(t){if(isNaN(a=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var e,n,r,i,a,o,u,s,c,l,h,f,d=this._root,p=this._x0,g=this._y0,v=this._x1,y=this._y1;if(!d)return this;if(d.length)for(;;){if((c=a>=(u=(p+v)/2))?p=u:v=u,(l=o>=(s=(g+y)/2))?g=s:y=s,e=d,!(d=d[h=l<<1|c]))return this;if(!d.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,f=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[f]=d:this._root=d),this):(this._root=i,this)},v=function(){return this._root},y=function(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t},m=function(t){var e,n,r,i,a,o,u=[],s=this._root;for(s&&u.push(new d(s,this._x0,this._y0,this._x1,this._y1));e=u.pop();)if(!t(s=e.node,r=e.x0,i=e.y0,a=e.x1,o=e.y1)&&s.length){var c=(r+a)/2,l=(i+o)/2;(n=s[3])&&u.push(new d(n,c,l,a,o)),(n=s[2])&&u.push(new d(n,r,l,c,o)),(n=s[1])&&u.push(new d(n,c,i,a,l)),(n=s[0])&&u.push(new d(n,r,i,c,l))}return this},_=function(t){var e,n=[],r=[];for(this._root&&n.push(new d(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var i=e.node;if(i.length){var a,o=e.x0,u=e.y0,s=e.x1,c=e.y1,l=(o+s)/2,h=(u+c)/2;(a=i[0])&&n.push(new d(a,o,u,l,h)),(a=i[1])&&n.push(new d(a,l,u,s,h)),(a=i[2])&&n.push(new d(a,o,h,l,c)),(a=i[3])&&n.push(new d(a,l,h,s,c))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},x=function(t){return arguments.length?(this._x=t,this):this._x},b=function(t){return arguments.length?(this._y=t,this):this._y},w=o.prototype=u.prototype;w.copy=function(){var t,e,n=new u(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=s(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]=s(e));return n},w.add=c,w.addAll=n,w.cover=l,w.data=h,w.extent=f,w.find=p,w.remove=g,w.removeAll=r,w.root=v,w.size=y,w.visit=m,w.visitAfter=_,w.x=x,w.y=b,t.quadtree=o,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(21),i=n(173),a=n(174),o=n(175),u=n(22),s=n(23),c=n(13),l=n(41),h=n(78),f=n(79),d=n(177),p=n(42),g=n(179),v=n(180),y=n(18),m=n(43),_=n(181),x=n(80),b=n(182),w=n(183),M=n(184),S=n(30),k=n(24),T=n(187),E=n(31),A=n(44),C=n(45),P=n(46),N=n(189),I=n(190),L="4.12.0";e.version=L,Object.keys(r).forEach(function(t){e[t]=r[t]}),Object.keys(i).forEach(function(t){e[t]=i[t]}),Object.keys(a).forEach(function(t){e[t]=a[t]}),Object.keys(o).forEach(function(t){e[t]=o[t]}),Object.keys(u).forEach(function(t){e[t]=u[t]}),Object.keys(s).forEach(function(t){e[t]=s[t]}),Object.keys(c).forEach(function(t){e[t]=c[t]}),Object.keys(l).forEach(function(t){e[t]=l[t]}),Object.keys(h).forEach(function(t){e[t]=h[t]}),Object.keys(f).forEach(function(t){e[t]=f[t]}),Object.keys(d).forEach(function(t){e[t]=d[t]}),Object.keys(p).forEach(function(t){e[t]=p[t]}),Object.keys(g).forEach(function(t){e[t]=g[t]}),Object.keys(v).forEach(function(t){e[t]=v[t]}),Object.keys(y).forEach(function(t){e[t]=y[t]}),Object.keys(m).forEach(function(t){e[t]=m[t]}),Object.keys(_).forEach(function(t){e[t]=_[t]}),Object.keys(x).forEach(function(t){e[t]=x[t]}),Object.keys(b).forEach(function(t){e[t]=b[t]}),Object.keys(w).forEach(function(t){e[t]=w[t]}),Object.keys(M).forEach(function(t){e[t]=M[t]}),Object.keys(S).forEach(function(t){e[t]=S[t]}),Object.keys(k).forEach(function(t){e[t]=k[t]}),Object.keys(T).forEach(function(t){e[t]=T[t]}),Object.keys(E).forEach(function(t){e[t]=E[t]}),Object.keys(A).forEach(function(t){e[t]=A[t]}),Object.keys(C).forEach(function(t){e[t]=C[t]}),Object.keys(P).forEach(function(t){e[t]=P[t]}),Object.keys(N).forEach(function(t){e[t]=N[t]}),Object.keys(I).forEach(function(t){e[t]=I[t]}),Object.defineProperty(e,"event",{get:function(){return k.event}})},function(t,e,n){"use strict";function r(t){var e=new s({directed:!1}),n=t.nodes()[0],r=t.nodeCount();e.setNode(n,{});for(var u,l;i(e,t)<r;)u=a(e,t),l=e.hasNode(u.v)?c(t,u):-c(t,u),o(e,t,l);return e}function i(t,e){function n(r){u.each(e.nodeEdges(r),function(i){var a=i.v,o=r===a?i.w:a;t.hasNode(o)||c(e,i)||(t.setNode(o,{}),t.setEdge(r,o,{}),n(o))})}return u.each(t.nodes(),n),t.nodeCount()}function a(t,e){return u.min(e.edges(),function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return c(e,n)})}function o(t,e,n){u.each(t.nodes(),function(t){e.node(t).rank+=n})}var u=n(3),s=n(10).Graph,c=n(32).slack;t.exports=r},function(t,e){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(t){return"function"==typeof t}function i(t){return"number"==typeof t}function a(t){return"object"==typeof t&&null!==t}function o(t){return void 0===t}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if(!i(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},n.prototype.emit=function(t){var e,n,i,u,s,c;if(this._events||(this._events={}),"error"===t&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if(e=arguments[1],e instanceof Error)throw e;var l=new Error('Uncaught, unspecified "error" event. ('+e+")");throw l.context=e,l}if(n=this._events[t],o(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:u=Array.prototype.slice.call(arguments,1),n.apply(this,u)}else if(a(n))for(u=Array.prototype.slice.call(arguments,1),c=n.slice(),i=c.length,s=0;s<i;s++)c[s].apply(this,u);return!0},n.prototype.addListener=function(t,e){var i;if(!r(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,r(e.listener)?e.listener:e),this._events[t]?a(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,a(this._events[t])&&!this._events[t].warned&&(i=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,i&&i>0&&this._events[t].length>i&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){function n(){this.removeListener(t,n),i||(i=!0,e.apply(this,arguments))}if(!r(e))throw TypeError("listener must be a function");var i=!1;return n.listener=e,this.on(t,n),this},n.prototype.removeListener=function(t,e){var n,i,o,u;if(!r(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=this._events[t],o=n.length,i=-1,n===e||r(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(a(n)){for(u=o;u-- >0;)if(n[u]===e||n[u].listener&&n[u].listener===e){i=u;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[t],r(n))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){var e;return e=this._events&&this._events[t]?r(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(r(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,n){function r(t,e,n){a.isArray(e)||(e=[e]);var r=[],o={};return a.each(e,function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);i(t,e,"post"===n,o,r)}),r}function i(t,e,n,r,o){a.has(r,e)||(r[e]=!0,n||o.push(e),a.each(t.neighbors(e),function(e){i(t,e,n,r,o)}),n&&o.push(e))}var a=n(9);t.exports=r},function(t,e,n){function r(t,e,n,r){return i(t,String(e),n||u,r||function(e){return t.outEdges(e)})}function i(t,e,n,r){var i,a,u={},s=new o,c=function(t){var e=t.v!==i?t.v:t.w,r=u[e],o=n(t),c=a.distance+o;if(o<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+o);c<r.distance&&(r.distance=c,r.predecessor=i,s.decrease(e,c))};for(t.nodes().forEach(function(t){var n=t===e?0:Number.POSITIVE_INFINITY;u[t]={distance:n},s.add(t,n)});s.size()>0&&(i=s.removeMin(),a=u[i],a.distance!==Number.POSITIVE_INFINITY);)r(i).forEach(c);return u}var a=n(9),o=n(88);t.exports=r;var u=a.constant(1)},function(t,e,n){function r(t){function e(u){var s=a[u]={onStack:!0,lowlink:n,index:n++};if(r.push(u),t.successors(u).forEach(function(t){i.has(a,t)?a[t].onStack&&(s.lowlink=Math.min(s.lowlink,a[t].index)):(e(t),s.lowlink=Math.min(s.lowlink,a[t].lowlink))}),s.lowlink===s.index){var c,l=[];do c=r.pop(),a[c].onStack=!1,l.push(c);while(u!==c);o.push(l)}}var n=0,r=[],a={},o=[];return t.nodes().forEach(function(t){i.has(a,t)||e(t)}),o}var i=n(9);t.exports=r},function(t,e,n){function r(t){function e(u){if(a.has(r,u))throw new i;a.has(n,u)||(r[u]=!0,n[u]=!0,a.each(t.predecessors(u),e),delete r[u],o.push(u))}var n={},r={},o=[];if(a.each(t.sinks(),e),a.size(n)!==t.nodeCount())throw new i;return o}function i(){}var a=n(9);t.exports=r,r.CycleException=i},function(t,e,n){function r(){this._arr=[],this._keyIndices={}}var i=n(9);t.exports=r,r.prototype.size=function(){return this._arr.length},r.prototype.keys=function(){return this._arr.map(function(t){return t.key})},r.prototype.has=function(t){return i.has(this._keyIndices,t)},r.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},r.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},r.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!i.has(n,t)){var r=this._arr,a=r.length;return n[t]=a,r.push({key:t,priority:e}),this._decrease(a),!0}return!1},r.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},r.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},r.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n<e.length&&(i=e[n].priority<e[i].priority?n:i,r<e.length&&(i=e[r].priority<e[i].priority?r:i),i!==t&&(this._swap(t,i),this._heapify(i)))},r.prototype._decrease=function(t){for(var e,n=this._arr,r=n[t].priority;0!==t&&(e=t>>1,!(n[e].priority<r));)this._swap(t,e),t=e},r.prototype._swap=function(t,e){var n=this._arr,r=this._keyIndices,i=n[t],a=n[e];n[t]=a,n[e]=i,r[a.key]=t,r[i.key]=e}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){var r;(function(t,i){(function(){function a(t,e){if(t!==e){var n=null===t,r=t===E,i=t===t,a=null===e,o=e===E,u=e===e;if(t>e&&!a||!i||n&&!o&&u||r&&u)return 1;if(t<e&&!n||!u||a&&!r&&i||o&&i)return-1}return 0}function o(t,e,n){for(var r=t.length,i=n?r:-1;n?i--:++i<r;)if(e(t[i],i,t))return i;return-1}function u(t,e,n){if(e!==e)return m(t,n);for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function s(t){return"function"==typeof t||!1}function c(t){return null==t?"":t+""}function l(t,e){for(var n=-1,r=t.length;++n<r&&e.indexOf(t.charAt(n))>-1;);return n}function h(t,e){for(var n=t.length;n--&&e.indexOf(t.charAt(n))>-1;);return n}function f(t,e){return a(t.criteria,e.criteria)||t.index-e.index}function d(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,u=i.length,s=n.length;++r<u;){var c=a(i[r],o[r]);if(c){if(r>=s)return c;var l=n[r];return c*("asc"===l||l===!0?1:-1)}}return t.index-e.index}function p(t){return Gt[t]}function g(t){return Wt[t]}function v(t,e,n){return e?t=Zt[t]:n&&(t=Qt[t]),"\\"+t}function y(t){return"\\"+Qt[t]}function m(t,e,n){for(var r=t.length,i=e+(n?0:-1);n?i--:++i<r;){var a=t[i];if(a!==a)return i}return-1}function _(t){return!!t&&"object"==typeof t}function x(t){return t<=160&&t>=9&&t<=13||32==t||160==t||5760==t||6158==t||t>=8192&&(t<=8202||8232==t||8233==t||8239==t||8287==t||12288==t||65279==t)}function b(t,e){for(var n=-1,r=t.length,i=-1,a=[];++n<r;)t[n]===e&&(t[n]=G,a[++i]=n);return a}function w(t,e){for(var n,r=-1,i=t.length,a=-1,o=[];++r<i;){var u=t[r],s=e?e(u,r,t):u;r&&n===s||(n=s,o[++a]=u)}return o}function M(t){for(var e=-1,n=t.length;++e<n&&x(t.charCodeAt(e)););return e}function S(t){for(var e=t.length;e--&&x(t.charCodeAt(e)););return e}function k(t){return Vt[t]}function T(t){function e(t){if(_(t)&&!Cu(t)&&!(t instanceof i)){if(t instanceof r)return t;if(to.call(t,"__chain__")&&to.call(t,"__wrapped__"))return dr(t)}return new r(t)}function n(){}function r(t,e,n){this.__wrapped__=t,this.__actions__=n||[],this.__chain__=!!e}function i(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ao,this.__views__=[]}function x(){var t=new i(this.__wrapped__);return t.__actions__=te(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=te(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=te(this.__views__),t}function J(){if(this.__filtered__){var t=new i(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function rt(){var t=this.__wrapped__.value(),e=this.__dir__,n=Cu(t),r=e<0,i=n?t.length:0,a=Gn(0,i,this.__views__),o=a.start,u=a.end,s=u-o,c=r?u:o-1,l=this.__iteratees__,h=l.length,f=0,d=Mo(s,this.__takeCount__);if(!n||i<q||i==s&&d==s)return nn(r&&n?t.reverse():t,this.__actions__);var p=[];t:for(;s--&&f<d;){c+=e;for(var g=-1,v=t[c];++g<h;){var y=l[g],m=y.iteratee,_=y.type,x=m(v);if(_==H)v=x;else if(!x){if(_==Y)continue t;break t}}p[f++]=v}return p}function at(){this.__data__={}}function Gt(t){return this.has(t)&&delete this.__data__[t]}function Wt(t){return"__proto__"==t?E:this.__data__[t]}function Vt(t){return"__proto__"!=t&&to.call(this.__data__,t)}function $t(t,e){return"__proto__"!=t&&(this.__data__[t]=e),this}function Zt(t){var e=t?t.length:0;for(this.data={hash:yo(null),set:new lo};e--;)this.push(t[e])}function Qt(t,e){var n=t.data,r="string"==typeof e||Ri(e)?n.set.has(e):n.hash[e];return r?0:-1}function Kt(t){var e=this.data;"string"==typeof t||Ri(t)?e.set.add(t):e.hash[t]=!0}function Jt(t,e){for(var n=-1,r=t.length,i=-1,a=e.length,o=Fa(r+a);++n<r;)o[n]=t[n];for(;++i<a;)o[n++]=e[i];return o}function te(t,e){var n=-1,r=t.length;for(e||(e=Fa(r));++n<r;)e[n]=t[n];return e}function ee(t,e){for(var n=-1,r=t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function ne(t,e){for(var n=t.length;n--&&e(t[n],n,t)!==!1;);return t}function ae(t,e){for(var n=-1,r=t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function oe(t,e,n,r){for(var i=-1,a=t.length,o=r,u=o;++i<a;){var s=t[i],c=+e(s);n(c,o)&&(o=c,u=s)}return u}function ue(t,e){for(var n=-1,r=t.length,i=-1,a=[];++n<r;){var o=t[n];e(o,n,t)&&(a[++i]=o)}return a}function se(t,e){for(var n=-1,r=t.length,i=Fa(r);++n<r;)i[n]=e(t[n],n,t);return i}function ce(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function le(t,e,n,r){var i=-1,a=t.length;for(r&&a&&(n=t[++i]);++i<a;)n=e(n,t[i],i,t);return n}function he(t,e,n,r){var i=t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function fe(t,e){for(var n=-1,r=t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function de(t,e){for(var n=t.length,r=0;n--;)r+=+e(t[n])||0;return r}function pe(t,e){return t===E?e:t}function ge(t,e,n,r){return t!==E&&to.call(r,n)?t:e}function ve(t,e,n){for(var r=-1,i=Fu(e),a=i.length;++r<a;){var o=i[r],u=t[o],s=n(u,e[o],o,t,e);(s===s?s===u:u!==u)&&(u!==E||o in t)||(t[o]=s)}return t}function ye(t,e){return null==e?t:_e(e,Fu(e),t)}function me(t,e){for(var n=-1,r=null==t,i=!r&&Qn(t),a=i?t.length:0,o=e.length,u=Fa(o);++n<o;){var s=e[n];i?u[n]=Kn(s,a)?t[s]:E:u[n]=r?E:t[s]}return u}function _e(t,e,n){n||(n={});for(var r=-1,i=e.length;++r<i;){var a=e[r];n[a]=t[a]}return n}function xe(t,e,n){var r=typeof t;return"function"==r?e===E?t:on(t,e,n):null==t?Ea:"object"==r?ze(t):e===E?La(t):Fe(t,e)}function be(t,e,n,r,i,a,o){var u;if(n&&(u=i?n(t,r,i):n(t)),u!==E)return u;if(!Ri(t))return t;var s=Cu(t);if(s){if(u=Wn(t),!e)return te(t,u)}else{var c=no.call(t),l=c==K;if(c!=et&&c!=W&&(!l||i))return Xt[c]?$n(t,c,e):i?t:{};if(u=Vn(l?{}:t),!e)return ye(u,t)}a||(a=[]),o||(o=[]);for(var h=a.length;h--;)if(a[h]==t)return o[h];return a.push(t),o.push(u),(s?ee:Ne)(t,function(r,i){u[i]=be(r,e,n,i,t,a,o)}),u}function we(t,e,n){if("function"!=typeof t)throw new $a(X);return ho(function(){t.apply(E,n)},e)}function Me(t,e){var n=t?t.length:0,r=[];if(!n)return r;var i=-1,a=Yn(),o=a==u,s=o&&e.length>=q?gn(e):null,c=e.length;s&&(a=Qt,o=!1,e=s);t:for(;++i<n;){var l=t[i];if(o&&l===l){for(var h=c;h--;)if(e[h]===l)continue t;r.push(l)}else a(e,l,0)<0&&r.push(l)}return r}function Se(t,e){var n=!0;return Bo(t,function(t,r,i){return n=!!e(t,r,i)}),n}function ke(t,e,n,r){var i=r,a=i;return Bo(t,function(t,o,u){var s=+e(t,o,u);(n(s,i)||s===r&&s===a)&&(i=s,a=t)}),a}function Te(t,e,n,r){var i=t.length;for(n=null==n?0:+n||0,n<0&&(n=-n>i?0:i+n),r=r===E||r>i?i:+r||0,r<0&&(r+=i),i=n>r?0:r>>>0,n>>>=0;n<i;)t[n++]=e;return t}function Ee(t,e){var n=[];return Bo(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function Ae(t,e,n,r){var i;return n(t,function(t,n,a){if(e(t,n,a))return i=r?n:t,!1}),i}function Ce(t,e,n,r){r||(r=[]);for(var i=-1,a=t.length;++i<a;){var o=t[i];_(o)&&Qn(o)&&(n||Cu(o)||ki(o))?e?Ce(o,e,n,r):ce(r,o):n||(r[r.length]=o)}return r}function Pe(t,e){return Do(t,e,ta)}function Ne(t,e){return Do(t,e,Fu)}function Ie(t,e){return zo(t,e,Fu)}function Le(t,e){for(var n=-1,r=e.length,i=-1,a=[];++n<r;){var o=e[n];Li(t[o])&&(a[++i]=o)}return a}function Re(t,e,n){if(null!=t){n!==E&&n in hr(t)&&(e=[n]);for(var r=0,i=e.length;null!=t&&r<i;)t=t[e[r++]];return r&&r==i?t:E}}function Oe(t,e,n,r,i,a){return t===e||(null==t||null==e||!Ri(t)&&!_(e)?t!==t&&e!==e:Be(t,e,Oe,n,r,i,a))}function Be(t,e,n,r,i,a,o){var u=Cu(t),s=Cu(e),c=V,l=V;u||(c=no.call(t),c==W?c=et:c!=et&&(u=Yi(t))),s||(l=no.call(e),l==W?l=et:l!=et&&(s=Yi(e)));var h=c==et,f=l==et,d=c==l;if(d&&!u&&!h)return zn(t,e,c);if(!i){var p=h&&to.call(t,"__wrapped__"),g=f&&to.call(e,"__wrapped__");if(p||g)return n(p?t.value():t,g?e.value():e,r,i,a,o)}if(!d)return!1;a||(a=[]),o||(o=[]);for(var v=a.length;v--;)if(a[v]==t)return o[v]==e;a.push(t),o.push(e);var y=(u?Dn:Fn)(t,e,n,r,i,a,o);return a.pop(),o.pop(),y}function Ue(t,e,n){var r=e.length,i=r,a=!n;if(null==t)return!i;for(t=hr(t);r--;){var o=e[r];if(a&&o[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1}for(;++r<i;){o=e[r];var u=o[0],s=t[u],c=o[1];if(a&&o[2]){if(s===E&&!(u in t))return!1}else{var l=n?n(s,c,u):E;if(!(l===E?Oe(c,s,n,!0):l))return!1}}return!0}function De(t,e){var n=-1,r=Qn(t)?Fa(t.length):[];return Bo(t,function(t,i,a){r[++n]=e(t,i,a)}),r}function ze(t){var e=Hn(t);if(1==e.length&&e[0][2]){var n=e[0][0],r=e[0][1];return function(t){return null!=t&&(t[n]===r&&(r!==E||n in hr(t)))}}return function(t){return Ue(t,e)}}function Fe(t,e){var n=Cu(t),r=tr(t)&&rr(e),i=t+"";return t=fr(t),function(a){if(null==a)return!1;var o=i;if(a=hr(a),(n||!r)&&!(o in a)){if(a=1==t.length?a:Re(a,Ve(t,0,-1)),null==a)return!1;o=Tr(t),a=hr(a)}return a[o]===e?e!==E||o in a:Oe(e,a[o],E,!0)}}function je(t,e,n,r,i){if(!Ri(t))return t;var a=Qn(e)&&(Cu(e)||Yi(e)),o=a?E:Fu(e);return ee(o||e,function(u,s){if(o&&(s=u,u=e[s]),_(u))r||(r=[]),i||(i=[]),qe(t,e,s,je,n,r,i);else{var c=t[s],l=n?n(c,u,s,t,e):E,h=l===E;h&&(l=u),l===E&&(!a||s in t)||!h&&(l===l?l===c:c!==c)||(t[s]=l)}}),t}function qe(t,e,n,r,i,a,o){for(var u=a.length,s=e[n];u--;)if(a[u]==s)return void(t[n]=o[u]);var c=t[n],l=i?i(c,s,n,t,e):E,h=l===E;h&&(l=s,Qn(s)&&(Cu(s)||Yi(s))?l=Cu(c)?c:Qn(c)?te(c):[]:Fi(s)||ki(s)?l=ki(c)?Vi(c):Fi(c)?c:{}:h=!1),a.push(s),o.push(l),h?t[n]=r(l,s,i,a,o):(l===l?l!==c:c===c)&&(t[n]=l)}function Ye(t){return function(e){return null==e?E:e[t]}}function He(t){var e=t+"";return t=fr(t),function(n){return Re(n,t,e)}}function Xe(t,e){for(var n=t?e.length:0;n--;){var r=e[n];if(r!=i&&Kn(r)){var i=r;fo.call(t,r,1)}}return t}function Ge(t,e){return t+mo(To()*(e-t+1))}function We(t,e,n,r,i){return i(t,function(t,i,a){n=r?(r=!1,t):e(n,t,i,a)}),n}function Ve(t,e,n){var r=-1,i=t.length;e=null==e?0:+e||0,e<0&&(e=-e>i?0:i+e),n=n===E||n>i?i:+n||0,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var a=Fa(i);++r<i;)a[r]=t[r+e];return a}function $e(t,e){var n;return Bo(t,function(t,r,i){return n=e(t,r,i),!n}),!!n}function Ze(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function Qe(t,e,n){var r=jn(),i=-1;e=se(e,function(t){return r(t)});var a=De(t,function(t){var n=se(e,function(e){return e(t)});return{criteria:n,index:++i,value:t}});return Ze(a,function(t,e){return d(t,e,n)})}function Ke(t,e){var n=0;return Bo(t,function(t,r,i){n+=+e(t,r,i)||0}),n}function Je(t,e){var n=-1,r=Yn(),i=t.length,a=r==u,o=a&&i>=q,s=o?gn():null,c=[];s?(r=Qt,a=!1):(o=!1,s=e?[]:c);t:for(;++n<i;){var l=t[n],h=e?e(l,n,t):l;if(a&&l===l){for(var f=s.length;f--;)if(s[f]===h)continue t;e&&s.push(h),c.push(l)}else r(s,h,0)<0&&((e||o)&&s.push(h),c.push(l))}return c}function tn(t,e){for(var n=-1,r=e.length,i=Fa(r);++n<r;)i[n]=t[e[n]];return i}function en(t,e,n,r){for(var i=t.length,a=r?i:-1;(r?a--:++a<i)&&e(t[a],a,t););return n?Ve(t,r?0:a,r?a+1:i):Ve(t,r?a+1:0,r?i:a)}function nn(t,e){var n=t;n instanceof i&&(n=n.value());for(var r=-1,a=e.length;++r<a;){var o=e[r];n=o.func.apply(o.thisArg,ce([n],o.args))}return n}function rn(t,e,n){var r=0,i=t?t.length:r;if("number"==typeof e&&e===e&&i<=No){for(;r<i;){var a=r+i>>>1,o=t[a];(n?o<=e:o<e)&&null!==o?r=a+1:i=a}return i}return an(t,e,Ea,n)}function an(t,e,n,r){e=n(e);for(var i=0,a=t?t.length:0,o=e!==e,u=null===e,s=e===E;i<a;){var c=mo((i+a)/2),l=n(t[c]),h=l!==E,f=l===l;if(o)var d=f||r;else d=u?f&&h&&(r||null!=l):s?f&&(r||h):null!=l&&(r?l<=e:l<e);d?i=c+1:a=c}return Mo(a,Po)}function on(t,e,n){if("function"!=typeof t)return Ea;if(e===E)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,a){return t.call(e,n,r,i,a)};case 5:return function(n,r,i,a,o){return t.call(e,n,r,i,a,o)}}return function(){return t.apply(e,arguments)}}function un(t){var e=new ao(t.byteLength),n=new po(e);return n.set(new po(t)),e}function sn(t,e,n){for(var r=n.length,i=-1,a=wo(t.length-r,0),o=-1,u=e.length,s=Fa(u+a);++o<u;)s[o]=e[o];for(;++i<r;)s[n[i]]=t[i];for(;a--;)s[o++]=t[i++];return s}function cn(t,e,n){for(var r=-1,i=n.length,a=-1,o=wo(t.length-i,0),u=-1,s=e.length,c=Fa(o+s);++a<o;)c[a]=t[a];for(var l=a;++u<s;)c[l+u]=e[u];for(;++r<i;)c[l+n[r]]=t[a++];return c}function ln(t,e){return function(n,r,i){var a=e?e():{};if(r=jn(r,i,3),Cu(n))for(var o=-1,u=n.length;++o<u;){var s=n[o];t(a,s,r(s,o,n),n)}else Bo(n,function(e,n,i){t(a,e,r(e,n,i),i)});return a}}function hn(t){return yi(function(e,n){var r=-1,i=null==e?0:n.length,a=i>2?n[i-2]:E,o=i>2?n[2]:E,u=i>1?n[i-1]:E;for("function"==typeof a?(a=on(a,u,5),i-=2):(a="function"==typeof u?u:E,i-=a?1:0),o&&Jn(n[0],n[1],o)&&(a=i<3?E:a,i=1);++r<i;){var s=n[r];s&&t(e,s,a)}return e})}function fn(t,e){return function(n,r){var i=n?qo(n):0;if(!nr(i))return t(n,r);for(var a=e?i:-1,o=hr(n);(e?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function dn(t){return function(e,n,r){for(var i=hr(e),a=r(e),o=a.length,u=t?o:-1;t?u--:++u<o;){var s=a[u];if(n(i[s],s,i)===!1)break}return e}}function pn(t,e){function n(){var i=this&&this!==re&&this instanceof n?r:t;return i.apply(e,arguments)}var r=yn(t);return n}function gn(t){return yo&&lo?new Zt(t):null}function vn(t){return function(e){for(var n=-1,r=Sa(la(e)),i=r.length,a="";++n<i;)a=t(a,r[n],n);return a}}function yn(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=Oo(t.prototype),r=t.apply(n,e);return Ri(r)?r:n}}function mn(t){function e(n,r,i){i&&Jn(n,r,i)&&(r=E);var a=Un(n,t,E,E,E,E,E,r);return a.placeholder=e.placeholder,a}return e}function _n(t,e){return yi(function(n){var r=n[0];return null==r?r:(n.push(e),t.apply(E,n))})}function xn(t,e){return function(n,r,i){if(i&&Jn(n,r,i)&&(r=E),r=jn(r,i,3),1==r.length){n=Cu(n)?n:lr(n);var a=oe(n,r,t,e);if(!n.length||a!==e)return a}return ke(n,r,t,e)}}function bn(t,e){return function(n,r,i){if(r=jn(r,i,3),Cu(n)){var a=o(n,r,e);return a>-1?n[a]:E}return Ae(n,r,t)}}function wn(t){return function(e,n,r){return e&&e.length?(n=jn(n,r,3),o(e,n,t)):-1}}function Mn(t){return function(e,n,r){return n=jn(n,r,3),Ae(e,n,t,!0)}}function Sn(t){return function(){for(var e,n=arguments.length,i=t?n:-1,a=0,o=Fa(n);t?i--:++i<n;){var u=o[a++]=arguments[i];if("function"!=typeof u)throw new $a(X);!e&&r.prototype.thru&&"wrapper"==qn(u)&&(e=new r([],!0))}for(i=e?-1:n;++i<n;){u=o[i];var s=qn(u),c="wrapper"==s?jo(u):E;e=c&&er(c[0])&&c[1]==(B|I|R|U)&&!c[4].length&&1==c[9]?e[qn(c[0])].apply(e,c[3]):1==u.length&&er(u)?e[s]():e.thru(u)}return function(){var t=arguments,r=t[0];if(e&&1==t.length&&Cu(r)&&r.length>=q)return e.plant(r).value();for(var i=0,a=n?o[i].apply(this,t):r;++i<n;)a=o[i].call(this,a);return a}}}function kn(t,e){return function(n,r,i){return"function"==typeof r&&i===E&&Cu(n)?t(n,r):e(n,on(r,i,3))}}function Tn(t){return function(e,n,r){return"function"==typeof n&&r===E||(n=on(n,r,3)),t(e,n,ta)}}function En(t){return function(e,n,r){return"function"==typeof n&&r===E||(n=on(n,r,3)),t(e,n)}}function An(t){return function(e,n,r){var i={};return n=jn(n,r,3),Ne(e,function(e,r,a){var o=n(e,r,a);r=t?o:r,e=t?e:o,i[r]=e}),i}}function Cn(t){return function(e,n,r){return e=c(e),(t?e:"")+Ln(e,n,r)+(t?"":e)}}function Pn(t){var e=yi(function(n,r){var i=b(r,e.placeholder);return Un(n,t,E,r,i)});return e}function Nn(t,e){return function(n,r,i,a){var o=arguments.length<3;return"function"==typeof r&&a===E&&Cu(n)?t(n,r,i,o):We(n,jn(r,a,4),i,o,e)}}function In(t,e,n,r,i,a,o,u,s,c){function l(){for(var m=arguments.length,_=m,x=Fa(m);_--;)x[_]=arguments[_];if(r&&(x=sn(x,r,i)),a&&(x=cn(x,a,o)),p||v){var w=l.placeholder,M=b(x,w);if(m-=M.length,m<c){var S=u?te(u):E,k=wo(c-m,0),T=p?M:E,A=p?E:M,N=p?x:E,I=p?E:x;e|=p?R:O,e&=~(p?O:R),g||(e&=~(C|P));var L=[t,e,n,N,T,I,A,S,s,k],B=In.apply(E,L);return er(t)&&Yo(B,L),B.placeholder=w,B}}var U=f?n:this,D=d?U[t]:t;return u&&(x=sr(x,u)),h&&s<x.length&&(x.length=s),this&&this!==re&&this instanceof l&&(D=y||yn(t)),D.apply(U,x)}var h=e&B,f=e&C,d=e&P,p=e&I,g=e&N,v=e&L,y=d?E:yn(t);return l}function Ln(t,e,n){var r=t.length;if(e=+e,r>=e||!xo(e))return"";var i=e-r;return n=null==n?" ":n+"",va(n,vo(i/n.length)).slice(0,i)}function Rn(t,e,n,r){function i(){for(var e=-1,u=arguments.length,s=-1,c=r.length,l=Fa(c+u);++s<c;)l[s]=r[s];for(;u--;)l[s++]=arguments[++e];var h=this&&this!==re&&this instanceof i?o:t;return h.apply(a?n:this,l)}var a=e&C,o=yn(t);return i}function On(t){var e=Ha[t];return function(t,n){return n=n===E?0:+n||0,n?(n=so(10,n),e(t*n)/n):e(t)}}function Bn(t){return function(e,n,r,i){var a=jn(r);return null==r&&a===xe?rn(e,n,t):an(e,n,a(r,i,1),t)}}function Un(t,e,n,r,i,a,o,u){var s=e&P;if(!s&&"function"!=typeof t)throw new $a(X);var c=r?r.length:0;if(c||(e&=~(R|O),r=i=E),c-=i?i.length:0,e&O){var l=r,h=i;r=i=E}var f=s?E:jo(t),d=[t,e,n,r,i,l,h,a,o,u];if(f&&(ir(d,f),e=d[1],u=d[9]),d[9]=null==u?s?0:t.length:wo(u-c,0)||0,e==C)var p=pn(d[0],d[2]);else p=e!=R&&e!=(C|R)||d[4].length?In.apply(E,d):Rn.apply(E,d);var g=f?Fo:Yo;return g(p,d)}function Dn(t,e,n,r,i,a,o){var u=-1,s=t.length,c=e.length;if(s!=c&&!(i&&c>s))return!1;for(;++u<s;){var l=t[u],h=e[u],f=r?r(i?h:l,i?l:h,u):E;if(f!==E){if(f)continue;return!1}if(i){if(!fe(e,function(t){return l===t||n(l,t,r,i,a,o)}))return!1}else if(l!==h&&!n(l,h,r,i,a,o))return!1}return!0}function zn(t,e,n){switch(n){case $:case Z:return+t==+e;case Q:return t.name==e.name&&t.message==e.message;case tt:return t!=+t?e!=+e:t==+e;case nt:case it:return t==e+""}return!1}function Fn(t,e,n,r,i,a,o){var u=Fu(t),s=u.length,c=Fu(e),l=c.length;if(s!=l&&!i)return!1;for(var h=s;h--;){var f=u[h];if(!(i?f in e:to.call(e,f)))return!1;
  }for(var d=i;++h<s;){f=u[h];var p=t[f],g=e[f],v=r?r(i?g:p,i?p:g,f):E;if(!(v===E?n(p,g,r,i,a,o):v))return!1;d||(d="constructor"==f)}if(!d){var y=t.constructor,m=e.constructor;if(y!=m&&"constructor"in t&&"constructor"in e&&!("function"==typeof y&&y instanceof y&&"function"==typeof m&&m instanceof m))return!1}return!0}function jn(t,n,r){var i=e.callback||ka;return i=i===ka?xe:i,r?i(t,n,r):i}function qn(t){for(var e=t.name,n=Ro[e],r=n?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==t)return i.name}return e}function Yn(t,n,r){var i=e.indexOf||Sr;return i=i===Sr?u:i,t?i(t,n,r):i}function Hn(t){for(var e=ea(t),n=e.length;n--;)e[n][2]=rr(e[n][1]);return e}function Xn(t,e){var n=null==t?E:t[e];return Ui(n)?n:E}function Gn(t,e,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case"drop":t+=o;break;case"dropRight":e-=o;break;case"take":e=Mo(e,t+o);break;case"takeRight":t=wo(t,e-o)}}return{start:t,end:e}}function Wn(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&to.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function Vn(t){var e=t.constructor;return"function"==typeof e&&e instanceof e||(e=Ga),new e}function $n(t,e,n){var r=t.constructor;switch(e){case ot:return un(t);case $:case Z:return new r(+t);case ut:case st:case ct:case lt:case ht:case ft:case dt:case pt:case gt:var i=t.buffer;return new r(n?un(i):i,t.byteOffset,t.length);case tt:case it:return new r(t);case nt:var a=new r(t.source,Rt.exec(t));a.lastIndex=t.lastIndex}return a}function Zn(t,e,n){null==t||tr(e,t)||(e=fr(e),t=1==e.length?t:Re(t,Ve(e,0,-1)),e=Tr(e));var r=null==t?t:t[e];return null==r?E:r.apply(t,n)}function Qn(t){return null!=t&&nr(qo(t))}function Kn(t,e){return t="number"==typeof t||Ut.test(t)?+t:-1,e=null==e?Io:e,t>-1&&t%1==0&&t<e}function Jn(t,e,n){if(!Ri(n))return!1;var r=typeof e;if("number"==r?Qn(n)&&Kn(e,n.length):"string"==r&&e in n){var i=n[e];return t===t?t===i:i!==i}return!1}function tr(t,e){var n=typeof t;if("string"==n&&Et.test(t)||"number"==n)return!0;if(Cu(t))return!1;var r=!Tt.test(t);return r||null!=e&&t in hr(e)}function er(t){var n=qn(t);if(!(n in i.prototype))return!1;var r=e[n];if(t===r)return!0;var a=jo(r);return!!a&&t===a[0]}function nr(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Io}function rr(t){return t===t&&!Ri(t)}function ir(t,e){var n=t[1],r=e[1],i=n|r,a=i<B,o=r==B&&n==I||r==B&&n==U&&t[7].length<=e[8]||r==(B|U)&&n==I;if(!a&&!o)return t;r&C&&(t[2]=e[2],i|=n&C?0:N);var u=e[3];if(u){var s=t[3];t[3]=s?sn(s,u,e[4]):te(u),t[4]=s?b(t[3],G):te(e[4])}return u=e[5],u&&(s=t[5],t[5]=s?cn(s,u,e[6]):te(u),t[6]=s?b(t[5],G):te(e[6])),u=e[7],u&&(t[7]=te(u)),r&B&&(t[8]=null==t[8]?e[8]:Mo(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i,t}function ar(t,e){return t===E?e:Pu(t,e,ar)}function or(t,e){t=hr(t);for(var n=-1,r=e.length,i={};++n<r;){var a=e[n];a in t&&(i[a]=t[a])}return i}function ur(t,e){var n={};return Pe(t,function(t,r,i){e(t,r,i)&&(n[r]=t)}),n}function sr(t,e){for(var n=t.length,r=Mo(e.length,n),i=te(t);r--;){var a=e[r];t[r]=Kn(a,n)?i[a]:E}return t}function cr(t){for(var e=ta(t),n=e.length,r=n&&t.length,i=!!r&&nr(r)&&(Cu(t)||ki(t)),a=-1,o=[];++a<n;){var u=e[a];(i&&Kn(u,r)||to.call(t,u))&&o.push(u)}return o}function lr(t){return null==t?[]:Qn(t)?Ri(t)?t:Ga(t):aa(t)}function hr(t){return Ri(t)?t:Ga(t)}function fr(t){if(Cu(t))return t;var e=[];return c(t).replace(At,function(t,n,r,i){e.push(r?i.replace(It,"$1"):n||t)}),e}function dr(t){return t instanceof i?t.clone():new r(t.__wrapped__,t.__chain__,te(t.__actions__))}function pr(t,e,n){e=(n?Jn(t,e,n):null==e)?1:wo(mo(e)||1,1);for(var r=0,i=t?t.length:0,a=-1,o=Fa(vo(i/e));r<i;)o[++a]=Ve(t,r,r+=e);return o}function gr(t){for(var e=-1,n=t?t.length:0,r=-1,i=[];++e<n;){var a=t[e];a&&(i[++r]=a)}return i}function vr(t,e,n){var r=t?t.length:0;return r?((n?Jn(t,e,n):null==e)&&(e=1),Ve(t,e<0?0:e)):[]}function yr(t,e,n){var r=t?t.length:0;return r?((n?Jn(t,e,n):null==e)&&(e=1),e=r-(+e||0),Ve(t,0,e<0?0:e)):[]}function mr(t,e,n){return t&&t.length?en(t,jn(e,n,3),!0,!0):[]}function _r(t,e,n){return t&&t.length?en(t,jn(e,n,3),!0):[]}function xr(t,e,n,r){var i=t?t.length:0;return i?(n&&"number"!=typeof n&&Jn(t,e,n)&&(n=0,r=i),Te(t,e,n,r)):[]}function br(t){return t?t[0]:E}function wr(t,e,n){var r=t?t.length:0;return n&&Jn(t,e,n)&&(e=!1),r?Ce(t,e):[]}function Mr(t){var e=t?t.length:0;return e?Ce(t,!0):[]}function Sr(t,e,n){var r=t?t.length:0;if(!r)return-1;if("number"==typeof n)n=n<0?wo(r+n,0):n;else if(n){var i=rn(t,e);return i<r&&(e===e?e===t[i]:t[i]!==t[i])?i:-1}return u(t,e,n||0)}function kr(t){return yr(t,1)}function Tr(t){var e=t?t.length:0;return e?t[e-1]:E}function Er(t,e,n){var r=t?t.length:0;if(!r)return-1;var i=r;if("number"==typeof n)i=(n<0?wo(r+n,0):Mo(n||0,r-1))+1;else if(n){i=rn(t,e,!0)-1;var a=t[i];return(e===e?e===a:a!==a)?i:-1}if(e!==e)return m(t,i,!0);for(;i--;)if(t[i]===e)return i;return-1}function Ar(){var t=arguments,e=t[0];if(!e||!e.length)return e;for(var n=0,r=Yn(),i=t.length;++n<i;)for(var a=0,o=t[n];(a=r(e,o,a))>-1;)fo.call(e,a,1);return e}function Cr(t,e,n){var r=[];if(!t||!t.length)return r;var i=-1,a=[],o=t.length;for(e=jn(e,n,3);++i<o;){var u=t[i];e(u,i,t)&&(r.push(u),a.push(i))}return Xe(t,a),r}function Pr(t){return vr(t,1)}function Nr(t,e,n){var r=t?t.length:0;return r?(n&&"number"!=typeof n&&Jn(t,e,n)&&(e=0,n=r),Ve(t,e,n)):[]}function Ir(t,e,n){var r=t?t.length:0;return r?((n?Jn(t,e,n):null==e)&&(e=1),Ve(t,0,e<0?0:e)):[]}function Lr(t,e,n){var r=t?t.length:0;return r?((n?Jn(t,e,n):null==e)&&(e=1),e=r-(+e||0),Ve(t,e<0?0:e)):[]}function Rr(t,e,n){return t&&t.length?en(t,jn(e,n,3),!1,!0):[]}function Or(t,e,n){return t&&t.length?en(t,jn(e,n,3)):[]}function Br(t,e,n,r){var i=t?t.length:0;if(!i)return[];null!=e&&"boolean"!=typeof e&&(r=n,n=Jn(t,e,r)?E:e,e=!1);var a=jn();return null==n&&a===xe||(n=a(n,r,3)),e&&Yn()==u?w(t,n):Je(t,n)}function Ur(t){if(!t||!t.length)return[];var e=-1,n=0;t=ue(t,function(t){if(Qn(t))return n=wo(t.length,n),!0});for(var r=Fa(n);++e<n;)r[e]=se(t,Ye(e));return r}function Dr(t,e,n){var r=t?t.length:0;if(!r)return[];var i=Ur(t);return null==e?i:(e=on(e,n,4),se(i,function(t){return le(t,e,E,!0)}))}function zr(){for(var t=-1,e=arguments.length;++t<e;){var n=arguments[t];if(Qn(n))var r=r?ce(Me(r,n),Me(n,r)):n}return r?Je(r):[]}function Fr(t,e){var n=-1,r=t?t.length:0,i={};for(!r||e||Cu(t[0])||(e=[]);++n<r;){var a=t[n];e?i[a]=e[n]:a&&(i[a[0]]=a[1])}return i}function jr(t){var n=e(t);return n.__chain__=!0,n}function qr(t,e,n){return e.call(n,t),t}function Yr(t,e,n){return e.call(n,t)}function Hr(){return jr(this)}function Xr(){return new r(this.value(),this.__chain__)}function Gr(t){for(var e,r=this;r instanceof n;){var i=dr(r);e?a.__wrapped__=i:e=i;var a=i;r=r.__wrapped__}return a.__wrapped__=t,e}function Wr(){var t=this.__wrapped__,e=function(t){return n&&n.__dir__<0?t:t.reverse()};if(t instanceof i){var n=t;return this.__actions__.length&&(n=new i(this)),n=n.reverse(),n.__actions__.push({func:Yr,args:[e],thisArg:E}),new r(n,this.__chain__)}return this.thru(e)}function Vr(){return this.value()+""}function $r(){return nn(this.__wrapped__,this.__actions__)}function Zr(t,e,n){var r=Cu(t)?ae:Se;return n&&Jn(t,e,n)&&(e=E),"function"==typeof e&&n===E||(e=jn(e,n,3)),r(t,e)}function Qr(t,e,n){var r=Cu(t)?ue:Ee;return e=jn(e,n,3),r(t,e)}function Kr(t,e){return iu(t,ze(e))}function Jr(t,e,n,r){var i=t?qo(t):0;return nr(i)||(t=aa(t),i=t.length),n="number"!=typeof n||r&&Jn(e,n,r)?0:n<0?wo(i+n,0):n||0,"string"==typeof t||!Cu(t)&&qi(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Yn(t,e,n)>-1}function ti(t,e,n){var r=Cu(t)?se:De;return e=jn(e,n,3),r(t,e)}function ei(t,e){return ti(t,La(e))}function ni(t,e,n){var r=Cu(t)?ue:Ee;return e=jn(e,n,3),r(t,function(t,n,r){return!e(t,n,r)})}function ri(t,e,n){if(n?Jn(t,e,n):null==e){t=lr(t);var r=t.length;return r>0?t[Ge(0,r-1)]:E}var i=-1,a=Wi(t),r=a.length,o=r-1;for(e=Mo(e<0?0:+e||0,r);++i<e;){var u=Ge(i,o),s=a[u];a[u]=a[i],a[i]=s}return a.length=e,a}function ii(t){return ri(t,Ao)}function ai(t){var e=t?qo(t):0;return nr(e)?e:Fu(t).length}function oi(t,e,n){var r=Cu(t)?fe:$e;return n&&Jn(t,e,n)&&(e=E),"function"==typeof e&&n===E||(e=jn(e,n,3)),r(t,e)}function ui(t,e,n){if(null==t)return[];n&&Jn(t,e,n)&&(e=E);var r=-1;e=jn(e,n,3);var i=De(t,function(t,n,i){return{criteria:e(t,n,i),index:++r,value:t}});return Ze(i,f)}function si(t,e,n,r){return null==t?[]:(r&&Jn(e,n,r)&&(n=E),Cu(e)||(e=null==e?[]:[e]),Cu(n)||(n=null==n?[]:[n]),Qe(t,e,n))}function ci(t,e){return Qr(t,ze(e))}function li(t,e){if("function"!=typeof e){if("function"!=typeof t)throw new $a(X);var n=t;t=e,e=n}return t=xo(t=+t)?t:0,function(){if(--t<1)return e.apply(this,arguments)}}function hi(t,e,n){return n&&Jn(t,e,n)&&(e=E),e=t&&null==e?t.length:wo(+e||0,0),Un(t,B,E,E,E,E,e)}function fi(t,e){var n;if("function"!=typeof e){if("function"!=typeof t)throw new $a(X);var r=t;t=e,e=r}return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=E),n}}function di(t,e,n){function r(){d&&oo(d),c&&oo(c),g=0,c=d=p=E}function i(e,n){n&&oo(n),c=d=p=E,e&&(g=gu(),l=t.apply(f,s),d||c||(s=f=E))}function a(){var t=e-(gu()-h);t<=0||t>e?i(p,c):d=ho(a,t)}function o(){i(y,d)}function u(){if(s=arguments,h=gu(),f=this,p=y&&(d||!m),v===!1)var n=m&&!d;else{c||m||(g=h);var r=v-(h-g),i=r<=0||r>v;i?(c&&(c=oo(c)),g=h,l=t.apply(f,s)):c||(c=ho(o,r))}return i&&d?d=oo(d):d||e===v||(d=ho(a,e)),n&&(i=!0,l=t.apply(f,s)),!i||d||c||(s=f=E),l}var s,c,l,h,f,d,p,g=0,v=!1,y=!0;if("function"!=typeof t)throw new $a(X);if(e=e<0?0:+e||0,n===!0){var m=!0;y=!1}else Ri(n)&&(m=!!n.leading,v="maxWait"in n&&wo(+n.maxWait||0,e),y="trailing"in n?!!n.trailing:y);return u.cancel=r,u}function pi(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new $a(X);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new pi.Cache,n}function gi(t){if("function"!=typeof t)throw new $a(X);return function(){return!t.apply(this,arguments)}}function vi(t){return fi(2,t)}function yi(t,e){if("function"!=typeof t)throw new $a(X);return e=wo(e===E?t.length-1:+e||0,0),function(){for(var n=arguments,r=-1,i=wo(n.length-e,0),a=Fa(i);++r<i;)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 o=Fa(e+1);for(r=-1;++r<e;)o[r]=n[r];return o[e]=a,t.apply(this,o)}}function mi(t){if("function"!=typeof t)throw new $a(X);return function(e){return t.apply(this,e)}}function _i(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new $a(X);return n===!1?r=!1:Ri(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),di(t,e,{leading:r,maxWait:+e,trailing:i})}function xi(t,e){return e=null==e?Ea:e,Un(e,R,E,[t],[])}function bi(t,e,n,r){return e&&"boolean"!=typeof e&&Jn(t,e,n)?e=!1:"function"==typeof e&&(r=n,n=e,e=!1),"function"==typeof n?be(t,e,on(n,r,1)):be(t,e)}function wi(t,e,n){return"function"==typeof e?be(t,!0,on(e,n,1)):be(t,!0)}function Mi(t,e){return t>e}function Si(t,e){return t>=e}function ki(t){return _(t)&&Qn(t)&&to.call(t,"callee")&&!co.call(t,"callee")}function Ti(t){return t===!0||t===!1||_(t)&&no.call(t)==$}function Ei(t){return _(t)&&no.call(t)==Z}function Ai(t){return!!t&&1===t.nodeType&&_(t)&&!Fi(t)}function Ci(t){return null==t||(Qn(t)&&(Cu(t)||qi(t)||ki(t)||_(t)&&Li(t.splice))?!t.length:!Fu(t).length)}function Pi(t,e,n,r){n="function"==typeof n?on(n,r,3):E;var i=n?n(t,e):E;return i===E?Oe(t,e,n):!!i}function Ni(t){return _(t)&&"string"==typeof t.message&&no.call(t)==Q}function Ii(t){return"number"==typeof t&&xo(t)}function Li(t){return Ri(t)&&no.call(t)==K}function Ri(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Oi(t,e,n,r){return n="function"==typeof n?on(n,r,3):E,Ue(t,Hn(e),n)}function Bi(t){return zi(t)&&t!=+t}function Ui(t){return null!=t&&(Li(t)?io.test(Ja.call(t)):_(t)&&Bt.test(t))}function Di(t){return null===t}function zi(t){return"number"==typeof t||_(t)&&no.call(t)==tt}function Fi(t){var e;if(!_(t)||no.call(t)!=et||ki(t)||!to.call(t,"constructor")&&(e=t.constructor,"function"==typeof e&&!(e instanceof e)))return!1;var n;return Pe(t,function(t,e){n=e}),n===E||to.call(t,n)}function ji(t){return Ri(t)&&no.call(t)==nt}function qi(t){return"string"==typeof t||_(t)&&no.call(t)==it}function Yi(t){return _(t)&&nr(t.length)&&!!Ht[no.call(t)]}function Hi(t){return t===E}function Xi(t,e){return t<e}function Gi(t,e){return t<=e}function Wi(t){var e=t?qo(t):0;return nr(e)?e?te(t):[]:aa(t)}function Vi(t){return _e(t,ta(t))}function $i(t,e,n){var r=Oo(t);return n&&Jn(t,e,n)&&(e=E),e?ye(r,e):r}function Zi(t){return Le(t,ta(t))}function Qi(t,e,n){var r=null==t?E:Re(t,fr(e),e+"");return r===E?n:r}function Ki(t,e){if(null==t)return!1;var n=to.call(t,e);if(!n&&!tr(e)){if(e=fr(e),t=1==e.length?t:Re(t,Ve(e,0,-1)),null==t)return!1;e=Tr(e),n=to.call(t,e)}return n||nr(t.length)&&Kn(e,t.length)&&(Cu(t)||ki(t))}function Ji(t,e,n){n&&Jn(t,e,n)&&(e=E);for(var r=-1,i=Fu(t),a=i.length,o={};++r<a;){var u=i[r],s=t[u];e?to.call(o,s)?o[s].push(u):o[s]=[u]:o[s]=u}return o}function ta(t){if(null==t)return[];Ri(t)||(t=Ga(t));var e=t.length;e=e&&nr(e)&&(Cu(t)||ki(t))&&e||0;for(var n=t.constructor,r=-1,i="function"==typeof n&&n.prototype===t,a=Fa(e),o=e>0;++r<e;)a[r]=r+"";for(var u in t)o&&Kn(u,e)||"constructor"==u&&(i||!to.call(t,u))||a.push(u);return a}function ea(t){t=hr(t);for(var e=-1,n=Fu(t),r=n.length,i=Fa(r);++e<r;){var a=n[e];i[e]=[a,t[a]]}return i}function na(t,e,n){var r=null==t?E:t[e];return r===E&&(null==t||tr(e,t)||(e=fr(e),t=1==e.length?t:Re(t,Ve(e,0,-1)),r=null==t?E:t[Tr(e)]),r=r===E?n:r),Li(r)?r.call(t):r}function ra(t,e,n){if(null==t)return t;var r=e+"";e=null!=t[r]||tr(e,t)?[r]:fr(e);for(var i=-1,a=e.length,o=a-1,u=t;null!=u&&++i<a;){var s=e[i];Ri(u)&&(i==o?u[s]=n:null==u[s]&&(u[s]=Kn(e[i+1])?[]:{})),u=u[s]}return t}function ia(t,e,n,r){var i=Cu(t)||Yi(t);if(e=jn(e,r,4),null==n)if(i||Ri(t)){var a=t.constructor;n=i?Cu(t)?new a:[]:Oo(Li(a)?a.prototype:E)}else n={};return(i?ee:Ne)(t,function(t,r,i){return e(n,t,r,i)}),n}function aa(t){return tn(t,Fu(t))}function oa(t){return tn(t,ta(t))}function ua(t,e,n){return e=+e||0,n===E?(n=e,e=0):n=+n||0,t>=Mo(e,n)&&t<wo(e,n)}function sa(t,e,n){n&&Jn(t,e,n)&&(e=n=E);var r=null==t,i=null==e;if(null==n&&(i&&"boolean"==typeof t?(n=t,t=1):"boolean"==typeof e&&(n=e,i=!0)),r&&i&&(e=1,i=!1),t=+t||0,i?(e=t,t=0):e=+e||0,n||t%1||e%1){var a=To();return Mo(t+a*(e-t+uo("1e-"+((a+"").length-1))),e)}return Ge(t,e)}function ca(t){return t=c(t),t&&t.charAt(0).toUpperCase()+t.slice(1)}function la(t){return t=c(t),t&&t.replace(Dt,p).replace(Nt,"")}function ha(t,e,n){t=c(t),e+="";var r=t.length;return n=n===E?r:Mo(n<0?0:+n||0,r),n-=e.length,n>=0&&t.indexOf(e,n)==n}function fa(t){return t=c(t),t&&wt.test(t)?t.replace(xt,g):t}function da(t){return t=c(t),t&&Pt.test(t)?t.replace(Ct,v):t||"(?:)"}function pa(t,e,n){t=c(t),e=+e;var r=t.length;if(r>=e||!xo(e))return t;var i=(e-r)/2,a=mo(i),o=vo(i);return n=Ln("",o,n),n.slice(0,a)+t+n}function ga(t,e,n){return(n?Jn(t,e,n):null==e)?e=0:e&&(e=+e),t=_a(t),ko(t,e||(Ot.test(t)?16:10))}function va(t,e){var n="";if(t=c(t),e=+e,e<1||!t||!xo(e))return n;do e%2&&(n+=t),e=mo(e/2),t+=t;while(e);return n}function ya(t,e,n){return t=c(t),n=null==n?0:Mo(n<0?0:+n||0,t.length),t.lastIndexOf(e,n)==n}function ma(t,n,r){var i=e.templateSettings;r&&Jn(t,n,r)&&(n=r=E),t=c(t),n=ve(ye({},r||n),i,ge);var a,o,u=ve(ye({},n.imports),i.imports,ge),s=Fu(u),l=tn(u,s),h=0,f=n.interpolate||zt,d="__p += '",p=Wa((n.escape||zt).source+"|"+f.source+"|"+(f===kt?Lt:zt).source+"|"+(n.evaluate||zt).source+"|$","g"),g="//# sourceURL="+("sourceURL"in n?n.sourceURL:"lodash.templateSources["+ ++Yt+"]")+"\n";t.replace(p,function(e,n,r,i,u,s){return r||(r=i),d+=t.slice(h,s).replace(Ft,y),n&&(a=!0,d+="' +\n__e("+n+") +\n'"),u&&(o=!0,d+="';\n"+u+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),h=s+e.length,e}),d+="';\n";var v=n.variable;v||(d="with (obj) {\n"+d+"\n}\n"),d=(o?d.replace(vt,""):d).replace(yt,"$1").replace(mt,"$1;"),d="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=Qu(function(){return Ya(s,g+"return "+d).apply(E,l)});if(m.source=d,Ni(m))throw m;return m}function _a(t,e,n){var r=t;return(t=c(t))?(n?Jn(r,e,n):null==e)?t.slice(M(t),S(t)+1):(e+="",t.slice(l(t,e),h(t,e)+1)):t}function xa(t,e,n){var r=t;return t=c(t),t?(n?Jn(r,e,n):null==e)?t.slice(M(t)):t.slice(l(t,e+"")):t}function ba(t,e,n){var r=t;return t=c(t),t?(n?Jn(r,e,n):null==e)?t.slice(0,S(t)+1):t.slice(0,h(t,e+"")+1):t}function wa(t,e,n){n&&Jn(t,e,n)&&(e=E);var r=D,i=z;if(null!=e)if(Ri(e)){var a="separator"in e?e.separator:a;r="length"in e?+e.length||0:r,i="omission"in e?c(e.omission):i}else r=+e||0;if(t=c(t),r>=t.length)return t;var o=r-i.length;if(o<1)return i;var u=t.slice(0,o);if(null==a)return u+i;if(ji(a)){if(t.slice(o).search(a)){var s,l,h=t.slice(0,o);for(a.global||(a=Wa(a.source,(Rt.exec(a)||"")+"g")),a.lastIndex=0;s=a.exec(h);)l=s.index;u=u.slice(0,null==l?o:l)}}else if(t.indexOf(a,o)!=o){var f=u.lastIndexOf(a);f>-1&&(u=u.slice(0,f))}return u+i}function Ma(t){return t=c(t),t&&bt.test(t)?t.replace(_t,k):t}function Sa(t,e,n){return n&&Jn(t,e,n)&&(e=E),t=c(t),t.match(e||jt)||[]}function ka(t,e,n){return n&&Jn(t,e,n)&&(e=E),_(t)?Aa(t):xe(t,e)}function Ta(t){return function(){return t}}function Ea(t){return t}function Aa(t){return ze(be(t,!0))}function Ca(t,e){return Fe(t,be(e,!0))}function Pa(t,e,n){if(null==n){var r=Ri(e),i=r?Fu(e):E,a=i&&i.length?Le(e,i):E;(a?a.length:r)||(a=!1,n=e,e=t,t=this)}a||(a=Le(e,Fu(e)));var o=!0,u=-1,s=Li(t),c=a.length;n===!1?o=!1:Ri(n)&&"chain"in n&&(o=n.chain);for(;++u<c;){var l=a[u],h=e[l];t[l]=h,s&&(t.prototype[l]=function(e){return function(){var n=this.__chain__;if(o||n){var r=t(this.__wrapped__),i=r.__actions__=te(this.__actions__);return i.push({func:e,args:arguments,thisArg:t}),r.__chain__=n,r}return e.apply(t,ce([this.value()],arguments))}}(h))}return t}function Na(){return re._=ro,this}function Ia(){}function La(t){return tr(t)?Ye(t):He(t)}function Ra(t){return function(e){return Re(t,fr(e),e+"")}}function Oa(t,e,n){n&&Jn(t,e,n)&&(e=n=E),t=+t||0,n=null==n?1:+n||0,null==e?(e=t,t=0):e=+e||0;for(var r=-1,i=wo(vo((e-t)/(n||1)),0),a=Fa(i);++r<i;)a[r]=t,t+=n;return a}function Ba(t,e,n){if(t=mo(t),t<1||!xo(t))return[];var r=-1,i=Fa(Mo(t,Co));for(e=on(e,n,1);++r<t;)r<Co?i[r]=e(r):e(r);return i}function Ua(t){var e=++eo;return c(t)+e}function Da(t,e){return(+t||0)+(+e||0)}function za(t,e,n){return n&&Jn(t,e,n)&&(e=E),e=jn(e,n,3),1==e.length?de(Cu(t)?t:lr(t),e):Ke(t,e)}t=t?ie.defaults(re.Object(),t,ie.pick(re,qt)):re;var Fa=t.Array,ja=t.Date,qa=t.Error,Ya=t.Function,Ha=t.Math,Xa=t.Number,Ga=t.Object,Wa=t.RegExp,Va=t.String,$a=t.TypeError,Za=Fa.prototype,Qa=Ga.prototype,Ka=Va.prototype,Ja=Ya.prototype.toString,to=Qa.hasOwnProperty,eo=0,no=Qa.toString,ro=re._,io=Wa("^"+Ja.call(to).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ao=t.ArrayBuffer,oo=t.clearTimeout,uo=t.parseFloat,so=Ha.pow,co=Qa.propertyIsEnumerable,lo=Xn(t,"Set"),ho=t.setTimeout,fo=Za.splice,po=t.Uint8Array,go=Xn(t,"WeakMap"),vo=Ha.ceil,yo=Xn(Ga,"create"),mo=Ha.floor,_o=Xn(Fa,"isArray"),xo=t.isFinite,bo=Xn(Ga,"keys"),wo=Ha.max,Mo=Ha.min,So=Xn(ja,"now"),ko=t.parseInt,To=Ha.random,Eo=Xa.NEGATIVE_INFINITY,Ao=Xa.POSITIVE_INFINITY,Co=4294967295,Po=Co-1,No=Co>>>1,Io=9007199254740991,Lo=go&&new go,Ro={};e.support={};e.templateSettings={escape:Mt,evaluate:St,interpolate:kt,variable:"",imports:{_:e}};var Oo=function(){function t(){}return function(e){if(Ri(e)){t.prototype=e;var n=new t;t.prototype=E}return n||{}}}(),Bo=fn(Ne),Uo=fn(Ie,!0),Do=dn(),zo=dn(!0),Fo=Lo?function(t,e){return Lo.set(t,e),t}:Ea,jo=Lo?function(t){return Lo.get(t)}:Ia,qo=Ye("length"),Yo=function(){var t=0,e=0;return function(n,r){var i=gu(),a=j-(i-e);if(e=i,a>0){if(++t>=F)return n}else t=0;return Fo(n,r)}}(),Ho=yi(function(t,e){return _(t)&&Qn(t)?Me(t,Ce(e,!1,!0)):[]}),Xo=wn(),Go=wn(!0),Wo=yi(function(t){for(var e=t.length,n=e,r=Fa(h),i=Yn(),a=i==u,o=[];n--;){var s=t[n]=Qn(s=t[n])?s:[];r[n]=a&&s.length>=120?gn(n&&s):null}var c=t[0],l=-1,h=c?c.length:0,f=r[0];t:for(;++l<h;)if(s=c[l],(f?Qt(f,s):i(o,s,0))<0){for(var n=e;--n;){var d=r[n];if((d?Qt(d,s):i(t[n],s,0))<0)continue t}f&&f.push(s),o.push(s)}return o}),Vo=yi(function(t,e){e=Ce(e);var n=me(t,e);return Xe(t,e.sort(a)),n}),$o=Bn(),Zo=Bn(!0),Qo=yi(function(t){return Je(Ce(t,!1,!0))}),Ko=yi(function(t,e){return Qn(t)?Me(t,e):[]}),Jo=yi(Ur),tu=yi(function(t){var e=t.length,n=e>2?t[e-2]:E,r=e>1?t[e-1]:E;return e>2&&"function"==typeof n?e-=2:(n=e>1&&"function"==typeof r?(--e,r):E,r=E),t.length=e,Dr(t,n,r)}),eu=yi(function(t){return t=Ce(t),this.thru(function(e){return Jt(Cu(e)?e:[hr(e)],t)})}),nu=yi(function(t,e){return me(t,Ce(e))}),ru=ln(function(t,e,n){to.call(t,n)?++t[n]:t[n]=1}),iu=bn(Bo),au=bn(Uo,!0),ou=kn(ee,Bo),uu=kn(ne,Uo),su=ln(function(t,e,n){to.call(t,n)?t[n].push(e):t[n]=[e]}),cu=ln(function(t,e,n){t[n]=e}),lu=yi(function(t,e,n){var r=-1,i="function"==typeof e,a=tr(e),o=Qn(t)?Fa(t.length):[];return Bo(t,function(t){var u=i?e:a&&null!=t?t[e]:E;o[++r]=u?u.apply(t,n):Zn(t,e,n)}),o}),hu=ln(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),fu=Nn(le,Bo),du=Nn(he,Uo),pu=yi(function(t,e){if(null==t)return[];var n=e[2];return n&&Jn(e[0],e[1],n)&&(e.length=1),Qe(t,Ce(e),[])}),gu=So||function(){return(new ja).getTime()},vu=yi(function(t,e,n){var r=C;if(n.length){var i=b(n,vu.placeholder);r|=R}return Un(t,r,e,n,i)}),yu=yi(function(t,e){e=e.length?Ce(e):Zi(t);for(var n=-1,r=e.length;++n<r;){var i=e[n];t[i]=Un(t[i],C,t)}return t}),mu=yi(function(t,e,n){var r=C|P;if(n.length){var i=b(n,mu.placeholder);r|=R}return Un(e,r,t,n,i)}),_u=mn(I),xu=mn(L),bu=yi(function(t,e){return we(t,1,e)}),wu=yi(function(t,e,n){return we(t,e,n)}),Mu=Sn(),Su=Sn(!0),ku=yi(function(t,e){if(e=Ce(e),"function"!=typeof t||!ae(e,s))throw new $a(X);var n=e.length;return yi(function(r){for(var i=Mo(r.length,n);i--;)r[i]=e[i](r[i]);return t.apply(this,r)})}),Tu=Pn(R),Eu=Pn(O),Au=yi(function(t,e){return Un(t,U,E,E,E,Ce(e))}),Cu=_o||function(t){return _(t)&&nr(t.length)&&no.call(t)==V},Pu=hn(je),Nu=hn(function(t,e,n){return n?ve(t,e,n):ye(t,e)}),Iu=_n(Nu,pe),Lu=_n(Pu,ar),Ru=Mn(Ne),Ou=Mn(Ie),Bu=Tn(Do),Uu=Tn(zo),Du=En(Ne),zu=En(Ie),Fu=bo?function(t){var e=null==t?E:t.constructor;return"function"==typeof e&&e.prototype===t||"function"!=typeof t&&Qn(t)?cr(t):Ri(t)?bo(t):[]}:cr,ju=An(!0),qu=An(),Yu=yi(function(t,e){if(null==t)return{};if("function"!=typeof e[0]){var e=se(Ce(e),Va);return or(t,Me(ta(t),e))}var n=on(e[0],e[1],3);return ur(t,function(t,e,r){return!n(t,e,r)})}),Hu=yi(function(t,e){return null==t?{}:"function"==typeof e[0]?ur(t,on(e[0],e[1],3)):or(t,Ce(e))}),Xu=vn(function(t,e,n){return e=e.toLowerCase(),t+(n?e.charAt(0).toUpperCase()+e.slice(1):e)}),Gu=vn(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Wu=Cn(),Vu=Cn(!0),$u=vn(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Zu=vn(function(t,e,n){return t+(n?" ":"")+(e.charAt(0).toUpperCase()+e.slice(1))}),Qu=yi(function(t,e){try{return t.apply(E,e)}catch(t){return Ni(t)?t:new qa(t)}}),Ku=yi(function(t,e){return function(n){return Zn(n,t,e)}}),Ju=yi(function(t,e){return function(n){return Zn(t,n,e)}}),ts=On("ceil"),es=On("floor"),ns=xn(Mi,Eo),rs=xn(Xi,Ao),is=On("round");return e.prototype=n.prototype,r.prototype=Oo(n.prototype),r.prototype.constructor=r,i.prototype=Oo(n.prototype),i.prototype.constructor=i,at.prototype.delete=Gt,at.prototype.get=Wt,at.prototype.has=Vt,at.prototype.set=$t,Zt.prototype.push=Kt,pi.Cache=at,e.after=li,e.ary=hi,e.assign=Nu,e.at=nu,e.before=fi,e.bind=vu,e.bindAll=yu,e.bindKey=mu,e.callback=ka,e.chain=jr,e.chunk=pr,e.compact=gr,e.constant=Ta,e.countBy=ru,e.create=$i,e.curry=_u,e.curryRight=xu,e.debounce=di,e.defaults=Iu,e.defaultsDeep=Lu,e.defer=bu,e.delay=wu,e.difference=Ho,e.drop=vr,e.dropRight=yr,e.dropRightWhile=mr,e.dropWhile=_r,e.fill=xr,e.filter=Qr,e.flatten=wr,e.flattenDeep=Mr,e.flow=Mu,e.flowRight=Su,e.forEach=ou,e.forEachRight=uu,e.forIn=Bu,e.forInRight=Uu,e.forOwn=Du,e.forOwnRight=zu,e.functions=Zi,e.groupBy=su,e.indexBy=cu,e.initial=kr,e.intersection=Wo,e.invert=Ji,e.invoke=lu,e.keys=Fu,e.keysIn=ta,e.map=ti,e.mapKeys=ju,e.mapValues=qu,e.matches=Aa,e.matchesProperty=Ca,e.memoize=pi,e.merge=Pu,e.method=Ku,e.methodOf=Ju,e.mixin=Pa,e.modArgs=ku,e.negate=gi,e.omit=Yu,e.once=vi,e.pairs=ea,e.partial=Tu,e.partialRight=Eu,e.partition=hu,e.pick=Hu,e.pluck=ei,e.property=La,e.propertyOf=Ra,e.pull=Ar,e.pullAt=Vo,e.range=Oa,e.rearg=Au,e.reject=ni,e.remove=Cr,e.rest=Pr,e.restParam=yi,e.set=ra,e.shuffle=ii,e.slice=Nr,e.sortBy=ui,e.sortByAll=pu,e.sortByOrder=si,e.spread=mi,e.take=Ir,e.takeRight=Lr,e.takeRightWhile=Rr,e.takeWhile=Or,e.tap=qr,e.throttle=_i,e.thru=Yr,e.times=Ba,e.toArray=Wi,e.toPlainObject=Vi,e.transform=ia,e.union=Qo,e.uniq=Br,e.unzip=Ur,e.unzipWith=Dr,e.values=aa,e.valuesIn=oa,e.where=ci,e.without=Ko,e.wrap=xi,e.xor=zr,e.zip=Jo,e.zipObject=Fr,e.zipWith=tu,e.backflow=Su,e.collect=ti,e.compose=Su,e.each=ou,e.eachRight=uu,e.extend=Nu,e.iteratee=ka,e.methods=Zi,e.object=Fr,e.select=Qr,e.tail=Pr,e.unique=Br,Pa(e,e),e.add=Da,e.attempt=Qu,e.camelCase=Xu,e.capitalize=ca,e.ceil=ts,e.clone=bi,e.cloneDeep=wi,e.deburr=la,e.endsWith=ha,e.escape=fa,e.escapeRegExp=da,e.every=Zr,e.find=iu,e.findIndex=Xo,e.findKey=Ru,e.findLast=au,e.findLastIndex=Go,e.findLastKey=Ou,e.findWhere=Kr,e.first=br,e.floor=es,e.get=Qi,e.gt=Mi,e.gte=Si,e.has=Ki,e.identity=Ea,e.includes=Jr,e.indexOf=Sr,e.inRange=ua,e.isArguments=ki,e.isArray=Cu,e.isBoolean=Ti,e.isDate=Ei,e.isElement=Ai,e.isEmpty=Ci,e.isEqual=Pi,e.isError=Ni,e.isFinite=Ii,e.isFunction=Li,e.isMatch=Oi,e.isNaN=Bi,e.isNative=Ui,e.isNull=Di,e.isNumber=zi,e.isObject=Ri,e.isPlainObject=Fi,e.isRegExp=ji,e.isString=qi,e.isTypedArray=Yi,e.isUndefined=Hi,e.kebabCase=Gu,e.last=Tr,e.lastIndexOf=Er,e.lt=Xi,e.lte=Gi,e.max=ns,e.min=rs,e.noConflict=Na,e.noop=Ia,e.now=gu,e.pad=pa,e.padLeft=Wu,e.padRight=Vu,e.parseInt=ga,e.random=sa,e.reduce=fu,e.reduceRight=du,e.repeat=va,e.result=na,e.round=is,e.runInContext=T,e.size=ai,e.snakeCase=$u,e.some=oi,e.sortedIndex=$o,e.sortedLastIndex=Zo,e.startCase=Zu,e.startsWith=ya,e.sum=za,e.template=ma,e.trim=_a,e.trimLeft=xa,e.trimRight=ba,e.trunc=wa,e.unescape=Ma,e.uniqueId=Ua,e.words=Sa,e.all=Zr,e.any=oi,e.contains=Jr,e.eq=Pi,e.detect=iu,e.foldl=fu,e.foldr=du,e.head=br,e.include=Jr,e.inject=fu,Pa(e,function(){var t={};return Ne(e,function(n,r){e.prototype[r]||(t[r]=n)}),t}(),!1),e.sample=ri,e.prototype.sample=function(t){return this.__chain__||null!=t?this.thru(function(e){return ri(e,t)}):ri(this.value())},e.VERSION=A,ee(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){e[t].placeholder=e}),ee(["drop","take"],function(t,e){i.prototype[t]=function(n){var r=this.__filtered__;if(r&&!e)return new i(this);n=null==n?1:wo(mo(n)||0,0);var a=this.clone();return r?a.__takeCount__=Mo(a.__takeCount__,n):a.__views__.push({size:n,type:t+(a.__dir__<0?"Right":"")}),a},i.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),ee(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n!=H;i.prototype[t]=function(t,e){var i=this.clone();return i.__iteratees__.push({iteratee:jn(t,e,1),type:n}),i.__filtered__=i.__filtered__||r,i}}),ee(["first","last"],function(t,e){var n="take"+(e?"Right":"");i.prototype[t]=function(){return this[n](1).value()[0]}}),ee(["initial","rest"],function(t,e){var n="drop"+(e?"":"Right");i.prototype[t]=function(){return this.__filtered__?new i(this):this[n](1)}}),ee(["pluck","where"],function(t,e){var n=e?"filter":"map",r=e?ze:La;i.prototype[t]=function(t){return this[n](r(t))}}),i.prototype.compact=function(){return this.filter(Ea)},i.prototype.reject=function(t,e){return t=jn(t,e,1),this.filter(function(e){return!t(e)})},i.prototype.slice=function(t,e){t=null==t?0:+t||0;var n=this;return n.__filtered__&&(t>0||e<0)?new i(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==E&&(e=+e||0,n=e<0?n.dropRight(-e):n.take(e-t)),n)},i.prototype.takeRightWhile=function(t,e){return this.reverse().takeWhile(t,e).reverse()},i.prototype.toArray=function(){return this.take(Ao)},Ne(i.prototype,function(t,n){var a=/^(?:filter|map|reject)|While$/.test(n),o=/^(?:first|last)$/.test(n),u=e[o?"take"+("last"==n?"Right":""):n];u&&(e.prototype[n]=function(){var e=o?[1]:arguments,n=this.__chain__,s=this.__wrapped__,c=!!this.__actions__.length,l=s instanceof i,h=e[0],f=l||Cu(s);f&&a&&"function"==typeof h&&1!=h.length&&(l=f=!1);var d=function(t){return o&&n?u(t,1)[0]:u.apply(E,ce([t],e))},p={func:Yr,args:[d],thisArg:E},g=l&&!c;if(o&&!n)return g?(s=s.clone(),s.__actions__.push(p),t.call(s)):u.call(E,this.value())[0];if(!o&&f){s=g?s:new i(this);var v=t.apply(s,e);return v.__actions__.push(p),new r(v,n)}return this.thru(d)})}),ee(["join","pop","push","replace","shift","sort","splice","split","unshift"],function(t){var n=(/^(?:replace|split)$/.test(t)?Ka:Za)[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:join|pop|replace|shift)$/.test(t);e.prototype[t]=function(){var t=arguments;return i&&!this.__chain__?n.apply(this.value(),t):this[r](function(e){return n.apply(e,t)})}}),Ne(i.prototype,function(t,n){var r=e[n];if(r){var i=r.name,a=Ro[i]||(Ro[i]=[]);a.push({name:n,func:r})}}),Ro[In(E,P).name]=[{name:"wrapper",func:E}],i.prototype.clone=x,i.prototype.reverse=J,i.prototype.value=rt,e.prototype.chain=Hr,e.prototype.commit=Xr,e.prototype.concat=eu,e.prototype.plant=Gr,e.prototype.reverse=Wr,e.prototype.toString=Vr,e.prototype.run=e.prototype.toJSON=e.prototype.valueOf=e.prototype.value=$r,e.prototype.collect=e.prototype.map,e.prototype.head=e.prototype.first,e.prototype.select=e.prototype.filter,e.prototype.tail=e.prototype.rest,e}var E,A="3.10.1",C=1,P=2,N=4,I=8,L=16,R=32,O=64,B=128,U=256,D=30,z="...",F=150,j=16,q=200,Y=1,H=2,X="Expected a function",G="__lodash_placeholder__",W="[object Arguments]",V="[object Array]",$="[object Boolean]",Z="[object Date]",Q="[object Error]",K="[object Function]",J="[object Map]",tt="[object Number]",et="[object Object]",nt="[object RegExp]",rt="[object Set]",it="[object String]",at="[object WeakMap]",ot="[object ArrayBuffer]",ut="[object Float32Array]",st="[object Float64Array]",ct="[object Int8Array]",lt="[object Int16Array]",ht="[object Int32Array]",ft="[object Uint8Array]",dt="[object Uint8ClampedArray]",pt="[object Uint16Array]",gt="[object Uint32Array]",vt=/\b__p \+= '';/g,yt=/\b(__p \+=) '' \+/g,mt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_t=/&(?:amp|lt|gt|quot|#39|#96);/g,xt=/[&<>"'`]/g,bt=RegExp(_t.source),wt=RegExp(xt.source),Mt=/<%-([\s\S]+?)%>/g,St=/<%([\s\S]+?)%>/g,kt=/<%=([\s\S]+?)%>/g,Tt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,Et=/^\w*$/,At=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,Ct=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,Pt=RegExp(Ct.source),Nt=/[\u0300-\u036f\ufe20-\ufe23]/g,It=/\\(\\)?/g,Lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Rt=/\w*$/,Ot=/^0[xX]/,Bt=/^\[object .+?Constructor\]$/,Ut=/^\d+$/,Dt=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,zt=/($^)/,Ft=/['\n\r\u2028\u2029\\]/g,jt=function(){var t="[A-Z\\xc0-\\xd6\\xd8-\\xde]",e="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp(t+"+(?="+t+e+")|"+t+"?"+e+"|"+t+"+|[0-9]+","g")}(),qt=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],Yt=-1,Ht={};Ht[ut]=Ht[st]=Ht[ct]=Ht[lt]=Ht[ht]=Ht[ft]=Ht[dt]=Ht[pt]=Ht[gt]=!0,Ht[W]=Ht[V]=Ht[ot]=Ht[$]=Ht[Z]=Ht[Q]=Ht[K]=Ht[J]=Ht[tt]=Ht[et]=Ht[nt]=Ht[rt]=Ht[it]=Ht[at]=!1;var Xt={};Xt[W]=Xt[V]=Xt[ot]=Xt[$]=Xt[Z]=Xt[ut]=Xt[st]=Xt[ct]=Xt[lt]=Xt[ht]=Xt[tt]=Xt[et]=Xt[nt]=Xt[it]=Xt[ft]=Xt[dt]=Xt[pt]=Xt[gt]=!0,
  Xt[Q]=Xt[K]=Xt[J]=Xt[rt]=Xt[at]=!1;var Gt={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss"},Wt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},Vt={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},$t={function:!0,object:!0},Zt={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},Qt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Kt=$t[typeof e]&&e&&!e.nodeType&&e,Jt=$t[typeof t]&&t&&!t.nodeType&&t,te=Kt&&Jt&&"object"==typeof i&&i&&i.Object&&i,ee=$t[typeof self]&&self&&self.Object&&self,ne=$t[typeof window]&&window&&window.Object&&window,re=(Jt&&Jt.exports===Kt&&Kt,te||ne!==(this&&this.window)&&ne||ee||this),ie=T();re._=ie,r=function(){return ie}.call(e,n,e,t),!(r!==E&&(t.exports=r))}).call(this)}).call(e,n(102)(t),function(){return this}())},function(t,e){},function(t,e,n){(function(e,r){"use strict";function i(t){return U.from(t)}function a(t){return U.isBuffer(t)||t instanceof D}function o(t,e,n){return"function"==typeof t.prependListener?t.prependListener(e,n):void(t._events&&t._events[e]?R(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n))}function u(t,e){L=L||n(19),t=t||{},this.objectMode=!!t.objectMode,e instanceof L&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new Y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(q||(q=n(100).StringDecoder),this.decoder=new q(t.encoding),this.encoding=t.encoding)}function s(t){return L=L||n(19),this instanceof s?(this._readableState=new u(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),void B.call(this)):new s(t)}function c(t,e,n,r,a){var o=t._readableState;if(null===e)o.reading=!1,g(t,o);else{var u;a||(u=h(o,e)),u?t.emit("error",u):o.objectMode||e&&e.length>0?("string"==typeof e||o.objectMode||Object.getPrototypeOf(e)===U.prototype||(e=i(e)),r?o.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):l(t,o,e,!0):o.ended?t.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(e=o.decoder.write(e),o.objectMode||0!==e.length?l(t,o,e,!1):m(t,o)):l(t,o,e,!1))):r||(o.reading=!1)}return f(o)}function l(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&&v(t)),m(t,e)}function h(t,e){var n;return a(e)||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function f(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}function d(t){return t>=G?t=G:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function p(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=d(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function g(t,e){if(!e.ended){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,v(t)}}function v(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(j("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?I(y,t):y(t))}function y(t){j("emit readable"),t.emit("readable"),S(t)}function m(t,e){e.readingMore||(e.readingMore=!0,I(_,t,e))}function _(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(j("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function x(t){return function(){var e=t._readableState;j("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&O(t,"data")&&(e.flowing=!0,S(t))}}function b(t){j("readable nexttick read 0"),t.read(0)}function w(t,e){e.resumeScheduled||(e.resumeScheduled=!0,I(M,t,e))}function M(t,e){e.reading||(j("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),S(t),e.flowing&&!e.reading&&t.read(0)}function S(t){var e=t._readableState;for(j("flow",e.flowing);e.flowing&&null!==t.read(););}function k(t,e){if(0===e.length)return null;var n;return 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=T(t,e.buffer,e.decoder),n}function T(t,e,n){var r;return 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?E(t,e):A(t,e),r}function E(t,e){var n=e.head,r=1,i=n.data;for(t-=i.length;n=n.next;){var a=n.data,o=t>a.length?a.length:t;if(i+=o===a.length?a:a.slice(0,t),t-=o,0===t){o===a.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=a.slice(o));break}++r}return e.length-=r,i}function A(t,e){var n=U.allocUnsafe(t),r=e.head,i=1;for(r.data.copy(n),t-=r.data.length;r=r.next;){var a=r.data,o=t>a.length?a.length:t;if(a.copy(n,n.length-t,0,o),t-=o,0===t){o===a.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=a.slice(o));break}++i}return e.length-=i,n}function C(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,I(P,e,t))}function P(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}var I=n(33);t.exports=s;var L,R=n(89);s.ReadableState=u;var O=(n(83).EventEmitter,function(t,e){return t.listeners(e).length}),B=n(96),U=n(34).Buffer,D=e.Uint8Array||function(){},z=n(20);z.inherits=n(14);var F=n(246),j=void 0;j=F&&F.debuglog?F.debuglog("stream"):function(){};var q,Y=n(236),H=n(95);z.inherits(s,B);var X=["error","close","destroy","pause","resume"];Object.defineProperty(s.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),s.prototype.destroy=H.destroy,s.prototype._undestroy=H.undestroy,s.prototype._destroy=function(t,e){this.push(null),e(t)},s.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof t&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=U.from(t,e),e=""),n=!0),c(this,t,e,!1,n)},s.prototype.unshift=function(t){return c(this,t,null,!0,!1)},s.prototype.isPaused=function(){return this._readableState.flowing===!1},s.prototype.setEncoding=function(t){return q||(q=n(100).StringDecoder),this._readableState.decoder=new q(t),this._readableState.encoding=t,this};var G=8388608;s.prototype.read=function(t){j("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 j("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?C(this):v(this),null;if(t=p(t,e),0===t&&e.ended)return 0===e.length&&C(this),null;var r=e.needReadable;j("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&(r=!0,j("length less than watermark",r)),e.ended||e.reading?(r=!1,j("reading or ended",r)):r&&(j("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=p(n,e)));var i;return i=t>0?k(t,e):null,null===i?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&C(this)),null!==i&&this.emit("data",i),i},s.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},s.prototype.pipe=function(t,e){function n(t,e){j("onunpipe"),t===f&&e&&e.hasUnpiped===!1&&(e.hasUnpiped=!0,a())}function i(){j("onend"),t.end()}function a(){j("cleanup"),t.removeListener("close",c),t.removeListener("finish",l),t.removeListener("drain",v),t.removeListener("error",s),t.removeListener("unpipe",n),f.removeListener("end",i),f.removeListener("end",h),f.removeListener("data",u),y=!0,!d.awaitDrain||t._writableState&&!t._writableState.needDrain||v()}function u(e){j("ondata"),m=!1;var n=t.write(e);!1!==n||m||((1===d.pipesCount&&d.pipes===t||d.pipesCount>1&&N(d.pipes,t)!==-1)&&!y&&(j("false write response, pause",f._readableState.awaitDrain),f._readableState.awaitDrain++,m=!0),f.pause())}function s(e){j("onerror",e),h(),t.removeListener("error",s),0===O(t,"error")&&t.emit("error",e)}function c(){t.removeListener("finish",l),h()}function l(){j("onfinish"),t.removeListener("close",c),h()}function h(){j("unpipe"),f.unpipe(t)}var f=this,d=this._readableState;switch(d.pipesCount){case 0:d.pipes=t;break;case 1:d.pipes=[d.pipes,t];break;default:d.pipes.push(t)}d.pipesCount+=1,j("pipe count=%d opts=%j",d.pipesCount,e);var p=(!e||e.end!==!1)&&t!==r.stdout&&t!==r.stderr,g=p?i:h;d.endEmitted?I(g):f.once("end",g),t.on("unpipe",n);var v=x(f);t.on("drain",v);var y=!1,m=!1;return f.on("data",u),o(t,"error",s),t.once("close",c),t.once("finish",l),t.emit("pipe",f),d.flowing||(j("pipe resume"),f.resume()),t},s.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 a=0;a<i;a++)r[a].emit("unpipe",this,n);return this}var o=N(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n),this)},s.prototype.on=function(t,e){var n=B.prototype.on.call(this,t,e);if("data"===t)this._readableState.flowing!==!1&&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&&v(this):I(b,this))}return n},s.prototype.addListener=s.prototype.on,s.prototype.resume=function(){var t=this._readableState;return t.flowing||(j("resume"),t.flowing=!0,w(this,t)),this},s.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this},s.prototype.wrap=function(t){var e=this._readableState,n=!1,r=this;t.on("end",function(){if(j("wrapped end"),e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&r.push(t)}r.push(null)}),t.on("data",function(i){if(j("wrapped data"),e.decoder&&(i=e.decoder.write(i)),(!e.objectMode||null!==i&&void 0!==i)&&(e.objectMode||i&&i.length)){var a=r.push(i);a||(n=!0,t.pause())}});for(var i in t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var a=0;a<X.length;a++)t.on(X[a],r.emit.bind(r,X[a]));return r._read=function(e){j("wrapped _read",e),n&&(n=!1,t.resume())},r},s._fromList=k}).call(e,function(){return this}(),n(15))},function(t,e,n){"use strict";function r(t){this.afterTransform=function(e,n){return i(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function i(t,e,n){var r=t._transformState;r.transforming=!1;var i=r.writecb;if(!i)return t.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!==n&&void 0!==n&&t.push(n),i(e);var a=t._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&t._read(a.highWaterMark)}function a(t){if(!(this instanceof a))return new a(t);u.call(this,t),this._transformState=new r(this);var e=this;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.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(t,n){o(e,t,n)}):o(e)})}function o(t,e,n){if(e)return t.emit("error",e);null!==n&&void 0!==n&&t.push(n);var r=t._writableState,i=t._transformState;if(r.length)throw new Error("Calling transform done when ws.length != 0");if(i.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}t.exports=a;var u=n(19),s=n(20);s.inherits=n(14),s.inherits(a,u),a.prototype.push=function(t,e){return this._transformState.needTransform=!1,u.prototype.push.call(this,t,e)},a.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")},a.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)}},a.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},a.prototype._destroy=function(t,e){var n=this;u.prototype._destroy.call(this,t,function(t){e(t),n.emit("close")})}},function(t,e,n){(function(e,r,i){"use strict";function a(t){var e=this;this.next=null,this.entry=null,this.finish=function(){E(e,t)}}function o(t){return R.from(t)}function u(t){return R.isBuffer(t)||t instanceof O}function s(){}function c(t,e){C=C||n(19),t=t||{},this.objectMode=!!t.objectMode,e instanceof C&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var r=t.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i,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 o=t.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){m(e,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 a(this)}function l(t){return C=C||n(19),U.call(l,this)||this instanceof C?(this._writableState=new c(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),void L.call(this)):new l(t)}function h(t,e){var n=new Error("write after end");t.emit("error",n),A(e,n)}function f(t,e,n,r){var i=!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),A(r,a),i=!1),i}function d(t,e,n){return t.objectMode||t.decodeStrings===!1||"string"!=typeof e||(e=R.from(e,n)),e}function p(t,e,n,r,i,a){if(!n){var o=d(e,r,i);r!==o&&(n=!0,i="buffer",r=o)}var u=e.objectMode?1:r.length;e.length+=u;var s=e.length<e.highWaterMark;if(s||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else g(t,e,!1,u,r,i,a);return s}function g(t,e,n,r,i,a,o){e.writelen=r,e.writecb=o,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,a,e.onwrite),e.sync=!1}function v(t,e,n,r,i){--e.pendingcb,n?(A(i,r),A(k,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(i(r),t._writableState.errorEmitted=!0,t.emit("error",r),k(t,e))}function y(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function m(t,e){var n=t._writableState,r=n.sync,i=n.writecb;if(y(n),e)v(t,n,r,e,i);else{var a=w(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||b(t,n),r?P(_,t,n,a,i):_(t,n,a,i)}}function _(t,e,n,r){n||x(t,e),e.pendingcb--,r(),k(t,e)}function x(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function b(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),o=e.corkedRequestsFree;o.entry=n;for(var u=0,s=!0;n;)i[u]=n,n.isBuf||(s=!1),n=n.next,u+=1;i.allBuffers=s,g(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new a(e)}else{for(;n;){var c=n.chunk,l=n.encoding,h=n.callback,f=e.objectMode?1:c.length;if(g(t,e,!1,f,c,l,h),n=n.next,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequestCount=0,e.bufferedRequest=n,e.bufferProcessing=!1}function w(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function M(t,e){t._final(function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),k(t,e)})}function S(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,A(M,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function k(t,e){var n=w(e);return n&&(S(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}function T(t,e,n){e.ending=!0,k(t,e),n&&(e.finished?A(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function E(t,e,n){var r=t.entry;for(t.entry=null;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}var A=n(33);t.exports=l;var C,P=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?r:A;l.WritableState=c;var N=n(20);N.inherits=n(14);var I={deprecate:n(243)},L=n(96),R=n(34).Buffer,O=i.Uint8Array||function(){},B=n(95);N.inherits(l,L),c.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(c.prototype,"buffer",{get:I.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}();var U;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(U=Function.prototype[Symbol.hasInstance],Object.defineProperty(l,Symbol.hasInstance,{value:function(t){return!!U.call(this,t)||t&&t._writableState instanceof c}})):U=function(t){return t instanceof this},l.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},l.prototype.write=function(t,e,n){var r=this._writableState,i=!1,a=u(t)&&!r.objectMode;return a&&!R.isBuffer(t)&&(t=o(t)),"function"==typeof e&&(n=e,e=null),a?e="buffer":e||(e=r.defaultEncoding),"function"!=typeof n&&(n=s),r.ended?h(this,n):(a||f(this,r,t,n))&&(r.pendingcb++,i=p(this,r,a,t,e,n)),i},l.prototype.cork=function(){var t=this._writableState;t.corked++},l.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||b(this,t))},l.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},l.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},l.prototype._writev=null,l.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||T(this,r,n)},Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),l.prototype.destroy=B.destroy,l.prototype._undestroy=B.undestroy,l.prototype._destroy=function(t,e){this.end(),e(t)}}).call(e,n(15),n(240).setImmediate,function(){return this}())},function(t,e,n){"use strict";function r(t,e){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?void(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||o(a,this,t)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),void this._destroy(t||null,function(t){!e&&t?(o(a,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)}))}function i(){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)}function a(t,e){t.emit("error",e)}var o=n(33);t.exports={destroy:r,undestroy:i}},function(t,e,n){t.exports=n(83).EventEmitter},function(t,e,n){e=t.exports=n(92),e.Stream=e,e.Readable=e,e.Writable=n(94),e.Duplex=n(19),e.Transform=n(93),e.PassThrough=n(235)},function(t,e,n){(function(t){var r=n(238),i=n(245),a=n(171),o=n(101),u=e;u.request=function(e,n){e="string"==typeof e?o.parse(e):i(e);var a=t.location.protocol.search(/^https?:$/)===-1?"http:":"",u=e.protocol||a,s=e.hostname||e.host,c=e.port,l=e.path||"/";s&&s.indexOf(":")!==-1&&(s="["+s+"]"),e.url=(s?u+"//"+s:"")+(c?":"+c:"")+l,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var h=new r(e);return n&&h.on("response",n),h},u.get=function(t,e){var n=u.request(t,e);return n.end(),n},u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.STATUS_CODES=a,u.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(e,function(){return this}())},function(t,e){(function(t){function n(){if(void 0!==a)return a;if(t.XMLHttpRequest){a=new t.XMLHttpRequest;try{a.open("GET",t.XDomainRequest?"/":"https://example.com")}catch(t){a=null}}else a=null;return a}function r(t){var e=n();if(!e)return!1;try{return e.responseType=t,e.responseType===t}catch(t){}return!1}function i(t){return"function"==typeof t}e.fetch=i(t.fetch)&&i(t.ReadableStream),e.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),e.blobConstructor=!0}catch(t){}var a,o="undefined"!=typeof t.ArrayBuffer,u=o&&i(t.ArrayBuffer.prototype.slice);e.arraybuffer=e.fetch||o&&r("arraybuffer"),e.msstream=!e.fetch&&u&&r("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&o&&r("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||!!n()&&i(n().overrideMimeType),e.vbArray=i(t.VBArray),a=null}).call(e,function(){return this}())},function(t,e,n){"use strict";function r(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}}function i(t){var e=r(t);if("string"!=typeof e&&(m.isEncoding===_||!_(t)))throw new Error("Unknown encoding: "+t);return e||t}function a(t){this.encoding=i(t);var e;switch(this.encoding){case"utf16le":this.text=f,this.end=d,e=4;break;case"utf8":this.fillLast=c,e=4;break;case"base64":this.text=p,this.end=g,e=3;break;default:return this.write=v,void(this.end=y)}this.lastNeed=0,this.lastTotal=0,this.lastChar=m.allocUnsafe(e)}function o(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:-1}function u(t,e,n){var r=e.length-1;if(r<n)return 0;var i=o(e[r]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--r<n?0:(i=o(e[r]),i>=0?(i>0&&(t.lastNeed=i-2),i):--r<n?0:(i=o(e[r]),i>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0))}function s(t,e,n){if(128!==(192&e[0]))return t.lastNeed=0,"\ufffd".repeat(n);if(t.lastNeed>1&&e.length>1){if(128!==(192&e[1]))return t.lastNeed=1,"\ufffd".repeat(n+1);if(t.lastNeed>2&&e.length>2&&128!==(192&e[2]))return t.lastNeed=2,"\ufffd".repeat(n+2)}}function c(t){var e=this.lastTotal-this.lastNeed,n=s(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 l(t,e){var n=u(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)}function h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\ufffd".repeat(this.lastTotal-this.lastNeed):e}function f(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 d(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 p(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 g(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function v(t){return t.toString(this.encoding)}function y(t){return t&&t.length?this.write(t):""}var m=n(34).Buffer,_=m.isEncoding||function(t){switch(t=""+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}};e.StringDecoder=a,a.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(e=this.fillLast(t),void 0===e)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||""},a.prototype.end=h,a.prototype.text=l,a.prototype.fillLast=function(t){return this.lastNeed<=t.length?(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),void(this.lastNeed-=t.length))}},function(t,e,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function i(t,e,n){if(t&&c.isObject(t)&&t instanceof r)return t;var i=new r;return i.parse(t,e,n),i}function a(t){return c.isString(t)&&(t=i(t)),t instanceof r?t.format():r.prototype.format.call(t)}function o(t,e){return i(t,!1,!0).resolve(e)}function u(t,e){return t?i(t,!1,!0).resolveObject(e):e}var s=n(231),c=n(242);e.parse=i,e.resolve=o,e.resolveObject=u,e.format=a,e.Url=r;var l=/^([a-z0-9.+-]+:)/i,h=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["<",">",'"',"`"," ","\r","\n","\t"],p=["{","}","|","\\","^","`"].concat(d),g=["'"].concat(p),v=["%","/","?",";","#"].concat(g),y=["/","?","#"],m=255,_=/^[+a-z0-9A-Z_-]{0,63}$/,x=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},M={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},S=n(234);r.prototype.parse=function(t,e,n){if(!c.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var r=t.indexOf("?"),i=r!==-1&&r<t.indexOf("#")?"?":"#",a=t.split(i),o=/\\/g;a[0]=a[0].replace(o,"/"),t=a.join(i);var u=t;if(u=u.trim(),!n&&1===t.split("#").length){var h=f.exec(u);if(h)return this.path=u,this.href=u,this.pathname=h[1],h[2]?(this.search=h[2],e?this.query=S.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var d=l.exec(u);if(d){d=d[0];var p=d.toLowerCase();this.protocol=p,u=u.substr(d.length)}if(n||d||u.match(/^\/\/[^@\/]+@[^@\/]+/)){var k="//"===u.substr(0,2);!k||d&&w[d]||(u=u.substr(2),this.slashes=!0)}if(!w[d]&&(k||d&&!M[d])){for(var T=-1,E=0;E<y.length;E++){var A=u.indexOf(y[E]);A!==-1&&(T===-1||A<T)&&(T=A)}var C,P;P=T===-1?u.lastIndexOf("@"):u.lastIndexOf("@",T),P!==-1&&(C=u.slice(0,P),u=u.slice(P+1),this.auth=decodeURIComponent(C)),T=-1;for(var E=0;E<v.length;E++){var A=u.indexOf(v[E]);A!==-1&&(T===-1||A<T)&&(T=A)}T===-1&&(T=u.length),this.host=u.slice(0,T),u=u.slice(T),this.parseHost(),this.hostname=this.hostname||"";var N="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!N)for(var I=this.hostname.split(/\./),E=0,L=I.length;E<L;E++){var R=I[E];if(R&&!R.match(_)){for(var O="",B=0,U=R.length;B<U;B++)O+=R.charCodeAt(B)>127?"x":R[B];if(!O.match(_)){var D=I.slice(0,E),z=I.slice(E+1),F=R.match(x);F&&(D.push(F[1]),z.unshift(F[2])),z.length&&(u="/"+z.join(".")+u),this.hostname=D.join(".");break}}}this.hostname.length>m?this.hostname="":this.hostname=this.hostname.toLowerCase(),N||(this.hostname=s.toASCII(this.hostname));var j=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+j,this.href+=this.host,N&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==u[0]&&(u="/"+u))}if(!b[p])for(var E=0,L=g.length;E<L;E++){var Y=g[E];if(u.indexOf(Y)!==-1){var H=encodeURIComponent(Y);H===Y&&(H=escape(Y)),u=u.split(Y).join(H)}}var X=u.indexOf("#");X!==-1&&(this.hash=u.substr(X),u=u.slice(0,X));var G=u.indexOf("?");if(G!==-1?(this.search=u.substr(G),this.query=u.substr(G+1),e&&(this.query=S.parse(this.query)),u=u.slice(0,G)):e&&(this.search="",this.query={}),u&&(this.pathname=u),M[p]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var j=this.pathname||"",W=this.search||"";this.path=j+W}return this.href=this.format(),this},r.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,a="";this.host?i=t+this.host:this.hostname&&(i=t+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&c.isObject(this.query)&&Object.keys(this.query).length&&(a=S.stringify(this.query));var o=this.search||a&&"?"+a||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||M[e])&&i!==!1?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),o&&"?"!==o.charAt(0)&&(o="?"+o),n=n.replace(/[?#]/g,function(t){return encodeURIComponent(t)}),o=o.replace("#","%23"),e+i+n+o+r},r.prototype.resolve=function(t){return this.resolveObject(i(t,!1,!0)).format()},r.prototype.resolveObject=function(t){if(c.isString(t)){var e=new r;e.parse(t,!1,!0),t=e}for(var n=new r,i=Object.keys(this),a=0;a<i.length;a++){var o=i[a];n[o]=this[o]}if(n.hash=t.hash,""===t.href)return n.href=n.format(),n;if(t.slashes&&!t.protocol){for(var u=Object.keys(t),s=0;s<u.length;s++){var l=u[s];"protocol"!==l&&(n[l]=t[l])}return M[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),
  n.href=n.format(),n}if(t.protocol&&t.protocol!==n.protocol){if(!M[t.protocol]){for(var h=Object.keys(t),f=0;f<h.length;f++){var d=h[f];n[d]=t[d]}return n.href=n.format(),n}if(n.protocol=t.protocol,t.host||w[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 g=n.pathname||"",v=n.search||"";n.path=g+v}return n.slashes=n.slashes||t.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),m=t.host||t.pathname&&"/"===t.pathname.charAt(0),_=m||y||n.host&&t.pathname,x=_,b=n.pathname&&n.pathname.split("/")||[],p=t.pathname&&t.pathname.split("/")||[],S=n.protocol&&!M[n.protocol];if(S&&(n.hostname="",n.port=null,n.host&&(""===b[0]?b[0]=n.host:b.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),_=_&&(""===p[0]||""===b[0])),m)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,b=p;else if(p.length)b||(b=[]),b.pop(),b=b.concat(p),n.search=t.search,n.query=t.query;else if(!c.isNullOrUndefined(t.search)){if(S){n.hostname=n.host=b.shift();var k=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");k&&(n.auth=k.shift(),n.host=n.hostname=k.shift())}return n.search=t.search,n.query=t.query,c.isNull(n.pathname)&&c.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!b.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var T=b.slice(-1)[0],E=(n.host||t.host||b.length>1)&&("."===T||".."===T)||""===T,A=0,C=b.length;C>=0;C--)T=b[C],"."===T?b.splice(C,1):".."===T?(b.splice(C,1),A++):A&&(b.splice(C,1),A--);if(!_&&!x)for(;A--;A)b.unshift("..");!_||""===b[0]||b[0]&&"/"===b[0].charAt(0)||b.unshift(""),E&&"/"!==b.join("/").substr(-1)&&b.push("");var P=""===b[0]||b[0]&&"/"===b[0].charAt(0);if(S){n.hostname=n.host=P?"":b.length?b.shift():"";var k=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");k&&(n.auth=k.shift(),n.host=n.hostname=k.shift())}return _=_||n.host&&b.length,_&&!P&&b.unshift(""),b.length?n.pathname=b.join("/"):(n.pathname=null,n.path=null),c.isNull(n.pathname)&&c.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},r.prototype.parseHost=function(){var t=this.host,e=h.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e,n){"use strict";function r(t){if(!t._attrs&&t!==i){var e=t.superclass.constructor;e&&!e._attrs&&r(e),t._attrs={},a.mix(!0,t._attrs,e._attrs),a.mix(!0,t._attrs,t.ATTRS)}}var i,a=n(1);i=function(t){r(this.constructor),this._attrs={},this.events={};var e=this.getDefaultCfg();a.mix(this._attrs,e,t)},a.augment(i,{getDefaultCfg:function(){var t=this,e=t.constructor,n=e._attrs,r=a.mix(!0,{},n);return r},set:function(t,e){var n="_onRender"+a.ucfirst(t);return this[n]&&this[n](e,this._attrs[t]),this._attrs[t]=e,this},get:function(t){return this._attrs[t]},on:function(t,e){var n=this,r=n.events,i=r[t];return i||(i=r[t]=[]),i.push(e),n},fire:function(t,e){var n=this,r=n.events,i=r[t];i&&a.each(i,function(t){t(e)})},off:function(t,e){var n=this,r=n.events,i=r[t];return t?(i&&a.remove(i,e),n):(n.events={},n)},offEvents:function(t){var e=this,n=e.events;return t?(n[t]=null,e):(e.events={},e)},destroy:function(){var t=this,e=t.destroyed;return e?t:(t._attrs={},t.events={},void(t.destroyed=!0))}}),t.exports=i},function(t,e,n){"use strict";var r={Axis:n(108),Plot:{Back:n(114),Range:n(52)},Labels:n(49),Tooltip:n(115),Legend:n(113),Range:n(53)};t.exports=r},function(t,e,n){"use strict";var r=n(1),i=n(26),a=n(2),o=n(7),u=a.Vector2,s=function(t){s.superclass.constructor.call(this,t)};r.extend(s,i),s.CFG={type:"circle",tickInterval:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,grid:{line:{lineWidth:1,stroke:"#C0D0E0"}},labelOffset:5},r.augment(s,{parseTick:function(t,e,n){return{text:t,value:e/n}},_getCirclePoint:function(t,e){var n=this,r=n.get("center");return e=e||n.get("radius"),{x:r.x+Math.cos(t)*e,y:r.y+Math.sin(t)*e}},getTickPoint:function(t){var e=this,n=e.get("startAngle"),r=e.get("endAngle"),i=n+(r-n)*t;return e._getCirclePoint(i)},getSideVector:function(t,e){var n=this,r=n.get("center"),i=new u(e.x-r.x,e.y-r.y);return t&&i.setLength(t),i},getSidePoint:function(t,e){var n=this,r=n.getSideVector(e,t);return{x:t.x+r.x,y:t.y+r.y}},getTickEnd:function(t,e){var n=this,r=n.get("tickLine");return e=e?e:r.value,n.getSidePoint(t,e)},getTextAnchor:function(t){var e;return o.equal(t.x,0)?e="center":t.x>0?e="left":t.x<0&&(e="right"),e},getLinePath:function(){var t=this,e=t.get("center"),n=e.x,r=e.y,i=t.get("radius"),a=i,o=t.get("startAngle"),u=t.get("endAngle"),s=t.get("inner"),c=[];if(Math.abs(u-o)===2*Math.PI)c=[["M",n,r],["m",0,-a],["a",i,a,0,1,1,0,2*a],["a",i,a,0,1,1,0,-2*a],["z"]];else{var l=t._getCirclePoint(o),h=t._getCirclePoint(u),f=Math.abs(u-o)>Math.PI?1:0,d=o>u?0:1;if(s){var p=t.getSideVector(s*i,l),g=t.getSideVector(s*i,h),v={x:p.x+n,y:p.y+r},y={x:g.x+n,y:g.y+r};c=[["M",v.x,v.y],["L",l.x,l.y],["A",i,a,0,f,d,h.x,h.y],["L",y.x,y.y],["A",i*s,a*s,0,f,Math.abs(d-1),v.x,v.y]]}else c=[["M",n,r],["L",l.x,l.y],["A",i,a,0,f,d,h.x,h.y],["L",n,r]]}return c},addLabel:function(t,e,n,r){var i=this,a=i.get("labelOffset")||.001;e=i.getSidePoint(e,a),s.superclass.addLabel.call(i,t,e,n,r)},autoRotateLabels:function(){var t=this,e=t.get("ticks"),n=t.get("labelsGroup");if(n&&e.length>12){var i=t.get("radius"),a=t.get("startAngle"),o=t.get("endAngle"),u=o-a,s=u/(e.length-1),c=Math.sin(s/2)*i*2,l=t.getMaxLabelWidth(n);r.each(n.get("children"),function(t,n){var r=e[n],i=r.value*u+a,o=i%(2*Math.PI);l<c?(o<=0&&(i+=Math.PI),o>Math.PI&&(i-=Math.PI),i-=Math.PI/2,t.attr("textAlign","center")):o>Math.PI/2?i-=Math.PI:o<Math.PI/2*-1&&(i+=Math.PI),t.rotateAtStart(i)})}}}),t.exports=s},function(t,e,n){"use strict";function r(t){r.superclass.constructor.call(this,t)}var i=n(12).Group,a=n(1),o="x-chart-grid";a.extend(r,i),r.CFG={zIndex:1,elCls:o,type:"line",line:null,items:null,odd:null,even:null,animate:!1,matrix:null,duration:1e3},a.augment(r,{_renderUI:function(){r.superclass._renderUI.call(this),this._drawLines()},_drawLines:function(){var t=this,e=t.get("line"),n=t.get("items");n&&n.length>0&&(t._precessItems(n),t._drawGridLines(n,e,o+"-line"))},_precessItems:function(t){var e,n=this;a.each(t,function(t,r){e&&(n.get("odd")||n.get("even"))&&n._drawOddEven(t,e,r),e=t})},_drawGridLines:function(t,e,n){var r,i,o,u,s=this,c=this.get("type"),l=this.get("smooth"),h=this.get("start");"line"===c||"polygon"===c?a.each(t,function(t){h&&h.x===t[0].x&&t[0].y===h.y||(l?(i=[],a.each(t,function(t){i.push(t.x),i.push(t.y)}),o=a.catmullRom2bezier(i),o.unshift(["M",t[0].x,t[0].y])):(o=[],a.each(t,function(t,e){0===e?o.push(["M",t.x,t.y]):o.push(["L",t.x,t.y])})),u=a.mix({},e,{path:o}),r=s.addShape("path",{elCls:n,attrs:u}),r.animateType="gridLine",r.id=t.id+"grid",s.set("gridLine"+n,r))}):a.each(t,function(t){h&&h.x===t[0].x&&t[0].y===h.y||(o=[],a.each(t,function(t,e){var n=t.radius;0===e?o.push(["M",t.x,t.y]):o.push(["A",n,n,0,0,t.flag,t.x,t.y])}),u=a.mix({},e,{path:o}),r=s.addShape("path",{elCls:n,attrs:u}),r.animateType="gridLine",r.id=t.id+"grid",s.set("gridLine"+n,r))})},_drawOddEven:function(t,e,n){var r,i,a=this,u=a.get("odd"),s=a.get("even");n%2===0?s&&(i=a._getBackItem(e,t,s),r="even"):u&&(i=a._getBackItem(e,t,u),r="odd"),i&&a.addShape("Path",{elCls:o+"-"+r,attrs:i})},_getBackItem:function(t,e,n){var r=[],i=this.get("type");if("line"===i||"polygon"===i){a.each(t,function(t,e){0===e?r.push(["M",t.x,t.y]):r.push(["L",t.x,t.y])});for(var o=e.length-1;o>=0;o--){var u=e[o];r.push(["L",u.x,u.y])}r.push(["Z"])}else{var s=t[0].flag;a.each(t,function(t,e){var n=t.radius;0===e?r.push(["M",t.x,t.y]):r.push(["A",n,n,0,0,t.flag,t.x,t.y])});for(var c=e.length-1;c>=0;c--){var l=e[c],h=l.radius;c===e.length-1?r.push(["M",l.x,l.y]):r.push(["A",h,h,0,0,1===s?0:1,l.x,l.y])}}return n=a.mix({},n,{path:r})}}),t.exports=r},function(t,e,n){"use strict";var r=n(1),i=n(26),a=n(2),o=a.Vector2,u=function(t){u.superclass.constructor.call(this,t)};r.extend(u,i),u.CFG={type:"helix",grid:{line:{"stroke-width":1,stroke:"#C0D0E0"}},labelOffset:5,startAngle:1.25*Math.PI,endAngle:7.25*Math.PI,a:0,center:null,axisStart:null,crp:[]},r.augment(u,{getLinePath:function(){var t=this,e=t.get("crp"),n=t.get("axisStart"),i=r.catmullRom2bezier(e);return i.unshift(["M",n.x,n.y]),i},getTickPoint:function(t){var e=this,n=e.get("startAngle"),r=e.get("endAngle"),i=n+(r-n)*t;return e._getHelixPoint(i)},_getHelixPoint:function(t){var e=this,n=e.get("center"),r=e.get("a"),i=r*t;return{x:n.x+Math.cos(t)*i,y:n.y+Math.sin(t)*i}},getSideVector:function(t,e){var n=this,r=n.get("center"),i=new o(e.x-r.x,e.y-r.y);return t&&i.setLength(t),i},getSidePoint:function(t,e){var n=this,r=n.getSideVector(e,t);return{x:t.x+r.x,y:t.y+r.y}},getTickEnd:function(t,e){var n=this,r=n.get("tickLine");return e=e?e:r.value,n.getSidePoint(t,e)}}),t.exports=u},function(t,e,n){var r=n(48);r.Abstract=n(26),r.Circle=n(105),r.MultLine=n(109),r.Helix=n(107),t.exports=r},function(t,e,n){"use strict";var r=n(1),i=n(48),a=n(2),o=a.Vector2,u=function(t){u.superclass.constructor.call(this,t)};u.CFG={type:"multLine"},r.extend(u,i),r.augment(u,{getLinePath:function(){var t=this,e=t.get("tickPoints"),n=t.get("start"),i=t.get("end"),a=[];a.push(n.x),a.push(n.y),r.each(e,function(t){a.push(t.x),a.push(t.y)}),a.push(i.x),a.push(i.y);var o=r.catmullRom2bezier(a);return o.unshift(["M",n.x,n.y]),o},getTickPoint:function(t,e){var n=this.get("tickPoints");return n[e]},getTickEnd:function(t,e,n){var r=this,i=r.get("tickLine"),a=e?e:i.value,o=r.getSideVector(a,t,n);return{x:t.x+o.x,y:t.y+o.y}},getSideVector:function(t,e,n){var r,i=this;if(0===n)r=i.get("start");else{var a=i.get("tickPoints");r=a[n-1]}var u=new o(e.x-r.x,e.y-r.y),s=u.normalize(),c=s.vertical(!1);return c.multiplyScaler(t)}}),t.exports=u},function(t,e,n){"use strict";var r=n(1),i=n(50),a=function(){};a.ATTRS={labels:null},r.augment(a,{renderLabels:function(){var t,e=this,n=e.get("labels");n&&(n.items||(n.items=[]),r.isNull(n.animate)&&(n.animate=e.get("animate")),t=e.addGroup(i,n),e.set("labelsGroup",t))},resetLabels:function(t){var e=this,n=e.get("labels");if(n){var i=e.get("labelsGroup"),a=i.getLabels(),o=a.length;t=t||n.items,r.each(t,function(t,n){if(n<o){var r=a[n];i.changeLabel(r,t)}else e.addLabel(t.text,t)});for(var u=o-1;u>=t.length;u--)a[u].remove()}},addLabel:function(t,e){var n,r=this,i=r.get("labelsGroup"),a={};return i&&(a.text=t,a.x=e.x,a.y=e.y,a.point=e,a.textAlign=e.textAlign,a.id=e.id,e.rotate&&(a.rotate=e.rotate),n=i.addLabel(a)),n},removeLabels:function(){var t=this,e=t.get("labelsGroup");e&&e.remove(),t.set("labelsGroup",null)}}),t.exports=a},function(t,e,n){"use strict";function r(t,e){var n=null;return i.each(t,function(t){if(t.name===e.get("value"))return n=t,!1}),n}var i=n(1),a=n(51),o=n(39),u=n(35),s=function(t){s.superclass.constructor.call(this,t)};s.CFG={type:"category-legend",items:null,spacingX:5,spacingY:10,wordSpaceing:2,itemsGroup:null,layout:"horizontal",leaveChecked:!0,backPadding:[0,0,0,0],checkable:!0,itemsbeginX:0,itemsbeginY:0,unChecked:"#CCC",back:null,itemWrap:!1,maxLength:100,word:{fill:"#333",textBaseline:"middle"},formatter:null},i.extend(s,u),i.augment(s,a,{_formatPoint:function(t){var e=this.get("formatter");return e&&(t=e.call(this,t)),t},_beforeRenderUI:function(){s.superclass._beforeRenderUI.call(this),this.set("back",{})},_renderUI:function(){s.superclass._renderUI.call(this),this._renderTitle(),this._renderItems(),this._wrapItems(),this._renderBack(),this.setPosition()},_wrapItems:function(){var t=this.get("itemWrap"),e=this.get("layout"),n=this.get("maxLength");t&&n>0&&("horizontal"===e?this._warpHorizontal():"vertical"===e&&this._warpVertical())},_warpVertical:function(){var t,e,n,r,a=this.get("itemsGroup"),o=this.get("titleShape"),u=a.get("children"),s=this.get("maxLength"),c=this.get("spacingX"),l=this.get("spacingY"),h=o.getBBox().height+l,f=1,d=h,p=0,g=0,v=0;a.getBBox().height>s&&i.each(u,function(i){r=i.getBBox(),e=r.width+c,n=r.height+l,p=g,g=e>g?e:g,t=d,d+=n,d>s?(v+=p,d=n+h,f++,g=0,p=0,i.move(v,h)):i.move(v,t)})},_warpHorizontal:function(){var t,e,n,r=this.get("itemsGroup"),a=r.get("children"),o=this.get("maxLength"),u=this.get("spacingX"),s=this.get("spacingY"),c=0,l=0,h=0;r.getBBox().width>o&&i.each(a,function(r){n=r.getBBox(),t=n.width+u,e=n.height+s,h=l,l+=t,l>o?(l=t,c++,r.move(0,c*e+s)):r.move(h,c*e+s)})},_bindUI:function(){this._bindOverOut(),this._bindClick()},_bindClick:function(){var t=this.get("checkable");t&&this.on("click",i.wrapBehavior(this,"_onClick"))},_bindOverOut:function(){this.on("mouseenter",i.wrapBehavior(this,"_onMouseenter")),this.on("mouseleave",i.wrapBehavior(this,"_onMouseleave"))},_onClick:function(t){var e,n,i,a,u=this.get("leaveChecked"),s=this._getLi(t.currentTarget),c=this.get("items");if(s){var l=r(c,s);if(a=s.get("checked"),e=new o("itemclick",t),e.item=l,this.trigger(e),u&&a&&1===this.getLeaveCount())return;a?(i=new o("itemunchecked",t),i.item=l,i.currentTarget=s,this.trigger(i)):(n=new o("itemchecked",t),n.item=l,n.currentTarget=s,this.trigger(n))}},_onMouseenter:function(t){var e=this.get("canvas"),n=this._getLi(t.currentTarget);if(n){var a=new o("itemover",t),u=t.currentTarget,s=u.get("canvas").get("el");a.item=n,this.trigger(a),i.modiCSS(s,{cursor:"pointer"});var c=this.get("items"),l=r(c,n);if(n.get("checked")){var h=new o("itemactived",t);h.item=l,h.currentTarget=n,this.trigger(h),e.draw()}}},_onMouseleave:function(t){var e=this.get("canvas"),n=this._getLi(t.currentTarget);if(n){var r=new o("itemout",t),a=e.get("el");if(r.item=n,this.trigger(r),i.modiCSS(a,{cursor:"default"}),n.get("checked")){var u=new o("itemunactived",t);this.trigger(u),e.draw()}}},_renderBack:function(){var t=this.get("itemsGroup"),e=this.get("backPadding"),n=this.get("back");t.renderBack(e,n)},_renderItems:function(){var t=this,e=t.get("items");i.each(e,function(e,n){t._addItem(e,n)})},_addItem:function(t){var e=this.get("itemsGroup"),n=this._getNextX(),r=this._getNextY(),a=this.get("unChecked"),o={words:[{text:this._formatPoint(t.name)}]},u={};t.marker&&(t.checked||(t.marker.fill=a,t.marker.stroke&&(t.marker.stroke=a),u.fill=a),o.marker=t.marker),u=i.mix({},this.get("word"),u),this.addEachItem(e,{word:u,wordSpaceing:this.get("wordSpaceing"),x:n,y:r,items:o,class:"legend-item",checked:t.checked,value:t.name})},_getNextX:function(){var t=this.get("layout"),e=this.get("spacingX"),n=this.get("itemsGroup"),r=n.get("children"),a=0;return"horizontal"===t&&i.each(r,function(t){a+=t.getBBox().width+e}),a},_getNextY:function(){var t=this.get("spacingY"),e=this.get("layout"),n=this.get("itemsGroup"),r=this.get("titleShape"),a=n.get("children"),o=r.getBBox().height+t;return"vertical"===e&&i.each(a,function(e){o+=e.getBBox().height+t}),o},_getLi:function(t){var e=t.get("parent");return"legend-item"===e.get("class")?e:null}}),t.exports=s},function(t,e,n){"use strict";var r=n(1),i=n(35),a=n(28),o=n(39),u=n(12).Group,s=n(53),c=16,l=function(t){l.superclass.constructor.call(this,t)};l.CFG={type:"continuous-legend",items:null,layout:"vertical",width:200,height:60,attrType:null,titleOffset:20,nameOffset:10,range:[0,100],outRange:{fill:"#ccc"},inRange:{fill:"#4E7CCC"},word:{fill:"#333",textAlign:"center",textBaseline:"middle"},middleAttr:{fill:"#fff",fillOpacity:0},checkable:!0,attr:null},r.extend(l,i),r.augment(l,{_formatPoint:function(t){var e=this.get("formatter");return e&&(t=e.call(this,t)),t},_calStartPoint:function(){var t=this.get("titleShape"),e=t.getBBox(),n=this.get("titleOffset"),r={x:0,y:e.height+n};return r},_beforeRenderUI:function(){var t=this.get("items");if(r.isArray(t)&&t.length){l.superclass._beforeRenderUI.call(this);var e=new u,n=new u,i=new u,a=this._calStartPoint(),o=this.addGroup(s,{minHandleElement:e,maxHandleElement:n,backgroundElement:i,middleAttr:this.get("middleAttr"),layout:this.get("layout"),range:this.get("range"),width:this.get("width"),height:this.get("height"),operable:this.get("checkable")});o.translate(a.x,a.y),this.set("rangeElement",o),this.set("firstItem",t[0]),this.set("lastItem",t[t.length-1])}},_bindUI:function(){var t=this.get("checkable");if(t){var e=this,n=e.get("rangeElement");n.on("rangeChange",function(t){var n=t.range,r=1*e.get("firstItem").name,i=1*e.get("lastItem").name,a=r+n[0]/100*(i-r),u=r+n[1]/100*(i-r);u>1&&(a=parseInt(a,10),u=parseInt(u,10)),e._updateElement(a,u);var s=new o("itemfiltered",t);s.range=[a,u],e.trigger(s)})}},_updateElement:function(t,e){var n=this.get("minTextElement"),r=this.get("maxTextElement");if(n.attr("text",this._formatPoint(t)+""),r.attr("text",this._formatPoint(e)+""),"color"===this.get("attrType")){var i=this.get("attr"),a=this.get("minButtonElement"),o=this.get("maxButtonElement");a.attr("fill",i.mappingValues(t).join("")),o.attr("fill",i.mappingValues(e).join(""))}},_renderUI:function(){l.superclass._renderUI.call(this),this._renderBackground(),this._renderTrigger()},_renderBackground:function(){var t,e=this.get("attrType"),n=this.get("rangeElement"),r=n.get("middleHandleElement");"color"===e?t=this._renderGradient():"size"===e&&(t=this._renderTriangle()),t.attr("clip",r)},_renderGradient:function(){var t,e=this.get("rangeElement"),n=e.get("backgroundElement"),i=this.get("width"),o=this.get("height"),u=this.get("layout"),s=this.get("items"),c="";return"vertical"===u?(c+="l (90) ",r.each(s,function(e){t=new a(e.color).getRGBStyle(),c+=1-e.value+":"+t+" "})):(c+="l (0) ",r.each(s,function(e){t=new a(e.color).getRGBStyle(),c+=e.value+":"+t+" "})),this._addBackground(n,"Rect",{x:0,y:0,width:i,height:o,fill:c,strokeOpacity:0})},_renderTriangle:function(){var t=this.get("rangeElement"),e=t.get("backgroundElement"),n=this.get("width"),i=this.get("height"),a=this.get("inRange"),o=this.get("layout"),u="vertical"===o?[[0,0],[n,0],[n,i]]:[[0,i],[n,0],[n,i]];return this._addBackground(e,"Polygon",r.mix({points:u},a))},_addBackground:function(t,e,n){t.addShape(e,{attrs:r.mix({},n,this.get("outRange"))});var i=t.addShape(e,{attrs:n});return i},_renderTrigger:function(){var t,e,n,i,a=this.get("firstItem"),o=this.get("lastItem"),u=this.get("layout"),s=this.get("attrType"),c=this.get("word"),l=this.get("inRange");"color"===s?(t={fill:a.color},e={fill:o.color}):(t=r.mix({},l),e=r.mix({},l)),n=r.mix({text:a.name},c),i=r.mix({text:o.name},c),"vertical"===u?(this._addVerticalTrigger("min",t,n),this._addVerticalTrigger("max",e,i)):(this._addHorizontalTrigger("min",t,n),this._addHorizontalTrigger("max",e,i))},_addVerticalTrigger:function(t,e,n){var i=this.get("rangeElement"),a=i.get(t+"HandleElement"),o=this.get("width"),u=a.addShape("polygon",{attrs:r.mix({points:[[o/2+c,0],[o/2+1,0],[o/2+c,"min"===t?c:-c]]},e)}),s=a.addShape("text",{attrs:r.mix(n,{x:o+8,y:"max"===t?-8:8,textAlign:"start",textBaseline:"middle"})}),l=this.get("layout"),h="vertical"===l?"ns-resize":"ew-resize";u.set("cursor",h),s.set("cursor",h),this.set(t+"ButtonElement",u),this.set(t+"TextElement",s)},_addHorizontalTrigger:function(t,e,n){var i=this.get("rangeElement"),a=i.get(t+"HandleElement"),o=a.addShape("polygon",{attrs:r.mix({points:[[0,0],[0,-1*c],["min"===t?-c:c,-1*c]]},e)}),u=a.addShape("text",{attrs:r.mix(n,{x:"min"===t?-c/2:c/2,y:-1*(8+c),textAlign:"min"===t?"end":"start",textBaseline:"middle"})}),s=this.get("layout"),l="vertical"===s?"ns-resize":"ew-resize";o.set("cursor",l),u.set("cursor",l),this.set(t+"ButtonElement",o),this.set(t+"TextElement",u)}}),t.exports=l},function(t,e,n){var r=n(35);r.Category=n(111),r.Continuous=n(112),t.exports=r},function(t,e,n){"use strict";var r=n(1),i=n(12).Group,a=n(52),o=function(t){o.superclass.constructor.call(this,t)};o.CFG={type:"plotBack",margin:null,border:null,plotRange:null,background:null},r.extend(o,i),r.augment(o,{_beforeRenderUI:function(){this._calculateRange()},_renderUI:function(){this._renderBorder(),this._renderBackground()},_renderBorder:function(){var t,e=this,n=e.get("border"),i=e.get("canvas"),a=e.get("borderShape");if(n){var o=e.get("width")||i.get("width"),u=e.get("height")||i.get("height");a?a.attr({x:0,y:0,width:o,height:u}):(t=r.mix({x:0,y:0,width:o,height:u},n),a=this.addShape("rect",{attrs:t}),this.set("borderShape",a))}},_renderBackground:function(){var t,e,n,i,a=this,o=a.get("background"),u=a.get("plotRange"),s=a.get("backShape");o&&(t=u.getWidth(),e=u.getHeight(),n=u.tl,i={x:n.x,y:n.y,width:t,height:e},s?s.attr(i):(o.image?(i.img=o.image,s=a.addShape("image",{attrs:i})):(r.mix(i,o),s=a.addShape("rect",{attrs:i})),a.set("backShape",s)))},_calculateRange:function(){var t,e,n=this,i=n.get("margin"),o=n.get("canvas"),u=n.get("width")||o.get("width"),s=n.get("height")||o.get("height"),c=n.get("plotRange"),l=0,h=0,f=0,d=0;r.isNumber(i)&&(l=h=f=d=i),r.isArray(i)&&(l=i[0],f=r.isNull(i[1])?i[0]:i[1],d=r.isNull(i[2])?i[0]:i[2],h=r.isNull(i[3])?f:i[3]),t={x:h,y:s-d},e={x:u-f,y:l},c?c.reset(t,e):(c=new a(t,e),n.set("plotRange",c))},repaint:function(){return this._calculateRange(),this._renderBorder(),this._renderBackground(),this}}),t.exports=o},function(t,e,n){"use strict";function r(t,e){return t.getElementsByClassName(e)[0]}var i=n(1),a=n(2),o=n(12).Group,u=n(51),s="ac-title",c="ac-list",l=[10,10,10,10],h=20,f=function(t){f.superclass.constructor.call(this,t)};f.CFG={zIndex:10,x:0,y:0,items:null,title:{fill:"#fff"},name:{},value:{},crossLine:{stroke:"#999",lineWidth:1},markerCfg:null,titleText:void 0,wordSpaceing:6,crosshairs:!1,titleShape:null,contentGroup:null,crossLineShapeX:null,crossLineShapeY:null,background:{radius:6,fill:"#000",fillOpacity:.7},plotRange:null,shared:!1,offset:10,animate:!0,duration:50,visible:!1,valueSplit:"",valueSuffix:"",custom:!1,customDiv:null,customFollow:!0,timeStamp:0,html:'<div class="ac-tooltip" style="position:absolute;visibility: hidden;"><h4 class="'+s+'"></h4><ul class="'+c+'"></ul></div>',itemTpl:'<li><span style="color:{color}">{name}</span> : {value}</li>',inPlot:!0},i.extend(f,o),i.augment(f,u,{_beforeRenderUI:function(){var t=this.get("custom"),e=this.get("crossLine"),n=this.addGroup({attrs:e}),r=this.addGroup({zIndex:10,attrs:{fill:"#fff",textAlign:"left"}});this.set("crossLineGroup",n),this.set("contentGroup",r),this.set("itemsGroup",r.addGroup()),t&&this._setCustomDiv()},_renderUI:function(){if(this.get("items")){var t=this.get("custom");t?this._renderCustom():this._renderContent()}this._renderCrossLine()},_renderContent:function(){var t=this,e=t.get("items"),n=t.get("title"),r=t.get("titleText"),a=t.get("name"),o=t.get("value"),u=t.get("valueSplit"),s=t.get("valueSuffix"),c=t.get("markerCfg"),f=this.get("itemsGroup");if(f&&f.clear(),n){var d=f.addShape("text",{attrs:i.mix({},n,{x:l[3],y:l[0]+14,text:r})});this.set("titleShape",d)}i.each(e,function(e,n){var r=i.mix({},a,{text:e.name?e.name+":":""}),d=i.mix({},o,{text:e.value+u+s});e.marker===!0&&(e.marker="circle");var p=e.marker?{symbol:e.marker,fill:e.color}:{};t.addEachItem(f,{x:l[3],y:(n+1)*h+l[0]+8,items:{color:e.color,words:[r,d],marker:i.mix(p,c)}})}),f.renderBack(l,this.get("background"))},_renderCrossLine:function(){var t=this.get("crosshairs"),e=this.get("canvas"),n=this.get("plotRange");if(t)switch(this.clearCrossLineGroup(),t.type){case"x":this._renderCrossLineX(e,n);break;case"y":this._renderCrossLineY(e,n);break;case"cross":this._renderCrossLineX(e,n),this._renderCrossLineY(e,n);break;default:this._renderCrossLineY(e,n)}},_renderCrossLineY:function(t,e){var n=i.mix({x1:0,y1:e?e.bl.y:t.get("height"),x2:0,y2:e?e.tl.y:0},this.get("crossLine"));"dash"===this.get("crosshairs").shape&&(n.lineDash="6 3"),this._addCrossLineShape(n,"Y")},_renderCrossLineX:function(t,e){var n=i.mix({x1:e?e.bl.x:t.get("width"),y1:0,x2:e?e.br.x:0,y2:0},this.get("crossLine"));"dash"===this.get("crosshairs").shape&&(n.lineDash="6 3"),this._addCrossLineShape(n,"X")},_addCrossLineShape:function(t,e){var n=this.get("crossLineGroup"),r=n.addShape("line",{attrs:t});return this.set("crossLineShape"+e,r),r},clearCrossLineGroup:function(){var t=this.get("crossLineGroup");this.set("crossLineShapeX",null),this.set("crossLineShapeY",null),t.clear()},setMarkers:function(t,e){var n=this,r=n.get("markerGroup");r?r.clear():(r=n.addGroup({zIndex:2}),n.set("markerGroup",r)),i.each(t,function(t){r.addShape("marker",{attrs:i.mix({},e,{stroke:t.color,x:t.point.x,y:t.point.y})})})},clearMarkers:function(){var t=this.get("markerGroup");t&&t.clear()},setCross:function(t){this.set("crosshairs",{type:t}),this._renderCrossLine()},setContent:function(t,e){var n=this._isContentChange(t,e);if(n){var r=this.get("custom"),i=+new Date;this.set("items",e),this.set("titleText",t),this.set("timeStamp",i),r?this._renderCustom():this._renderContent()}return this},_isContentChange:function(t,e){var n=this.get("titleText"),r=this.get("items"),a=!(t===n&&r.length===e.length);return a||i.each(e,function(t,e){var n=r[e];if(a=t.value!==n.value||t.color!==n.color||t.name!==n.name||t.title!==n.title)return!1}),a},getTitle:function(){return this.get("titleShape")},setPosition:function(t,e){var n,r=this.get("canvas"),o=this.get("custom"),u=this.get("customDiv"),s=this.get("plotRange"),c=this.get("offset"),l=this.get("crossLineShapeX"),h=this.get("crossLineShapeY"),f=this.get("contentGroup"),d=(this.get("markerGroup"),f.getBBox()),p=this.get("animate"),g=!0,v=t,y=e;if(u&&this.get("customFollow")?(n=i.getWidth(u)+2*c,t-=n,e=e-i.getHeight(u)-2*c):(n=d.width+c,t-=n,e-=d.height),this.get("inPlot")&&s&&(s.isInRange(t,e)||(s.isInHorizontal(t)||(s.tr.x-s.tl.x>=2*n?(t=Math.max(s.tl.x,v)+c,g=!1):(t=s.tl.x,e-=c)),s.isInVertical(e)||(e=s.tl.y))),this.get("x")!==t||this.get("y")!==e)if(h&&(g?h.move(v,0):h.move(t-c,0)),l&&l.move(0,y),o)this.moveCustom(t,e,g);else{var m=new a.Matrix3;m.translate(t,e),p&&this.get("visible")?f.animate({matrix:m},this.get("duration")):(f.setMatrix(m),this.get("visible")||this.show(),r.draw())}},_setCustomDiv:function(){var t,e,n=this,r=n.get("html"),a=n.get("canvas").get("el").parentNode;/^\#/.test(r)?(e=r.replace("#",""),t=document.getElementById(e)):t=i.createDom(r),n.set("customDiv",t),n.get("customFollow")&&(a.appendChild(t),a.style.position="relative")},_renderCustom:function(){var t=this,e=t.get("title"),n=t.get("titleText"),a=t.get("customDiv"),o=r(a,s),u=r(a,c),l=t.get("items");t._clearCustom(),o&&e&&(o.innerHTML=n),u&&(t.set("titleText",n),i.each(l,function(e,n){t.addCustomItem(e,n)}))},_clearCustom:function(){var t=this.get("customDiv"),e=r(t,s),n=r(t,c);e&&(e.innerHTML=""),n&&(n.innerHTML="")},addCustomItem:function(t,e){var n,a,o=this.get("customDiv"),u=r(o,c),s=this.get("itemTpl"),l=i.mix({index:e},t);n=i.substitute(s,l),a=i.createDom(n),u.appendChild(a)},moveCustom:function(t,e){var n=this.get("customDiv");n&&this.get("customFollow")&&(n.style.left=t+"px",n.style.top=e+"px")},show:function(){var t=this.get("crossLineShapeX"),e=this.get("crossLineShapeY"),n=this.get("markerGroup"),r=this.get("customDiv"),i=this.get("hideHandler");i&&clearTimeout(i),this.sort(),t&&t.show(),e&&e.show(),n&&n.show(),f.superclass.show.call(this),r&&this.get("customFollow")&&(r.style.visibility="visible",this.get("canvas").draw())},hide:function(){var t=this,e=t.get("customDiv"),n=t.get("crossLineShapeX"),r=t.get("crossLineShapeY"),i=t.get("markerGroup"),a=t.get("canvas"),o=setTimeout(function(){e&&t.get("customFollow")&&(e.style.visibility="hidden"),t.set("hideHandler",null),t.get("destroyed")||(f.superclass.hide.call(t),a.draw())},t.get("duration"));t.set("hideHandler",o),n&&n.hide(),r&&r.hide(),i&&i.hide()},remove:function(){var t=this,e=t.get("crossLineShapeX"),n=t.get("crossLineShapeY"),r=t.get("markerGroup"),i=t.get("customDiv"),a=t.get("html");e&&e.remove(),n&&n.remove(),r&&r.remove(),f.superclass.remove.call(this),i&&!/^\#/.test(a)&&i.parentNode.removeChild(i)}}),t.exports=f},function(t,e,n){"use strict";var r=n(72),i=n(119),a=n(57),o=function(t){o.superclass.constructor.call(this,t)};o.CFG={eventEnable:!0,width:null,height:null,widthCanvas:null,heightCanvas:null,widthStyle:null,heightStyle:null,containerDOM:null,canvasDOM:null,pixelRatio:null},r.extend(o,a.Group),r.augment(o,{init:function(){o.superclass.init.call(this),this._setGlobalParam(),this._setDOM(),this._setInitSize(),this._setCanvas(),this._scale(),this.get("eventEnable")&&this._registEvents()},_registEvents:function(){var t=this,e=t.get("el"),n=new i(t);e.addEventListener("mouseout",function(t){n.mouseout(t)},!1),e.addEventListener("mouseover",function(t){n.mouseover(t)},!1),e.addEventListener("mousemove",function(t){n.mousemove(t)},!1),e.addEventListener("mousedown",function(t){n.mousedown(t)},!1),e.addEventListener("mouseup",function(t){n.mouseup(t)},!1),e.addEventListener("click",function(t){n.click(t)},!1),e.addEventListener("dblclick",function(t){n.dblclick(t)},!1)},_scale:function(){var t=this.get("pixelRatio");this.scale(t,t)},_setCanvas:function(){var t=this.get("canvasDOM");this.set("el",t),this.set("context",t.getContext("2d")),this.set("canvas",this)},_setGlobalParam:function(){var t=this.get("pixelRatio");t||this.set("pixelRatio",r.getRatio())},_setDOM:function(){this._setContainer(),this._setLayer()},_setContainer:function(){var t=this.get("containerId"),e=this.get("containerDOM");e||(e=document.getElementById(t),this.set("containerDOM",e)),r.modiCSS(e,{position:"relative"})},_setLayer:function(){var t=this.get("containerDOM"),e=r.guid("canvas_");if(t){var n=r.createDom('<canvas id="'+e+'"></canvas>');t.appendChild(n),this.set("canvasDOM",n)}},_setInitSize:function(){this.get("widthStyle")?this.changeSizeByCss(this.get("widthStyle"),this.get("heightStyle")):this.get("width")&&this.changeSize(this.get("width"),this.get("height"))},_getPx:function(t,e){var n=this.get("canvasDOM");n.style[t]=e;var i=r.getBoundingClientRect(n);return"width"===t?i.right-i.left:"height"===t?i.bottom-i.top:void 0},_reSize:function(){var t=this.get("canvasDOM"),e=this.get("widthCanvas"),n=this.get("heightCanvas"),r=this.get("widthStyle"),i=this.get("heightStyle");t.style.width=r,t.style.height=i,t.setAttribute("width",e),t.setAttribute("height",n)},getWidth:function(){var t=this.get("pixelRatio"),e=this.get("width");return e*t},getHeight:function(){var t=this.get("pixelRatio"),e=this.get("height");return e*t},changeSizeByCss:function(t,e){var n=this.get("pixelRatio");t=this._getPx("width",t),e=this._getPx("height",e);var r=t*n,i=e*n;this.set("widthStyle",t),this.set("heightStyle",e),this.set("widthCanvas",r),this.set("heightCanvas",i),this.set("width",t),this.set("height",e),this._reSize()},changeSize:function(t,e){var n=this.get("pixelRatio"),r=t*n,i=e*n;this.set("widthCanvas",r),this.set("heightCanvas",i),this.set("widthStyle",t+"px"),this.set("heightStyle",e+"px"),this.set("width",t),this.set("height",e),this._reSize()},getPointByClient:function(t,e){var n=this.get("el"),r=n.getBoundingClientRect(),i=r.right-r.left,a=r.bottom-r.top;return{x:(t-r.left)*(n.width/i),y:(e-r.top)*(n.height/a)}},getClientByPoint:function(t,e){var n=this.get("el"),r=n.getBoundingClientRect(),i=r.right-r.left,a=r.bottom-r.top;return{clientX:t/(n.width/i)+r.left,clientY:e/(n.height/a)+r.top}},beforeDraw:function(){var t=this.get("context"),e=this.get("el");t&&t.clearRect(0,0,e.width,e.height)},_beginDraw:function(){this.setSilent("toDraw",!0)},_endDraw:function(){this.setSilent("toDraw",!1)},draw:function(){function t(){e.set("animateHandler",r.requestAnimationFrame(function(){e.set("animateHandler",void 0),e.get("toDraw")&&t()})),e.beforeDraw();try{var n=e.get("context");
  o.superclass.draw.call(e,n)}catch(t){console.warn("error in draw canvas, detail as:"),console.warn(t),e._endDraw()}e._endDraw()}var e=this;e.get("destroyed")||(e.get("animateHandler")?this._beginDraw():t())},destroy:function(){var t=this.get("containerDOM"),e=this.get("canvasDOM");e&&t&&t.removeChild(e),o.superclass.destroy.call(this)}}),t.exports=o},function(t,e,n){"use strict";var r=n(1),i=function(t,e,n,r){this.type=t,this.target=null,this.currentTarget=null,this.bubbles=n,this.cancelable=r,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.removed=!1,this.event=e};r.augment(i,{preventDefault:function(){this.defaultPrevented=this.cancelable&&!0},stopPropagation:function(){this.propagationStopped=!0},remove:function(){this.remove=!0},clone:function(){return r.clone(this)},toString:function(){return"[Event (type="+this.type+")]"}}),t.exports=i},function(t,e,n){var r=n(1),i=n(117);t.exports={initEventDispatcher:function(){this.__listeners={}},on:function(t,e){var n=this.__listeners;return r.isNull(n[t])&&(n[t]=[]),n[t].indexOf(e)===-1&&n[t].push(e),this},off:function(t,e){var n=this.__listeners;return 0===arguments.length?(this.__listeners={},this):1===arguments.length&&r.isString(t)?(n[t]=[],this):2===arguments.length&&r.isString(t)&&r.isFunction(e)?(r.remove(n[t],e),this):void 0},has:function(t,e){var n=this.__listeners;return 0===arguments.length&&!r.isBlank(n)||(!(1!==arguments.length||!n[t]||r.isBlank(n[t]))||!(2!==arguments.length||!n[t]||n[t].indexOf(e)===-1))},trigger:function(t){var e=this,n=e.__listeners,i=n[t.type];if(t.target=e,r.notNull(i)&&i.forEach(function(n){n.call(e,t)}),t.bubbles){var a=e.get("parent");a&&!t.propagationStopped&&a.trigger(t)}return e},fire:function(t,e){var n=new i(t);r.each(e,function(t,e){n[e]=t}),this.trigger(n)}}},function(t,e,n){"use strict";var r=n(1),i=n(39),a=function(t){this.canvas=t,this.el=t.get("el"),this.current=null,this.pre=null};r.augment(a,{tryTrigger:function(t,e){t.__listeners&&t.trigger(e)},getCurrent:function(t){var e=this.canvas,n=e.getPointByClient(t.clientX,t.clientY);this.point=n,this.pre=this.current,this.current=e.getShape(n.x,n.y)},mousemove:function(t){this.getCurrent(t);var e=this.point,n=this.canvas;if(n.has("canvas-mousemove")){var r=new i("canvas-mousemove",t,!0,!0);r.x=e.x,r.y=e.y,r.clientX=t.clientX,r.clientY=t.clientY,r.currentTarget=n,this.tryTrigger(n,r)}if(this.pre&&this.pre!==this.current){var a=new i("mouseleave",t,!0,!0);a.x=e.x,a.y=e.y,a.clientX=t.clientX,a.clientY=t.clientY,a.currentTarget=this.pre,a.target=this.pre,this.tryTrigger(this.pre,a)}if(this.current){var o=new i("mousemove",t,!0,!0);if(o.x=e.x,o.y=e.y,o.clientX=t.clientX,o.clientY=t.clientY,o.currentTarget=this.current,o.target=this.current,this.tryTrigger(this.current,o),this.pre!==this.current){var u=new i("mouseenter",t,!0,!0);u.x=e.x,u.y=e.y,u.clientX=t.clientX,u.clientY=t.clientY,u.currentTarget=this.current,u.target=this.current,this.tryTrigger(this.current,u)}}},mousedown:function(t){var e=this.point,n=this.canvas;if(n.has("canvas-mousedown")){var r=new i("canvas-mousedown",t,!0,!0);r.x=e.x,r.y=e.y,r.clientX=t.clientX,r.clientY=t.clientY,r.currentTarget=n,this.tryTrigger(n,r)}if(this.current){var a=new i("mousedown",t,!0,!0);a.x=e.x,a.y=e.y,a.clientX=t.clientX,a.clientY=t.clientY,a.currentTarget=this.current,a.target=this.current,this.tryTrigger(this.current,a)}},mouseup:function(t){var e=this.point,n=this.canvas;if(n.has("canvas-mouseup")){var r=new i("canvas-mouseup",t,!0,!0);r.x=e.x,r.y=e.y,r.clientX=t.clientX,r.clientY=t.clientY,r.currentTarget=n,this.tryTrigger(n,r)}if(this.current){var a=new i("mouseup",t,!0,!0);a.x=e.x,a.y=e.y,a.clientX=t.clientX,a.clientY=t.clientY,a.currentTarget=this.current,a.target=this.current,this.tryTrigger(this.current,a)}},click:function(t){this.getCurrent(t);var e=this.point,n=this.canvas;if(n.has("canvas-click")){var r=new i("canvas-click",t,!0,!0);r.x=e.x,r.y=e.y,r.clientX=t.clientX,r.clientY=t.clientY,r.currentTarget=n,this.tryTrigger(n,r)}if(this.current){var a=new i("click",t,!0,!0);a.x=e.x,a.y=e.y,a.clientX=t.clientX,a.clientY=t.clientY,a.currentTarget=this.current,a.target=this.current,this.tryTrigger(this.current,a)}},dblclick:function(t){var e=this.point,n=this.canvas;if(n.has("canvas-dblclick")){var r=new i("canvas-dblclick",t,!0,!0);r.x=e.x,r.y=e.y,r.clientX=t.clientX,r.clientY=t.clientY,r.currentTarget=n,this.tryTrigger(n,r)}if(this.current){var a=new i("dblclick",t,!0,!0);a.x=e.x,a.y=e.y,a.clientX=t.clientX,a.clientY=t.clientY,a.currentTarget=this.current,a.target=this.current,this.tryTrigger(this.current,a)}},mouseout:function(t){var e=this.point,n=this.canvas,r=new i("canvas-mouseleave",t,!0,!0);r.x=e.x,r.y=e.y,r.currentTarget=n,this.tryTrigger(n,r)},mouseover:function(t){var e=this.canvas,n=new i("canvas-mouseenter",t,!0,!0);n.currentTarget=e,this.tryTrigger(e,n)}}),t.exports=a},function(t,e,n){function r(t,e,n){for(var r,i=t.length-1;i>=0;i--){var a=t[i];if(a.__cfg.visible&&a.__cfg.capture&&(a.isGroup?r=a.getShape(e,n):a.isHit(e,n)&&(r=a)),r)break}return r}function i(t){if(!t.__cfg&&t!==l){var e=t.superclass.constructor;e&&!e.__cfg&&i(e),t.__cfg={},a.mix(!0,t.__cfg,e.__cfg),a.mix(!0,t.__cfg,t.CFG)}}var a=n(1),o=n(2).Vector3,u=n(55),s=n(124),c={},l=function(t){l.superclass.constructor.call(this,t),this.set("children",[]),this._beforeRenderUI(),this._renderUI(),this._bindUI()};a.extend(l,u),a.augment(l,{isGroup:!0,canFill:!0,canStroke:!0,getDefaultCfg:function(){return i(this.constructor),a.mix(!0,{},this.constructor.__cfg)},_beforeRenderUI:function(){},_renderUI:function(){},_bindUI:function(){},addShape:function(t,e){var n,r=this.get("canvas");e=e||{};var i=c[t];if(i||(i=a.ucfirst(t),c[t]=i),e.attrs){var o=e.attrs;if("text"===t){var u=r.get("fontFamily");u&&(o.fontFamily=o.fontFamily?o.fontFamily:u)}}return e.canvas=r,e.type=t,n=new s[i](e),this.add(n),n},addGroup:function(t,e){var n,r=this.get("canvas");if(e=a.mix({},e),a.isFunction(t))e?(e.canvas=r,e.parent=this,n=new t(e)):n=new t({canvas:r,parent:this}),this.add(n);else if(a.isObject(t))t.canvas=r,n=new l(t),this.add(n);else{if(void 0!==t)return!1;n=new l,this.add(n)}return n},renderBack:function(t,e){var n=this.get("backShape"),r=this.getBBox(),i=this.get("parent");return a.mix(e,{x:r.minX-t[3],y:r.minY-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2]}),n?n.attr(e):n=i.addShape("rect",{zIndex:-1,attrs:e}),this.set("backShape",n),i.sort(),n},removeChild:function(t,e){if(arguments.length>=2)this.contain(t)&&t.remove(e);else{if(1===arguments.length){if(!a.isBoolean(t))return this.contain(t)&&t.remove(!0),this;e=t}0===arguments.length&&(e=!0),l.superclass.remove.call(this,e)}return this},add:function(t){var e=this,n=e.get("children");if(a.isArray(t))a.each(t,function(t){var n=t.get("parent");n&&n.removeChild(t,!1),e.__setEvn(t)}),n.push.apply(n,t);else{var r=t,i=r.get("parent");i&&i.removeChild(r,!1),e.__setEvn(r),n.push(r)}return e},contain:function(t){var e=this.get("children");return e.indexOf(t)>-1},getChildByIndex:function(t){var e=this.get("children");return e[t]},getFirst:function(){return this.getChildByIndex(0)},getLast:function(){var t=this.get("children").length-1;return this.getChildByIndex(t)},__setEvn:function(t){var e=this;t.__cfg.parent=e,t.__cfg.context=e.__cfg.context,t.__cfg.canvas=e.__cfg.canvas,t.__cfg.totalMatrix=null;var n=t.__attrs.clip;n&&(n.setSilent("parent",e),n.setSilent("context",e.get("context")));var r=t.__cfg.children;r&&a.each(r,function(e){t.__setEvn(e)})},getBBox:function(){var t=this,e=1/0,n=-(1/0),r=1/0,i=-(1/0),u=t.get("children");a.each(u,function(t){if(t.get("visible")){var a=t.getBBox();if(!a)return!0;var u=new o(a.minX,a.minY,1),s=new o(a.minX,a.maxY,1),c=new o(a.maxX,a.minY,1),l=new o(a.maxX,a.maxY,1);t.apply(u),t.apply(s),t.apply(c),t.apply(l);var h=Math.min(u.x,s.x,c.x,l.x),f=Math.max(u.x,s.x,c.x,l.x),d=Math.min(u.y,s.y,c.y,l.y),p=Math.max(u.y,s.y,c.y,l.y);h<e&&(e=h),f>n&&(n=f),d<r&&(r=d),p>i&&(i=p)}});var s={minX:e,minY:r,maxX:n,maxY:i};return s.x=s.minX,s.y=s.minY,s.width=s.maxX-s.minX,s.height=s.maxY-s.minY,s},drawInner:function(t){for(var e=this.get("children"),n=0;n<e.length;n++){var r=e[n];r.draw(t)}return this},getCount:function(){return this.get("children").length},sort:function(){var t=this.get("children");return t.sort(function(t,e){return t.get("zIndex")-e.get("zIndex")}),this},find:function(t){return this.findBy(function(e){return e.get("id")===t})},findBy:function(t){var e=this.get("children"),n=null;return a.each(e,function(e){if(t(e)?n=e:e.findBy&&(n=e.findBy(t)),n)return!1}),n},findAllBy:function(t){var e=this.get("children"),n=[],r=[];return a.each(e,function(e){t(e)&&n.push(e),e.findAllBy&&(r=e.findAllBy(t),n=n.concat(r))}),n},getShape:function(t,e){var n,i=this,a=i.__attrs.clip,o=i.__cfg.children;return a?a.inside(t,e)&&(n=r(o,t,e)):n=r(o,t,e),n},clearTotalMatrix:function(){var t=this.get("totalMatrix");if(t){this.setSilent("totalMatrix",null);for(var e=this.__cfg.children,n=0;n<e.length;n++){var r=e[n];r.clearTotalMatrix()}}},clear:function(){for(var t=this.get("children");0!==t.length;)t[t.length-1].remove();return this},destroy:function(){this.get("destroyed")||(this.clear(),l.superclass.destroy.call(this))}}),t.exports=l},function(t,e,n){var r=n(1),i=n(146),a=new i;t.exports={tween:a,animate:function(t,e,n,i){var o=a.getNow(),u=r.mix({},t,{duration:e});a.animate(this).append(o,u,n,i),"silent"===a.get("status")&&a.play()}}},function(t,e,n){var r=n(1),i=n(2).Vector3,a=["strokeStyle","fillStyle","globalAlpha"],o=["circle","ellipse","fan","polygon","rect","path"],u={r:"R",opacity:"Opacity",lineWidth:"LineWidth",clip:"Clip",stroke:"Stroke",fill:"Fill",strokeOpacity:"Stroke",fillOpacity:"Fill",x:"X",y:"Y",rx:"Rx",ry:"Ry",re:"Re",rs:"Rs",width:"Width",height:"Height",img:"Img",x1:"X1",x2:"X2",y1:"Y1",y2:"Y2",points:"Points",p1:"P1",p2:"P2",p3:"P3",p4:"P4",text:"Text",radius:"Radius",textAlign:"TextAlign",textBaseline:"TextBaseline",font:"Font",fontSize:"FontSize",fontStyle:"FontStyle",fontVariant:"FontVariant",fontWeight:"FontWeight",fontFamily:"FontFamily",clockwise:"Clockwise",startAngle:"StartAngle",endAngle:"EndAngle",path:"Path"},s={stroke:"strokeStyle",fill:"fillStyle",opacity:"globalAlpha"};t.exports={canFill:!1,canStroke:!1,initAttrs:function(t){return this.__attrs={opacity:1,fillOpacity:1,strokeOpacity:1},this.attr(r.simpleMix(this.getDefaultAttrs(),t)),this},getDefaultAttrs:function(){return{}},attr:function(t,e){var n=this;if(0===arguments.length)return n.__attrs;if(r.isObject(t)){for(var i in t)if(a.indexOf(i)===-1){var o=t[i];n._setAttr(i,o)}return n.__afterSetAttrAll&&n.__afterSetAttrAll(t),n.clearBBox(),n}if(2===arguments.length){if(n._setAttr(t,e)!==!1){var s="__afterSetAttr"+u[t];n[s]&&n[s](e)}return n.clearBBox(),n}return n._getAttr(t)},clearBBox:function(){this.setSilent("box",null)},__afterSetAttrAll:function(){},_getAttr:function(t){return this.__attrs[t]},_setAttr:function(t,e){var n=this;if("clip"===t)n.__setAttrClip(e),n.__attrs.clip=e;else{n.__attrs[t]=e;var r=s[t];r&&(n.__attrs[r]=e)}return n},hasFill:function(){return this.canFill&&this.__attrs.fillStyle},hasStroke:function(){return this.canStroke&&this.__attrs.strokeStyle},__setAttrOpacity:function(t){return this.__attrs.globalAlpha=t,t},__setAttrClip:function(t){var e=this;return t&&o.indexOf(t.type)>-1?(null===t.get("canvas")&&(t=r.clone(t)),t.set("parent",e.get("parent")),t.set("context",e.get("context")),t.inside=function(n,r){var a=new i(n,r,1);return t.invert(a,e.get("canvas")),t.__isPointInFill(a.x,a.y)},t):null}}},function(t,e,n){function r(t){var e=t.elements;return 1===e[0]&&0===e[1]&&0===e[3]&&1===e[4]&&0===e[6]&&0===e[7]}function i(t){var e=t.elements;return 0===e[1]&&0===e[3]&&0===e[6]&&0===e[7]}function a(t,e){r(e)||(i(e)?(t.elements[0]*=e.elements[0],t.elements[4]*=e.elements[4]):t.multiply(e))}var o=n(1),u=n(2).Matrix3;t.exports={initTransform:function(){this.__m=new u},translate:function(t,e){return this.__m.translate(t,e),this.clearTotalMatrix(),this},rotate:function(t){return this.__m.rotate(t),this.clearTotalMatrix(),this},scale:function(t,e){return this.__m.scale(t,e),this.clearTotalMatrix(),this},rotateAtStart:function(t){var e=this.attr("x"),n=this.attr("y");Math.abs(t)>2*Math.PI&&(t=t/180*Math.PI),this.transform([["t",-e,-n],["r",t],["t",e,n]])},move:function(t,e){var n=this.get("x")||0,r=this.get("y")||0;this.translate(t-n,e-r),this.set("x",t),this.set("y",e)},transform:function(t){var e=this;return o.each(t,function(t){switch(t[0]){case"t":e.translate(t[1],t[2]);break;case"s":e.scale(t[1],t[2]);break;case"r":e.rotate(t[1]);break;case"m":e.__m=u.multiply(t[1],e.__m),e.clearTotalMatrix()}}),e},setTransform:function(t){return this.__m.identity(),this.transform(t)},getMatrix:function(){return this.__m},setMatrix:function(t){return this.__m=t,this.clearTotalMatrix(),this},apply:function(t,e){var n;return n=e?this._getMatrixByRoot(e):this.__m,t.applyMatrix(n),this},_getMatrixByRoot:function(t){var e=this;t=t||e;for(var n=e,r=[];n!==t;)r.unshift(n),n=n.get("parent");r.unshift(n);var i=new u;return o.each(r,function(t){i.multiply(t.__m)}),i},getTotalMatrix:function(){var t=this.__cfg.totalMatrix;if(!t){t=new u;var e=this.__cfg.parent;if(e){var n=e.getTotalMatrix();a(t,n)}a(t,this.__m),this.__cfg.totalMatrix=t}return t},clearTotalMatrix:function(){},invert:function(t){var e=this.getTotalMatrix();if(i(e))t.x/=e.elements[0],t.y/=e.elements[4];else{var n=e.getInverse();t.applyMatrix(n)}return this},resetTransform:function(t){var e=this.__m.to2DObject();r(this.__m)||t.transform(e.a,e.b,e.c,e.d,e.e,e.f)}}},function(t,e,n){var r={Rect:n(70),Circle:n(59),Ellipse:n(61),Path:n(66),Text:n(71),Line:n(64),Image:n(63),Polygon:n(67),Polyline:n(68),Arc:n(58),Fan:n(62),Cubic:n(60),Quadratic:n(69),Marker:n(65)};t.exports=r},function(t,e){t.exports={xAt:function(t,e,n,r,i){return e*Math.cos(t)*Math.cos(i)-n*Math.sin(t)*Math.sin(i)+r},yAt:function(t,e,n,r,i){return e*Math.sin(t)*Math.cos(i)+n*Math.cos(t)*Math.sin(i)+r},xExtrema:function(t,e,n){return Math.atan(-n/e*Math.tan(t))},yExtrema:function(t,e,n){return Math.atan(n/(e*Math.tan(t)))}}},function(t,e,n){function r(t,e,n){return{x:n.x+t,y:n.y+e}}function i(t,e){return{x:e.x+(e.x-t.x),y:e.y+(e.y-t.y)}}function a(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function o(t,e){return(t[0]*e[0]+t[1]*e[1])/(a(t)*a(e))}function u(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(o(t,e))}function s(t,e,n,r,i,a,s){var c=l.mod(l.degreeToRad(s),2*Math.PI),h=t.x,f=t.y,d=e.x,p=e.y,g=Math.cos(c)*(h-d)/2+Math.sin(c)*(f-p)/2,v=-1*Math.sin(c)*(h-d)/2+Math.cos(c)*(f-p)/2,y=g*g/(i*i)+v*v/(a*a);y>1&&(i*=Math.sqrt(y),a*=Math.sqrt(y));var m=Math.sqrt((i*i*(a*a)-i*i*(v*v)-a*a*(g*g))/(i*i*(v*v)+a*a*(g*g)));n===r&&(m*=-1),isNaN(m)&&(m=0);var _=m*i*v/a,x=m*-a*g/i,b=(h+d)/2+Math.cos(c)*_-Math.sin(c)*x,w=(f+p)/2+Math.sin(c)*_+Math.cos(c)*x,M=u([1,0],[(g-_)/i,(v-x)/a]),S=[(g-_)/i,(v-x)/a],k=[(-1*g-_)/i,(-1*v-x)/a],T=u(S,k);return o(S,k)<=-1&&(T=Math.PI),o(S,k)>=1&&(T=0),0===r&&T>0&&(T-=2*Math.PI),1===r&&T<0&&(T+=2*Math.PI),[t,b,w,i,a,M,T,c,r]}var c=n(1),l=n(7),h=n(6),f=n(27),d=n(38),p=n(125),g=n(2),v=g.Vector2,y=g.Vector3,m=g.Matrix3,_=["m","l","c","a","q","h","v","t","s","z"],x=function(t,e,n){this.preSegment=e,this.isLast=n,this.init(t,e)};c.augment(x,{init:function(t,e){var n=t[0];e=e||{endPoint:{x:0,y:0}};var a,o,u,c,l=_.indexOf(n)>=0,h=l?n.toUpperCase():n,f=t,d=e.endPoint,p=f[1],g=f[2];switch(h){default:break;case"M":c=l?r(p,g,d):{x:p,y:g},this.command="M",this.params=[d,c],this.subStart=c,this.endPoint=c;break;case"L":c=l?r(p,g,d):{x:p,y:g},this.command="L",this.params=[d,c],this.subStart=e.subStart,this.endPoint=c,this.isLast&&(this.endTangent=function(){return new v(c.x-d.x,c.y-d.y)});break;case"H":c=l?r(p,0,d):{x:p,y:d.y},this.command="L",this.params=[d,c],this.subStart=e.subStart,this.endPoint=c,this.endTangent=function(){return new v(c.x-d.x,c.y-d.y)};break;case"V":c=l?r(0,p,d):{x:d.x,y:p},this.command="L",this.params=[d,c],this.subStart=e.subStart,this.endPoint=c,this.endTangent=function(){return new v(c.x-d.x,c.y-d.y)};break;case"Q":l?(a=r(p,g,d),o=r(f[3],f[4],d)):(a={x:p,y:g},o={x:f[3],y:f[4]}),this.command="Q",this.params=[d,a,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return new v(o.x-a.x,o.y-a.y)};break;case"T":o=l?r(p,g,d):{x:p,y:g},"Q"===e.command?(a=i(e.params[1],d),this.command="Q",this.params=[d,a,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return new v(o.x-a.x,o.y-a.y)}):(this.command="TL",this.params=[d,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return new v(o.x-d.x,o.y-d.y)});break;case"C":l?(a=r(p,g,d),o=r(f[3],f[4],d),u=r(f[5],f[6],d)):(a={x:p,y:g},o={x:f[3],y:f[4]},u={x:f[5],y:f[6]}),this.command="C",this.params=[d,a,o,u],this.subStart=e.subStart,this.endPoint=u,this.endTangent=function(){return new v(u.x-o.x,u.y-o.y)};break;case"S":l?(o=r(p,g,d),u=r(f[3],f[4],d)):(o={x:p,y:g},u={x:f[3],y:f[4]}),"C"===e.command?(a=i(e.params[2],d),this.command="C",this.params=[d,a,o,u],this.subStart=e.subStart,this.endPoint=u,this.endTangent=function(){return new v(u.x-o.x,u.y-o.y)}):(this.command="SQ",this.params=[d,o,u],this.subStart=e.subStart,this.endPoint=u,this.endTangent=function(){return new v(u.x-o.x,u.y-o.y)});break;case"A":var y=p,m=g,x=f[3],b=f[4],w=f[5];c=l?r(f[6],f[7],d):{x:f[6],y:f[7]},this.command="A",this.params=s(d,c,b,w,y,m,x),this.subStart=e.subStart,this.endPoint=c;break;case"Z":this.command="Z",this.params=[d,e.subStart],this.subStart=e.subStart,this.endPoint=e.subStart}},isInside:function(t,e,n){var r=this,i=r.command,a=r.params,o=r.box;if(o&&!h.box(o.minX,o.maxX,o.minY,o.maxY,t,e))return!1;switch(i){default:break;case"M":return!1;case"TL":case"L":case"Z":return h.line(a[0].x,a[0].y,a[1].x,a[1].y,n,t,e);case"SQ":case"Q":return h.quadraticline(a[0].x,a[0].y,a[1].x,a[1].y,a[2].x,a[2].y,n,t,e);case"C":return h.cubicline(a[0].x,a[0].y,a[1].x,a[1].y,a[2].x,a[2].y,a[3].x,a[3].y,n,t,e);case"A":var u=a,s=u[1],c=u[2],l=u[3],f=u[4],d=u[5],p=u[6],g=u[7],v=u[8],_=l>f?l:f,x=l>f?1:l/f,b=l>f?f/l:1;u=new y(t,e,1);var w=new m;return w.translate(-s,-c),w.rotate(-g),w.scale(1/x,1/b),u.applyMatrix(w),h.arcline(0,0,_,d,d+p,1-v,n,u.x,u.y)}return!1},draw:function(t){var e,n,r,i=this.command,a=this.params;switch(i){default:break;case"M":t.moveTo(a[1].x,a[1].y);break;case"TL":case"L":t.lineTo(a[1].x,a[1].y);break;case"SQ":case"Q":e=a[1],n=a[2],t.quadraticCurveTo(e.x,e.y,n.x,n.y);break;case"C":e=a[1],n=a[2],r=a[3],t.bezierCurveTo(e.x,e.y,n.x,n.y,r.x,r.y);break;case"A":var o=a,u=o[1],s=o[2],c=u,l=s,h=o[3],f=o[4],d=o[5],p=o[6],g=o[7],v=o[8],y=h>f?h:f,m=h>f?1:h/f,_=h>f?f/h:1;t.translate(c,l),t.rotate(g),t.scale(m,_),t.arc(0,0,y,d,d+p,1-v),t.scale(1/m,1/_),t.rotate(-g),t.translate(-c,-l);break;case"Z":t.closePath()}},getBBox:function(t){var e,n,r,i,a=t/2,o=this.params;switch(this.command){default:case"M":case"Z":break;case"TL":case"L":this.box={minX:Math.min(o[0].x,o[1].x)-a,maxX:Math.max(o[0].x,o[1].x)+a,minY:Math.min(o[0].y,o[1].y)-a,maxY:Math.max(o[0].y,o[1].y)+a};break;case"SQ":case"Q":for(n=d.extrema(o[0].x,o[1].x,o[2].x),r=0,i=n.length;r<i;r++)n[r]=d.at(o[0].x,o[1].x,o[2].x,n[r]);for(n.push(o[0].x,o[2].x),e=d.extrema(o[0].y,o[1].y,o[2].y),r=0,i=e.length;r<i;r++)e[r]=d.at(o[0].y,o[1].y,o[2].y,e);e.push(o[0].y,o[2].y),this.box={minX:Math.min.apply(Math,n)-a,maxX:Math.max.apply(Math,n)+a,minY:Math.min.apply(Math,e)-a,maxY:Math.max.apply(Math,e)+a};break;case"C":for(n=f.extrema(o[0].x,o[1].x,o[2].x,o[3].x),r=0,i=n.length;r<i;r++)n[r]=f.at(o[0].x,o[1].x,o[2].x,o[3].x,n[r]);for(e=f.extrema(o[0].y,o[1].y,o[2].y,o[3].y),r=0,i=e.length;r<i;r++)e[r]=f.at(o[0].y,o[1].y,o[2].y,o[3].y,e[r]);n.push(o[0].x,o[3].x),e.push(o[0].y,o[3].y),this.box={minX:Math.min.apply(Math,n)-a,maxX:Math.max.apply(Math,n)+a,minY:Math.min.apply(Math,e)-a,maxY:Math.max.apply(Math,e)+a};break;case"A":var u=o,s=u[1],c=u[2],l=u[3],h=u[4],g=u[5],v=u[6],y=u[7],m=u[8],_=g,x=g+v,b=p.xExtrema(y,l,h),w=1/0,M=-(1/0),S=[_,x];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var k=b+r;1===m?_<k&&k<x&&S.push(k):x<k&&k<_&&S.push(k)}for(r=0,i=S.length;r<i;r++){var T=p.xAt(y,l,h,s,S[r]);T<w&&(w=T),T>M&&(M=T)}var E=p.yExtrema(y,l,h),A=1/0,C=-(1/0),P=[_,x];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var N=E+r;1===m?_<N&&N<x&&P.push(N):x<N&&N<_&&P.push(N)}for(r=0,i=P.length;r<i;r++){var I=p.yAt(y,l,h,c,P[r]);I<A&&(A=I),I>C&&(C=I)}this.box={minX:w-a,maxX:M+a,minY:A-a,maxY:C+a}}}}),t.exports=x},function(t,e){var n=document.createElement("table"),r=document.createElement("tr"),i=/^\s*<(\w+|!)[^>]*>/,a={tr:document.createElement("tbody"),tbody:n,thead:n,tfoot:n,td:r,th:r,"*":document.createElement("div")};t.exports={getBoundingClientRect:function(t){var e=t.getBoundingClientRect(),n=document.documentElement.clientTop,r=document.documentElement.clientLeft;return{top:e.top-n,bottom:e.bottom-n,left:e.left-r,right:e.right-r}},getStyle:function(t,e){return window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.currentStyle[e]},modiCSS:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t},createDom:function(t){var e=i.test(t)&&RegExp.$1;e in a||(e="*");var n=a[e];return t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t,n.childNodes[0]},addEventListener:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}}):t.attachEvent?(t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}):void 0}}},function(t,e){t.exports={transform:function(t,e){t=t.clone();for(var n=0,r=e.length;n<r;n++){var i=e[n];switch(i[0]){case"t":t.translate(i[1],i[2]);break;case"s":t.scale(i[1],i[2]);break;case"r":t.rotate(i[1]);break;case"m":t.multiply(i[1]);break;default:continue}}return t},scale:function(t,e,n,r,i){return t=t.clone(),t.translate(-1*r,-1*i),t.scale(e,n),t.translate(r,i),t},rotate:function(t,e,n,r){return t=t.clone(),t.translate(-1*n,-1*r),t.rotate(e),t.translate(n,r),t},isMatrix3:function(t){return"matrix3"===t.type}}},function(t,e,n){"use strict";function r(t){this.space={},i.isString(t)?this.setStyle(t):t instanceof r&&this.copy(t)}var i=n(1),a=(n(7),n(131)),o=n(132),u=n(130),s={hex:/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6})$/,space:/^((?:rgb|hsl)a?)\(\s*([^\)]*)\)$/,rgbNum:/^(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*$/,rgbaNum:/^(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([0-9]*\.?[0-9]+)\s*$/,rgbPre:/^(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*$/,rgbaPre:/^(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*([0-9]*\.?[0-9]+)\s*$/,hsl:/^([0-9]*\.?[0-9]+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*$/,hsla:/^([0-9]*\.?[0-9]+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*([0-9]*\.?[0-9]+)\s*$/};i.augment(r,{getType:function(){return this.space.type},toRGB:function(){var t=this.space;if("rgb"!==t.type){var e=t.toRGB();this.setRGB(e.r,e.g,e.b,e.a)}},toHSL:function(){var t=this.space;if("hsl"!==t.type){var e=t.toHSL();this.setHSL(e.h,e.s,e.l,e.a)}},getR:function(){return this.toRGB(),this.space.r},getG:function(){return this.toRGB(),this.space.g},getB:function(){return this.toRGB(),this.space.b},getH:function(){return this.toHSL(),this.space.h},getS:function(){return this.toHSL(),this.space.s},getL:function(){return this.toHSL(),this.space.l},getA:function(){return this.space.a},multiplyA:function(t){return void 0===t?this:(void 0===this.space.a&&(this.space.a=1),this.space.a*=t,this)},getRGBStyle:function(){return this.toRGB(),this.space.getStyle()},getRGBPreStyle:function(){return this.toRGB(),this.space.getPreStyle()},getHSLStyle:function(){return this.toHSL(),this.space.getStyle()},getHex:function(){return this.toRGB(),this.space.getHex()},setRGB:function(t,e,n,r){return this.space=new o,this.space.setRGB(t,e,n,r),this},setHSL:function(t,e,n,r){return this.space=new a,this.space.setHSL(t,e,n,r),this},setHex:function(t){return this.space=new o,t=Math.floor(t),this.space.r=(t>>16&255)/255,this.space.g=(t>>8&255)/255,this.space.b=(255&t)/255,this},setStyle:function(t){var e;if(e=s.hex.exec(t)){var n=e[1],r=n.length;if(3===r)return this.setRGB(parseInt(n.charAt(0)+n.charAt(0),16)/255,parseInt(n.charAt(1)+n.charAt(1),16)/255,parseInt(n.charAt(2)+n.charAt(2),16)/255),this;if(6===r)return this.setRGB(parseInt(n.charAt(0)+n.charAt(1),16)/255,parseInt(n.charAt(2)+n.charAt(3),16)/255,parseInt(n.charAt(4)+n.charAt(5),16)/255),this}else if(e=s.space.exec(t)){var i,a=e[1],o=e[2];switch(a){case"rgb":if(i=s.rgbNum.exec(o))return this.setRGB(parseInt(i[1],10)/255,parseInt(i[2],10)/255,parseInt(i[3],10)/255),this;if(i=s.rgbPre.exec(o))return this.setRGB(parseInt(i[1],10)/100,parseInt(i[2],10)/100,parseInt(i[3],10)/100),this;break;case"rgba":if(i=s.rgbaNum.exec(o))return this.setRGB(parseInt(i[1],10)/255,parseInt(i[2],10)/255,parseInt(i[3],10)/255,parseFloat(i[4])),this;if(i=s.rgbaPre.exec(o))return this.setRGB(parseInt(i[1],10)/100,parseInt(i[2],10)/100,parseInt(i[3],10)/100,parseFloat(i[4])),this;break;case"hsl":if(i=s.hsl.exec(o))return this.setHSL(parseInt(i[1],10)/360,parseInt(i[2],10)/100,parseInt(i[3],10)/100),this;break;case"hsla":if(i=s.hsla.exec(o))return this.setHSL(parseInt(i[1],10)/360,parseInt(i[2],10)/100,parseInt(i[3],10)/100,parseFloat(i[4])),this}}else t=t.toLowerCase(),void 0!==u[t]?this.setHex(u[t]):this.setHex(u.black)},copy:function(t){this.space=t.space.clone()},clone:function(){return new r(this)}}),t.exports=r},function(t,e){t.exports={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,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(t,e,n){"use strict";var r=n(1),i=n(7),a=function(){this.h=0,this.s=0,this.l=0};r.augment(a,{type:"hsl",setHSL:function(t,e,n,r){this.h=i.mod(t,1),this.s=i.clamp(e,0,1),this.l=i.clamp(n,0,1),void 0!==r?this.a=i.clamp(r,0,1):this.a=void 0},toRGB:function(){function t(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+6*(e-t)*(2/3-n):t}return function(){var e=this,n=e.h,r=e.s,i=e.l;if(0===r)return{r:i,g:i,b:i,a:e.a};var a=i<=.5?i*(1+r):i+r-i*r,o=2*i-a;return{r:t(o,a,n+1/3),g:t(o,a,n),b:t(o,a,n-1/3),a:e.a}}}(),clone:function(){var t=new a;return t.h=this.h,t.s=this.s,t.l=this.l,t.a=this.a,t},copy:function(t){return this.h=t.h,this.s=t.s,this.l=t.l,this.a=t.a,this},getStyle:function(){var t=this;return void 0===t.a?"hsl("+Math.round(360*t.h)+", "+Math.round(100*t.s)+"%, "+Math.round(100*t.l)+"%)":"hsla("+Math.round(360*t.h)+", "+Math.round(100*t.s)+"%, "+Math.round(100*t.l)+"%, "+t.a+")"}}),t.exports=a},function(t,e,n){"use strict";var r=n(1),i=n(7),a=function(){this.r=0,this.g=0,this.b=0,this.type="rgb"};r.augment(a,{type:"rgb",setRGB:function(t,e,n,r){this.r=i.clamp(t,0,1),this.g=i.clamp(e,0,1),this.b=i.clamp(n,0,1),void 0!==r?this.a=i.clamp(r,0,1):this.a=void 0},toHSL:function(){var t,e,n=this.r,r=this.g,i=this.b,a=Math.max(n,r,i),o=Math.min(n,r,i),u=(o+a)/2;if(o===a)t=0,e=0;else{var s=a-o;switch(e=u<=.5?s/(a+o):s/(2-a-o),a){case n:t=(r-i)/s+(r<i?6:0);break;case r:t=(i-n)/s+2;break;case i:t=(n-r)/s+4}t/=6}return{h:t,s:e,l:u,a:this.a}},getHex:function(){var t=255*this.r<<16^255*this.g<<8^255*this.b<<0;return"#"+("000000"+t.toString(16)).slice(-6)},getStyle:function(){return void 0===this.a?"rgb("+Math.round(255*this.r).toString()+", "+Math.round(255*this.g).toString()+", "+Math.round(255*this.b).toString()+")":"rgba("+Math.round(255*this.r).toString()+", "+Math.round(255*this.g).toString()+", "+Math.round(255*this.b).toString()+", "+this.a+")"},getPreStyle:function(){return void 0===this.a?"rgb("+Math.round(100*this.r).toString()+"%, "+Math.round(100*this.g).toString()+"%, "+Math.round(100*this.b).toString()+"%)":"rgba("+Math.round(100*this.r).toString()+"%, "+Math.round(100*this.g).toString()+"%, "+Math.round(100*this.b).toString()+"%, "+this.a+")"},clone:function(){var t=new a;return t.r=this.r,t.g=this.g,t.b=this.b,t.a=this.a,t},copy:function(t){return this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this}}),t.exports=a},function(t,e,n){"use strict";var r=n(1),i=function(t,e,n,r){this.type=t,this.target=null,this.currentTarget=null,this.bubbles=n,this.cancelable=r,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.removed=!1,this.event=e};r.augment(i,{preventDefault:function(){this.defaultPrevented=this.cancelable&&!0},stopPropagation:function(){this.propagationStopped=!0},remove:function(){this.remove=!0},clone:function(){return r.clone(this)},toString:function(){return"[Event (type="+this.type+")]"}}),t.exports=i},function(t,e,n){var r=n(137);t.exports={interpolation:r.interpolation,unInterpolation:r.unInterpolation}},function(t,e,n){"use strict";function r(t,e){for(var n=[],i=Math.min(t.length,e.length),u=0;u<i;u++)o.isArray(t[u])&&o.isArray(e[u])?n[u]=r(t[u],e[u]):n[u]=a.singular(t[u],e[u]);return function(t){for(var e=[],r=0;r<i;r++)e[r]=n[r](t);return e}}function i(t,e){for(var n=[],r=Math.min(t.length,e.length),u=0;u<r;u++)o.isArray(t[u])&&o.isArray(e[u])?n[u]=i(t[u],e[u]):n[u]=a.unSingular(t[u],e[u]);return function(t){for(var e=Math.min(n.length,t.length),r=0,i=0,a=0;a<e;a++)r+=n[a](t[a]),i++;return 0===i?0:r/i}}var a=n(29),o=n(1);t.exports={array:r,unArray:i}},function(t,e,n){"use strict";function r(t,e){switch(e.getType()){case"rgb":return a(t,e);case"hsl":return u(t,e)}}function i(t,e){switch(e.getType()){case"rgb":return o(t,e);case"hsl":return s(t,e)}}function a(t,e){var n=t.getR(),r=t.getG(),i=t.getB(),a=t.getA(),o=e.getR()-n,u=e.getG()-r,s=e.getB()-i,l=e.getA();return void 0===a&&void 0===l||(a=a||1,l=(void 0===l?1:l)-a),function(t){var e=new c;return e.setRGB(n+o*t,r+u*t,i+s*t,void 0!==a&&void 0!==l?a+l*t:void 0),
  e.getRGBStyle()}}function o(t,e){var n=t.getR(),r=t.getG(),i=t.getB(),a=t.getA(),o=e.getR()-n,u=e.getG()-r,s=e.getB()-i,l=e.getA();return void 0===a&&void 0===l||(a=a||1,l=(void 0===l?1:l)-a),function(t){if(t=new c(t),!t.getType())return 0;var e=t.getR(),h=t.getG(),f=t.getB(),d=t.getA();d=d||1;var p=0,g=0;return 0!==o&&(p+=(e-n)/o,g++),0!==u&&(p+=(h-r)/u,g++),0!==s&&(p+=(f-i)/s,g++),0!==l&&l&&(p+=(d-a)/l,g++),0===g?0:p/g}}function u(t,e){var n=t.getH(),r=t.getS(),i=t.getL(),a=t.getA(),o=e.getH()-n,u=e.getS()-r,s=e.getL()-i,l=e.getA();return void 0===a&&void 0===l||(a=a||1,l=(void 0===l?1:l)-a),function(t){var e=new c;return e.setHSL(n+o*t,r+u*t,i+s*t,void 0!==a&&void 0!==l?a+l*t:void 0),e.getHSLStyle()}}function s(t,e){var n=t.getH(),r=t.getS(),i=t.getL(),a=t.getA(),o=e.getH()-n,u=e.getS()-r,s=e.getL()-i,l=e.getA();return void 0===a&&void 0===l||(a=a||1,l=(void 0===l?1:l)-a),function(t){if(t=new c(t),!t.getType())return 0;var e=t.getH(),h=t.getS(),f=t.getL(),d=t.getA();d=d||1;var p=0,g=0;return 0!==o&&(p+=(e-n)/o,g++),0!==u&&(p+=(h-r)/u,g++),0!==s&&(p+=(f-i)/s,g++),0!==l&&l&&(p+=(d-a)/l,g++),0===g?0:p/g}}var c=n(28);t.exports={color:r,unColor:i}},function(t,e,n){"use strict";function r(t,e){return a.isObject(t)&&a.isObject(e)?"matrix3"===t.type&&"matrix3"===e.type?l.matrix(t,e):"path"===t.type&&"path"===e.type?o.path(t,e):s.object(t,e):a.isArray(t)&&a.isArray(e)?u.array(t,e):c.singular(t,e)}function i(t,e){return"matrix3"===t.type&&"matrix3"===e.type?l.unMatrix(t,e):a.isArray(t)&&a.isArray(e)?u.unArray(t,e):a.isObject(t)&&a.isObject(e)?s.unObject(t,e):c.unSingular(t,e)}var a=n(1),o=n(141),u=n(135),s=n(140),c=n(29),l=n(138),h=n(2);h.Matrix3;t.exports={interpolation:r,unInterpolation:i}},function(t,e,n){"use strict";function r(t,e){for(var n=[],r=t.elements,i=e.elements,o=0;o<s;o++)n[o]=a.singular(r[o],i[o]);return function(t){for(var e=new u,r=e.elements,i=0;i<s;i++)r[i]=n[i](t);return e}}function i(t,e){for(var n=[],r=t.elements,i=e.elements,o=0;o<s;o++)n[o]=a.unSingular(r[o],i[o]);return function(t){for(var e=t.elements,r=0,i=0,a=0;a<s;a++){var o=n[a](e[a]);0!==o&&(r+=o,i++)}return r/i}}var a=n(29),o=n(2),u=o.Matrix3,s=9;t.exports={matrix:r,unMatrix:i}},function(t,e){"use strict";function n(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function r(t,e){return e-=t,function(n){return 0===e?0:(n-t)/e}}t.exports={number:n,unNumber:r}},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)r in e&&(n[r]=a.singular(t[r],e[r]));return function(t){var e={};for(var r in n)e[r]=n[r](t);return e}}function i(t,e){var n={};for(var r in t)r in e&&(n[r]=a.unSingular(t[r],e[r]));return function(t){var e=0,r=0;for(var i in n)i in t&&(e+=n[i](t[i]),r++);return 0===r?0:e/r}}var a=n(29);t.exports={object:r,unObject:i}},function(t,e,n){"use strict";function r(t,e){var n=i.toCurve(t.path,e.path),r=n[0],a=n[1];return function(n){var i=[];if(n>=1)return e.path;if(n<=0)return t.path;for(var o=0;o<r.length;o++){i[o]=[r[o][0]];for(var u=1;u<r[o].length;u++)i[o][u]=(a[o][u]-r[o][u])*n+r[o][u]}return i}}var i=n(40);t.exports={path:r}},function(t,e){"use strict";function n(t,e){var n=t.length;if(0===n)return NaN;var r=t[0];if(e<t[0])return NaN;if(e>=t[n-1])return t[n-1];for(var i=1;i<t.length&&!(e<t[i]);i++)r=t[i];return r}function r(t,e){var n=t.length;if(0===n)return NaN;var r,i=t[0];if(e>t[n-1])return NaN;if(e<t[0])return t[0];for(var a=1;a<t.length;a++){if(e<=t[a]){r=t[a];break}i=t[a]}return r}var i={PRECISION:1e-5,equal:function(t,e){return Math.abs(t-e)<i.PRECISION},clamp:function(t,e,n){return t<e?e:t>n?n:t},snapTo:function(t,e){var i=n(t,e),a=r(t,e);if(isNaN(i)||isNaN(a)){if(t[0]>=e)return t[0];var o=t[t.length-1];if(o<=e)return o}return Math.abs(e-i)<Math.abs(a-e)?i:a},snapFloor:function(t,e){return n(t,e)},snapCeiling:function(t,e){return r(t,e)},degreeToRad:function(t){return Math.PI/180*t},radToDegree:function(t){return 180/Math.PI*t},mod:function(t,e){return(t%e+e)%e}};t.exports=i},function(t,e,n){"use strict";function r(){this.elements=[1,0,0,0,1,0,0,0,1]}var i=n(1),a=n(7);r.multiply=function(t,e){var n=t.elements,i=e.elements,a=new r;return a.set(n[0]*i[0]+n[3]*i[1]+n[6]*i[2],n[0]*i[3]+n[3]*i[4]+n[6]*i[5],n[0]*i[6]+n[3]*i[7]+n[6]*i[8],n[1]*i[0]+n[4]*i[1]+n[7]*i[2],n[1]*i[3]+n[4]*i[4]+n[7]*i[5],n[1]*i[6]+n[4]*i[7]+n[7]*i[8],n[2]*i[0]+n[5]*i[1]+n[8]*i[2],n[2]*i[3]+n[5]*i[4]+n[8]*i[5],n[2]*i[6]+n[5]*i[7]+n[8]*i[8])},r.equal=function(t,e){for(var n=t.elements,r=e.elements,i=!0,o=0,u=n.length;o<u;o++)if(!a.equal(n[o],r[o])){i=!1;break}return i},i.augment(r,{type:"matrix3",set:function(t,e,n,r,i,a,o,u,s){var c=this.elements;return c[0]=t,c[3]=e,c[6]=n,c[1]=r,c[4]=i,c[7]=a,c[2]=o,c[5]=u,c[8]=s,this},get:function(t,e){return t--,e--,this.elements[3*e+t]},identity:function(){return this.set(1,0,0,0,1,0,0,0,1)},multiplyScalar:function(t){var e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this},det:function(){var t=this.elements,e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],u=t[6],s=t[7],c=t[8];return e*a*c-e*o*s-n*i*c+n*o*u+r*i*s-r*a*u},inverse:function(t){return this.copy(this.getInverse(t))},getInverse:function(t){var e=this.det();if(0===e){if(t)throw"matrix exception: get inverse matrix with 0 det";return console.warn("matrix cannot inverse"),new r}var n=this.elements,i=(n[0],n[3],n[6],n[1],n[4],n[7],n[2],n[5],n[8],new r);return i.set(n[4]*n[8]-n[7]*n[5],-(n[3]*n[8]-n[6]*n[5]),n[3]*n[7]-n[6]*n[4],-(n[1]*n[8]-n[7]*n[2]),n[0]*n[8]-n[6]*n[2],-(n[0]*n[7]-n[6]*n[1]),n[1]*n[5]-n[4]*n[2],-(n[0]*n[5]-n[3]*n[2]),n[0]*n[4]-n[3]*n[1]),i.multiplyScalar(1/e),i},transpose:function(){var t,e=this.elements;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this},multiply:function(t){return this.copy(r.multiply(this,t))},translate:function(t,e){var n=new r;return n.set(1,0,t,0,1,e,0,0,1),this.copy(r.multiply(n,this))},rotate:function(t){var e=new r;return e.set(Math.cos(t),-Math.sin(t),0,Math.sin(t),Math.cos(t),0,0,0,1),this.copy(r.multiply(e,this))},scale:function(t,e){var n=new r;return n.set(t,0,0,0,e,0,0,0,1),this.copy(r.multiply(n,this))},equal:function(t){return r.equal(this,t)},copy:function(t){for(var e=t.elements,n=this.elements,r=0,i=e.length;r<i;r++)n[r]=e[r];return this},clone:function(){for(var t=new r,e=t.elements,n=this.elements,i=0,a=n.length;i<a;i++)e[i]=n[i];return t},to2DObject:function(){var t=this.elements;return{a:t[0],b:t[1],c:t[3],d:t[4],e:t[6],f:t[7]}},from2DObject:function(t){var e=this.elements;return e[0]=t.a,e[1]=t.b,e[3]=t.c,e[4]=t.d,e[6]=t.e,e[7]=t.f,this}}),t.exports=r},function(t,e,n){"use strict";function r(t,e){if(1===arguments.length){var n=t;t=n[0],e=n[1]}this.x=t||0,this.y=e||0}var i=n(1),a=n(7);r.add=function(t,e){return new r(t.x+e.x,t.y+e.y)},r.sub=function(t,e){return new r(t.x-e.x,t.y-e.y)},r.lerp=function(t,e,n){return new r(t.x+(e.x-t.x)*n,t.y+(e.y-t.y)*n)},r.angle=function(t,e){var n=t.dot(e)/(t.length()*e.length());return Math.acos(a.clamp(n,-1,1))},r.direction=function(t,e){return t.x*e.y-e.x*t.y},i.augment(r,{type:"vector2",set:function(t,e){return this.x=t,this.y=e,this},setComponent:function(t,e){switch(t){case 0:return this.x=e,this;case 1:return this.y=e,this;default:throw new Error("the index out of range:"+t)}},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("the index out of range:"+t)}},copy:function(t){return this.x=t.x,this.y=t.y,this},add:function(t){return this.copy(r.add(this,t))},sub:function(t){return this.copy(r.sub(this,t))},subBy:function(t){return this.copy(r.sub(t,this))},multiplyScaler:function(t){return this.x*=t,this.y*=t,this},divideScaler:function(t){if(0!==t){var e=1/t;this.x*=e,this.y*=e}else this.x=0,this.y=0;return this},min:function(t){return this.x>t.x&&(this.x=t.x),this.y>t.y&&(this.y=t.y),this},max:function(t){return this.x<t.x&&(this.x=t.x),this.y<t.y&&(this.y=t.y),this},clamp:function(t,e){return this.x<t.x?this.x=t.x:this.x>e.x&&(this.x=e.x),this.y<t.y?this.y=t.y:this.y>e.y&&(this.y=e.y),this},clampScale:function(){var t,e;return function(n,i){return void 0===t&&(t=new r,e=new r),t.set(n,n),e.set(i,i),this.clamp(t,e)}}(),floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},roundToZero:function(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this},negate:function(){return this.x=-this.x,this.y=-this.y,this},dot:function(t){return this.x*t.x+this.y*t.y},lengthSq:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.lengthSq())},normalize:function(){return this.divideScaler(this.length())},distanceToSquared:function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},angleTo:function(t,e){var n=this.angle(t),i=r.direction(this,t)>=0;return e?i?2*Math.PI-n:n:i?n:2*Math.PI-n},vertical:function(t){return t?new r(this.y,-this.x):new r(-this.y,this.x)},angle:function(t){return r.angle(this,t)},setLength:function(t){var e=this.length();return 0!==e&&t!==e&&this.multiplyScaler(t/e),this},isZero:function(){return 0===this.x&&0===this.y},lerp:function(t,e){return this.copy(r.lerp(this,t,e))},equal:function(t){return a.equal(this.x,t.x)&&a.equal(this.y,t.y)},clone:function(){return new r(this.x,this.y)},rotate:function(t){var e=this.x*Math.cos(t)-this.y*Math.sin(t),n=this.x*Math.sin(t)+this.y*Math.cos(t);return this.x=e,this.y=n,this}}),t.exports=r},function(t,e,n){"use strict";function r(t,e,n){if(1===arguments.length)if(i.isArray(t)){var r=t;t=r[0],e=r[1],n=r[2]}else if("vector2"===t.type){var a=t;t=a.x,e=a.y,n=1}this.x=t||0,this.y=e||0,this.z=n||0}var i=n(1),a=n(7);r.add=function(t,e){return new r(t.x+e.x,t.y+e.y,t.z+e.z)},r.sub=function(t,e){return new r(t.x-e.x,t.y-e.y,t.z-e.z)},r.lerp=function(t,e,n){return new r(t.x+(e.x-t.x)*n,t.y+(e.y-t.y)*n,t.z+(e.z-t.z)*n)},r.cross=function(t,e){var n=t.x,i=t.y,a=t.z,o=e.x,u=e.y,s=e.z;return new r(i*s-a*u,a*o-n*s,n*u-i*o)},r.angle=function(t,e){var n=t.dot(e)/(t.length()*e.length());return Math.acos(a.clamp(n,-1,1))},i.augment(r,{type:"vector3",set:function(t,e,n){return this.x=t,this.y=e,this.z=n,this},setComponent:function(t,e){switch(t){case 0:return this.x=e,this;case 1:return this.y=e,this;case 2:return this.z=e,this;default:throw new Error("index is out of range:"+t)}},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range:"+t)}},add:function(t){return this.copy(r.add(this,t))},sub:function(t){return this.copy(r.sub(this,t))},subBy:function(t){return this.copy(r.sub(t,this))},multiplyScaler:function(t){return this.x*=t,this.y*=t,this.z*=t,this},divideScaler:function(t){if(0!==t){var e=1/t;this.x*=e,this.y*=e,this.z*=e}else this.x=0,this.y=0,this.z=0;return this},min:function(t){return this.x>t.x&&(this.x=t.x),this.y>t.y&&(this.y=t.y),this.z>t.z&&(this.z=t.z),this},max:function(t){return this.x<t.x&&(this.x=t.x),this.y<t.y&&(this.y=t.y),this.z<t.z&&(this.z=t.z),this},clamp:function(t,e){return this.x<t.x?this.x=t.x:this.x>e.x&&(this.x=e.x),this.y<t.y?this.y=t.y:this.y>e.y&&(this.y=e.y),this.z<t.z?this.z=t.z:this.z>e.z&&(this.z=e.z),this},clampScale:function(){var t,e;return function(n,i){return void 0===t&&(t=new r,e=new r),t.set(n,n,n),e.set(i,i,i),this.clamp(t,e)}}(),floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this},roundToZero:function(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z},length:function(){return Math.sqrt(this.lengthSq())},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){return this.divideScaler(this.length())},setLength:function(t){var e=this.length();return 0!==e&&t!==e&&this.multiplyScaler(t/e),this},lerp:function(t,e){return this.copy(r.lerp(this,t,e))},cross:function(t){return this.copy(r.cross(this,t))},angle:function(t){return r.angle(this,t)},distanceToSquared:function(t){var e=this.x-t.x,n=this.y-t.y,r=this.z-t.z;return e*e+n*n+r*r},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},applyMatrix:function(t){var e=t.elements,n=e[0]*this.x+e[3]*this.y+e[6]*this.z,r=e[1]*this.x+e[4]*this.y+e[7]*this.z,i=e[2]*this.x+e[5]*this.y+e[8]*this.z;return this.x=n,this.y=r,this.z=i,this},copy:function(t){return this.x=t.x,this.y=t.y,this.z=void 0!==t.z?t.z:1,this},equal:function(t){return a.equal(this.x,t.x)&&a.equal(this.y,t.y)&&a.equal(this.z,t.z)},clone:function(){return new r(this.x,this.y,this.z)}}),t.exports=r},function(t,e,n){var r=n(147);r.Tween=n(75),r.Ease=n(73),t.exports=r},function(t,e,n){"use strict";var r=n(1),i=n(25),a=n(148),o=function(t){o.superclass.constructor.call(this,t),this._init()};o.ATTRS={time:0,createTime:null,playTime:null,pauseTimeSpace:0,available:!1,canvases:[],tweens:[],endTime:0,autoPlay:!1,status:"silent",autoDraw:!0},r.extend(o,i),r.augment(o,{_init:function(){var t=this.get("autoPlay");this.set("createTime",+new Date),t&&this.play()},_trySetEndTime:function(t){var e=this;r.isObject(t)?e._setEndTime(t):r.isArray(t)&&r.each(t,function(t,n){e._setEndTime(t)})},_trySetCanvases:function(t){var e=this;r.isObject(t)?e._setCanvases(t):r.isArray(t)&&r.each(t,function(t,n){e._setCanvases(t)})},_setEndTime:function(t){var e=this.get("endTime"),n=t.endTime;n>e&&this.set("endTime",n)},_setCanvases:function(t){var e=t.canvas,n=this.get("canvases");n.indexOf(e)===-1&&n.push(e)},_resetTweens:function(){var t=this.get("tweens");t.sort(function(t,e){return e.get("startTime")-t.get("startTime")}),r.each(t,function(t){t.reset()})},_getTime:function(){var t=this.get("playTime"),e=this.get("pauseTimeSpace");return+new Date-t+e},_refresh:function(t){for(var e,n,i=this.get("tweens"),a=(this.get("canvases"),this.get("autoDraw")),o=[],u=[],s=0;s<i.length;s++)n=i[s],e=n.canvas,n.needsDestroy?n.destroy():n.destroyed||n.needsDestroy||n.tryStep(t),n.destroyed||o.push(n),r.inArray(u,e)||n.destroyed||u.push(e);a&&this.draw(),i.length>0&&0===o.length&&this.fire("animateend"),this.set("canvases",u),this.set("tweens",o)},_update:function(){if(this.get("available")){var t,e=this,n=e.get("tweens");n.length>0&&(t=e._getTime(),e._refresh(t)),e.fire("update"),r.requestAnimationFrame(function(){e._update()})}},animate:function(t,e){var n=new a({target:t,timeline:this,startTime:e?e:0});return n},add:function(t){var e,n=this.get("tweens");return r.isArray(t)?e=n.concat(t):r.isObject(t)&&"tween"===t.type?(n.push(t),e=n):console.error("Timeline not Support this type"),this.set("tweens",e),this._trySetCanvases(t),this._trySetEndTime(t),this},getNow:function(){var t=this.get("playTime");return t?+new Date-t:0},getTime:function(){var t=this.get("playTime");return t?+new Date-t:0},play:function(){var t=this.get("status");return"silent"===t&&(this.set("playTime",+new Date),this.set("available",!0),this.set("status","playing"),this._update()),this},stop:function(){this.set("status","silent"),this.set("available",!1),this.set("pauseTimeSpace",0),this._resetTweens(),this._refresh(0),this.draw()},pause:function(){var t=this.get("available");return t&&this.set("pauseTimeSpace",+new Date-this.get("playTime")),this.set("available",!1),this.set("status","silent"),this},reset:function(){this.set("status","silent"),this.set("available",!1),this.set("pauseTimeSpace",0),this.set("playTime",0),this.set("endTime",0),this.set("tweens",[]),this.set("canvases",[])},draw:function(){for(var t,e=this.get("canvases"),n=0;n<e.length;n++)t=e[n],!t.get("destroyed")&&t.draw()}}),t.exports=o},function(t,e,n){"use strict";var r=n(1),i=n(74),a=(n(25),n(75)),o=function(t){r.mix(this,t)};r.augment(o,{target:null,timeline:null,startTime:null,append:function(t,e,n,o){var u,s=r.guid("tween_"),c=this.target,l=(this.tweens,this.timeline),h=this.startTime,f=i.getKeyFrameByProps(c,e),d=f[0],p=f[1],g=i.getInterpolations(d,p);return g.matrix||0!==i.getObjectLength(g.attrs)||p.onUpdate?(t=t?t:h,e&&e.delay&&(t+=e.delay),u=new a({id:s,canvas:c.get("canvas"),startTime:t,target:c,easing:n,callBack:o,startKeyFrame:d,endKeyFrame:p,interpolations:g,duration:e.duration?e.duration:1e3,repeat:!!e.repeat&&e.repeat,destroyTarget:!!e.destroy&&e.destroy}),l&&l.add(u),this):this}}),t.exports=o},function(t,e,n){var r=n(150);t.exports=r},function(t,e){"use strict";function n(t,e,r){r=r||0;for(var i in e)if(e.hasOwnProperty(i)){var u=e[i];null!==u&&o.isObject(u)?(o.isObject(t[i])||(t[i]={}),r<a?n(t[i],e[i],r+1):t[i]=e[i]):o.isArray(u)?(t[i]=[],t[i]=t[i].concat(u)):void 0!==u&&(t[i]=e[i])}}var r=Object.prototype,i=r.toString,a=5,o={substitute:function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]}):t},ucfirst:function(t){return t+="",t.charAt(0).toUpperCase()+t.substring(1)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},isBoolean:function(t){return"boolean"==typeof t},isFunction:function(t){return"function"==typeof t},isArray:"isArray"in Array?Array.isArray:function(t){return"[object Array]"===i.call(t)},isDate:function(t){return"[object Date]"===i.call(t)},isNull:function(t){return void 0===t||null===t},notNull:function(t){return!o.isNull(t)},isBlank:function(t){if(o.isArray(t))return 0===t.length;if(o.isObject(t)){var e=0;return o.each(t,function(t,n){e++}),0===e}return!1},isObject:"[object Object]"===i.call(null)?function(t){return null!==t&&void 0!==t&&"[object Object]"===i.call(t)&&void 0===t.ownerDocument}:function(t){return"[object Object]"===i.call(t)},extend:function(t,e,n,r){o.isFunction(e)||(n=e,e=t,t=function(){});var i=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},a=i(e.prototype,t);return t.prototype=o.mix(a,t.prototype),t.superclass=i(e.prototype,e),o.mix(a,n),o.mix(t,r),t},augment:function(t){for(var e=o.toArray(arguments),n=1;n<e.length;n++){var r=e[n];o.isFunction(r)&&(r=r.prototype),o.mix(t.prototype,r)}},toArray:function(t){return t&&t.length?Array.prototype.slice.call(t):[]},mix:function(){var t=o.toArray(arguments),e=t[0];if(e===!0){e=t[1];for(var r=2;r<t.length;r++){var i=t[r];n(e,i)}}else for(var r=1;r<t.length;r++){var i=t[r];for(var a in i)i.hasOwnProperty(a)&&"constructor"!==a&&(e[a]=i[a])}return e},each:function(t,e){if(t)if(o.isObject(t)){for(var n in t)if(t.hasOwnProperty(n)){var r=e(t[n],n);if(r===!1)break}}else if(t.length)for(var i=0;i<t.length;i++){var r=e(t[i],i);if(r===!1)break}},requestAnimationFrame:function(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return setTimeout(t,16)};return e(t)},cancelAnimationFrame:function(t){var e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||function(t){return clearTimeout(t)};return e(t)}};t.exports=o},function(t,e,n){"use strict";function r(t,e){var n=e.toString(),r=n.indexOf(".");if(r===-1)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))}function i(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}var a=n(149);a.mix(a,{mixin:function(t,e){if(t&&e){t._mixins=e,t.ATTRS=t.ATTRS||{};var n={};a.each(e,function(e){a.augment(t,e);var r=e.ATTRS;r&&a.mix(n,r)}),t.ATTRS=a.mix(n,t.ATTRS)}},map:function(t,e){var n=[];return a.each(t,function(t,r){n.push(e(t,r))}),n},filter:function(t,e){var n=[];return a.each(t,function(t,r){e(t,r)&&n.push(t)}),n},guid:function(){var t={};return function(e){return e=e||"g",t[e]?t[e]+=1:t[e]=1,e+t[e]}}(),inArray:function(t,e){return a.indexOf(t,e)!==-1},indexOf:function(t,e){var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var r=-1,i=0;i<t.length;i++)if(t[i]===e){r=i;break}return r},remove:function(t,e){var n=a.indexOf(t,e);n!==-1&&t.splice(n,1)},empty:function(t){if(!(t instanceof Array))for(var e=t.length-1;e>=0;e--)delete t[e];t.length=0},equalsArray:function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(t.length!==e.length)return!1;for(var n=!0,r=0;r<t.length;r++)if(t[r]!==e[r]){n=!1;break}return n},wrapBehavior:function(t,e){var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n},getWrapBehavior:function(t,e){return t["_wrap_"+e]},fixedBase:function(t,e){return r(t,e)},length:function(t){if(a.isArray(t))return t.length;if(a.isObject(t)){var e=0;return a.each(t,function(){e++}),e}return 0},clone:function(t){if("object"!=typeof t||null===t)return t;var e;if(a.isArray(t)){e=[];for(var n=0,r=t.length;n<r;n++)"object"==typeof t[n]&&null!=t[n]?e[n]=a.clone(t[n]):e[n]=t[n]}else{e={};for(var i in t)"object"==typeof t[i]&&null!=t[i]?e[i]=a.clone(t[i]):e[i]=t[i]}return e},simpleMix:function(t,e,n,r){return e&&i(t,e),n&&i(t,n),r&&i(t,r),t}}),t.exports=a},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}var a=n(4),o=n(30),u=i(o),s=n(81),c=n(188),l=r(c),h=n(11),f=r(h),d="#199CFB",p="#199CFB",g=function t(e,n,r,i,o){var u=a.Util.mix({itemType:e,dim:n,channel:r,range:i},o);t.superclass.constructor.call(this,u)};g.ATTRS={itemType:null,dim:null,range:null,channel:null,scaleCfg:{},legendCfg:{},nice:!0},a.Util.extend(g,f.default),a.Util.augment(g,{init:function(){var t=this,e=this.get("graph");e.on("beforerender",function(){t._createScale(),t._mapping(),t.get("legendCfg")&&t._createLegend()})},_trainCategoryScale:function(t,e){var n=this.get("dim"),r=this.get("graph"),i=r.get(t+"s"),a={},o=[];return i.forEach(function(t){a[t[n]]||(a[t[n]]=!0,o.push(t[n]))}),o},_trainNumberScale:function(t,e){var n=this.get("dim"),r=this.get("graph"),i=r.get(t+"s"),a=[1/0,-(1/0)];return i.forEach(function(t){a[0]>t[n]&&(a[0]=t[n]),a[1]<t[n]&&(a[1]=t[n])}),a},_getScaleType:function(){var t=this.get("itemType"),e=this.get("dim"),n=this.get("graph"),r=n.get(t+"s"),i=this.get("scaleCfg");return i.type||(a.Util.isNumber(r[0][e])?i.type="linear":i.type="ordinal"),a.Util.ucfirst(i.type)},_createScale:function(){var t=this.get("itemType"),e=this.get("scaleCfg"),n=this._getScaleType(),r=new u["scale"+n],i=this.get("nice"),o=this.get("range"),s=void 0;s="Ordinal"===n?this._trainCategoryScale(t,r):this._trainNumberScale(t,r);var c=o.length,l=s.length;if(c!==l){var h=(s[1]-s[0])/(c-1);o.forEach(function(t,e){s[e]=s[0]+e*h})}s[0]===s[1]&&(s[0]>0?s[0]=0:s[0]<0?s[1]=0:s[0]=-1),r.range(o),r.domain(s),i!==!1&&r.nice&&r.nice(),a.Util.isFunction(e.callBack)&&e.callBack(r,s),this.set("scale",r)},_getLegend:function(){var t=this.get("channel"),e=this.get("scale"),n=this.get("itemType"),r="node"===n?"circle":"line",i=this.get("legendCfg"),o=i.callback,u=l.default["legend"+a.Util.ucfirst(t)]();if("size"===t)if("node"===n){var s=e.copy();s.range([4,16]),u.scale(s).shape(r).shapePadding(8)}else{var c=e.copy();c.range([2,16]),u.scale(c).shape(r).shapePadding(8)}else"node"===n?u.scale(e).shape(r).shapePadding(8).shapeRadius(5):u.scale(e).shape(r);return a.Util.isFunction(o)&&o(u),u},_createLegend:function(){var t=10,e=this.get("channel"),n=this.get("legendCfg"),r=this.get("graph"),i=r.get("width"),o=r.get("height"),u=n.position?n.position:"br",c=r.get("graphContainer"),l=n.marginTop?n.marginTop:0,h=n.marginLeft?n.marginLeft:0,f=n.marginBottom?n.marginBottom:0,g=n.marginRight?n.marginRight:0,v=this._getLegend(),y=(0,s.select)(c).append("svg").style("position","absolute"),m=y.call(v).select(".legendCells"),_=y.call(v).select(".legendTitle"),x=m.selectAll(".swatch"),b=m.node(),w=b.getBBox(),M=a.Util.getNineBoxPosition(u,{x:0,y:0,width:i,height:o},w.width+2*t,w.height+2*t,[l+t,g+t,f+t,h+t]);if(_&&_.attr("font-size","14px"),"size"===e){var S=n.fill?n.fill:d,k=n.fill?n.fill:p;x.attr("fill",S),x.attr("stroke",k)}y.style("overflow","visible").style("padding",t+"px").style("top",M.y+"px").style("left",M.x+"px").style("width",w.width+"px").style("height",w.height+"px")},_mapping:function(){var t=this.get("graph"),e=this.get("dim"),n=this.get("itemType"),r=this.get("scale"),i=this.get("channel");t[n]()[i](function(t){return"node"===n&&"size"===i?2*r(t[e]):r(t[e])})}}),t.exports=g},function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}var a=n(4),o=n(11),u=i(o),s=n(104),c=n(30),l=r(c);a.Util.augment(s.Legend.Continuous,{_addVerticalTrigger:function(t,e,n){var r=this.get("rangeElement"),i=r.get(t+"HandleElement"),o=this.get("width"),u=this.get("trigerWidth")?this.get("trigerWidth"):16,s=i.addShape("polygon",{attrs:a.Util.mix({points:[[o/2+u,0],[o/2+1,0],[o/2+u,"min"===t?u:-u]]},e)}),c=i.addShape("text",{attrs:a.Util.mix(n,{x:o+8,y:"max"===t?-8:8,textAlign:"start",textBaseline:"middle"})}),l=this.get("layout"),h="vertical"===l?"ns-resize":"ew-resize";s.set("cursor",h),c.set("cursor",h),this.set(t+"ButtonElement",s),this.set(t+"TextElement",c)}});var h=function t(e,n,r,i,o){var u=a.Util.mix({itemType:e,dim:n,channel:r,range:i},o);t.superclass.constructor.call(this,u)};h.ATTRS={itemType:null,dim:null,range:null,channel:null,scaleCfg:{},legendCfg:{}},a.Util.extend(h,u.default),a.Util.augment(h,{init:function(){var t=this,e=this.get("graph");e.on("beforerender",function(){if(t._checkInput()){var n=t.get("legendCfg");t._createScale(),t._mapping(),n&&t._createLegend(),e.on("changesize",function(){t.updateLegendPosition()})}}),e.on("afterclear",function(){var e=t.get("legendCanvas"),n=t.get("filterCallback"),r=t.get("graph"),i=t.get("itemType");r["remove"+a.Util.ucfirst(i)+"Filter"](n),e.destroy()})},_trainCategoryScale:function(t){var e=this.get("dim"),n=this.get("graph"),r=n.get(t+"s"),i={},a=[];return r.forEach(function(t){i[t[e]]||(i[t[e]]=!0,a.push(t[e]))}),a},_trainNumberScale:function(t){var e=this.get("dim"),n=this.get("graph"),r=n.get(t+"s"),i=[1/0,-(1/0)];return r.forEach(function(t){i[0]>t[e]&&(i[0]=t[e]),i[1]<t[e]&&(i[1]=t[e])}),i},_getScaleType:function(){var t=this.get("itemType"),e=this.get("dim"),n=this.get("graph"),r=n.get(t+"s"),i=this.get("scaleCfg");return i.type||(a.Util.isNumber(r[0][e])?i.type="linear":i.type="ordinal"),a.Util.ucfirst(i.type)},_createScale:function(){var t=this.get("itemType"),e=this.get("scaleCfg"),n=this._getScaleType(),r=new l["scale"+n],i=this.get("range"),o=e.nice,u=e.domain;r.range(i),u||(u="Ordinal"===n?this._trainCategoryScale(t,r):this._trainNumberScale(t,r));var s=i.length,c=u.length;if(s!==c){var h=(u[1]-u[0])/(s-1);i.forEach(function(t,e){u[e]=u[0]+e*h})}u[0]===u[1]&&(u[0]>0?u[0]=0:u[0]<0?u[1]=0:u[0]=-1),r.domain(u),o!==!1&&r.nice&&r.nice(),a.Util.isFunction(e.callback)&&e.callback(r,u),this.set("scale",r)},_createLegend:function(){var t=this._getScaleType(),e=this.get("channel"),n=this.get("graph"),r=n.get("graphContainer"),i=new a.Canvas({containerDOM:r,width:200,height:200}),o=void 0;o="Ordinal"===t?this._createCatLegend(i):"color"===e?this._createContinuousColorLegend(i):this._createContinuousSizeLegend(i);var u=o.getBBox(),s=6,c=u.maxX-u.minX,l=u.maxY-u.minY;o.move(-u.minX+s,-u.minY+s),i.changeSize(c+2*s,l+2*s),this.set("legend",o),this.set("legendCanvas",i),this.set("legendWidth",c),this.set("legendHeight",l),this.updateLegendPosition(),i.draw()},updateLegendPosition:function(){var t=this.get("legend");if(t){var e=this.get("legendCanvas"),n=this.get("legendCfg"),r=n.marginTop?n.marginTop:0,i=n.marginLeft?n.marginLeft:0,o=n.marginBottom?n.marginBottom:0,u=n.marginRight?n.marginRight:0,s=n.position?n.position:"br",c=this.get("graph"),l=c.get("width"),h=c.get("height"),f=e.get("el"),d=this.get("legendWidth"),p=this.get("legendHeight"),g=a.Util.getNineBoxPosition(s,{x:0,y:0,width:l,height:h},d,p,[r,u,o,i]);f.style.position="absolute",f.style.top=g.y+"px",f.style.left=g.x+"px"}},_createCatLegend:function(t){var e=this.get("scale"),n=e.range(),r=e.domain(),i=this.get("itemType"),o=this.get("legendCfg"),u=[],c=a.Util.mix({items:u,checkable:!1},o);n.forEach(function(t,e){u.push({name:r[e],color:t,type:"node"===i?"circle":"line",layout:"vertical",marker:{symbol:"circle",radius:5,fill:t},checked:!0})});var l=t.addGroup(s.Legend.Category,c);return l},_createContinuousColorLegend:function(t){var e=this.get("itemType"),n=this.get("scale"),r=n.range(),i=n.domain(),o=(i[i.length-1]-i[0])/(r.length-1),u=this.get("legendCfg"),c=[],l=a.Util.mix({items:c,theme:"gradient",attrType:"color",titleText:e,title:{fill:"#333",textBaseline:"bottom"},width:15,height:150},u);r.forEach(function(t,e){var n=i[0]+o*e;c.push({name:n,value:e/(r.length-1),color:t})});var h=t.addGroup(s.Legend.Continuous,l);return this.reBindLegendUI(h,n),h},_createContinuousSizeLegend:function(t){var e=this.get("itemType"),n=this.get("scale"),r=n.range(),i=n.domain(),o=(i[i.length-1]-i[0])/(r.length-1),u=this.get("legendCfg"),c=[];r.forEach(function(t,e){var n=i[0]+o*e;c.push({name:n,value:e/(r.length-1)})});var l=a.Util.mix({items:c,attrType:"size",titleText:e,title:{fill:"#333",textBaseline:"bottom"},width:15,height:150},u),h=t.addGroup(s.Legend.Continuous,l);return this.reBindLegendUI(h,n),h},_mapping:function(){var t=this.get("graph"),e=this.get("dim"),n=this.get("itemType"),r=this.get("scale"),i=this.get("channel");t[n]()[i](function(t){return"node"===n&&"size"===i?2*r(t[e]):r(t[e])})},reBindLegendUI:function(t,e){var n=this.get("graph"),r=this.get("dim"),i=this.get("itemType"),o=e.domain(),u=o[0],s=o[o.length-1],c=[u,s],l=t.get("rangeElement"),h=this.get("legendCfg"),f=function(t){return t[r]>=c[0]&&t[r]<=c[1]},d=h.trigerWidth?h.trigerWidth:16,p=h.trigerMarginLeft?h.trigerMarginLeft:d/2;t.get("minTextElement").translate(p,-(16-d)/2),t.get("maxTextElement").translate(p,+(16-d)/2),n["add"+a.Util.ucfirst(i)+"Filter"](f),l.on("rangeChange",function(t){c[0]=u+(s-u)*(t.range[0]/100),c[1]=u+(s-u)*(t.range[1]/100),n.filter(i)}),t._updateElement=function(n,r){n=Number(n),r=Number(r);var i=t.get("minTextElement"),a=t.get("maxTextElement"),o=h.formatter?h.formatter(n):n,u=h.formatter?h.formatter(r):r;if(i.attr("text",o+""),a.attr("text",u+""),"color"===t.get("attrType")){var s=t.get("minButtonElement"),c=t.get("maxButtonElement");s.attr("fill",e(n)),c.attr("fill",e(r))}},t._updateElement(u,s),this.set("filterCallback",f)},_checkInput:function(){var t=this.get("itemType"),e=this.get("graph"),n=e.get(t+"s");return e&&n&&n.length>0}}),t.exports=h},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=n(4),a=n(155),o=r(a),u=n(11),s=r(u);i.Layouts.circle=o.default;var c=function t(e){t.superclass.constructor.call(this,e)};i.Util.extend(c,s.default),i.Util.augment(c,{init:function(){var t=this,e=this.get("graph");e.on("beforeinit",function(){var n=new o.default(t._attrs);e.set("layout",n)})}}),t.exports=c},function(t,e,n){"use strict";function r(t){i.Util.mix(this,t)}var i=n(4);i.Util.augment(r,{nodes:null,radius:null,sweep:null,avoidOverlap:!1,clockwise:!0,startAngle:1.5*Math.PI,width:null,height:null,center:null,execute:function(){var t=this,e=this.nodes,n=this.width?this.width:this.graphWidth,r=this.height?this.height:this.graphHeight,a=this.center?this.center:{x:n/2,y:r/2},o=this.avoidOverlap,u=this.clockwise,s=i.Util.isNull(this.sweep)?2*Math.PI-2*Math.PI/e.length:this.sweep,c=s/Math.max(1,e.length-1),l=this.radius,h=0,f=void 0;
  for(f=0;f<e.length;f++){var d=e[f],p=d.width,g=d.height;h=Math.max(h,p,g)}if(l=i.Util.isNumber(this.radius)?this.radius:e.length<=1?0:Math.min(r,n)/2-h,e.length>1&&o){h*=1.75;var v=Math.cos(c)-Math.cos(0),y=Math.sin(c)-Math.sin(0),m=Math.sqrt(h*h/(v*v+y*y));l=Math.max(m,l)}i.Util.each(e,function(e,n){var r=t.startAngle+n*c*(u?1:-1),i=l*Math.cos(r),o=l*Math.sin(r);e.x=a.x+i,e.y=a.y+o})}}),t.exports=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=n(4),a=n(76),o=r(a),u=n(11),s=r(u);i.Layouts["d3.force"]=o.default;var c=function t(e){t.superclass.constructor.call(this,e)};c.ATTRS={callback:null},i.Util.extend(c,s.default),i.Util.augment(c,{init:function(){var t=this,e=this.get("graph");e.on("beforeinit",function(){var n=new o.default(i.Util.mix({},t._attrs,{dynamicCallback:function(){e.updateNodesPosition()}}));e.set("layout",n),t.set("layout",n)})},destroy:function(){var t=this.get("layout");t.stop(),c.superclass.destroy.call(this)}}),t.exports=c},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=n(4),a=n(158),o=r(a),u=n(11),s=r(u);i.Layouts.dagre=o.default;var c=function t(e){t.superclass.constructor.call(this,e)};i.Util.extend(c,s.default),i.Util.augment(c,{init:function(){var t=this,e=this.get("graph");e.on("beforeinit",function(){var n=new o.default(t._attrs);e.set("layout",n)})}}),t.exports=c},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){a.Util.mix(this,t)}var a=n(4),o=n(191),u=r(o);a.Util.augment(i,{rankdir:"TB",align:void 0,nodesep:50,edgesep:10,ranksep:50,marginx:0,marginy:0,acyclicer:void 0,useEdgeControlPoint:!0,ranker:"network-simplex",getValue:function(t){var e=this[t];return a.Util.isFunction(e)?e():e},execute:function(){var t=this,e=this.nodes,n=this.edges,r={},i=new u.default.graphlib.Graph;i.setGraph({rankdir:this.getValue("rankdir"),align:this.getValue("align"),nodesep:this.getValue("nodesep"),edgesep:this.getValue("edgesep"),ranksep:this.getValue("ranksep"),marginx:this.getValue("marginx"),marginy:this.getValue("marginy"),acyclicer:this.getValue("acyclicer"),ranker:this.getValue("ranker")}),i.setDefaultEdgeLabel(function(){return{}}),e.forEach(function(t){i.setNode(t.id,{width:t.width,height:t.height}),r[t.id]=t}),n.forEach(function(t){i.setEdge(t.source,t.target)}),u.default.layout(i),i.nodes().forEach(function(t){var e=i.node(t);r[t].x=e.x,r[t].y=e.y}),i.edges().forEach(function(e,r){var a=i.edge(e);t.useEdgeControlPoint&&(n[r].controlPoints=a.points)})}}),t.exports=i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=n(4),a=n(160),o=r(a),u=n(11),s=r(u);i.Layouts.grid=o.default;var c=function t(e){t.superclass.constructor.call(this,e)};i.Util.extend(c,s.default),i.Util.augment(c,{init:function(){var t=this,e=this.get("graph");e.on("beforeinit",function(){var n=new o.default(t._attrs);e.set("layout",n)})}}),t.exports=c},function(t,e,n){"use strict";function r(t){i.Util.mix(this,t)}var i=n(4);i.Util.augment(r,{row:10,col:10,marginx:20,marginy:20,width:null,height:null,execute:function(){for(var t=this.nodes,e=this.width?this.width:this.graphWidth,n=this.height?this.height:this.graphHeight,r=this.center?this.center:{x:e/2,y:n/2},i=this.row,a=this.col,o=0;o<t.length;o++){var u=t[o];u.x=r.x-e/2+o%i/i*e+this.marginx,u.y=r.y-n/2+parseInt(o/a)/a*n+this.marginy}}}),t.exports=r},function(t,e,n){"use strict";function r(t){i.Util.mix(this,t)}var i=n(4);i.Util.augment(r,{dx:70,dy:30,execute:function(){var t=this.nodes,e=[],n=this.dy,r=this.dx,i=0,a=0;t.sort(function(t,e){return t.hierarchy-e.hierarchy}),t.forEach(function(t){e[t.hierarchy]?e[t.hierarchy].push(t):e[t.hierarchy]=[t]}),e.forEach(function(t){t.sort(function(t,e){return e.rank-t.rank});var e=-(1/0);a=0,t.forEach(function(t){t.y=a+t.height/2,t.x=i+t.width/2,a+=t.height+n,t.width>e&&(e=t.width)}),i+=e+r})}}),t.exports=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){var n=[],r={nodes:[],edges:[],maxRankNode:null},i={},o=-(1/0);return u.Util.each(t,function(t){t.links=[],t.edges=[],i[t.id]=t,u.Util.isNull(t.weight)&&(t.weight=1),u.Util.isNull(t.rank)&&(t.weight?t.rank=t.weight:t.rank=1)}),u.Util.each(e,function(e,n){var r=i[e.source],a=i[e.target];r.links.push(t.indexOf(a)),a.links.push(t.indexOf(r)),r.edges.push(n),a.edges.push(n),u.Util.isNull(e.weight)&&(e.weight=1)}),u.Util.each(t,function(r,i){r.visited||n.push(a(i,t,e))}),u.Util.each(t,function(t){delete t.links,delete t.edges,delete t.visited}),u.Util.each(n,function(t){var e=(0,c.default)(t),n=t.root;r.nodes=r.nodes.concat(e.nodes),r.edges=r.edges.concat(e.edges),n.rank>o&&(o=n.rank,r.maxRankNode=n)}),r}function a(t,e,n){var r={nodes:[],edges:[],root:null},i={},a=[],s=-(1/0);return o(t,e,function(t){var n=e[t];n.rank>s&&(s=n.rank,r.root=n),r.nodes.push(n),r.edges=r.edges.concat(n.edges)}),u.Util.each(r.edges,function(t){i[t]||(a.push(n[t]),i[t]=!0)}),r.edges=a,r}function o(t,e,n){var r=[t];for(e[t].visited=!0,n(t);r.length>0;){var i=r.pop();e[i].links.forEach(function(t){e[t].visited||(e[t].visited=!0,n(t),r.push(t))})}}var u=n(4),s=n(163),c=r(s);t.exports=i},function(t,e,n){"use strict";function r(t){var e=t.nodes,n=t.edges,r=t.root,u={};i.Util.each(e,function(t){t.to=[],t.from=[],u[t.id]=t}),i.Util.each(n,function(t){var e=u[t.source],n=u[t.target];e.to.push(t),n.from.push(t)}),a=[r],o=[];for(var s=function(){var t=-(1/0),e=void 0,n="target";i.Util.each(a,function(r){i.Util.each(r.to,function(r){a.indexOf(u[r[n]])===-1&&r.weight>t&&(t=r.weight,e=r)})}),e||(n="source",i.Util.each(a,function(r){i.Util.each(r.from,function(r){a.indexOf(u[r[n]])===-1&&r.weight>t&&(t=r.weight,e=r)})})),a.push(u[e[n]]),o.push(e)};a.length!==e.length;)s();return i.Util.each(e,function(t){delete t.to,delete t.from}),{nodes:a,edges:o}}var i=n(4),a=[],o=[];t.exports=r},function(t,e,n){"use strict";function r(t){i.Util.mix(this,t),this.init()}var i=n(4);i.Util.augment(r,{class:"node-tool",lists:[],init:function(){var t=this,e=this.graph,n=e.get("graphContainer"),r=this.class,a=i.Util.createDOM('<div class="'+r+'"></div>',{position:"absolute",visibility:"hidden"}),o=this.lists;n.appendChild(a),i.Util.each(o,function(e){e.callBack&&(e.callback=e.callBack);var n=i.Util.createDOM("<li>"+e.html+"</li>");n.on(e.event,function(){var n=t.getNode();i.Util.isString(e.callback)&&t[e.callback](n),i.Util.isFunction(e.callback)&&e.callback(n)}),a.appendChild(n)}),this.container=a},show:function(t,e,n){var r=this.container;r.show(),r.css({top:n+"px",left:e+"px"}),this.node=t},hide:function(){var t=this.container;t.hide()},getNode:function(){return this.node},showSource:function(t){var e=this.graph,n=t.getSourceItems();n=[t].concat(n),e.clearAllActived(),i.Util.each(n,function(t){"edge"===t.get("type")&&t.setActiveStatus(!0)}),!t.get("actived")&&e.setItemActived(t,!0),e.modal(n),this.hide()},showTargets:function(t){var e=this.graph,n=t.getTargetItems();e.clearAllActived(),n=[t].concat(n),i.Util.each(n,function(t){"edge"===t.get("type")&&t.setActiveStatus(!0)}),!t.get("actived")&&e.setItemActived(t,!0),e.modal(n),this.hide()},showAll:function(t){var e=this.graph,n=t.getRelativeItems();e.clearAllActived(),n=[t].concat(n),i.Util.each(n,function(t){"edge"===t.get("type")&&t.setActiveStatus(!0)}),!t.get("actived")&&e.setItemActived(t,!0),e.modal(n),this.hide()}}),t.exports=r},function(t,e,n){"use strict";function r(t){var e=t.attr("fill");return{stroke:e?e:"#666",strokeOpacity:.4,lineWidth:6,fill:null}}function i(t,e,n,r){if(r){var i=t.points,o=i[i.length-1],u=n.getPoint(.76),s=.86*n.attr("lineWidth");s<8&&(s=8),u||(u={x:0,y:0});var c=e.addShape("polyline",{attrs:a.Util.mix({points:[[-s/4,s/2],[s/4,0],[-s/4,-s/2]]},r),class:"arrow"});return a.Util.arrowTo(c,u.x,u.y,u.x,u.y,o.x,o.y),c}}var a=n(4);(0,a.registNode)("plugin-template-net-analysis-node-shape",{afterDraw:function(t,e,n){var r=t.size,i=e.findBy(function(t){return t.hasClass("label")});if(i){i.attr("fontSize",12);var o=i.get("attrs"),u=e.addShape("text",{attrs:a.Util.mix({},o,{fill:"white",stroke:"white",lineWidth:4,fontSize:12}),freezePoint:i.get("freezePoint"),zIndex:4});i.hide=function(){return u.set("visible",!1),i.set("visible",!1),i},i.show=function(){return u.set("visible",!0),i.set("visible",!0),i},u.hide=function(){},u.show=function(){}}var s=void 0;s=a.Util.isFunction(this.acitvedShape)?this.acitvedShape(n):this.acitvedShape;var c=e.addShape(n.type,{attrs:a.Util.mix({},n.get("attrs"),s),zIndex:0}),l=s.lineWidth,h=a.Util.isNull(l)?.05:l/r[0];c.scale(1+h,1+h),e.set("acitvedOutterShape",c),c.hide(),e.sort()},style:function(){return{fillOpacity:.8,stroke:"#505050",lineWidth:.5}},acitvedShape:r,setActived:function(t,e){var n=t.get("graph"),r=t.getGroup(),i=r.get("acitvedOutterShape");if(e)i.show(),n.refresh();else{var o=t.getRelativeItems(),u=[t].concat(o);i.hide(),a.Util.each(u,function(t){"edge"===t.get("type")&&t.setActiveStatus(!1)}),n.unModal()}},getAnchorPoints:function(){return"auto"}},"circle"),(0,a.registEdge)("plugin-template-net-analysis-tree-edge-shape",{arrowStyle:null,afterDraw:function(t,e,n){var r=void 0;r=a.Util.isFunction(this.arrowStyle)?this.arrowStyle(n):this.arrowStyle,i(t,e,n,r)},style:function(){return{stroke:"#979797",strokeOpacity:.5}},setActived:function(){}}),(0,a.registEdge)("plugin-template-net-analysis-out-tree-edge-shape",{arrowStyle:null,afterDraw:function(t,e,n){var r=void 0;r=a.Util.isFunction(this.arrowStyle)?this.arrowStyle(n):this.arrowStyle,i(t,e,n,r),e.hide()},style:function(){return{stroke:"#979797",strokeOpacity:.5}},setActived:function(t,e){var n=t.getGroup();e?n.show():n.hide()}},"bezierQuadratic")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=n(4),a=n(11),o=r(a),u=n(161),s=r(u),c=n(30);n(167);var l=function t(e){t.superclass.constructor.call(this,e)};l.ATTRS={layout:null,layoutCfg:{},nodeWidth:200,minNodeSize:0,maxNodeSize:500,simplifyEdgeAble:!1},i.Util.extend(l,o.default),i.Util.augment(l,{init:function(){var t=this,e=this.get("graph");e.on("afterinit",function(){e.node().shape("plugin-template-analysis-sankey-node-shape"),e.edge().shape(function(t){return"runoff"===t.type?"plugin-template-analysis-sankey-runoff-edge-shape":"plugin-template-analysis-sankey-edge-shape"})}),e.on("beforerender",function(){t._initMap(),t._createScale(),t._initData(),t._setLayout()})},_createScale:function(){var t=new c.scaleLinear,e=this.get("nodeMap"),n=this.get("minNodeSize"),r=this.get("maxNodeSize"),a=-(1/0);i.Util.each(e,function(t){t.weight>a&&(a=t.weight)}),t.domain([0,a]),t.range([n,r]),this.set("scale",t)},_initMap:function(){var t=this.get("graph"),e=t.get("nodes"),n=t.get("edges"),r={},i={};e.forEach(function(t){r[t.id]=t}),n.forEach(function(t){i[t.id]=t}),this.set("nodeMap",r),this.set("edgeMap",i)},_initData:function(){var t=this.get("graph"),e=t.get("nodes"),n=t.get("edges"),r=this.get("nodeMap"),a=this.get("nodeWidth"),o=this.get("scale"),u=this.get("simplifyEdgeAble");i.Util.each(e,function(t){t.runoutWeight=0,t.inEdges=[],t.outEdges=[]}),i.Util.each(n,function(t){t.points=[],"runoff"!==t.type&&(t.simplifyEdgeAble=u)}),i.Util.each(n,function(t){var e=r[t.source];e.runoutWeight+=t.weight}),i.Util.each(e,function(t){var e=t.weight-t.runoutWeight;e>0&&n.push({source:t.id,target:t.id,type:"runoff",points:[0,0],weight:e})}),i.Util.each(n,function(t){var e=r[t.source],n=r[t.target];"runoff"!==t.type?(e.outEdges.push(t),n.inEdges.push(t)):e.outEdges.push(t)}),i.Util.each(e,function(t){t.size=[a,o(t.weight)]}),i.Util.each(n,function(t){t.size=o(t.weight)}),i.Util.each(e,function(t){t.inEdges.sort(function(t,e){return e.weight-t.weight}),t.outEdges.sort(function(t,e){return"runoff"===t.type||"runoff"!==e.type&&e.weight-t.weight});var e=0;i.Util.each(t.inEdges,function(n,r){var i=n.weight/t.weight;n.points[1]=e+i/2,n.inEdgeIndex=r,e+=i}),e=0,i.Util.each(t.outEdges,function(n,r){var i=n.weight/t.weight;n.points[0]=e+i/2,n.inEdgeIndex=r,e+=i})})},_setLayout:function(){var t=this.get("graph"),e=this.get("layoutCfg"),n=this.get("layout");n||(n=new s.default(e)),t.set("layout",n)}}),t.exports=l},function(t,e,n){"use strict";function r(t,e,n){var r=e.getModel(),i=e.getShapeCfg(),a=n.getModel(),o=n.getShapeCfg(),u=i.size[0],s=i.size[1],c=o.size[0],l=o.size[1],h=r.x,f=r.y,d=a.x,p=a.y;return[{x:h+u/2,y:f-s/2+t[0]*s},{x:d-c/2,y:p-l/2+t[1]*l}]}var i=n(4),a=n(168);(0,i.registNode)("plugin-template-analysis-sankey-node-shape",{draw:function(t,e){var n=i.Util.drawNode("rect",t,e),r=t.origin,o=r.nameText?i.Util.mix({},this.nameTextStyle,{text:r.nameText}):{},u=r.valueText?i.Util.mix({},this.valueTextStyle,{text:r.valueText}):{};return a.drawNodeTexts(t.size,e,o,u),n},nameTextStyle:{textAlign:"left",textBaseline:"top",fontWeight:100,fill:"#473A8D"},valueTextStyle:{textAlign:"left",fontWeight:900,textBaseline:"top",fill:"#473A8D"},getAnchorPoints:function(){return"auto"},style:function(){return{radius:0,stroke:"#69A0C1",strokeOpacity:1,fill:"l (90) 0:#E5F3FF 1:#B7DCFA",fillOpacity:1}}}),(0,i.registEdge)("plugin-template-analysis-sankey-edge-shape",{draw:function(t,e){var n=t.origin,i=n.simplifyEdgeAble,a=t.style,o=t.size,u=r(n.points,t.source,t.target,o),s=this.drawShape(u,o,a,e);return i&&((n.outEdgeIndex>2||n.inEdgeIndex>2)&&0!==n.inEdgeIndex||o<2)&&(s.hide(),e.set("simplifyShape",this.drawSimplify(u,o,a,e))),s},drawSimplify:function(t,e,n,r){return e=e>=2?e:2,n.fill="l (0) 0:"+n.fill+" 0.1:#fff 0.9:#fff 1:"+n.fill,r.addShape("path",{attrs:i.Util.mix({path:a.getSimplifyFlowCurvePath(t[0],t[1],e,e,this.rectRatio)},n)})},drawShape:function(t,e,n,r){return e=e>=2?e:2,r.addShape("path",{attrs:i.Util.mix({path:a.getFlowCurvePath(t[0],t[1],e,e,this.rectRatio)},n)})},style:function(){return{fill:"rgba(224, 238, 247, 0.87)"}},rectRatio:.1}),(0,i.registEdge)("plugin-template-analysis-sankey-runoff-edge-shape",{draw:function(t,e){var n=t.origin,i=r(n.points,t.source,t.target);return this.drawShape(i,t.size,t.style,e)},drawShape:function(t,e,n,r){return r.addShape("path",{attrs:i.Util.mix({path:a.getRunOffPath(t[0],e,this.radius)},n)})},style:function(){return{fill:"l (90) 0:rgba(236, 85, 64, 0.9) 1:rgba(236, 85, 64, 0.3)"}},radius:10})},function(t,e){"use strict";var n={getRunOffPath:function(t,e,n,r){var i=e;r||(r=n),e>n&&(i=n);var a=[],o={x:t.x,y:t.y-e/2},u={x:t.x+i,y:o.y+i},s={x:t.x+i,y:t.y+e/2+r},c={x:t.x,y:t.y+e/2+r};return a.push(["M",o.x,o.y]),a.push(["A",i,i,0,0,1,u.x,u.y]),a.push(["L",s.x,s.y]),a.push(["L",c.x,c.y]),a.push(["Z"]),a},getSimplifyFlowCurvePath:function(t,e,n,r,i){var a=e.x-t.x,o=a*i,u={x:t.x,y:t.y-r/2},s={x:e.x,y:e.y-n/2},c={x:t.x,y:t.y+r/2},l={x:e.x,y:e.y+n/2},h={x:t.x+o,y:t.y-r/2},f={x:e.x-o,y:e.y-n/2},d={x:t.x+o,y:t.y+r/2},p={x:e.x-o,y:e.y+n/2},g=[];return g.push(["M",u.x,u.y]),g.push(["L",h.x,h.y]),g.push(["L",d.x,d.y]),g.push(["L",c.x,c.y]),g.push(["L",u.x,u.y]),g.push(["M",f.x,f.y]),g.push(["L",s.x,s.y]),g.push(["L",l.x,l.y]),g.push(["L",p.x,p.y]),g.push(["Z"]),g},getFlowCurvePath:function(t,e,n,r,i){var a=e.x-t.x,o=a*i,u={x:t.x,y:t.y-r/2},s={x:e.x,y:e.y-n/2},c={x:t.x,y:t.y+r/2},l={x:e.x,y:e.y+n/2},h={x:t.x+o,y:t.y-r/2},f={x:e.x-o,y:e.y-n/2},d={x:t.x+o,y:t.y+r/2},p={x:e.x-o,y:e.y+n/2},g=[];return g.push(["M",u.x,u.y]),g.push(["L",h.x,h.y]),g.push(["C",(h.x+f.x)/2,h.y,(h.x+f.x)/2,f.y,f.x,f.y+.05]),g.push(["L",s.x,s.y]),g.push(["L",l.x,l.y]),g.push(["L",p.x,p.y]),g.push(["C",(d.x+p.x)/2,p.y,(d.x+p.x)/2,d.y,d.x,d.y-.05]),g.push(["L",c.x,c.y]),g.push(["L",u.x,u.y]),g},drawNodeTexts:function(t,e,n,r){var i=t[0],a=t[1],o=6,u=6,s=20,c=void 0,l=void 0;a<20?(r.x=u,r.y=a+o,c=e.addShape("text",{attrs:r}),l=c.getBBox(),n.x=l.maxX-l.minX+u+6,n.y=a+o,c.remove(!0)):a<36?(r.x=u,r.y=o,n.x=u,n.y=a+o/2):(r.x=u,r.y=o,n.x=u,n.y=s+2),r.x-=i/2,r.y-=a/2,n.x-=i/2,n.y-=a/2,r.text&&e.addShape("text",{attrs:r}),n.text&&e.addShape("text",{attrs:n})}};t.exports=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=n(4),a=n(11),o=r(a),u=function t(e){t.superclass.constructor.call(this,e)};u.ATTRS={width:null,height:null,marginLeft:10,marginTop:10,marginRight:10,marginBottom:10,minimapDOMStyle:{height:"100%",position:"absolute",margin:"auto",left:0,right:0,"z-index":0},navigationDOMStyle:{background:"#fff",position:"absolute",overflow:"hidden",border:"1px solid #333"},miniMapViewPortDOMStyle:{background:"rgba(0, 174, 237, 0.3)",position:"absolute","z-index":1},miniMapControlLayerDOMStyle:{width:"100%",height:"100%",cursor:"move",position:"absolute","z-index":2},position:"bl",miniMapBackgroundRenderFrameObj:{},miniMapViewPortRenderFrameObj:{},miniMapSizeRatio:.2},i.Util.extend(u,o.default),i.Util.augment(u,{init:function(){var t=this,e=this.get("graph");e.on("afterinit",function(){t._initCfg(),t._initContainer(),t._initMiniMap(),t._bindEvent()}),e.on("afterrender",function(){t._renderMinimapContainer(),t._tryRenderMiniMap()})},_initCfg:function(){var t=this.get("graph"),e=t.get("width"),n=t.get("height"),r=this.get("miniMapSizeRatio"),i=this.get("width"),a=this.get("height");i||a||(this.set("width",e*r),this.set("height",n*r)),!i&&a&&this.set("width",a*(e/n)),!a&&i&&this.set("height",i*(n/e))},_bindEvent:function(){var t=this,e=this.get("graph"),n=this.get("miniMapControlLayer"),r=!1,i=void 0,a=void 0,o=void 0,u=void 0;e.on("itemchange",function(){t._tryRenderMiniMap()}),e.on("filter",function(){t._tryRenderMiniMap()}),e.on("matrixupdate",function(){t._renderMiniMapViewPort()}),n.on("mousedown",function(n){r=!0,i=e.getMatrix().clone(),a=t.get("miniMapMatrix").elements[0],o=e.getScale(),u={clientX:n.clientX,clientY:n.clientY}}),n.on("mouseup",function(){r=!1,a=void 0,u=void 0,i=void 0,o=void 0}),n.on("mouseleave",function(){e.set("domFocus",!0),r=!1,a=void 0,u=void 0,i=void 0,o=void 0}),n.on("mousemove",function(t){if(r){var n=u.clientX-t.clientX,s=u.clientY-t.clientY,c=i.clone();c.translate(o*n/a,o*s/a),e.updateMatrix(c),e.refresh()}})},_initMiniMap:function(){var t=this.get("miniMapContainer"),e=this.get("width"),n=this.get("height"),r=new i.Canvas({containerDOM:t,width:e,height:n});t.css({width:e+"px",height:n+"px"}),this.set("miniMapCanvas",r)},_initContainer:function(){var t=this.get("graph"),e=t.get("graphContainer"),n=this.get("minimapDOMStyle"),r=this.get("navigationDOMStyle"),a=this.get("miniMapViewPortDOMStyle"),o=this.get("miniMapControlLayerDOMStyle"),u=i.Util.createDOM('<div class="g6-plugins-navigation"></div>',r),s=i.Util.createDOM('<div class="g6-plugins-minimap"></div>',n),c=i.Util.createDOM('<div class="g6-plugins-minimap-viewport">',a),l=i.Util.createDOM('<div class="g6-plugins-minimap-control-layer">',o);e.appendChild(u),u.appendChild(l),u.appendChild(s),u.appendChild(c),this.set("navigationContainer",u),this.set("miniMapContainer",s),this.set("miniMapViewPort",c),this.set("miniMapControlLayer",l)},_renderMiniMap:function(){var t=this.get("miniMapCanvas"),e=t.get("context"),n=this.get("graph"),r=n.get("canvas"),a=n.get("rootGroup"),o=r.get("context"),u=n.get("width"),s=n.get("height"),c=this.get("width"),l=this.get("height"),h=n.getMatrix().clone(),f=n.get("maxZoom"),d=n.get("minZoom"),p=n.getEdges();r.set("context",e),n.set("maxZoom",1/0),n.set("minZoom",0),n.set("width",c),n.set("height",l),n.autoZoom();var g=n.getScale();this.set("miniMapMatrix",n.getMatrix().clone()),r.beforeDraw(),i.Util.each(p,function(t){t.set("miniMapShouldShow",t.getGroup().get("visible")),t.hide()});var v=[],y=[];a.traverseChildren(function(t){if(t.isShape&&t.hasClass("node-key-shape")&&t.get("visible")){var e=t.getBBox(),n=(e.maxX+e.minX)/2,r=(e.maxY+e.minY)/2,i=e.maxX-e.minX,a=e.maxY-e.minY,o=Math.min(i,a),u=o*g,s=2;u<s&&(t.transform([["t",-n,-r],["s",s/u,s/u],["t",n,r]]),t.resetMniMapTransform=function(){t.transform([["t",-n,-r],["s",u/s,u/s],["t",n,r]])},v.push(t))}if("text"===t.type){var c=t.get("visible");t.resetTextVisible=function(){c&&t.show()},t.hide(),y.push(t)}}),r.constructor.superclass.draw.call(r,e),i.Util.each(v,function(t){t.resetMniMapTransform()}),i.Util.each(y,function(t){t.resetTextVisible()}),i.Util.each(p,function(t){t.get("miniMapShouldShow")&&t.show()}),r.set("context",o),n.set("width",u),n.set("height",s),n.set("maxZoom",f),n.set("minZoom",d),n.updateMatrix(h),r.beforeDraw(),r.constructor.superclass.draw.call(r,o)},_renderMiniMapViewPort:function(){var t=this.get("miniMapViewPort"),e=this.get("graph"),n=e.get("width"),r=e.get("height"),a=e.getMatrix(),o=this.get("miniMapMatrix");if(o){var u=i.Util.invertPoint({x:0,y:0},a),s=i.Util.invertPoint({x:n,y:r},a),c=i.Util.converPoint(u,o),l=i.Util.converPoint(s,o);t.css({top:c.y+"px",left:c.x+"px",width:l.x-c.x+"px",height:l.y-c.y+"px"})}},_renderMinimapContainer:function(){var t=this.get("graph"),e=this.get("navigationContainer"),n=t.get("height"),r=t.get("width"),a=this.get("width"),o=this.get("height"),u=this.get("position"),s=this.get("marginBottom"),c=this.get("marginLeft"),l=this.get("marginRight"),h=this.get("marginTop"),f=i.Util.getNineBoxPosition(u,{x:0,y:0,width:r,height:n},a,o,[h,l,s,c]);e.css({top:f.y+"px",left:f.x+"px",width:a+"px",height:o+"px"})},_tryRenderMiniMap:function(){var t=this,e=this.get("miniMapBackgroundRenderFrameObj");e.callback=function(){t._renderMiniMap()},i.Util.frameDraw(e)}}),t.exports=u},function(t,e){"use strict";function n(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 r(t){return 3*t.length/4-n(t)}function i(t){var e,r,i,a,o,u=t.length;a=n(t),o=new l(3*u/4-a),r=a>0?u-4:u;var s=0;for(e=0;e<r;e+=4)i=c[t.charCodeAt(e)]<<18|c[t.charCodeAt(e+1)]<<12|c[t.charCodeAt(e+2)]<<6|c[t.charCodeAt(e+3)],o[s++]=i>>16&255,o[s++]=i>>8&255,o[s++]=255&i;return 2===a?(i=c[t.charCodeAt(e)]<<2|c[t.charCodeAt(e+1)]>>4,o[s++]=255&i):1===a&&(i=c[t.charCodeAt(e)]<<10|c[t.charCodeAt(e+1)]<<4|c[t.charCodeAt(e+2)]>>2,o[s++]=i>>8&255,o[s++]=255&i),o}function a(t){return s[t>>18&63]+s[t>>12&63]+s[t>>6&63]+s[63&t]}function o(t,e,n){for(var r,i=[],o=e;o<n;o+=3)r=(t[o]<<16)+(t[o+1]<<8)+t[o+2],i.push(a(r));return i.join("")}function u(t){for(var e,n=t.length,r=n%3,i="",a=[],u=16383,c=0,l=n-r;c<l;c+=u)a.push(o(t,c,c+u>l?l:c+u));return 1===r?(e=t[n-1],i+=s[e>>2],i+=s[e<<4&63],i+="=="):2===r&&(e=(t[n-2]<<8)+t[n-1],i+=s[e>>10],i+=s[e>>4&63],i+=s[e<<2&63],i+="="),a.push(i),a.join("")}e.byteLength=r,e.toByteArray=i,e.fromByteArray=u;for(var s=[],c=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,d=h.length;f<d;++f)s[f]=h[f],c[h.charCodeAt(f)]=f;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},function(t,e){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",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"}},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function n(t){return 1===t.length&&(t=r(t)),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var a=r+i>>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var a=r+i>>>1;t(e[a],n)>0?i=a:r=a+1}return r}}}function r(t){return function(n,r){return e(t(n),r)}}function i(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function a(t){return null===t?NaN:+t}function o(t,e){var n,r,i=t.length,o=0,u=0,s=-1,c=0;if(null==e)for(;++s<i;)isNaN(n=a(t[s]))||(r=n-o,o+=r/++c,u+=r*(n-o));else for(;++s<i;)isNaN(n=a(e(t[s],s,t)))||(r=n-o,o+=r/++c,u+=r*(n-o));if(c>1)return u/(c-1)}function u(t,e){var n=o(t,e);return n?Math.sqrt(n):n}function s(t,e){var n,r,i,a=-1,o=t.length;if(null==e){for(;++a<o;)if(null!=(r=t[a])&&r>=r){n=i=r;break}for(;++a<o;)null!=(r=t[a])&&(n>r&&(n=r),i<r&&(i=r))}else{for(;++a<o;)if(null!=(r=e(t[a],a,t))&&r>=r){n=i=r;break}for(;++a<o;)null!=(r=e(t[a],a,t))&&(n>r&&(n=r),i<r&&(i=r))}return[n,i]}function c(t){return function(){return t}}function l(t){return t}function h(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)),a=new Array(i);++r<i;)a[r]=t+r*n;return a}function f(t,e,n){var r=d(t,e,n);return h(Math.ceil(t/r)*r,Math.floor(e/r)*r+r/2,r)}function d(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=D?i*=10:a>=z?i*=5:a>=F&&(i*=2),e<t?-i:i}function p(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function g(){function t(t){var i,a,o=t.length,u=new Array(o);for(i=0;i<o;++i)u[i]=e(t[i],i,t);var s=n(u),c=s[0],l=s[1],h=r(u,c,l);Array.isArray(h)||(h=f(c,l,h));for(var d=h.length;h[0]<=c;)h.shift(),--d;for(;h[d-1]>=l;)h.pop(),--d;var p,g=new Array(d+1);for(i=0;i<=d;++i)p=g[i]=[],p.x0=i>0?h[i-1]:c,p.x1=i<d?h[i]:l;for(i=0;i<o;++i)a=u[i],c<=a&&a<=l&&g[L(h,a,0,d)].push(t[i]);return g}var e=l,n=s,r=p;return t.value=function(n){return arguments.length?(e="function"==typeof n?n:c(n),t):e},t.domain=function(e){return arguments.length?(n="function"==typeof e?e:c([e[0],e[1]]),t):n},t.thresholds=function(e){return arguments.length?(r="function"==typeof e?e:c(Array.isArray(e)?B.call(e):e),t):r},t}function v(t,e,n){if(null==n&&(n=a),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),u=+n(t[o],o,t),s=+n(t[o+1],o+1,t);return u+(s-u)*(i-o)}}function y(t,n,r){return t=U.call(t,a).sort(e),Math.ceil((r-n)/(2*(v(t,.75)-v(t,.25))*Math.pow(t.length,-1/3)))}function m(t,e,n){return Math.ceil((n-e)/(3.5*u(t)*Math.pow(t.length,-1/3)))}function _(t,e){var n,r,i=-1,a=t.length;if(null==e){for(;++i<a;)if(null!=(r=t[i])&&r>=r){n=r;break}for(;++i<a;)null!=(r=t[i])&&r>n&&(n=r)}else{for(;++i<a;)if(null!=(r=e(t[i],i,t))&&r>=r){n=r;break}for(;++i<a;)null!=(r=e(t[i],i,t))&&r>n&&(n=r)}return n}function x(t,e){var n,r=0,i=t.length,o=-1,u=i;if(null==e)for(;++o<i;)isNaN(n=a(t[o]))?--u:r+=n;else for(;++o<i;)isNaN(n=a(e(t[o],o,t)))?--u:r+=n;if(u)return r/u}function b(t,n){var r,i=[],o=t.length,u=-1;if(null==n)for(;++u<o;)isNaN(r=a(t[u]))||i.push(r);else for(;++u<o;)isNaN(r=a(n(t[u],u,t)))||i.push(r);return v(i.sort(e),.5)}function w(t){for(var e,n,r,i=t.length,a=-1,o=0;++a<i;)o+=t[a].length;for(n=new Array(o);--i>=0;)for(r=t[i],e=r.length;--e>=0;)n[--o]=r[e];return n}function M(t,e){var n,r,i=-1,a=t.length;if(null==e){for(;++i<a;)if(null!=(r=t[i])&&r>=r){n=r;break}for(;++i<a;)null!=(r=t[i])&&n>r&&(n=r)}else{for(;++i<a;)if(null!=(r=e(t[i],i,t))&&r>=r){n=r;break}for(;++i<a;)null!=(r=e(t[i],i,t))&&n>r&&(n=r)}return n}function S(t){for(var e=0,n=t.length-1,r=t[0],i=new Array(n<0?0:n);e<n;)i[e]=[r,r=t[++e]];return i}function k(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r}function T(t,n){if(r=t.length){var r,i,a=0,o=0,u=t[o];for(n||(n=e);++a<r;)(n(i=t[a],u)<0||0!==n(u,u))&&(u=i,o=a);return 0===n(u,u)?o:void 0}}function E(t,e,n){for(var r,i,a=(null==n?t.length:n)-(e=null==e?0:+e);a;)i=Math.random()*a--|0,r=t[a+e],t[a+e]=t[i+e],t[i+e]=r;return t}function A(t,e){var n,r=0,i=t.length,a=-1;if(null==e)for(;++a<i;)(n=+t[a])&&(r+=n);else for(;++a<i;)(n=+e(t[a],a,t))&&(r+=n);return r}function C(t){if(!(i=t.length))return[];for(var e=-1,n=M(t,P),r=new Array(n);++e<n;)for(var i,a=-1,o=r[e]=new Array(i);++a<i;)o[a]=t[a][e];return r}function P(t){return t.length}function N(){return C(arguments)}var I=n(e),L=I.right,R=I.left,O=Array.prototype,B=O.slice,U=O.map,D=Math.sqrt(50),z=Math.sqrt(10),F=Math.sqrt(2);t.bisect=L,t.bisectRight=L,t.bisectLeft=R,t.ascending=e,t.bisector=n,t.descending=i,t.deviation=u,t.extent=s,t.histogram=g,t.thresholdFreedmanDiaconis=y,t.thresholdScott=m,t.thresholdSturges=p,t.max=_,t.mean=x,t.median=b,t.merge=w,t.min=M,t.pairs=S,t.permute=k,t.quantile=v,t.range=h,t.scan=T,t.shuffle=E,t.sum=A,t.ticks=f,t.tickStep=d,t.transpose=C,t.variance=o,t.zip=N,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(t){return"translate("+(t+.5)+",0)"}function n(t){return"translate(0,"+(t+.5)+")"}function r(t){return function(e){return+t(e)}}function i(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function a(){return!this.__axis}function o(t,o){function u(e){var n=null==c?o.ticks?o.ticks.apply(o,s):o.domain():c,u=null==l?o.tickFormat?o.tickFormat.apply(o,s):f:l,h=Math.max(m,0)+x,S=o.range(),k=+S[0]+.5,T=+S[S.length-1]+.5,E=(o.bandwidth?i:r)(o.copy()),A=e.selection?e.selection():e,C=A.selectAll(".domain").data([null]),P=A.selectAll(".tick").data(n,o).order(),N=P.exit(),I=P.enter().append("g").attr("class","tick"),L=P.select("line"),R=P.select("text");C=C.merge(C.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),P=P.merge(I),L=L.merge(I.append("line").attr("stroke","#000").attr(w+"2",b*m)),R=R.merge(I.append("text").attr("fill","#000").attr(w,b*h).attr("dy",t===d?"0em":t===g?"0.71em":"0.32em")),e!==A&&(C=C.transition(e),P=P.transition(e),L=L.transition(e),R=R.transition(e),N=N.transition(e).attr("opacity",y).attr("transform",function(t){return isFinite(t=E(t))?M(t):this.getAttribute("transform")}),I.attr("opacity",y).attr("transform",function(t){var e=this.parentNode.__axis;return M(e&&isFinite(e=e(t))?e:E(t))})),N.remove(),C.attr("d",t===v||t==p?"M"+b*_+","+k+"H0.5V"+T+"H"+b*_:"M"+k+","+b*_+"V0.5H"+T+"V"+b*_),P.attr("opacity",1).attr("transform",function(t){return M(E(t))}),L.attr(w+"2",b*m),R.attr(w,b*h).text(u),A.filter(a).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===p?"start":t===v?"end":"middle"),A.each(function(){this.__axis=E})}var s=[],c=null,l=null,m=6,_=6,x=3,b=t===d||t===v?-1:1,w=t===v||t===p?"x":"y",M=t===d||t===g?e:n;return u.scale=function(t){return arguments.length?(o=t,u):o},u.ticks=function(){return s=h.call(arguments),u},u.tickArguments=function(t){return arguments.length?(s=null==t?[]:h.call(t),u):s.slice()},u.tickValues=function(t){return arguments.length?(c=null==t?null:h.call(t),u):c&&c.slice()},u.tickFormat=function(t){return arguments.length?(l=t,u):l},u.tickSize=function(t){return arguments.length?(m=_=+t,u):m},u.tickSizeInner=function(t){return arguments.length?(m=+t,u):m},u.tickSizeOuter=function(t){return arguments.length?(_=+t,u):_},u.tickPadding=function(t){return arguments.length?(x=+t,u):x},u}function u(t){return o(d,t)}function s(t){return o(p,t)}function c(t){return o(g,t)}function l(t){return o(v,t)}var h=Array.prototype.slice,f=function(t){return t},d=1,p=2,g=3,v=4,y=1e-6;t.axisTop=u,t.axisRight=s,t.axisBottom=c,t.axisLeft=l,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,r){r(e,n(13),n(41),n(18),n(24),n(46))}(this,function(t,e,n,r,i,a){"use strict";function o(){i.event.stopImmediatePropagation()}function u(t){return{type:t}}function s(){return!i.event.button}
  function c(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function l(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function h(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function f(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function d(){return g(M)}function p(){return g(S)}function g(t){function f(e){var n=e.property("__brush",N).selectAll(".overlay").data([u("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",T.overlay).merge(n).each(function(){var t=l(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([u("selection")]).enter().append("rect").attr("class","selection").attr("cursor",T.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 T[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",k)}function d(){var t=i.select(this),e=l(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]-B/2:e[0][0]-B/2}).attr("y",function(t){return"s"===t.type[0]?e[1][1]-B/2:e[0][1]-B/2}).attr("width",function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+B:B}).attr("height",function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+B:B})):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function p(t,e){return t.__brush.emitter||new g(t,e)}function g(t,e){this.that=t,this.args=e,this.state=t.__brush,this.active=0}function k(){function e(){var t=i.mouse(j);!J||z||F||(Math.abs(t[0]-et[0])>Math.abs(t[1]-et[1])?F=!0:z=!0),et=t,D=!0,m(),r()}function r(){var t;switch(B=et[0]-tt[0],U=et[1]-tt[1],Y){case x:case _:H&&(B=Math.max($-f,Math.min(Q-k,B)),g=f+B,N=k+B),X&&(U=Math.max(Z-v,Math.min(K-L,U)),y=v+U,O=L+U);break;case b:H<0?(B=Math.max($-f,Math.min(Q-f,B)),g=f+B,N=k):H>0&&(B=Math.max($-k,Math.min(Q-k,B)),g=f,N=k+B),X<0?(U=Math.max(Z-v,Math.min(K-v,U)),y=v+U,O=L):X>0&&(U=Math.max(Z-L,Math.min(K-L,U)),y=v,O=L+U);break;case w:H&&(g=Math.max($,Math.min(Q,f-B*H)),N=Math.max($,Math.min(Q,k+B*H))),X&&(y=Math.max(Z,Math.min(K,v-U*X)),O=Math.max(Z,Math.min(K,L+U*X)))}N<g&&(H*=-1,t=f,f=k,k=t,t=g,g=N,N=t,q in E&&it.attr("cursor",T[q=E[q]])),O<y&&(X*=-1,t=v,v=L,L=t,t=y,y=O,O=t,q in A&&it.attr("cursor",T[q=A[q]])),G.selection&&(V=G.selection),z&&(g=V[0][0],N=V[1][0]),F&&(y=V[0][1],O=V[1][1]),V[0][0]===g&&V[0][1]===y&&V[1][0]===N&&V[1][1]===O||(G.selection=[[g,y],[N,O]],d.call(j),nt.brush())}function u(){if(o(),i.event.touches){if(i.event.touches.length)return;I&&clearTimeout(I),I=setTimeout(function(){I=null},500),rt.on("touchmove.brush touchend.brush touchcancel.brush",null)}else n.dragEnable(i.event.view,D),at.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);rt.attr("pointer-events","all"),it.attr("cursor",T.overlay),G.selection&&(V=G.selection),h(V)&&(G.selection=null,d.call(j)),nt.end()}function s(){switch(i.event.keyCode){case 16:J=H&&X;break;case 18:Y===b&&(H&&(k=N-B*H,f=g+B*H),X&&(L=O-U*X,v=y+U*X),Y=w,r());break;case 32:Y!==b&&Y!==w||(H<0?k=N-B:H>0&&(f=g-B),X<0?L=O-U:X>0&&(v=y-U),Y=x,it.attr("cursor",T.selection),r());break;default:return}m()}function c(){switch(i.event.keyCode){case 16:J&&(z=F=J=!1,r());break;case 18:Y===w&&(H<0?k=N:H>0&&(f=g),X<0?L=O:X>0&&(v=y),Y=b,r());break;case 32:Y===x&&(i.event.altKey?(H&&(k=N-B*H,f=g+B*H),X&&(L=O-U*X,v=y+U*X),Y=w):(H<0?k=N:H>0&&(f=g),X<0?L=O:X>0&&(v=y),Y=b),it.attr("cursor",T[q]),r());break;default:return}m()}if(i.event.touches){if(i.event.changedTouches.length<i.event.touches.length)return m()}else if(I)return;if(R.apply(this,arguments)){var f,g,v,y,k,N,L,O,B,U,D,z,F,j=this,q=i.event.target.__data__.type,Y="selection"===(i.event.metaKey?q="overlay":q)?_:i.event.altKey?w:b,H=t===S?null:C[q],X=t===M?null:P[q],G=l(j),W=G.extent,V=G.selection,$=W[0][0],Z=W[0][1],Q=W[1][0],K=W[1][1],J=H&&X&&i.event.shiftKey,tt=i.mouse(j),et=tt,nt=p(j,arguments).beforestart();"overlay"===q?G.selection=V=[[f=t===S?$:tt[0],v=t===M?Z:tt[1]],[k=t===S?Q:f,L=t===M?K:v]]:(f=V[0][0],v=V[0][1],k=V[1][0],L=V[1][1]),g=f,y=v,N=k,O=L;var rt=i.select(j).attr("pointer-events","none"),it=rt.selectAll(".overlay").attr("cursor",T[q]);if(i.event.touches)rt.on("touchmove.brush",e,!0).on("touchend.brush touchcancel.brush",u,!0);else{var at=i.select(i.event.view).on("keydown.brush",s,!0).on("keyup.brush",c,!0).on("mousemove.brush",e,!0).on("mouseup.brush",u,!0);n.dragDisable(i.event.view)}o(),a.interrupt(j),d.call(j),nt.start()}}function N(){var e=this.__brush||{selection:null};return e.extent=L.apply(this,arguments),e.dim=t,e}var I,L=c,R=s,O=e.dispatch(f,"start","brush","end"),B=6;return f.move=function(e,n){e.selection?e.on("start.brush",function(){p(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){p(this,arguments).end()}).tween("brush",function(){function e(t){a.selection=1===t&&h(s)?null:c(t),d.call(i),o.brush()}var i=this,a=i.__brush,o=p(i,arguments),u=a.selection,s=t.input("function"==typeof n?n.apply(this,arguments):n,a.extent),c=r.interpolate(u,s);return u&&s?e:e(1)}):e.each(function(){var e=this,r=arguments,i=e.__brush,o=t.input("function"==typeof n?n.apply(e,r):n,i.extent),u=p(e,r).beforestart();a.interrupt(e),i.selection=null==o||h(o)?null:o,d.call(e),u.start().brush().end()})},g.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 y(f,e,t.output(this.state.selection)),O.apply,O,[e,this.that,this.args])}},f.extent=function(t){return arguments.length?(L="function"==typeof t?t:v([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),f):L},f.filter=function(t){return arguments.length?(R="function"==typeof t?t:v(!!t),f):R},f.handleSize=function(t){return arguments.length?(B=+t,f):B},f.on=function(){var t=O.on.apply(O,arguments);return t===O?f:t},f}var v=function(t){return function(){return t}},y=function(t,e,n){this.target=t,this.type=e,this.selection=n},m=function(){i.event.preventDefault(),i.event.stopImmediatePropagation()},_={name:"drag"},x={name:"space"},b={name:"handle"},w={name:"center"},M={name:"x",handles:["e","w"].map(u),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]]}},S={name:"y",handles:["n","s"].map(u),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]]}},k={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(u),input:function(t){return t},output:function(t){return t}},T={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"},E={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},A={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},C={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},P={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1},N=function(){return g(k)};t.brush=N,t.brushX=d,t.brushY=p,t.brushSelection=f,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,r){r(e,n(21),n(43))}(this,function(t,e,n){"use strict";function r(t){return function(e,n){return t(e.source.value+e.target.value,n.source.value+n.target.value)}}function i(t){return t.source}function a(t){return t.target}function o(t){return t.radius}function u(t){return t.startAngle}function s(t){return t.endAngle}var c=Math.cos,l=Math.sin,h=Math.PI,f=h/2,d=2*h,p=Math.max,g=function(){function t(t){var r,u,s,c,l,h,f=t.length,g=[],v=e.range(f),y=[],m=[],_=m.groups=new Array(f),x=new Array(f*f);for(r=0,l=-1;++l<f;){for(u=0,h=-1;++h<f;)u+=t[l][h];g.push(u),y.push(e.range(f)),r+=u}for(i&&v.sort(function(t,e){return i(g[t],g[e])}),a&&y.forEach(function(e,n){e.sort(function(e,r){return a(t[n][e],t[n][r])})}),r=p(0,d-n*f)/r,c=r?n:d/f,u=0,l=-1;++l<f;){for(s=u,h=-1;++h<f;){var b=v[l],w=y[b][h],M=t[b][w],S=u,k=u+=M*r;x[w*f+b]={index:b,subindex:w,startAngle:S,endAngle:k,value:M}}_[b]={index:b,startAngle:s,endAngle:u,value:g[b]},u+=c}for(l=-1;++l<f;)for(h=l-1;++h<f;){var T=x[h*f+l],E=x[l*f+h];(T.value||E.value)&&m.push(T.value<E.value?{source:E,target:T}:{source:T,target:E})}return o?m.sort(o):m}var n=0,i=null,a=null,o=null;return t.padAngle=function(e){return arguments.length?(n=p(0,e),t):n},t.sortGroups=function(e){return arguments.length?(i=e,t):i},t.sortSubgroups=function(e){return arguments.length?(a=e,t):a},t.sortChords=function(e){return arguments.length?(null==e?o=null:(o=r(e))._=e,t):o&&o._},t},v=Array.prototype.slice,y=function(t){return function(){return t}},m=function(){function t(){var t,i=v.call(arguments),a=e.apply(this,i),o=r.apply(this,i),u=+h.apply(this,(i[0]=a,i)),s=d.apply(this,i)-f,y=p.apply(this,i)-f,m=u*c(s),_=u*l(s),x=+h.apply(this,(i[0]=o,i)),b=d.apply(this,i)-f,w=p.apply(this,i)-f;if(g||(g=t=n.path()),g.moveTo(m,_),g.arc(0,0,u,s,y),s===b&&y===w||(g.quadraticCurveTo(0,0,x*c(b),x*l(b)),g.arc(0,0,x,b,w)),g.quadraticCurveTo(0,0,m,_),g.closePath(),t)return g=null,t+""||null}var e=i,r=a,h=o,d=u,p=s,g=null;return t.radius=function(e){return arguments.length?(h="function"==typeof e?e:y(+e),t):h},t.startAngle=function(e){return arguments.length?(d="function"==typeof e?e:y(+e),t):d},t.endAngle=function(e){return arguments.length?(p="function"==typeof e?e:y(+e),t):p},t.source=function(n){return arguments.length?(e=n,t):e},t.target=function(e){return arguments.length?(r=e,t):r},t.context=function(e){return arguments.length?(g=null==e?null:e,t):g},t};t.chord=g,t.ribbon=m,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(){for(var t,e=0,r=arguments.length,i={};e<r;++e){if(!(t=arguments[e]+"")||t in i)throw new Error("illegal type: "+t);i[t]=[]}return new n(i)}function n(t){this._=t}function r(t,e){return t.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}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 a(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=o,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}var o={value:function(){}};n.prototype=e.prototype={constructor:n,on:function(t,e){var n,o=this._,u=r(t+"",o),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)o[n]=a(o[n],t.name,e);else if(null==e)for(n in o)o[n]=a(o[n],t.name,null);return this}for(;++s<c;)if((n=(t=u[s]).type)&&(n=i(o[n],t.name)))return n}},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new n(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(r=this._[t],a=0,n=r.length;a<n;++a)r[a].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,a=r.length;i<a;++i)r[i].value.apply(e,n)}},t.dispatch=e,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,r){r(e,n(80),n(22),n(13),n(45))}(this,function(t,e,n,r,i){"use strict";function a(t){return t.x+t.vx}function o(t){return t.y+t.vy}function u(t){return t.index}function s(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function c(t){return t.x}function l(t){return t.y}var h=function(t,e){function n(){var n,i,a=r.length,o=0,u=0;for(n=0;n<a;++n)i=r[n],o+=i.x,u+=i.y;for(o=o/a-t,u=u/a-e,n=0;n<a;++n)i=r[n],i.x-=o,i.y-=u}var r;return null==t&&(t=0),null==e&&(e=0),n.initialize=function(t){r=t},n.x=function(e){return arguments.length?(t=+e,n):t},n.y=function(t){return arguments.length?(e=+t,n):e},n},f=function(t){return function(){return t}},d=function(){return 1e-6*(Math.random()-.5)},p=function(t){function n(){function t(t,e,n,r,i){var a=t.data,o=t.r,u=g+o;{if(!a)return e>f+u||r<f-u||n>p+u||i<p-u;if(a.index>h.index){var s=f-a.x-a.vx,l=p-a.y-a.vy,y=s*s+l*l;y<u*u&&(0===s&&(s=d(),y+=s*s),0===l&&(l=d(),y+=l*l),y=(u-(y=Math.sqrt(y)))/y*c,h.vx+=(s*=y)*(u=(o*=o)/(v+o)),h.vy+=(l*=y)*u,a.vx-=s*(u=1-u),a.vy-=l*u)}}}for(var n,i,h,f,p,g,v,y=u.length,m=0;m<l;++m)for(i=e.quadtree(u,a,o).visitAfter(r),n=0;n<y;++n)h=u[n],g=s[h.index],v=g*g,f=h.x+h.vx,p=h.y+h.vy,i.visit(t)}function r(t){if(t.data)return t.r=s[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 i(){if(u){var e,n,r=u.length;for(s=new Array(r),e=0;e<r;++e)n=u[e],s[n.index]=+t(n,e,u)}}var u,s,c=1,l=1;return"function"!=typeof t&&(t=f(null==t?1:+t)),n.initialize=function(t){u=t,i()},n.iterations=function(t){return arguments.length?(l=+t,n):l},n.strength=function(t){return arguments.length?(c=+t,n):c},n.radius=function(e){return arguments.length?(t="function"==typeof e?e:f(+e),i(),n):t},n},g=function(t){function e(t){return 1/Math.min(p[t.source.index],p[t.target.index])}function r(e){for(var n=0,r=t.length;n<_;++n)for(var i,a,o,u,s,h,f,p=0;p<r;++p)i=t[p],a=i.source,o=i.target,u=o.x+o.vx-a.x-a.vx||d(),s=o.y+o.vy-a.y-a.vy||d(),h=Math.sqrt(u*u+s*s),h=(h-l[p])/h*e*c[p],u*=h,s*=h,o.vx-=u*(f=g[p]),o.vy-=s*f,a.vx+=u*(f=1-f),a.vy+=s*f}function i(){if(h){var e,r,i=h.length,u=t.length,f=n.map(h,v);for(e=0,p=new Array(i);e<u;++e)r=t[e],r.index=e,"object"!=typeof r.source&&(r.source=s(f,r.source)),"object"!=typeof r.target&&(r.target=s(f,r.target)),p[r.source.index]=(p[r.source.index]||0)+1,p[r.target.index]=(p[r.target.index]||0)+1;for(e=0,g=new Array(u);e<u;++e)r=t[e],g[e]=p[r.source.index]/(p[r.source.index]+p[r.target.index]);c=new Array(u),a(),l=new Array(u),o()}}function a(){if(h)for(var e=0,n=t.length;e<n;++e)c[e]=+y(t[e],e,t)}function o(){if(h)for(var e=0,n=t.length;e<n;++e)l[e]=+m(t[e],e,t)}var c,l,h,p,g,v=u,y=e,m=f(30),_=1;return null==t&&(t=[]),r.initialize=function(t){h=t,i()},r.links=function(e){return arguments.length?(t=e,i(),r):t},r.id=function(t){return arguments.length?(v=t,r):v},r.iterations=function(t){return arguments.length?(_=+t,r):_},r.strength=function(t){return arguments.length?(y="function"==typeof t?t:f(+t),a(),r):y},r.distance=function(t){return arguments.length?(m="function"==typeof t?t:f(+t),o(),r):m},r},v=10,y=Math.PI*(3-Math.sqrt(5)),m=function(t){function e(){a(),m.call("tick",s),c<l&&(g.stop(),m.call("end",s))}function a(){var e,n,r=t.length;for(c+=(f-c)*h,p.each(function(t){t(c)}),e=0;e<r;++e)n=t[e],null==n.fx?n.x+=n.vx*=d:(n.x=n.fx,n.vx=0),null==n.fy?n.y+=n.vy*=d:(n.y=n.fy,n.vy=0)}function o(){for(var e,n=0,r=t.length;n<r;++n){if(e=t[n],e.index=n,isNaN(e.x)||isNaN(e.y)){var i=v*Math.sqrt(n),a=n*y;e.x=i*Math.cos(a),e.y=i*Math.sin(a)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function u(e){return e.initialize&&e.initialize(t),e}var s,c=1,l=.001,h=1-Math.pow(l,1/300),f=0,d=.6,p=n.map(),g=i.timer(e),m=r.dispatch("tick","end");return null==t&&(t=[]),o(),s={tick:a,restart:function(){return g.restart(e),s},stop:function(){return g.stop(),s},nodes:function(e){return arguments.length?(t=e,o(),p.each(u),s):t},alpha:function(t){return arguments.length?(c=+t,s):c},alphaMin:function(t){return arguments.length?(l=+t,s):l},alphaDecay:function(t){return arguments.length?(h=+t,s):+h},alphaTarget:function(t){return arguments.length?(f=+t,s):f},velocityDecay:function(t){return arguments.length?(d=1-t,s):1-d},force:function(t,e){return arguments.length>1?(null==e?p.remove(t):p.set(t,u(e)),s):p.get(t)},find:function(e,n,r){var i,a,o,u,s,c=0,l=t.length;for(null==r?r=1/0:r*=r,c=0;c<l;++c)u=t[c],i=e-u.x,a=n-u.y,o=i*i+a*a,o<r&&(s=u,r=o);return s},on:function(t,e){return arguments.length>1?(m.on(t,e),s):m.on(t)}}},_=function(){function t(t){var n,s=a.length,h=e.quadtree(a,c,l).visitAfter(r);for(u=t,n=0;n<s;++n)o=a[n],h.visit(i)}function n(){if(a){var t,e,n=a.length;for(s=new Array(n),t=0;t<n;++t)e=a[t],s[e.index]=+h(e,t,a)}}function r(t){var e,n,r,i,a,o=0,u=0;if(t.length){for(r=i=a=0;a<4;++a)(e=t[a])&&(n=Math.abs(e.value))&&(o+=e.value,u+=n,r+=n*e.x,i+=n*e.y);t.x=r/u,t.y=i/u}else{e=t,e.x=e.data.x,e.y=e.data.y;do o+=s[e.data.index];while(e=e.next)}t.value=o}function i(t,e,n,r){if(!t.value)return!0;var i=t.x-o.x,a=t.y-o.y,c=r-e,l=i*i+a*a;if(c*c/v<l)return l<g&&(0===i&&(i=d(),l+=i*i),0===a&&(a=d(),l+=a*a),l<p&&(l=Math.sqrt(p*l)),o.vx+=i*t.value*u/l,o.vy+=a*t.value*u/l),!0;if(!(t.length||l>=g)){(t.data!==o||t.next)&&(0===i&&(i=d(),l+=i*i),0===a&&(a=d(),l+=a*a),l<p&&(l=Math.sqrt(p*l)));do t.data!==o&&(c=s[t.data.index]*u/l,o.vx+=i*c,o.vy+=a*c);while(t=t.next)}}var a,o,u,s,h=f(-30),p=1,g=1/0,v=.81;return t.initialize=function(t){a=t,n()},t.strength=function(e){return arguments.length?(h="function"==typeof e?e:f(+e),n(),t):h},t.distanceMin=function(e){return arguments.length?(p=e*e,t):Math.sqrt(p)},t.distanceMax=function(e){return arguments.length?(g=e*e,t):Math.sqrt(g)},t.theta=function(e){return arguments.length?(v=e*e,t):Math.sqrt(v)},t},x=function(t,e,n){function r(t){for(var r=0,i=a.length;r<i;++r){var s=a[r],c=s.x-e||1e-6,l=s.y-n||1e-6,h=Math.sqrt(c*c+l*l),f=(u[r]-h)*o[r]*t/h;s.vx+=c*f,s.vy+=l*f}}function i(){if(a){var e,n=a.length;for(o=new Array(n),u=new Array(n),e=0;e<n;++e)u[e]=+t(a[e],e,a),o[e]=isNaN(u[e])?0:+s(a[e],e,a)}}var a,o,u,s=f(.1);return"function"!=typeof t&&(t=f(+t)),null==e&&(e=0),null==n&&(n=0),r.initialize=function(t){a=t,i()},r.strength=function(t){return arguments.length?(s="function"==typeof t?t:f(+t),i(),r):s},r.radius=function(e){return arguments.length?(t="function"==typeof e?e:f(+e),i(),r):t},r.x=function(t){return arguments.length?(e=+t,r):e},r.y=function(t){return arguments.length?(n=+t,r):n},r},b=function(t){function e(t){for(var e,n=0,o=r.length;n<o;++n)e=r[n],e.vx+=(a[n]-e.x)*i[n]*t}function n(){if(r){var e,n=r.length;for(i=new Array(n),a=new Array(n),e=0;e<n;++e)i[e]=isNaN(a[e]=+t(r[e],e,r))?0:+o(r[e],e,r)}}var r,i,a,o=f(.1);return"function"!=typeof t&&(t=f(null==t?0:+t)),e.initialize=function(t){r=t,n()},e.strength=function(t){return arguments.length?(o="function"==typeof t?t:f(+t),n(),e):o},e.x=function(r){return arguments.length?(t="function"==typeof r?r:f(+r),n(),e):t},e},w=function(t){function e(t){for(var e,n=0,o=r.length;n<o;++n)e=r[n],e.vy+=(a[n]-e.y)*i[n]*t}function n(){if(r){var e,n=r.length;for(i=new Array(n),a=new Array(n),e=0;e<n;++e)i[e]=isNaN(a[e]=+t(r[e],e,r))?0:+o(r[e],e,r)}}var r,i,a,o=f(.1);return"function"!=typeof t&&(t=f(null==t?0:+t)),e.initialize=function(t){r=t,n()},e.strength=function(t){return arguments.length?(o="function"==typeof t?t:f(+t),n(),e):o},e.y=function(r){return arguments.length?(t="function"==typeof r?r:f(+r),n(),e):t},e};t.forceCenter=h,t.forceCollide=p,t.forceLink=g,t.forceManyBody=_,t.forceRadial=x,t.forceSimulation=m,t.forceX=b,t.forceY=w,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(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)]}function n(t){return t=e(Math.abs(t)),t?t[1]:NaN}function r(t,e){return function(n,r){for(var i=n.length,a=[],o=0,u=t[0],s=0;i>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),a.push(n.substring(i-=u,i+u)),!((s+=u+1)>r));)u=t[o=(o+1)%t.length];return a.reverse().join(e)}}function i(t,e){t=t.toPrecision(e);t:for(var n,r=t.length,i=1,a=-1;i<r;++i)switch(t[i]){case".":a=n=i;break;case"0":0===a&&(a=i),n=i;break;case"e":break t;default:a>0&&(a=0)}return a>0?t.slice(0,a)+t.slice(n+1):t}function a(t,n){var r=e(t,n);if(!r)return t+"";var i=r[0],a=r[1],o=a-(g=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,u=i.length;return o===u?i:o>u?i+new Array(o-u+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+e(t,Math.max(0,n+o-1))[0]}function o(t,n){var r=e(t,n);if(!r)return t+"";var i=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+i:i.length>a+1?i.slice(0,a+1)+"."+i.slice(a+1):i+new Array(a-i.length+2).join("0")}function u(t){return new s(t)}function s(t){if(!(e=y.exec(t)))throw new Error("invalid format: "+t);var e,n=e[1]||" ",r=e[2]||">",i=e[3]||"-",a=e[4]||"",o=!!e[5],u=e[6]&&+e[6],s=!!e[7],c=e[8]&&+e[8].slice(1),l=e[9]||"";"n"===l?(s=!0,l="g"):v[l]||(l=""),(o||"0"===n&&"="===r)&&(o=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=i,this.symbol=a,this.zero=o,this.width=u,this.comma=s,this.precision=c,this.type=l}function c(t){return t}function l(t){function e(t){function e(t){var e,o,u,c=y,v=m;if("c"===p)v=x(t)+v,t="";else{t=+t;var w=(t<0||1/t<0)&&(t*=-1,!0);if(t=x(t,d),w)for(e=-1,o=t.length,w=!1;++e<o;)if(u=t.charCodeAt(e),48<u&&u<58||"x"===p&&96<u&&u<103||"X"===p&&64<u&&u<71){w=!0;break}if(c=(w?"("===i?i:"-":"-"===i||"("===i?"":i)+c,v=v+("s"===p?_[8+g/3]:"")+(w&&"("===i?")":""),b)for(e=-1,o=t.length;++e<o;)if(u=t.charCodeAt(e),48>u||u>57){v=(46===u?s+t.slice(e+1):t.slice(e))+v,t=t.slice(0,e);break}}f&&!l&&(t=a(t,1/0));var M=c.length+t.length+v.length,S=M<h?new Array(h-M+1).join(n):"";switch(f&&l&&(t=a(S+t,S.length?h-v.length:1/0),S=""),r){case"<":return c+t+v+S;case"=":return c+S+t+v;case"^":return S.slice(0,M=S.length>>1)+c+t+v+S.slice(M)}return S+c+t+v}t=u(t);var n=t.fill,r=t.align,i=t.sign,c=t.symbol,l=t.zero,h=t.width,f=t.comma,d=t.precision,p=t.type,y="$"===c?o[0]:"#"===c&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",m="$"===c?o[1]:/[%p]/.test(p)?"%":"",x=v[p],b=!p||/[defgprs%]/.test(p);return d=null==d?p?6:12:/[gprs]/.test(p)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),e.toString=function(){return t+""},e}function i(t,r){var i=e((t=u(t),t.type="f",t)),a=3*Math.max(-8,Math.min(8,Math.floor(n(r)/3))),o=Math.pow(10,-a),s=_[8+a/3];return function(t){return i(o*t)+s}}var a=t.grouping&&t.thousands?r(t.grouping,t.thousands):c,o=t.currency,s=t.decimal;return{format:e,formatPrefix:i}}function h(e){return m=l(e),t.format=m.format,t.formatPrefix=m.formatPrefix,m}function f(t){return Math.max(0,-n(Math.abs(t)))}function d(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(n(e)/3)))-n(Math.abs(t)))}function p(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,n(e)-n(t))+1}var g,v={"":i,"%":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 o(100*t,e)},r:o,s:a,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},y=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;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 m,_=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];h({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),t.formatDefaultLocale=h,t.formatLocale=l,t.formatSpecifier=u,t.precisionFixed=f,t.precisionPrefix=d,t.precisionRound=p,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,r){r(e,n(21))}(this,function(t,e){"use strict";function n(){this.reset()}function r(t,e,n){var r=t.s=e+n,i=r-e,a=r-i;t.t=e-a+(n-i)}function i(t){return t>1?0:t<-1?We:Math.acos(t)}function a(t){return t>1?Ve:t<-1?-Ve:Math.asin(t)}function o(t){return(t=sn(t/2))*t}function u(){}function s(t,e){t&&dn.hasOwnProperty(t.type)&&dn[t.type](t,e)}function c(t,e,n){var r,i=-1,a=t.length-n;for(e.lineStart();++i<a;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function l(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)c(t[n],e,1);e.polygonEnd()}function h(){yn.point=d}function f(){p(de,pe)}function d(t,e){yn.point=p,de=t,pe=e,t*=Ke,e*=Ke,ge=t,ve=nn(e=e/2+$e),ye=sn(e)}function p(t,e){t*=Ke,e*=Ke,e=e/2+$e;var n=t-ge,r=n>=0?1:-1,i=r*n,a=nn(e),o=sn(e),u=ye*o,s=ve*a+u*nn(i),c=u*r*sn(i);gn.add(en(c,s)),ge=t,ve=a,ye=o}function g(t){return[en(t[1],t[0]),a(t[2])]}function v(t){var e=t[0],n=t[1],r=nn(n);return[r*nn(e),r*sn(e),sn(n)]}function y(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function m(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 _(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function x(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function b(t){var e=ln(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function w(t,e){Te.push(Ee=[me=t,xe=t]),e<_e&&(_e=e),e>be&&(be=e)}function M(t,e){var n=v([t*Ke,e*Ke]);if(ke){var r=m(ke,n),i=[r[1],-r[0],0],a=m(i,r);b(a),a=g(a);var o,u=t-we,s=u>0?1:-1,c=a[0]*Qe*s,l=Je(u)>180;l^(s*we<c&&c<s*t)?(o=a[1]*Qe,o>be&&(be=o)):(c=(c+360)%360-180,l^(s*we<c&&c<s*t)?(o=-a[1]*Qe,o<_e&&(_e=o)):(e<_e&&(_e=e),e>be&&(be=e))),l?t<we?C(me,t)>C(me,xe)&&(xe=t):C(t,xe)>C(me,xe)&&(me=t):xe>=me?(t<me&&(me=t),t>xe&&(xe=t)):t>we?C(me,t)>C(me,xe)&&(xe=t):C(t,xe)>C(me,xe)&&(me=t)}else Te.push(Ee=[me=t,xe=t]);e<_e&&(_e=e),e>be&&(be=e),ke=n,we=t}function S(){xn.point=M}function k(){Ee[0]=me,Ee[1]=xe,xn.point=w,ke=null}function T(t,e){if(ke){var n=t-we;_n.add(Je(n)>180?n+(n>0?360:-360):n)}else Me=t,Se=e;yn.point(t,e),M(t,e)}function E(){yn.lineStart()}function A(){T(Me,Se),yn.lineEnd(),Je(_n)>Xe&&(me=-(xe=180)),Ee[0]=me,Ee[1]=xe,ke=null}function C(t,e){return(e-=t)<0?e+360:e}function P(t,e){return t[0]-e[0]}function N(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function I(t,e){t*=Ke,e*=Ke;var n=nn(e);L(n*nn(t),n*sn(t),sn(e))}function L(t,e,n){++Ae,Pe+=(t-Pe)/Ae,Ne+=(e-Ne)/Ae,Ie+=(n-Ie)/Ae}function R(){wn.point=O}function O(t,e){t*=Ke,e*=Ke;var n=nn(e);je=n*nn(t),qe=n*sn(t),Ye=sn(e),wn.point=B,L(je,qe,Ye)}function B(t,e){t*=Ke,e*=Ke;var n=nn(e),r=n*nn(t),i=n*sn(t),a=sn(e),o=en(ln((o=qe*a-Ye*i)*o+(o=Ye*r-je*a)*o+(o=je*i-qe*r)*o),je*r+qe*i+Ye*a);Ce+=o,Le+=o*(je+(je=r)),Re+=o*(qe+(qe=i)),Oe+=o*(Ye+(Ye=a)),L(je,qe,Ye)}function U(){wn.point=I}function D(){wn.point=F}function z(){j(ze,Fe),wn.point=I}function F(t,e){ze=t,Fe=e,t*=Ke,e*=Ke,wn.point=j;var n=nn(e);je=n*nn(t),qe=n*sn(t),Ye=sn(e),L(je,qe,Ye)}function j(t,e){t*=Ke,e*=Ke;var n=nn(e),r=n*nn(t),i=n*sn(t),o=sn(e),u=qe*o-Ye*i,s=Ye*r-je*o,c=je*i-qe*r,l=ln(u*u+s*s+c*c),h=a(l),f=l&&-h/l;Be+=f*u,Ue+=f*s,De+=f*c,Ce+=h,Le+=h*(je+(je=r)),Re+=h*(qe+(qe=i)),Oe+=h*(Ye+(Ye=o)),L(je,qe,Ye)}function q(t,e){return[t>We?t-Ze:t<-We?t+Ze:t,e]}function Y(t,e,n){return(t%=Ze)?e||n?kn(X(t),G(e,n)):X(t):e||n?G(e,n):q}function H(t){return function(e,n){return e+=t,[e>We?e-Ze:e<-We?e+Ze:e,n]}}function X(t){var e=H(t);return e.invert=H(-t),e}function G(t,e){function n(t,e){var n=nn(e),s=nn(t)*n,c=sn(t)*n,l=sn(e),h=l*r+s*i;return[en(c*o-h*u,s*r-l*i),a(h*o+c*u)]}var r=nn(t),i=sn(t),o=nn(e),u=sn(e);return n.invert=function(t,e){var n=nn(e),s=nn(t)*n,c=sn(t)*n,l=sn(e),h=l*o-c*u;return[en(c*o+l*u,s*r+h*i),a(h*r-s*i)]},n}function W(t,e,n,r,i,a){if(n){var o=nn(e),u=sn(e),s=r*n;null==i?(i=e+r*Ze,a=e-s/2):(i=V(o,i),a=V(o,a),(r>0?i<a:i>a)&&(i+=r*Ze));for(var c,l=i;r>0?l>a:l<a;l-=s)c=g([o,-u*nn(l),-u*sn(l)]),t.point(c[0],c[1])}}function V(t,e){e=v(e),e[0]-=t,b(e);var n=i(-e[1]);return((-e[2]<0?-n:n)+Ze-Xe)%Ze}function $(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Z(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}}function Q(t){return t.length>1}function K(t,e){return((t=t.x)[0]<0?t[1]-Ve-Xe:Ve-t[1])-((e=e.x)[0]<0?e[1]-Ve-Xe:Ve-e[1])}function J(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var u=a>0?We:-We,s=Je(a-n);Je(s-We)<Xe?(t.point(n,r=(r+o)/2>0?Ve:-Ve),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(a,r),e=0):i!==u&&s>=We&&(Je(n-i)<Xe&&(n-=i*Xe),Je(a-u)<Xe&&(a-=u*Xe),r=tt(n,r,a,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),e=0),t.point(n=a,r=o),i=u},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}function tt(t,e,n,r){var i,a,o=sn(t-n);return Je(o)>Xe?tn((sn(e)*(a=nn(r))*sn(n)-sn(r)*(i=nn(e))*sn(t))/(i*a*o)):(e+r)/2}function et(t,e,n,r){var i;if(null==t)i=n*Ve,r.point(-We,i),r.point(0,i),r.point(We,i),r.point(We,0),r.point(We,-i),r.point(0,-i),r.point(-We,-i),r.point(-We,0),r.point(-We,i);else if(Je(t[0]-e[0])>Xe){var a=t[0]<e[0]?We:-We;i=n*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(e[0],e[1])}function nt(t,n,r,i){function a(e,a){return t<=e&&e<=r&&n<=a&&a<=i}function o(e,a,o,s){var l=0,h=0;if(null==e||(l=u(e,o))!==(h=u(a,o))||c(e,a)<0^o>0){do s.point(0===l||3===l?t:r,l>1?i:n);while((l=(l+o+4)%4)!==h)}else s.point(a[0],a[1])}function u(e,i){return Je(e[0]-t)<Xe?i>0?0:3:Je(e[0]-r)<Xe?i>0?2:1:Je(e[1]-n)<Xe?i>0?1:0:i>0?3:2}function s(t,e){return c(t.x,e.x)}function c(t,e){var n=u(t,1),r=u(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(u){function c(t,e){a(t,e)&&E.point(t,e)}function l(){for(var e=0,n=0,r=y.length;n<r;++n)for(var a,o,u=y[n],s=1,c=u.length,l=u[0],h=l[0],f=l[1];s<c;++s)a=h,o=f,l=u[s],h=l[0],f=l[1],o<=i?f>i&&(h-a)*(i-o)>(f-o)*(t-a)&&++e:f<=i&&(h-a)*(i-o)<(f-o)*(t-a)&&--e;return e}function h(){E=A,v=[],y=[],T=!0}function f(){var t=l(),n=T&&t,r=(v=e.merge(v)).length;(n||r)&&(u.polygonStart(),n&&(u.lineStart(),o(null,null,1,u),u.lineEnd()),r&&jn(v,s,t,o,u),u.polygonEnd()),E=u,v=y=m=null}function d(){C.point=g,y&&y.push(m=[]),k=!0,S=!1,w=M=NaN}function p(){v&&(g(_,x),b&&S&&A.rejoin(),v.push(A.result())),C.point=c,S&&E.lineEnd()}function g(e,o){var u=a(e,o);if(y&&m.push([e,o]),k)_=e,x=o,b=u,k=!1,u&&(E.lineStart(),E.point(e,o));else if(u&&S)E.point(e,o);else{var s=[w=Math.max($n,Math.min(Vn,w)),M=Math.max($n,Math.min(Vn,M))],c=[e=Math.max($n,Math.min(Vn,e)),o=Math.max($n,Math.min(Vn,o))];Wn(s,c,t,n,r,i)?(S||(E.lineStart(),E.point(s[0],s[1])),E.point(c[0],c[1]),u||E.lineEnd(),T=!1):u&&(E.lineStart(),E.point(e,o),T=!1)}w=e,M=o,S=u}var v,y,m,_,x,b,w,M,S,k,T,E=u,A=zn(),C={point:c,lineStart:d,lineEnd:p,polygonStart:h,polygonEnd:f};return C}}function rt(){Kn.point=at,Kn.lineEnd=it}function it(){Kn.point=Kn.lineEnd=u}function at(t,e){t*=Ke,e*=Ke,Tn=t,En=sn(e),An=nn(e),Kn.point=ot}function ot(t,e){t*=Ke,e*=Ke;var n=sn(e),r=nn(e),i=Je(t-Tn),a=nn(i),o=sn(i),u=r*o,s=An*n-En*r*a,c=En*n+An*r*a;Qn.add(en(ln(u*u+s*s),c)),Tn=t,En=n,An=r}function ut(t,e){return!(!t||!ir.hasOwnProperty(t.type))&&ir[t.type](t,e)}function st(t,e){return 0===nr(t,e)}function ct(t,e){var n=nr(t[0],t[1]),r=nr(t[0],e),i=nr(e,t[1]);return r+i<=n+Xe}function lt(t,e){return!!Yn(t.map(ht),ft(e))}function ht(t){return t=t.map(ft),t.pop(),t}function ft(t){return[t[0]*Ke,t[1]*Ke]}function dt(t,n,r){var i=e.range(t,n-Xe,r).concat(n);return function(t){return i.map(function(e){return[t,e]})}}function pt(t,n,r){var i=e.range(t,n-Xe,r).concat(n);return function(t){return i.map(function(e){return[e,t]})}}function gt(){function t(){return{type:"MultiLineString",coordinates:n()}}function n(){return e.range(rn(o/y)*y,a,y).map(d).concat(e.range(rn(l/m)*m,c,m).map(p)).concat(e.range(rn(i/g)*g,r,g).filter(function(t){return Je(t%y)>Xe}).map(h)).concat(e.range(rn(s/v)*v,u,v).filter(function(t){return Je(t%m)>Xe}).map(f))}var r,i,a,o,u,s,c,l,h,f,d,p,g=10,v=g,y=90,m=360,_=2.5;
  return t.lines=function(){return n().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[d(o).concat(p(c).slice(1),d(a).reverse().slice(1),p(l).reverse().slice(1))]}},t.extent=function(e){return arguments.length?t.extentMajor(e).extentMinor(e):t.extentMinor()},t.extentMajor=function(e){return arguments.length?(o=+e[0][0],a=+e[1][0],l=+e[0][1],c=+e[1][1],o>a&&(e=o,o=a,a=e),l>c&&(e=l,l=c,c=e),t.precision(_)):[[o,l],[a,c]]},t.extentMinor=function(e){return arguments.length?(i=+e[0][0],r=+e[1][0],s=+e[0][1],u=+e[1][1],i>r&&(e=i,i=r,r=e),s>u&&(e=s,s=u,u=e),t.precision(_)):[[i,s],[r,u]]},t.step=function(e){return arguments.length?t.stepMajor(e).stepMinor(e):t.stepMinor()},t.stepMajor=function(e){return arguments.length?(y=+e[0],m=+e[1],t):[y,m]},t.stepMinor=function(e){return arguments.length?(g=+e[0],v=+e[1],t):[g,v]},t.precision=function(e){return arguments.length?(_=+e,h=dt(s,u,90),f=pt(i,r,_),d=dt(l,c,90),p=pt(o,a,_),t):_},t.extentMajor([[-180,-90+Xe],[180,90-Xe]]).extentMinor([[-180,-80-Xe],[180,80+Xe]])}function vt(){return gt()()}function yt(){lr.point=mt}function mt(t,e){lr.point=_t,Cn=Nn=t,Pn=In=e}function _t(t,e){cr.add(In*t-Nn*e),Nn=t,In=e}function xt(){_t(Cn,Pn)}function bt(t,e){t<hr&&(hr=t),t>dr&&(dr=t),e<fr&&(fr=e),e>pr&&(pr=e)}function wt(t,e){vr+=t,yr+=e,++mr}function Mt(){kr.point=St}function St(t,e){kr.point=kt,wt(On=t,Bn=e)}function kt(t,e){var n=t-On,r=e-Bn,i=ln(n*n+r*r);_r+=i*(On+t)/2,xr+=i*(Bn+e)/2,br+=i,wt(On=t,Bn=e)}function Tt(){kr.point=wt}function Et(){kr.point=Ct}function At(){Pt(Ln,Rn)}function Ct(t,e){kr.point=Pt,wt(Ln=On=t,Rn=Bn=e)}function Pt(t,e){var n=t-On,r=e-Bn,i=ln(n*n+r*r);_r+=i*(On+t)/2,xr+=i*(Bn+e)/2,br+=i,i=Bn*t-On*e,wr+=i*(On+t),Mr+=i*(Bn+e),Sr+=3*i,wt(On=t,Bn=e)}function Nt(t){this._context=t}function It(t,e){Ir.point=Lt,Er=Cr=t,Ar=Pr=e}function Lt(t,e){Cr-=t,Pr-=e,Nr.add(ln(Cr*Cr+Pr*Pr)),Cr=t,Pr=e}function Rt(){this._string=[]}function Ot(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Bt(t){return function(e){var n=new Ut;for(var r in t)n[r]=t[r];return n.stream=e,n}}function Ut(){}function Dt(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),pn(n,t.stream(gr)),e(gr.result()),null!=r&&t.clipExtent(r),t}function zt(t,e,n){return Dt(t,function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),o=+e[0][0]+(r-a*(n[1][0]+n[0][0]))/2,u=+e[0][1]+(i-a*(n[1][1]+n[0][1]))/2;t.scale(150*a).translate([o,u])},n)}function Ft(t,e,n){return zt(t,[[0,0],e],n)}function jt(t,e,n){return Dt(t,function(n){var r=+e,i=r/(n[1][0]-n[0][0]),a=(r-i*(n[1][0]+n[0][0]))/2,o=-i*n[0][1];t.scale(150*i).translate([a,o])},n)}function qt(t,e,n){return Dt(t,function(n){var r=+e,i=r/(n[1][1]-n[0][1]),a=-i*n[0][0],o=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([a,o])},n)}function Yt(t){return Bt({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}function Ht(t,e){function n(r,i,o,u,s,c,l,h,f,d,p,g,v,y){var m=l-r,_=h-i,x=m*m+_*_;if(x>4*e&&v--){var b=u+d,w=s+p,M=c+g,S=ln(b*b+w*w+M*M),k=a(M/=S),T=Je(Je(M)-1)<Xe||Je(o-f)<Xe?(o+f)/2:en(w,b),E=t(T,k),A=E[0],C=E[1],P=A-r,N=C-i,I=_*P-m*N;(I*I/x>e||Je((m*P+_*N)/x-.5)>.3||u*d+s*p+c*g<Br)&&(n(r,i,o,u,s,c,A,C,T,b/=S,w/=S,M,v,y),y.point(A,C),n(A,C,T,b,w,M,l,h,f,d,p,g,v,y))}}return function(e){function r(n,r){n=t(n,r),e.point(n[0],n[1])}function i(){m=NaN,M.point=a,e.lineStart()}function a(r,i){var a=v([r,i]),o=t(r,i);n(m,_,y,x,b,w,m=o[0],_=o[1],y=r,x=a[0],b=a[1],w=a[2],Or,e),e.point(m,_)}function o(){M.point=r,e.lineEnd()}function u(){i(),M.point=s,M.lineEnd=c}function s(t,e){a(l=t,e),h=m,f=_,d=x,p=b,g=w,M.point=a}function c(){n(m,_,y,x,b,w,h,f,l,d,p,g,Or,e),M.lineEnd=o,o()}var l,h,f,d,p,g,y,m,_,x,b,w,M={point:r,lineStart:i,lineEnd:o,polygonStart:function(){e.polygonStart(),M.lineStart=u},polygonEnd:function(){e.polygonEnd(),M.lineStart=i}};return M}}function Xt(t){return Bt({point:function(e,n){var r=t(e,n);return this.stream.point(r[0],r[1])}})}function Gt(t){return Wt(function(){return t})()}function Wt(t){function e(t){return t=l(t[0]*Ke,t[1]*Ke),[t[0]*v+u,s-t[1]*v]}function n(t){return t=l.invert((t[0]-u)/v,(s-t[1])/v),t&&[t[0]*Qe,t[1]*Qe]}function r(t,e){return t=o(t,e),[t[0]*v+u,s-t[1]*v]}function i(){l=kn(c=Y(b,w,M),o);var t=o(_,x);return u=y-t[0]*v,s=m+t[1]*v,a()}function a(){return p=g=null,e}var o,u,s,c,l,h,f,d,p,g,v=150,y=480,m=250,_=0,x=0,b=0,w=0,M=0,S=null,k=Xn,T=null,E=ur,A=.5,C=Ur(r,A);return e.stream=function(t){return p&&g===t?p:p=Dr(Xt(c)(k(C(E(g=t)))))},e.preclip=function(t){return arguments.length?(k=t,S=void 0,a()):k},e.postclip=function(t){return arguments.length?(E=t,T=h=f=d=null,a()):E},e.clipAngle=function(t){return arguments.length?(k=+t?Gn(S=t*Ke):(S=null,Xn),a()):S*Qe},e.clipExtent=function(t){return arguments.length?(E=null==t?(T=h=f=d=null,ur):nt(T=+t[0][0],h=+t[0][1],f=+t[1][0],d=+t[1][1]),a()):null==T?null:[[T,h],[f,d]]},e.scale=function(t){return arguments.length?(v=+t,i()):v},e.translate=function(t){return arguments.length?(y=+t[0],m=+t[1],i()):[y,m]},e.center=function(t){return arguments.length?(_=t[0]%360*Ke,x=t[1]%360*Ke,i()):[_*Qe,x*Qe]},e.rotate=function(t){return arguments.length?(b=t[0]%360*Ke,w=t[1]%360*Ke,M=t.length>2?t[2]%360*Ke:0,i()):[b*Qe,w*Qe,M*Qe]},e.precision=function(t){return arguments.length?(C=Ur(r,A=t*t),a()):ln(A)},e.fitExtent=function(t,n){return zt(e,t,n)},e.fitSize=function(t,n){return Ft(e,t,n)},e.fitWidth=function(t,n){return jt(e,t,n)},e.fitHeight=function(t,n){return qt(e,t,n)},function(){return o=t.apply(this,arguments),e.invert=o.invert&&n,i()}}function Vt(t){var e=0,n=We/3,r=Wt(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*Ke,n=t[1]*Ke):[e*Qe,n*Qe]},i}function $t(t){function e(t,e){return[t*n,sn(e)/n]}var n=nn(t);return e.invert=function(t,e){return[t/n,a(e*n)]},e}function Zt(t,e){function n(t,e){var n=ln(o-2*i*sn(e))/i;return[n*sn(t*=i),u-n*nn(t)]}var r=sn(t),i=(r+sn(e))/2;if(Je(i)<Xe)return $t(t);var o=1+r*(2*i-r),u=ln(o)/i;return n.invert=function(t,e){var n=u-e;return[en(t,Je(n))/i*cn(n),a((o-(t*t+n*n)*i*i)/(2*i))]},n}function Qt(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}function Kt(t){return function(e,n){var r=nn(e),i=nn(n),a=t(r*i);return[a*i*sn(e),a*sn(n)]}}function Jt(t){return function(e,n){var r=ln(e*e+n*n),i=t(r),o=sn(i),u=nn(i);return[en(e*o,r*u),a(r&&n*o/r)]}}function te(t,e){return[t,on(hn((Ve+e)/2))]}function ee(t){function e(){var e=We*u(),o=a(Un(a.rotate()).invert([0,0]));return c(null==l?[[o[0]-e,o[1]-e],[o[0]+e,o[1]+e]]:t===te?[[Math.max(o[0]-e,l),n],[Math.min(o[0]+e,r),i]]:[[l,Math.max(o[1]-e,n)],[r,Math.min(o[1]+e,i)]])}var n,r,i,a=Gt(t),o=a.center,u=a.scale,s=a.translate,c=a.clipExtent,l=null;return a.scale=function(t){return arguments.length?(u(t),e()):u()},a.translate=function(t){return arguments.length?(s(t),e()):s()},a.center=function(t){return arguments.length?(o(t),e()):o()},a.clipExtent=function(t){return arguments.length?(null==t?l=n=r=i=null:(l=+t[0][0],n=+t[0][1],r=+t[1][0],i=+t[1][1]),e()):null==l?null:[[l,n],[r,i]]},e()}function ne(t){return hn((Ve+t)/2)}function re(t,e){function n(t,e){a>0?e<-Ve+Xe&&(e=-Ve+Xe):e>Ve-Xe&&(e=Ve-Xe);var n=a/un(ne(e),i);return[n*sn(i*t),a-n*nn(i*t)]}var r=nn(t),i=t===e?sn(t):on(r/nn(e))/on(ne(e)/ne(t)),a=r*un(ne(t),i)/i;return i?(n.invert=function(t,e){var n=a-e,r=cn(i)*ln(t*t+n*n);return[en(t,Je(n))/i*cn(n),2*tn(un(a/r,1/i))-Ve]},n):te}function ie(t,e){return[t,e]}function ae(t,e){function n(t,e){var n=a-e,r=i*t;return[n*sn(r),a-n*nn(r)]}var r=nn(t),i=t===e?sn(t):(r-nn(e))/(e-t),a=r/i+t;return Je(i)<Xe?ie:(n.invert=function(t,e){var n=a-e;return[en(t,Je(n))/i*cn(n),a-cn(i)*ln(t*t+n*n)]},n)}function oe(t,e){var n=nn(e),r=nn(t)*n;return[n*sn(t)/r,sn(e)/r]}function ue(t,e,n,r){return 1===t&&1===e&&0===n&&0===r?ur:Bt({point:function(i,a){this.stream.point(i*t+n,a*e+r)}})}function se(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(-.013791+r*(.003971*n-.001529*r))),e*(1.007226+n*(.015085+r*(-.044475+.028874*n-.005916*r)))]}function ce(t,e){return[nn(e)*sn(t),sn(e)]}function le(t,e){var n=nn(e),r=1+nn(t)*n;return[n*sn(t)/r,sn(e)/r]}function he(t,e){return[on(hn((Ve+e)/2)),-t]}var fe=function(){return new n};n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(t){r(He,t,this.t),r(this,He.s,this.s),this.s?this.t+=He.t:this.s=He.t},valueOf:function(){return this.s}};var de,pe,ge,ve,ye,me,_e,xe,be,we,Me,Se,ke,Te,Ee,Ae,Ce,Pe,Ne,Ie,Le,Re,Oe,Be,Ue,De,ze,Fe,je,qe,Ye,He=new n,Xe=1e-6,Ge=1e-12,We=Math.PI,Ve=We/2,$e=We/4,Ze=2*We,Qe=180/We,Ke=We/180,Je=Math.abs,tn=Math.atan,en=Math.atan2,nn=Math.cos,rn=Math.ceil,an=Math.exp,on=Math.log,un=Math.pow,sn=Math.sin,cn=Math.sign||function(t){return t>0?1:t<0?-1:0},ln=Math.sqrt,hn=Math.tan,fn={Feature:function(t,e){s(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)s(n[r].geometry,e)}},dn={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){c(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)c(n[r],e,0)},Polygon:function(t,e){l(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)l(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)s(n[r],e)}},pn=function(t,e){t&&fn.hasOwnProperty(t.type)?fn[t.type](t,e):s(t,e)},gn=fe(),vn=fe(),yn={point:u,lineStart:u,lineEnd:u,polygonStart:function(){gn.reset(),yn.lineStart=h,yn.lineEnd=f},polygonEnd:function(){var t=+gn;vn.add(t<0?Ze+t:t),this.lineStart=this.lineEnd=this.point=u},sphere:function(){vn.add(Ze)}},mn=function(t){return vn.reset(),pn(t,yn),2*vn},_n=fe(),xn={point:w,lineStart:S,lineEnd:k,polygonStart:function(){xn.point=T,xn.lineStart=E,xn.lineEnd=A,_n.reset(),yn.polygonStart()},polygonEnd:function(){yn.polygonEnd(),xn.point=w,xn.lineStart=S,xn.lineEnd=k,gn<0?(me=-(xe=180),_e=-(be=90)):_n>Xe?be=90:_n<-Xe&&(_e=-90),Ee[0]=me,Ee[1]=xe}},bn=function(t){var e,n,r,i,a,o,u;if(be=xe=-(me=_e=1/0),Te=[],pn(t,xn),n=Te.length){for(Te.sort(P),e=1,r=Te[0],a=[r];e<n;++e)i=Te[e],N(r,i[0])||N(r,i[1])?(C(r[0],i[1])>C(r[0],r[1])&&(r[1]=i[1]),C(i[0],r[1])>C(r[0],r[1])&&(r[0]=i[0])):a.push(r=i);for(o=-(1/0),n=a.length-1,e=0,r=a[n];e<=n;r=i,++e)i=a[e],(u=C(r[1],i[0]))>o&&(o=u,me=i[0],xe=r[1])}return Te=Ee=null,me===1/0||_e===1/0?[[NaN,NaN],[NaN,NaN]]:[[me,_e],[xe,be]]},wn={sphere:u,point:I,lineStart:R,lineEnd:U,polygonStart:function(){wn.lineStart=D,wn.lineEnd=z},polygonEnd:function(){wn.lineStart=R,wn.lineEnd=U}},Mn=function(t){Ae=Ce=Pe=Ne=Ie=Le=Re=Oe=Be=Ue=De=0,pn(t,wn);var e=Be,n=Ue,r=De,i=e*e+n*n+r*r;return i<Ge&&(e=Le,n=Re,r=Oe,Ce<Xe&&(e=Pe,n=Ne,r=Ie),i=e*e+n*n+r*r,i<Ge)?[NaN,NaN]:[en(n,e)*Qe,a(r/ln(i))*Qe]},Sn=function(t){return function(){return t}},kn=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),n&&t.invert(n[0],n[1])}),n};q.invert=q;var Tn,En,An,Cn,Pn,Nn,In,Ln,Rn,On,Bn,Un=function(t){function e(e){return e=t(e[0]*Ke,e[1]*Ke),e[0]*=Qe,e[1]*=Qe,e}return t=Y(t[0]*Ke,t[1]*Ke,t.length>2?t[2]*Ke:0),e.invert=function(e){return e=t.invert(e[0]*Ke,e[1]*Ke),e[0]*=Qe,e[1]*=Qe,e},e},Dn=function(){function t(t,e){n.push(t=r(t,e)),t[0]*=Qe,t[1]*=Qe}function e(){var t=i.apply(this,arguments),e=a.apply(this,arguments)*Ke,s=o.apply(this,arguments)*Ke;return n=[],r=Y(-t[0]*Ke,-t[1]*Ke,0).invert,W(u,e,s,1),t={type:"Polygon",coordinates:[n]},n=r=null,t}var n,r,i=Sn([0,0]),a=Sn(90),o=Sn(6),u={point:t};return e.center=function(t){return arguments.length?(i="function"==typeof t?t:Sn([+t[0],+t[1]]),e):i},e.radius=function(t){return arguments.length?(a="function"==typeof t?t:Sn(+t),e):a},e.precision=function(t){return arguments.length?(o="function"==typeof t?t:Sn(+t),e):o},e},zn=function(){var t,e=[];return{point:function(e,n){t.push([e,n])},lineStart:function(){e.push(t=[])},lineEnd:u,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}},Fn=function(t,e){return Je(t[0]-e[0])<Xe&&Je(t[1]-e[1])<Xe},jn=function(t,e,n,r,i){var a,o,u=[],s=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],o=t[e];if(Fn(r,o)){for(i.lineStart(),a=0;a<e;++a)i.point((r=t[a])[0],r[1]);return void i.lineEnd()}u.push(n=new $(r,t,null,!0)),s.push(n.o=new $(r,null,n,!1)),u.push(n=new $(o,t,null,!1)),s.push(n.o=new $(o,null,n,!0))}}),u.length){for(s.sort(e),Z(u),Z(s),a=0,o=s.length;a<o;++a)s[a].e=n=!n;for(var c,l,h=u[0];;){for(var f=h,d=!0;f.v;)if((f=f.n)===h)return;c=f.z,i.lineStart();do{if(f.v=f.o.v=!0,f.e){if(d)for(a=0,o=c.length;a<o;++a)i.point((l=c[a])[0],l[1]);else r(f.x,f.n.x,1,i);f=f.n}else{if(d)for(c=f.p.z,a=c.length-1;a>=0;--a)i.point((l=c[a])[0],l[1]);else r(f.x,f.p.x,-1,i);f=f.p}f=f.o,c=f.z,d=!d}while(!f.v);i.lineEnd()}}},qn=fe(),Yn=function(t,e){var n=e[0],r=e[1],i=[sn(n),-nn(n),0],o=0,u=0;qn.reset();for(var s=0,c=t.length;s<c;++s)if(h=(l=t[s]).length)for(var l,h,f=l[h-1],d=f[0],p=f[1]/2+$e,g=sn(p),y=nn(p),_=0;_<h;++_,d=w,g=S,y=k,f=x){var x=l[_],w=x[0],M=x[1]/2+$e,S=sn(M),k=nn(M),T=w-d,E=T>=0?1:-1,A=E*T,C=A>We,P=g*S;if(qn.add(en(P*E*sn(A),y*k+P*nn(A))),o+=C?T+E*Ze:T,C^d>=n^w>=n){var N=m(v(f),v(x));b(N);var I=m(i,N);b(I);var L=(C^T>=0?-1:1)*a(I[2]);(r>L||r===L&&(N[0]||N[1]))&&(u+=C^T>=0?1:-1)}}return(o<-Xe||o<Xe&&qn<-Xe)^1&u},Hn=function(t,n,r,i){return function(a){function o(e,n){t(e,n)&&a.point(e,n)}function u(t,e){v.point(t,e)}function s(){x.point=u,v.lineStart()}function c(){x.point=o,v.lineEnd()}function l(t,e){g.push([t,e]),m.point(t,e)}function h(){m.lineStart(),g=[]}function f(){l(g[0][0],g[0][1]),m.lineEnd();var t,e,n,r,i=m.clean(),o=y.result(),u=o.length;if(g.pop(),d.push(g),g=null,u)if(1&i){if(n=o[0],(e=n.length-1)>0){for(_||(a.polygonStart(),_=!0),a.lineStart(),t=0;t<e;++t)a.point((r=n[t])[0],r[1]);a.lineEnd()}}else u>1&&2&i&&o.push(o.pop().concat(o.shift())),p.push(o.filter(Q))}var d,p,g,v=n(a),y=zn(),m=n(y),_=!1,x={point:o,lineStart:s,lineEnd:c,polygonStart:function(){x.point=l,x.lineStart=h,x.lineEnd=f,p=[],d=[]},polygonEnd:function(){x.point=o,x.lineStart=s,x.lineEnd=c,p=e.merge(p);var t=Yn(d,i);p.length?(_||(a.polygonStart(),_=!0),jn(p,K,t,r,a)):t&&(_||(a.polygonStart(),_=!0),a.lineStart(),r(null,null,1,a),a.lineEnd()),_&&(a.polygonEnd(),_=!1),p=d=null},sphere:function(){a.polygonStart(),a.lineStart(),r(null,null,1,a),a.lineEnd(),a.polygonEnd()}};return x}},Xn=Hn(function(){return!0},J,et,[-We,-Ve]),Gn=function(t){function e(e,n,r,i){W(i,t,u,r,e,n)}function n(t,e){return nn(t)*nn(e)>o}function r(t){var e,r,o,u,l;return{lineStart:function(){u=o=!1,l=1},point:function(h,f){var d,p=[h,f],g=n(h,f),v=s?g?0:a(h,f):g?a(h+(h<0?We:-We),f):0;if(!e&&(u=o=g)&&t.lineStart(),g!==o&&(d=i(e,p),(!d||Fn(e,d)||Fn(p,d))&&(p[0]+=Xe,p[1]+=Xe,g=n(p[0],p[1]))),g!==o)l=0,g?(t.lineStart(),d=i(p,e),t.point(d[0],d[1])):(d=i(e,p),t.point(d[0],d[1]),t.lineEnd()),e=d;else if(c&&e&&s^g){var y;v&r||!(y=i(p,e,!0))||(l=0,s?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!g||e&&Fn(e,p)||t.point(p[0],p[1]),e=p,o=g,r=v},lineEnd:function(){o&&t.lineEnd(),e=null},clean:function(){return l|(u&&o)<<1}}}function i(t,e,n){var r=v(t),i=v(e),a=[1,0,0],u=m(r,i),s=y(u,u),c=u[0],l=s-c*c;if(!l)return!n&&t;var h=o*s/l,f=-o*c/l,d=m(a,u),p=x(a,h),b=x(u,f);_(p,b);var w=d,M=y(p,w),S=y(w,w),k=M*M-S*(y(p,p)-1);if(!(k<0)){var T=ln(k),E=x(w,(-M-T)/S);if(_(E,p),E=g(E),!n)return E;var A,C=t[0],P=e[0],N=t[1],I=e[1];P<C&&(A=C,C=P,P=A);var L=P-C,R=Je(L-We)<Xe,O=R||L<Xe;if(!R&&I<N&&(A=N,N=I,I=A),O?R?N+I>0^E[1]<(Je(E[0]-C)<Xe?N:I):N<=E[1]&&E[1]<=I:L>We^(C<=E[0]&&E[0]<=P)){var B=x(w,(-M+T)/S);return _(B,p),[E,g(B)]}}}function a(e,n){var r=s?t:We-t,i=0;return e<-r?i|=1:e>r&&(i|=2),n<-r?i|=4:n>r&&(i|=8),i}var o=nn(t),u=6*Ke,s=o>0,c=Je(o)>Xe;return Hn(n,r,e,s?[0,-t]:[-We,t-We])},Wn=function(t,e,n,r,i,a){var o,u=t[0],s=t[1],c=e[0],l=e[1],h=0,f=1,d=c-u,p=l-s;if(o=n-u,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)}if(o=i-u,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=r-s,p||!(o>0)){if(o/=p,p<0){if(o<h)return;o<f&&(f=o)}else if(p>0){if(o>f)return;o>h&&(h=o)}if(o=a-s,p||!(o<0)){if(o/=p,p<0){if(o>f)return;o>h&&(h=o)}else if(p>0){if(o<h)return;o<f&&(f=o)}return h>0&&(t[0]=u+h*d,t[1]=s+h*p),f<1&&(e[0]=u+f*d,e[1]=s+f*p),!0}}}}},Vn=1e9,$n=-Vn,Zn=function(){var t,e,n,r=0,i=0,a=960,o=500;return n={stream:function(n){return t&&e===n?t:t=nt(r,i,a,o)(e=n)},extent:function(u){return arguments.length?(r=+u[0][0],i=+u[0][1],a=+u[1][0],o=+u[1][1],t=e=null,n):[[r,i],[a,o]]}}},Qn=fe(),Kn={sphere:u,point:u,lineStart:rt,lineEnd:u,polygonStart:u,polygonEnd:u},Jn=function(t){return Qn.reset(),pn(t,Kn),+Qn},tr=[null,null],er={type:"LineString",coordinates:tr},nr=function(t,e){return tr[0]=t,tr[1]=e,Jn(er)},rr={Feature:function(t,e){return ut(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)if(ut(n[r].geometry,e))return!0;return!1}},ir={Sphere:function(){return!0},Point:function(t,e){return st(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(st(n[r],e))return!0;return!1},LineString:function(t,e){return ct(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(ct(n[r],e))return!0;return!1},Polygon:function(t,e){return lt(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(lt(n[r],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)if(ut(n[r],e))return!0;return!1}},ar=function(t,e){return(t&&rr.hasOwnProperty(t.type)?rr[t.type]:ut)(t,e)},or=function(t,e){var n=t[0]*Ke,r=t[1]*Ke,i=e[0]*Ke,u=e[1]*Ke,s=nn(r),c=sn(r),l=nn(u),h=sn(u),f=s*nn(n),d=s*sn(n),p=l*nn(i),g=l*sn(i),v=2*a(ln(o(u-r)+s*l*o(i-n))),y=sn(v),m=v?function(t){var e=sn(t*=v)/y,n=sn(v-t)/y,r=n*f+e*p,i=n*d+e*g,a=n*c+e*h;return[en(i,r)*Qe,en(a,ln(r*r+i*i))*Qe]}:function(){return[n*Qe,r*Qe]};return m.distance=v,m},ur=function(t){return t},sr=fe(),cr=fe(),lr={point:u,lineStart:u,lineEnd:u,polygonStart:function(){lr.lineStart=yt,lr.lineEnd=xt},polygonEnd:function(){lr.lineStart=lr.lineEnd=lr.point=u,sr.add(Je(cr)),cr.reset()},result:function(){var t=sr/2;return sr.reset(),t}},hr=1/0,fr=hr,dr=-hr,pr=dr,gr={point:bt,lineStart:u,lineEnd:u,polygonStart:u,polygonEnd:u,result:function(){var t=[[hr,fr],[dr,pr]];return dr=pr=-(fr=hr=1/0),t}},vr=0,yr=0,mr=0,_r=0,xr=0,br=0,wr=0,Mr=0,Sr=0,kr={point:wt,lineStart:Mt,lineEnd:Tt,polygonStart:function(){kr.lineStart=Et,kr.lineEnd=At},polygonEnd:function(){kr.point=wt,kr.lineStart=Mt,kr.lineEnd=Tt},result:function(){var t=Sr?[wr/Sr,Mr/Sr]:br?[_r/br,xr/br]:mr?[vr/mr,yr/mr]:[NaN,NaN];return vr=yr=mr=_r=xr=br=wr=Mr=Sr=0,t}};Nt.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,Ze)}},result:u};var Tr,Er,Ar,Cr,Pr,Nr=fe(),Ir={point:u,lineStart:function(){Ir.point=It},lineEnd:function(){Tr&&Lt(Er,Ar),Ir.point=u},polygonStart:function(){Tr=!0},polygonEnd:function(){Tr=null},result:function(){var t=+Nr;return Nr.reset(),t}};Rt.prototype={_radius:4.5,_circle:Ot(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=Ot(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}};var Lr=function(t,e){function n(t){return t&&("function"==typeof a&&i.pointRadius(+a.apply(this,arguments)),pn(t,r(i))),i.result()}var r,i,a=4.5;return n.area=function(t){return pn(t,r(lr)),lr.result()},n.measure=function(t){return pn(t,r(Ir)),Ir.result()},n.bounds=function(t){return pn(t,r(gr)),gr.result()},n.centroid=function(t){return pn(t,r(kr)),kr.result()},n.projection=function(e){return arguments.length?(r=null==e?(t=null,ur):(t=e).stream,n):t},n.context=function(t){return arguments.length?(i=null==t?(e=null,new Rt):new Nt(e=t),"function"!=typeof a&&i.pointRadius(a),n):e},n.pointRadius=function(t){return arguments.length?(a="function"==typeof t?t:(i.pointRadius(+t),+t),n):a},n.projection(t).context(e)},Rr=function(t){return{stream:Bt(t)}};Ut.prototype={constructor:Ut,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 Or=16,Br=nn(30*Ke),Ur=function(t,e){return+e?Ht(t,e):Yt(t)},Dr=Bt({point:function(t,e){this.stream.point(t*Ke,e*Ke)}}),zr=function(){return Vt(Zt).scale(155.424).center([0,33.6442])},Fr=function(){return zr().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])},jr=function(){function t(t){var e=t[0],n=t[1];return u=null,i.point(e,n),u||(a.point(e,n),u)||(o.point(e,n),u)}function e(){return n=r=null,t}var n,r,i,a,o,u,s=Fr(),c=zr().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=zr().rotate([157,0]).center([-3,19.9]).parallels([8,18]),h={point:function(t,e){u=[t,e]}};return t.invert=function(t){var e=s.scale(),n=s.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?c:i>=.166&&i<.234&&r>=-.214&&r<-.115?l:s).invert(t)},t.stream=function(t){return n&&r===t?n:n=Qt([s.stream(r=t),c.stream(t),l.stream(t)])},t.precision=function(t){return arguments.length?(s.precision(t),c.precision(t),l.precision(t),e()):s.precision()},t.scale=function(e){return arguments.length?(s.scale(e),c.scale(.35*e),l.scale(e),t.translate(s.translate())):s.scale()},t.translate=function(t){if(!arguments.length)return s.translate();var n=s.scale(),r=+t[0],u=+t[1];return i=s.translate(t).clipExtent([[r-.455*n,u-.238*n],[r+.455*n,u+.238*n]]).stream(h),a=c.translate([r-.307*n,u+.201*n]).clipExtent([[r-.425*n+Xe,u+.12*n+Xe],[r-.214*n-Xe,u+.234*n-Xe]]).stream(h),o=l.translate([r-.205*n,u+.212*n]).clipExtent([[r-.214*n+Xe,u+.166*n+Xe],[r-.115*n-Xe,u+.234*n-Xe]]).stream(h),e()},t.fitExtent=function(e,n){return zt(t,e,n)},t.fitSize=function(e,n){return Ft(t,e,n)},t.fitWidth=function(e,n){return jt(t,e,n)},t.fitHeight=function(e,n){return qt(t,e,n)},t.scale(1070)},qr=Kt(function(t){return ln(2/(1+t))});qr.invert=Jt(function(t){return 2*a(t/2)});var Yr=function(){return Gt(qr).scale(124.75).clipAngle(179.999)},Hr=Kt(function(t){return(t=i(t))&&t/sn(t)});Hr.invert=Jt(function(t){return t});var Xr=function(){return Gt(Hr).scale(79.4188).clipAngle(179.999)};te.invert=function(t,e){return[t,2*tn(an(e))-Ve]};var Gr=function(){return ee(te).scale(961/Ze)},Wr=function(){return Vt(re).scale(109.5).parallels([30,30])};ie.invert=ie;var Vr=function(){return Gt(ie).scale(152.63)},$r=function(){return Vt(ae).scale(131.154).center([0,13.9389])};oe.invert=Jt(tn);var Zr=function(){return Gt(oe).scale(144.049).clipAngle(60)},Qr=function(){function t(){return i=a=null,o}var e,n,r,i,a,o,u=1,s=0,c=0,l=1,h=1,f=ur,d=null,p=ur;return o={stream:function(t){return i&&a===t?i:i=f(p(a=t))},postclip:function(i){return arguments.length?(p=i,d=e=n=r=null,t()):p},clipExtent:function(i){return arguments.length?(p=null==i?(d=e=n=r=null,ur):nt(d=+i[0][0],e=+i[0][1],n=+i[1][0],r=+i[1][1]),t()):null==d?null:[[d,e],[n,r]]},scale:function(e){return arguments.length?(f=ue((u=+e)*l,u*h,s,c),t()):u},translate:function(e){return arguments.length?(f=ue(u*l,u*h,s=+e[0],c=+e[1]),t()):[s,c]},reflectX:function(e){return arguments.length?(f=ue(u*(l=e?-1:1),u*h,s,c),t()):l<0},reflectY:function(e){return arguments.length?(f=ue(u*l,u*(h=e?-1:1),s,c),t()):h<0},fitExtent:function(t,e){return zt(o,t,e)},fitSize:function(t,e){return Ft(o,t,e)},fitWidth:function(t,e){return jt(o,t,e)},fitHeight:function(t,e){return qt(o,t,e)}}};se.invert=function(t,e){var n,r=e,i=25;do{var a=r*r,o=a*a;r-=n=(r*(1.007226+a*(.015085+o*(-.044475+.028874*a-.005916*o)))-e)/(1.007226+a*(.045255+o*(-.311325+.259866*a-.005916*11*o)))}while(Je(n)>Xe&&--i>0);return[t/(.8707+(a=r*r)*(-.131979+a*(-.013791+a*a*a*(.003971-.001529*a)))),r]};var Kr=function(){return Gt(se).scale(175.295)};ce.invert=Jt(a);var Jr=function(){return Gt(ce).scale(249.5).clipAngle(90+Xe)};le.invert=Jt(function(t){return 2*tn(t)});var ti=function(){return Gt(le).scale(250).clipAngle(142)};he.invert=function(t,e){return[-e,2*tn(an(t))-Ve]};var ei=function(){var t=ee(he),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):(t=n(),[t[0],t[1],t[2]-90])},n([0,0,90]).scale(159.155)};t.geoArea=mn,t.geoBounds=bn,t.geoCentroid=Mn,t.geoCircle=Dn,t.geoClipAntimeridian=Xn,t.geoClipCircle=Gn,t.geoClipExtent=Zn,t.geoClipRectangle=nt,t.geoContains=ar,t.geoDistance=nr,t.geoGraticule=gt,t.geoGraticule10=vt,t.geoInterpolate=or,t.geoLength=Jn,t.geoPath=Lr,t.geoAlbers=Fr,t.geoAlbersUsa=jr,t.geoAzimuthalEqualArea=Yr,t.geoAzimuthalEqualAreaRaw=qr,t.geoAzimuthalEquidistant=Xr,t.geoAzimuthalEquidistantRaw=Hr,t.geoConicConformal=Wr,t.geoConicConformalRaw=re,t.geoConicEqualArea=zr,t.geoConicEqualAreaRaw=Zt,t.geoConicEquidistant=$r,t.geoConicEquidistantRaw=ae,t.geoEquirectangular=Vr,t.geoEquirectangularRaw=ie,t.geoGnomonic=Zr,t.geoGnomonicRaw=oe,t.geoIdentity=Qr,t.geoProjection=Gt,t.geoProjectionMutator=Wt,t.geoMercator=Gr,t.geoMercatorRaw=te,t.geoNaturalEarth1=Kr,t.geoNaturalEarth1Raw=se,t.geoOrthographic=Jr,t.geoOrthographicRaw=ce,t.geoStereographic=ti,t.geoStereographicRaw=le,t.geoTransverseMercator=ei,t.geoTransverseMercatorRaw=he,t.geoRotation=Un,t.geoStream=pn,t.geoTransform=Rr,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(t,e){return t.parent===e.parent?1:2}function n(t){return t.reduce(r,0)/t.length}function r(t,e){return t+e.x}function i(t){return 1+t.reduce(a,0)}function a(t,e){return Math.max(t,e.y)}function o(t){for(var e;e=t.children;)t=e[0];return t}function u(t){for(var e;e=t.children;)t=e[e.length-1];return t}function s(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 c(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}function l(t,e){var n,r,i,a,o,u=new g(t),s=+t.value&&(u.value=t.value),c=[u];for(null==e&&(e=f);n=c.pop();)if(s&&(n.value=+n.data.value),(i=e(n.data))&&(o=i.length))for(n.children=new Array(o),a=o-1;a>=0;--a)c.push(r=n.children[a]=new g(i[a])),r.parent=n,r.depth=n.depth+1;return u.eachBefore(p)}function h(){return l(this).eachBefore(d)}function f(t){return t.children}function d(t){t.data=t.data.data}function p(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function g(t){this.data=t,this.depth=this.height=0,this.parent=null}function v(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}function y(t,e){var n,r;if(x(e,t))return[e];for(n=0;n<t.length;++n)if(m(e,t[n])&&x(M(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(m(M(t[n],t[r]),e)&&m(M(t[n],e),t[r])&&m(M(t[r],e),t[n])&&x(S(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function m(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 _(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 x(t,e){for(var n=0;n<e.length;++n)if(!_(t,e[n]))return!1;return!0}function b(t){switch(t.length){case 1:return w(t[0]);case 2:return M(t[0],t[1]);case 3:return S(t[0],t[1],t[2])}}function w(t){return{x:t.x,y:t.y,r:t.r}}function M(t,e){var n=t.x,r=t.y,i=t.r,a=e.x,o=e.y,u=e.r,s=a-n,c=o-r,l=u-i,h=Math.sqrt(s*s+c*c);return{x:(n+a+s/h*l)/2,y:(r+o+c/h*l)/2,r:(h+i+u)/2}}function S(t,e,n){var r=t.x,i=t.y,a=t.r,o=e.x,u=e.y,s=e.r,c=n.x,l=n.y,h=n.r,f=r-o,d=r-c,p=i-u,g=i-l,v=s-a,y=h-a,m=r*r+i*i-a*a,_=m-o*o-u*u+s*s,x=m-c*c-l*l+h*h,b=d*p-f*g,w=(p*x-g*_)/(2*b)-r,M=(g*v-p*y)/b,S=(d*_-f*x)/(2*b)-i,k=(f*y-d*v)/b,T=M*M+k*k-1,E=2*(a+w*M+S*k),A=w*w+S*S-a*a,C=-(T?(E+Math.sqrt(E*E-4*T*A))/(2*T):A/E);return{x:r+w+M*C,y:i+S+k*C,r:C}}function k(t,e,n){var r=t.x,i=t.y,a=e.r+n.r,o=t.r+n.r,u=e.x-r,s=e.y-i,c=u*u+s*s;if(c){var l=.5+((o*=o)-(a*=a))/(2*c),h=Math.sqrt(Math.max(0,2*a*(o+c)-(o-=c)*o-a*a))/(2*c);n.x=r+l*u+h*s,n.y=i+l*s-h*u}else n.x=r+o,n.y=i}function T(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 E(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,a=(e.y*n.r+n.y*e.r)/r;return i*i+a*a}function A(t){this._=t,this.next=null,this.previous=null}function C(t){if(!(i=t.length))return 0;var e,n,r,i,a,o,u,s,c,l,h;if(e=t[0],e.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;k(n,e,r=t[2]),e=new A(e),n=new A(n),r=new A(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(u=3;u<i;++u){k(e._,n._,r=t[u]),r=new A(r),s=n.next,c=e.previous,l=n._.r,h=e._.r;do if(l<=h){if(T(s._,r._)){n=s,e.next=n,n.previous=e,--u;continue t}l+=s._.r,s=s.next}else{if(T(c._,r._)){e=c,e.next=n,n.previous=e,--u;continue t}h+=c._.r,c=c.previous}while(s!==c.next);for(r.previous=e,r.next=n,e.next=n.previous=n=r,a=E(e);(r=r.next)!==n;)(o=E(r))<a&&(e=r,a=o);n=e.next}for(e=[n._],r=n;(r=r.next)!==n;)e.push(r._);for(r=ut(e),u=0;u<i;++u)e=t[u],e.x-=r.x,e.y-=r.y;return r.r}function P(t){return null==t?null:N(t)}function N(t){if("function"!=typeof t)throw new Error;return t}function I(){return 0}function L(t){return Math.sqrt(t.value)}function R(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function O(t,e){return function(n){if(r=n.children){var r,i,a,o=r.length,u=t(n)*e||0;if(u)for(i=0;i<o;++i)r[i].r+=u;if(a=C(r),u)for(i=0;i<o;++i)r[i].r-=u;n.r=a+u}}}function B(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)}}function U(t){return t.id}function D(t){return t.parentId}function z(t,e){return t.parent===e.parent?1:2}function F(t){var e=t.children;return e?e[0]:t.t}function j(t){var e=t.children;return e?e[e.length-1]:t.t}function q(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 Y(t){for(var e,n=0,r=0,i=t.children,a=i.length;--a>=0;)e=i[a],e.z+=n,e.m+=n,n+=e.s+(r+=e.c)}function H(t,e,n){return t.a.parent===e.parent?t.a:n}function X(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}function G(t){for(var e,n,r,i,a,o=new X(t,0),u=[o];e=u.pop();)if(r=e._.children)for(e.children=new Array(a=r.length),i=a-1;i>=0;--i)u.push(n=e.children[i]=new X(r[i],i)),n.parent=e;return(o.parent=new X(null,0)).children=[o],o}function W(t,e,n,r,i,a){for(var o,u,s,c,l,h,f,d,p,g,v,y=[],m=e.children,_=0,x=0,b=m.length,w=e.value;_<b;){
  s=i-n,c=a-r;do l=m[x++].value;while(!l&&x<b);for(h=f=l,g=Math.max(c/s,s/c)/(w*t),v=l*l*g,p=Math.max(f/v,v/h);x<b;++x){if(l+=u=m[x].value,u<h&&(h=u),u>f&&(f=u),v=l*l*g,d=Math.max(f/v,v/h),d>p){l-=u;break}p=d}y.push(o={value:l,dice:s<c,children:m.slice(_,x)}),o.dice?ft(o,n,r,i,w?r+=c*l/w:a):_t(o,n,r,w?n+=s*l/w:i,a),w-=l,_=x}return y}var V=function(){function t(t){var e,l=0;t.eachAfter(function(t){var a=t.children;a?(t.x=n(a),t.y=i(a)):(t.x=e?l+=r(t,e):0,t.y=0,e=t)});var h=o(t),f=u(t),d=h.x-r(h,f)/2,p=f.x+r(f,h)/2;return t.eachAfter(c?function(e){e.x=(e.x-t.x)*a,e.y=(t.y-e.y)*s}:function(e){e.x=(e.x-d)/(p-d)*a,e.y=(1-(t.y?e.y/t.y:1))*s})}var r=e,a=1,s=1,c=!1;return t.separation=function(e){return arguments.length?(r=e,t):r},t.size=function(e){return arguments.length?(c=!1,a=+e[0],s=+e[1],t):c?null:[a,s]},t.nodeSize=function(e){return arguments.length?(c=!0,a=+e[0],s=+e[1],t):c?[a,s]:null},t},$=function(){return this.eachAfter(s)},Z=function(t){var e,n,r,i,a=this,o=[a];do for(e=o.reverse(),o=[];a=e.pop();)if(t(a),n=a.children)for(r=0,i=n.length;r<i;++r)o.push(n[r]);while(o.length);return this},Q=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},K=function(t){for(var e,n,r,i=this,a=[i],o=[];i=a.pop();)if(o.push(i),e=i.children)for(n=0,r=e.length;n<r;++n)a.push(e[n]);for(;i=o.pop();)t(i);return this},J=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})},tt=function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},et=function(t){for(var e=this,n=c(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},nt=function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},rt=function(){var t=[];return this.each(function(e){t.push(e)}),t},it=function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},at=function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e};g.prototype=l.prototype={constructor:g,count:$,each:Z,eachAfter:K,eachBefore:Q,sum:J,sort:tt,path:et,ancestors:nt,descendants:rt,leaves:it,links:at,copy:h};var ot=Array.prototype.slice,ut=function(t){for(var e,n,r=0,i=(t=v(ot.call(t))).length,a=[];r<i;)e=t[r],n&&_(n,e)?++r:(n=b(a=y(a,e)),r=0);return n},st=function(t){return C(t),t},ct=function(t){return function(){return t}},lt=function(){function t(t){return t.x=n/2,t.y=r/2,e?t.eachBefore(R(e)).eachAfter(O(i,.5)).eachBefore(B(1)):t.eachBefore(R(L)).eachAfter(O(I,1)).eachAfter(O(i,t.r/Math.min(n,r))).eachBefore(B(Math.min(n,r)/(2*t.r))),t}var e=null,n=1,r=1,i=I;return t.radius=function(n){return arguments.length?(e=P(n),t):e},t.size=function(e){return arguments.length?(n=+e[0],r=+e[1],t):[n,r]},t.padding=function(e){return arguments.length?(i="function"==typeof e?e:ct(+e),t):i},t},ht=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)},ft=function(t,e,n,r,i){for(var a,o=t.children,u=-1,s=o.length,c=t.value&&(r-e)/t.value;++u<s;)a=o[u],a.y0=n,a.y1=i,a.x0=e,a.x1=e+=a.value*c},dt=function(){function t(t){var o=t.height+1;return t.x0=t.y0=i,t.x1=n,t.y1=r/o,t.eachBefore(e(r,o)),a&&t.eachBefore(ht),t}function e(t,e){return function(n){n.children&&ft(n,n.x0,t*(n.depth+1)/e,n.x1,t*(n.depth+2)/e);var r=n.x0,a=n.y0,o=n.x1-i,u=n.y1-i;o<r&&(r=o=(r+o)/2),u<a&&(a=u=(a+u)/2),n.x0=r,n.y0=a,n.x1=o,n.y1=u}}var n=1,r=1,i=0,a=!1;return t.round=function(e){return arguments.length?(a=!!e,t):a},t.size=function(e){return arguments.length?(n=+e[0],r=+e[1],t):[n,r]},t.padding=function(e){return arguments.length?(i=+e,t):i},t},pt="$",gt={depth:-1},vt={},yt=function(){function t(t){var r,i,a,o,u,s,c,l=t.length,h=new Array(l),f={};for(i=0;i<l;++i)r=t[i],u=h[i]=new g(r),null!=(s=e(r,i,t))&&(s+="")&&(c=pt+(u.id=s),f[c]=c in f?vt:u);for(i=0;i<l;++i)if(u=h[i],s=n(t[i],i,t),null!=s&&(s+="")){if(o=f[pt+s],!o)throw new Error("missing: "+s);if(o===vt)throw new Error("ambiguous: "+s);o.children?o.children.push(u):o.children=[u],u.parent=o}else{if(a)throw new Error("multiple roots");a=u}if(!a)throw new Error("no root");if(a.parent=gt,a.eachBefore(function(t){t.depth=t.parent.depth+1,--l}).eachBefore(p),a.parent=null,l>0)throw new Error("cycle");return a}var e=U,n=D;return t.id=function(n){return arguments.length?(e=N(n),t):e},t.parentId=function(e){return arguments.length?(n=N(e),t):n},t};X.prototype=Object.create(g.prototype);var mt=function(){function t(t){var r=G(t);if(r.eachAfter(e),r.parent.m=-r.z,r.eachBefore(n),s)t.eachBefore(i);else{var c=t,l=t,h=t;t.eachBefore(function(t){t.x<c.x&&(c=t),t.x>l.x&&(l=t),t.depth>h.depth&&(h=t)});var f=c===l?1:a(c,l)/2,d=f-c.x,p=o/(l.x+f+d),g=u/(h.depth||1);t.eachBefore(function(t){t.x=(t.x+d)*p,t.y=t.depth*g})}return t}function e(t){var e=t.children,n=t.parent.children,i=t.i?n[t.i-1]:null;if(e){Y(t);var o=(e[0].z+e[e.length-1].z)/2;i?(t.z=i.z+a(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+a(t._,i._));t.parent.A=r(t,i,t.parent.A||n[0])}function n(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function r(t,e,n){if(e){for(var r,i=t,o=t,u=e,s=i.parent.children[0],c=i.m,l=o.m,h=u.m,f=s.m;u=j(u),i=F(i),u&&i;)s=F(s),o=j(o),o.a=t,r=u.z+h-i.z-c+a(u._,i._),r>0&&(q(H(u,t,n),t,r),c+=r,l+=r),h+=u.m,c+=i.m,f+=s.m,l+=o.m;u&&!j(o)&&(o.t=u,o.m+=h-l),i&&!F(s)&&(s.t=i,s.m+=c-f,n=t)}return n}function i(t){t.x*=o,t.y=t.depth*u}var a=z,o=1,u=1,s=null;return t.separation=function(e){return arguments.length?(a=e,t):a},t.size=function(e){return arguments.length?(s=!1,o=+e[0],u=+e[1],t):s?null:[o,u]},t.nodeSize=function(e){return arguments.length?(s=!0,o=+e[0],u=+e[1],t):s?[o,u]:null},t},_t=function(t,e,n,r,i){for(var a,o=t.children,u=-1,s=o.length,c=t.value&&(i-n)/t.value;++u<s;)a=o[u],a.x0=e,a.x1=r,a.y0=n,a.y1=n+=a.value*c},xt=(1+Math.sqrt(5))/2,bt=function t(e){function n(t,n,r,i,a){W(e,t,n,r,i,a)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(xt),wt=function(){function t(t){return t.x0=t.y0=0,t.x1=i,t.y1=a,t.eachBefore(e),o=[0],r&&t.eachBefore(ht),t}function e(t){var e=o[t.depth],r=t.x0+e,i=t.y0+e,a=t.x1-e,f=t.y1-e;a<r&&(r=a=(r+a)/2),f<i&&(i=f=(i+f)/2),t.x0=r,t.y0=i,t.x1=a,t.y1=f,t.children&&(e=o[t.depth+1]=u(t)/2,r+=h(t)-e,i+=s(t)-e,a-=c(t)-e,f-=l(t)-e,a<r&&(r=a=(r+a)/2),f<i&&(i=f=(i+f)/2),n(t,r,i,a,f))}var n=bt,r=!1,i=1,a=1,o=[0],u=I,s=I,c=I,l=I,h=I;return t.round=function(e){return arguments.length?(r=!!e,t):r},t.size=function(e){return arguments.length?(i=+e[0],a=+e[1],t):[i,a]},t.tile=function(e){return arguments.length?(n=N(e),t):n},t.padding=function(e){return arguments.length?t.paddingInner(e).paddingOuter(e):t.paddingInner()},t.paddingInner=function(e){return arguments.length?(u="function"==typeof e?e:ct(+e),t):u},t.paddingOuter=function(e){return arguments.length?t.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):t.paddingTop()},t.paddingTop=function(e){return arguments.length?(s="function"==typeof e?e:ct(+e),t):s},t.paddingRight=function(e){return arguments.length?(c="function"==typeof e?e:ct(+e),t):c},t.paddingBottom=function(e){return arguments.length?(l="function"==typeof e?e:ct(+e),t):l},t.paddingLeft=function(e){return arguments.length?(h="function"==typeof e?e:ct(+e),t):h},t},Mt=function(t,e,n,r,i){function a(t,e,n,r,i,o,u){if(t>=e-1){var c=s[t];return c.x0=r,c.y0=i,c.x1=o,c.y1=u,void 0}for(var h=l[t],f=n/2+h,d=t+1,p=e-1;d<p;){var g=d+p>>>1;l[g]<f?d=g+1:p=g}f-l[d-1]<l[d]-f&&t+1<d&&--d;var v=l[d]-h,y=n-v;if(o-r>u-i){var m=(r*y+o*v)/n;a(t,d,v,r,i,m,u),a(d,e,y,m,i,o,u)}else{var _=(i*y+u*v)/n;a(t,d,v,r,i,o,_),a(d,e,y,r,_,o,u)}}var o,u,s=t.children,c=s.length,l=new Array(c+1);for(l[0]=u=o=0;o<c;++o)l[o+1]=u+=s[o].value;a(0,c,t.value,e,n,r,i)},St=function(t,e,n,r,i){(1&t.depth?_t:ft)(t,e,n,r,i)},kt=function t(e){function n(t,n,r,i,a){if((o=t._squarify)&&o.ratio===e)for(var o,u,s,c,l,h=-1,f=o.length,d=t.value;++h<f;){for(u=o[h],s=u.children,c=u.value=0,l=s.length;c<l;++c)u.value+=s[c].value;u.dice?ft(u,n,r,i,r+=(a-r)*u.value/d):_t(u,n,r,n+=(i-n)*u.value/d,a),d-=u.value}else t._squarify=o=W(e,t,n,r,i,a),o.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(xt);t.cluster=V,t.hierarchy=l,t.pack=lt,t.packSiblings=st,t.packEnclose=ut,t.partition=dt,t.stratify=yt,t.tree=mt,t.treemap=wt,t.treemapBinary=Mt,t.treemapDice=ft,t.treemapSlice=_t,t.treemapSliceDice=St,t.treemapSquarify=bt,t.treemapResquarify=kt,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(t,e){return t[0]-e[0]||t[1]-e[1]}function n(t){for(var e=t.length,n=[0,1],r=2,i=2;i<e;++i){for(;r>1&&a(t[n[r-2]],t[n[r-1]],t[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}var r=function(t){for(var e,n=-1,r=t.length,i=t[r-1],a=0;++n<r;)e=i,i=t[n],a+=e[1]*i[0]-e[0]*i[1];return a/2},i=function(t){for(var e,n,r=-1,i=t.length,a=0,o=0,u=t[i-1],s=0;++r<i;)e=u,u=t[r],s+=n=e[0]*u[1]-u[0]*e[1],a+=(e[0]+u[0])*n,o+=(e[1]+u[1])*n;return s*=3,[a/s,o/s]},a=function(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])},o=function(t){if((i=t.length)<3)return null;var r,i,a=new Array(i),o=new Array(i);for(r=0;r<i;++r)a[r]=[+t[r][0],+t[r][1],r];for(a.sort(e),r=0;r<i;++r)o[r]=[a[r][0],-a[r][1]];var u=n(a),s=n(o),c=s[0]===u[0],l=s[s.length-1]===u[u.length-1],h=[];for(r=u.length-1;r>=0;--r)h.push(t[a[u[r]][2]]);for(r=+c;r<s.length-l;++r)h.push(t[a[s[r]][2]]);return h},u=function(t,e){for(var n,r,i=t.length,a=t[i-1],o=e[0],u=e[1],s=a[0],c=a[1],l=!1,h=0;h<i;++h)a=t[h],n=a[0],r=a[1],r>u!=c>u&&o<(s-n)*(u-r)/(c-r)+n&&(l=!l),s=n,c=r;return l},s=function(t){for(var e,n,r=-1,i=t.length,a=t[i-1],o=a[0],u=a[1],s=0;++r<i;)e=o,n=u,a=t[r],o=a[0],u=a[1],e-=o,n-=u,s+=Math.sqrt(e*e+n*n);return s};t.polygonArea=r,t.polygonCentroid=i,t.polygonHull=o,t.polygonContains=u,t.polygonLength=s,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(t){this._size=t,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function n(t){if(!t._start)try{r(t)}catch(e){if(t._tasks[t._ended+t._active-1])a(t,e);else if(!t._data)throw e}}function r(t){for(;t._start=t._waiting&&t._active<t._size;){var e=t._ended+t._active,n=t._tasks[e],r=n.length-1,a=n[r];n[r]=i(t,e),--t._waiting,++t._active,n=a.apply(null,n),t._tasks[e]&&(t._tasks[e]=n||c)}}function i(t,e){return function(r,i){t._tasks[e]&&(--t._active,++t._ended,t._tasks[e]=null,null==t._error&&(null!=r?a(t,r):(t._data[e]=i,t._waiting?n(t):o(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(t){}t._active=NaN,o(t)}function o(t){if(!t._active&&t._call){var e=t._data;t._data=void 0,t._call(t._error,e)}}function u(t){if(null==t)t=1/0;else if(!((t=+t)>=1))throw new Error("invalid concurrency");return new e(t)}var s=[].slice,c={};e.prototype=u.prototype={constructor:e,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 e=s.call(arguments,1);return e.push(t),++this._waiting,this._tasks.push(e),n(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))},o(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,o(this),this}},t.queue=u,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,n){n(e)}(this,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 a;if(null!=r)a=r,r=null;else do r=2*e()-1,a=2*e()-1,i=r*r+a*a;while(!i||i>1);return t+n*a*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),a=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),o=function t(e){function n(t){var n=a.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=o,t.randomIrwinHall=a,t.randomExponential=u,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){"use strict";function r(t){return function(e,n){t(null==e?n:null)}}function i(t){var e=t.responseType;return e&&"text"!==e?t.response:t.responseText}function a(t,e){return function(n){return t(n.responseText,e)}}var o=n(244).XMLHttpRequest;Object.defineProperty(e,"__esModule",{value:!0});var u=n(22),s=n(13),c=n(78),l=function(t,e){function n(t){var e,n=p.status;if(!n&&i(p)||n>=200&&n<300||304===n){if(l)try{e=l.call(a,p)}catch(t){return void f.call("error",a,t)}else e=p;f.call("load",a,e)}else f.call("error",a,t)}var a,c,l,h,f=s.dispatch("beforesend","progress","load","error"),d=u.map(),p=new o,g=null,v=null,y=0;if("undefined"==typeof XDomainRequest||"withCredentials"in p||!/^(http(s)?:)?\/\//.test(t)||(p=new XDomainRequest),"onload"in p?p.onload=p.onerror=p.ontimeout=n:p.onreadystatechange=function(t){p.readyState>3&&n(t)},p.onprogress=function(t){f.call("progress",a,t)},a={header:function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?d.get(t):(null==e?d.remove(t):d.set(t,e+""),a)},mimeType:function(t){return arguments.length?(c=null==t?null:t+"",a):c},responseType:function(t){return arguments.length?(h=t,a):h},timeout:function(t){return arguments.length?(y=+t,a):y},user:function(t){return arguments.length<1?g:(g=null==t?null:t+"",a)},password:function(t){return arguments.length<1?v:(v=null==t?null:t+"",a)},response:function(t){return l=t,a},get:function(t,e){return a.send("GET",t,e)},post:function(t,e){return a.send("POST",t,e)},send:function(e,n,i){return p.open(e,t,!0,g,v),null==c||d.has("accept")||d.set("accept",c+",*/*"),p.setRequestHeader&&d.each(function(t,e){p.setRequestHeader(e,t)}),null!=c&&p.overrideMimeType&&p.overrideMimeType(c),null!=h&&(p.responseType=h),y>0&&(p.timeout=y),null==i&&"function"==typeof n&&(i=n,n=null),null!=i&&1===i.length&&(i=r(i)),null!=i&&a.on("error",i).on("load",function(t){i(null,t)}),f.call("beforesend",a,p),p.send(null==n?null:n),a},abort:function(){return p.abort(),a},on:function(){var t=f.on.apply(f,arguments);return t===f?a:t}},null!=e){if("function"!=typeof e)throw new Error("invalid callback: "+e);return a.get(e)}return a},h=function(t,e){return function(n,r){var i=l(n).mimeType(t).response(e);if(null!=r){if("function"!=typeof r)throw new Error("invalid callback: "+r);return i.get(r)}return i}},f=h("text/html",function(t){return document.createRange().createContextualFragment(t.responseText)}),d=h("application/json",function(t){return JSON.parse(t.responseText)}),p=h("text/plain",function(t){return t.responseText}),g=h("application/xml",function(t){var e=t.responseXML;if(!e)throw new Error("parse error");return e}),v=function(t,e){return function(n,r,i){arguments.length<3&&(i=r,r=null);var o=l(n).mimeType(t);return o.row=function(t){return arguments.length?o.response(a(e,r=t)):r},o.row(r),i?o.get(i):o}},y=v("text/csv",c.csvParse),m=v("text/tab-separated-values",c.tsvParse);e.request=l,e.html=f,e.json=d,e.text=p,e.xml=g,e.csv=y,e.tsv=m},function(t,e,n){!function(t,r){r(e,n(21),n(22),n(18),n(42),n(31),n(44),n(23))}(this,function(t,e,n,r,i,a,o,u){"use strict";function s(t){function e(e){var n=e+"",o=r.get(n);if(!o){if(a!==Q)return a;r.set(n,o=i.push(e))}return t[(o-1)%t.length]}var r=n.map(),i=[],a=Q;return t=null==t?[]:Z.call(t),e.domain=function(t){if(!arguments.length)return i.slice();i=[],r=n.map();for(var a,o,u=-1,s=t.length;++u<s;)r.has(o=(a=t[u])+"")||r.set(o,i.push(a));return e},e.range=function(n){return arguments.length?(t=Z.call(n),e):t.slice()},e.unknown=function(t){return arguments.length?(a=t,e):a},e.copy=function(){return s().domain(i).range(t).unknown(a)},e}function c(){function t(){var t=a().length,i=u[1]<u[0],s=u[i-0],c=u[1-i];n=(c-s)/Math.max(1,t-h+2*f),l&&(n=Math.floor(n)),s+=(c-s-n*(t-h))*d,r=n*(1-h),l&&(s=Math.round(s),r=Math.round(r));var p=e.range(t).map(function(t){return s+n*t});return o(i?p.reverse():p)}var n,r,i=s().unknown(void 0),a=i.domain,o=i.range,u=[0,1],l=!1,h=0,f=0,d=.5;return delete i.unknown,i.domain=function(e){return arguments.length?(a(e),t()):a()},i.range=function(e){return arguments.length?(u=[+e[0],+e[1]],t()):u.slice()},i.rangeRound=function(e){return u=[+e[0],+e[1]],l=!0,t()},i.bandwidth=function(){return r},i.step=function(){return n},i.round=function(e){return arguments.length?(l=!!e,t()):l},i.padding=function(e){return arguments.length?(h=f=Math.max(0,Math.min(1,e)),t()):h},i.paddingInner=function(e){return arguments.length?(h=Math.max(0,Math.min(1,e)),t()):h},i.paddingOuter=function(e){return arguments.length?(f=Math.max(0,Math.min(1,e)),t()):f},i.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),t()):d},i.copy=function(){return c().domain(a()).range(u).round(l).paddingInner(h).paddingOuter(f).align(d)},t()}function l(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return l(e())},t}function h(){return l(c().paddingInner(1))}function f(t){return function(){return t}}function d(t){return+t}function p(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:f(e)}function g(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=e?0:t>=n?1:r(t)}}}function v(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:r(t)}}}function y(t,e,n,r){var i=t[0],a=t[1],o=e[0],u=e[1];return a<i?(i=n(a,i),o=r(u,o)):(i=n(i,a),o=r(o,u)),function(t){return o(i(t))}}function m(t,n,r,i){var a=Math.min(t.length,n.length)-1,o=new Array(a),u=new Array(a),s=-1;for(t[a]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++s<a;)o[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,a)-1;return u[r](o[r](n))}}function _(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function x(t,e){function n(){return a=Math.min(s.length,c.length)>2?m:y,o=u=null,i}function i(e){return(o||(o=a(s,c,h?g(t):t,l)))(+e)}var a,o,u,s=K,c=K,l=r.interpolate,h=!1;return i.invert=function(t){return(u||(u=a(c,s,p,h?v(e):e)))(+t)},i.domain=function(t){return arguments.length?(s=$.call(t,d),n()):s.slice()},i.range=function(t){return arguments.length?(c=Z.call(t),n()):c.slice()},i.rangeRound=function(t){return c=Z.call(t),l=r.interpolateRound,n()},i.clamp=function(t){return arguments.length?(h=!!t,n()):h},i.interpolate=function(t){return arguments.length?(l=t,n()):l},n()}function b(t,n,r){var a,o=t[0],u=t[t.length-1],s=e.tickStep(o,u,null==n?10:n);switch(r=i.formatSpecifier(null==r?",f":r),r.type){case"s":var c=Math.max(Math.abs(o),Math.abs(u));return null!=r.precision||isNaN(a=i.precisionPrefix(s,c))||(r.precision=a),i.formatPrefix(r,c);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(a=i.precisionRound(s,Math.max(Math.abs(o),Math.abs(u))))||(r.precision=a-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(a=i.precisionFixed(s))||(r.precision=a-2*("%"===r.type))}return i.format(r)}function w(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 b(n(),t,e)},t.nice=function(r){var i=n(),a=i.length-1,o=null==r?10:r,u=i[0],s=i[a],c=e.tickStep(u,s,o);return c&&(c=e.tickStep(Math.floor(u/c)*c,Math.ceil(s/c)*c,o),i[0]=Math.floor(u/c)*c,i[a]=Math.ceil(s/c)*c,n(i)),t},t}function M(){var t=x(p,r.interpolateNumber);return t.copy=function(){return _(t,M())},w(t)}function S(){function t(t){return+t}var e=[0,1];return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=$.call(n,d),t):e.slice()},t.copy=function(){return S().domain(e)},w(t)}function k(t,e){t=t.slice();var n,r=0,i=t.length-1,a=t[r],o=t[i];return o<a&&(n=r,r=i,i=n,n=a,a=o,o=n),t[r]=e.floor(a),t[i]=e.ceil(o),t}function T(t,e){return(e=Math.log(e/t))?function(n){return Math.log(n/t)/e}:f(e)}function E(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 A(t){return isFinite(t)?+("1e"+t):t<0?0:t}function C(t){return 10===t?A:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function P(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 N(t){return function(e){return-t(-e)}}function I(){function t(){return o=P(a),u=C(a),r()[0]<0&&(o=N(o),u=N(u)),n}var n=x(T,E).domain([1,10]),r=n.domain,a=10,o=P(10),u=C(10);return n.base=function(e){return arguments.length?(a=+e,t()):a},n.domain=function(e){return arguments.length?(r(e),t()):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 l,h,f,d=o(s),p=o(c),g=null==t?10:+t,v=[];if(!(a%1)&&p-d<g){if(d=Math.round(d)-1,p=Math.round(p)+1,s>0){for(;d<p;++d)for(h=1,l=u(d);h<a;++h)if(f=l*h,!(f<s)){if(f>c)break;v.push(f)}}else for(;d<p;++d)for(h=a-1,l=u(d);h>=1;--h)if(f=l*h,!(f<s)){if(f>c)break;v.push(f)}}else v=e.ticks(d,p,Math.min(p-d,g)).map(u);return n?v.reverse():v},n.tickFormat=function(t,e){if(null==e&&(e=10===a?".0e":","),"function"!=typeof e&&(e=i.format(e)),t===1/0)return e;null==t&&(t=10);var r=Math.max(1,a*t/n.ticks().length);return function(t){var n=t/u(Math.round(o(t)));return n*a<a-.5&&(n*=a),n<=r?e(t):""}},n.nice=function(){return r(k(r(),{floor:function(t){return u(Math.floor(o(t)))},ceil:function(t){return u(Math.ceil(o(t)))}}))},n.copy=function(){return _(n,I().base(a))},n}function L(t,e){return t<0?-Math.pow(-t,e):Math.pow(t,e)}function R(){function t(t,e){return(e=L(e,n)-(t=L(t,n)))?function(r){return(L(r,n)-t)/e}:f(e)}function e(t,e){return e=L(e,n)-(t=L(t,n)),function(r){return L(t+e*r,1/n)}}var n=1,r=x(t,e),i=r.domain;return r.exponent=function(t){return arguments.length?(n=+t,i(i())):n},r.copy=function(){return _(r,R().exponent(n))},w(r)}function O(){return R().exponent(.5)}function B(){function t(){var t=0,o=Math.max(1,i.length);for(a=new Array(o-1);++t<o;)a[t-1]=e.quantile(r,t/o);return n}function n(t){if(!isNaN(t=+t))return i[e.bisect(a,t)]}var r=[],i=[],a=[];return n.invertExtent=function(t){var e=i.indexOf(t);return e<0?[NaN,NaN]:[e>0?a[e-1]:r[0],e<a.length?a[e]:r[r.length-1]]},n.domain=function(n){if(!arguments.length)return r.slice();r=[];for(var i,a=0,o=n.length;a<o;++a)i=n[a],null==i||isNaN(i=+i)||r.push(i);return r.sort(e.ascending),t()},n.range=function(e){return arguments.length?(i=Z.call(e),t()):i.slice()},n.quantiles=function(){return a.slice()},n.copy=function(){return B().domain(r).range(i)},n}function U(){function t(t){if(t<=t)return u[e.bisect(o,t,0,a)]}function n(){var e=-1;for(o=new Array(a);++e<a;)o[e]=((e+1)*i-(e-a)*r)/(a+1);return t}var r=0,i=1,a=1,o=[.5],u=[0,1];return t.domain=function(t){return arguments.length?(r=+t[0],i=+t[1],n()):[r,i]},t.range=function(t){return arguments.length?(a=(u=Z.call(t)).length-1,n()):u.slice()},t.invertExtent=function(t){var e=u.indexOf(t);return e<0?[NaN,NaN]:e<1?[r,o[0]]:e>=a?[o[a-1],i]:[o[e-1],o[e]]},t.copy=function(){return U().domain([r,i]).range(u)},w(t)}function D(){function t(t){if(t<=t)return r[e.bisect(n,t,0,i)]}var n=[.5],r=[0,1],i=1;return t.domain=function(e){return arguments.length?(n=Z.call(e),i=Math.min(n.length,r.length-1),t):n.slice()},t.range=function(e){return arguments.length?(r=Z.call(e),i=Math.min(n.length,r.length-1),t):r.slice()},t.invertExtent=function(t){var e=r.indexOf(t);return[n[e-1],n[e]]},t.copy=function(){return D().domain(n).range(r)},t}function z(t){return new Date(t)}function F(t){return t instanceof Date?+t:+new Date(+t)}function j(t,n,i,a,o,u,s,c,l){function h(e){return(s(e)<e?y:u(e)<e?m:o(e)<e?b:a(e)<e?w:n(e)<e?i(e)<e?M:S:t(e)<e?T:E)(e)}function f(n,r,i,a){if(null==n&&(n=10),"number"==typeof n){var o=Math.abs(i-r)/n,u=e.bisector(function(t){return t[2]}).right(A,o);u===A.length?(a=e.tickStep(r/at,i/at,n),n=t):u?(u=A[o/A[u-1][2]<A[u][2]/o?u-1:u],a=u[1],n=u[0]):(a=e.tickStep(r,i,n),n=c)}return null==a?n:n.every(a)}var d=x(p,r.interpolateNumber),g=d.invert,v=d.domain,y=l(".%L"),m=l(":%S"),b=l("%I:%M"),w=l("%I %p"),M=l("%a %d"),S=l("%b %d"),T=l("%B"),E=l("%Y"),A=[[s,1,J],[s,5,5*J],[s,15,15*J],[s,30,30*J],[u,1,tt],[u,5,5*tt],[u,15,15*tt],[u,30,30*tt],[o,1,et],[o,3,3*et],[o,6,6*et],[o,12,12*et],[a,1,nt],[a,2,2*nt],[i,1,rt],[n,1,it],[n,3,3*it],[t,1,at]];return d.invert=function(t){return new Date(g(t))},d.domain=function(t){return arguments.length?v($.call(t,F)):v().map(z)},d.ticks=function(t,e){var n,r=v(),i=r[0],a=r[r.length-1],o=a<i;return o&&(n=i,i=a,a=n),n=f(t,i,a,e),n=n?n.range(i,a+1):[],o?n.reverse():n},d.tickFormat=function(t,e){return null==e?h:l(e)},d.nice=function(t,e){var n=v();return(t=f(t,n[0],n[n.length-1],e))?v(k(n,t)):d},d.copy=function(){return _(d,j(t,n,i,a,o,u,s,c,l))},d}function q(){return j(a.timeYear,a.timeMonth,a.timeWeek,a.timeDay,a.timeHour,a.timeMinute,a.timeSecond,a.timeMillisecond,o.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}function Y(){return j(a.utcYear,a.utcMonth,a.utcWeek,a.utcDay,a.utcHour,a.utcMinute,a.utcSecond,a.utcMillisecond,o.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}function H(t){return t.match(/.{6}/g).map(function(t){return"#"+t})}function X(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return dt.h=360*t-100,dt.s=1.5-1.5*e,dt.l=.8-.9*e,dt+""}function G(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}function W(t){function e(e){var a=(e-n)/(r-n);return t(i?Math.max(0,Math.min(1,a)):a)}var n=0,r=1,i=!1;return e.domain=function(t){return arguments.length?(n=+t[0],r=+t[1],e):[n,r]},e.clamp=function(t){return arguments.length?(i=!!t,e):i},e.interpolator=function(n){return arguments.length?(t=n,e):t},e.copy=function(){return W(t).domain([n,r]).clamp(i)},w(e)}var V=Array.prototype,$=V.map,Z=V.slice,Q={name:"implicit"},K=[0,1],J=1e3,tt=60*J,et=60*tt,nt=24*et,rt=7*nt,it=30*nt,at=365*nt,ot=H("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),ut=H("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),st=H("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),ct=H("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),lt=r.interpolateCubehelixLong(u.cubehelix(300,.5,0),u.cubehelix(-240,.5,1)),ht=r.interpolateCubehelixLong(u.cubehelix(-100,.75,.35),u.cubehelix(80,1.5,.8)),ft=r.interpolateCubehelixLong(u.cubehelix(260,.75,.35),u.cubehelix(80,1.5,.8)),dt=u.cubehelix(),pt=G(H("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),gt=G(H("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),vt=G(H("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),yt=G(H("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
  t.scaleBand=c,t.scalePoint=h,t.scaleIdentity=S,t.scaleLinear=M,t.scaleLog=I,t.scaleOrdinal=s,t.scaleImplicit=Q,t.scalePow=R,t.scaleSqrt=O,t.scaleQuantile=B,t.scaleQuantize=U,t.scaleThreshold=D,t.scaleTime=q,t.scaleUtc=Y,t.schemeCategory10=ot,t.schemeCategory20b=ut,t.schemeCategory20c=st,t.schemeCategory20=ct,t.interpolateCubehelixDefault=lt,t.interpolateRainbow=X,t.interpolateWarm=ht,t.interpolateCool=ft,t.interpolateViridis=pt,t.interpolateMagma=gt,t.interpolateInferno=vt,t.interpolatePlasma=yt,t.scaleSequential=W,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),qt.hasOwnProperty(e)?{space:qt[e],local:t}:t}function n(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===jt&&e.documentElement.namespaceURI===jt?e.createElement(t):e.createElementNS(n,t)}}function r(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function i(t){var i=e(t);return(i.local?r:n)(i)}function a(){return new o}function o(){this._="@"+(++Yt).toString(36)}function u(t,e,n){return t=s(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function s(e,n,r){return function(i){var a=t.event;t.event=i;try{e.call(this,this.__data__,n,r)}finally{t.event=a}}}function c(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}})}function l(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r<a;++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 h(t,e,n){var r=Vt.hasOwnProperty(t.type)?u:s;return function(i,a,o){var u,s=this.__on,c=r(e,a,o);if(s)for(var l=0,h=s.length;l<h;++l)if((u=s[l]).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 f(t,e,n){var r,i,a=c(t+""),o=a.length;{if(!(arguments.length<2)){for(u=e?h:l,null==n&&(n=!1),r=0;r<o;++r)this.each(u(a[r],e,n));return this}var u=this.node().__on;if(u)for(var s,f=0,d=u.length;f<d;++f)for(r=0,s=u[f];r<o;++r)if((i=a[r]).type===s.type&&i.name===s.name)return s.value}}function d(e,n,r,i){var a=t.event;e.sourceEvent=t.event,t.event=e;try{return n.apply(r,i)}finally{t.event=a}}function p(){for(var e,n=t.event;e=n.sourceEvent;)n=e;return n}function g(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()),[r.x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}function v(t){var e=p();return e.changedTouches&&(e=e.changedTouches[0]),g(t,e)}function y(){}function m(t){return null==t?y:function(){return this.querySelector(t)}}function _(t){"function"!=typeof t&&(t=m(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o,u=e[i],s=u.length,c=r[i]=new Array(s),l=0;l<s;++l)(a=u[l])&&(o=t.call(a,a.__data__,l,u))&&("__data__"in a&&(o.__data__=a.__data__),c[l]=o);return new Ot(r,this._parents)}function x(){return[]}function b(t){return null==t?x:function(){return this.querySelectorAll(t)}}function w(t){"function"!=typeof t&&(t=b(t));for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var o,u=e[a],s=u.length,c=0;c<s;++c)(o=u[c])&&(r.push(t.call(o,o.__data__,c,u)),i.push(o));return new Ot(r,i)}function M(t){"function"!=typeof t&&(t=Wt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],u=o.length,s=r[i]=[],c=0;c<u;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&s.push(a);return new Ot(r,this._parents)}function S(t){return new Array(t.length)}function k(){return new Ot(this._enter||this._groups.map(S),this._parents)}function T(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function E(t){return function(){return t}}function A(t,e,n,r,i,a){for(var o,u=0,s=e.length,c=a.length;u<c;++u)(o=e[u])?(o.__data__=a[u],r[u]=o):n[u]=new T(t,a[u]);for(;u<s;++u)(o=e[u])&&(i[u]=o)}function C(t,e,n,r,i,a,o){var u,s,c,l={},h=e.length,f=a.length,d=new Array(h);for(u=0;u<h;++u)(s=e[u])&&(d[u]=c=Zt+o.call(s,s.__data__,u,e),c in l?i[u]=s:l[c]=s);for(u=0;u<f;++u)c=Zt+o.call(t,a[u],u,a),(s=l[c])?(r[u]=s,s.__data__=a[u],l[c]=null):n[u]=new T(t,a[u]);for(u=0;u<h;++u)(s=e[u])&&l[d[u]]===s&&(i[u]=s)}function P(t,e){if(!t)return d=new Array(this.size()),c=-1,this.each(function(t){d[++c]=t}),d;var n=e?C:A,r=this._parents,i=this._groups;"function"!=typeof t&&(t=E(t));for(var a=i.length,o=new Array(a),u=new Array(a),s=new Array(a),c=0;c<a;++c){var l=r[c],h=i[c],f=h.length,d=t.call(l,l&&l.__data__,c,r),p=d.length,g=u[c]=new Array(p),v=o[c]=new Array(p),y=s[c]=new Array(f);n(l,h,g,v,y,d,e);for(var m,_,x=0,b=0;x<p;++x)if(m=g[x]){for(x>=b&&(b=x+1);!(_=v[b])&&++b<p;);m._next=_||null}}return o=new Ot(o,r),o._enter=u,o._exit=s,o}function N(){return new Ot(this._exit||this._groups.map(S),this._parents)}function I(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),u=0;u<a;++u)for(var s,c=e[u],l=n[u],h=c.length,f=o[u]=new Array(h),d=0;d<h;++d)(s=c[d]||l[d])&&(f[d]=s);for(;u<r;++u)o[u]=e[u];return new Ot(o,this._parents)}function L(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&o!==r.nextSibling&&o.parentNode.insertBefore(r,o),o=r);return this}function R(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=O);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o,u=n[a],s=u.length,c=i[a]=new Array(s),l=0;l<s;++l)(o=u[l])&&(c[l]=o);c.sort(e)}return new Ot(i,this._parents).order()}function O(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function B(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function U(){var t=new Array(this.size()),e=-1;return this.each(function(){t[++e]=this}),t}function D(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function z(){var t=0;return this.each(function(){++t}),t}function F(){return!this.node()}function j(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,a=e[n],o=0,u=a.length;o<u;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this}function q(t){return function(){this.removeAttribute(t)}}function Y(t){return function(){this.removeAttributeNS(t.space,t.local)}}function H(t,e){return function(){this.setAttribute(t,e)}}function X(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function G(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function W(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 V(t,n){var r=e(t);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((null==n?r.local?Y:q:"function"==typeof n?r.local?W:G:r.local?X:H)(r,n))}function $(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Z(t){return function(){this.style.removeProperty(t)}}function Q(t,e,n){return function(){this.style.setProperty(t,e,n)}}function K(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function J(t,e,n){var r;return arguments.length>1?this.each((null==e?Z:"function"==typeof e?K:Q)(t,e,null==n?"":n)):$(r=this.node()).getComputedStyle(r,null).getPropertyValue(t)}function tt(t){return function(){delete this[t]}}function et(t,e){return function(){this[t]=e}}function nt(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function rt(t,e){return arguments.length>1?this.each((null==e?tt:"function"==typeof e?nt:et)(t,e)):this.node()[t]}function it(t){return t.trim().split(/^|\s+/)}function at(t){return t.classList||new ot(t)}function ot(t){this._node=t,this._names=it(t.getAttribute("class")||"")}function ut(t,e){for(var n=at(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function st(t,e){for(var n=at(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function ct(t){return function(){ut(this,t)}}function lt(t){return function(){st(this,t)}}function ht(t,e){return function(){(e.apply(this,arguments)?ut:st)(this,t)}}function ft(t,e){var n=it(t+"");if(arguments.length<2){for(var r=at(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?ht:e?ct:lt)(n,e))}function dt(){this.textContent=""}function pt(t){return function(){this.textContent=t}}function gt(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function vt(t){return arguments.length?this.each(null==t?dt:("function"==typeof t?gt:pt)(t)):this.node().textContent}function yt(){this.innerHTML=""}function mt(t){return function(){this.innerHTML=t}}function _t(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function xt(t){return arguments.length?this.each(null==t?yt:("function"==typeof t?_t:mt)(t)):this.node().innerHTML}function bt(){this.nextSibling&&this.parentNode.appendChild(this)}function wt(){return this.each(bt)}function Mt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function St(){return this.each(Mt)}function kt(t){var e="function"==typeof t?t:i(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Tt(){return null}function Et(t,e){var n="function"==typeof t?t:i(t),r=null==e?Tt:"function"==typeof e?e:m(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function At(){var t=this.parentNode;t&&t.removeChild(this)}function Ct(){return this.each(At)}function Pt(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Nt(t,e,n){var r=$(t),i=r.CustomEvent;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)}function It(t,e){return function(){return Nt(this,t,e)}}function Lt(t,e){return function(){return Nt(this,t,e.apply(this,arguments))}}function Rt(t,e){return this.each(("function"==typeof e?Lt:It)(t,e))}function Ot(t,e){this._groups=t,this._parents=e}function Bt(){return new Ot([[document.documentElement]],Qt)}function Ut(t){return"string"==typeof t?new Ot([[document.querySelector(t)]],[document.documentElement]):new Ot([[t]],Qt)}function Dt(t){return"string"==typeof t?new Ot([document.querySelectorAll(t)],[document.documentElement]):new Ot([null==t?[]:t],Qt)}function zt(t,e,n){arguments.length<3&&(n=e,e=p().changedTouches);for(var r,i=0,a=e?e.length:0;i<a;++i)if((r=e[i]).identifier===n)return g(t,r);return null}function Ft(t,e){null==e&&(e=p().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n<r;++n)i[n]=g(t,e[n]);return i}var jt="http://www.w3.org/1999/xhtml",qt={svg:"http://www.w3.org/2000/svg",xhtml:jt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Yt=0;o.prototype=a.prototype={constructor:o,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._}};var Ht=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var Xt=document.documentElement;if(!Xt.matches){var Gt=Xt.webkitMatchesSelector||Xt.msMatchesSelector||Xt.mozMatchesSelector||Xt.oMatchesSelector;Ht=function(t){return function(){return Gt.call(this,t)}}}}var Wt=Ht,Vt={};if(t.event=null,"undefined"!=typeof document){var $t=document.documentElement;"onmouseenter"in $t||(Vt={mouseenter:"mouseover",mouseleave:"mouseout"})}T.prototype={constructor:T,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 Zt="$";ot.prototype={add:function(t){var e=this._names.indexOf(t);e<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 Qt=[null];Ot.prototype=Bt.prototype={constructor:Ot,select:_,selectAll:w,filter:M,data:P,enter:k,exit:N,merge:I,order:L,sort:R,call:B,nodes:U,node:D,size:z,empty:F,each:j,attr:V,style:J,property:rt,classed:ft,text:vt,html:xt,raise:wt,lower:St,append:kt,insert:Et,remove:Ct,datum:Pt,on:f,dispatch:Rt},t.creator=i,t.local=a,t.matcher=Wt,t.mouse=v,t.namespace=e,t.namespaces=qt,t.select=Ut,t.selectAll=Dt,t.selection=Bt,t.selector=m,t.selectorAll=b,t.touch=zt,t.touches=Ft,t.window=$,t.customEvent=d,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,r){r(e,n(43))}(this,function(t,e){"use strict";function n(t){return t>1?0:t<-1?ht:Math.acos(t)}function r(t){return t>=1?ft:t<=-1?-ft:Math.asin(t)}function i(t){return t.innerRadius}function a(t){return t.outerRadius}function o(t){return t.startAngle}function u(t){return t.endAngle}function s(t){return t&&t.padAngle}function c(t,e,n,r,i,a,o,u){var s=n-t,c=r-e,l=o-i,h=u-a,f=(l*(e-a)-h*(t-i))/(h*s-l*c);return[t+f*s,e+f*c]}function l(t,e,n,r,i,a,o){var u=t-n,s=e-r,c=(o?a:-a)/ct(u*u+s*s),l=c*s,h=-c*u,f=t+l,d=e+h,p=n+l,g=r+h,v=(f+p)/2,y=(d+g)/2,m=p-f,_=g-d,x=m*m+_*_,b=i-a,w=f*g-p*d,M=(_<0?-1:1)*ct(ot(0,b*b*x-w*w)),S=(w*_-m*M)/x,k=(-w*m-_*M)/x,T=(w*_+m*M)/x,E=(-w*m+_*M)/x,A=S-v,C=k-y,P=T-v,N=E-y;return A*A+C*C>P*P+N*N&&(S=T,k=E),{cx:S,cy:k,x01:-l,y01:-h,x11:S*(i/b-1),y11:k*(i/b-1)}}function h(t){this._context=t}function f(t){return t[0]}function d(t){return t[1]}function p(t){this._curve=t}function g(t){function e(e){return new p(t(e))}return e._curve=t,e}function v(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(g(t)):e()._curve},t}function y(t){return t.source}function m(t){return t.target}function _(t){function n(){var n,s=kt.call(arguments),c=r.apply(this,s),l=i.apply(this,s);if(u||(u=n=e.path()),t(u,+a.apply(this,(s[0]=c,s)),+o.apply(this,s),+a.apply(this,(s[0]=l,s)),+o.apply(this,s)),n)return u=null,n+""||null}var r=y,i=m,a=f,o=d,u=null;return n.source=function(t){return arguments.length?(r=t,n):r},n.target=function(t){return arguments.length?(i=t,n):i},n.x=function(t){return arguments.length?(a="function"==typeof t?t:nt(+t),n):a},n.y=function(t){return arguments.length?(o="function"==typeof t?t:nt(+t),n):o},n.context=function(t){return arguments.length?(u=null==t?null:t,n):u},n}function x(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function b(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function w(t,e,n,r,i){var a=St(e,n),o=St(e,n=(n+i)/2),u=St(r,n),s=St(r,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(o[0],o[1],u[0],u[1],s[0],s[1])}function M(){return _(x)}function S(){return _(b)}function k(){var t=_(w);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}function T(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 E(t){this._context=t}function A(t){this._context=t}function C(t){this._context=t}function P(t,e){this._basis=new E(t),this._beta=e}function N(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 I(t,e){this._context=t,this._k=(1-e)/6}function L(t,e){this._context=t,this._k=(1-e)/6}function R(t,e){this._context=t,this._k=(1-e)/6}function O(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>lt){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>lt){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/l,o=(o*c+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function B(t,e){this._context=t,this._alpha=e}function U(t,e){this._context=t,this._alpha=e}function D(t,e){this._context=t,this._alpha=e}function z(t){this._context=t}function F(t){return t<0?-1:1}function j(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),u=(a*i+o*r)/(r+i);return(F(a)+F(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function q(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Y(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,u=(a-r)/3;t._context.bezierCurveTo(r+u,i+u*e,a-u,o-u*n,a,o)}function H(t){this._context=t}function X(t){this._context=new G(t)}function G(t){this._context=t}function W(t){return new H(t)}function V(t){return new X(t)}function $(t){this._context=t}function Z(t){var e,n,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/a[e-1],a[e]-=n,o[e]-=n*o[e-1];for(i[r-1]=o[r-1]/a[r-1],e=r-2;e>=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function Q(t,e){this._context=t,this._t=e}function K(t){return new Q(t,0)}function J(t){return new Q(t,1)}function tt(t,e){return t[e]}function et(t){for(var e,n=0,r=-1,i=t.length;++r<i;)(e=+t[r][1])&&(n+=e);return n}var nt=function(t){return function(){return t}},rt=Math.abs,it=Math.atan2,at=Math.cos,ot=Math.max,ut=Math.min,st=Math.sin,ct=Math.sqrt,lt=1e-12,ht=Math.PI,ft=ht/2,dt=2*ht,pt=function(){function t(){var t,i,a=+h.apply(this,arguments),o=+f.apply(this,arguments),u=g.apply(this,arguments)-ft,s=v.apply(this,arguments)-ft,_=rt(s-u),x=s>u;if(m||(m=t=e.path()),o<a&&(i=o,o=a,a=i),o>lt)if(_>dt-lt)m.moveTo(o*at(u),o*st(u)),m.arc(0,0,o,u,s,!x),a>lt&&(m.moveTo(a*at(s),a*st(s)),m.arc(0,0,a,s,u,x));else{var b,w,M=u,S=s,k=u,T=s,E=_,A=_,C=y.apply(this,arguments)/2,P=C>lt&&(p?+p.apply(this,arguments):ct(a*a+o*o)),N=ut(rt(o-a)/2,+d.apply(this,arguments)),I=N,L=N;if(P>lt){var R=r(P/a*st(C)),O=r(P/o*st(C));(E-=2*R)>lt?(R*=x?1:-1,k+=R,T-=R):(E=0,k=T=(u+s)/2),(A-=2*O)>lt?(O*=x?1:-1,M+=O,S-=O):(A=0,M=S=(u+s)/2)}var B=o*at(M),U=o*st(M),D=a*at(T),z=a*st(T);if(N>lt){var F=o*at(S),j=o*st(S),q=a*at(k),Y=a*st(k);if(_<ht){var H=E>lt?c(B,U,q,Y,F,j,D,z):[D,z],X=B-H[0],G=U-H[1],W=F-H[0],V=j-H[1],$=1/st(n((X*W+G*V)/(ct(X*X+G*G)*ct(W*W+V*V)))/2),Z=ct(H[0]*H[0]+H[1]*H[1]);I=ut(N,(a-Z)/($-1)),L=ut(N,(o-Z)/($+1))}}A>lt?L>lt?(b=l(q,Y,B,U,o,L,x),w=l(F,j,D,z,o,L,x),m.moveTo(b.cx+b.x01,b.cy+b.y01),L<N?m.arc(b.cx,b.cy,L,it(b.y01,b.x01),it(w.y01,w.x01),!x):(m.arc(b.cx,b.cy,L,it(b.y01,b.x01),it(b.y11,b.x11),!x),m.arc(0,0,o,it(b.cy+b.y11,b.cx+b.x11),it(w.cy+w.y11,w.cx+w.x11),!x),m.arc(w.cx,w.cy,L,it(w.y11,w.x11),it(w.y01,w.x01),!x))):(m.moveTo(B,U),m.arc(0,0,o,M,S,!x)):m.moveTo(B,U),a>lt&&E>lt?I>lt?(b=l(D,z,F,j,a,-I,x),w=l(B,U,q,Y,a,-I,x),m.lineTo(b.cx+b.x01,b.cy+b.y01),I<N?m.arc(b.cx,b.cy,I,it(b.y01,b.x01),it(w.y01,w.x01),!x):(m.arc(b.cx,b.cy,I,it(b.y01,b.x01),it(b.y11,b.x11),!x),m.arc(0,0,a,it(b.cy+b.y11,b.cx+b.x11),it(w.cy+w.y11,w.cx+w.x11),x),m.arc(w.cx,w.cy,I,it(w.y11,w.x11),it(w.y01,w.x01),!x))):m.arc(0,0,a,T,k,x):m.lineTo(D,z)}else m.moveTo(0,0);if(m.closePath(),t)return m=null,t+""||null}var h=i,f=a,d=nt(0),p=null,g=o,v=u,y=s,m=null;return t.centroid=function(){var t=(+h.apply(this,arguments)+ +f.apply(this,arguments))/2,e=(+g.apply(this,arguments)+ +v.apply(this,arguments))/2-ht/2;return[at(e)*t,st(e)*t]},t.innerRadius=function(e){return arguments.length?(h="function"==typeof e?e:nt(+e),t):h},t.outerRadius=function(e){return arguments.length?(f="function"==typeof e?e:nt(+e),t):f},t.cornerRadius=function(e){return arguments.length?(d="function"==typeof e?e:nt(+e),t):d},t.padRadius=function(e){return arguments.length?(p=null==e?null:"function"==typeof e?e:nt(+e),t):p},t.startAngle=function(e){return arguments.length?(g="function"==typeof e?e:nt(+e),t):g},t.endAngle=function(e){return arguments.length?(v="function"==typeof e?e:nt(+e),t):v},t.padAngle=function(e){return arguments.length?(y="function"==typeof e?e:nt(+e),t):y},t.context=function(e){return arguments.length?(m=null==e?null:e,t):m},t};h.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 gt=function(t){return new h(t)},vt=function(){function t(t){var s,c,l,h=t.length,f=!1;for(null==a&&(u=o(l=e.path())),s=0;s<=h;++s)!(s<h&&i(c=t[s],s,t))===f&&((f=!f)?u.lineStart():u.lineEnd()),f&&u.point(+n(c,s,t),+r(c,s,t));if(l)return u=null,l+""||null}var n=f,r=d,i=nt(!0),a=null,o=gt,u=null;return t.x=function(e){return arguments.length?(n="function"==typeof e?e:nt(+e),t):n},t.y=function(e){return arguments.length?(r="function"==typeof e?e:nt(+e),t):r},t.defined=function(e){return arguments.length?(i="function"==typeof e?e:nt(!!e),t):i},t.curve=function(e){return arguments.length?(o=e,null!=a&&(u=o(a)),t):o},t.context=function(e){return arguments.length?(null==e?a=u=null:u=o(a=e),t):a},t},yt=function(){function t(t){var n,h,f,d,p,g=t.length,v=!1,y=new Array(g),m=new Array(g);for(null==s&&(l=c(p=e.path())),n=0;n<=g;++n){if(!(n<g&&u(d=t[n],n,t))===v)if(v=!v)h=n,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),f=n-1;f>=h;--f)l.point(y[f],m[f]);l.lineEnd(),l.areaEnd()}v&&(y[n]=+r(d,n,t),m[n]=+a(d,n,t),l.point(i?+i(d,n,t):y[n],o?+o(d,n,t):m[n]))}if(p)return l=null,p+""||null}function n(){return vt().defined(u).curve(c).context(s)}var r=f,i=null,a=nt(0),o=d,u=nt(!0),s=null,c=gt,l=null;return t.x=function(e){return arguments.length?(r="function"==typeof e?e:nt(+e),i=null,t):r},t.x0=function(e){return arguments.length?(r="function"==typeof e?e:nt(+e),t):r},t.x1=function(e){return arguments.length?(i=null==e?null:"function"==typeof e?e:nt(+e),t):i},t.y=function(e){return arguments.length?(a="function"==typeof e?e:nt(+e),o=null,t):a},t.y0=function(e){return arguments.length?(a="function"==typeof e?e:nt(+e),t):a},t.y1=function(e){return arguments.length?(o=null==e?null:"function"==typeof e?e:nt(+e),t):o},t.lineX0=t.lineY0=function(){return n().x(r).y(a)},t.lineY1=function(){return n().x(r).y(o)},t.lineX1=function(){return n().x(i).y(a)},t.defined=function(e){return arguments.length?(u="function"==typeof e?e:nt(!!e),t):u},t.curve=function(e){return arguments.length?(c=e,null!=s&&(l=c(s)),t):c},t.context=function(e){return arguments.length?(null==e?s=l=null:l=c(s=e),t):s},t},mt=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},_t=function(t){return t},xt=function(){function t(t){var u,s,c,l,h,f=t.length,d=0,p=new Array(f),g=new Array(f),v=+i.apply(this,arguments),y=Math.min(dt,Math.max(-dt,a.apply(this,arguments)-v)),m=Math.min(Math.abs(y)/f,o.apply(this,arguments)),_=m*(y<0?-1:1);for(u=0;u<f;++u)(h=g[p[u]=u]=+e(t[u],u,t))>0&&(d+=h);for(null!=n?p.sort(function(t,e){return n(g[t],g[e])}):null!=r&&p.sort(function(e,n){return r(t[e],t[n])}),u=0,c=d?(y-f*_)/d:0;u<f;++u,v=l)s=p[u],h=g[s],l=v+(h>0?h*c:0)+_,g[s]={data:t[s],index:u,value:h,startAngle:v,endAngle:l,padAngle:m};return g}var e=_t,n=mt,r=null,i=nt(0),a=nt(dt),o=nt(0);return t.value=function(n){return arguments.length?(e="function"==typeof n?n:nt(+n),t):e},t.sortValues=function(e){return arguments.length?(n=e,r=null,t):n},t.sort=function(e){return arguments.length?(r=e,n=null,t):r},t.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:nt(+e),t):i},t.endAngle=function(e){return arguments.length?(a="function"==typeof e?e:nt(+e),t):a},t.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:nt(+e),t):o},t},bt=g(gt);p.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 wt=function(){return v(vt().curve(bt))},Mt=function(){var t=yt().curve(bt),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,a=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 v(n())},delete t.lineX0,t.lineEndAngle=function(){return v(r())},delete t.lineX1,t.lineInnerRadius=function(){return v(i())},delete t.lineY0,t.lineOuterRadius=function(){return v(a())},delete t.lineY1,t.curve=function(t){return arguments.length?e(g(t)):e()._curve},t},St=function(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]},kt=Array.prototype.slice,Tt={draw:function(t,e){var n=Math.sqrt(e/ht);t.moveTo(n,0),t.arc(0,0,n,0,dt)}},Et={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()}},At=Math.sqrt(1/3),Ct=2*At,Pt={draw:function(t,e){var n=Math.sqrt(e/Ct),r=n*At;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},Nt=.8908130915292852,It=Math.sin(ht/10)/Math.sin(7*ht/10),Lt=Math.sin(dt/10)*It,Rt=-Math.cos(dt/10)*It,Ot={draw:function(t,e){var n=Math.sqrt(e*Nt),r=Lt*n,i=Rt*n;t.moveTo(0,-n),t.lineTo(r,i);for(var a=1;a<5;++a){var o=dt*a/5,u=Math.cos(o),s=Math.sin(o);t.lineTo(s*n,-u*n),t.lineTo(u*r-s*i,s*r+u*i)}t.closePath()}},Bt={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},Ut=Math.sqrt(3),Dt={draw:function(t,e){var n=-Math.sqrt(e/(3*Ut));t.moveTo(0,2*n),t.lineTo(-Ut*n,-n),t.lineTo(Ut*n,-n),t.closePath()}},zt=-.5,Ft=Math.sqrt(3)/2,jt=1/Math.sqrt(12),qt=3*(jt/2+1),Yt={draw:function(t,e){var n=Math.sqrt(e/qt),r=n/2,i=n*jt,a=r,o=n*jt+n,u=-a,s=o;t.moveTo(r,i),t.lineTo(a,o),t.lineTo(u,s),t.lineTo(zt*r-Ft*i,Ft*r+zt*i),t.lineTo(zt*a-Ft*o,Ft*a+zt*o),t.lineTo(zt*u-Ft*s,Ft*u+zt*s),t.lineTo(zt*r+Ft*i,zt*i-Ft*r),t.lineTo(zt*a+Ft*o,zt*o-Ft*a),t.lineTo(zt*u+Ft*s,zt*s-Ft*u),t.closePath()}},Ht=[Tt,Et,Pt,Bt,Ot,Dt,Yt],Xt=function(){function t(){var t;if(i||(i=t=e.path()),n.apply(this,arguments).draw(i,+r.apply(this,arguments)),t)return i=null,t+""||null}var n=nt(Tt),r=nt(64),i=null;return t.type=function(e){return arguments.length?(n="function"==typeof e?e:nt(e),t):n},t.size=function(e){return arguments.length?(r="function"==typeof e?e:nt(+e),t):r},t.context=function(e){return arguments.length?(i=null==e?null:e,t):i},t},Gt=function(){};E.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:T(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:T(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Wt=function(t){return new E(t)};A.prototype={areaStart:Gt,areaEnd:Gt,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:T(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Vt=function(t){return new A(t)};C.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:T(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var $t=function(t){return new C(t)};P.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],a=e[0],o=t[n]-i,u=e[n]-a,s=-1;++s<=n;)r=s/n,this._basis.point(this._beta*t[s]+(1-this._beta)*(i+r*o),this._beta*e[s]+(1-this._beta)*(a+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Zt=function t(e){function n(t){return 1===e?new E(t):new P(t,e)}return n.beta=function(e){return t(+e)},n}(.85);I.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:N(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:N(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 Qt=function t(e){function n(t){return new I(t,e)}return n.tension=function(e){return t(+e)},n}(0);L.prototype={areaStart:Gt,areaEnd:Gt,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:N(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 Kt=function t(e){function n(t){return new L(t,e)}return n.tension=function(e){return t(+e);
  },n}(0);R.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:N(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 Jt=function t(e){function n(t){return new R(t,e)}return n.tension=function(e){return t(+e)},n}(0);B.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:O(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 te=function t(e){function n(t){return e?new B(t,e):new I(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);U.prototype={areaStart:Gt,areaEnd:Gt,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:O(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 ee=function t(e){function n(t){return e?new U(t,e):new L(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);D.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:O(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 ne=function t(e){function n(t){return e?new D(t,e):new R(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);z.prototype={areaStart:Gt,areaEnd:Gt,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))}};var re=function(t){return new z(t)};H.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:Y(this,this._t0,q(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(t=+t,e=+e,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,Y(this,q(this,n=j(this,t,e)),n);break;default:Y(this,this._t0,n=j(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(X.prototype=Object.create(H.prototype)).point=function(t,e){H.prototype.point.call(this,e,t)},G.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,a){this._context.bezierCurveTo(e,t,r,n,a,i)}},$.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=Z(t),i=Z(e),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],t[o],e[o]);(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)}};var ie=function(t){return new $(t)};Q.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 ae=function(t){return new Q(t,.5)},oe=function(t,e){if((i=t.length)>1)for(var n,r,i,a=1,o=t[e[0]],u=o.length;a<i;++a)for(r=o,o=t[e[a]],n=0;n<u;++n)o[n][1]+=o[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},ue=function(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n},se=function(){function t(t){var a,o,u=e.apply(this,arguments),s=t.length,c=u.length,l=new Array(c);for(a=0;a<c;++a){for(var h,f=u[a],d=l[a]=new Array(s),p=0;p<s;++p)d[p]=h=[0,+i(t[p],f,p,t)],h.data=t[p];d.key=f}for(a=0,o=n(l);a<c;++a)l[o[a]].index=a;return r(l,o),l}var e=nt([]),n=ue,r=oe,i=tt;return t.keys=function(n){return arguments.length?(e="function"==typeof n?n:nt(kt.call(n)),t):e},t.value=function(e){return arguments.length?(i="function"==typeof e?e:nt(+e),t):i},t.order=function(e){return arguments.length?(n=null==e?ue:"function"==typeof e?e:nt(kt.call(e)),t):n},t.offset=function(e){return arguments.length?(r=null==e?oe:e,t):r},t},ce=function(t,e){if((r=t.length)>0){for(var n,r,i,a=0,o=t[0].length;a<o;++a){for(i=n=0;n<r;++n)i+=t[n][a][1]||0;if(i)for(n=0;n<r;++n)t[n][a][1]/=i}oe(t,e)}},le=function(t,e){if((u=t.length)>1)for(var n,r,i,a,o,u,s=0,c=t[e[0]].length;s<c;++s)for(a=o=0,n=0;n<u;++n)(i=(r=t[e[n]][s])[1]-r[0])>=0?(r[0]=a,r[1]=a+=i):i<0?(r[1]=o,r[0]=o+=i):r[0]=a},he=function(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],a=i.length;r<a;++r){for(var o=0,u=0;o<n;++o)u+=t[o][r][1]||0;i[r][1]+=i[r][0]=-u/2}oe(t,e)}},fe=function(t,e){if((i=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,a=0,o=1;o<r;++o){for(var u=0,s=0,c=0;u<i;++u){for(var l=t[e[u]],h=l[o][1]||0,f=l[o-1][1]||0,d=(h-f)/2,p=0;p<u;++p){var g=t[e[p]],v=g[o][1]||0,y=g[o-1][1]||0;d+=v-y}s+=h,c+=d*h}n[o-1][1]+=n[o-1][0]=a,s&&(a-=c/s)}n[o-1][1]+=n[o-1][0]=a,oe(t,e)}},de=function(t){var e=t.map(et);return ue(t).sort(function(t,n){return e[t]-e[n]})},pe=function(t){return de(t).reverse()},ge=function(t){var e,n,r=t.length,i=t.map(et),a=ue(t).sort(function(t,e){return i[e]-i[t]}),o=0,u=0,s=[],c=[];for(e=0;e<r;++e)n=a[e],o<u?(o+=i[n],s.push(n)):(u+=i[n],c.push(n));return c.reverse().concat(s)},ve=function(t){return ue(t).reverse()};t.arc=pt,t.area=yt,t.line=vt,t.pie=xt,t.areaRadial=Mt,t.radialArea=Mt,t.lineRadial=wt,t.radialLine=wt,t.pointRadial=St,t.linkHorizontal=M,t.linkVertical=S,t.linkRadial=k,t.symbol=Xt,t.symbols=Ht,t.symbolCircle=Tt,t.symbolCross=Et,t.symbolDiamond=Pt,t.symbolSquare=Bt,t.symbolStar=Ot,t.symbolTriangle=Dt,t.symbolWye=Yt,t.curveBasisClosed=Vt,t.curveBasisOpen=$t,t.curveBasis=Wt,t.curveBundle=Zt,t.curveCardinalClosed=Kt,t.curveCardinalOpen=Jt,t.curveCardinal=Qt,t.curveCatmullRomClosed=ee,t.curveCatmullRomOpen=ne,t.curveCatmullRom=te,t.curveLinearClosed=re,t.curveLinear=gt,t.curveMonotoneX=W,t.curveMonotoneY=V,t.curveNatural=ie,t.curveStep=ae,t.curveStepAfter=J,t.curveStepBefore=K,t.stack=se,t.stackOffsetExpand=ce,t.stackOffsetDiverging=le,t.stackOffsetNone=oe,t.stackOffsetSilhouette=he,t.stackOffsetWiggle=fe,t.stackOrderAscending=de,t.stackOrderDescending=pe,t.stackOrderInsideOut=ge,t.stackOrderNone=ue,t.stackOrderReverse=ve,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,r){r(e,n(186),n(178),n(176),n(185),n(172))}(this,function(t,e,n,r,i,a){"use strict";function o(){function t(t){var n=x.d3_calcType(e,k,h,d,y.format(m),w),r=t.selectAll("g").data([e]);r.enter().append("g").attr("class",p+"legendCells"),f&&x.d3_filterCells(n,f);var i=t.select("."+p+"legendCells").selectAll("."+p+"cell").data(n.data),C=i.enter().append("g").attr("class",p+"cell");C.append(o).attr("class",p+"swatch");var P=t.selectAll("g."+p+"cell "+o);x.d3_addEvents(C,A),i.exit().transition().style("opacity",0).remove(),x.d3_drawShapes(o,P,s,u,c,T),x.d3_addText(t,C,n.labels,p,M),i=C.merge(i);var N=i.selectAll("text"),I=N.nodes().map(function(t){return t.getBBox()}),L=P.nodes().map(function(t){return t.getBBox()});g?P.attr("class",function(t){return p+"swatch "+n.feature(t)}):"line"==o?P.style("stroke",n.feature):P.style("fill",n.feature);var R=void 0,O=void 0,B="start"==b?0:"middle"==b?.5:1;"vertical"===S?!function(){var t=I.map(function(t,e){return Math.max(t.height,L[e].height)});R=function(e,n){var r=a.sum(t.slice(0,n));return"translate(0, "+(r+n*l)+")"},O=function(t,e){return"translate( "+(L[e].width+L[e].x+_)+", "+(L[e].y+L[e].height/2+5)+")"}}():"horizontal"===S&&(R=function(t,e){return"translate("+e*(L[e].width+l)+",0)"},O=function(t,e){return"translate("+(L[e].width*B+L[e].x)+",\n          "+(L[e].height+L[e].y+_+8)+")"}),x.d3_placement(S,i,R,N,O,b),x.d3_title(t,v,p,E),i.transition().style("opacity",1)}var e=i.scaleLinear(),o="rect",u=15,s=15,c=10,l=2,h=[5],f=void 0,d=[],p="",g=!1,v="",y=x.d3_defaultLocale,m=x.d3_defaultFormatSpecifier,_=10,b="middle",w=x.d3_defaultDelimiter,M=void 0,S="vertical",k=!1,T=void 0,E=void 0,A=r.dispatch("cellover","cellout","cellclick");return t.scale=function(n){return arguments.length?(e=n,t):e},t.cells=function(e){return arguments.length?((e.length>1||e>=2)&&(h=e),t):h},t.cellFilter=function(e){return arguments.length?(f=e,t):f},t.shape=function(e,n){return arguments.length?(("rect"==e||"circle"==e||"line"==e||"path"==e&&"string"==typeof n)&&(o=e,T=n),t):o},t.shapeWidth=function(e){return arguments.length?(u=+e,t):u},t.shapeHeight=function(e){return arguments.length?(s=+e,t):s},t.shapeRadius=function(e){return arguments.length?(c=+e,t):c},t.shapePadding=function(e){return arguments.length?(l=+e,t):l},t.labels=function(e){return arguments.length?(d=e,t):d},t.labelAlign=function(e){return arguments.length?("start"!=e&&"end"!=e&&"middle"!=e||(b=e),t):b},t.locale=function(e){return arguments.length?(y=n.formatLocale(e),t):y},t.labelFormat=function(e){return arguments.length?(m=n.formatSpecifier(e),t):t.locale().format(m)},t.labelOffset=function(e){return arguments.length?(_=+e,t):_},t.labelDelimiter=function(e){return arguments.length?(w=e,t):w},t.labelWrap=function(e){return arguments.length?(M=e,t):M},t.useClass=function(e){return arguments.length?(e!==!0&&e!==!1||(g=e),t):g},t.orient=function(e){return arguments.length?(e=e.toLowerCase(),"horizontal"!=e&&"vertical"!=e||(S=e),t):S},t.ascending=function(e){return arguments.length?(k=!!e,t):k},t.classPrefix=function(e){return arguments.length?(p=e,t):p},t.title=function(e){return arguments.length?(v=e,t):v},t.titleWidth=function(e){return arguments.length?(E=e,t):E},t.textWrap=function(e){return arguments.length?(textWrap=e,t):textWrap},t.on=function(){var e=A.on.apply(A,arguments);return e===A?t:e},t}function u(){function t(t){var n=x.d3_calcType(e,w,c,h,p.format(g),m),r=t.selectAll("g").data([e]);l&&x.d3_filterCells(n,l),r.enter().append("g").attr("class",f+"legendCells");var i=t.select("."+f+"legendCells").selectAll("."+f+"cell").data(n.data),T=i.enter().append("g").attr("class",f+"cell");T.append(o).attr("class",f+"swatch");var E=t.selectAll("g."+f+"cell "+o);x.d3_addEvents(T,k),i.exit().transition().style("opacity",0).remove(),"line"===o?(x.d3_drawShapes(o,E,0,u),E.attr("stroke-width",n.feature)):x.d3_drawShapes(o,E,n.feature,n.feature,n.feature,M);var A=x.d3_addText(t,T,n.labels,f,_);i=T.merge(i);var C=A.nodes().map(function(t){return t.getBBox()}),P=E.nodes().map(function(t,r){var i=t.getBBox(),a=e(n.data[r]);return"line"===o&&"horizontal"===b?i.height=i.height+a:"line"===o&&"vertical"===b&&(i.width=i.width),i}),N=a.max(P,function(t){return t.height+t.y}),I=a.max(P,function(t){return t.width+t.x}),L=void 0,R=void 0,O="start"==y?0:"middle"==y?.5:1;"vertical"===b?!function(){var t=C.map(function(t,e){return Math.max(t.height,P[e].height)}),e="circle"==o||"line"==o?P[0].height/2:0;L=function(n,r){var i=a.sum(t.slice(0,r));return"translate(0, "+(e+i+r*s)+")"},R=function(t,e){return"translate( "+(I+v)+",\n          "+(P[e].y+P[e].height/2+5)+")"}}():"horizontal"===b&&(L=function(t,e){var n=a.sum(P.slice(0,e),function(t){return t.width}),r="circle"==o||"line"==o?N/2:0;return"translate("+(n+e*s)+", "+r+")"},R=function(t,e){return"translate( "+(P[e].width*O+P[e].x)+",\n              "+(N+v)+")"}),x.d3_placement(b,i,L,A,R,y),x.d3_title(t,d,f,S),i.transition().style("opacity",1)}var e=i.scaleLinear(),o="rect",u=15,s=2,c=[5],l=void 0,h=[],f="",d="",p=x.d3_defaultLocale,g=x.d3_defaultFormatSpecifier,v=10,y="middle",m=x.d3_defaultDelimiter,_=void 0,b="vertical",w=!1,M=void 0,S=void 0,k=r.dispatch("cellover","cellout","cellclick");return t.scale=function(n){return arguments.length?(e=n,t):e},t.cells=function(e){return arguments.length?((e.length>1||e>=2)&&(c=e),t):c},t.cellFilter=function(e){return arguments.length?(l=e,t):l},t.shape=function(e,n){return arguments.length?("rect"!=e&&"circle"!=e&&"line"!=e||(o=e,M=n),t):o},t.shapeWidth=function(e){return arguments.length?(u=+e,t):u},t.shapePadding=function(e){return arguments.length?(s=+e,t):s},t.labels=function(e){return arguments.length?(h=e,t):h},t.labelAlign=function(e){return arguments.length?("start"!=e&&"end"!=e&&"middle"!=e||(y=e),t):y},t.locale=function(e){return arguments.length?(p=n.formatLocale(e),t):p},t.labelFormat=function(e){return arguments.length?(g=n.formatSpecifier(e),t):t.locale().format(g)},t.labelOffset=function(e){return arguments.length?(v=+e,t):v},t.labelDelimiter=function(e){return arguments.length?(m=e,t):m},t.labelWrap=function(e){return arguments.length?(_=e,t):_},t.orient=function(e){return arguments.length?(e=e.toLowerCase(),"horizontal"!=e&&"vertical"!=e||(b=e),t):b},t.ascending=function(e){return arguments.length?(w=!!e,t):w},t.classPrefix=function(e){return arguments.length?(f=e,t):f},t.title=function(e){return arguments.length?(d=e,t):d},t.titleWidth=function(e){return arguments.length?(S=e,t):S},t.on=function(){var e=k.on.apply(k,arguments);return e===k?t:e},t}function s(){function t(t){var n=x.d3_calcType(e,S,h,d,v.format(y),b),r=t.selectAll("g").data([e]);f&&x.d3_filterCells(n,f),r.enter().append("g").attr("class",p+"legendCells");var i=t.select("."+p+"legendCells").selectAll("."+p+"cell").data(n.data),E=i.enter().append("g").attr("class",p+"cell");E.append(o).attr("class",p+"swatch");var A=t.selectAll("g."+p+"cell "+o);x.d3_addEvents(E,T),i.exit().transition().style("opacity",0).remove(),x.d3_drawShapes(o,A,s,u,c,n.feature),x.d3_addText(t,E,n.labels,p,w),i=E.merge(i);var C=i.selectAll("text"),P=C.nodes().map(function(t){return t.getBBox()}),N=A.nodes().map(function(t){return t.getBBox()}),I=a.max(N,function(t){return t.height}),L=a.max(N,function(t){return t.width}),R=void 0,O=void 0,B="start"==m?0:"middle"==m?.5:1;"vertical"===M?!function(){var t=P.map(function(t,e){return Math.max(I,t.height)});R=function(e,n){var r=a.sum(t.slice(0,n));return"translate(0, "+(r+n*l)+" )"},O=function(t,e){return"translate( "+(L+_)+",\n              "+(N[e].y+N[e].height/2+5)+")"}}():"horizontal"===M&&(R=function(t,e){return"translate( "+e*(L+l)+",0)"},O=function(t,e){return"translate( "+(N[e].width*B+N[e].x)+",\n              "+(I+_)+")"}),x.d3_placement(M,i,R,C,O,m),x.d3_title(t,g,p,k),i.transition().style("opacity",1)}var e=i.scaleLinear(),o="path",u=15,s=15,c=10,l=5,h=[5],f=void 0,d=[],p="",g="",v=x.d3_defaultLocale,y=x.d3_defaultFormatSpecifier,m="middle",_=10,b=x.d3_defaultDelimiter,w=void 0,M="vertical",S=!1,k=void 0,T=r.dispatch("cellover","cellout","cellclick");return t.scale=function(n){return arguments.length?(e=n,t):e},t.cells=function(e){return arguments.length?((e.length>1||e>=2)&&(h=e),t):h},t.cellFilter=function(e){return arguments.length?(f=e,t):f},t.shapePadding=function(e){return arguments.length?(l=+e,t):l},t.labels=function(e){return arguments.length?(d=e,t):d},t.labelAlign=function(e){return arguments.length?("start"!=e&&"end"!=e&&"middle"!=e||(m=e),t):m},t.locale=function(e){return arguments.length?(v=n.formatLocale(e),t):v},t.labelFormat=function(e){return arguments.length?(y=n.formatSpecifier(e),t):t.locale().format(y)},t.labelOffset=function(e){return arguments.length?(_=+e,t):_},t.labelDelimiter=function(e){return arguments.length?(b=e,t):b},t.labelWrap=function(e){return arguments.length?(w=e,t):w},t.orient=function(e){return arguments.length?(e=e.toLowerCase(),"horizontal"!=e&&"vertical"!=e||(M=e),t):M},t.ascending=function(e){return arguments.length?(S=!!e,t):S},t.classPrefix=function(e){return arguments.length?(p=e,t):p},t.title=function(e){return arguments.length?(g=e,t):g},t.titleWidth=function(e){return arguments.length?(k=e,t):k},t.on=function(){var e=T.on.apply(T,arguments);return e===T?t:e},t}var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l=function(t){return t},h=function(t){for(var e=[],n=0,r=t.length;n<r;n++)e[n]=t[r-n-1];return e},f=function(t,n){t.each(function(){for(var t,r=e.select(this),i=r.text().split(/\s+/).reverse(),a=[],o=1.2,u=(r.attr("y"),parseFloat(r.attr("dy"))||0),s=r.text(null).append("tspan").attr("x",0).attr("dy",u+"em");t=i.pop();)a.push(t),s.text(a.join(" ")),s.node().getComputedTextLength()>n&&a.length>1&&(a.pop(),s.text(a.join(" ")),a=[t],s=r.append("tspan").attr("x",0).attr("dy",o+u+"em").text(t))})},d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],n=arguments[2],r=arguments[3];if("object"===("undefined"==typeof e?"undefined":c(e))){if(0===e.length)return t;for(var i=e.length;i<t.length;i++)e.push(t[i]);return e}if("function"==typeof e){for(var a=[],o=t.length,u=0;u<o;u++)a.push(e({i:u,genLength:o,generatedLabels:t,domain:n,range:r}));return a}return t},p=function(t,e,n){var r=[];if(e.length>1)r=e;else for(var i=t.domain(),a=(i[i.length-1]-i[0])/(e-1),o=0;o<e;o++)r.push(i[0]+o*a);var u=r.map(n);return{data:r,labels:u,feature:function(e){return t(e)}}},g=function(t,e,n){var r=t.range().map(function(r){var i=t.invertExtent(r);return e(i[0])+" "+n+" "+e(i[1])});return{data:t.range(),labels:r,feature:l}},v=function(t){return{data:t.domain(),labels:t.domain(),feature:function(e){return t(e)}}},y=function(t,e,n){t.call("cellover",n,e)},m=function(t,e,n){t.call("cellout",n,e)},_=function(t,e,n){t.call("cellclick",n,e)},x={d3_drawShapes:function(t,e,n,r,i,a){"rect"===t?e.attr("height",n).attr("width",r):"circle"===t?e.attr("r",i):"line"===t?e.attr("x1",0).attr("x2",r).attr("y1",0).attr("y2",0):"path"===t&&e.attr("d",a)},d3_addText:function(t,e,n,r,i){e.append("text").attr("class",r+"label");var a=t.selectAll("g."+r+"cell text."+r+"label").data(n).text(l);return i&&t.selectAll("g."+r+"cell text."+r+"label").call(f,i),a},d3_calcType:function(t,e,n,r,i,a){var o=t.invertExtent?g(t,i,a):t.ticks?p(t,n,i):v(t),u=t.range&&t.range()||t.domain();return o.labels=d(o.labels,r,t.domain(),u),e&&(o.labels=h(o.labels),o.data=h(o.data)),o},d3_filterCells:function(t,e){var n=t.data.map(function(e,n){return{data:e,label:t.labels[n]}}).filter(e),r=n.map(function(t){return t.data}),i=n.map(function(t){return t.label});return t.data=t.data.filter(function(t){return r.indexOf(t)!==-1}),t.labels=t.labels.filter(function(t){return i.indexOf(t)!==-1}),t},d3_placement:function(t,e,n,r,i,a){e.attr("transform",n),r.attr("transform",i),"horizontal"===t&&r.style("text-anchor",a)},d3_addEvents:function(t,e){t.on("mouseover.legend",function(t){y(e,t,this)}).on("mouseout.legend",function(t){m(e,t,this)}).on("click.legend",function(t){_(e,t,this)})},d3_title:function(t,e,n,r){if(""!==e){var i=t.selectAll("text."+n+"legendTitle");i.data([e]).enter().append("text").attr("class",n+"legendTitle"),t.selectAll("text."+n+"legendTitle").text(e),r&&t.selectAll("text."+n+"legendTitle").call(f,r);var a=t.select("."+n+"legendCells"),o=t.select("."+n+"legendTitle").nodes().map(function(t){return t.getBBox().height})[0],u=-a.nodes().map(function(t){return t.getBBox().x})[0];a.attr("transform","translate("+u+","+o+")")}},d3_defaultLocale:{format:n.format,formatPrefix:n.formatPrefix},d3_defaultFormatSpecifier:".01f",d3_defaultDelimiter:"to"},b=function(t){var e=t.i,n=t.genLength,r=t.generatedLabels;return 0===e?r[e].replace("NaN to","Less than"):e===n-1?"More than "+r[n-1].replace(" to NaN",""):r[e]},w={thresholdLabels:b},M={legendColor:o,legendSize:u,legendSymbol:s,legendHelpers:w};t.legendColor=o,t.legendSize=u,t.legendSymbol=s,t.legendHelpers=w,t.default=M,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(t){return t[0]}function n(t){return t[1]}function r(){this._=null}function i(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 o(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 u(t){for(;t.L;)t=t.L;return t}function s(t,e,n,r){var i=[null,null],a=D.push(i)-1;return i.left=t,i.right=e,n&&l(i,t,e,n),r&&l(i,e,t,r),B[t.index].halfedges.push(a),B[e.index].halfedges.push(a),i}function c(t,e,n){var r=[e,n];return r.left=t,r}function l(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 h(t,e,n,r,i){var a,o=t[0],u=t[1],s=o[0],c=o[1],l=u[0],h=u[1],f=0,d=1,p=l-s,g=h-c;if(a=e-s,p||!(a>0)){if(a/=p,p<0){if(a<f)return;a<d&&(d=a)}else if(p>0){if(a>d)return;a>f&&(f=a)}if(a=r-s,p||!(a<0)){if(a/=p,p<0){if(a>d)return;a>f&&(f=a)}else if(p>0){if(a<f)return;a<d&&(d=a)}if(a=n-c,g||!(a>0)){if(a/=g,g<0){if(a<f)return;a<d&&(d=a)}else if(g>0){if(a>d)return;a>f&&(f=a)}if(a=i-c,g||!(a<0)){if(a/=g,g<0){if(a>d)return;a>f&&(f=a)}else if(g>0){if(a<f)return;a<d&&(d=a)}return!(f>0||d<1)||(f>0&&(t[0]=[s+f*p,c+f*g]),d<1&&(t[1]=[s+d*p,c+d*g]),!0)}}}}}function f(t,e,n,r,i){var a=t[1];if(a)return!0;var o,u,s=t[0],c=t.left,l=t.right,h=c[0],f=c[1],d=l[0],p=l[1],g=(h+d)/2,v=(f+p)/2;if(p===f){if(g<e||g>=r)return;if(h>d){if(s){if(s[1]>=i)return}else s=[g,n];a=[g,i]}else{if(s){if(s[1]<n)return}else s=[g,i];a=[g,n]}}else if(o=(h-d)/(p-f),u=v-o*g,o<-1||o>1)if(h>d){if(s){if(s[1]>=i)return}else s=[(n-u)/o,n];a=[(i-u)/o,i]}else{if(s){if(s[1]<n)return}else s=[(i-u)/o,i];a=[(n-u)/o,n]}else if(f<p){if(s){if(s[0]>=r)return}else s=[e,o*e+u];a=[r,o*r+u]}else{if(s){if(s[0]<e)return}else s=[r,o*r+u];a=[e,o*e+u]}return t[0]=s,t[1]=a,!0}function d(t,e,n,r){for(var i,a=D.length;a--;)f(i=D[a],t,e,n,r)&&h(i,t,e,n,r)&&(Math.abs(i[0][0]-i[1][0])>j||Math.abs(i[0][1]-i[1][1])>j)||delete D[a]}function p(t){return B[t.index]={site:t,halfedges:[]}}function g(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 v(t,e){return e[+(e.left!==t.site)]}function y(t,e){return e[+(e.left===t.site)]}function m(){for(var t,e,n,r,i=0,a=B.length;i<a;++i)if((t=B[i])&&(r=(e=t.halfedges).length)){var o=new Array(r),u=new Array(r);for(n=0;n<r;++n)o[n]=n,u[n]=g(t,D[e[n]]);for(o.sort(function(t,e){return u[e]-u[t]}),n=0;n<r;++n)u[n]=e[o[n]];for(n=0;n<r;++n)e[n]=u[n]}}function _(t,e,n,r){var i,a,o,u,s,l,h,f,d,p,g,m,_=B.length,x=!0;for(i=0;i<_;++i)if(a=B[i]){for(o=a.site,s=a.halfedges,u=s.length;u--;)D[s[u]]||s.splice(u,1);for(u=0,l=s.length;u<l;)p=y(a,D[s[u]]),g=p[0],m=p[1],h=v(a,D[s[++u%l]]),f=h[0],d=h[1],(Math.abs(g-f)>j||Math.abs(m-d)>j)&&(s.splice(u,0,D.push(c(o,p,Math.abs(g-t)<j&&r-m>j?[t,Math.abs(f-t)<j?d:r]:Math.abs(m-r)<j&&n-g>j?[Math.abs(d-r)<j?f:n,r]:Math.abs(g-n)<j&&m-e>j?[n,Math.abs(f-n)<j?d:e]:Math.abs(m-e)<j&&g-t>j?[Math.abs(d-e)<j?f:t,e]:null))-1),++l);l&&(x=!1)}if(x){var b,w,M,S=1/0;for(i=0,x=null;i<_;++i)(a=B[i])&&(o=a.site,b=o[0]-t,w=o[1]-e,M=b*b+w*w,M<S&&(S=M,x=a));if(x){var k=[t,e],T=[t,r],E=[n,r],A=[n,e];x.halfedges.push(D.push(c(o=x.site,k,T))-1,D.push(c(o,T,E))-1,D.push(c(o,E,A))-1,D.push(c(o,A,k))-1)}}for(i=0;i<_;++i)(a=B[i])&&(a.halfedges.length||delete B[i])}function x(){i(this),this.x=this.y=this.arc=this.site=this.cy=null}function b(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 o=i[0],u=i[1],s=r[0]-o,c=r[1]-u,l=a[0]-o,h=a[1]-u,f=2*(s*h-c*l);if(!(f>=-q)){var d=s*s+c*c,p=l*l+h*h,g=(h*d-c*p)/f,v=(s*p-l*d)/f,y=z.pop()||new x;y.arc=t,y.site=i,y.x=g+o,y.y=(y.cy=v+u)+Math.sqrt(g*g+v*v),t.circle=y;for(var m=null,_=U._;_;)if(y.y<_.y||y.y===_.y&&y.x<=_.x){if(!_.L){m=_.P;break}_=_.L}else{if(!_.R){m=_;break}_=_.R}U.insert(m,y),m||(R=y)}}}}function w(t){var e=t.circle;e&&(e.P||(R=e.N),U.remove(e),z.push(e),i(e),t.circle=null)}function M(){i(this),this.edge=this.site=this.circle=null}function S(t){var e=F.pop()||new M;return e.site=t,e}function k(t){w(t),O.remove(t),F.push(t),i(t)}function T(t){var e=t.circle,n=e.x,r=e.cy,i=[n,r],a=t.P,o=t.N,u=[t];k(t);for(var c=a;c.circle&&Math.abs(n-c.circle.x)<j&&Math.abs(r-c.circle.cy)<j;)a=c.P,u.unshift(c),k(c),c=a;u.unshift(c),w(c);for(var h=o;h.circle&&Math.abs(n-h.circle.x)<j&&Math.abs(r-h.circle.cy)<j;)o=h.N,u.push(h),k(h),h=o;u.push(h),w(h);var f,d=u.length;for(f=1;f<d;++f)h=u[f],c=u[f-1],l(h.edge,c.site,h.site,i);c=u[0],h=u[d-1],h.edge=s(c.site,h.site,null,i),b(c),b(h)}function E(t){for(var e,n,r,i,a=t[0],o=t[1],u=O._;u;)if(r=A(u,o)-a,r>j)u=u.L;else{if(i=a-C(u,o),!(i>j)){r>-j?(e=u.P,n=u):i>-j?(e=u,n=u.N):e=n=u;break}if(!u.R){e=u;break}u=u.R}p(t);var c=S(t);if(O.insert(e,c),e||n){if(e===n)return w(e),n=S(e.site),O.insert(c,n),c.edge=n.edge=s(e.site,c.site),b(e),void b(n);if(!n)return void(c.edge=s(e.site,c.site));w(e),w(n);var h=e.site,f=h[0],d=h[1],g=t[0]-f,v=t[1]-d,y=n.site,m=y[0]-f,_=y[1]-d,x=2*(g*_-v*m),M=g*g+v*v,k=m*m+_*_,T=[(_*M-v*k)/x+f,(g*k-m*M)/x+d];l(n.edge,h,y,T),c.edge=s(h,t,null,T),n.edge=s(t,y,null,T),b(e),b(n)}}function A(t,e){var n=t.site,r=n[0],i=n[1],a=i-e;if(!a)return r;var o=t.P;if(!o)return-(1/0);n=o.site;var u=n[0],s=n[1],c=s-e;if(!c)return u;var l=u-r,h=1/a-1/c,f=l/c;return h?(-f+Math.sqrt(f*f-2*h*(l*l/(-2*c)-s+c/2+i-a/2)))/h+r:(r+u)/2}function C(t,e){var n=t.N;if(n)return A(n,e);var r=t.site;return r[1]===e?r[0]:1/0}function P(t,e,n){return(t[0]-n[0])*(e[1]-t[1])-(t[0]-e[0])*(n[1]-t[1])}function N(t,e){return e[1]-t[1]||e[0]-t[0]}function I(t,e){var n,i,a,o=t.sort(N).pop();for(D=[],B=new Array(t.length),O=new r,U=new r;;)if(a=R,o&&(!a||o[1]<a.y||o[1]===a.y&&o[0]<a.x))o[0]===n&&o[1]===i||(E(o),n=o[0],i=o[1]),o=t.pop();else{if(!a)break;T(a.arc)}if(m(),e){var u=+e[0][0],s=+e[0][1],c=+e[1][0],l=+e[1][1];d(u,s,c,l),_(u,s,c,l)}this.edges=D,this.cells=B,O=U=D=B=null}var L=function(t){return function(){return t}};r.prototype={constructor:r,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=u(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;)r=n.U,n===r.L?(i=r.R,i&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(a(this,n),t=n,n=t.U),n.C=!1,r.C=!0,o(this,r))):(i=r.L,i&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(o(this,n),t=n,n=t.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,s=t.L,c=t.R;if(n=s?c?u(c):s:c,i?i.L===t?i.L=n:i.R=n:this._=n,s&&c?(r=n.C,n.C=t.C,n.L=s,s.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)return void(t.C=!1);do{if(t===this._)break;if(t===i.L){if(e=i.R,e.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,o(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,e.C&&(e.C=!1,i.C=!0,o(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,o(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var R,O,B,U,D,z=[],F=[],j=1e-6,q=1e-12;I.prototype={constructor:I,polygons:function(){var t=this.edges;return this.cells.map(function(e){var n=e.halfedges.map(function(n){return v(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(a=(i=n.halfedges).length)for(var i,a,o,u=n.site,s=-1,c=e[i[a-1]],l=c.left===u?c.right:c.left;++s<a;)o=l,c=e[i[s]],l=c.left===u?c.right:c.left,o&&l&&r<o.index&&r<l.index&&P(u,o,l)<0&&t.push([u.data,o.data,l.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,a=this,o=a._found||0,u=a.cells.length;!(i=a.cells[o]);)if(++o>=u)return null;var s=t-i.site[0],c=e-i.site[1],l=s*s+c*c;do i=a.cells[r=o],o=null,i.halfedges.forEach(function(n){var r=a.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<l&&(l=h,o=u.index)}});while(null!==o);return a._found=r,null==n||l<=n*n?i.site:null}};var Y=function(){function t(t){return new I(t.map(function(e,n){var a=[Math.round(r(e,n,t)/j)*j,Math.round(i(e,n,t)/j)*j];return a.index=n,a.data=e,a}),a)}var r=e,i=n,a=null;return t.polygons=function(e){return t(e).polygons()},t.links=function(e){return t(e).links()},t.triangles=function(e){return t(e).triangles()},t.x=function(e){return arguments.length?(r="function"==typeof e?e:L(+e),t):r},t.y=function(e){return arguments.length?(i="function"==typeof e?e:L(+e),t):i},t.extent=function(e){return arguments.length?(a=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],t):a&&[[a[0][0],a[0][1]],[a[1][0],a[1][1]]]},
  t.size=function(e){return arguments.length?(a=null==e?null:[[0,0],[+e[0],+e[1]]],t):a&&[a[1][0]-a[0][0],a[1][1]-a[0][1]]},t};t.voronoi=Y,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,r){r(e,n(13),n(41),n(18),n(24),n(46))}(this,function(t,e,n,r,i,a){"use strict";function o(t,e,n){this.target=t,this.type=e,this.transform=n}function u(t,e,n){this.k=t,this.x=e,this.y=n}function s(t){return t.__zoom||y}function c(){i.event.stopImmediatePropagation()}function l(){return!i.event.button}function h(){var t,e,n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n,t=n.width.baseVal.value,e=n.height.baseVal.value):(t=n.clientWidth,e=n.clientHeight),[[0,0],[t,e]]}function f(){return this.__zoom||y}function d(){return-i.event.deltaY*(i.event.deltaMode?120:1)/500}function p(){return"ontouchstart"in this}function g(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],a=t.invertY(e[0][1])-n[0][1],o=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}var v=function(t){return function(){return t}};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 y=new u(1,0,0);s.prototype=u.prototype;var m=function(){i.event.preventDefault(),i.event.stopImmediatePropagation()},_=function(){function t(t){t.property("__zoom",f).on("wheel.zoom",S).on("mousedown.zoom",k).on("dblclick.zoom",T).filter(B).on("touchstart.zoom",E).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",C).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function s(t,e){return e=Math.max(U[0],Math.min(U[1],e)),e===t.k?t:new u(e,t.x,t.y)}function _(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 x(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function b(t,e,n){t.on("start.zoom",function(){w(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){w(this,arguments).end()}).tween("zoom",function(){var t=this,r=arguments,i=w(t,r),a=L.apply(t,r),o=n||x(a),s=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),c=t.__zoom,l="function"==typeof e?e.apply(t,r):e,h=F(c.invert(o).concat(s/c.k),l.invert(o).concat(s/l.k));return function(t){if(1===t)t=l;else{var e=h(t),n=s/e[2];t=new u(n,o[0]-e[0]*n,o[1]-e[1]*n)}i.zoom(null,t)}})}function w(t,e){for(var n,r=0,i=j.length;r<i;++r)if((n=j[r]).that===t)return n;return new M(t,e)}function M(t,e){this.that=t,this.args=e,this.index=-1,this.active=0,this.extent=L.apply(t,e)}function S(){function t(){e.wheel=null,e.end()}if(I.apply(this,arguments)){var e=w(this,arguments),n=this.__zoom,r=Math.max(U[0],Math.min(U[1],n.k*Math.pow(2,O.apply(this,arguments)))),o=i.mouse(this);if(e.wheel)e.mouse[0][0]===o[0]&&e.mouse[0][1]===o[1]||(e.mouse[1]=n.invert(e.mouse[0]=o)),clearTimeout(e.wheel);else{if(n.k===r)return;e.mouse=[o,n.invert(o)],a.interrupt(this),e.start()}m(),e.wheel=setTimeout(t,H),e.zoom("mouse",R(_(s(n,r),e.mouse[0],e.mouse[1]),e.extent,D))}}function k(){function t(){if(m(),!r.moved){var t=i.event.clientX-s,e=i.event.clientY-l;r.moved=t*t+e*e>X}r.zoom("mouse",R(_(r.that.__zoom,r.mouse[0]=i.mouse(r.that),r.mouse[1]),r.extent,D))}function e(){o.on("mousemove.zoom mouseup.zoom",null),n.dragEnable(i.event.view,r.moved),m(),r.end()}if(!N&&I.apply(this,arguments)){var r=w(this,arguments),o=i.select(i.event.view).on("mousemove.zoom",t,!0).on("mouseup.zoom",e,!0),u=i.mouse(this),s=i.event.clientX,l=i.event.clientY;n.dragDisable(i.event.view),c(),r.mouse=[u,this.__zoom.invert(u)],a.interrupt(this),r.start()}}function T(){if(I.apply(this,arguments)){var e=this.__zoom,n=i.mouse(this),r=e.invert(n),a=e.k*(i.event.shiftKey?.5:2),o=R(_(s(e,a),n,r),L.apply(this,arguments),D);m(),z>0?i.select(this).transition().duration(z).call(b,o,n):i.select(this).call(t.transform,o)}}function E(){if(I.apply(this,arguments)){var t,e,n,r,o=w(this,arguments),u=i.event.changedTouches,s=u.length;for(c(),e=0;e<s;++e)n=u[e],r=i.touch(this,u,n.identifier),r=[r,this.__zoom.invert(r),n.identifier],o.touch0?o.touch1||(o.touch1=r):(o.touch0=r,t=!0);return P&&(P=clearTimeout(P),!o.touch1)?(o.end(),r=i.select(this).on("dblclick.zoom"),void(r&&r.apply(this,arguments))):void(t&&(P=setTimeout(function(){P=null},Y),a.interrupt(this),o.start()))}}function A(){var t,e,n,r,a=w(this,arguments),o=i.event.changedTouches,u=o.length;for(m(),P&&(P=clearTimeout(P)),t=0;t<u;++t)e=o[t],n=i.touch(this,o,e.identifier),a.touch0&&a.touch0[2]===e.identifier?a.touch0[0]=n:a.touch1&&a.touch1[2]===e.identifier&&(a.touch1[0]=n);if(e=a.that.__zoom,a.touch1){var c=a.touch0[0],l=a.touch0[1],h=a.touch1[0],f=a.touch1[1],d=(d=h[0]-c[0])*d+(d=h[1]-c[1])*d,p=(p=f[0]-l[0])*p+(p=f[1]-l[1])*p;e=s(e,Math.sqrt(d/p)),n=[(c[0]+h[0])/2,(c[1]+h[1])/2],r=[(l[0]+f[0])/2,(l[1]+f[1])/2]}else{if(!a.touch0)return;n=a.touch0[0],r=a.touch0[1]}a.zoom("touch",R(_(e,n,r),a.extent,D))}function C(){var t,e,n=w(this,arguments),r=i.event.changedTouches,a=r.length;for(c(),N&&clearTimeout(N),N=setTimeout(function(){N=null},Y),t=0;t<a;++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()}var P,N,I=l,L=h,R=g,O=d,B=p,U=[0,1/0],D=[[-(1/0),-(1/0)],[1/0,1/0]],z=250,F=r.interpolateZoom,j=[],q=e.dispatch("start","zoom","end"),Y=500,H=150,X=0;return t.transform=function(t,e){var n=t.selection?t.selection():t;n.property("__zoom",f),t!==n?b(t,e):n.interrupt().each(function(){w(this,arguments).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()})},t.scaleBy=function(e,n){t.scaleTo(e,function(){var t=this.__zoom.k,e="function"==typeof n?n.apply(this,arguments):n;return t*e})},t.scaleTo=function(e,n){t.transform(e,function(){var t=L.apply(this,arguments),e=this.__zoom,r=x(t),i=e.invert(r),a="function"==typeof n?n.apply(this,arguments):n;return R(_(s(e,a),r,i),t,D)})},t.translateBy=function(e,n,r){t.transform(e,function(){return R(this.__zoom.translate("function"==typeof n?n.apply(this,arguments):n,"function"==typeof r?r.apply(this,arguments):r),L.apply(this,arguments),D)})},t.translateTo=function(e,n,r){t.transform(e,function(){var t=L.apply(this,arguments),e=this.__zoom,i=x(t);return R(y.translate(i[0],i[1]).scale(e.k).translate("function"==typeof n?-n.apply(this,arguments):-n,"function"==typeof r?-r.apply(this,arguments):-r),t,D)})},M.prototype={start:function(){return 1===++this.active&&(this.index=j.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&&(j.splice(this.index,1),this.index=-1,this.emit("end")),this},emit:function(e){i.customEvent(new o(t,e,this.that.__zoom),q.apply,q,[e,this.that,this.args])}},t.wheelDelta=function(e){return arguments.length?(O="function"==typeof e?e:v(+e),t):O},t.filter=function(e){return arguments.length?(I="function"==typeof e?e:v(!!e),t):I},t.touchable=function(e){return arguments.length?(B="function"==typeof e?e:v(!!e),t):B},t.extent=function(e){return arguments.length?(L="function"==typeof e?e:v([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),t):L},t.scaleExtent=function(e){return arguments.length?(U[0]=+e[0],U[1]=+e[1],t):[U[0],U[1]]},t.translateExtent=function(e){return arguments.length?(D[0][0]=+e[0][0],D[1][0]=+e[1][0],D[0][1]=+e[0][1],D[1][1]=+e[1][1],t):[[D[0][0],D[0][1]],[D[1][0],D[1][1]]]},t.constrain=function(e){return arguments.length?(R=e,t):R},t.duration=function(e){return arguments.length?(z=+e,t):z},t.interpolate=function(e){return arguments.length?(F=e,t):F},t.on=function(){var e=q.on.apply(q,arguments);return e===q?t:e},t.clickDistance=function(e){return arguments.length?(X=(e=+e)*e,t):Math.sqrt(X)},t};t.zoom=_,t.zoomTransform=s,t.zoomIdentity=y,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){t.exports={graphlib:n(10),layout:n(198),debug:n(196),util:{time:n(8).time,notime:n(8).notime},version:n(215)}},function(t,e,n){"use strict";function r(t){function e(t){return function(e){return t.edge(e).weight}}var n="greedy"===t.graph().acyclicer?u(t,e(t)):i(t);o.each(n,function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,o.uniqueId("rev"))})}function i(t){function e(a){o.has(i,a)||(i[a]=!0,r[a]=!0,o.each(t.outEdges(a),function(t){o.has(r,t.w)?n.push(t):e(t.w)}),delete r[a])}var n=[],r={},i={};return o.each(t.nodes(),e),n}function a(t){o.each(t.edges(),function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}})}var o=n(3),u=n(197);t.exports={run:r,undo:a}},function(t,e,n){function r(t){function e(n){var r=t.children(n),o=t.node(n);if(r.length&&a.each(r,e),a.has(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var u=o.minRank,s=o.maxRank+1;u<s;++u)i(t,"borderLeft","_bl",n,o,u),i(t,"borderRight","_br",n,o,u)}}a.each(t.children(),e)}function i(t,e,n,r,i,a){var u={width:0,height:0,rank:a,borderType:e},s=i[e][a-1],c=o.addDummyNode(t,"border",u,n);i[e][a]=c,t.setParent(c,r),s&&t.setEdge(s,c,{weight:1})}var a=n(3),o=n(8);t.exports=r},function(t,e,n){"use strict";function r(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||a(t)}function i(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||u(t),"lr"!==e&&"rl"!==e||(c(t),a(t))}function a(t){h.each(t.nodes(),function(e){o(t.node(e))}),h.each(t.edges(),function(e){o(t.edge(e))})}function o(t){var e=t.width;t.width=t.height,t.height=e}function u(t){h.each(t.nodes(),function(e){s(t.node(e))}),h.each(t.edges(),function(e){var n=t.edge(e);h.each(n.points,s),h.has(n,"y")&&s(n)})}function s(t){t.y=-t.y}function c(t){h.each(t.nodes(),function(e){l(t.node(e))}),h.each(t.edges(),function(e){var n=t.edge(e);h.each(n.points,l),h.has(n,"x")&&l(n)})}function l(t){var e=t.x;t.x=t.y,t.y=e}var h=n(3);t.exports={adjust:r,undo:i}},function(t,e){function n(){var t={};t._next=t._prev=t,this._sentinel=t}function r(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function i(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=n,n.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return r(e),e},n.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&r(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},n.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,i)),n=n._prev;return"["+t.join(", ")+"]"}},function(t,e,n){function r(t){var e=a.buildLayerMatrix(t),n=new o({compound:!0,multigraph:!0}).setGraph({});return i.each(t.nodes(),function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)}),i.each(t.edges(),function(t){n.setEdge(t.v,t.w,{},t.name)}),i.each(e,function(t,e){var r="layer"+e;n.setNode(r,{rank:"same"}),i.reduce(t,function(t,e){return n.setEdge(t,e,{style:"invis"}),e})}),n}var i=n(3),a=n(8),o=n(10).Graph;t.exports={debugOrdering:r}},function(t,e,n){function r(t,e){if(t.nodeCount()<=1)return[];var n=o(t,e||h),r=i(n.graph,n.buckets,n.zeroIdx);return s.flatten(s.map(r,function(e){return t.outEdges(e.v,e.w)}),!0)}function i(t,e,n){for(var r,i=[],o=e[e.length-1],u=e[0];t.nodeCount();){for(;r=u.dequeue();)a(t,e,n,r);for(;r=o.dequeue();)a(t,e,n,r);if(t.nodeCount())for(var s=e.length-2;s>0;--s)if(r=e[s].dequeue()){i=i.concat(a(t,e,n,r,!0));break}}return i}function a(t,e,n,r,i){var a=i?[]:void 0;return s.each(t.inEdges(r.v),function(r){var o=t.edge(r),s=t.node(r.v);i&&a.push({v:r.v,w:r.w}),s.out-=o,u(e,n,s)}),s.each(t.outEdges(r.v),function(r){var i=t.edge(r),a=r.w,o=t.node(a);o.in-=i,u(e,n,o)}),t.removeNode(r.v),a}function o(t,e){var n=new c,r=0,i=0;s.each(t.nodes(),function(t){n.setNode(t,{v:t,in:0,out:0})}),s.each(t.edges(),function(t){var a=n.edge(t.v,t.w)||0,o=e(t),u=a+o;n.setEdge(t.v,t.w,u),i=Math.max(i,n.node(t.v).out+=o),r=Math.max(r,n.node(t.w).in+=o)});var a=s.range(i+r+3).map(function(){return new l}),o=r+1;return s.each(n.nodes(),function(t){u(a,o,n.node(t))}),{graph:n,buckets:a,zeroIdx:o}}function u(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}var s=n(3),c=n(10).Graph,l=n(195);t.exports=r;var h=s.constant(1)},function(t,e,n){"use strict";function r(t,e){var n=e&&e.debugTiming?L.time:L.notime;n("layout",function(){var e=n("  buildLayoutGraph",function(){return o(t)});n("  runLayout",function(){i(e,n)}),n("  updateInputGraph",function(){a(t,e)})})}function i(t,e){e("    makeSpaceForEdgeLabels",function(){u(t)}),e("    removeSelfEdges",function(){v(t)}),e("    acyclic",function(){w.run(t)}),e("    nestingGraph.run",function(){A.run(t)}),e("    rank",function(){S(L.asNonCompoundGraph(t))}),e("    injectEdgeLabelProxies",function(){s(t)}),e("    removeEmptyRanks",function(){E(t)}),e("    nestingGraph.cleanup",function(){A.cleanup(t)}),e("    normalizeRanks",function(){k(t)}),e("    assignRankMinMax",function(){c(t)}),e("    removeEdgeLabelProxies",function(){l(t)}),e("    normalize.run",function(){M.run(t)}),e("    parentDummyChains",function(){T(t)}),e("    addBorderSegments",function(){C(t)}),e("    order",function(){N(t)}),e("    insertSelfEdges",function(){y(t)}),e("    adjustCoordinateSystem",function(){P.adjust(t)}),e("    position",function(){I(t)}),e("    positionSelfEdges",function(){m(t)}),e("    removeBorderNodes",function(){g(t)}),e("    normalize.undo",function(){M.undo(t)}),e("    fixupEdgeLabelCoords",function(){d(t)}),e("    undoCoordinateSystem",function(){P.undo(t)}),e("    translateGraph",function(){h(t)}),e("    assignNodeIntersects",function(){f(t)}),e("    reversePoints",function(){p(t)}),e("    acyclic.undo",function(){w.undo(t)})}function a(t,e){b.each(t.nodes(),function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))}),b.each(t.edges(),function(n){var r=t.edge(n),i=e.edge(n);r.points=i.points,b.has(i,"x")&&(r.x=i.x,r.y=i.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height}function o(t){var e=new R({multigraph:!0,compound:!0}),n=x(t.graph());return e.setGraph(b.merge({},B,_(n,O),b.pick(n,U))),b.each(t.nodes(),function(n){var r=x(t.node(n));e.setNode(n,b.defaults(_(r,D),z)),e.setParent(n,t.parent(n))}),b.each(t.edges(),function(n){var r=x(t.edge(n));e.setEdge(n,b.merge({},j,_(r,F),b.pick(r,q)))}),e}function u(t){var e=t.graph();e.ranksep/=2,b.each(t.edges(),function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}function s(t){b.each(t.edges(),function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i=t.node(e.w),a={rank:(i.rank-r.rank)/2+r.rank,e:e};L.addDummyNode(t,"edge-proxy",a,"_ep")}})}function c(t){var e=0;b.each(t.nodes(),function(n){var r=t.node(n);r.borderTop&&(r.minRank=t.node(r.borderTop).rank,r.maxRank=t.node(r.borderBottom).rank,e=b.max(e,r.maxRank))}),t.graph().maxRank=e}function l(t){b.each(t.nodes(),function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))})}function h(t){function e(t){var e=t.x,o=t.y,u=t.width,s=t.height;n=Math.min(n,e-u/2),r=Math.max(r,e+u/2),i=Math.min(i,o-s/2),a=Math.max(a,o+s/2)}var n=Number.POSITIVE_INFINITY,r=0,i=Number.POSITIVE_INFINITY,a=0,o=t.graph(),u=o.marginx||0,s=o.marginy||0;b.each(t.nodes(),function(n){e(t.node(n))}),b.each(t.edges(),function(n){var r=t.edge(n);b.has(r,"x")&&e(r)}),n-=u,i-=s,b.each(t.nodes(),function(e){var r=t.node(e);r.x-=n,r.y-=i}),b.each(t.edges(),function(e){var r=t.edge(e);b.each(r.points,function(t){t.x-=n,t.y-=i}),b.has(r,"x")&&(r.x-=n),b.has(r,"y")&&(r.y-=i)}),o.width=r-n+u,o.height=a-i+s}function f(t){b.each(t.edges(),function(e){var n,r,i=t.edge(e),a=t.node(e.v),o=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=o,r=a),i.points.unshift(L.intersectRect(a,n)),i.points.push(L.intersectRect(o,r))})}function d(t){b.each(t.edges(),function(e){var n=t.edge(e);if(b.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}function p(t){b.each(t.edges(),function(e){var n=t.edge(e);n.reversed&&n.points.reverse()})}function g(t){b.each(t.nodes(),function(e){if(t.children(e).length){var n=t.node(e),r=t.node(n.borderTop),i=t.node(n.borderBottom),a=t.node(b.last(n.borderLeft)),o=t.node(b.last(n.borderRight));n.width=Math.abs(o.x-a.x),n.height=Math.abs(i.y-r.y),n.x=a.x+n.width/2,n.y=r.y+n.height/2}}),b.each(t.nodes(),function(e){"border"===t.node(e).dummy&&t.removeNode(e)})}function v(t){b.each(t.edges(),function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}})}function y(t){var e=L.buildLayerMatrix(t);b.each(e,function(e){var n=0;b.each(e,function(e,r){var i=t.node(e);i.order=r+n,b.each(i.selfEdges,function(e){L.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:i.rank,order:r+ ++n,e:e.e,label:e.label},"_se")}),delete i.selfEdges})})}function m(t){b.each(t.nodes(),function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,u=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*o/3,y:a-u},{x:i+5*o/6,y:a-u},{x:i+o,y:a},{x:i+5*o/6,y:a+u},{x:i+2*o/3,y:a+u}],n.label.x=n.x,n.label.y=n.y}})}function _(t,e){return b.mapValues(b.pick(t,e),Number)}function x(t){var e={};return b.each(t,function(t,n){e[n.toLowerCase()]=t}),e}var b=n(3),w=n(192),M=n(200),S=n(213),k=n(8).normalizeRanks,T=n(210),E=n(8).removeEmptyRanks,A=n(199),C=n(193),P=n(194),N=n(205),I=n(212),L=n(8),R=n(10).Graph;t.exports=r;var O=["nodesep","edgesep","ranksep","marginx","marginy"],B={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},U=["acyclicer","ranker","rankdir","align"],D=["width","height"],z={width:0,height:0},F=["minlen","weight","width","height","labeloffset"],j={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},q=["labelpos"]},function(t,e,n){function r(t){var e=c.addDummyNode(t,"root",{},"_root"),n=a(t),r=s.max(n)-1,u=2*r+1;t.graph().nestingRoot=e,s.each(t.edges(),function(e){t.edge(e).minlen*=u});var l=o(t)+1;s.each(t.children(),function(a){i(t,e,u,l,r,n,a)}),t.graph().nodeRankFactor=u}function i(t,e,n,r,a,o,u){var l=t.children(u);if(!l.length)return void(u!==e&&t.setEdge(e,u,{weight:0,minlen:n}));var h=c.addBorderNode(t,"_bt"),f=c.addBorderNode(t,"_bb"),d=t.node(u);t.setParent(h,u),d.borderTop=h,t.setParent(f,u),d.borderBottom=f,s.each(l,function(s){i(t,e,n,r,a,o,s);var c=t.node(s),l=c.borderTop?c.borderTop:s,d=c.borderBottom?c.borderBottom:s,p=c.borderTop?r:2*r,g=l!==d?1:a-o[u]+1;t.setEdge(h,l,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(d,f,{weight:p,minlen:g,nestingEdge:!0})}),t.parent(u)||t.setEdge(e,h,{weight:0,minlen:a+o[u]})}function a(t){function e(r,i){var a=t.children(r);a&&a.length&&s.each(a,function(t){e(t,i+1)}),n[r]=i}var n={};return s.each(t.children(),function(t){e(t,1)}),n}function o(t){return s.reduce(t.edges(),function(e,n){return e+t.edge(n).weight},0)}function u(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,s.each(t.edges(),function(e){var n=t.edge(e);n.nestingEdge&&t.removeEdge(e)})}var s=n(3),c=n(8);t.exports={run:r,cleanup:u}},function(t,e,n){"use strict";function r(t){t.graph().dummyChains=[],o.each(t.edges(),function(e){i(t,e)})}function i(t,e){var n=e.v,r=t.node(n).rank,i=e.w,a=t.node(i).rank,o=e.name,s=t.edge(e),c=s.labelRank;if(a!==r+1){t.removeEdge(e);var l,h,f;for(f=0,++r;r<a;++f,++r)s.points=[],h={width:0,height:0,edgeLabel:s,edgeObj:e,rank:r},l=u.addDummyNode(t,"edge",h,"_d"),r===c&&(h.width=s.width,h.height=s.height,h.dummy="edge-label",h.labelpos=s.labelpos),t.setEdge(n,l,{weight:s.weight},o),0===f&&t.graph().dummyChains.push(l),n=l;t.setEdge(n,i,{weight:s.weight},o)}}function a(t){o.each(t.graph().dummyChains,function(e){var n,r=t.node(e),i=r.edgeLabel;for(t.setEdge(r.edgeObj,i);r.dummy;)n=t.successors(e)[0],t.removeNode(e),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),e=n,r=t.node(e)})}var o=n(3),u=n(8);t.exports={run:r,undo:a}},function(t,e,n){function r(t,e,n){var r,a={};i.each(n,function(n){for(var i,o,u=t.parent(n);u;){if(i=t.parent(u),i?(o=a[i],a[i]=u):(o=r,r=u),o&&o!==u)return void e.setEdge(o,u);u=i}})}var i=n(3);t.exports=r},function(t,e,n){function r(t,e){return i.map(e,function(e){var n=t.inEdges(e);if(n.length){var r=i.reduce(n,function(e,n){var r=t.edge(n),i=t.node(n.v);return{sum:e.sum+r.weight*i.order,weight:e.weight+r.weight}},{sum:0,weight:0});return{v:e,barycenter:r.sum/r.weight,weight:r.weight}}return{v:e}})}var i=n(3);t.exports=r},function(t,e,n){function r(t,e,n){var r=i(t),u=new o({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(function(e){return t.node(e)});return a.each(t.nodes(),function(i){var o=t.node(i),s=t.parent(i);(o.rank===e||o.minRank<=e&&e<=o.maxRank)&&(u.setNode(i),u.setParent(i,s||r),a.each(t[n](i),function(e){var n=e.v===i?e.w:e.v,r=u.edge(n,i),o=a.isUndefined(r)?0:r.weight;u.setEdge(n,i,{weight:t.edge(e).weight+o})}),a.has(o,"minRank")&&u.setNode(i,{borderLeft:o.borderLeft[e],borderRight:o.borderRight[e]}))}),u}function i(t){for(var e;t.hasNode(e=a.uniqueId("_root")););return e}var a=n(3),o=n(10).Graph;t.exports=r},function(t,e,n){"use strict";function r(t,e){for(var n=0,r=1;r<e.length;++r)n+=i(t,e[r-1],e[r]);return n}function i(t,e,n){for(var r=a.zipObject(n,a.map(n,function(t,e){return e})),i=a.flatten(a.map(e,function(e){return a.chain(t.outEdges(e)).map(function(e){return{pos:r[e.w],weight:t.edge(e).weight}}).sortBy("pos").value()}),!0),o=1;o<n.length;)o<<=1;var u=2*o-1;o-=1;var s=a.map(new Array(u),function(){return 0}),c=0;return a.each(i.forEach(function(t){var e=t.pos+o;s[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=s[e+1]),e=e-1>>1,s[e]+=t.weight;c+=t.weight*n})),c}var a=n(3);t.exports=r},function(t,e,n){"use strict";function r(t){var e=p.maxRank(t),n=i(t,u.range(1,e+1),"inEdges"),r=i(t,u.range(e-1,-1,-1),"outEdges"),l=s(t);o(t,l);for(var h,f=Number.POSITIVE_INFINITY,d=0,g=0;g<4;++d,++g){a(d%2?n:r,d%4>=2),l=p.buildLayerMatrix(t);var v=c(t,l);v<f&&(g=0,h=u.cloneDeep(l),f=v)}o(t,h)}function i(t,e,n){return u.map(e,function(e){return h(t,e,n)})}function a(t,e){var n=new d;u.each(t,function(t){var r=t.graph().root,i=l(t,r,n,e);u.each(i.vs,function(e,n){t.node(e).order=n}),f(t,n,i.vs)})}function o(t,e){u.each(e,function(e){u.each(e,function(e,n){t.node(e).order=n})})}var u=n(3),s=n(206),c=n(204),l=n(208),h=n(203),f=n(201),d=n(10).Graph,p=n(8);t.exports=r},function(t,e,n){"use strict";function r(t){function e(r){if(!i.has(n,r)){n[r]=!0;var a=t.node(r);o[a.rank].push(r),i.each(t.successors(r),e)}}var n={},r=i.filter(t.nodes(),function(e){return!t.children(e).length}),a=i.max(i.map(r,function(e){return t.node(e).rank})),o=i.map(i.range(a+1),function(){return[]}),u=i.sortBy(r,function(e){return t.node(e).rank});return i.each(u,e),o}var i=n(3);t.exports=r},function(t,e,n){"use strict";function r(t,e){var n={};o.each(t,function(t,e){var r=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};o.isUndefined(t.barycenter)||(r.barycenter=t.barycenter,r.weight=t.weight)}),o.each(e.edges(),function(t){var e=n[t.v],r=n[t.w];o.isUndefined(e)||o.isUndefined(r)||(r.indegree++,e.out.push(n[t.w]))});var r=o.filter(n,function(t){return!t.indegree});return i(r)}function i(t){function e(t){return function(e){e.merged||(o.isUndefined(e.barycenter)||o.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&a(t,e)}}function n(e){return function(n){n.in.push(e),0===--n.indegree&&t.push(n)}}for(var r=[];t.length;){var i=t.pop();r.push(i),o.each(i.in.reverse(),e(i)),o.each(i.out,n(i))}return o.chain(r).filter(function(t){return!t.merged}).map(function(t){return o.pick(t,["vs","i","barycenter","weight"])}).value()}function a(t,e){var n=0,r=0;t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=n/r,t.weight=r,t.i=Math.min(e.i,t.i),e.merged=!0}var o=n(3);t.exports=r},function(t,e,n){function r(t,e,n,l){var h=t.children(e),f=t.node(e),d=f?f.borderLeft:void 0,p=f?f.borderRight:void 0,g={};d&&(h=o.filter(h,function(t){return t!==d&&t!==p}));var v=u(t,h);o.each(v,function(e){if(t.children(e.v).length){var i=r(t,e.v,n,l);g[e.v]=i,o.has(i,"barycenter")&&a(e,i)}});var y=s(v,n);i(y,g);var m=c(y,l);if(d&&(m.vs=o.flatten([d,m.vs,p],!0),t.predecessors(d).length)){var _=t.node(t.predecessors(d)[0]),x=t.node(t.predecessors(p)[0]);o.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+_.order+x.order)/(m.weight+2),m.weight+=2}return m}function i(t,e){o.each(t,function(t){t.vs=o.flatten(t.vs.map(function(t){return e[t]?e[t].vs:t}),!0)})}function a(t,e){o.isUndefined(t.barycenter)?(t.barycenter=e.barycenter,t.weight=e.weight):(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight)}var o=n(3),u=n(202),s=n(207),c=n(209);t.exports=r},function(t,e,n){function r(t,e){var n=u.partition(t,function(t){return o.has(t,"barycenter")}),r=n.lhs,s=o.sortBy(n.rhs,function(t){return-t.i}),c=[],l=0,h=0,f=0;r.sort(a(!!e)),f=i(c,s,f),o.each(r,function(t){f+=t.vs.length,c.push(t.vs),l+=t.barycenter*t.weight,h+=t.weight,f=i(c,s,f)});var d={vs:o.flatten(c,!0)};return h&&(d.barycenter=l/h,d.weight=h),d}function i(t,e,n){for(var r;e.length&&(r=o.last(e)).i<=n;)e.pop(),t.push(r.vs),n++;return n}function a(t){return function(e,n){return e.barycenter<n.barycenter?-1:e.barycenter>n.barycenter?1:t?n.i-e.i:e.i-n.i}}var o=n(3),u=n(8);t.exports=r},function(t,e,n){function r(t){var e=a(t);o.each(t.graph().dummyChains,function(n){for(var r=t.node(n),a=r.edgeObj,o=i(t,e,a.v,a.w),u=o.path,s=o.lca,c=0,l=u[c],h=!0;n!==a.w;){if(r=t.node(n),h){for(;(l=u[c])!==s&&t.node(l).maxRank<r.rank;)c++;l===s&&(h=!1)}if(!h){for(;c<u.length-1&&t.node(l=u[c+1]).minRank<=r.rank;)c++;l=u[c]}t.setParent(n,l),n=t.successors(n)[0]}})}function i(t,e,n,r){var i,a,o=[],u=[],s=Math.min(e[n].low,e[r].low),c=Math.max(e[n].lim,e[r].lim);i=n;do i=t.parent(i),o.push(i);while(i&&(e[i].low>s||c>e[i].lim));for(a=i,i=r;(i=t.parent(i))!==a;)u.push(i);return{path:o.concat(u.reverse()),lca:a}}function a(t){function e(i){var a=r;o.each(t.children(i),e),n[i]={low:a,lim:r++}}var n={},r=0;return o.each(t.children(),e),n}var o=n(3);t.exports=r},function(t,e,n){"use strict";function r(t,e){function n(e,n){var i=0,u=0,s=e.length,c=y.last(n);return y.each(n,function(e,l){var h=a(t,e),f=h?t.node(h).order:s;(h||e===c)&&(y.each(n.slice(u,l+1),function(e){y.each(t.predecessors(e),function(n){var a=t.node(n),u=a.order;!(u<i||f<u)||a.dummy&&t.node(e).dummy||o(r,n,e)})}),u=l+1,i=f)}),n}var r={};return y.reduce(e,n),r}function i(t,e){function n(e,n,r,a,u){var s;y.each(y.range(n,r),function(n){s=e[n],t.node(s).dummy&&y.each(t.predecessors(s),function(e){var n=t.node(e);n.dummy&&(n.order<a||n.order>u)&&o(i,e,s)})})}function r(e,r){var i,a=-1,o=0;return y.each(r,function(u,s){if("border"===t.node(u).dummy){var c=t.predecessors(u);c.length&&(i=t.node(c[0]).order,n(r,o,s,a,i),o=s,a=i)}n(r,o,r.length,i,e.length)}),r}var i={};return y.reduce(e,r),i}function a(t,e){if(t.node(e).dummy)return y.find(t.predecessors(e),function(e){return t.node(e).dummy})}function o(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function u(t,e,n){if(e>n){var r=e;e=n,n=r}return y.has(t[e],n)}function s(t,e,n,r){var i={},a={},o={};return y.each(e,function(t){y.each(t,function(t,e){i[t]=t,a[t]=t,o[t]=e})}),y.each(e,function(t){var e=-1;y.each(t,function(t){var s=r(t);if(s.length){s=y.sortBy(s,function(t){return o[t]});for(var c=(s.length-1)/2,l=Math.floor(c),h=Math.ceil(c);l<=h;++l){var f=s[l];a[t]===t&&e<o[f]&&!u(n,t,f)&&(a[f]=t,a[t]=i[t]=i[f],e=o[f])}}})}),{root:i,align:a}}function c(t,e,n,r,i){function a(t){y.has(c,t)||(c[t]=!0,u[t]=y.reduce(s.inEdges(t),function(t,e){return a(e.v),Math.max(t,u[e.v]+s.edge(e))},0))}function o(e){if(2!==c[e]){c[e]++;var n=t.node(e),r=y.reduce(s.outEdges(e),function(t,e){return o(e.w),Math.min(t,u[e.w]-s.edge(e))},Number.POSITIVE_INFINITY);r!==Number.POSITIVE_INFINITY&&n.borderType!==h&&(u[e]=Math.max(u[e],r))}}var u={},s=l(t,e,n,i),c={};y.each(s.nodes(),a);var h=i?"borderLeft":"borderRight";return y.each(s.nodes(),o),y.each(r,function(t){u[t]=u[n[t]]}),u}function l(t,e,n,r){var i=new m,a=t.graph(),o=g(a.nodesep,a.edgesep,r);return y.each(e,function(e){var r;y.each(e,function(e){var a=n[e];if(i.setNode(a),r){var u=n[r],s=i.edge(u,a);i.setEdge(u,a,Math.max(o(t,e,r),s||0))}r=e})}),i}function h(t,e){return y.min(e,function(e){var n=y.min(e,function(e,n){return e-v(t,n)/2}),r=y.max(e,function(e,n){return e+v(t,n)/2});return r-n})}function f(t,e){var n=y.min(e),r=y.max(e);y.each(["u","d"],function(i){y.each(["l","r"],function(a){var o,u=i+a,s=t[u];s!==e&&(o="l"===a?n-y.min(s):r-y.max(s),o&&(t[u]=y.mapValues(s,function(t){return t+o})))})})}function d(t,e){return y.mapValues(t.ul,function(n,r){if(e)return t[e.toLowerCase()][r];var i=y.sortBy(y.pluck(t,r));return(i[1]+i[2])/2})}function p(t){var e,n=_.buildLayerMatrix(t),a=y.merge(r(t,n),i(t,n)),o={};y.each(["u","d"],function(r){e="u"===r?n:y.values(n).reverse(),y.each(["l","r"],function(n){"r"===n&&(e=y.map(e,function(t){return y.values(t).reverse()}));var i=y.bind("u"===r?t.predecessors:t.successors,t),u=s(t,e,a,i),l=c(t,e,u.root,u.align,"r"===n);"r"===n&&(l=y.mapValues(l,function(t){return-t})),o[r+n]=l})});var u=h(t,o);return f(o,u),d(o,t.graph().align)}function g(t,e,n){return function(r,i,a){var o,u=r.node(i),s=r.node(a),c=0;if(c+=u.width/2,y.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":o=-u.width/2;break;case"r":o=u.width/2}if(o&&(c+=n?o:-o),o=0,c+=(u.dummy?e:t)/2,c+=(s.dummy?e:t)/2,c+=s.width/2,y.has(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":o=s.width/2;break;case"r":o=-s.width/2}return o&&(c+=n?o:-o),o=0,c}}function v(t,e){return t.node(e).width}var y=n(3),m=n(10).Graph,_=n(8);t.exports={positionX:p,findType1Conflicts:r,findType2Conflicts:i,addConflict:o,hasConflict:u,verticalAlignment:s,horizontalCompaction:c,alignCoordinates:f,findSmallestWidthAlignment:h,balance:d}},function(t,e,n){"use strict";function r(t){t=o.asNonCompoundGraph(t),i(t),a.each(u(t),function(e,n){t.node(n).x=e})}function i(t){var e=o.buildLayerMatrix(t),n=t.graph().ranksep,r=0;a.each(e,function(e){var i=a.max(a.map(e,function(e){return t.node(e).height}));a.each(e,function(e){t.node(e).y=r+i/2}),r+=i+n})}var a=n(3),o=n(8),u=n(211).positionX;t.exports=r},function(t,e,n){"use strict";function r(t){switch(t.graph().ranker){case"network-simplex":a(t);break;case"tight-tree":i(t);break;case"longest-path":l(t);break;default:a(t)}}function i(t){u(t),s(t)}function a(t){c(t)}var o=n(32),u=o.longestPath,s=n(82),c=n(214);t.exports=r;var l=u},function(t,e,n){"use strict";function r(t){t=b(t),m(t);var e=v(t);u(e),i(e,t);for(var n,r;n=c(e);)r=l(e,t,n),h(e,t,n,r)}function i(t,e){var n=x(t,t.nodes());n=n.slice(0,n.length-1),g.each(n,function(n){a(t,e,n)})}function a(t,e,n){var r=t.node(n),i=r.parent;
  t.edge(n,i).cutvalue=o(t,e,n)}function o(t,e,n){var r=t.node(n),i=r.parent,a=!0,o=e.edge(n,i),u=0;return o||(a=!1,o=e.edge(i,n)),u=o.weight,g.each(e.nodeEdges(n),function(r){var o=r.v===n,s=o?r.w:r.v;if(s!==i){var c=o===a,l=e.edge(r).weight;if(u+=c?l:-l,d(t,n,s)){var h=t.edge(n,s).cutvalue;u+=c?-h:h}}}),u}function u(t,e){arguments.length<2&&(e=t.nodes()[0]),s(t,{},1,e)}function s(t,e,n,r,i){var a=n,o=t.node(r);return e[r]=!0,g.each(t.neighbors(r),function(i){g.has(e,i)||(n=s(t,e,n,i,r))}),o.low=a,o.lim=n++,i?o.parent=i:delete o.parent,n}function c(t){return g.find(t.edges(),function(e){return t.edge(e).cutvalue<0})}function l(t,e,n){var r=n.v,i=n.w;e.hasEdge(r,i)||(r=n.w,i=n.v);var a=t.node(r),o=t.node(i),u=a,s=!1;a.lim>o.lim&&(u=o,s=!0);var c=g.filter(e.edges(),function(e){return s===p(t,t.node(e.v),u)&&s!==p(t,t.node(e.w),u)});return g.min(c,function(t){return y(e,t)})}function h(t,e,n,r){var a=n.v,o=n.w;t.removeEdge(a,o),t.setEdge(r.v,r.w,{}),u(t),i(t,e),f(t,e)}function f(t,e){var n=g.find(t.nodes(),function(t){return!e.node(t).parent}),r=_(t,n);r=r.slice(1),g.each(r,function(n){var r=t.node(n).parent,i=e.edge(n,r),a=!1;i||(i=e.edge(r,n),a=!0),e.node(n).rank=e.node(r).rank+(a?i.minlen:-i.minlen)})}function d(t,e,n){return t.hasEdge(e,n)}function p(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}var g=n(3),v=n(82),y=n(32).slack,m=n(32).longestPath,_=n(10).alg.preorder,x=n(10).alg.postorder,b=n(8).simplify;t.exports=r,r.initLowLimValues=u,r.initCutValues=i,r.calcCutValue=o,r.leaveEdge=c,r.enterEdge=l,r.exchangeEdges=h},function(t,e){t.exports="0.7.4"},function(t,e,n){var r=n(226);t.exports={Graph:r.Graph,json:n(227),alg:n(221),version:r.version}},function(t,e,n){function r(t){function e(a){i.has(r,a)||(r[a]=!0,n.push(a),i.each(t.successors(a),e),i.each(t.predecessors(a),e))}var n,r={},a=[];return i.each(t.nodes(),function(t){n=[],e(t),n.length&&a.push(n)}),a}var i=n(9);t.exports=r},function(t,e,n){function r(t,e,n){return a.transform(t.nodes(),function(r,a){r[a]=i(t,a,e,n)},{})}var i=n(85),a=n(9);t.exports=r},function(t,e,n){function r(t){return i.filter(a(t),function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})}var i=n(9),a=n(86);t.exports=r},function(t,e,n){function r(t,e,n){return i(t,e||o,n||function(e){return t.outEdges(e)})}function i(t,e,n){var r={},i=t.nodes();return i.forEach(function(t){r[t]={},r[t][t]={distance:0},i.forEach(function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})}),n(t).forEach(function(n){var i=n.v===t?n.w:n.v,a=e(n);r[t][i]={distance:a,predecessor:t}})}),i.forEach(function(t){var e=r[t];i.forEach(function(n){var a=r[n];i.forEach(function(n){var r=a[t],i=e[n],o=a[n],u=r.distance+i.distance;u<o.distance&&(o.distance=u,o.predecessor=i.predecessor)})})}),r}var a=n(9);t.exports=r;var o=a.constant(1)},function(t,e,n){t.exports={components:n(217),dijkstra:n(85),dijkstraAll:n(218),findCycles:n(219),floydWarshall:n(220),isAcyclic:n(222),postorder:n(223),preorder:n(224),prim:n(225),tarjan:n(86),topsort:n(87)}},function(t,e,n){function r(t){try{i(t)}catch(t){if(t instanceof i.CycleException)return!1;throw t}return!0}var i=n(87);t.exports=r},function(t,e,n){function r(t,e){return i(t,e,"post")}var i=n(84);t.exports=r},function(t,e,n){function r(t,e){return i(t,e,"pre")}var i=n(84);t.exports=r},function(t,e,n){function r(t,e){function n(t){var n=t.v===r?t.w:t.v,i=c.priority(n);if(void 0!==i){var a=e(t);a<i&&(s[n]=r,c.decrease(n,a))}}var r,u=new a,s={},c=new o;if(0===t.nodeCount())return u;i.each(t.nodes(),function(t){c.add(t,Number.POSITIVE_INFINITY),u.setNode(t)}),c.decrease(t.nodes()[0],0);for(var l=!1;c.size()>0;){if(r=c.removeMin(),i.has(s,r))u.setEdge(r,s[r]);else{if(l)throw new Error("Input graph is not connected: "+t);l=!0}t.nodeEdges(r).forEach(n)}return u}var i=n(9),a=n(47),o=n(88);t.exports=r},function(t,e,n){t.exports={Graph:n(47),version:n(228)}},function(t,e,n){function r(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:i(t),edges:a(t)};return u.isUndefined(t.graph())||(e.value=u.clone(t.graph())),e}function i(t){return u.map(t.nodes(),function(e){var n=t.node(e),r=t.parent(e),i={v:e};return u.isUndefined(n)||(i.value=n),u.isUndefined(r)||(i.parent=r),i})}function a(t){return u.map(t.edges(),function(e){var n=t.edge(e),r={v:e.v,w:e.w};return u.isUndefined(e.name)||(r.name=e.name),u.isUndefined(n)||(r.value=n),r})}function o(t){var e=new s(t.options).setGraph(t.value);return u.each(t.nodes,function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)}),u.each(t.edges,function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),e}var u=n(9),s=n(47);t.exports={write:r,read:o}},function(t,e){t.exports="1.0.7"},function(t,e,n){var r=n(98),i=t.exports;for(var a in r)r.hasOwnProperty(a)&&(i[a]=r[a]);i.request=function(t,e){return t||(t={}),t.scheme="https",t.protocol="https:",r.request.call(this,t,e)}},function(t,e){e.read=function(t,e,n,r,i){var a,o,u=8*i-r-1,s=(1<<u)-1,c=s>>1,l=-7,h=n?i-1:0,f=n?-1:1,d=t[e+h];for(h+=f,a=d&(1<<-l)-1,d>>=-l,l+=u;l>0;a=256*a+t[e+h],h+=f,l-=8);for(o=a&(1<<-l)-1,a>>=-l,l+=r;l>0;o=256*o+t[e+h],h+=f,l-=8);if(0===a)a=1-c;else{if(a===s)return o?NaN:(d?-1:1)*(1/0);o+=Math.pow(2,r),a-=c}return(d?-1:1)*o*Math.pow(2,a-r)},e.write=function(t,e,n,r,i,a){var o,u,s,c=8*a-i-1,l=(1<<c)-1,h=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:a-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,o=l):(o=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-o))<1&&(o--,s*=2),e+=o+h>=1?f/s:f*Math.pow(2,1-h),e*s>=2&&(o++,s/=2),o+h>=l?(u=0,o=l):o+h>=1?(u=(e*s-1)*Math.pow(2,i),o+=h):(u=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;t[n+d]=255&u,d+=p,u/=256,i-=8);for(o=o<<i|u,c+=i;c>0;t[n+d]=255&o,d+=p,o/=256,c-=8);t[n+d-p]|=128*g}},function(t,e,n){var r;(function(t,i){!function(a){function o(t){throw RangeError(I[t])}function u(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="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(N,".");var i=t.split("."),a=u(i,e).join(".");return r+a}function c(t){for(var e,n,r=[],i=0,a=t.length;i<a;)e=t.charCodeAt(i++),e>=55296&&e<=56319&&i<a?(n=t.charCodeAt(i++),56320==(64512&n)?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--)):r.push(e);return r}function l(t){return u(t,function(t){var e="";return t>65535&&(t-=65536,e+=O(t>>>10&1023|55296),t=56320|1023&t),e+=O(t)}).join("")}function h(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:b}function f(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function d(t,e,n){var r=0;for(t=n?R(t/k):t>>1,t+=R(t/e);t>L*M>>1;r+=b)t=R(t/L);return R(r+(L+1)*t/(t+S))}function p(t){var e,n,r,i,a,u,s,c,f,p,g=[],v=t.length,y=0,m=E,_=T;for(n=t.lastIndexOf(A),n<0&&(n=0),r=0;r<n;++r)t.charCodeAt(r)>=128&&o("not-basic"),g.push(t.charCodeAt(r));for(i=n>0?n+1:0;i<v;){for(a=y,u=1,s=b;i>=v&&o("invalid-input"),c=h(t.charCodeAt(i++)),(c>=b||c>R((x-y)/u))&&o("overflow"),y+=c*u,f=s<=_?w:s>=_+M?M:s-_,!(c<f);s+=b)p=b-f,u>R(x/p)&&o("overflow"),u*=p;e=g.length+1,_=d(y-a,e,0==a),R(y/e)>x-m&&o("overflow"),m+=R(y/e),y%=e,g.splice(y++,0,m)}return l(g)}function g(t){var e,n,r,i,a,u,s,l,h,p,g,v,y,m,_,S=[];for(t=c(t),v=t.length,e=E,n=0,a=T,u=0;u<v;++u)g=t[u],g<128&&S.push(O(g));for(r=i=S.length,i&&S.push(A);r<v;){for(s=x,u=0;u<v;++u)g=t[u],g>=e&&g<s&&(s=g);for(y=r+1,s-e>R((x-n)/y)&&o("overflow"),n+=(s-e)*y,e=s,u=0;u<v;++u)if(g=t[u],g<e&&++n>x&&o("overflow"),g==e){for(l=n,h=b;p=h<=a?w:h>=a+M?M:h-a,!(l<p);h+=b)_=l-p,m=b-p,S.push(O(f(p+_%m,0))),l=R(_/m);S.push(O(f(l,0))),a=d(n,y,r==i),n=0,++r}++n,++e}return S.join("")}function v(t){return s(t,function(t){return C.test(t)?p(t.slice(4).toLowerCase()):t})}function y(t){return s(t,function(t){return P.test(t)?"xn--"+g(t):t})}var m=("object"==typeof e&&e&&!e.nodeType&&e,"object"==typeof t&&t&&!t.nodeType&&t,"object"==typeof i&&i);m.global!==m&&m.window!==m&&m.self!==m||(a=m);var _,x=2147483647,b=36,w=1,M=26,S=38,k=700,T=72,E=128,A="-",C=/^xn--/,P=/[^\x20-\x7E]/,N=/[\x2E\u3002\uFF0E\uFF61]/g,I={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},L=b-w,R=Math.floor,O=String.fromCharCode;_={version:"1.3.2",ucs2:{decode:c,encode:l},decode:p,encode:g,toASCII:y,toUnicode:v},r=function(){return _}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(this)}).call(e,n(102)(t),function(){return this}())},function(t,e){"use strict";function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,r,i){e=e||"&",r=r||"=";var a={};if("string"!=typeof t||0===t.length)return a;var o=/\+/g;t=t.split(e);var u=1e3;i&&"number"==typeof i.maxKeys&&(u=i.maxKeys);var s=t.length;u>0&&s>u&&(s=u);for(var c=0;c<s;++c){var l,h,f,d,p=t[c].replace(o,"%20"),g=p.indexOf(r);g>=0?(l=p.substr(0,g),h=p.substr(g+1)):(l=p,h=""),f=decodeURIComponent(l),d=decodeURIComponent(h),n(a,f)?Array.isArray(a[f])?a[f].push(d):a[f]=[a[f],d]:a[f]=d}return a}},function(t,e){"use strict";var n=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,r,i){return e=e||"&",r=r||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(i){var a=encodeURIComponent(n(i))+r;return Array.isArray(t[i])?t[i].map(function(t){return a+encodeURIComponent(n(t))}).join(e):a+encodeURIComponent(n(t[i]))}).join(e):i?encodeURIComponent(n(i))+r+encodeURIComponent(n(t)):""}},function(t,e,n){"use strict";e.decode=e.parse=n(232),e.encode=e.stringify=n(233)},function(t,e,n){"use strict";function r(t){return this instanceof r?void i.call(this,t):new r(t)}t.exports=r;var i=n(93),a=n(20);a.inherits=n(14),a.inherits(r,i),r.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e,n){t.copy(e,n)}var a=n(34).Buffer;t.exports=function(){function t(){r(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 a.alloc(0);if(1===this.length)return this.head.data;for(var e=a.allocUnsafe(t>>>0),n=this.head,r=0;n;)i(n.data,e,r),r+=n.data.length,n=n.next;return e},t}()},function(t,e,n){(function(t,e){!function(t,n){"use strict";function r(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return g[p]=r,d(p),p++}function i(t){delete g[t]}function a(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}function o(t){if(v)setTimeout(o,0,t);else{var e=g[t];if(e){v=!0;try{a(e)}finally{i(t),v=!1}}}}function u(){d=function(t){e.nextTick(function(){o(t)})}}function s(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}function c(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&o(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),d=function(n){t.postMessage(e+n,"*")}}function l(){var t=new MessageChannel;t.port1.onmessage=function(t){var e=t.data;o(e)},d=function(e){t.port2.postMessage(e)}}function h(){var t=y.documentElement;d=function(e){var n=y.createElement("script");n.onreadystatechange=function(){o(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}function f(){d=function(t){setTimeout(o,0,t)}}if(!t.setImmediate){var d,p=1,g={},v=!1,y=t.document,m=Object.getPrototypeOf&&Object.getPrototypeOf(t);m=m&&m.setTimeout?m:t,"[object process]"==={}.toString.call(t.process)?u():s()?c():t.MessageChannel?l():y&&"onreadystatechange"in y.createElement("script")?h():f(),m.setImmediate=r,m.clearImmediate=i}}("undefined"==typeof self?"undefined"==typeof t?this:t:self)}).call(e,function(){return this}(),n(15))},function(t,e,n){(function(e,r,i){function a(t,e){return u.fetch&&e?"fetch":u.mozchunkedarraybuffer?"moz-chunked-arraybuffer":u.msstream?"ms-stream":u.arraybuffer&&t?"arraybuffer":u.vbArray&&t?"text:vbarray":"text"}function o(t){try{var e=t.status;return null!==e&&0!==e}catch(t){return!1}}var u=n(99),s=n(14),c=n(239),l=n(97),h=n(241),f=c.IncomingMessage,d=c.readyStates,p=t.exports=function(t){var n=this;l.Writable.call(n),n._opts=t,n._body=[],n._headers={},t.auth&&n.setHeader("Authorization","Basic "+new e(t.auth).toString("base64")),Object.keys(t.headers).forEach(function(e){n.setHeader(e,t.headers[e])});var r,i=!0;if("disable-fetch"===t.mode||"timeout"in t)i=!1,r=!0;else if("prefer-streaming"===t.mode)r=!1;else if("allow-wrong-content-type"===t.mode)r=!u.overrideMimeType;else{if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw new Error("Invalid value for opts.mode");r=!0}n._mode=a(r,i),n.on("finish",function(){n._onFinish()})};s(p,l.Writable),p.prototype.setHeader=function(t,e){var n=this,r=t.toLowerCase();g.indexOf(r)===-1&&(n._headers[r]={name:t,value:e})},p.prototype.getHeader=function(t){var e=this._headers[t.toLowerCase()];return e?e.value:null},p.prototype.removeHeader=function(t){var e=this;delete e._headers[t.toLowerCase()]},p.prototype._onFinish=function(){var t=this;if(!t._destroyed){var n=t._opts,a=t._headers,o=null;"GET"!==n.method&&"HEAD"!==n.method&&(o=u.blobConstructor?new r.Blob(t._body.map(function(t){return h(t)}),{type:(a["content-type"]||{}).value||""}):e.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)r.fetch(t._opts.url,{method:t._opts.method,headers:s,body:o||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin"}).then(function(e){t._fetchResponse=e,t._connect()},function(e){t.emit("error",e)});else{var c=t._xhr=new r.XMLHttpRequest;try{c.open(t._opts.method,t._opts.url,!0)}catch(e){return void i.nextTick(function(){t.emit("error",e)})}"responseType"in c&&(c.responseType=t._mode.split(":")[0]),"withCredentials"in c&&(c.withCredentials=!!n.withCredentials),"text"===t._mode&&"overrideMimeType"in c&&c.overrideMimeType("text/plain; charset=x-user-defined"),"timeout"in n&&(c.timeout=n.timeout,c.ontimeout=function(){t.emit("timeout")}),s.forEach(function(t){c.setRequestHeader(t[0],t[1])}),t._response=null,c.onreadystatechange=function(){switch(c.readyState){case d.LOADING:case d.DONE:t._onXHRProgress()}},"moz-chunked-arraybuffer"===t._mode&&(c.onprogress=function(){t._onXHRProgress()}),c.onerror=function(){t._destroyed||t.emit("error",new Error("XHR error"))};try{c.send(o)}catch(e){return void i.nextTick(function(){t.emit("error",e)})}}}},p.prototype._onXHRProgress=function(){var t=this;o(t._xhr)&&!t._destroyed&&(t._response||t._connect(),t._response._onXHRProgress())},p.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))},p.prototype._write=function(t,e,n){var r=this;r._body.push(t),n()},p.prototype.abort=p.prototype.destroy=function(){var t=this;t._destroyed=!0,t._response&&(t._response._destroyed=!0),t._xhr&&t._xhr.abort()},p.prototype.end=function(t,e,n){var r=this;"function"==typeof t&&(n=t,t=void 0),l.Writable.prototype.end.call(r,t,e,n)},p.prototype.flushHeaders=function(){},p.prototype.setTimeout=function(){},p.prototype.setNoDelay=function(){},p.prototype.setSocketKeepAlive=function(){};var g=["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(e,n(17).Buffer,function(){return this}(),n(15))},function(t,e,n){(function(t,r,i){var a=n(99),o=n(14),u=n(97),s=e.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=e.IncomingMessage=function(e,n,i){function o(){c.read().then(function(t){if(!s._destroyed){if(t.done)return void s.push(null);s.push(new r(t.value)),o()}}).catch(function(t){s.emit("error",t)})}var s=this;if(u.Readable.call(s),s._mode=i,s.headers={},s.rawHeaders=[],s.trailers={},s.rawTrailers=[],s.on("end",function(){t.nextTick(function(){s.emit("close")})}),"fetch"===i){s._fetchResponse=n,s.url=n.url,s.statusCode=n.status,s.statusMessage=n.statusText,n.headers.forEach(function(t,e){s.headers[e.toLowerCase()]=t,s.rawHeaders.push(e,t)});var c=n.body.getReader();o()}else{s._xhr=e,s._pos=0,s.url=e.responseURL,s.statusCode=e.status,s.statusMessage=e.statusText;var l=e.getAllResponseHeaders().split(/\r?\n/);if(l.forEach(function(t){var e=t.match(/^([^:]+):\s*(.*)/);if(e){var n=e[1].toLowerCase();"set-cookie"===n?(void 0===s.headers[n]&&(s.headers[n]=[]),s.headers[n].push(e[2])):void 0!==s.headers[n]?s.headers[n]+=", "+e[2]:s.headers[n]=e[2],s.rawHeaders.push(e[1],e[2])}}),s._charset="x-user-defined",!a.overrideMimeType){var h=s.rawHeaders["mime-type"];if(h){var f=h.match(/;\s*charset=([^;])(;|$)/);f&&(s._charset=f[1].toLowerCase())}s._charset||(s._charset="utf-8")}}};o(c,u.Readable),c.prototype._read=function(){},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 i.VBArray(e.responseBody).toArray()}catch(t){}if(null!==n){t.push(new r(n));break}case"text":try{n=e.responseText}catch(e){t._mode="text:vbarray";break}if(n.length>t._pos){var a=n.substr(t._pos);if("x-user-defined"===t._charset){for(var o=new r(a.length),u=0;u<a.length;u++)o[u]=255&a.charCodeAt(u);t.push(o)}else t.push(a,t._charset);t._pos=n.length}break;case"arraybuffer":if(e.readyState!==s.DONE||!e.response)break;n=e.response,t.push(new r(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=e.response,e.readyState!==s.LOADING||!n)break;t.push(new r(new Uint8Array(n)));break;case"ms-stream":if(n=e.response,e.readyState!==s.LOADING)break;var c=new i.MSStreamReader;c.onprogress=function(){c.result.byteLength>t._pos&&(t.push(new r(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(e,n(15),n(17).Buffer,function(){return this}())},function(t,e,n){function r(t,e){this._id=t,this._clearFn=e}var i=Function.prototype.apply;e.setTimeout=function(){return new r(i.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new r(i.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(237),e.setImmediate=setImmediate,e.clearImmediate=clearImmediate},function(t,e,n){var r=n(17).Buffer;t.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")}},function(t,e){"use strict";t.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}}},function(t,e){(function(e){function n(t,e){function n(){if(!i){if(r("throwDeprecation"))throw new Error(e);r("traceDeprecation")?console.trace(e):console.warn(e),i=!0}return t.apply(this,arguments)}if(r("noDeprecation"))return t;var i=!1;return n}function r(t){try{if(!e.localStorage)return!1}catch(t){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=n}).call(e,function(){return this}())},function(t,e,n){(function(t,r){/**
  	 * Wrapper for built-in http.js to emulate the browser XMLHttpRequest object.
  	 *
  	 * This can be used with JS designed for browsers to improve reuse of code and
  	 * allow the use of existing libraries.
  	 *
  	 * Usage: include("XMLHttpRequest.js") and use XMLHttpRequest per W3C specs.
  	 *
  	 * @author Dan DeFelippi <dan@driverdan.com>
  	 * @contributor David Ellis <d.f.ellis@ieee.org>
  	 * @license MIT
  	 */
  var i=n(101),a=n(91).spawn,o=n(91);e.XMLHttpRequest=function(){"use strict";var e,u,s=this,c=n(98),l=n(229),h={},f=!1,d={"User-Agent":"node-XMLHttpRequest",Accept:"*/*"},p={},g={},v=["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,_=!1,x={};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;var b=function(t){return f||t&&v.indexOf(t.toLowerCase())===-1},w=function(t){return t&&y.indexOf(t)===-1};this.open=function(t,e,n,r,i){if(this.abort(),_=!1,!w(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},M(this.OPENED)},this.setDisableHeaderCheck=function(t){f=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(!b(t))return void console.warn('Refused to set unsafe header "'+t+'"');if(m)throw new Error("INVALID_STATE_ERR: send flag is true");t=g[t.toLowerCase()]||t,g[t.toLowerCase()]=t,p[t]=p[t]?p[t]+", "+e:e},this.getResponseHeader=function(t){return"string"==typeof t&&this.readyState>this.OPENED&&u&&u.headers&&u.headers[t.toLowerCase()]&&!_?u.headers[t.toLowerCase()]:null},this.getAllResponseHeaders=function(){if(this.readyState<this.HEADERS_RECEIVED||_)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&&g[t.toLowerCase()]?p[g[t.toLowerCase()]]:""},this.send=function(n){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 f,v=!1,y=!1,x=i.parse(h.url);switch(x.protocol){case"https:":v=!0;case"http:":f=x.hostname;break;case"file:":y=!0;break;case void 0:case null:case"":f="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)o.readFile(x.pathname,"utf8",function(t,e){t?s.handleError(t):(s.status=200,s.responseText=e,M(s.DONE))});else try{this.responseText=o.readFileSync(x.pathname,"utf8"),this.status=200,M(s.DONE)}catch(t){this.handleError(t)}}else{var b=x.port||(v?443:80),w=x.pathname+(x.search?x.search:"");for(var S in d)g[S.toLowerCase()]||(p[S]=d[S]);if(p.Host=f,v&&443===b||80===b||(p.Host+=":"+x.port),h.user){"undefined"==typeof h.password&&(h.password="");var k=new t(h.user+":"+h.password);p.Authorization="Basic "+k.toString("base64")}"GET"===h.method||"HEAD"===h.method?n=null:n?(p["Content-Length"]=t.isBuffer(n)?n.length:t.byteLength(n),p["Content-Type"]||(p["Content-Type"]="text/plain;charset=UTF-8")):"POST"===h.method&&(p["Content-Length"]=0);var T={host:f,port:b,path:w,method:h.method,headers:p,agent:!1,withCredentials:s.withCredentials};if(_=!1,h.async){var E=v?l.request:c.request;m=!0,s.dispatchEvent("readystatechange");var A=function t(n){if(u=n,301===u.statusCode||302===u.statusCode||303===u.statusCode||307===u.statusCode){h.url=u.headers.location;var r=i.parse(h.url);f=r.hostname;var a={hostname:r.hostname,port:r.port,path:r.path,method:303===u.statusCode?"GET":h.method,headers:p,withCredentials:s.withCredentials};return e=E(a,t).on("error",C),void e.end()}u.setEncoding("utf8"),M(s.HEADERS_RECEIVED),s.status=u.statusCode,u.on("data",function(t){t&&(s.responseText+=t),m&&M(s.LOADING)}),u.on("end",function(){m&&(M(s.DONE),m=!1)}),u.on("error",function(t){s.handleError(t)})},C=function(t){s.handleError(t)};e=E(T,A).on("error",C),n&&e.write(n),e.end(),s.dispatchEvent("loadstart")}else{var P=".node-xmlhttprequest-content-"+r.pid,N=".node-xmlhttprequest-sync-"+r.pid;o.writeFileSync(N,"","utf8");for(var I="var http = require('http'), https = require('https'), fs = require('fs');var doRequest = http"+(v?"s":"")+".request;var options = "+JSON.stringify(T)+";var responseText = '';var req = doRequest(options, function(response) {response.setEncoding('utf8');response.on('data', function(chunk) {  responseText += chunk;});response.on('end', function() {fs.writeFileSync('"+P+"', JSON.stringify({err: null, data: {statusCode: response.statusCode, headers: response.headers, text: responseText}}), 'utf8');fs.unlinkSync('"+N+"');});response.on('error', function(error) {fs.writeFileSync('"+P+"', JSON.stringify({err: error}), 'utf8');fs.unlinkSync('"+N+"');});}).on('error', function(error) {fs.writeFileSync('"+P+"', JSON.stringify({err: error}), 'utf8');fs.unlinkSync('"+N+"');});"+(n?"req.write('"+JSON.stringify(n).slice(1,-1).replace(/'/g,"\\'")+"');":"")+"req.end();",L=a(r.argv[0],["-e",I]);o.existsSync(N););var R=JSON.parse(o.readFileSync(P,"utf8"));L.stdin.end(),o.unlinkSync(P),R.err?s.handleError(R.err):(u=R.data,s.status=R.data.statusCode,s.responseText=R.data.text,M(s.DONE))}}},this.handleError=function(t){this.status=0,this.statusText=t,this.responseText=t.stack,_=!0,M(this.DONE),this.dispatchEvent("error")},this.abort=function(){e&&(e.abort(),e=null),p=d,this.status=0,this.responseText="",this.responseXML="",_=!0,this.readyState===this.UNSENT||this.readyState===this.OPENED&&!m||this.readyState===this.DONE||(m=!1,M(this.DONE)),this.readyState=this.UNSENT,this.dispatchEvent("abort")},this.addEventListener=function(t,e){t in x||(x[t]=[]),x[t].push(e)},this.removeEventListener=function(t,e){t in x&&(x[t]=x[t].filter(function(t){return t!==e}))},this.dispatchEvent=function(t){if("function"==typeof s["on"+t]&&s["on"+t](),t in x)for(var e=0,n=x[t].length;e<n;e++)x[t][e].call(s)};var M=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||_||(s.dispatchEvent("load"),s.dispatchEvent("loadend")))}}}).call(e,n(17).Buffer,n(15))},function(t,e){function n(){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}t.exports=n;var r=Object.prototype.hasOwnProperty},function(t,e){}]))});
  
  	})(jQuery);
  	exports('g6Plugins', null);
  });