-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path7-es2015.3994764f77efe2a77a1f.js
More file actions
1 lines (1 loc) · 317 KB
/
7-es2015.3994764f77efe2a77a1f.js
File metadata and controls
1 lines (1 loc) · 317 KB
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{"+6XX":function(t,n,e){var r=e("y1pI");t.exports=function(t){return r(this.__data__,t)>-1}},"+K+b":function(t,n,e){var r=e("JHRd");t.exports=function(t){var n=new t.constructor(t.byteLength);return new r(n).set(new r(t)),n}},"+Qka":function(t,n,e){var r=e("fmRc"),i=e("t2Dn"),o=e("cq/+"),s=e("T1AV"),a=e("GoyQ"),u=e("mTTR"),c=e("itsj");t.exports=function t(n,e,l,h,f){n!==e&&o(e,(function(o,u){if(f||(f=new r),a(o))s(n,e,u,l,t,h,f);else{var d=h?h(c(n,u),o,u+"",n,e,f):void 0;void 0===d&&(d=o),i(n,u,d)}}),u)}},"+c4W":function(t,n,e){var r=e("711d"),i=e("4/ic"),o=e("9ggG"),s=e("9Nap");t.exports=function(t){return o(t)?r(s(t)):i(t)}},"+iFO":function(t,n,e){var r=e("dTAl"),i=e("LcsW"),o=e("6sVZ");t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},"/9aa":function(t,n,e){var r=e("NykK"),i=e("ExA7");t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},"/lCR":function(t,n,e){var r=e("mrSG").__extends;Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function t(){this.findIter=function(t){for(var n=this._root,e=this.iterator();null!==n;){var r=this._comparator(t,n.data);if(0===r)return e._cursor=n,e;e._ancestors.push(n),n=n.get_child(r>0)}return null}}return t.prototype.clear=function(){this._root=null,this.size=0},t.prototype.find=function(t){for(var n=this._root;null!==n;){var e=this._comparator(t,n.data);if(0===e)return n.data;n=n.get_child(e>0)}return null},t.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},t.prototype.upperBound=function(t){var n=this._comparator;return this._bound(t,(function(t,e){return n(e,t)}))},t.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},t.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},t.prototype.iterator=function(){return new o(this)},t.prototype.each=function(t){for(var n,e=this.iterator();null!==(n=e.next());)t(n)},t.prototype.reach=function(t){for(var n,e=this.iterator();null!==(n=e.prev());)t(n)},t.prototype._bound=function(t,n){for(var e=this._root,r=this.iterator();null!==e;){var i=this._comparator(t,e.data);if(0===i)return r._cursor=e,r;r._ancestors.push(e),e=e.get_child(i>0)}for(var o=r._ancestors.length-1;o>=0;--o)if(n(t,(e=r._ancestors[o]).data)>0)return r._cursor=e,r._ancestors.length=o,r;return r._ancestors.length=0,r},t}();n.TreeBase=i;var o=function(){function t(t){this._tree=t,this._ancestors=[],this._cursor=null}return t.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},t.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else{var n;if(null===this._cursor.right)do{if(n=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===n);else this._ancestors.push(this._cursor),this._minNode(this._cursor.right)}return null!==this._cursor?this._cursor.data:null},t.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else{var n;if(null===this._cursor.left)do{if(n=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===n);else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left)}return null!==this._cursor?this._cursor.data:null},t.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},t.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},t}();n.Iterator=o;var s=function(){function t(t){this.data=t,this.left=null,this.right=null,this.red=!0}return t.prototype.get_child=function(t){return t?this.right:this.left},t.prototype.set_child=function(t,n){t?this.right=n:this.left=n},t}();n.RBTree=function(t){function n(n){var e=t.call(this)||this;return e._root=null,e._comparator=n,e.size=0,e}return r(n,t),n.prototype.insert=function(t){var e=!1;if(null===this._root)this._root=new s(t),e=!0,this.size++;else{var r=new s(void 0),i=!1,o=!1,a=null,u=r,c=null,l=this._root;for(u.right=this._root;;){if(null===l?(l=new s(t),c.set_child(i,l),e=!0,this.size++):n.is_red(l.left)&&n.is_red(l.right)&&(l.red=!0,l.left.red=!1,l.right.red=!1),n.is_red(l)&&n.is_red(c)){var h=u.right===a;l===c.get_child(o)?u.set_child(h,n.single_rotate(a,!o)):u.set_child(h,n.double_rotate(a,!o))}var f=this._comparator(l.data,t);if(0===f)break;o=i,null!==a&&(u=a),a=c,c=l,l=l.get_child(i=f<0)}this._root=r.right}return this._root.red=!1,e},n.prototype.remove=function(t){if(null===this._root)return!1;var e=new s(void 0),r=e;r.right=this._root;for(var i=null,o=null,a=null,u=!0;null!==r.get_child(u);){var c=u;o=i,i=r,r=r.get_child(u);var l=this._comparator(t,r.data);if(u=l>0,0===l&&(a=r),!n.is_red(r)&&!n.is_red(r.get_child(u)))if(n.is_red(r.get_child(!u))){var h=n.single_rotate(r,u);i.set_child(c,h),i=h}else if(!n.is_red(r.get_child(!u))){var f=i.get_child(!c);if(null!==f)if(n.is_red(f.get_child(!c))||n.is_red(f.get_child(c))){var d=o.right===i;n.is_red(f.get_child(c))?o.set_child(d,n.double_rotate(i,c)):n.is_red(f.get_child(!c))&&o.set_child(d,n.single_rotate(i,c));var p=o.get_child(d);p.red=!0,r.red=!0,p.left.red=!1,p.right.red=!1}else i.red=!1,f.red=!0,r.red=!0}}return null!==a&&(a.data=r.data,i.set_child(i.right===r,r.get_child(null===r.left)),this.size--),this._root=e.right,null!==this._root&&(this._root.red=!1),null!==a},n.is_red=function(t){return null!==t&&t.red},n.single_rotate=function(t,n){var e=t.get_child(!n);return t.set_child(!n,e.get_child(n)),e.set_child(n,t),t.red=!0,e.red=!1,e},n.double_rotate=function(t,e){return t.set_child(!e,n.single_rotate(t.get_child(!e),!e)),n.single_rotate(t,e)},n}(i)},"03A+":function(t,n,e){var r=e("JTzB"),i=e("ExA7"),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=u},"0Cz8":function(t,n,e){var r=e("Xi7e"),i=e("ebwN"),o=e("e4Nc");t.exports=function(t,n){var e=this.__data__;if(e instanceof r){var s=e.__data__;if(!i||s.length<199)return s.push([t,n]),this.size=++e.size,this;e=this.__data__=new o(s)}return e.set(t,n),this.size=e.size,this}},"0xIU":function(t,n,e){var r=e("pHPU"),i=e("M96O");t.exports=function(t,n,e){return i.transform(t.nodes(),(function(i,o){i[o]=r(t,o,n,e)}),{})}},"0ycA":function(t,n){t.exports=function(){return[]}},"1+5i":function(t,n,e){var r=e("w/wX"),i=e("sEf8"),o=e("mdPL"),s=o&&o.isSet,a=s?i(s):r;t.exports=a},"14Cm":function(t,n,e){"use strict";var r=e("b5wT");function i(t,n,e){for(var i=r.zipObject(e,r.map(e,(function(t,n){return n}))),o=r.flatten(r.map(n,(function(n){return r.sortBy(r.map(t.outEdges(n),(function(n){return{pos:i[n.w],weight:t.edge(n).weight}})),"pos")})),!0),s=1;s<e.length;)s<<=1;var a=2*s-1;s-=1;var u=r.map(new Array(a),(function(){return 0})),c=0;return r.forEach(o.forEach((function(t){var n=t.pos+s;u[n]+=t.weight;for(var e=0;n>0;)n%2&&(e+=u[n+1]),u[n=n-1>>1]+=t.weight;c+=t.weight*e}))),c}t.exports=function(t,n){for(var e=0,r=1;r<n.length;++r)e+=i(t,n[r-1],n[r]);return e}},"1LK5":function(t,n){t.exports=function(t,n){var e=t.length;for(t.sort(n);e--;)t[e]=t[e].value;return t}},"1PPP":function(t,n,e){var r=e("b5wT");t.exports=function(t,n,e){var i,o={};r.forEach(e,(function(e){for(var r,s,a=t.parent(e);a;){if((r=t.parent(a))?(s=o[r],o[r]=a):(s=i,i=a),s&&s!==a)return void n.setEdge(s,a);a=r}}))}},"1hJj":function(t,n,e){var r=e("e4Nc"),i=e("ftKO"),o=e("3A9y");function s(t){var n=-1,e=null==t?0:t.length;for(this.__data__=new r;++n<e;)this.add(t[n])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,t.exports=s},"1iNE":function(t,n,e){var r=e("A90E"),i=e("QqLw"),o=e("MMmD"),s=e("4qC0"),a=e("Z1HP");t.exports=function(t){if(null==t)return 0;if(o(t))return s(t)?a(t):t.length;var n=i(t);return"[object Map]"==n||"[object Set]"==n?t.size:r(t).length}},"1w02":function(t,n){t.exports=function(t,n,e){for(var r=-1,i=t.length,o=n.length,s={};++r<i;)e(s,t[r],r<o?n[r]:void 0);return s}},"2J+T":function(t,n,e){t.exports={components:e("5EqP"),dijkstra:e("pHPU"),dijkstraAll:e("0xIU"),findCycles:e("3azA"),floydWarshall:e("ZzYp"),isAcyclic:e("Q+g8"),postorder:e("Txda"),preorder:e("qvmO"),prim:e("Yen4"),tarjan:e("z6cq"),topsort:e("gYXE")}},"2ajD":function(t,n){t.exports=function(t){return t!=t}},"2fNS":function(t,n,e){"use strict";var r=e("b5wT");t.exports=function(t,n){var e={};return r.forEach(t,(function(t,n){var i=e[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:n};r.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)})),r.forEach(n.edges(),(function(t){var n=e[t.v],i=e[t.w];r.isUndefined(n)||r.isUndefined(i)||(i.indegree++,n.out.push(e[t.w]))})),function(t){var n=[];function e(t){return function(n){var e,i,o,s;n.merged||(r.isUndefined(n.barycenter)||r.isUndefined(t.barycenter)||n.barycenter>=t.barycenter)&&(o=0,s=0,(e=t).weight&&(o+=e.barycenter*e.weight,s+=e.weight),(i=n).weight&&(o+=i.barycenter*i.weight,s+=i.weight),e.vs=i.vs.concat(e.vs),e.barycenter=o/s,e.weight=s,e.i=Math.min(i.i,e.i),i.merged=!0)}}function i(n){return function(e){e.in.push(n),0==--e.indegree&&t.push(e)}}for(;t.length;){var o=t.pop();n.push(o),r.forEach(o.in.reverse(),e(o)),r.forEach(o.out,i(o))}return r.map(r.filter(n,(function(t){return!t.merged})),(function(t){return r.pick(t,["vs","i","barycenter","weight"])}))}(r.filter(e,(function(t){return!t.indegree})))}},"2gN3":function(t,n,e){var r=e("Kz5y");t.exports=r["__core-js_shared__"]},"3A9y":function(t,n){t.exports=function(t){return this.__data__.has(t)}},"3Fdi":function(t,n){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(n){}try{return t+""}catch(n){}}return""}},"3L66":function(t,n,e){var r=e("MMmD"),i=e("ExA7");t.exports=function(t){return i(t)&&r(t)}},"3WF5":function(t,n,e){var r=e("eUgh"),i=e("ut/Y"),o=e("l9OW"),s=e("Z0cm");t.exports=function(t,n){return(s(t)?r:o)(t,i(n,3))}},"3azA":function(t,n,e){var r=e("M96O"),i=e("z6cq");t.exports=function(t){return r.filter(i(t),(function(n){return n.length>1||1===n.length&&t.hasEdge(n[0],n[0])}))}},"3duJ":function(t,n,e){var r=e("mrSG").__extends;Object.defineProperty(n,"__esModule",{value:!0});var i=e("imqj"),o=function(){return function(){}}();n.Point=o;var s=function(){return function(t,n,e,r){this.x1=t,this.y1=n,this.x2=e,this.y2=r}}();function a(t,n,e){return(n.x-t.x)*(e.y-t.y)-(e.x-t.x)*(n.y-t.y)}function u(t,n,e){return a(t,n,e)>0}function c(t,n,e){return a(t,n,e)<0}function l(t,n){var e,r,i,o,s=n.length-1;if(c(t,n[1],n[0])&&!u(t,n[s-1],n[0]))return 0;for(e=0,r=s;;){if(r-e==1)return u(t,n[e],n[r])?e:r;if((o=c(t,n[(i=Math.floor((e+r)/2))+1],n[i]))&&!u(t,n[i-1],n[i]))return i;u(t,n[e+1],n[e])?o?r=i:u(t,n[e],n[i])?r=i:e=i:o&&c(t,n[e],n[i])?r=i:e=i}}function h(t,n){var e,r,i,o,s=n.length-1;if(u(t,n[s-1],n[0])&&!c(t,n[1],n[0]))return 0;for(e=0,r=s;;){if(r-e==1)return c(t,n[e],n[r])?e:r;if(o=c(t,n[(i=Math.floor((e+r)/2))+1],n[i]),u(t,n[i-1],n[i])&&!o)return i;c(t,n[e+1],n[e])?o?c(t,n[e],n[i])?r=i:e=i:r=i:o?e=i:u(t,n[e],n[i])?r=i:e=i}}function f(t,n,e,r,i,o){var s,a;a=r(t[s=e(n[0],t)],n);for(var u=!1;!u;){for(u=!0;s===t.length-1&&(s=0),!i(n[a],t[s],t[s+1]);)++s;for(;0===a&&(a=n.length-1),!o(t[s],n[a],n[a-1]);)--a,u=!1}return{t1:s,t2:a}}function d(t,n){return f(t,n,l,h,u,c)}n.LineSegment=s,n.PolyPoint=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n}(o),n.isLeft=a,n.ConvexHull=function(t){var n,e=t.slice(0).sort((function(t,n){return t.x!==n.x?n.x-t.x:n.y-t.y})),r=t.length,i=e[0].x;for(n=1;n<r&&e[n].x===i;++n);var o=n-1,s=[];if(s.push(e[0]),o===r-1)e[o].y!==e[0].y&&s.push(e[o]);else{var u,c=r-1,l=e[r-1].x;for(n=r-2;n>=0&&e[n].x===l;n--);for(u=n+1,n=o;++n<=u;)if(!(a(e[0],e[u],e[n])>=0&&n<u)){for(;s.length>1&&!(a(s[s.length-2],s[s.length-1],e[n])>0);)s.length-=1;0!=n&&s.push(e[n])}c!=u&&s.push(e[c]);var h=s.length;for(n=u;--n>=o;)if(!(a(e[c],e[o],e[n])>=0&&n>o)){for(;s.length>h&&!(a(s[s.length-2],s[s.length-1],e[n])>0);)s.length-=1;0!=n&&s.push(e[n])}}return s},n.clockwiseRadialSweep=function(t,n,e){n.slice(0).sort((function(n,e){return Math.atan2(n.y-t.y,n.x-t.x)-Math.atan2(e.y-t.y,e.x-t.x)})).forEach(e)},n.tangent_PolyPolyC=f,n.LRtangent_PolyPolyC=function(t,n){var e=d(n,t);return{t1:e.t2,t2:e.t1}},n.RLtangent_PolyPolyC=d,n.LLtangent_PolyPolyC=function(t,n){return f(t,n,h,h,c,c)},n.RRtangent_PolyPolyC=function(t,n){return f(t,n,l,l,u,u)};var p=function(){return function(t,n){this.t1=t,this.t2=n}}();n.BiTangent=p;var g=function(){return function(){}}();n.BiTangents=g,n.TVGPoint=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n}(o);var v=function(){return function(t,n,e,r){this.id=t,this.polyid=n,this.polyvertid=e,this.p=r,r.vv=this}}();n.VisibilityVertex=v;var y=function(){function t(t,n){this.source=t,this.target=n}return t.prototype.length=function(){var t=this.source.p.x-this.target.p.x,n=this.source.p.y-this.target.p.y;return Math.sqrt(t*t+n*n)},t}();function m(t,n){for(var e=[],r=1,o=n.length;r<o;++r){var s=i.Rectangle.lineIntersection(t.x1,t.y1,t.x2,t.y2,n[r-1].x,n[r-1].y,n[r].x,n[r].y);s&&e.push(s)}return e}function b(t,n){for(var e=t.length-1,r=n.length-1,i=new g,o=0;o<e;++o)for(var s=0;s<r;++s){var u=t[0==o?e-1:o-1],c=t[o],l=t[o+1],h=n[0==s?r-1:s-1],f=n[s],d=n[s+1],v=a(u,c,f),y=a(c,h,f),m=a(c,f,d),b=a(h,f,c),x=a(f,u,c),w=a(f,c,l);v>=0&&y>=0&&m<0&&b>=0&&x>=0&&w<0?i.ll=new p(o,s):v<=0&&y<=0&&m>0&&b<=0&&x<=0&&w>0?i.rr=new p(o,s):v<=0&&y>0&&m<=0&&b>=0&&x<0&&w>=0?i.rl=new p(o,s):v>=0&&y<0&&m>=0&&b<=0&&x>0&&w<=0&&(i.lr=new p(o,s))}return i}function x(t,n){return!t.every((function(t){return!function(t,n){for(var e=1,r=n.length;e<r;++e)if(c(n[e-1],n[e],t))return!1;return!0}(t,n)}))}n.VisibilityEdge=y,n.TangentVisibilityGraph=function(){function t(t,n){if(this.P=t,this.V=[],this.E=[],n)this.V=n.V.slice(0),this.E=n.E.slice(0);else{for(var e=t.length,r=0;r<e;r++){for(var i=t[r],o=0;o<i.length;++o){var s=new v(this.V.length,r,o,i[o]);this.V.push(s),o>0&&this.E.push(new y(i[o-1].vv,s))}i.length>1&&this.E.push(new y(i[0].vv,i[i.length-1].vv))}for(r=0;r<e-1;r++){var a=t[r];for(o=r+1;o<e;o++){var u=t[o],c=b(a,u);for(var l in c){var h=c[l];this.addEdgeIfVisible(a[h.t1],u[h.t2],r,o)}}}}}return t.prototype.addEdgeIfVisible=function(t,n,e,r){this.intersectsPolys(new s(t.x,t.y,n.x,n.y),e,r)||this.E.push(new y(t.vv,n.vv))},t.prototype.addPoint=function(t,n){var e,r,i,o=this.P.length;this.V.push(new v(this.V.length,o,0,t));for(var s=0;s<o;++s)if(s!==n){var a=this.P[s],u=(e=t,i=void 0,(i=(r=a).slice(0)).push(r[0]),{rtan:l(e,i),ltan:h(e,i)});this.addEdgeIfVisible(t,a[u.ltan],n,s),this.addEdgeIfVisible(t,a[u.rtan],n,s)}return t.vv},t.prototype.intersectsPolys=function(t,n,e){for(var r=0,i=this.P.length;r<i;++r)if(r!=n&&r!=e&&m(t,this.P[r]).length>0)return!0;return!1},t}(),n.tangents=b,n.polysOverlap=function(t,n){if(x(t,n))return!0;if(x(n,t))return!0;for(var e=1,r=t.length;e<r;++e){var i=t[e],o=t[e-1];if(m(new s(o.x,o.y,i.x,i.y),n).length>0)return!0}return!1}},"3y7U":function(t,n,e){var r=e("M96O");t.exports=function(t,n,e){r.isArray(n)||(n=[n]);var i=(t.isDirected()?t.successors:t.neighbors).bind(t),o=[],s={};return r.each(n,(function(n){if(!t.hasNode(n))throw new Error("Graph does not have node: "+n);!function t(n,e,i,o,s,a){r.has(o,e)||(o[e]=!0,i||a.push(e),r.each(s(e),(function(e){t(n,e,i,o,s,a)})),i&&a.push(e))}(t,n,"post"===e,s,i,o)})),o}},"4/ic":function(t,n,e){var r=e("ZWtO");t.exports=function(t){return function(n){return r(n,t)}}},"409L":function(t,n,e){t.exports={graphlib:e("F9We"),layout:e("epwv"),debug:e("4JAw"),util:{time:e("tQ6r").time,notime:e("tQ6r").notime},version:e("khRU")}},"44Ds":function(t,n,e){var r=e("e4Nc"),i="Expected a function";function o(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new TypeError(i);var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],o=e.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return e.cache=o.set(i,s)||o,s};return e.cache=new(o.Cache||r),e}o.Cache=r,t.exports=o},"4Ai+":function(t,n,e){var r=e("Ac7g");t.exports={Graph:r.Graph,json:e("GbLa"),alg:e("2J+T"),version:r.version}},"4JAw":function(t,n,e){var r=e("b5wT"),i=e("tQ6r"),o=e("F9We").Graph;t.exports={debugOrdering:function(t){var n=i.buildLayerMatrix(t),e=new o({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),(function(n){e.setNode(n,{label:n}),e.setParent(n,"layer"+t.node(n).rank)})),r.forEach(t.edges(),(function(t){e.setEdge(t.v,t.w,{},t.name)})),r.forEach(n,(function(t,n){e.setNode("layer"+n,{rank:"same"}),r.reduce(t,(function(t,n){return e.setEdge(t,n,{style:"invis"}),n}))})),e}}},"4kuk":function(t,n,e){var r=e("SfRM"),i=e("Hvzi"),o=e("u8Dt"),s=e("ekgI"),a=e("JSQU");function u(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},"4qC0":function(t,n,e){var r=e("NykK"),i=e("Z0cm"),o=e("ExA7");t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},"4sDh":function(t,n,e){var r=e("4uTw"),i=e("03A+"),o=e("Z0cm"),s=e("wJg7"),a=e("shjB"),u=e("9Nap");t.exports=function(t,n,e){for(var c=-1,l=(n=r(n,t)).length,h=!1;++c<l;){var f=u(n[c]);if(!(h=null!=t&&e(t,f)))break;t=t[f]}return h||++c!=l?h:!!(l=null==t?0:t.length)&&a(l)&&s(f,l)&&(o(t)||i(t))}},"4uTw":function(t,n,e){var r=e("Z0cm"),i=e("9ggG"),o=e("GNiM"),s=e("dt0z");t.exports=function(t,n){return r(t)?t:i(t,n)?[t]:o(s(t))}},"5EqP":function(t,n,e){var r=e("M96O");t.exports=function(t){var n,e={},i=[];function o(i){r.has(e,i)||(e[i]=!0,n.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}return r.each(t.nodes(),(function(t){n=[],o(t),n.length&&i.push(n)})),i}},"5Tg0":function(t,n,e){(function(t){var r=e("Kz5y"),i=n&&!n.nodeType&&n,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===i?r.Buffer:void 0,a=s?s.allocUnsafe:void 0;t.exports=function(t,n){if(n)return t.slice();var e=t.length,r=a?a(e):new t.constructor(e);return t.copy(r),r}}).call(this,e("YuTi")(t))},"5jIi":function(t,n,e){"use strict";var r=e("b5wT");t.exports=function(t){var n={},e=r.filter(t.nodes(),(function(n){return!t.children(n).length})),i=r.max(r.map(e,(function(n){return t.node(n).rank}))),o=r.map(r.range(i+1),(function(){return[]})),s=r.sortBy(e,(function(n){return t.node(n).rank}));return r.forEach(s,(function e(i){if(!r.has(n,i)){n[i]=!0;var s=t.node(i);o[s.rank].push(i),r.forEach(t.successors(i),e)}})),o}},"6Ekc":function(t,n,e){"use strict";var r=e("b5wT");t.exports={longestPath:function(t){var n={};r.forEach(t.sources(),(function e(i){var o=t.node(i);if(r.has(n,i))return o.rank;n[i]=!0;var s=r.min(r.map(t.outEdges(i),(function(n){return e(n.w)-t.edge(n).minlen})));return s!==Number.POSITIVE_INFINITY&&null!=s||(s=0),o.rank=s}))},slack:function(t,n){return t.node(n.w).rank-t.node(n.v).rank-t.edge(n).minlen}}},"6sVZ":function(t,n){var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},"711d":function(t,n){t.exports=function(t){return function(n){return null==n?void 0:n[t]}}},"77Zs":function(t,n,e){var r=e("Xi7e");t.exports=function(){this.__data__=new r,this.size=0}},"7GkX":function(t,n,e){var r=e("b80T"),i=e("A90E"),o=e("MMmD");t.exports=function(t){return o(t)?r(t):i(t)}},"7Ix3":function(t,n){t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},"7fqy":function(t,n){t.exports=function(t){var n=-1,e=Array(t.size);return t.forEach((function(t,r){e[++n]=[r,t]})),e}},"81LO":function(t,n,e){var r=e("b5wT"),i=e("tQ6r");function o(t,n,e){for(var i;n.length&&(i=r.last(n)).i<=e;)n.pop(),t.push(i.vs),e++;return e}t.exports=function(t,n){var e,s=i.partition(t,(function(t){return r.has(t,"barycenter")})),a=s.lhs,u=r.sortBy(s.rhs,(function(t){return-t.i})),c=[],l=0,h=0,f=0;a.sort((e=!!n,function(t,n){return t.barycenter<n.barycenter?-1:t.barycenter>n.barycenter?1:e?n.i-t.i:t.i-n.i})),f=o(c,u,f),r.forEach(a,(function(t){f+=t.vs.length,c.push(t.vs),l+=t.barycenter*t.weight,h+=t.weight,f=o(c,u,f)}));var d={vs:r.flatten(c,!0)};return h&&(d.barycenter=l/h,d.weight=h),d}},"88Gu":function(t,n){var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var i=e(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},"8c2E":function(t,n,e){var r=e("b5wT");t.exports=function(t){var n=function(t){var n={},e=0;return r.forEach(t.children(),(function i(o){var s=e;r.forEach(t.children(o),i),n[o]={low:s,lim:e++}})),n}(t);r.forEach(t.graph().dummyChains,(function(e){for(var r=t.node(e),i=r.edgeObj,o=function(t,n,e,r){var i,o,s=[],a=[],u=Math.min(n[e].low,n[r].low),c=Math.max(n[e].lim,n[r].lim);i=e;do{i=t.parent(i),s.push(i)}while(i&&(n[i].low>u||c>n[i].lim));for(o=i,i=r;(i=t.parent(i))!==o;)a.push(i);return{path:s.concat(a.reverse()),lca:o}}(t,n,i.v,i.w),s=o.path,a=o.lca,u=0,c=s[u],l=!0;e!==i.w;){if(r=t.node(e),l){for(;(c=s[u])!==a&&t.node(c).maxRank<r.rank;)u++;c===a&&(l=!1)}if(!l){for(;u<s.length-1&&t.node(c=s[u+1]).minRank<=r.rank;)u++;c=s[u]}t.setParent(e,c),e=t.successors(e)[0]}}))}},"9Nap":function(t,n,e){var r=e("/9aa");t.exports=function(t){if("string"==typeof t||r(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},"9ggG":function(t,n,e){var r=e("Z0cm"),i=e("/9aa"),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,n){if(r(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!i(t))||s.test(t)||!o.test(t)||null!=n&&t in Object(n)}},A90E:function(t,n,e){var r=e("6sVZ"),i=e("V6Ve"),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var n=[];for(var e in Object(t))o.call(t,e)&&"constructor"!=e&&n.push(e);return n}},AE40:function(t,n,e){var r=e("dunj"),i=e("jSBL"),o=e("zZ0H");t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},AP2z:function(t,n,e){var r=e("nmnc"),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var n=o.call(t,a),e=t[a];try{t[a]=void 0;var r=!0}catch(u){}var i=s.call(t);return r&&(n?t[a]=e:delete t[a]),i}},Ac7g:function(t,n,e){t.exports={Graph:e("lnHP"),version:e("w802")}},AevD:function(t,n,e){var r=e("M96O");function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var n=this._keyIndices[t];if(void 0!==n)return this._arr[n].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,n){var e=this._keyIndices;if(t=String(t),!r.has(e,t)){var i=this._arr,o=i.length;return e[t]=o,i.push({key:t,priority:n}),this._decrease(o),!0}return!1},i.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},i.prototype.decrease=function(t,n){var e=this._keyIndices[t];if(n>this._arr[e].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[e].priority+" New: "+n);this._arr[e].priority=n,this._decrease(e)},i.prototype._heapify=function(t){var n=this._arr,e=2*t,r=e+1,i=t;e<n.length&&(i=n[e].priority<n[i].priority?e:i,r<n.length&&(i=n[r].priority<n[i].priority?r:i),i!==t&&(this._swap(t,i),this._heapify(i)))},i.prototype._decrease=function(t){for(var n,e=this._arr,r=e[t].priority;0!==t&&!(e[n=t>>1].priority<r);)this._swap(t,n),t=n},i.prototype._swap=function(t,n){var e=this._arr,r=this._keyIndices,i=e[t],o=e[n];e[t]=o,e[n]=i,r[o.key]=t,r[i.key]=n}},B8du:function(t,n){t.exports=function(){return!1}},BiGR:function(t,n,e){var r=e("nmnc"),i=e("03A+"),o=e("Z0cm"),s=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(s&&t&&t[s])}},BkRI:function(t,n,e){var r=e("OBhP");t.exports=function(t){return r(t,5)}},C4tZ:function(t,n,e){"use strict";var r=e("6Ekc").longestPath,i=e("GEWS"),o=e("dOj1");t.exports=function(t){switch(t.graph().ranker){case"network-simplex":a(t);break;case"tight-tree":!function(t){r(t),i(t)}(t);break;case"longest-path":s(t);break;default:a(t)}};var s=r;function a(t){o(t)}},CH3K:function(t,n){t.exports=function(t,n){for(var e=-1,r=n.length,i=t.length;++e<r;)t[i+e]=n[e];return t}},CMye:function(t,n,e){var r=e("GoyQ");t.exports=function(t){return t==t&&!r(t)}},CZoQ:function(t,n){t.exports=function(t,n,e){for(var r=e-1,i=t.length;++r<i;)if(t[r]===n)return r;return-1}},Cwc5:function(t,n,e){var r=e("NKxu"),i=e("Npjl");t.exports=function(t,n){var e=i(t,n);return r(e)?e:void 0}},DSRE:function(t,n,e){(function(t){var r=e("Kz5y"),i=e("B8du"),o=n&&!n.nodeType&&n,s=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=s&&s.exports===o?r.Buffer:void 0;t.exports=(a?a.isBuffer:void 0)||i}).call(this,e("YuTi")(t))},"Dw+G":function(t,n,e){var r=e("juv8"),i=e("mTTR");t.exports=function(t,n){return t&&r(n,i(n),t)}},"E+oP":function(t,n,e){var r=e("A90E"),i=e("QqLw"),o=e("03A+"),s=e("Z0cm"),a=e("MMmD"),u=e("DSRE"),c=e("6sVZ"),l=e("c6wG"),h=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(a(t)&&(s(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||l(t)||o(t)))return!t.length;var n=i(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(c(t))return!r(t).length;for(var e in t)if(h.call(t,e))return!1;return!0}},E2jh:function(t,n,e){var r,i=e("2gN3"),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},EA7m:function(t,n,e){var r=e("zZ0H"),i=e("Ioao"),o=e("wclG");t.exports=function(t,n){return o(i(t,n,r),t+"")}},EEGq:function(t,n,e){var r=e("juv8"),i=e("oCl/");t.exports=function(t,n){return r(t,i(t),n)}},EYCo:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){return function(t,n,e){this.source=t,this.target=n,this.type=e}}();n.PowerEdge=r;var i=function(){function t(t,n,e,r){var i=this;if(this.linkAccessor=e,this.modules=new Array(t),this.roots=[],r)this.initModulesFromGroup(r);else{this.roots.push(new s);for(var a=0;a<t;++a)this.roots[0].add(this.modules[a]=new o(a))}this.R=n.length,n.forEach((function(t){var n=i.modules[e.getSourceIndex(t)],r=i.modules[e.getTargetIndex(t)],o=e.getType(t);n.outgoing.add(o,r),r.incoming.add(o,n)}))}return t.prototype.initModulesFromGroup=function(t){var n=new s;this.roots.push(n);for(var e=0;e<t.leaves.length;++e){var r=t.leaves[e],i=new o(r.id);this.modules[r.id]=i,n.add(i)}if(t.groups)for(var u=0;u<t.groups.length;++u){var c=t.groups[u],l={};for(var h in c)"leaves"!==h&&"groups"!==h&&c.hasOwnProperty(h)&&(l[h]=c[h]);n.add(new o(-1-u,new a,new a,this.initModulesFromGroup(c),l))}return n},t.prototype.merge=function(t,n,e){void 0===e&&(e=0);var r=t.incoming.intersection(n.incoming),i=t.outgoing.intersection(n.outgoing),a=new s;a.add(t),a.add(n);var u=new o(this.modules.length,i,r,a);this.modules.push(u);var c=function(e,r,i){e.forAll((function(e,o){e.forAll((function(e){var s=e[r];s.add(o,u),s.remove(o,t),s.remove(o,n),t[i].remove(o,e),n[i].remove(o,e)}))}))};return c(i,"incoming","outgoing"),c(r,"outgoing","incoming"),this.R-=r.count()+i.count(),this.roots[e].remove(t),this.roots[e].remove(n),this.roots[e].add(u),u},t.prototype.rootMerges=function(t){void 0===t&&(t=0);for(var n=this.roots[t].modules(),e=n.length,r=new Array(e*(e-1)),i=0,o=0,s=e-1;o<s;++o)for(var a=o+1;a<e;++a){var u=n[o],c=n[a];r[i]={id:i,nEdges:this.nEdges(u,c),a:u,b:c},i++}return r},t.prototype.greedyMerge=function(){for(var t=0;t<this.roots.length;++t)if(!(this.roots[t].modules().length<2)){var n=this.rootMerges(t).sort((function(t,n){return t.nEdges==n.nEdges?t.id-n.id:t.nEdges-n.nEdges}))[0];if(!(n.nEdges>=this.R))return this.merge(n.a,n.b,t),!0}},t.prototype.nEdges=function(t,n){var e=t.incoming.intersection(n.incoming),r=t.outgoing.intersection(n.outgoing);return this.R-e.count()-r.count()},t.prototype.getGroupHierarchy=function(t){var n=this,e=[];return function t(n,e,r){n.forAll((function(n){if(n.isLeaf())e.leaves||(e.leaves=[]),e.leaves.push(n.id);else{var i=e;if(n.gid=r.length,!n.isIsland()||n.isPredefined()){if(i={id:n.gid},n.isPredefined())for(var o in n.definition)i[o]=n.definition[o];e.groups||(e.groups=[]),e.groups.push(n.gid),r.push(i)}t(n.children,i,r)}}))}(this.roots[0],{},e),this.allEdges().forEach((function(i){var o=n.modules[i.source],s=n.modules[i.target];t.push(new r(void 0===o.gid?i.source:e[o.gid],void 0===s.gid?i.target:e[s.gid],i.type))})),e},t.prototype.allEdges=function(){var n=[];return t.getEdges(this.roots[0],n),n},t.getEdges=function(n,e){n.forAll((function(n){n.getEdges(e),t.getEdges(n.children,e)}))},t}();n.Configuration=i;var o=function(){function t(t,n,e,r,i){void 0===n&&(n=new a),void 0===e&&(e=new a),void 0===r&&(r=new s),this.id=t,this.outgoing=n,this.incoming=e,this.children=r,this.definition=i}return t.prototype.getEdges=function(t){var n=this;this.outgoing.forAll((function(e,i){e.forAll((function(e){t.push(new r(n.id,e.id,i))}))}))},t.prototype.isLeaf=function(){return 0===this.children.count()},t.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},t.prototype.isPredefined=function(){return void 0!==this.definition},t}();n.Module=o;var s=function(){function t(){this.table={}}return t.prototype.count=function(){return Object.keys(this.table).length},t.prototype.intersection=function(n){var e=new t;return e.table=function(t,n){var e={};for(var r in t)r in n&&(e[r]=t[r]);return e}(this.table,n.table),e},t.prototype.intersectionCount=function(t){return this.intersection(t).count()},t.prototype.contains=function(t){return t in this.table},t.prototype.add=function(t){this.table[t.id]=t},t.prototype.remove=function(t){delete this.table[t.id]},t.prototype.forAll=function(t){for(var n in this.table)t(this.table[n])},t.prototype.modules=function(){var t=[];return this.forAll((function(n){n.isPredefined()||t.push(n)})),t},t}();n.ModuleSet=s;var a=function(){function t(){this.sets={},this.n=0}return t.prototype.count=function(){return this.n},t.prototype.contains=function(t){var n=!1;return this.forAllModules((function(e){n||e.id!=t||(n=!0)})),n},t.prototype.add=function(t,n){(t in this.sets?this.sets[t]:this.sets[t]=new s).add(n),++this.n},t.prototype.remove=function(t,n){var e=this.sets[t];e.remove(n),0===e.count()&&delete this.sets[t],--this.n},t.prototype.forAll=function(t){for(var n in this.sets)t(this.sets[n],Number(n))},t.prototype.forAllModules=function(t){this.forAll((function(n,e){return n.forAll(t)}))},t.prototype.intersection=function(n){var e=new t;return this.forAll((function(t,r){if(r in n.sets){var i=t.intersection(n.sets[r]),o=i.count();o>0&&(e.sets[r]=i,e.n+=o)}})),e},t}();n.LinkSets=a,n.getGroups=function(t,n,e,r){for(var o=new i(t.length,n,e,r);o.greedyMerge(););var s=[],a=o.getGroupHierarchy(s);return s.forEach((function(n){var e=function(e){var r=n[e];"number"==typeof r&&(n[e]=t[r])};e("source"),e("target")})),{groups:a,powerEdges:s}}},EpBk:function(t,n){t.exports=function(t){var n=typeof t;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t}},EwQA:function(t,n,e){var r=e("zZ0H");t.exports=function(t){return"function"==typeof t?t:r}},ExA7:function(t,n){t.exports=function(t){return null!=t&&"object"==typeof t}},F9We:function(t,n,e){var r;try{r=e("4Ai+")}catch(i){}r||(r=window.graphlib),t.exports=r},FJ48:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("n85Q"),i=function(){return function(t,n){this.id=t,this.distance=n}}(),o=function(){return function(t){this.id=t,this.neighbours=[]}}(),s=function(){return function(t,n,e){this.node=t,this.prev=n,this.d=e}}();n.Calculator=function(){function t(t,n,e,r,s){this.n=t,this.es=n,this.neighbours=new Array(this.n);for(var a=this.n;a--;)this.neighbours[a]=new o(a);for(a=this.es.length;a--;){var u=this.es[a],c=e(u),l=r(u),h=s(u);this.neighbours[c].neighbours.push(new i(l,h)),this.neighbours[l].neighbours.push(new i(c,h))}}return t.prototype.DistanceMatrix=function(){for(var t=new Array(this.n),n=0;n<this.n;++n)t[n]=this.dijkstraNeighbours(n);return t},t.prototype.DistancesFromNode=function(t){return this.dijkstraNeighbours(t)},t.prototype.PathFromNodeToNode=function(t,n){return this.dijkstraNeighbours(t,n)},t.prototype.PathFromNodeToNodeWithPrevCost=function(t,n,e){var i=new r.PriorityQueue((function(t,n){return t.d<=n.d})),o=this.neighbours[t],a=new s(o,null,0),u={};for(i.push(a);!i.empty()&&(o=(a=i.pop()).node).id!==n;)for(var c=o.neighbours.length;c--;){var l=o.neighbours[c],h=this.neighbours[l.id];if(!a.prev||h.id!==a.prev.node.id){var f=h.id+","+o.id;if(!(f in u&&u[f]<=a.d)){var d=a.prev?e(a.prev.node.id,o.id,h.id):0,p=a.d+l.distance+d;u[f]=p,i.push(new s(h,a,p))}}}for(var g=[];a.prev;)g.push((a=a.prev).node.id);return g},t.prototype.dijkstraNeighbours=function(t,n){void 0===n&&(n=-1);for(var e=new r.PriorityQueue((function(t,n){return t.d<=n.d})),i=this.neighbours.length,o=new Array(i);i--;){var s=this.neighbours[i];s.d=i===t?0:Number.POSITIVE_INFINITY,s.q=e.push(s)}for(;!e.empty();){var a=e.pop();if(o[a.id]=a.d,a.id===n){for(var u=[],c=a;void 0!==c.prev;)u.push(c.prev.id),c=c.prev;return u}for(i=a.neighbours.length;i--;){var l=a.neighbours[i],h=(c=this.neighbours[l.id],a.d+l.distance);a.d!==Number.MAX_VALUE&&c.d>h&&(c.d=h,c.prev=a,e.reduceKey(c.q,c,(function(t,n){return t.q=n})))}}return o},t}()},FJyg:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("FJ48"),i=e("u+pN"),o=e("imqj"),s=e("kj44");n.Link3D=function(){function t(t,n){this.source=t,this.target=n}return t.prototype.actualLength=function(t){var n=this;return Math.sqrt(t.reduce((function(t,e){var r=e[n.target]-e[n.source];return t+r*r}),0))},t}(),n.Node3D=function(){return function(t,n,e){void 0===t&&(t=0),void 0===n&&(n=0),void 0===e&&(e=0),this.x=t,this.y=n,this.z=e}}(),n.Layout3D=function(){function t(n,e,r){var i=this;void 0===r&&(r=1),this.nodes=n,this.links=e,this.idealLinkLength=r,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(t.k);for(var o=0;o<t.k;++o)this.result[o]=new Array(n.length);n.forEach((function(n,e){for(var r=0,o=t.dims;r<o.length;r++){var s=o[r];void 0===n[s]&&(n[s]=Math.random())}i.result[0][e]=n.x,i.result[1][e]=n.y,i.result[2][e]=n.z}))}return t.prototype.linkLength=function(t){return t.actualLength(this.result)},t.prototype.start=function(t){var n=this;void 0===t&&(t=100);var e=this.nodes.length,u=new a;this.useJaccardLinkLengths&&s.jaccardLinkLengths(this.links,u,1.5),this.links.forEach((function(t){return t.length*=n.idealLinkLength}));var c=new r.Calculator(e,this.links,(function(t){return t.source}),(function(t){return t.target}),(function(t){return t.length})).DistanceMatrix(),l=i.Descent.createSquareMatrix(e,(function(t,n){return c[t][n]})),h=i.Descent.createSquareMatrix(e,(function(){return 2}));this.links.forEach((function(t){var n=t.source,e=t.target;return h[n][e]=h[e][n]=1})),this.descent=new i.Descent(this.result,l),this.descent.threshold=.001,this.descent.G=h,this.constraints&&(this.descent.project=new o.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var f=0;f<this.nodes.length;f++){var d=this.nodes[f];d.fixed&&this.descent.locks.add(f,[d.x,d.y,d.z])}return this.descent.run(t),this},t.prototype.tick=function(){this.descent.locks.clear();for(var t=0;t<this.nodes.length;t++){var n=this.nodes[t];n.fixed&&this.descent.locks.add(t,[n.x,n.y,n.z])}return this.descent.rungeKutta()},t.k=(t.dims=["x","y","z"]).length,t}();var a=function(){function t(){}return t.prototype.getSourceIndex=function(t){return t.source},t.prototype.getTargetIndex=function(t){return t.target},t.prototype.getLength=function(t){return t.length},t.prototype.setLength=function(t,n){t.length=n},t}()},FZoo:function(t,n,e){var r=e("MrPd"),i=e("4uTw"),o=e("wJg7"),s=e("GoyQ"),a=e("9Nap");t.exports=function(t,n,e,u){if(!s(t))return t;for(var c=-1,l=(n=i(n,t)).length,h=l-1,f=t;null!=f&&++c<l;){var d=a(n[c]),p=e;if(c!=h){var g=f[d];void 0===(p=u?u(g,d,f):void 0)&&(p=s(g)?g:o(n[c+1])?[]:{})}r(f,d,p),f=f[d]}return t}},FfPP:function(t,n,e){var r=e("idmN"),i=e("hgQt");t.exports=function(t,n){return r(t,n,(function(n,e){return i(t,e)}))}},G6z8:function(t,n,e){var r=e("fR/l"),i=e("oCl/"),o=e("mTTR");t.exports=function(t){return r(t,o,i)}},GDhZ:function(t,n,e){var r=e("wF/u"),i=e("mwIZ"),o=e("hgQt"),s=e("9ggG"),a=e("CMye"),u=e("IOzZ"),c=e("9Nap");t.exports=function(t,n){return s(t)&&a(n)?u(c(t),n):function(e){var s=i(e,t);return void 0===s&&s===n?o(e,t):r(n,s,3)}}},GEWS:function(t,n,e){"use strict";var r=e("b5wT"),i=e("F9We").Graph,o=e("6Ekc").slack;function s(t,n){return r.forEach(t.nodes(),(function e(i){r.forEach(n.nodeEdges(i),(function(r){var s=r.v,a=i===s?r.w:s;t.hasNode(a)||o(n,r)||(t.setNode(a,{}),t.setEdge(i,a,{}),e(a))}))})),t.nodeCount()}function a(t,n){return r.minBy(n.edges(),(function(e){if(t.hasNode(e.v)!==t.hasNode(e.w))return o(n,e)}))}function u(t,n,e){r.forEach(t.nodes(),(function(t){n.node(t).rank+=e}))}t.exports=function(t){var n,e,r=new i({directed:!1}),c=t.nodes()[0],l=t.nodeCount();for(r.setNode(c,{});s(r,t)<l;)n=a(r,t),e=r.hasNode(n.v)?o(t,n):-o(t,n),u(r,t,e);return r}},GNiM:function(t,n,e){var r=e("I01J"),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=r((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(i,(function(t,e,r,i){n.push(r?i.replace(o,"$1"):e||t)})),n}));t.exports=s},GbLa:function(t,n,e){var r=e("M96O"),i=e("lnHP");function o(t){return r.map(t.nodes(),(function(n){var e=t.node(n),i=t.parent(n),o={v:n};return r.isUndefined(e)||(o.value=e),r.isUndefined(i)||(o.parent=i),o}))}function s(t){return r.map(t.edges(),(function(n){var e=t.edge(n),i={v:n.v,w:n.w};return r.isUndefined(n.name)||(i.name=n.name),r.isUndefined(e)||(i.value=e),i}))}t.exports={write:function(t){var n={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:o(t),edges:s(t)};return r.isUndefined(t.graph())||(n.value=r.clone(t.graph())),n},read:function(t){var n=new i(t.options).setGraph(t.value);return r.each(t.nodes,(function(t){n.setNode(t.v,t.value),t.parent&&n.setParent(t.v,t.parent)})),r.each(t.edges,(function(t){n.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),n}}},Gi0A:function(t,n,e){var r=e("QqLw"),i=e("ExA7");t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},GoyQ:function(t,n){t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},H8j4:function(t,n,e){var r=e("QkVE");t.exports=function(t,n){var e=r(this,t),i=e.size;return e.set(t,n),this.size+=e.size==i?0:1,this}},HDyB:function(t,n,e){var r=e("nmnc"),i=e("JHRd"),o=e("ljhN"),s=e("or5M"),a=e("7fqy"),u=e("rEGp"),c=r?r.prototype:void 0,l=c?c.valueOf:void 0;t.exports=function(t,n,e,r,c,h,f){switch(e){case"[object DataView]":if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=n.byteLength||!h(new i(t),new i(n)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+n);case"[object Error]":return t.name==n.name&&t.message==n.message;case"[object RegExp]":case"[object String]":return t==n+"";case"[object Map]":var d=a;case"[object Set]":if(d||(d=u),t.size!=n.size&&!(1&r))return!1;var p=f.get(t);if(p)return p==n;r|=2,f.set(t,n);var g=s(d(t),d(n),r,c,h,f);return f.delete(t),g;case"[object Symbol]":if(l)return l.call(t)==l.call(n)}return!1}},HLqC:function(t,n,e){var r=e("R5Y4"),i=e("mv/X"),o=e("ZCgT");t.exports=function(t){return function(n,e,s){return s&&"number"!=typeof s&&i(n,e,s)&&(e=s=void 0),n=o(n),void 0===e?(e=n,n=0):e=o(e),s=void 0===s?n<e?1:-1:o(s),r(n,e,s,t)}}},HOxn:function(t,n,e){var r=e("Cwc5")(e("Kz5y"),"Promise");t.exports=r},Hvzi:function(t,n){t.exports=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}},HzoJ:function(t,n,e){var r=e("b5wT");t.exports=function(t,n){return r.map(n,(function(n){var e=t.inEdges(n);if(e.length){var i=r.reduce(e,(function(n,e){var r=t.edge(e),i=t.node(e.v);return{sum:n.sum+r.weight*i.order,weight:n.weight+r.weight}}),{sum:0,weight:0});return{v:n,barycenter:i.sum/i.weight,weight:i.weight}}return{v:n}}))}},I01J:function(t,n,e){var r=e("44Ds");t.exports=function(t){var n=r(t,(function(t){return 500===e.size&&e.clear(),t})),e=n.cache;return n}},IOzZ:function(t,n){t.exports=function(t,n){return function(e){return null!=e&&e[t]===n&&(void 0!==n||t in Object(e))}}},IWTy:function(t,n,e){var r=e("yue5");t.exports=function(t,n,e){for(var i=-1,o=t.criteria,s=n.criteria,a=o.length,u=e.length;++i<a;){var c=r(o[i],s[i]);if(c)return i>=u?c:c*("desc"==e[i]?-1:1)}return t.index-n.index}},Ig6t:function(t,n,e){var r=e("b5wT"),i=e("tQ6r");function o(t,n,e,r,o,s){var a=o[n][s-1],u=i.addDummyNode(t,"border",{width:0,height:0,rank:s,borderType:n},e);o[n][s]=u,t.setParent(u,r),a&&t.setEdge(a,u,{weight:1})}t.exports=function(t){r.forEach(t.children(),(function n(e){var i=t.children(e),s=t.node(e);if(i.length&&r.forEach(i,n),r.has(s,"minRank")){s.borderLeft=[],s.borderRight=[];for(var a=s.minRank,u=s.maxRank+1;a<u;++a)o(t,"borderLeft","_bl",e,s,a),o(t,"borderRight","_br",e,s,a)}}))}},Ioao:function(t,n,e){var r=e("heNW"),i=Math.max;t.exports=function(t,n,e){return n=i(void 0===n?t.length-1:n,0),function(){for(var o=arguments,s=-1,a=i(o.length-n,0),u=Array(a);++s<a;)u[s]=o[n+s];s=-1;for(var c=Array(n+1);++s<n;)c[s]=o[s];return c[n]=e(u),r(t,this,c)}}},IyW0:function(t,n,e){"use strict";var r=e("b5wT"),i=e("tQ6r"),o=e("jFXE").positionX;t.exports=function(t){(function(t){var n=i.buildLayerMatrix(t),e=t.graph().ranksep,o=0;r.forEach(n,(function(n){var i=r.max(r.map(n,(function(n){return t.node(n).height})));r.forEach(n,(function(n){t.node(n).y=o+i/2})),o+=i+e}))})(t=i.asNonCompoundGraph(t)),r.forEach(o(t),(function(n,e){t.node(e).x=n}))}},J2m7:function(t,n,e){var r=e("XKAG")(e("UfWW"));t.exports=r},JC6p:function(t,n,e){var r=e("cq/+"),i=e("7GkX");t.exports=function(t,n){return t&&r(t,n,i)}},JHRd:function(t,n,e){var r=e("Kz5y");t.exports=r.Uint8Array},JHgL:function(t,n,e){var r=e("QkVE");t.exports=function(t){return r(this,t).get(t)}},JRpN:function(t,n,e){var r=e("b5wT"),i=e("tQ6r");t.exports={run:function(t){var n=i.addDummyNode(t,"root",{},"_root"),e=function(t){var n={};return r.forEach(t.children(),(function(e){!function e(i,o){var s=t.children(i);s&&s.length&&r.forEach(s,(function(t){e(t,o+1)})),n[i]=o}(e,1)})),n}(t),o=r.max(r.values(e))-1,s=2*o+1;t.graph().nestingRoot=n,r.forEach(t.edges(),(function(n){t.edge(n).minlen*=s}));var a=function(t){return r.reduce(t.edges(),(function(n,e){return n+t.edge(e).weight}),0)}(t)+1;r.forEach(t.children(),(function(u){!function t(n,e,o,s,a,u,c){var l=n.children(c);if(l.length){var h=i.addBorderNode(n,"_bt"),f=i.addBorderNode(n,"_bb"),d=n.node(c);n.setParent(h,c),d.borderTop=h,n.setParent(f,c),d.borderBottom=f,r.forEach(l,(function(r){t(n,e,o,s,a,u,r);var i=n.node(r),l=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?s:2*s,g=l!==d?1:a-u[c]+1;n.setEdge(h,l,{weight:p,minlen:g,nestingEdge:!0}),n.setEdge(d,f,{weight:p,minlen:g,nestingEdge:!0})})),n.parent(c)||n.setEdge(e,h,{weight:0,minlen:a+u[c]})}else c!==e&&n.setEdge(e,c,{weight:0,minlen:o})}(t,n,s,a,o,e,u)})),t.graph().nodeRankFactor=s},cleanup:function(t){var n=t.graph();t.removeNode(n.nestingRoot),delete n.nestingRoot,r.forEach(t.edges(),(function(n){t.edge(n).nestingEdge&&t.removeEdge(n)}))}}},JSQU:function(t,n,e){var r=e("YESw");t.exports=function(t,n){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=r&&void 0===n?"__lodash_hash_undefined__":n,this}},JTzB:function(t,n,e){var r=e("NykK"),i=e("ExA7");t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},JZM8:function(t,n,e){var r=e("FfPP"),i=e("xs/l")((function(t,n){return null==t?{}:r(t,n)}));t.exports=i},JmpY:function(t,n,e){var r=e("eUgh");t.exports=function(t,n){return r(n,(function(n){return t[n]}))}},Juji:function(t,n){t.exports=function(t,n){return null!=t&&n in Object(t)}},KMkd:function(t,n){t.exports=function(){this.__data__=[],this.size=0}},"KZ/l":function(t,n,e){var r=e("b5wT"),i=e("F9We").Graph,o=e("RYnF");t.exports=function(t,n){if(t.nodeCount()<=1)return[];var e=function(t,n){var e=new i,s=0,a=0;r.forEach(t.nodes(),(function(t){e.setNode(t,{v:t,in:0,out:0})})),r.forEach(t.edges(),(function(t){var r=e.edge(t.v,t.w)||0,i=n(t);e.setEdge(t.v,t.w,r+i),a=Math.max(a,e.node(t.v).out+=i),s=Math.max(s,e.node(t.w).in+=i)}));var c=r.range(a+s+3).map((function(){return new o})),l=s+1;return r.forEach(e.nodes(),(function(t){u(c,l,e.node(t))})),{graph:e,buckets:c,zeroIdx:l}}(t,n||s),c=function(t,n,e){for(var r,i=[],o=n[n.length-1],s=n[0];t.nodeCount();){for(;r=s.dequeue();)a(t,n,e,r);for(;r=o.dequeue();)a(t,n,e,r);if(t.nodeCount())for(var u=n.length-2;u>0;--u)if(r=n[u].dequeue()){i=i.concat(a(t,n,e,r,!0));break}}return i}(e.graph,e.buckets,e.zeroIdx);return r.flatten(r.map(c,(function(n){return t.outEdges(n.v,n.w)})),!0)};var s=r.constant(1);function a(t,n,e,i,o){var s=o?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),a=t.node(r.v);o&&s.push({v:r.v,w:r.w}),a.out-=i,u(n,e,a)})),r.forEach(t.outEdges(i.v),(function(r){var i=t.edge(r),o=t.node(r.w);o.in-=i,u(n,e,o)})),t.removeNode(i.v),s}function u(t,n,e){e.out?e.in?t[e.out-e.in+n].enqueue(e):t[t.length-1].enqueue(e):t[0].enqueue(e)}},KfNM:function(t,n){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},Km3O:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("oQ18"),i=e("P5/a");n.d3adaptor=function(t){return!t||function(t){return t.version&&null!==t.version.match(/^3\./)}(t)?new r.D3StyleLayoutAdaptor:new i.D3StyleLayoutAdaptor(t)}},Kp9H:function(t,n,e){"use strict";var r=e("b5wT"),i=e("5jIi"),o=e("14Cm"),s=e("OOL/"),a=e("iBet"),u=e("1PPP"),c=e("F9We").Graph,l=e("tQ6r");function h(t,n,e){return r.map(n,(function(n){return a(t,n,e)}))}function f(t,n){var e=new c;r.forEach(t,(function(t){var i=t.graph().root,o=s(t,i,e,n);r.forEach(o.vs,(function(n,e){t.node(n).order=e})),u(t,e,o.vs)}))}function d(t,n){r.forEach(n,(function(n){r.forEach(n,(function(n,e){t.node(n).order=e}))}))}t.exports=function(t){var n=l.maxRank(t),e=h(t,r.range(1,n+1),"inEdges"),s=h(t,r.range(n-1,-1,-1),"outEdges"),a=i(t);d(t,a);for(var u,c=Number.POSITIVE_INFINITY,p=0,g=0;g<4;++p,++g){f(p%2?e:s,p%4>=2),a=l.buildLayerMatrix(t);var v=o(t,a);v<c&&(g=0,u=r.cloneDeep(a),c=v)}d(t,u)}},KwMD:function(t,n){t.exports=function(t,n,e,r){for(var i=t.length,o=e+(r?1:-1);r?o--:++o<i;)if(n(t[o],o,t))return o;return-1}},Kz5y:function(t,n,e){var r=e("WFqU"),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},L8xA:function(t,n){t.exports=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e}},LGYb:function(t,n,e){var r=e("1hJj"),i=e("jbM+"),o=e("Xt/L"),s=e("xYSL"),a=e("dQpi"),u=e("rEGp");t.exports=function(t,n,e){var c=-1,l=i,h=t.length,f=!0,d=[],p=d;if(e)f=!1,l=o;else if(h>=200){var g=n?null:a(t);if(g)return u(g);f=!1,l=s,p=new r}else p=n?[]:d;t:for(;++c<h;){var v=t[c],y=n?n(v):v;if(v=e||0!==v?v:0,f&&y==y){for(var m=p.length;m--;)if(p[m]===y)continue t;n&&p.push(y),d.push(v)}else l(p,y,e)||(p!==d&&p.push(y),d.push(v))}return d}},LXxW:function(t,n){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,i=0,o=[];++e<r;){var s=t[e];n(s,e,t)&&(o[i++]=s)}return o}},LcsW:function(t,n,e){var r=e("kekF")(Object.getPrototypeOf,Object);t.exports=r},LsHQ:function(t,n,e){var r=e("EA7m"),i=e("mv/X");t.exports=function(t){return r((function(n,e){var r=-1,o=e.length,s=o>1?e[o-1]:void 0,a=o>2?e[2]:void 0;for(s=t.length>3&&"function"==typeof s?(o--,s):void 0,a&&i(e[0],e[1],a)&&(s=o<3?void 0:s,o=1),n=Object(n);++r<o;){var u=e[r];u&&t(n,u,r,s)}return n}))}},M96O:function(t,n,e){var r;try{r={clone:e("uM7l"),constant:e("cvCv"),each:e("xkGU"),filter:e("k4Da"),has:e("OFL0"),isArray:e("Z0cm"),isEmpty:e("E+oP"),isFunction:e("lSCD"),isUndefined:e("TP7S"),keys:e("7GkX"),map:e("3WF5"),reduce:e("xaJk"),size:e("1iNE"),transform:e("UMpK"),union:e("v8eK"),values:e("P/G1")}}catch(i){}r||(r=window._),t.exports=r},MMmD:function(t,n,e){var r=e("lSCD"),i=e("shjB");t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},MrPd:function(t,n,e){var r=e("hypo"),i=e("ljhN"),o=Object.prototype.hasOwnProperty;t.exports=function(t,n,e){var s=t[n];o.call(t,n)&&i(s,e)&&(void 0!==e||n in t)||r(t,n,e)}},MvSz:function(t,n,e){var r=e("LXxW"),i=e("0ycA"),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols;t.exports=s?function(t){return null==t?[]:(t=Object(t),r(s(t),(function(n){return o.call(t,n)})))}:i},NKxu:function(t,n,e){var r=e("lSCD"),i=e("E2jh"),o=e("GoyQ"),s=e("3Fdi"),a=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=RegExp("^"+u.toString.call(c.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?l:a).test(s(t))}},Npjl:function(t,n){t.exports=function(t,n){return null==t?void 0:t[n]}},NykK:function(t,n,e){var r=e("nmnc"),i=e("AP2z"),o=e("KfNM"),s=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?i(t):o(t)}},O0oS:function(t,n,e){var r=e("Cwc5"),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(n){}}();t.exports=i},O7RO:function(t,n,e){var r=e("CMye"),i=e("7GkX");t.exports=function(t){for(var n=i(t),e=n.length;e--;){var o=n[e],s=t[o];n[e]=[o,s,r(s)]}return n}},OBhP:function(t,n,e){var r=e("fmRc"),i=e("gFfm"),o=e("MrPd"),s=e("WwFo"),a=e("Dw+G"),u=e("5Tg0"),c=e("Q1l4"),l=e("VOtZ"),h=e("EEGq"),f=e("qZTm"),d=e("G6z8"),p=e("QqLw"),g=e("yHx3"),v=e("wrZu"),y=e("+iFO"),m=e("Z0cm"),b=e("DSRE"),x=e("zEVN"),w=e("GoyQ"),_=e("1+5i"),E=e("7GkX"),k={};k["[object Arguments]"]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k["[object Object]"]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k["[object Function]"]=k["[object WeakMap]"]=!1,t.exports=function t(n,e,M,O,N,A){var C,T=1&e,S=2&e,L=4&e;if(M&&(C=N?M(n,O,N,A):M(n)),void 0!==C)return C;if(!w(n))return n;var j=m(n);if(j){if(C=g(n),!T)return c(n,C)}else{var D=p(n),P="[object Function]"==D||"[object GeneratorFunction]"==D;if(b(n))return u(n,T);if("[object Object]"==D||"[object Arguments]"==D||P&&!N){if(C=S||P?{}:y(n),!T)return S?h(n,a(C,n)):l(n,s(C,n))}else{if(!k[D])return N?n:{};C=v(n,D,T)}}A||(A=new r);var G=A.get(n);if(G)return G;A.set(n,C),_(n)?n.forEach((function(r){C.add(t(r,e,M,r,n,A))})):x(n)&&n.forEach((function(r,i){C.set(i,t(r,e,M,i,n,A))}));var F=L?S?d:f:S?keysIn:E,I=j?void 0:F(n);return i(I||n,(function(r,i){I&&(r=n[i=r]),o(C,i,t(r,e,M,i,n,A))})),C}},OFL0:function(t,n,e){var r=e("lvO4"),i=e("4sDh");t.exports=function(t,n){return null!=t&&i(t,n,r)}},"OOL/":function(t,n,e){var r=e("b5wT"),i=e("HzoJ"),o=e("2fNS"),s=e("81LO");t.exports=function t(n,e,a,u){var c=n.children(e),l=n.node(e),h=l?l.borderLeft:void 0,f=l?l.borderRight:void 0,d={};h&&(c=r.filter(c,(function(t){return t!==h&&t!==f})));var p=i(n,c);r.forEach(p,(function(e){if(n.children(e.v).length){var i=t(n,e.v,a,u);d[e.v]=i,r.has(i,"barycenter")&&(s=i,r.isUndefined((o=e).barycenter)?(o.barycenter=s.barycenter,o.weight=s.weight):(o.barycenter=(o.barycenter*o.weight+s.barycenter*s.weight)/(o.weight+s.weight),o.weight+=s.weight))}var o,s}));var g=o(p,a);!function(t,n){r.forEach(t,(function(t){t.vs=r.flatten(t.vs.map((function(t){return n[t]?n[t].vs:t})),!0)}))}(g,d);var v=s(g,u);if(h&&(v.vs=r.flatten([h,v.vs,f],!0),n.predecessors(h).length)){var y=n.node(n.predecessors(h)[0]),m=n.node(n.predecessors(f)[0]);r.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+y.order+m.order)/(v.weight+2),v.weight+=2}return v}},"Of+w":function(t,n,e){var r=e("Cwc5")(e("Kz5y"),"WeakMap");t.exports=r},"P/G1":function(t,n,e){var r=e("JmpY"),i=e("7GkX");t.exports=function(t){return null==t?[]:r(t,i(t))}},"P5/a":function(t,n,e){var r=e("mrSG").__extends;Object.defineProperty(n,"__esModule",{value:!0});var i=e("abOL");n.D3StyleLayoutAdaptor=function(t){function n(n){var e=t.call(this)||this;e.d3Context=n,e.event=n.dispatch(i.EventType[i.EventType.start],i.EventType[i.EventType.tick],i.EventType[i.EventType.end]);var r=e;return e.drag=function(){if(!t)var t=n.drag().subject(i.Layout.dragOrigin).on("start.d3adaptor",i.Layout.dragStart).on("drag.d3adaptor",(function(t){i.Layout.drag(t,n.event),r.resume()})).on("end.d3adaptor",i.Layout.dragEnd);if(!arguments.length)return t;arguments[0].call(t)},e}return r(n,t),n.prototype.trigger=function(t){var n={type:i.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event.call(n.type,n)},n.prototype.kick=function(){var n=this,e=this.d3Context.timer((function(){return t.prototype.tick.call(n)&&e.stop()}))},n.prototype.on=function(t,n){return this.event.on("string"==typeof t?t:i.EventType[t],n),this},n}(i.Layout)},"Q+g8":function(t,n,e){var r=e("gYXE");t.exports=function(t){try{r(t)}catch(n){if(n instanceof r.CycleException)return!1;throw n}return!0}},Q1l4:function(t,n){t.exports=function(t,n){var e=-1,r=t.length;for(n||(n=Array(r));++e<r;)n[e]=t[e];return n}},QIyF:function(t,n,e){var r=e("Kz5y");t.exports=function(){return r.Date.now()}},QcOe:function(t,n,e){var r=e("GoyQ"),i=e("6sVZ"),o=e("7Ix3"),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var n=i(t),e=[];for(var a in t)("constructor"!=a||!n&&s.call(t,a))&&e.push(a);return e}},QkVE:function(t,n,e){var r=e("EpBk");t.exports=function(t,n){var e=t.__data__;return r(n)?e["string"==typeof n?"string":"hash"]:e.map}},QkVN:function(t,n,e){var r=e("+Qka"),i=e("LsHQ")((function(t,n,e){r(t,n,e)}));t.exports=i},QoRX:function(t,n){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}},QqLw:function(t,n,e){var r=e("tadb"),i=e("ebwN"),o=e("HOxn"),s=e("yGk4"),a=e("Of+w"),u=e("NykK"),c=e("3Fdi"),l=c(r),h=c(i),f=c(o),d=c(s),p=c(a),g=u;(r&&"[object DataView]"!=g(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=g(new i)||o&&"[object Promise]"!=g(o.resolve())||s&&"[object Set]"!=g(new s)||a&&"[object WeakMap]"!=g(new a))&&(g=function(t){var n=u(t),e="[object Object]"==n?t.constructor:void 0,r=e?c(e):"";if(r)switch(r){case l:return"[object DataView]";case h:return"[object Map]";case f:return"[object Promise]";case d:return"[object Set]";case p:return"[object WeakMap]"}return n}),t.exports=g},"R/W3":function(t,n,e){var r=e("KwMD"),i=e("2ajD"),o=e("CZoQ");t.exports=function(t,n,e){return n==n?o(t,n,e):r(t,i,e)}},R5Y4:function(t,n){var e=Math.ceil,r=Math.max;t.exports=function(t,n,i,o){for(var s=-1,a=r(e((n-t)/(i||1)),0),u=Array(a);a--;)u[o?a:++s]=t,t+=i;return u}},RBan:function(t,n){t.exports=function(t){var n=null==t?0:t.length;return n?t[n-1]:void 0}},RYnF:function(t,n){function e(){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,n){if("_next"!==t&&"_prev"!==t)return n}t.exports=e,e.prototype.dequeue=function(){var t=this._sentinel,n=t._prev;if(n!==t)return r(n),n},e.prototype.enqueue=function(t){var n=this._sentinel;t._prev&&t._next&&r(t),t._next=n._next,n._next._prev=t,n._next=t,t._prev=n},e.prototype.toString=function(){for(var t=[],n=this._sentinel,e=n._prev;e!==n;)t.push(JSON.stringify(e,i)),e=e._prev;return"["+t.join(", ")+"]"}},Re5C:function(t,n,e){"use strict";var r=e("b5wT"),i=e("tQ6r");t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(n){!function(t,n){var e,r,o,s=n.v,a=t.node(s).rank,u=n.w,c=t.node(u).rank,l=n.name,h=t.edge(n),f=h.labelRank;if(c!==a+1){for(t.removeEdge(n),o=0,++a;a<c;++o,++a)h.points=[],e=i.addDummyNode(t,"edge",r={width:0,height:0,edgeLabel:h,edgeObj:n,rank:a},"_d"),a===f&&(r.width=h.width,r.height=h.height,r.dummy="edge-label",r.labelpos=h.labelpos),t.setEdge(s,e,{weight:h.weight},l),0===o&&t.graph().dummyChains.push(e),s=e;t.setEdge(s,u,{weight:h.weight},l)}}(t,n)}))},undo:function(t){r.forEach(t.graph().dummyChains,(function(n){var e,r=t.node(n),i=r.edgeLabel;for(t.setEdge(r.edgeObj,i);r.dummy;)e=t.successors(n)[0],t.removeNode(n),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),r=t.node(n=e)}))}}},SKAX:function(t,n,e){var r=e("JC6p"),i=e("lQqw")(r);t.exports=i},SfRM:function(t,n,e){var r=e("YESw");t.exports=function(){this.__data__=r?r(null):{},this.size=0}},Sxd8:function(t,n,e){var r=e("ZCgT");t.exports=function(t){var n=r(t),e=n%1;return n==n?e?n-e:n:0}},T1AV:function(t,n,e){var r=e("t2Dn"),i=e("5Tg0"),o=e("yP5f"),s=e("Q1l4"),a=e("+iFO"),u=e("03A+"),c=e("Z0cm"),l=e("3L66"),h=e("DSRE"),f=e("lSCD"),d=e("GoyQ"),p=e("YO3V"),g=e("c6wG"),v=e("itsj"),y=e("jeLo");t.exports=function(t,n,e,m,b,x,w){var _=v(t,e),E=v(n,e),k=w.get(E);if(k)r(t,e,k);else{var M=x?x(_,E,e+"",t,n,w):void 0,O=void 0===M;if(O){var N=c(E),A=!N&&h(E),C=!N&&!A&&g(E);M=E,N||A||C?c(_)?M=_:l(_)?M=s(_):A?(O=!1,M=i(E,!0)):C?(O=!1,M=o(E,!0)):M=[]:p(E)||u(E)?(M=_,u(_)?M=y(_):d(_)&&!f(_)||(M=a(E))):O=!1}O&&(w.set(E,M),b(M,E,m,x,w),w.delete(E)),r(t,e,M)}}},TP7S:function(t,n){t.exports=function(t){return void 0===t}},TYy9:function(t,n,e){var r=e("XGnz");t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},Txda:function(t,n,e){var r=e("3y7U");t.exports=function(t,n){return r(t,n,"post")}},UMpK:function(t,n,e){var r=e("gFfm"),i=e("dTAl"),o=e("JC6p"),s=e("ut/Y"),a=e("LcsW"),u=e("Z0cm"),c=e("DSRE"),l=e("lSCD"),h=e("GoyQ"),f=e("c6wG");t.exports=function(t,n,e){var d=u(t),p=d||c(t)||f(t);if(n=s(n,4),null==e){var g=t&&t.constructor;e=p?d?new g:[]:h(t)&&l(g)?i(a(t)):{}}return(p?r:o)(t,(function(t,r,i){return n(e,t,r,i)})),e}},"UNi/":function(t,n){t.exports=function(t,n){for(var e=-1,r=Array(t);++e<t;)r[e]=n(e);return r}},UfWW:function(t,n,e){var r=e("KwMD"),i=e("ut/Y"),o=e("Sxd8"),s=Math.max;t.exports=function(t,n,e){var a=null==t?0:t.length;if(!a)return-1;var u=null==e?0:o(e);return u<0&&(u=s(a+u,0)),r(t,i(n,3),u)}},V6Ve:function(t,n,e){var r=e("kekF")(Object.keys,Object);t.exports=r},V9xz:function(t,n){t.exports=function(t,n){return t>n}},VJLA:function(t,n,e){var r=e("MrPd"),i=e("1w02");t.exports=function(t,n){return i(t||[],n||[],r)}},VOtZ:function(t,n,e){var r=e("juv8"),i=e("MvSz");t.exports=function(t,n){return r(t,i(t),n)}},VaNO:function(t,n){t.exports=function(t){return this.__data__.has(t)}},WFqU:function(t,n){var e="object"==typeof global&&global&&global.Object===Object&&global;t.exports=e},WPeF:function(t,n){t.exports=function(t,n,e,r,i){return i(t,(function(t,i,o){e=r?(r=!1,t):n(e,t,i,o)})),e}},WjpJ:function(t,n,e){var r=e("HLqC")();t.exports=r},WwFo:function(t,n,e){var r=e("juv8"),i=e("7GkX");t.exports=function(t,n){return t&&r(n,i(n),t)}},XGnz:function(t,n,e){var r=e("CH3K"),i=e("BiGR");t.exports=function t(n,e,o,s,a){var u=-1,c=n.length;for(o||(o=i),a||(a=[]);++u<c;){var l=n[u];e>0&&o(l)?e>1?t(l,e-1,o,s,a):r(a,l):s||(a[a.length]=l)}return a}},XKAG:function(t,n,e){var r=e("ut/Y"),i=e("MMmD"),o=e("7GkX");t.exports=function(t){return function(n,e,s){var a=Object(n);if(!i(n)){var u=r(e,3);n=o(n),e=function(t){return u(a[t],t,a)}}var c=t(n,e,s);return c>-1?a[u?n[c]:c]:void 0}}},XYm9:function(t,n,e){var r=e("+K+b");t.exports=function(t,n){var e=n?r(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}},Xi7e:function(t,n,e){var r=e("KMkd"),i=e("adU4"),o=e("tMB7"),s=e("+6XX"),a=e("Z8oC");function u(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},"Xt/L":function(t,n){t.exports=function(t,n,e){for(var r=-1,i=null==t?0:t.length;++r<i;)if(e(n,t[r]))return!0;return!1}},YESw:function(t,n,e){var r=e("Cwc5")(Object,"create");t.exports=r},YO3V:function(t,n,e){var r=e("NykK"),i=e("LcsW"),o=e("ExA7"),s=Function.prototype,a=Object.prototype,u=s.toString,c=a.hasOwnProperty,l=u.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var n=i(t);if(null===n)return!0;var e=c.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&u.call(e)==l}},Yen4:function(t,n,e){var r=e("M96O"),i=e("lnHP"),o=e("AevD");t.exports=function(t,n){var e,s=new i,a={},u=new o;function c(t){var r=t.v===e?t.w:t.v,i=u.priority(r);if(void 0!==i){var o=n(t);o<i&&(a[r]=e,u.decrease(r,o))}}if(0===t.nodeCount())return s;r.each(t.nodes(),(function(t){u.add(t,Number.POSITIVE_INFINITY),s.setNode(t)})),u.decrease(t.nodes()[0],0);for(var l=!1;u.size()>0;){if(e=u.removeMin(),r.has(a,e))s.setEdge(e,a[e]);else{if(l)throw new Error("Input graph is not connected: "+t);l=!0}t.nodeEdges(e).forEach(c)}return s}},YuTi:function(t,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},Z0cm:function(t,n){var e=Array.isArray;t.exports=e},Z1HP:function(t,n,e){var r=e("ycre"),i=e("quyA"),o=e("q4HE");t.exports=function(t){return i(t)?o(t):r(t)}},Z8oC:function(t,n,e){var r=e("y1pI");t.exports=function(t,n){var e=this.__data__,i=r(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this}},ZCgT:function(t,n,e){var r=e("tLB3");t.exports=function(t){return t?(t=r(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},ZCpW:function(t,n,e){var r=e("lm/5"),i=e("O7RO"),o=e("IOzZ");t.exports=function(t){var n=i(t);return 1==n.length&&n[0][2]?o(n[0][0],n[0][1]):function(e){return e===t||r(e,t,n)}}},ZWtO:function(t,n,e){var r=e("4uTw"),i=e("9Nap");t.exports=function(t,n){for(var e=0,o=(n=r(n,t)).length;null!=t&&e<o;)t=t[i(n[e++])];return e&&e==o?t:void 0}},ZzYp:function(t,n,e){var r=e("M96O");t.exports=function(t,n,e){return function(t,n,e){var r={},i=t.nodes();return i.forEach((function(t){r[t]={},r[t][t]={distance:0},i.forEach((function(n){t!==n&&(r[t][n]={distance:Number.POSITIVE_INFINITY})})),e(t).forEach((function(e){var i=e.v===t?e.w:e.v,o=n(e);r[t][i]={distance:o,predecessor:t}}))})),i.forEach((function(t){var n=r[t];i.forEach((function(e){var o=r[e];i.forEach((function(e){var r=n[e],i=o[e],s=o[t].distance+r.distance;s<i.distance&&(i.distance=s,i.predecessor=r.predecessor)}))}))})),r}(t,n||i,e||function(n){return t.outEdges(n)})};var i=r.constant(1)},abOL:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("EYCo"),i=e("kj44"),o=e("u+pN"),s=e("imqj"),a=e("FJ48"),u=e("3duJ"),c=e("cugb"),l=n.EventType=function(t){return t[t.start=0]="start",t[t.tick=1]="tick",t[t.end=2]="end",t}(n.EventType||{});function h(t){return void 0!==t.leaves||void 0!==t.groups}n.Layout=function(){function t(){var n=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:t.getSourceIndex,getTargetIndex:t.getTargetIndex,setLength:t.setLinkLength,getType:function(t){return"function"==typeof n._linkType?n._linkType(t):0}}}return t.prototype.on=function(t,n){return this.event||(this.event={}),"string"==typeof t?this.event[l[t]]=n:this.event[t]=n,this},t.prototype.trigger=function(t){this.event&&void 0!==this.event[t.type]&&this.event[t.type](t)},t.prototype.kick=function(){for(;!this.tick(););},t.prototype.tick=function(){if(this._alpha<this._threshold)return this._running=!1,this.trigger({type:l.end,alpha:this._alpha=0,stress:this._lastStress}),!0;var t,n,e=this._nodes.length;for(this._descent.locks.clear(),n=0;n<e;++n)(t=this._nodes[n]).fixed&&(void 0!==t.px&&void 0!==t.py||(t.px=t.x,t.py=t.y),this._descent.locks.add(n,[t.px,t.py]));var r=this._descent.rungeKutta();return 0===r?this._alpha=0:void 0!==this._lastStress&&(this._alpha=r),this._lastStress=r,this.updateNodePositions(),this.trigger({type:l.tick,alpha:this._alpha,stress:this._lastStress}),!1},t.prototype.updateNodePositions=function(){for(var t,n=this._descent.x[0],e=this._descent.x[1],r=this._nodes.length;r--;)(t=this._nodes[r]).x=n[r],t.y=e[r]},t.prototype.nodes=function(t){if(!t){if(0===this._nodes.length&&this._links.length>0){var n=0;this._links.forEach((function(t){n=Math.max(n,t.source,t.target)})),this._nodes=new Array(++n);for(var e=0;e<n;++e)this._nodes[e]={}}return this._nodes}return this._nodes=t,this},t.prototype.groups=function(t){var n=this;return t?(this._groups=t,this._rootGroup={},this._groups.forEach((function(t){void 0===t.padding&&(t.padding=1),void 0!==t.leaves&&t.leaves.forEach((function(e,r){"number"==typeof e&&((t.leaves[r]=n._nodes[e]).parent=t)})),void 0!==t.groups&&t.groups.forEach((function(e,r){"number"==typeof e&&((t.groups[r]=n._groups[e]).parent=t)}))})),this._rootGroup.leaves=this._nodes.filter((function(t){return void 0===t.parent})),this._rootGroup.groups=this._groups.filter((function(t){return void 0===t.parent})),this):this._groups},t.prototype.powerGraphGroups=function(t){var n=r.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(n.groups),t(n),this},t.prototype.avoidOverlaps=function(t){return arguments.length?(this._avoidOverlaps=t,this):this._avoidOverlaps},t.prototype.handleDisconnected=function(t){return arguments.length?(this._handleDisconnected=t,this):this._handleDisconnected},t.prototype.flowLayout=function(t,n){return arguments.length||(t="y"),this._directedLinkConstraints={axis:t,getMinSeparation:"number"==typeof n?function(){return n}:n},this},t.prototype.links=function(t){return arguments.length?(this._links=t,this):this._links},t.prototype.constraints=function(t){return arguments.length?(this._constraints=t,this):this._constraints},t.prototype.distanceMatrix=function(t){return arguments.length?(this._distanceMatrix=t,this):this._distanceMatrix},t.prototype.size=function(t){return t?(this._canvasSize=t,this):this._canvasSize},t.prototype.defaultNodeSize=function(t){return t?(this._defaultNodeSize=t,this):this._defaultNodeSize},t.prototype.groupCompactness=function(t){return t?(this._groupCompactness=t,this):this._groupCompactness},t.prototype.linkDistance=function(t){return t?(this._linkDistance="function"==typeof t?t:+t,this._linkLengthCalculator=null,this):this._linkDistance},t.prototype.linkType=function(t){return this._linkType=t,this},t.prototype.convergenceThreshold=function(t){return t?(this._threshold="function"==typeof t?t:+t,this):this._threshold},t.prototype.alpha=function(t){return arguments.length?(t=+t,this._alpha?this._alpha=t>0?t:0:t>0&&(this._running||(this._running=!0,this.trigger({type:l.start,alpha:this._alpha=t}),this.kick())),this):this._alpha},t.prototype.getLinkLength=function(t){return"function"==typeof this._linkDistance?+this._linkDistance(t):this._linkDistance},t.setLinkLength=function(t,n){t.length=n},t.prototype.getLinkType=function(t){return"function"==typeof this._linkType?this._linkType(t):0},t.prototype.symmetricDiffLinkLengths=function(t,n){var e=this;return void 0===n&&(n=1),this.linkDistance((function(n){return t*n.length})),this._linkLengthCalculator=function(){return i.symmetricDiffLinkLengths(e._links,e.linkAccessor,n)},this},t.prototype.jaccardLinkLengths=function(t,n){var e=this;return void 0===n&&(n=1),this.linkDistance((function(n){return t*n.length})),this._linkLengthCalculator=function(){return i.jaccardLinkLengths(e._links,e.linkAccessor,n)},this},t.prototype.start=function(n,e,r,u,c,l){var h=this;void 0===n&&(n=0),void 0===e&&(e=0),void 0===r&&(r=0),void 0===u&&(u=0),void 0===c&&(c=!0),void 0===l&&(l=!0);var f,d=this.nodes().length,p=d+2*this._groups.length,g=this._canvasSize[0],v=this._canvasSize[1],y=new Array(p),m=new Array(p),b=null,x=this._avoidOverlaps;this._nodes.forEach((function(t,n){t.index=n,void 0===t.x&&(t.x=g/2,t.y=v/2),y[n]=t.x,m[n]=t.y})),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?f=this._distanceMatrix:(f=new a.Calculator(p,this._links,t.getSourceIndex,t.getTargetIndex,(function(t){return h.getLinkLength(t)})).DistanceMatrix(),b=o.Descent.createSquareMatrix(p,(function(){return 2})),this._links.forEach((function(t){"number"==typeof t.source&&(t.source=h._nodes[t.source]),"number"==typeof t.target&&(t.target=h._nodes[t.target])})),this._links.forEach((function(n){var e=t.getSourceIndex(n),r=t.getTargetIndex(n);b[e][r]=b[r][e]=n.weight||1})));var w=o.Descent.createSquareMatrix(p,(function(t,n){return f[t][n]}));if(this._rootGroup&&void 0!==this._rootGroup.groups){var _=d;this._groups.forEach((function(t){!function(t,n,e,r){b[t][n]=b[n][t]=e,w[t][n]=w[n][t]=.1}(_,_+1,h._groupCompactness),y[_]=0,m[_++]=0,y[_]=0,m[_++]=0}))}else this._rootGroup={leaves:this._nodes,groups:[]};var E=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,E=E.concat(i.generateDirectedEdgeConstraints(d,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new o.Descent([y,m],w),this._descent.locks.clear(),_=0;_<d;++_){var k=this._nodes[_];k.fixed&&(k.px=k.x,k.py=k.y,this._descent.locks.add(_,[k.x,k.y]))}if(this._descent.threshold=this._threshold,this.initialLayout(n,y,m),E.length>0&&(this._descent.project=new s.Projection(this._nodes,this._groups,this._rootGroup,E).projectFunctions()),this._descent.run(e),this.separateOverlappingComponents(g,v,l),this.avoidOverlaps(x),x&&(this._nodes.forEach((function(t,n){t.x=y[n],t.y=m[n]})),this._descent.project=new s.Projection(this._nodes,this._groups,this._rootGroup,E,!0).projectFunctions(),this._nodes.forEach((function(t,n){y[n]=t.x,m[n]=t.y}))),this._descent.G=b,this._descent.run(r),u){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=d,this._descent.scaleSnapByMaxH=d!=p;var M=o.Descent.createSquareMatrix(p,(function(t,n){return t>=d||n>=d?b[t][n]:0}));this._descent.G=M,this._descent.run(u)}return this.updateNodePositions(),this.separateOverlappingComponents(g,v,l),c?this.resume():this},t.prototype.initialLayout=function(n,e,r){if(this._groups.length>0&&n>0){var i=this._nodes.length,o=this._links.map((function(t){return{source:t.source.index,target:t.target.index}})),s=this._nodes.map((function(t){return{index:t.index}}));this._groups.forEach((function(t,n){s.push({index:t.index=i+n})})),this._groups.forEach((function(t,n){void 0!==t.leaves&&t.leaves.forEach((function(n){return o.push({source:t.index,target:n.index})})),void 0!==t.groups&&t.groups.forEach((function(n){return o.push({source:t.index,target:n.index})}))})),(new t).size(this.size()).nodes(s).links(o).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(n,0,0,0,!1),this._nodes.forEach((function(t){e[t.index]=s[t.index].x,r[t.index]=s[t.index].y}))}else this._descent.run(n)},t.prototype.separateOverlappingComponents=function(t,n,e){var r=this;if(void 0===e&&(e=!0),!this._distanceMatrix&&this._handleDisconnected){var i=this._descent.x[0],o=this._descent.x[1];this._nodes.forEach((function(t,n){t.x=i[n],t.y=o[n]}));var s=c.separateGraphs(this._nodes,this._links);c.applyPacking(s,t,n,this._defaultNodeSize,1,e),this._nodes.forEach((function(t,n){r._descent.x[0][n]=t.x,r._descent.x[1][n]=t.y,t.bounds&&(t.bounds.setXCentre(t.x),t.bounds.setYCentre(t.y))}))}},t.prototype.resume=function(){return this.alpha(.1)},t.prototype.stop=function(){return this.alpha(0)},t.prototype.prepareEdgeRouting=function(t){void 0===t&&(t=0),this._visibilityGraph=new u.TangentVisibilityGraph(this._nodes.map((function(n){return n.bounds.inflate(-t).vertices()})))},t.prototype.routeEdge=function(t,n,e){void 0===n&&(n=5);var r=[],i=new u.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),o={x:t.source.x,y:t.source.y},c={x:t.target.x,y:t.target.y},l=i.addPoint(o,t.source.index),h=i.addPoint(c,t.target.index);i.addEdgeIfVisible(o,c,t.source.index,t.target.index),void 0!==e&&e(i);var f=new a.Calculator(i.V.length,i.E,(function(t){return t.source.id}),(function(t){return t.target.id}),(function(t){return t.length()})).PathFromNodeToNode(l.id,h.id);if(1===f.length||f.length===i.V.length){var d=s.makeEdgeBetween(t.source.innerBounds,t.target.innerBounds,n);r=[d.sourceIntersection,d.arrowStart]}else{for(var p=f.length-2,g=i.V[f[p]].p,v=i.V[f[0]].p,y=(r=[t.source.innerBounds.rayIntersection(g.x,g.y)],p);y>=0;--y)r.push(i.V[f[y]].p);r.push(s.makeEdgeTo(v,t.target.innerBounds,n))}return r},t.getSourceIndex=function(t){return"number"==typeof t.source?t.source:t.source.index},t.getTargetIndex=function(t){return"number"==typeof t.target?t.target:t.target.index},t.linkId=function(n){return t.getSourceIndex(n)+"-"+t.getTargetIndex(n)},t.dragStart=function(n){h(n)?t.storeOffset(n,t.dragOrigin(n)):(t.stopNode(n),n.fixed|=2)},t.stopNode=function(t){t.px=t.x,t.py=t.y},t.storeOffset=function(n,e){void 0!==n.leaves&&n.leaves.forEach((function(n){n.fixed|=2,t.stopNode(n),n._dragGroupOffsetX=n.x-e.x,n._dragGroupOffsetY=n.y-e.y})),void 0!==n.groups&&n.groups.forEach((function(n){return t.storeOffset(n,e)}))},t.dragOrigin=function(t){return h(t)?{x:t.bounds.cx(),y:t.bounds.cy()}:t},t.drag=function(n,e){h(n)?(void 0!==n.leaves&&n.leaves.forEach((function(t){n.bounds.setXCentre(e.x),n.bounds.setYCentre(e.y),t.px=t._dragGroupOffsetX+e.x,t.py=t._dragGroupOffsetY+e.y})),void 0!==n.groups&&n.groups.forEach((function(n){return t.drag(n,e)}))):(n.px=e.x,n.py=e.y)},t.dragEnd=function(n){h(n)?(void 0!==n.leaves&&n.leaves.forEach((function(n){t.dragEnd(n),delete n._dragGroupOffsetX,delete n._dragGroupOffsetY})),void 0!==n.groups&&n.groups.forEach(t.dragEnd)):n.fixed&=-7},t.mouseOver=function(t){t.fixed|=4,t.px=t.x,t.py=t.y},t.mouseOut=function(t){t.fixed&=-5},t}()},adU4:function(t,n,e){var r=e("y1pI"),i=Array.prototype.splice;t.exports=function(t){var n=this.__data__,e=r(n,t);return!(e<0||(e==n.length-1?n.pop():i.call(n,e,1),--this.size,0))}},alwl:function(t,n,e){var r=e("eUgh"),i=e("ut/Y"),o=e("l9OW"),s=e("1LK5"),a=e("sEf8"),u=e("IWTy"),c=e("zZ0H");t.exports=function(t,n,e){var l=-1;n=r(n.length?n:[c],a(i));var h=o(t,(function(t,e,i){return{criteria:r(n,(function(n){return n(t)})),index:++l,value:t}}));return s(h,(function(t,n){return u(t,n,e)}))}},asDA:function(t,n){t.exports=function(t,n,e,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(e=t[++i]);++i<o;)e=n(e,t[i],i,t);return e}},b2z7:function(t,n){var e=/\w*$/;t.exports=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}},b5wT:function(t,n,e){var r;try{r={cloneDeep:e("BkRI"),constant:e("cvCv"),defaults:e("la6v"),each:e("xkGU"),filter:e("k4Da"),find:e("J2m7"),flatten:e("TYy9"),forEach:e("bNQv"),forIn:e("mUg4"),has:e("OFL0"),isUndefined:e("TP7S"),last:e("RBan"),map:e("3WF5"),mapValues:e("noZS"),max:e("q92V"),merge:e("QkVN"),min:e("AE40"),minBy:e("gPaA"),now:e("QIyF"),pick:e("JZM8"),range:e("WjpJ"),reduce:e("xaJk"),sortBy:e("xweI"),uniqueId:e("mNz5"),values:e("P/G1"),zipObject:e("VJLA")}}catch(i){}r||(r=window._),t.exports=r},b80T:function(t,n,e){var r=e("UNi/"),i=e("03A+"),o=e("Z0cm"),s=e("DSRE"),a=e("wJg7"),u=e("c6wG"),c=Object.prototype.hasOwnProperty;t.exports=function(t,n){var e=o(t),l=!e&&i(t),h=!e&&!l&&s(t),f=!e&&!l&&!h&&u(t),d=e||l||h||f,p=d?r(t.length,String):[],g=p.length;for(var v in t)!n&&!c.call(t,v)||d&&("length"==v||h&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||a(v,g))||p.push(v);return p}},bNQv:function(t,n,e){var r=e("gFfm"),i=e("SKAX"),o=e("EwQA"),s=e("Z0cm");t.exports=function(t,n){return(s(t)?r:i)(t,o(n))}},c6Se:function(t,n,e){var r=e("mrSG").__extends;Object.defineProperty(n,"__esModule",{value:!0});var i=e("abOL"),o=function(t){function n(n){var e=t.call(this)||this,r=n;return r.trigger&&(e.trigger=r.trigger),r.kick&&(e.kick=r.kick),r.drag&&(e.drag=r.drag),r.on&&(e.on=r.on),e.dragstart=e.dragStart=i.Layout.dragStart,e.dragend=e.dragEnd=i.Layout.dragEnd,e}return r(n,t),n.prototype.trigger=function(t){},n.prototype.kick=function(){},n.prototype.drag=function(){},n.prototype.on=function(t,n){return this},n}(i.Layout);n.LayoutAdaptor=o,n.adaptor=function(t){return new o(t)}},c6wG:function(t,n,e){var r=e("dD9F"),i=e("sEf8"),o=e("mdPL"),s=o&&o.isTypedArray,a=s?i(s):r;t.exports=a},"cq/+":function(t,n,e){var r=e("mc0g")();t.exports=r},cugb:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={PADDING:10,GOLDEN_SECTION:(1+Math.sqrt(5))/2,FLOAT_EPSILON:1e-4,MAX_INERATIONS:100};n.applyPacking=function(t,n,e,i,o,s){void 0===o&&(o=1),void 0===s&&(s=!0);var a=0,u=0,c=n,l=e,h=(o=void 0!==o?o:1,i=void 0!==i?i:0,0),f=0,d=0,p=0,g=[];function v(t,n){g=[],h=0,f=0,p=u;for(var e=0;e<t.length;e++)y(t[e],n);return Math.abs(h/f-o)}function y(t,n){for(var e=void 0,i=0;i<g.length;i++)if(g[i].space_left>=t.height&&g[i].x+g[i].width+t.width+r.PADDING-n<=r.FLOAT_EPSILON){e=g[i];break}g.push(t),void 0!==e?(t.x=e.x+e.width+r.PADDING,t.y=e.bottom,t.space_left=t.height,t.bottom=t.y,e.space_left-=t.height+r.PADDING,e.bottom+=t.height+r.PADDING):(t.y=p,p+=t.height+r.PADDING,t.x=a,t.bottom=t.y,t.space_left=t.height),t.y+t.height-f>-r.FLOAT_EPSILON&&(f=t.y+t.height-u),t.x+t.width-h>-r.FLOAT_EPSILON&&(h=t.x+t.width-a)}0!=t.length&&(function(t){t.forEach((function(t){var n,e,r,o,s;n=t,e=Number.MAX_VALUE,r=Number.MAX_VALUE,o=0,s=0,n.array.forEach((function(t){var n=void 0!==t.width?t.width:i,a=void 0!==t.height?t.height:i;n/=2,a/=2,o=Math.max(t.x+n,o),e=Math.min(t.x-n,e),s=Math.max(t.y+a,s),r=Math.min(t.y-a,r)})),n.width=o-e,n.height=s-r}))}(t),function(t,n){var e=Number.POSITIVE_INFINITY,i=0;t.sort((function(t,n){return n.height-t.height}));for(var o=p=d=t.reduce((function(t,n){return t.width<n.width?t.width:n.width})),s=g=function(t){var n=0;return t.forEach((function(t){return n+=t.width+r.PADDING})),n}(t),a=0,u=Number.MAX_VALUE,c=Number.MAX_VALUE,l=-1,h=Number.MAX_VALUE,f=Number.MAX_VALUE;h>d||f>r.FLOAT_EPSILON;){if(1!=l){var p=s-(s-o)/r.GOLDEN_SECTION;u=v(t,p)}if(0!=l){var g=o+(s-o)/r.GOLDEN_SECTION;c=v(t,g)}if(h=Math.abs(p-g),f=Math.abs(u-c),u<e&&(e=u,i=p),c<e&&(e=c,i=g),u>c?(o=p,p=g,u=c,l=1):(s=g,g=p,c=u,l=0),a++>100)break}v(t,i)}(t),s&&function(t){t.forEach((function(t){var n={x:0,y:0};t.array.forEach((function(t){n.x+=t.x,n.y+=t.y})),n.x/=t.array.length,n.y/=t.array.length;var e=t.x-(n.x-t.width/2)+c/2-h/2,r=t.y-(n.y-t.height/2)+l/2-f/2;t.array.forEach((function(t){t.x+=e,t.y+=r}))}))}(t))},n.separateGraphs=function(t,n){for(var e={},r={},i=[],o=0,s=0;s<n.length;s++){var a=n[s],u=a.source,c=a.target;r[u.index]?r[u.index].push(c):r[u.index]=[c],r[c.index]?r[c.index].push(u):r[c.index]=[u]}for(s=0;s<t.length;s++){var l=t[s];e[l.index]||h(l,!0)}function h(t,n){if(void 0===e[t.index]){n&&(o++,i.push({array:[]})),e[t.index]=o,i[o-1].array.push(t);var s=r[t.index];if(s)for(var a=0;a<s.length;a++)h(s[a],!1)}}return i}},cvCv:function(t,n){t.exports=function(t){return function(){return t}}},dD9F:function(t,n,e){var r=e("NykK"),i=e("shjB"),o=e("ExA7"),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!s[r(t)]}},dOj1:function(t,n,e){"use strict";var r=e("b5wT"),i=e("GEWS"),o=e("6Ekc").slack,s=e("6Ekc").longestPath,a=e("F9We").alg.preorder,u=e("F9We").alg.postorder,c=e("tQ6r").simplify;function l(t){t=c(t),s(t);var n,e=i(t);for(d(e),h(e,t);n=p(e);)v(e,t,n,g(e,t,n))}function h(t,n){var e=u(t,t.nodes());e=e.slice(0,e.length-1),r.forEach(e,(function(e){!function(t,n,e){var r=t.node(e);t.edge(e,r.parent).cutvalue=f(t,n,e)}(t,n,e)}))}function f(t,n,e){var i=t.node(e).parent,o=!0,s=n.edge(e,i),a=0;return s||(o=!1,s=n.edge(i,e)),a=s.weight,r.forEach(n.nodeEdges(e),(function(r){var s=r.v===e,u=s?r.w:r.v;if(u!==i){var c=s===o,l=n.edge(r).weight;if(a+=c?l:-l,t.hasEdge(e,u)){var h=t.edge(e,u).cutvalue;a+=c?-h:h}}})),a}function d(t,n){arguments.length<2&&(n=t.nodes()[0]),function t(n,e,i,o,s){var a=i,u=n.node(o);return e[o]=!0,r.forEach(n.neighbors(o),(function(s){r.has(e,s)||(i=t(n,e,i,s,o))})),u.low=a,u.lim=i++,s?u.parent=s:delete u.parent,i}(t,{},1,n)}function p(t){return r.find(t.edges(),(function(n){return t.edge(n).cutvalue<0}))}function g(t,n,e){var i=e.v,s=e.w;n.hasEdge(i,s)||(i=e.w,s=e.v);var a=t.node(i),u=t.node(s),c=a,l=!1;a.lim>u.lim&&(c=u,l=!0);var h=r.filter(n.edges(),(function(n){return l===y(0,t.node(n.v),c)&&l!==y(0,t.node(n.w),c)}));return r.minBy(h,(function(t){return o(n,t)}))}function v(t,n,e,i){t.removeEdge(e.v,e.w),t.setEdge(i.v,i.w,{}),d(t),h(t,n),function(t,n){var e=r.find(t.nodes(),(function(t){return!n.node(t).parent})),i=a(t,e);i=i.slice(1),r.forEach(i,(function(e){var r=t.node(e).parent,i=n.edge(e,r),o=!1;i||(i=n.edge(r,e),o=!0),n.node(e).rank=n.node(r).rank+(o?i.minlen:-i.minlen)}))}(t,n)}function y(t,n,e){return e.low<=n.lim&&n.lim<=e.lim}t.exports=l,l.initLowLimValues=d,l.initCutValues=h,l.calcCutValue=f,l.leaveEdge=p,l.enterEdge=g,l.exchangeEdges=v},dQpi:function(t,n,e){var r=e("yGk4"),i=e("vN+2"),o=e("rEGp"),s=r&&1/o(new r([,-0]))[1]==1/0?function(t){return new r(t)}:i;t.exports=s},dTAl:function(t,n,e){var r=e("GoyQ"),i=Object.create,o=function(){function t(){}return function(n){if(!r(n))return{};if(i)return i(n);t.prototype=n;var e=new t;return t.prototype=void 0,e}}();t.exports=o},dt0z:function(t,n,e){var r=e("zoYe");t.exports=function(t){return null==t?"":r(t)}},dunj:function(t,n,e){var r=e("/9aa");t.exports=function(t,n,e){for(var i=-1,o=t.length;++i<o;){var s=t[i],a=n(s);if(null!=a&&(void 0===u?a==a&&!r(a):e(a,u)))var u=a,c=s}return c}},e4Nc:function(t,n,e){var r=e("fGT3"),i=e("k+1r"),o=e("JHgL"),s=e("pSRY"),a=e("H8j4");function u(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},e5cp:function(t,n,e){var r=e("fmRc"),i=e("or5M"),o=e("HDyB"),s=e("seXi"),a=e("QqLw"),u=e("Z0cm"),c=e("DSRE"),l=e("c6wG"),h="[object Object]",f=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,d,p,g){var v=u(t),y=u(n),m=v?"[object Array]":a(t),b=y?"[object Array]":a(n),x=(m="[object Arguments]"==m?h:m)==h,w=(b="[object Arguments]"==b?h:b)==h,_=m==b;if(_&&c(t)){if(!c(n))return!1;v=!0,x=!1}if(_&&!x)return g||(g=new r),v||l(t)?i(t,n,e,d,p,g):o(t,n,m,e,d,p,g);if(!(1&e)){var E=x&&f.call(t,"__wrapped__"),k=w&&f.call(n,"__wrapped__");if(E||k){var M=E?t.value():t,O=k?n.value():n;return g||(g=new r),p(M,O,e,d,g)}}return!!_&&(g||(g=new r),s(t,n,e,d,p,g))}},eUgh:function(t,n){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}},ebwN:function(t,n,e){var r=e("Cwc5")(e("Kz5y"),"Map");t.exports=r},ekgI:function(t,n,e){var r=e("YESw"),i=Object.prototype.hasOwnProperty;t.exports=function(t){var n=this.__data__;return r?void 0!==n[t]:i.call(n,t)}},epwv:function(t,n,e){"use strict";var r=e("b5wT"),i=e("ptHe"),o=e("Re5C"),s=e("C4tZ"),a=e("tQ6r").normalizeRanks,u=e("8c2E"),c=e("tQ6r").removeEmptyRanks,l=e("JRpN"),h=e("Ig6t"),f=e("qGSU"),d=e("Kp9H"),p=e("IyW0"),g=e("tQ6r"),v=e("F9We").Graph;t.exports=function(t,n){var e=n&&n.debugTiming?g.time:g.notime;e("layout",(function(){var n=e(" buildLayoutGraph",(function(){return function(t){var n=new v({multigraph:!0,compound:!0}),e=O(t.graph());return n.setGraph(r.merge({},m,M(e,y),r.pick(e,b))),r.forEach(t.nodes(),(function(e){var i=O(t.node(e));n.setNode(e,r.defaults(M(i,x),w)),n.setParent(e,t.parent(e))})),r.forEach(t.edges(),(function(e){var i=O(t.edge(e));n.setEdge(e,r.merge({},E,M(i,_),r.pick(i,k)))})),n}(t)}));e(" runLayout",(function(){!function(t,n){n(" makeSpaceForEdgeLabels",(function(){!function(t){var n=t.graph();n.ranksep/=2,r.forEach(t.edges(),(function(e){var r=t.edge(e);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===n.rankdir||"BT"===n.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(t)})),n(" removeSelfEdges",(function(){!function(t){r.forEach(t.edges(),(function(n){if(n.v===n.w){var e=t.node(n.v);e.selfEdges||(e.selfEdges=[]),e.selfEdges.push({e:n,label:t.edge(n)}),t.removeEdge(n)}}))}(t)})),n(" acyclic",(function(){i.run(t)})),n(" nestingGraph.run",(function(){l.run(t)})),n(" rank",(function(){s(g.asNonCompoundGraph(t))})),n(" injectEdgeLabelProxies",(function(){!function(t){r.forEach(t.edges(),(function(n){var e=t.edge(n);if(e.width&&e.height){var r=t.node(n.v),i=t.node(n.w);g.addDummyNode(t,"edge-proxy",{rank:(i.rank-r.rank)/2+r.rank,e:n},"_ep")}}))}(t)})),n(" removeEmptyRanks",(function(){c(t)})),n(" nestingGraph.cleanup",(function(){l.cleanup(t)})),n(" normalizeRanks",(function(){a(t)})),n(" assignRankMinMax",(function(){!function(t){var n=0;r.forEach(t.nodes(),(function(e){var i=t.node(e);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,n=r.max(n,i.maxRank))})),t.graph().maxRank=n}(t)})),n(" removeEdgeLabelProxies",(function(){!function(t){r.forEach(t.nodes(),(function(n){var e=t.node(n);"edge-proxy"===e.dummy&&(t.edge(e.e).labelRank=e.rank,t.removeNode(n))}))}(t)})),n(" normalize.run",(function(){o.run(t)})),n(" parentDummyChains",(function(){u(t)})),n(" addBorderSegments",(function(){h(t)})),n(" order",(function(){d(t)})),n(" insertSelfEdges",(function(){!function(t){var n=g.buildLayerMatrix(t);r.forEach(n,(function(n){var e=0;r.forEach(n,(function(n,i){var o=t.node(n);o.order=i+e,r.forEach(o.selfEdges,(function(n){g.addDummyNode(t,"selfedge",{width:n.label.width,height:n.label.height,rank:o.rank,order:i+ ++e,e:n.e,label:n.label},"_se")})),delete o.selfEdges}))}))}(t)})),n(" adjustCoordinateSystem",(function(){f.adjust(t)})),n(" position",(function(){p(t)})),n(" positionSelfEdges",(function(){!function(t){r.forEach(t.nodes(),(function(n){var e=t.node(n);if("selfedge"===e.dummy){var r=t.node(e.e.v),i=r.x+r.width/2,o=r.y,s=e.x-i,a=r.height/2;t.setEdge(e.e,e.label),t.removeNode(n),e.label.points=[{x:i+2*s/3,y:o-a},{x:i+5*s/6,y:o-a},{x:i+s,y:o},{x:i+5*s/6,y:o+a},{x:i+2*s/3,y:o+a}],e.label.x=e.x,e.label.y=e.y}}))}(t)})),n(" removeBorderNodes",(function(){!function(t){r.forEach(t.nodes(),(function(n){if(t.children(n).length){var e=t.node(n),i=t.node(e.borderTop),o=t.node(e.borderBottom),s=t.node(r.last(e.borderLeft)),a=t.node(r.last(e.borderRight));e.width=Math.abs(a.x-s.x),e.height=Math.abs(o.y-i.y),e.x=s.x+e.width/2,e.y=i.y+e.height/2}})),r.forEach(t.nodes(),(function(n){"border"===t.node(n).dummy&&t.removeNode(n)}))}(t)})),n(" normalize.undo",(function(){o.undo(t)})),n(" fixupEdgeLabelCoords",(function(){!function(t){r.forEach(t.edges(),(function(n){var e=t.edge(n);if(r.has(e,"x"))switch("l"!==e.labelpos&&"r"!==e.labelpos||(e.width-=e.labeloffset),e.labelpos){case"l":e.x-=e.width/2+e.labeloffset;break;case"r":e.x+=e.width/2+e.labeloffset}}))}(t)})),n(" undoCoordinateSystem",(function(){f.undo(t)})),n(" translateGraph",(function(){!function(t){var n=Number.POSITIVE_INFINITY,e=0,i=Number.POSITIVE_INFINITY,o=0,s=t.graph(),a=s.marginx||0,u=s.marginy||0;function c(t){var r=t.x,s=t.y,a=t.width,u=t.height;n=Math.min(n,r-a/2),e=Math.max(e,r+a/2),i=Math.min(i,s-u/2),o=Math.max(o,s+u/2)}r.forEach(t.nodes(),(function(n){c(t.node(n))})),r.forEach(t.edges(),(function(n){var e=t.edge(n);r.has(e,"x")&&c(e)})),n-=a,i-=u,r.forEach(t.nodes(),(function(e){var r=t.node(e);r.x-=n,r.y-=i})),r.forEach(t.edges(),(function(e){var o=t.edge(e);r.forEach(o.points,(function(t){t.x-=n,t.y-=i})),r.has(o,"x")&&(o.x-=n),r.has(o,"y")&&(o.y-=i)})),s.width=e-n+a,s.height=o-i+u}(t)})),n(" assignNodeIntersects",(function(){!function(t){r.forEach(t.edges(),(function(n){var e,r,i=t.edge(n),o=t.node(n.v),s=t.node(n.w);i.points?(e=i.points[0],r=i.points[i.points.length-1]):(i.points=[],e=s,r=o),i.points.unshift(g.intersectRect(o,e)),i.points.push(g.intersectRect(s,r))}))}(t)})),n(" reversePoints",(function(){!function(t){r.forEach(t.edges(),(function(n){var e=t.edge(n);e.reversed&&e.points.reverse()}))}(t)})),n(" acyclic.undo",(function(){i.undo(t)}))}(n,e)})),e(" updateInputGraph",(function(){!function(t,n){r.forEach(t.nodes(),(function(e){var r=t.node(e),i=n.node(e);r&&(r.x=i.x,r.y=i.y,n.children(e).length&&(r.width=i.width,r.height=i.height))})),r.forEach(t.edges(),(function(e){var i=t.edge(e),o=n.edge(e);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)})),t.graph().width=n.graph().width,t.graph().height=n.graph().height}(t,n)}))}))};var y=["nodesep","edgesep","ranksep","marginx","marginy"],m={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b=["acyclicer","ranker","rankdir","align"],x=["width","height"],w={width:0,height:0},_=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["labelpos"];function M(t,n){return r.mapValues(r.pick(t,n),Number)}function O(t){var n={};return r.forEach(t,(function(t,e){n[e.toLowerCase()]=t})),n}},fGT3:function(t,n,e){var r=e("4kuk"),i=e("Xi7e"),o=e("ebwN");t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},"fGn/":function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("imqj"),i=e("rYy2"),o=e("FJ48"),s=function(){return function(t,n,e){this.id=t,this.rect=n,this.children=e,this.leaf=void 0===e||0===e.length}}();n.NodeWrapper=s;var a=function(){return function(t,n,e,r,i){void 0===r&&(r=null),void 0===i&&(i=null),this.id=t,this.x=n,this.y=e,this.node=r,this.line=i}}();n.Vert=a;var u=function(){function t(n,e){this.s=n,this.t=e;var r=t.findMatch(n,e),i=e.slice(0).reverse(),o=t.findMatch(n,i);r.length>=o.length?(this.length=r.length,this.si=r.si,this.ti=r.ti,this.reversed=!1):(this.length=o.length,this.si=o.si,this.ti=e.length-o.ti-o.length,this.reversed=!0)}return t.findMatch=function(t,n){for(var e=t.length,r=n.length,i={length:0,si:-1,ti:-1},o=new Array(e),s=0;s<e;s++){o[s]=new Array(r);for(var a=0;a<r;a++)if(t[s]===n[a]){var u=o[s][a]=0===s||0===a?1:o[s-1][a-1]+1;u>i.length&&(i.length=u,i.si=s-u+1,i.ti=a-u+1)}else o[s][a]=0}return i},t.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},t}();n.LongestCommonSubsequence=u,n.GridRouter=function(){function t(t,n,e){var i=this;void 0===e&&(e=12),this.originalnodes=t,this.groupPadding=e,this.leaves=null,this.nodes=t.map((function(t,e){return new s(e,n.getBounds(t),n.getChildren(t))})),this.leaves=this.nodes.filter((function(t){return t.leaf})),this.groups=this.nodes.filter((function(t){return!t.leaf})),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach((function(t){return t.children.forEach((function(n){return i.nodes[n].parent=t}))})),this.root={children:[]},this.nodes.forEach((function(t){void 0===t.parent&&(t.parent=i.root,i.root.children.push(t.id)),t.ports=[]})),this.backToFront=this.nodes.slice(0),this.backToFront.sort((function(t,n){return i.getDepth(t)-i.getDepth(n)})),this.backToFront.slice(0).reverse().filter((function(t){return!t.leaf})).forEach((function(t){var n=r.Rectangle.empty();t.children.forEach((function(t){return n=n.union(i.nodes[t].rect)})),t.rect=n.inflate(i.groupPadding)}));var o=this.midPoints(this.cols.map((function(t){return t.pos}))),u=this.midPoints(this.rows.map((function(t){return t.pos}))),c=o[0],l=o[o.length-1],h=u[0],f=u[u.length-1],d=this.rows.map((function(t){return{x1:c,x2:l,y1:t.pos,y2:t.pos}})).concat(u.map((function(t){return{x1:c,x2:l,y1:t,y2:t}}))),p=this.cols.map((function(t){return{x1:t.pos,x2:t.pos,y1:h,y2:f}})).concat(o.map((function(t){return{x1:t,x2:t,y1:h,y2:f}}))),g=d.concat(p);g.forEach((function(t){return t.verts=[]})),this.verts=[],this.edges=[],d.forEach((function(t){return p.forEach((function(n){var e=new a(i.verts.length,n.x1,t.y1);t.verts.push(e),n.verts.push(e),i.verts.push(e);for(var r=i.backToFront.length;r-- >0;){var o=i.backToFront[r],s=o.rect,u=Math.abs(e.x-s.cx()),c=Math.abs(e.y-s.cy());if(u<s.width()/2&&c<s.height()/2){e.node=o;break}}}))})),g.forEach((function(t,n){i.nodes.forEach((function(n,e){n.rect.lineIntersections(t.x1,t.y1,t.x2,t.y2).forEach((function(e,r){var o=new a(i.verts.length,e.x,e.y,n,t);i.verts.push(o),t.verts.push(o),n.ports.push(o)}))}));var e=Math.abs(t.y1-t.y2)<.1,r=function(t,n){return e?n.x-t.x:n.y-t.y};t.verts.sort(r);for(var o=1;o<t.verts.length;o++){var s=t.verts[o-1],u=t.verts[o];s.node&&s.node===u.node&&s.node.leaf||i.edges.push({source:s.id,target:u.id,length:Math.abs(r(s,u))})}}))}return t.prototype.avg=function(t){return t.reduce((function(t,n){return t+n}))/t.length},t.prototype.getGridLines=function(t){for(var n=[],e=this.leaves.slice(0,this.leaves.length);e.length>0;){var r=e.filter((function(n){return n.rect["overlap"+t.toUpperCase()](e[0].rect)})),i={nodes:r,pos:this.avg(r.map((function(n){return n.rect["c"+t]()})))};n.push(i),i.nodes.forEach((function(t){return e.splice(e.indexOf(t),1)}))}return n.sort((function(t,n){return t.pos-n.pos})),n},t.prototype.getDepth=function(t){for(var n=0;t.parent!==this.root;)n++,t=t.parent;return n},t.prototype.midPoints=function(t){for(var n=t[1]-t[0],e=[t[0]-n/2],r=1;r<t.length;r++)e.push((t[r]+t[r-1])/2);return e.push(t[t.length-1]+n/2),e},t.prototype.findLineage=function(t){var n=[t];do{n.push(t=t.parent)}while(t!==this.root);return n.reverse()},t.prototype.findAncestorPathBetween=function(t,n){for(var e=this.findLineage(t),r=this.findLineage(n),i=0;e[i]===r[i];)i++;return{commonAncestor:e[i-1],lineages:e.slice(i).concat(r.slice(i))}},t.prototype.siblingObstacles=function(t,n){var e=this,r=this.findAncestorPathBetween(t,n),i={};r.lineages.forEach((function(t){return i[t.id]={}}));var o=r.commonAncestor.children.filter((function(t){return!(t in i)}));return r.lineages.filter((function(t){return t.parent!==r.commonAncestor})).forEach((function(t){return o=o.concat(t.parent.children.filter((function(n){return n!==t.id})))})),o.map((function(t){return e.nodes[t]}))},t.getSegmentSets=function(t,n,e){for(var r=[],i=0;i<t.length;i++)for(var o=t[i],s=0;s<o.length;s++)(l=o[s]).edgeid=i,l.i=s,Math.abs(l[1][n]-l[0][n])<.1&&r.push(l);r.sort((function(t,e){return t[0][n]-e[0][n]}));for(var a=[],u=null,c=0;c<r.length;c++){var l=r[c];(!u||Math.abs(l[0][n]-u.pos)>.1)&&a.push(u={pos:l[0][n],segments:[]}),u.segments.push(l)}return a},t.nudgeSegs=function(t,n,e,r,o,s){var a=r.length;if(!(a<=1)){for(var u=r.map((function(n){return new i.Variable(n[0][t])})),c=[],l=0;l<a;l++)for(var h=0;h<a;h++)if(l!==h){var f=r[l],d=f.edgeid,p=r[h].edgeid,g=-1,v=-1;"x"==t?o(d,p)&&(f[0][n]<f[1][n]?(g=h,v=l):(g=l,v=h)):o(d,p)&&(f[0][n]<f[1][n]?(g=l,v=h):(g=h,v=l)),g>=0&&c.push(new i.Constraint(u[g],u[v],s))}new i.Solver(u,c).solve(),u.forEach((function(n,i){var o=r[i],s=n.position();o[0][t]=o[1][t]=s;var a=e[o.edgeid];o.i>0&&(a[o.i-1][1][t]=s),o.i<a.length-1&&(a[o.i+1][0][t]=s)}))}},t.nudgeSegments=function(n,e,r,i,o){for(var s=t.getSegmentSets(n,e,r),a=0;a<s.length;a++){for(var u=s[a],c=[],l=0;l<u.segments.length;l++){var h=u.segments[l];c.push({type:0,s:h,pos:Math.min(h[0][r],h[1][r])}),c.push({type:1,s:h,pos:Math.max(h[0][r],h[1][r])})}c.sort((function(t,n){return t.pos-n.pos+t.type-n.type}));var f=[],d=0;c.forEach((function(s){0===s.type?(f.push(s.s),d++):d--,0==d&&(t.nudgeSegs(e,r,n,f,i,o),f=[])}))}},t.prototype.routeEdges=function(n,e,r,i){var o=this,s=n.map((function(t){return o.route(r(t),i(t))})),a=t.orderEdges(s),u=s.map((function(n){return t.makeSegments(n)}));return t.nudgeSegments(u,"x","y",a,e),t.nudgeSegments(u,"y","x",a,e),t.unreverseEdges(u,s),u},t.unreverseEdges=function(t,n){t.forEach((function(t,e){n[e].reversed&&(t.reverse(),t.forEach((function(t){t.reverse()})))}))},t.angleBetween2Lines=function(t,n){var e=Math.atan2(t[0].y-t[1].y,t[0].x-t[1].x),r=Math.atan2(n[0].y-n[1].y,n[0].x-n[1].x),i=e-r;return(i>Math.PI||i<-Math.PI)&&(i=r-e),i},t.isLeft=function(t,n,e){return(n.x-t.x)*(e.y-t.y)-(n.y-t.y)*(e.x-t.x)<=0},t.getOrder=function(t){for(var n={},e=0;e<t.length;e++){var r=t[e];void 0===n[r.l]&&(n[r.l]={}),n[r.l][r.r]=!0}return function(t,e){return void 0!==n[t]&&n[t][e]}},t.orderEdges=function(n){for(var e=[],r=0;r<n.length-1;r++)for(var i=r+1;i<n.length;i++){var o,s,a,c=n[r],l=n[i],h=new u(c,l);0!==h.length&&(h.reversed&&(l.reverse(),l.reversed=!0,h=new u(c,l)),(h.si<=0||h.ti<=0)&&(h.si+h.length>=c.length||h.ti+h.length>=l.length)?e.push({l:r,r:i}):(h.si+h.length>=c.length||h.ti+h.length>=l.length?(o=c[h.si+1],a=c[h.si-1],s=l[h.ti-1]):(o=c[h.si+h.length-2],s=c[h.si+h.length],a=l[h.ti+h.length]),t.isLeft(o,s,a)?e.push({l:i,r}):e.push({l:r,r:i})))}return t.getOrder(e)},t.makeSegments=function(t){function n(t){return{x:t.x,y:t.y}}for(var e=function(t,n,e){return Math.abs((n.x-t.x)*(e.y-t.y)-(n.y-t.y)*(e.x-t.x))<.001},r=[],i=n(t[0]),o=1;o<t.length;o++){var s=n(t[o]),a=o<t.length-1?t[o+1]:null;a&&e(i,s,a)||(r.push([i,s]),i=s)}return r},t.prototype.route=function(t,n){var e=this,r=this.nodes[t],i=this.nodes[n];this.obstacles=this.siblingObstacles(r,i);var s={};this.obstacles.forEach((function(t){return s[t.id]=t})),this.passableEdges=this.edges.filter((function(t){var n=e.verts[t.source],r=e.verts[t.target];return!(n.node&&n.node.id in s||r.node&&r.node.id in s)}));for(var a=1;a<r.ports.length;a++)this.passableEdges.push({source:r.ports[0].id,target:r.ports[a].id,length:0});for(a=1;a<i.ports.length;a++)this.passableEdges.push({source:i.ports[0].id,target:i.ports[a].id,length:0});var u=new o.Calculator(this.verts.length,this.passableEdges,(function(t){return t.source}),(function(t){return t.target}),(function(t){return t.length})).PathFromNodeToNodeWithPrevCost(r.ports[0].id,i.ports[0].id,(function(t,n,o){var s=e.verts[t],a=e.verts[n],u=e.verts[o],c=Math.abs(u.x-s.x),l=Math.abs(u.y-s.y);return s.node===r&&s.node===a.node||a.node===i&&a.node===u.node?0:c>1&&l>1?1e3:0})).reverse().map((function(t){return e.verts[t]}));return u.push(this.nodes[i.id].ports[0]),u.filter((function(t,n){return!(n<u.length-1&&u[n+1].node===r&&t.node===r||n>0&&t.node===i&&u[n-1].node===i)}))},t.getRoutePath=function(n,e,r,i){var o,s,a,u,c,l={routepath:"M "+n[0][0].x+" "+n[0][0].y+" ",arrowpath:""};if(n.length>1)for(var h=0;h<n.length;h++){var f=(s=(o=n[h])[1].x)-o[0].x,d=(a=o[1].y)-o[0].y;if(h<n.length-1){Math.abs(f)>0?s-=f/Math.abs(f)*e:a-=d/Math.abs(d)*e,l.routepath+="L "+s+" "+a+" ";var p=n[h+1],g=p[0].x,v=p[0].y;f=p[1].x-g,d=p[1].y-v;var y,m,b=t.angleBetween2Lines(o,p)<0?1:0;Math.abs(f)>0?(y=g+f/Math.abs(f)*e,m=v):(y=g,m=v+d/Math.abs(d)*e);var x=Math.abs(y-s),w=Math.abs(m-a);l.routepath+="A "+x+" "+w+" 0 0 "+b+" "+y+" "+m+" "}else{var _=[s,a];Math.abs(f)>0?(u=[s-=f/Math.abs(f)*i,a+r],c=[s,a-r]):(u=[s+r,a-=d/Math.abs(d)*i],c=[s-r,a]),l.routepath+="L "+s+" "+a+" ",i>0&&(l.arrowpath="M "+_[0]+" "+_[1]+" L "+u[0]+" "+u[1]+" L "+c[0]+" "+c[1])}}else f=(s=(o=n[0])[1].x)-o[0].x,d=(a=o[1].y)-o[0].y,_=[s,a],Math.abs(f)>0?(u=[s-=f/Math.abs(f)*i,a+r],c=[s,a-r]):(u=[s+r,a-=d/Math.abs(d)*i],c=[s-r,a]),l.routepath+="L "+s+" "+a+" ",i>0&&(l.arrowpath="M "+_[0]+" "+_[1]+" L "+u[0]+" "+u[1]+" L "+c[0]+" "+c[1]);return l},t}()},"fR/l":function(t,n,e){var r=e("CH3K"),i=e("Z0cm");t.exports=function(t,n,e){var o=n(t);return i(t)?o:r(o,e(t))}},fmRc:function(t,n,e){var r=e("Xi7e"),i=e("77Zs"),o=e("L8xA"),s=e("gCq4"),a=e("VaNO"),u=e("0Cz8");function c(t){var n=this.__data__=new r(t);this.size=n.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=s,c.prototype.has=a,c.prototype.set=u,t.exports=c},ftKO:function(t,n){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},gCq4:function(t,n){t.exports=function(t){return this.__data__.get(t)}},gFfm:function(t,n){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length;++e<r&&!1!==n(t[e],e,t););return t}},gPaA:function(t,n,e){var r=e("dunj"),i=e("ut/Y"),o=e("jSBL");t.exports=function(t,n){return t&&t.length?r(t,i(n,2),o):void 0}},gYXE:function(t,n,e){var r=e("M96O");function i(t){var n={},e={},i=[];if(r.each(t.sinks(),(function s(a){if(r.has(e,a))throw new o;r.has(n,a)||(e[a]=!0,n[a]=!0,r.each(t.predecessors(a),s),delete e[a],i.push(a))})),r.size(n)!==t.nodeCount())throw new o;return i}function o(){}t.exports=i,i.CycleException=o,o.prototype=new Error},heNW:function(t,n){t.exports=function(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}},hgQt:function(t,n,e){var r=e("Juji"),i=e("4sDh");t.exports=function(t,n){return null!=t&&i(t,n,r)}},hypo:function(t,n,e){var r=e("O0oS");t.exports=function(t,n,e){"__proto__"==n&&r?r(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}},iBet:function(t,n,e){var r=e("b5wT"),i=e("F9We").Graph;t.exports=function(t,n,e){var o=function(t){for(var n;t.hasNode(n=r.uniqueId("_root")););return n}(t),s=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(n){return t.node(n)}));return r.forEach(t.nodes(),(function(i){var a=t.node(i),u=t.parent(i);(a.rank===n||a.minRank<=n&&n<=a.maxRank)&&(s.setNode(i),s.setParent(i,u||o),r.forEach(t[e](i),(function(n){var e=n.v===i?n.w:n.v,o=s.edge(e,i),a=r.isUndefined(o)?0:o.weight;s.setEdge(e,i,{weight:t.edge(n).weight+a})})),r.has(a,"minRank")&&s.setNode(i,{borderLeft:a.borderLeft[n],borderRight:a.borderRight[n]}))})),s}},idmN:function(t,n,e){var r=e("ZWtO"),i=e("FZoo"),o=e("4uTw");t.exports=function(t,n,e){for(var s=-1,a=n.length,u={};++s<a;){var c=n[s],l=r(t,c);e(l,c)&&i(u,o(c,t),l)}return u}},imqj:function(t,n,e){var r=e("mrSG").__extends;Object.defineProperty(n,"__esModule",{value:!0});var i=e("rYy2"),o=e("/lCR");function s(t){return t.bounds=void 0!==t.leaves?t.leaves.reduce((function(t,n){return n.bounds.union(t)}),a.empty()):a.empty(),void 0!==t.groups&&(t.bounds=t.groups.reduce((function(t,n){return s(n).union(t)}),t.bounds)),t.bounds=t.bounds.inflate(t.padding),t.bounds}n.computeGroupBounds=s;var a=function(){function t(t,n,e,r){this.x=t,this.X=n,this.y=e,this.Y=r}return t.empty=function(){return new t(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},t.prototype.cx=function(){return(this.x+this.X)/2},t.prototype.cy=function(){return(this.y+this.Y)/2},t.prototype.overlapX=function(t){var n=this.cx(),e=t.cx();return n<=e&&t.x<this.X?this.X-t.x:e<=n&&this.x<t.X?t.X-this.x:0},t.prototype.overlapY=function(t){var n=this.cy(),e=t.cy();return n<=e&&t.y<this.Y?this.Y-t.y:e<=n&&this.y<t.Y?t.Y-this.y:0},t.prototype.setXCentre=function(t){var n=t-this.cx();this.x+=n,this.X+=n},t.prototype.setYCentre=function(t){var n=t-this.cy();this.y+=n,this.Y+=n},t.prototype.width=function(){return this.X-this.x},t.prototype.height=function(){return this.Y-this.y},t.prototype.union=function(n){return new t(Math.min(this.x,n.x),Math.max(this.X,n.X),Math.min(this.y,n.y),Math.max(this.Y,n.Y))},t.prototype.lineIntersections=function(n,e,r,i){for(var o=[[this.x,this.y,this.X,this.y],[this.X,this.y,this.X,this.Y],[this.X,this.Y,this.x,this.Y],[this.x,this.Y,this.x,this.y]],s=[],a=0;a<4;++a){var u=t.lineIntersection(n,e,r,i,o[a][0],o[a][1],o[a][2],o[a][3]);null!==u&&s.push({x:u.x,y:u.y})}return s},t.prototype.rayIntersection=function(t,n){var e=this.lineIntersections(this.cx(),this.cy(),t,n);return e.length>0?e[0]:null},t.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},t.lineIntersection=function(t,n,e,r,i,o,s,a){var u=e-t,c=s-i,l=r-n,h=a-o,f=h*u-c*l;if(0==f)return null;var d=t-i,p=n-o,g=(c*p-h*d)/f,v=(u*p-l*d)/f;return g>=0&&g<=1&&v>=0&&v<=1?{x:t+g*u,y:n+g*l}:null},t.prototype.inflate=function(n){return new t(this.x-n,this.X+n,this.y-n,this.Y+n)},t}();n.Rectangle=a,n.makeEdgeBetween=function(t,n,e){var r=t.rayIntersection(n.cx(),n.cy())||{x:t.cx(),y:t.cy()},i=n.rayIntersection(t.cx(),t.cy())||{x:n.cx(),y:n.cy()},o=i.x-r.x,s=i.y-r.y,a=Math.sqrt(o*o+s*s),u=a-e;return{sourceIntersection:r,targetIntersection:i,arrowStart:{x:r.x+u*o/a,y:r.y+u*s/a}}},n.makeEdgeTo=function(t,n,e){var r=n.rayIntersection(t.x,t.y);r||(r={x:n.cx(),y:n.cy()});var i=r.x-t.x,o=r.y-t.y,s=Math.sqrt(i*i+o*o);return{x:r.x-e*i/s,y:r.y-e*o/s}};var u=function(){return function(t,n,e){this.v=t,this.r=n,this.pos=e,this.prev=h(),this.next=h()}}(),c=function(){return function(t,n,e){this.isOpen=t,this.v=n,this.pos=e}}();function l(t,n){return t.pos>n.pos?1:t.pos<n.pos?-1:t.isOpen?-1:n.isOpen?1:0}function h(){return new o.RBTree((function(t,n){return t.pos-n.pos}))}var f={getCentre:function(t){return t.cx()},getOpen:function(t){return t.y},getClose:function(t){return t.Y},getSize:function(t){return t.width()},makeRect:function(t,n,e,r){return new a(e-r/2,e+r/2,t,n)},findNeighbours:function(t,n){var e=function(e,r){for(var i,o=n.findIter(t);null!==(i=o[e]());){var s=i.r.overlapX(t.r);if((s<=0||s<=i.r.overlapY(t.r))&&(t[e].insert(i),i[r].insert(t)),s<=0)break}};e("next","prev"),e("prev","next")}},d={getCentre:function(t){return t.cy()},getOpen:function(t){return t.x},getClose:function(t){return t.X},getSize:function(t){return t.height()},makeRect:function(t,n,e,r){return new a(t,n,e-r/2,e+r/2)},findNeighbours:function(t,n){var e=function(e,r){var i=n.findIter(t)[e]();null!==i&&i.r.overlapX(t.r)>0&&(t[e].insert(i),i[r].insert(t))};e("next","prev"),e("prev","next")}};function p(t,n,e,r){void 0===r&&(r=!1);var i=t.padding,o=void 0!==t.groups?t.groups.length:0,s=void 0!==t.leaves?t.leaves.length:0,a=o?t.groups.reduce((function(t,r){return t.concat(p(r,n,e,!0))}),[]):[],u=(r?2:0)+s+o,c=new Array(u),l=new Array(u),h=0,f=function(t,n){l[h]=t,c[h++]=n};if(r){var d=t.bounds,v=n.getCentre(d),y=n.getSize(d)/2,m=n.getOpen(d),b=n.getClose(d),x=v-y+i/2,w=v+y-i/2;t.minVar.desiredPosition=x,f(n.makeRect(m,b,x,i),t.minVar),t.maxVar.desiredPosition=w,f(n.makeRect(m,b,w,i),t.maxVar)}s&&t.leaves.forEach((function(t){return f(t.bounds,t.variable)})),o&&t.groups.forEach((function(t){var e=t.bounds;f(n.makeRect(n.getOpen(e),n.getClose(e),n.getCentre(e),n.getSize(e)),t.minVar)}));var _=g(l,c,n,e);return o&&(c.forEach((function(t){t.cOut=[],t.cIn=[]})),_.forEach((function(t){t.left.cOut.push(t),t.right.cIn.push(t)})),t.groups.forEach((function(t){var e=(t.padding-n.getSize(t.bounds))/2;t.minVar.cIn.forEach((function(t){return t.gap+=e})),t.minVar.cOut.forEach((function(n){n.left=t.maxVar,n.gap+=e}))}))),a.concat(_)}function g(t,n,e,r){var o,s=t.length,a=2*s;console.assert(n.length>=s);var f=new Array(a);for(o=0;o<s;++o){var d=t[o],p=new u(n[o],d,e.getCentre(d));f[o]=new c(!0,p,e.getOpen(d)),f[o+s]=new c(!1,p,e.getClose(d))}f.sort(l);var g=new Array,v=h();for(o=0;o<a;++o){var y=f[o];if(p=y.v,y.isOpen)v.insert(p),e.findNeighbours(p,v);else{v.remove(p);var m=function(t,n){var o=(e.getSize(t.r)+e.getSize(n.r))/2+r;g.push(new i.Constraint(t.v,n.v,o))},b=function(t,n,e){for(var r,i=p[t].iterator();null!==(r=i[t]());)e(r,p),r[n].remove(p)};b("prev","next",(function(t,n){return m(t,n)})),b("next","prev",(function(t,n){return m(n,t)}))}}return console.assert(0===v.size),g}function v(t,n){return g(t,n,f,1e-6)}function y(t,n){return g(t,n,d,1e-6)}function m(t){return p(t,f,1e-6)}function b(t){return p(t,d,1e-6)}n.generateXConstraints=v,n.generateYConstraints=y,n.generateXGroupConstraints=m,n.generateYGroupConstraints=b,n.removeOverlaps=function(t){var n=t.map((function(t){return new i.Variable(t.cx())})),e=v(t,n),r=new i.Solver(n,e);r.solve(),n.forEach((function(n,e){return t[e].setXCentre(n.position())})),n=t.map((function(t){return new i.Variable(t.cy())})),e=y(t,n),(r=new i.Solver(n,e)).solve(),n.forEach((function(n,e){return t[e].setYCentre(n.position())}))};var x=function(t){function n(n,e){var r=t.call(this,0,e)||this;return r.index=n,r}return r(n,t),n}(i.Variable);n.IndexedVariable=x,n.Projection=function(){function t(t,n,e,r,i){var o=this;if(void 0===e&&(e=null),void 0===r&&(r=null),void 0===i&&(i=!1),this.nodes=t,this.groups=n,this.rootGroup=e,this.avoidOverlaps=i,this.variables=t.map((function(t,n){return t.variable=new x(n,1)})),r&&this.createConstraints(r),i&&e&&void 0!==e.groups){t.forEach((function(t){if(t.width&&t.height){var n=t.width/2,e=t.height/2;t.bounds=new a(t.x-n,t.x+n,t.y-e,t.y+e)}else t.bounds=new a(t.x,t.x,t.y,t.y)})),s(e);var u=t.length;n.forEach((function(t){o.variables[u]=t.minVar=new x(u++,void 0!==t.stiffness?t.stiffness:.01),o.variables[u]=t.maxVar=new x(u++,void 0!==t.stiffness?t.stiffness:.01)}))}}return t.prototype.createSeparation=function(t){return new i.Constraint(this.nodes[t.left].variable,this.nodes[t.right].variable,t.gap,void 0!==t.equality&&t.equality)},t.prototype.makeFeasible=function(t){var n=this;if(this.avoidOverlaps){var e="x",r="width";"x"===t.axis&&(e="y",r="height");var i=t.offsets.map((function(t){return n.nodes[t.node]})).sort((function(t,n){return t[e]-n[e]})),o=null;i.forEach((function(t){if(o){var n=o[e]+o[r];n>t[e]&&(t[e]=n)}o=t}))}},t.prototype.createAlignment=function(t){var n=this,e=this.nodes[t.offsets[0].node].variable;this.makeFeasible(t);var r="x"===t.axis?this.xConstraints:this.yConstraints;t.offsets.slice(1).forEach((function(t){r.push(new i.Constraint(e,n.nodes[t.node].variable,t.offset,!0))}))},t.prototype.createConstraints=function(t){var n=this,e=function(t){return void 0===t.type||"separation"===t.type};this.xConstraints=t.filter((function(t){return"x"===t.axis&&e(t)})).map((function(t){return n.createSeparation(t)})),this.yConstraints=t.filter((function(t){return"y"===t.axis&&e(t)})).map((function(t){return n.createSeparation(t)})),t.filter((function(t){return"alignment"===t.type})).forEach((function(t){return n.createAlignment(t)}))},t.prototype.setupVariablesAndBounds=function(t,n,e,r){this.nodes.forEach((function(i,o){i.fixed?(i.variable.weight=i.fixedWeight?i.fixedWeight:1e3,e[o]=r(i)):i.variable.weight=1;var s=(i.width||0)/2,u=(i.height||0)/2,c=t[o],l=n[o];i.bounds=new a(c-s,c+s,l-u,l+u)}))},t.prototype.xProject=function(t,n,e){(this.rootGroup||this.avoidOverlaps||this.xConstraints)&&this.project(t,n,t,e,(function(t){return t.px}),this.xConstraints,m,(function(t){return t.bounds.setXCentre(e[t.variable.index]=t.variable.position())}),(function(t){var n=e[t.minVar.index]=t.minVar.position(),r=e[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.x=n-i,t.bounds.X=r+i}))},t.prototype.yProject=function(t,n,e){(this.rootGroup||this.yConstraints)&&this.project(t,n,n,e,(function(t){return t.py}),this.yConstraints,b,(function(t){return t.bounds.setYCentre(e[t.variable.index]=t.variable.position())}),(function(t){var n=e[t.minVar.index]=t.minVar.position(),r=e[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.y=n-i,t.bounds.Y=r+i}))},t.prototype.projectFunctions=function(){var t=this;return[function(n,e,r){return t.xProject(n,e,r)},function(n,e,r){return t.yProject(n,e,r)}]},t.prototype.project=function(t,n,e,r,i,o,a,u,c){this.setupVariablesAndBounds(t,n,r,i),this.rootGroup&&this.avoidOverlaps&&(s(this.rootGroup),o=o.concat(a(this.rootGroup))),this.solve(this.variables,o,e,r),this.nodes.forEach(u),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(c),s(this.rootGroup))},t.prototype.solve=function(t,n,e,r){var o=new i.Solver(t,n);o.setStartingPositions(e),o.setDesiredPositions(r),o.solve()},t}()},itsj:function(t,n){t.exports=function(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]}},jFXE:function(t,n,e){"use strict";var r=e("b5wT"),i=e("F9We").Graph,o=e("tQ6r");function s(t,n){var e={};return r.reduce(n,(function(n,i){var o=0,s=0,a=n.length,c=r.last(i);return r.forEach(i,(function(n,l){var h=function(t,n){if(t.node(n).dummy)return r.find(t.predecessors(n),(function(n){return t.node(n).dummy}))}(t,n),f=h?t.node(h).order:a;(h||n===c)&&(r.forEach(i.slice(s,l+1),(function(n){r.forEach(t.predecessors(n),(function(r){var i=t.node(r),s=i.order;!(s<o||f<s)||i.dummy&&t.node(n).dummy||u(e,r,n)}))})),s=l+1,o=f)})),i})),e}function a(t,n){var e={};function i(n,i,o,s,a){var c;r.forEach(r.range(i,o),(function(i){t.node(c=n[i]).dummy&&r.forEach(t.predecessors(c),(function(n){var r=t.node(n);r.dummy&&(r.order<s||r.order>a)&&u(e,n,c)}))}))}return r.reduce(n,(function(n,e){var o,s=-1,a=0;return r.forEach(e,(function(r,u){if("border"===t.node(r).dummy){var c=t.predecessors(r);c.length&&(o=t.node(c[0]).order,i(e,a,u,s,o),a=u,s=o)}i(e,a,e.length,o,n.length)})),e})),e}function u(t,n,e){if(n>e){var r=n;n=e,e=r}var i=t[n];i||(t[n]=i={}),i[e]=!0}function c(t,n,e){if(n>e){var i=n;n=e,e=i}return r.has(t[n],e)}function l(t,n,e,i){var o={},s={},a={};return r.forEach(n,(function(t){r.forEach(t,(function(t,n){o[t]=t,s[t]=t,a[t]=n}))})),r.forEach(n,(function(t){var n=-1;r.forEach(t,(function(t){var u=i(t);if(u.length)for(var l=((u=r.sortBy(u,(function(t){return a[t]}))).length-1)/2,h=Math.floor(l),f=Math.ceil(l);h<=f;++h){var d=u[h];s[t]===t&&n<a[d]&&!c(e,t,d)&&(s[d]=t,s[t]=o[t]=o[d],n=a[d])}}))})),{root:o,align:s}}function h(t,n,e,o,s){var a={},u=function(t,n,e,o){var s=new i,a=t.graph(),u=function(t,n,e){return function(i,o,s){var a,u=i.node(o),c=i.node(s),l=0;if(l+=u.width/2,r.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":a=-u.width/2;break;case"r":a=u.width/2}if(a&&(l+=e?a:-a),a=0,l+=(u.dummy?n:t)/2,l+=(c.dummy?n:t)/2,l+=c.width/2,r.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":a=c.width/2;break;case"r":a=-c.width/2}return a&&(l+=e?a:-a),a=0,l}}(a.nodesep,a.edgesep,o);return r.forEach(n,(function(n){var i;r.forEach(n,(function(n){var r=e[n];if(s.setNode(r),i){var o=e[i],a=s.edge(o,r);s.setEdge(o,r,Math.max(u(t,n,i),a||0))}i=n}))})),s}(t,n,e,s),c=s?"borderLeft":"borderRight";function l(t,n){for(var e=u.nodes(),r=e.pop(),i={};r;)i[r]?t(r):(i[r]=!0,e.push(r),e=e.concat(n(r))),r=e.pop()}return l((function(t){a[t]=u.inEdges(t).reduce((function(t,n){return Math.max(t,a[n.v]+u.edge(n))}),0)}),u.predecessors.bind(u)),l((function(n){var e=u.outEdges(n).reduce((function(t,n){return Math.min(t,a[n.w]-u.edge(n))}),Number.POSITIVE_INFINITY),r=t.node(n);e!==Number.POSITIVE_INFINITY&&r.borderType!==c&&(a[n]=Math.max(a[n],e))}),u.successors.bind(u)),r.forEach(o,(function(t){a[t]=a[e[t]]})),a}function f(t,n){return r.minBy(r.values(n),(function(n){var e=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return r.forIn(n,(function(n,r){var o=function(t,n){return t.node(n).width}(t,r)/2;e=Math.max(n+o,e),i=Math.min(n-o,i)})),e-i}))}function d(t,n){var e=r.values(n),i=r.min(e),o=r.max(e);r.forEach(["u","d"],(function(e){r.forEach(["l","r"],(function(s){var a,u=e+s,c=t[u];if(c!==n){var l=r.values(c);(a="l"===s?i-r.min(l):o-r.max(l))&&(t[u]=r.mapValues(c,(function(t){return t+a})))}}))}))}function p(t,n){return r.mapValues(t.ul,(function(e,i){if(n)return t[n.toLowerCase()][i];var o=r.sortBy(r.map(t,i));return(o[1]+o[2])/2}))}t.exports={positionX:function(t){var n,e=o.buildLayerMatrix(t),i=r.merge(s(t,e),a(t,e)),u={};r.forEach(["u","d"],(function(o){n="u"===o?e:r.values(e).reverse(),r.forEach(["l","r"],(function(e){"r"===e&&(n=r.map(n,(function(t){return r.values(t).reverse()})));var s=("u"===o?t.predecessors:t.successors).bind(t),a=l(0,n,i,s),c=h(t,n,a.root,a.align,"r"===e);"r"===e&&(c=r.mapValues(c,(function(t){return-t}))),u[o+e]=c}))}));var c=f(t,u);return d(u,c),p(u,t.graph().align)},findType1Conflicts:s,findType2Conflicts:a,addConflict:u,hasConflict:c,verticalAlignment:l,horizontalCompaction:h,alignCoordinates:d,findSmallestWidthAlignment:f,balance:p}},jSBL:function(t,n){t.exports=function(t,n){return t<n}},"jbM+":function(t,n,e){var r=e("R/W3");t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},jeLo:function(t,n,e){var r=e("juv8"),i=e("mTTR");t.exports=function(t){return r(t,i(t))}},juv8:function(t,n,e){var r=e("MrPd"),i=e("hypo");t.exports=function(t,n,e,o){var s=!e;e||(e={});for(var a=-1,u=n.length;++a<u;){var c=n[a],l=o?o(e[c],t[c],c,e,t):void 0;void 0===l&&(l=t[c]),s?i(e,c,l):r(e,c,l)}return e}},"k+1r":function(t,n,e){var r=e("QkVE");t.exports=function(t){var n=r(this,t).delete(t);return this.size-=n?1:0,n}},k4Da:function(t,n,e){var r=e("LXxW"),i=e("n3Sm"),o=e("ut/Y"),s=e("Z0cm");t.exports=function(t,n){return(s(t)?r:i)(t,o(n,3))}},kekF:function(t,n){t.exports=function(t,n){return function(e){return t(n(e))}}},khRU:function(t,n){t.exports="0.8.4"},kj44:function(t,n,e){"use strict";function r(t,n){var e={};for(var r in t)e[r]={};for(var r in n)e[r]={};return Object.keys(e).length}function i(t,n){var e=0;for(var r in t)void 0!==n[r]&&++e;return e}function o(t,n,e,r){var i=function(t,n){var e={},r=function(t,n){void 0===e[t]&&(e[t]={}),e[t][n]={}};return t.forEach((function(t){var e=n.getSourceIndex(t),i=n.getTargetIndex(t);r(e,i),r(i,e)})),e}(t,r);t.forEach((function(t){var o=i[r.getSourceIndex(t)],s=i[r.getTargetIndex(t)];r.setLength(t,1+n*e(o,s))}))}function s(t,n,e){var r=[],i=0,o=[],s=[];function a(t){t.index=t.lowlink=i++,o.push(t),t.onStack=!0;for(var n=0,e=t.out;n<e.length;n++){var r=e[n];void 0===r.index?(a(r),t.lowlink=Math.min(t.lowlink,r.lowlink)):r.onStack&&(t.lowlink=Math.min(t.lowlink,r.index))}if(t.lowlink===t.index){for(var u=[];o.length&&((r=o.pop()).onStack=!1,u.push(r),r!==t););s.push(u.map((function(t){return t.id})))}}for(var u=0;u<t;u++)r.push({id:u,out:[]});for(var c=0,l=n;c<l.length;c++){var h=l[c],f=r[e.getSourceIndex(h)],d=r[e.getTargetIndex(h)];f.out.push(d)}for(var p=0,g=r;p<g.length;p++){var v=g[p];void 0===v.index&&a(v)}return s}Object.defineProperty(n,"__esModule",{value:!0}),n.symmetricDiffLinkLengths=function(t,n,e){void 0===e&&(e=1),o(t,e,(function(t,n){return Math.sqrt(r(t,n)-i(t,n))}),n)},n.jaccardLinkLengths=function(t,n,e){void 0===e&&(e=1),o(t,e,(function(t,n){return Math.min(Object.keys(t).length,Object.keys(n).length)<1.1?0:i(t,n)/r(t,n)}),n)},n.generateDirectedEdgeConstraints=function(t,n,e,r){var i=s(t,n,r),o={};i.forEach((function(t,n){return t.forEach((function(t){return o[t]=n}))}));var a=[];return n.forEach((function(t){var n=r.getSourceIndex(t),i=r.getTargetIndex(t);o[n]!==o[i]&&a.push({axis:e,left:n,right:i,gap:r.getMinSeparation(t)})})),a},n.stronglyConnectedComponents=s},l9OW:function(t,n,e){var r=e("SKAX"),i=e("MMmD");t.exports=function(t,n){var e=-1,o=i(t)?Array(t.length):[];return r(t,(function(t,r,i){o[++e]=n(t,r,i)})),o}},lQqw:function(t,n,e){var r=e("MMmD");t.exports=function(t,n){return function(e,i){if(null==e)return e;if(!r(e))return t(e,i);for(var o=e.length,s=n?o:-1,a=Object(e);(n?s--:++s<o)&&!1!==i(a[s],s,a););return e}}},lSCD:function(t,n,e){var r=e("NykK"),i=e("GoyQ");t.exports=function(t){if(!i(t))return!1;var n=r(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},la6v:function(t,n,e){var r=e("EA7m"),i=e("ljhN"),o=e("mv/X"),s=e("mTTR"),a=Object.prototype,u=a.hasOwnProperty,c=r((function(t,n){t=Object(t);var e=-1,r=n.length,c=r>2?n[2]:void 0;for(c&&o(n[0],n[1],c)&&(r=1);++e<r;)for(var l=n[e],h=s(l),f=-1,d=h.length;++f<d;){var p=h[f],g=t[p];(void 0===g||i(g,a[p])&&!u.call(t,p))&&(t[p]=l[p])}return t}));t.exports=c},ljhN:function(t,n){t.exports=function(t,n){return t===n||t!=t&&n!=n}},"lm/5":function(t,n,e){var r=e("fmRc"),i=e("wF/u");t.exports=function(t,n,e,o){var s=e.length,a=s,u=!o;if(null==t)return!a;for(t=Object(t);s--;){var c=e[s];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++s<a;){var l=(c=e[s])[0],h=t[l],f=c[1];if(u&&c[2]){if(void 0===h&&!(l in t))return!1}else{var d=new r;if(o)var p=o(h,f,l,t,n,d);if(!(void 0===p?i(f,h,3,o,d):p))return!1}}return!0}},lnHP:function(t,n,e){"use strict";var r=e("M96O");t.exports=a;var i="\0",o="\0",s="\x01";function a(t){this._isDirected=!r.has(t,"directed")||t.directed,this._isMultigraph=!!r.has(t,"multigraph")&&t.multigraph,this._isCompound=!!r.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[o]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function u(t,n){t[n]?t[n]++:t[n]=1}function c(t,n){--t[n]||delete t[n]}function l(t,n,e,o){var a=""+n,u=""+e;if(!t&&a>u){var c=a;a=u,u=c}return a+s+u+s+(r.isUndefined(o)?i:o)}function h(t,n,e,r){var i=""+n,o=""+e;if(!t&&i>o){var s=i;i=o,o=s}var a={v:i,w:o};return r&&(a.name=r),a}function f(t,n){return l(t,n.v,n.w,n.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(t){return this._label=t,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return r.keys(this._nodes)},a.prototype.sources=function(){var t=this;return r.filter(this.nodes(),(function(n){return r.isEmpty(t._in[n])}))},a.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),(function(n){return r.isEmpty(t._out[n])}))},a.prototype.setNodes=function(t,n){var e=arguments,i=this;return r.each(t,(function(t){e.length>1?i.setNode(t,n):i.setNode(t)})),this},a.prototype.setNode=function(t,n){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=n),this):(this._nodes[t]=arguments.length>1?n:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=o,this._children[t]={},this._children[o][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},a.prototype.node=function(t){return this._nodes[t]},a.prototype.hasNode=function(t){return r.has(this._nodes,t)},a.prototype.removeNode=function(t){var n=this;if(r.has(this._nodes,t)){var e=function(t){n.removeEdge(n._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),(function(t){n.setParent(t)})),delete this._children[t]),r.each(r.keys(this._in[t]),e),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},a.prototype.setParent=function(t,n){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(n))n=o;else{for(var e=n+="";!r.isUndefined(e);e=this.parent(e))if(e===t)throw new Error("Setting "+n+" as parent of "+t+" would create a cycle");this.setNode(n)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=n,this._children[n][t]=!0,this},a.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},a.prototype.parent=function(t){if(this._isCompound){var n=this._parent[t];if(n!==o)return n}},a.prototype.children=function(t){if(r.isUndefined(t)&&(t=o),this._isCompound){var n=this._children[t];if(n)return r.keys(n)}else{if(t===o)return this.nodes();if(this.hasNode(t))return[]}},a.prototype.predecessors=function(t){var n=this._preds[t];if(n)return r.keys(n)},a.prototype.successors=function(t){var n=this._sucs[t];if(n)return r.keys(n)},a.prototype.neighbors=function(t){var n=this.predecessors(t);if(n)return r.union(n,this.successors(t))},a.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},a.prototype.filterNodes=function(t){var n=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});n.setGraph(this.graph());var e=this;r.each(this._nodes,(function(e,r){t(r)&&n.setNode(r,e)})),r.each(this._edgeObjs,(function(t){n.hasNode(t.v)&&n.hasNode(t.w)&&n.setEdge(t,e.edge(t))}));var i={};return this._isCompound&&r.each(n.nodes(),(function(t){n.setParent(t,function t(r){var o=e.parent(r);return void 0===o||n.hasNode(o)?(i[r]=o,o):o in i?i[o]:t(o)}(t))})),n},a.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return r.values(this._edgeObjs)},a.prototype.setPath=function(t,n){var e=this,i=arguments;return r.reduce(t,(function(t,r){return i.length>1?e.setEdge(t,r,n):e.setEdge(t,r),r})),this},a.prototype.setEdge=function(){var t,n,e,i,o=!1,s=arguments[0];"object"==typeof s&&null!==s&&"v"in s?(t=s.v,n=s.w,e=s.name,2===arguments.length&&(i=arguments[1],o=!0)):(t=s,n=arguments[1],e=arguments[3],arguments.length>2&&(i=arguments[2],o=!0)),t=""+t,n=""+n,r.isUndefined(e)||(e=""+e);var a=l(this._isDirected,t,n,e);if(r.has(this._edgeLabels,a))return o&&(this._edgeLabels[a]=i),this;if(!r.isUndefined(e)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(n),this._edgeLabels[a]=o?i:this._defaultEdgeLabelFn(t,n,e);var c=h(this._isDirected,t,n,e);return t=c.v,n=c.w,Object.freeze(c),this._edgeObjs[a]=c,u(this._preds[n],t),u(this._sucs[t],n),this._in[n][a]=c,this._out[t][a]=c,this._edgeCount++,this},a.prototype.edge=function(t,n,e){var r=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,t,n,e);return this._edgeLabels[r]},a.prototype.hasEdge=function(t,n,e){var i=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,t,n,e);return r.has(this._edgeLabels,i)},a.prototype.removeEdge=function(t,n,e){var r=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,t,n,e),i=this._edgeObjs[r];return i&&(t=i.v,n=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],c(this._preds[n],t),c(this._sucs[t],n),delete this._in[n][r],delete this._out[t][r],this._edgeCount--),this},a.prototype.inEdges=function(t,n){var e=this._in[t];if(e){var i=r.values(e);return n?r.filter(i,(function(t){return t.v===n})):i}},a.prototype.outEdges=function(t,n){var e=this._out[t];if(e){var i=r.values(e);return n?r.filter(i,(function(t){return t.w===n})):i}},a.prototype.nodeEdges=function(t,n){var e=this.inEdges(t,n);if(e)return e.concat(this.outEdges(t,n))}},lvO4:function(t,n){var e=Object.prototype.hasOwnProperty;t.exports=function(t,n){return null!=t&&e.call(t,n)}},mNz5:function(t,n,e){var r=e("dt0z"),i=0;t.exports=function(t){var n=++i;return r(t)+n}},mTTR:function(t,n,e){var r=e("b80T"),i=e("QcOe"),o=e("MMmD");t.exports=function(t){return o(t)?r(t,!0):i(t)}},mUg4:function(t,n,e){var r=e("cq/+"),i=e("EwQA"),o=e("mTTR");t.exports=function(t,n){return null==t?t:r(t,i(n),o)}},mc0g:function(t,n){t.exports=function(t){return function(n,e,r){for(var i=-1,o=Object(n),s=r(n),a=s.length;a--;){var u=s[t?a:++i];if(!1===e(o[u],u,o))break}return n}}},mdPL:function(t,n,e){(function(t){var r=e("WFqU"),i=n&&!n.nodeType&&n,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===i&&r.process,a=function(){try{return o&&o.require&&o.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a}).call(this,e("YuTi")(t))},mrSG:function(t,n,e){"use strict";e.r(n),e.d(n,"__extends",(function(){return i})),e.d(n,"__assign",(function(){return o})),e.d(n,"__rest",(function(){return s})),e.d(n,"__decorate",(function(){return a})),e.d(n,"__param",(function(){return u})),e.d(n,"__metadata",(function(){return c})),e.d(n,"__awaiter",(function(){return l})),e.d(n,"__generator",(function(){return h})),e.d(n,"__exportStar",(function(){return f})),e.d(n,"__values",(function(){return d})),e.d(n,"__read",(function(){return p})),e.d(n,"__spread",(function(){return g})),e.d(n,"__spreadArrays",(function(){return v})),e.d(n,"__await",(function(){return y})),e.d(n,"__asyncGenerator",(function(){return m})),e.d(n,"__asyncDelegator",(function(){return b})),e.d(n,"__asyncValues",(function(){return x})),e.d(n,"__makeTemplateObject",(function(){return w})),e.d(n,"__importStar",(function(){return _})),e.d(n,"__importDefault",(function(){return E}));var r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(t,n)};function i(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var o=function(){return(o=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var i in n=arguments[e])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t}).apply(this,arguments)};function s(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]])}return e}function a(t,n,e,r){var i,o=arguments.length,s=o<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,e,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(n,e,s):i(n,e))||s);return o>3&&s&&Object.defineProperty(n,e,s),s}function u(t,n){return function(e,r){n(e,r,t)}}function c(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)}function l(t,n,e,r){return new(e||(e=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(n){o(n)}}function a(t){try{u(r.throw(t))}catch(n){o(n)}}function u(t){t.done?i(t.value):new e((function(n){n(t.value)})).then(s,a)}u((r=r.apply(t,n||[])).next())}))}function h(t,n){var e,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;s;)try{if(e=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=n.call(t,s)}catch(a){o=[6,a],r=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function f(t,n){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e])}function d(t){var n="function"==typeof Symbol&&t[Symbol.iterator],e=0;return n?n.call(t):{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}}}function p(t,n){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,i,o=e.call(t),s=[];try{for(;(void 0===n||n-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return s}function g(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(p(arguments[n]));return t}function v(){for(var t=0,n=0,e=arguments.length;n<e;n++)t+=arguments[n].length;var r=Array(t),i=0;for(n=0;n<e;n++)for(var o=arguments[n],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}function y(t){return this instanceof y?(this.v=t,this):new y(t)}function m(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(t,n||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(t){i[t]&&(r[t]=function(n){return new Promise((function(e,r){o.push([t,n,e,r])>1||a(t,n)}))})}function a(t,n){try{(e=i[t](n)).value instanceof y?Promise.resolve(e.value.v).then(u,c):l(o[0][2],e)}catch(r){l(o[0][3],r)}var e}function u(t){a("next",t)}function c(t){a("throw",t)}function l(t,n){t(n),o.shift(),o.length&&a(o[0][0],o[0][1])}}function b(t){var n,e;return n={},r("next"),r("throw",(function(t){throw t})),r("return"),n[Symbol.iterator]=function(){return this},n;function r(r,i){n[r]=t[r]?function(n){return(e=!e)?{value:y(t[r](n)),done:"return"===r}:i?i(n):n}:i}}function x(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t=d(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,i){!function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)}(r,i,(n=t[e](n)).done,n.value)}))}}}function w(t,n){return Object.defineProperty?Object.defineProperty(t,"raw",{value:n}):t.raw=n,t}function _(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}function E(t){return t&&t.__esModule?t:{default:t}}},"mv/X":function(t,n,e){var r=e("ljhN"),i=e("MMmD"),o=e("wJg7"),s=e("GoyQ");t.exports=function(t,n,e){if(!s(e))return!1;var a=typeof n;return!!("number"==a?i(e)&&o(n,e.length):"string"==a&&n in e)&&r(e[n],t)}},mwIZ:function(t,n,e){var r=e("ZWtO");t.exports=function(t,n,e){var i=null==t?void 0:r(t,n);return void 0===i?e:i}},n3Sm:function(t,n,e){var r=e("SKAX");t.exports=function(t,n){var e=[];return r(t,(function(t,r,i){n(t,r,i)&&e.push(t)})),e}},n85Q:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(t){this.elem=t,this.subheaps=[]}return t.prototype.toString=function(t){for(var n="",e=!1,r=0;r<this.subheaps.length;++r){var i=this.subheaps[r];i.elem?(e&&(n+=","),n+=i.toString(t),e=!0):e=!1}return""!==n&&(n="("+n+")"),(this.elem?t(this.elem):"")+n},t.prototype.forEach=function(t){this.empty()||(t(this.elem,this),this.subheaps.forEach((function(n){return n.forEach(t)})))},t.prototype.count=function(){return this.empty()?0:1+this.subheaps.reduce((function(t,n){return t+n.count()}),0)},t.prototype.min=function(){return this.elem},t.prototype.empty=function(){return null==this.elem},t.prototype.contains=function(t){if(this===t)return!0;for(var n=0;n<this.subheaps.length;n++)if(this.subheaps[n].contains(t))return!0;return!1},t.prototype.isHeap=function(t){var n=this;return this.subheaps.every((function(e){return t(n.elem,e.elem)&&e.isHeap(t)}))},t.prototype.insert=function(n,e){return this.merge(new t(n),e)},t.prototype.merge=function(t,n){return this.empty()?t:t.empty()?this:n(this.elem,t.elem)?(this.subheaps.push(t),this):(t.subheaps.push(this),t)},t.prototype.removeMin=function(t){return this.empty()?null:this.mergePairs(t)},t.prototype.mergePairs=function(n){if(0==this.subheaps.length)return new t(null);if(1==this.subheaps.length)return this.subheaps[0];var e=this.subheaps.pop().merge(this.subheaps.pop(),n),r=this.mergePairs(n);return e.merge(r,n)},t.prototype.decreaseKey=function(n,e,r,i){var o=n.removeMin(i);n.elem=o.elem,n.subheaps=o.subheaps,null!==r&&null!==o.elem&&r(n.elem,n);var s=new t(e);return null!==r&&r(e,s),this.merge(s,i)},t}();n.PairingHeap=r,n.PriorityQueue=function(){function t(t){this.lessThan=t}return t.prototype.top=function(){return this.empty()?null:this.root.elem},t.prototype.push=function(){for(var t,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];for(var i,o=0;i=n[o];++o)t=new r(i),this.root=this.empty()?t:this.root.merge(t,this.lessThan);return t},t.prototype.empty=function(){return!this.root||!this.root.elem},t.prototype.isHeap=function(){return this.root.isHeap(this.lessThan)},t.prototype.forEach=function(t){this.root.forEach(t)},t.prototype.pop=function(){if(this.empty())return null;var t=this.root.min();return this.root=this.root.removeMin(this.lessThan),t},t.prototype.reduceKey=function(t,n,e){void 0===e&&(e=null),this.root=this.root.decreaseKey(t,n,e,this.lessThan)},t.prototype.toString=function(t){return this.root.toString(t)},t.prototype.count=function(){return this.root.count()},t}()},nmnc:function(t,n,e){var r=e("Kz5y");t.exports=r.Symbol},noZS:function(t,n,e){var r=e("hypo"),i=e("JC6p"),o=e("ut/Y");t.exports=function(t,n){var e={};return n=o(n,3),i(t,(function(t,i,o){r(e,i,n(t,i,o))})),e}},"oCl/":function(t,n,e){var r=e("CH3K"),i=e("LcsW"),o=e("MvSz"),s=e("0ycA"),a=Object.getOwnPropertySymbols;t.exports=a?function(t){for(var n=[];t;)r(n,o(t)),t=i(t);return n}:s},oQ18:function(t,n,e){var r=e("mrSG").__extends;Object.defineProperty(n,"__esModule",{value:!0});var i=e("abOL"),o=function(t){function n(){var n=t.call(this)||this;n.event=d3.dispatch(i.EventType[i.EventType.start],i.EventType[i.EventType.tick],i.EventType[i.EventType.end]);var e=n;return n.drag=function(){if(!t)var t=d3.behavior.drag().origin(i.Layout.dragOrigin).on("dragstart.d3adaptor",i.Layout.dragStart).on("drag.d3adaptor",(function(t){i.Layout.drag(t,d3.event),e.resume()})).on("dragend.d3adaptor",i.Layout.dragEnd);if(!arguments.length)return t;this.call(t)},n}return r(n,t),n.prototype.trigger=function(t){var n={type:i.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event[n.type](n)},n.prototype.kick=function(){var n=this;d3.timer((function(){return t.prototype.tick.call(n)}))},n.prototype.on=function(t,n){return this.event.on("string"==typeof t?t:i.EventType[t],n),this},n}(i.Layout);n.D3StyleLayoutAdaptor=o,n.d3adaptor=function(){return new o}},or5M:function(t,n,e){var r=e("1hJj"),i=e("QoRX"),o=e("xYSL");t.exports=function(t,n,e,s,a,u){var c=1&e,l=t.length,h=n.length;if(l!=h&&!(c&&h>l))return!1;var f=u.get(t);if(f&&u.get(n))return f==n;var d=-1,p=!0,g=2&e?new r:void 0;for(u.set(t,n),u.set(n,t);++d<l;){var v=t[d],y=n[d];if(s)var m=c?s(y,v,d,n,t,u):s(v,y,d,t,n,u);if(void 0!==m){if(m)continue;p=!1;break}if(g){if(!i(n,(function(t,n){if(!o(g,n)&&(v===t||a(v,t,e,s,u)))return g.push(n)}))){p=!1;break}}else if(v!==y&&!a(v,y,e,s,u)){p=!1;break}}return u.delete(t),u.delete(n),p}},"otv/":function(t,n,e){var r=e("nmnc"),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},pFRH:function(t,n,e){var r=e("cvCv"),i=e("O0oS"),o=e("zZ0H");t.exports=i?function(t,n){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(n),writable:!0})}:o},pHPU:function(t,n,e){var r=e("M96O"),i=e("AevD");t.exports=function(t,n,e,r){return function(t,n,e,r){var o,s,a={},u=new i,c=function(t){var n=t.v!==o?t.v:t.w,r=a[n],i=e(t),c=s.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);c<r.distance&&(r.distance=c,r.predecessor=o,u.decrease(n,c))};for(t.nodes().forEach((function(t){var e=t===n?0:Number.POSITIVE_INFINITY;a[t]={distance:e},u.add(t,e)}));u.size()>0&&(o=u.removeMin(),(s=a[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(c);return a}(t,String(n),e||o,r||function(n){return t.outEdges(n)})};var o=r.constant(1)},pSRY:function(t,n,e){var r=e("QkVE");t.exports=function(t){return r(this,t).has(t)}},ptHe:function(t,n,e){"use strict";var r=e("b5wT"),i=e("KZ/l");t.exports={run:function(t){var n="greedy"===t.graph().acyclicer?i(t,function(t){return function(n){return t.edge(n).weight}}(t)):function(t){var n=[],e={},i={};return r.forEach(t.nodes(),(function o(s){r.has(i,s)||(i[s]=!0,e[s]=!0,r.forEach(t.outEdges(s),(function(t){r.has(e,t.w)?n.push(t):o(t.w)})),delete e[s])})),n}(t);r.forEach(n,(function(n){var e=t.edge(n);t.removeEdge(n),e.forwardName=n.name,e.reversed=!0,t.setEdge(n.w,n.v,e,r.uniqueId("rev"))}))},undo:function(t){r.forEach(t.edges(),(function(n){var e=t.edge(n);if(e.reversed){t.removeEdge(n);var r=e.forwardName;delete e.reversed,delete e.forwardName,t.setEdge(n.w,n.v,e,r)}}))}}},q4HE:function(t,n){var e="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+e+"|"+r+")?",u="[\\ufe0e\\ufe0f]?"+a+"(?:\\u200d(?:"+[i,o,s].join("|")+")[\\ufe0e\\ufe0f]?"+a+")*",c="(?:"+[i+e+"?",e,o,s,"[\\ud800-\\udfff]"].join("|")+")",l=RegExp(r+"(?="+r+")|"+c+u,"g");t.exports=function(t){for(var n=l.lastIndex=0;l.test(t);)++n;return n}},q92V:function(t,n,e){var r=e("dunj"),i=e("V9xz"),o=e("zZ0H");t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},qGSU:function(t,n,e){"use strict";var r=e("b5wT");function i(t){r.forEach(t.nodes(),(function(n){o(t.node(n))})),r.forEach(t.edges(),(function(n){o(t.edge(n))}))}function o(t){var n=t.width;t.width=t.height,t.height=n}function s(t){t.y=-t.y}function a(t){var n=t.x;t.x=t.y,t.y=n}t.exports={adjust:function(t){var n=t.graph().rankdir.toLowerCase();"lr"!==n&&"rl"!==n||i(t)},undo:function(t){var n=t.graph().rankdir.toLowerCase();"bt"!==n&&"rl"!==n||function(t){r.forEach(t.nodes(),(function(n){s(t.node(n))})),r.forEach(t.edges(),(function(n){var e=t.edge(n);r.forEach(e.points,s),r.has(e,"y")&&s(e)}))}(t),"lr"!==n&&"rl"!==n||(function(t){r.forEach(t.nodes(),(function(n){a(t.node(n))})),r.forEach(t.edges(),(function(n){var e=t.edge(n);r.forEach(e.points,a),r.has(e,"x")&&a(e)}))}(t),i(t))}}},qOaU:function(t,n,e){"use strict";e.r(n);var r={};e.r(r),e.d(r,"forceCenter",(function(){return xo})),e.d(r,"forceCollide",(function(){return jo})),e.d(r,"forceLink",(function(){return Go})),e.d(r,"forceManyBody",(function(){return Vo})),e.d(r,"forceRadial",(function(){return Uo})),e.d(r,"forceSimulation",(function(){return Ro})),e.d(r,"forceX",(function(){return Yo})),e.d(r,"forceY",(function(){return Ho}));var i={};e.r(i),e.d(i,"dispatch",(function(){return Me}));var o={};e.r(o),e.d(o,"now",(function(){return $r})),e.d(o,"timer",(function(){return Jr})),e.d(o,"timerFlush",(function(){return Kr})),e.d(o,"timeout",(function(){return ri})),e.d(o,"interval",(function(){return xs}));var s=e("8Y7J");class a{}var u=e("pMnS"),c=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t};function l(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function h(){}var f="\\s*([+-]?\\d+)\\s*",d="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",p="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",g=/^#([0-9a-f]{3,8})$/,v=new RegExp("^rgb\\("+[f,f,f]+"\\)$"),y=new RegExp("^rgb\\("+[p,p,p]+"\\)$"),m=new RegExp("^rgba\\("+[f,f,f,d]+"\\)$"),b=new RegExp("^rgba\\("+[p,p,p,d]+"\\)$"),x=new RegExp("^hsl\\("+[d,p,p]+"\\)$"),w=new RegExp("^hsla\\("+[d,p,p,d]+"\\)$"),_={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function E(){return this.rgb().formatHex()}function k(){return this.rgb().formatRgb()}function M(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=g.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?O(n):3===e?new T(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?new T(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?new T(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=v.exec(t))?new T(n[1],n[2],n[3],1):(n=y.exec(t))?new T(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=m.exec(t))?N(n[1],n[2],n[3],n[4]):(n=b.exec(t))?N(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=x.exec(t))?D(n[1],n[2]/100,n[3]/100,1):(n=w.exec(t))?D(n[1],n[2]/100,n[3]/100,n[4]):_.hasOwnProperty(t)?O(_[t]):"transparent"===t?new T(NaN,NaN,NaN,0):null}function O(t){return new T(t>>16&255,t>>8&255,255&t,1)}function N(t,n,e,r){return r<=0&&(t=n=e=NaN),new T(t,n,e,r)}function A(t){return t instanceof h||(t=M(t)),t?new T((t=t.rgb()).r,t.g,t.b,t.opacity):new T}function C(t,n,e,r){return 1===arguments.length?A(t):new T(t,n,e,null==r?1:r)}function T(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function S(){return"#"+j(this.r)+j(this.g)+j(this.b)}function L(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function j(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function D(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new G(t,n,e,r)}function P(t){if(t instanceof G)return new G(t.h,t.s,t.l,t.opacity);if(t instanceof h||(t=M(t)),!t)return new G;if(t instanceof G)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),s=NaN,a=o-i,u=(o+i)/2;return a?(s=n===o?(e-r)/a+6*(e<r):e===o?(r-n)/a+2:(n-e)/a+4,a/=u<.5?o+i:2-o-i,s*=60):a=u>0&&u<1?0:s,new G(s,a,u,t.opacity)}function G(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function F(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}c(h,M,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:E,formatHex:E,formatHsl:function(){return P(this).formatHsl()},formatRgb:k,toString:k}),c(T,C,l(h,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new T(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new T(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:S,formatHex:S,formatRgb:L,toString:L})),c(G,(function(t,n,e,r){return 1===arguments.length?P(t):new G(t,n,e,null==r?1:r)}),l(h,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new G(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new G(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new T(F(t>=240?t-240:t+120,i,r),F(t,i,r),F(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},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var I,z,B=e("xgIS"),R=e("Kj3r"),V=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN},U=(1===(I=V).length&&(z=I,I=function(t,n){return V(z(t),n)}),{left:function(t,n,e,r){for(null==e&&(e=0),null==r&&(r=t.length);e<r;){var i=e+r>>>1;I(t[i],n)<0?e=i+1:r=i}return e},right:function(t,n,e,r){for(null==e&&(e=0),null==r&&(r=t.length);e<r;){var i=e+r>>>1;I(t[i],n)>0?r=i:e=i+1}return e}}).right,Y=function(t){return null===t?NaN:+t},H=(Array,function(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r<i;)o[r]=t+r*e;return o}),X=Math.sqrt(50),q=Math.sqrt(10),W=Math.sqrt(2),$=function(t,n,e){var r,i,o,s,a=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(s=Q(t,n,e))||!isFinite(s))return[];if(s>0)for(t=Math.ceil(t/s),n=Math.floor(n/s),o=new Array(i=Math.ceil(n-t+1));++a<i;)o[a]=(t+a)*s;else for(t=Math.floor(t*s),n=Math.ceil(n*s),o=new Array(i=Math.ceil(t-n+1));++a<i;)o[a]=(t-a)/s;return r&&o.reverse(),o};function Q(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=X?10:o>=q?5:o>=W?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=X?10:o>=q?5:o>=W?2:1)}var Z=function(t,n,e){if(null==e&&(e=Y),r=t.length){if((n=+n)<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),s=+e(t[o],o,t);return s+(+e(t[o+1],o+1,t)-s)*(i-o)}};function J(){}function K(t,n){var e=new J;if(t instanceof J)t.each((function(t,n){e.set(n,t)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==n)for(;++i<o;)e.set(i,t[i]);else for(;++i<o;)e.set(n(r=t[i],i,t),r)}else if(t)for(var s in t)e.set(s,t[s]);return e}J.prototype=K.prototype={constructor:J,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,n){return this["$"+t]=n,this},remove:function(t){var n="$"+t;return n in this&&delete this[n]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)"$"===n[0]&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)"$"===n[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var n in this)"$"===n[0]&&t(this[n],n.slice(1),this)}};var tt=K;function nt(){}var et=tt.prototype;nt.prototype=(function(t,n){var e=new nt;if(t instanceof nt)t.each((function(t){e.add(t)}));else if(t){var r=-1,i=t.length;if(null==n)for(;++r<i;)e.add(t[r]);else for(;++r<i;)e.add(n(t[r],r,t))}return e}).prototype={constructor:nt,has:et.has,add:function(t){return this["$"+(t+="")]=t,this},remove:et.remove,clear:et.clear,values:et.keys,size:et.size,empty:et.empty,each:et.each};var rt=Array.prototype,it=rt.map,ot=rt.slice,st={name:"implicit"};function at(t){var n=tt(),e=[],r=st;function i(i){var o=i+"",s=n.get(o);if(!s){if(r!==st)return r;n.set(o,s=e.push(i))}return t[(s-1)%t.length]}return t=null==t?[]:ot.call(t),i.domain=function(t){if(!arguments.length)return e.slice();e=[],n=tt();for(var r,o,s=-1,a=t.length;++s<a;)n.has(o=(r=t[s])+"")||n.set(o,e.push(r));return i},i.range=function(n){return arguments.length?(t=ot.call(n),i):t.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return at().domain(e).range(t).unknown(r)},i}var ut=function(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}};function ct(t,n,e,r,i){var o=t*t,s=o*t;return((1-3*t+3*o-s)*n+(4-6*o+3*s)*e+(1+3*t+3*o-3*s)*r+s*i)/6}var lt=function(t){return function(){return t}};function ht(t,n){return function(e){return t+e*n}}function ft(t,n){var e=n-t;return e?ht(t,e):lt(isNaN(t)?n:t)}var dt=function t(n){var e=function(t){return 1==(t=+t)?ft:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):lt(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=C(t)).r,(n=C(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),s=ft(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=s(n),t+""}}return r.gamma=t,r}(1);function pt(t){return function(n){var e,r,i=n.length,o=new Array(i),s=new Array(i),a=new Array(i);for(e=0;e<i;++e)r=C(n[e]),o[e]=r.r||0,s[e]=r.g||0,a[e]=r.b||0;return o=t(o),s=t(s),a=t(a),r.opacity=1,function(t){return r.r=o(t),r.g=s(t),r.b=a(t),r+""}}}pt((function(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1];return ct((e-r/n)*n,r>0?t[r-1]:2*i-o,i,o,r<n-1?t[r+2]:2*o-i)}})),pt((function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n);return ct((e-r/n)*n,t[(r+n-1)%n],t[r%n],t[(r+1)%n],t[(r+2)%n])}}));var gt=function(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,i=n.slice();return function(o){for(e=0;e<r;++e)i[e]=t[e]*(1-o)+n[e]*o;return i}};function vt(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),s=new Array(r);for(e=0;e<i;++e)o[e]=_t(t[e],n[e]);for(;e<r;++e)s[e]=n[e];return function(t){for(e=0;e<i;++e)s[e]=o[e](t);return s}}var yt=function(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}},mt=function(t,n){var e,r={},i={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=_t(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}},bt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,xt=new RegExp(bt.source,"g"),wt=function(t,n){var e,r,i,o=bt.lastIndex=xt.lastIndex=0,s=-1,a=[],u=[];for(t+="",n+="";(e=bt.exec(t))&&(r=xt.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),a[s]?a[s]+=i:a[++s]=i),(e=e[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,u.push({i:s,x:ut(e,r)})),o=xt.lastIndex;return o<n.length&&(i=n.slice(o),a[s]?a[s]+=i:a[++s]=i),a.length<2?u[0]?function(t){return function(n){return t(n)+""}}(u[0].x):function(t){return function(){return t}}(n):(n=u.length,function(t){for(var e,r=0;r<n;++r)a[(e=u[r]).i]=e.x(t);return a.join("")})},_t=function(t,n){var e,r,i=typeof n;return null==n||"boolean"===i?lt(n):("number"===i?ut:"string"===i?(e=M(n))?(n=e,dt):wt:n instanceof M?dt:n instanceof Date?yt:(r=n,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(n)?vt:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?mt:ut:gt))(t,n)},Et=function(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}},kt=function(t){return function(){return t}},Mt=function(t){return+t},Ot=[0,1];function Nt(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:kt(n)}function At(t,n,e,r){var i=t[0],o=t[1],s=n[0],a=n[1];return o<i?(i=e(o,i),s=r(a,s)):(i=e(i,o),s=r(s,a)),function(t){return s(i(t))}}function Ct(t,n,e,r){var i=Math.min(t.length,n.length)-1,o=new Array(i),s=new Array(i),a=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<i;)o[a]=e(t[a],t[a+1]),s[a]=r(n[a],n[a+1]);return function(n){var e=U(t,n,1,i)-1;return s[e](o[e](n))}}var Tt=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function St(t){if(!(n=Tt.exec(t)))throw new Error("invalid format: "+t);var n;return new Lt({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function Lt(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}St.prototype=Lt.prototype,Lt.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var jt,Dt,Pt,Gt,Ft=function(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]},It=function(t){return(t=Ft(Math.abs(t)))?t[1]:NaN},zt=function(t){t:for(var n,e=t.length,r=1,i=-1;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":0===i&&(i=r),n=r;break;default:if(i>0){if(!+t[r])break t;i=0}}return i>0?t.slice(0,i)+t.slice(n+1):t},Bt=function(t,n){var e=Ft(t,n);if(!e)return t+"";var r=e[0],i=e[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")},Rt={"%":function(t,n){return(100*t).toFixed(n)},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,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return Bt(100*t,n)},r:Bt,s:function(t,n){var e=Ft(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(jt=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Ft(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Vt=function(t){return t},Ut=Array.prototype.map,Yt=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];Dt=function(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?Vt:(n=Ut.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,o=[],s=0,a=n[0],u=0;i>0&&a>0&&(u+a+1>r&&(a=Math.max(1,r-u)),o.push(t.substring(i-=a,i+a)),!((u+=a+1)>r));)a=n[s=(s+1)%n.length];return o.reverse().join(e)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?Vt:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(Ut.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function h(t){var n=(t=St(t)).fill,e=t.align,h=t.sign,f=t.symbol,d=t.zero,p=t.width,g=t.comma,v=t.precision,y=t.trim,m=t.type;"n"===m?(g=!0,m="g"):Rt[m]||(void 0===v&&(v=12),y=!0,m="g"),(d||"0"===n&&"="===e)&&(d=!0,n="0",e="=");var b="$"===f?i:"#"===f&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",x="$"===f?o:/[%p]/.test(m)?u:"",w=Rt[m],_=/[defgprs%]/.test(m);function E(t){var i,o,u,f=b,E=x;if("c"===m)E=w(t)+E,t="";else{var k=(t=+t)<0;if(t=isNaN(t)?l:w(Math.abs(t),v),y&&(t=zt(t)),k&&0==+t&&(k=!1),f=(k?"("===h?h:c:"-"===h||"("===h?"":h)+f,E=("s"===m?Yt[8+jt/3]:"")+E+(k&&"("===h?")":""),_)for(i=-1,o=t.length;++i<o;)if(48>(u=t.charCodeAt(i))||u>57){E=(46===u?s+t.slice(i+1):t.slice(i))+E,t=t.slice(0,i);break}}g&&!d&&(t=r(t,1/0));var M=f.length+t.length+E.length,O=M<p?new Array(p-M+1).join(n):"";switch(g&&d&&(t=r(O+t,O.length?p-E.length:1/0),O=""),e){case"<":t=f+t+E+O;break;case"=":t=f+O+t+E;break;case"^":t=O.slice(0,M=O.length>>1)+f+t+E+O.slice(M);break;default:t=O+f+t+E}return a(t)}return v=void 0===v?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),E.toString=function(){return t+""},E}return{format:h,formatPrefix:function(t,n){var e=h(((t=St(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(It(n)/3))),i=Math.pow(10,-r),o=Yt[8+r/3];return function(t){return e(i*t)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Pt=Dt.format,Gt=Dt.formatPrefix;var Ht=function(t,n,e){var r,i=t[0],o=t[t.length-1],s=function(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=X?i*=10:o>=q?i*=5:o>=W&&(i*=2),n<t?-i:i}(i,o,null==n?10:n);switch((e=St(null==e?",f":e)).type){case"s":var a=Math.max(Math.abs(i),Math.abs(o));return null!=e.precision||isNaN(r=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(It(n)/3)))-It(Math.abs(t)))}(s,a))||(e.precision=r),Gt(e,a);case"":case"e":case"g":case"p":case"r":null!=e.precision||isNaN(r=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,It(n)-It(t))+1}(s,Math.max(Math.abs(i),Math.abs(o))))||(e.precision=r-("e"===e.type));break;case"f":case"%":null!=e.precision||isNaN(r=function(t){return Math.max(0,-It(Math.abs(t)))}(s))||(e.precision=r-2*("%"===e.type))}return Pt(e)};function Xt(){var t=function(t,n){var e,r,i,o=Ot,s=Ot,a=_t,u=!1;function c(){return e=Math.min(o.length,s.length)>2?Ct:At,r=i=null,l}function l(n){return(r||(r=e(o,s,u?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=n?0:t>=e?1:r(t)}}}(t):t,a)))(+n)}return l.invert=function(t){return(i||(i=e(s,o,Nt,u?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=0?n:t>=1?e:r(t)}}}(n):n)))(+t)},l.domain=function(t){return arguments.length?(o=it.call(t,Mt),c()):o.slice()},l.range=function(t){return arguments.length?(s=ot.call(t),c()):s.slice()},l.rangeRound=function(t){return s=ot.call(t),a=Et,c()},l.clamp=function(t){return arguments.length?(u=!!t,c()):u},l.interpolate=function(t){return arguments.length?(a=t,c()):a},c()}(Nt,ut);return t.copy=function(){return n=t,Xt().domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp());var n},function(t){var n=t.domain;return t.ticks=function(t){var e=n();return $(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){return Ht(n(),t,e)},t.nice=function(e){null==e&&(e=10);var r,i=n(),o=0,s=i.length-1,a=i[o],u=i[s];return u<a&&(r=a,a=u,u=r,r=o,o=s,s=r),(r=Q(a,u,e))>0?r=Q(a=Math.floor(a/r)*r,u=Math.ceil(u/r)*r,e):r<0&&(r=Q(a=Math.ceil(a*r)/r,u=Math.floor(u*r)/r,e)),r>0?(i[o]=Math.floor(a/r)*r,i[s]=Math.ceil(u/r)*r,n(i)):r<0&&(i[o]=Math.ceil(a*r)/r,i[s]=Math.floor(u*r)/r,n(i)),t},t}(t)}var qt=new Date,Wt=new Date;function $t(t,n,e,r){function i(n){return t(n=new Date(+n)),n}return i.floor=i,i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n<e-t?n:e},i.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},i.range=function(e,r,o){var s,a=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e<r&&o>0))return a;do{a.push(s=new Date(+e)),n(e,o),t(e)}while(s<e&&e<r);return a},i.filter=function(e){return $t((function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(i.count=function(n,r){return qt.setTime(+n),Wt.setTime(+r),t(qt),t(Wt),Math.floor(e(qt,Wt))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var Qt=$t((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));Qt.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?$t((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):Qt:null};var Zt=6e4,Jt=6048e5,Kt=($t((function(t){t.setTime(1e3*Math.floor(t/1e3))}),(function(t,n){t.setTime(+t+1e3*n)}),(function(t,n){return(n-t)/1e3}),(function(t){return t.getUTCSeconds()})),$t((function(t){t.setTime(Math.floor(t/Zt)*Zt)}),(function(t,n){t.setTime(+t+n*Zt)}),(function(t,n){return(n-t)/Zt}),(function(t){return t.getMinutes()})),$t((function(t){var n=t.getTimezoneOffset()*Zt%36e5;n<0&&(n+=36e5),t.setTime(36e5*Math.floor((+t-n)/36e5)+n)}),(function(t,n){t.setTime(+t+36e5*n)}),(function(t,n){return(n-t)/36e5}),(function(t){return t.getHours()})),$t((function(t){t.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Zt)/864e5}),(function(t){return t.getDate()-1})));function tn(t){return $t((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Zt)/Jt}))}var nn=tn(0),en=tn(1),rn=(tn(2),tn(3),tn(4)),on=(tn(5),tn(6),$t((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),$t((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));on.every=function(t){return isFinite(t=Math.floor(t))&&t>0?$t((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null};var sn=on,an=($t((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*Zt)}),(function(t,n){return(n-t)/Zt}),(function(t){return t.getUTCMinutes()})),$t((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+36e5*n)}),(function(t,n){return(n-t)/36e5}),(function(t){return t.getUTCHours()})),$t((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/864e5}),(function(t){return t.getUTCDate()-1})));function un(t){return $t((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/Jt}))}var cn=un(0),ln=un(1),hn=(un(2),un(3),un(4)),fn=(un(5),un(6),$t((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),$t((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));fn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?$t((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null};var dn=fn;var pn={"-":"",_:" ",0:"0"},gn=/[\\^$*+?|[\]().{}]/g;function vn(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(n)+i:i)}function yn(t){return t.replace(gn,"\\$&")}function mn(t){return new RegExp("^(?:"+t.map(yn).join("|")+")","i")}function bn(t){for(var n={},e=-1,r=t.length;++e<r;)n[t[e].toLowerCase()]=e;return n}function xn(t,n){return vn(t.getDate(),n,2)}function wn(t,n){return vn(t.getHours(),n,2)}function _n(t,n){return vn(t.getHours()%12||12,n,2)}function En(t,n){return vn(1+Kt.count(sn(t),t),n,3)}function kn(t,n){return vn(t.getMilliseconds(),n,3)}function Mn(t,n){return kn(t,n)+"000"}function On(t,n){return vn(t.getMonth()+1,n,2)}function Nn(t,n){return vn(t.getMinutes(),n,2)}function An(t,n){return vn(t.getSeconds(),n,2)}function Cn(t){var n=t.getDay();return 0===n?7:n}function Tn(t,n){return vn(nn.count(sn(t)-1,t),n,2)}function Sn(t,n){var e=t.getDay();return t=e>=4||0===e?rn(t):rn.ceil(t),vn(rn.count(sn(t),t)+(4===sn(t).getDay()),n,2)}function Ln(t){return t.getDay()}function jn(t,n){return vn(en.count(sn(t)-1,t),n,2)}function Dn(t,n){return vn(t.getFullYear()%100,n,2)}function Pn(t,n){return vn(t.getFullYear()%1e4,n,4)}function Gn(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+vn(n/60|0,"0",2)+vn(n%60,"0",2)}function Fn(t,n){return vn(t.getUTCDate(),n,2)}function In(t,n){return vn(t.getUTCHours(),n,2)}function zn(t,n){return vn(t.getUTCHours()%12||12,n,2)}function Bn(t,n){return vn(1+an.count(dn(t),t),n,3)}function Rn(t,n){return vn(t.getUTCMilliseconds(),n,3)}function Vn(t,n){return Rn(t,n)+"000"}function Un(t,n){return vn(t.getUTCMonth()+1,n,2)}function Yn(t,n){return vn(t.getUTCMinutes(),n,2)}function Hn(t,n){return vn(t.getUTCSeconds(),n,2)}function Xn(t){var n=t.getUTCDay();return 0===n?7:n}function qn(t,n){return vn(cn.count(dn(t)-1,t),n,2)}function Wn(t,n){var e=t.getUTCDay();return t=e>=4||0===e?hn(t):hn.ceil(t),vn(hn.count(dn(t),t)+(4===dn(t).getUTCDay()),n,2)}function $n(t){return t.getUTCDay()}function Qn(t,n){return vn(ln.count(dn(t)-1,t),n,2)}function Zn(t,n){return vn(t.getUTCFullYear()%100,n,2)}function Jn(t,n){return vn(t.getUTCFullYear()%1e4,n,4)}function Kn(){return"+0000"}function te(){return"%"}function ne(t){return+t}function ee(t){return Math.floor(+t/1e3)}!function(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,s=t.shortDays,a=t.months,u=t.shortMonths,c=(mn(i),bn(i),mn(o),bn(o),mn(s),bn(s),mn(a),bn(a),mn(u),bn(u),{a:function(t){return s[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:xn,e:xn,f:Mn,H:wn,I:_n,j:En,L:kn,m:On,M:Nn,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:ne,s:ee,S:An,u:Cn,U:Tn,V:Sn,w:Ln,W:jn,x:null,X:null,y:Dn,Y:Pn,Z:Gn,"%":te}),l={a:function(t){return s[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:Fn,e:Fn,f:Vn,H:In,I:zn,j:Bn,L:Rn,m:Un,M:Yn,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:ne,s:ee,S:Hn,u:Xn,U:qn,V:Wn,w:$n,W:Qn,x:null,X:null,y:Zn,Y:Jn,Z:Kn,"%":te};function h(t,n){return function(e){var r,i,o,s=[],a=-1,u=0,c=t.length;for(e instanceof Date||(e=new Date(+e));++a<c;)37===t.charCodeAt(a)&&(s.push(t.slice(u,a)),null!=(i=pn[r=t.charAt(++a)])?r=t.charAt(++a):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),s.push(r),u=a+1);return s.push(t.slice(u,a)),s.join("")}}c.x=h(e,c),c.X=h(r,c),c.c=h(n,c),l.x=h(e,l),l.X=h(r,l),l.c=h(n,l)}({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 re=function(t){return t.match(/.{6}/g).map((function(t){return"#"+t}))},ie=(re("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),re("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),re("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),re("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),Math.PI/180),oe=180/Math.PI,se=-.14861,ae=1.78277,ue=-.29227,ce=-.90649,le=1.97294,he=le*ce,fe=le*ae,de=ae*ue-ce*se;function pe(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof ge)return new ge(t.h,t.s,t.l,t.opacity);t instanceof T||(t=A(t));var n=t.g/255,e=t.b/255,r=(de*e+he*(t.r/255)-fe*n)/(de+he-fe),i=e-r,o=(le*(n-r)-ue*i)/ce,s=Math.sqrt(o*o+i*i)/(le*r*(1-r)),a=s?Math.atan2(o,i)*oe-120:NaN;return new ge(a<0?a+360:a,s,r,t.opacity)}(t):new ge(t,n,e,null==r?1:r)}function ge(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function ve(t){return function n(e){function r(n,r){var i=t((n=pe(n)).h,(r=pe(r)).h),o=ft(n.s,r.s),s=ft(n.l,r.l),a=ft(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=o(t),n.l=s(Math.pow(t,e)),n.opacity=a(t),n+""}}return e=+e,r.gamma=n,r}(1)}c(ge,pe,l(h,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new ge(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ge(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*ie,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new T(255*(n+e*(se*r+ae*i)),255*(n+e*(ue*r+ce*i)),255*(n+e*(le*r)),this.opacity)}})),ve((function(t,n){var e=n-t;return e?ht(t,e>180||e<-180?e-360*Math.round(e/360):e):lt(isNaN(t)?n:t)}));var ye=ve(ft);function me(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}ye(pe(300,.5,0),pe(-240,.5,1)),ye(pe(-100,.75,.35),pe(80,1.5,.8)),ye(pe(260,.75,.35),pe(80,1.5,.8)),pe(),me(re("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),me(re("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),me(re("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),me(re("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));var be={value:function(){}};function xe(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new we(r)}function we(t){this._=t}function _e(t,n){return t.trim().split(/^|\s+/).map((function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))}function Ee(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function ke(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=be,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}we.prototype=xe.prototype={constructor:we,on:function(t,n){var e,r=this._,i=_e(t+"",r),o=-1,s=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o<s;)if(e=(t=i[o]).type)r[e]=ke(r[e],t.name,n);else if(null==n)for(e in r)r[e]=ke(r[e],t.name,null);return this}for(;++o<s;)if((e=(t=i[o]).type)&&(e=Ee(r[e],t.name)))return e},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new we(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),o=0;o<e;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,e=(r=this._[t]).length;o<e;++o)r[o].value.apply(n,i)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}};var Me=xe,Oe={},Ne=null;function Ae(t,n,e){return t=Ce(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function Ce(t,n,e){return function(r){var i=Ne;Ne=r;try{t.call(this,this.__data__,n,e)}finally{Ne=i}}}function Te(t){return t.trim().split(/^|\s+/).map((function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}function Se(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.capture);++i?n.length=i:delete this.__on}}}function Le(t,n,e){var r=Oe.hasOwnProperty(t.type)?Ae:Ce;return function(i,o,s){var a,u=this.__on,c=r(n,o,s);if(u)for(var l=0,h=u.length;l<h;++l)if((a=u[l]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=c,a.capture=e),void(a.value=n);this.addEventListener(t.type,c,e),a={type:t.type,name:t.name,value:n,listener:c,capture:e},u?u.push(a):this.__on=[a]}}function je(){}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Oe={mouseenter:"mouseover",mouseleave:"mouseout"}));var De=function(t){return null==t?je:function(){return this.querySelector(t)}};function Pe(){return[]}var Ge=function(t){return null==t?Pe:function(){return this.querySelectorAll(t)}},Fe=function(t){return function(){return this.matches(t)}},Ie=function(t){return new Array(t.length)};function ze(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}ze.prototype={constructor:ze,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Be="$";function Re(t,n,e,r,i,o){for(var s,a=0,u=n.length,c=o.length;a<c;++a)(s=n[a])?(s.__data__=o[a],r[a]=s):e[a]=new ze(t,o[a]);for(;a<u;++a)(s=n[a])&&(i[a]=s)}function Ve(t,n,e,r,i,o,s){var a,u,c,l={},h=n.length,f=o.length,d=new Array(h);for(a=0;a<h;++a)(u=n[a])&&(d[a]=c=Be+s.call(u,u.__data__,a,n),c in l?i[a]=u:l[c]=u);for(a=0;a<f;++a)(u=l[c=Be+s.call(t,o[a],a,o)])?(r[a]=u,u.__data__=o[a],l[c]=null):e[a]=new ze(t,o[a]);for(a=0;a<h;++a)(u=n[a])&&l[d[a]]===u&&(i[a]=u)}function Ue(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}var Ye="http://www.w3.org/1999/xhtml",He={svg:"http://www.w3.org/2000/svg",xhtml:Ye,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Xe=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),He.hasOwnProperty(n)?{space:He[n],local:t}:t};function qe(t){return function(){this.removeAttribute(t)}}function We(t){return function(){this.removeAttributeNS(t.space,t.local)}}function $e(t,n){return function(){this.setAttribute(t,n)}}function Qe(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Ze(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function Je(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}var Ke=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function tr(t){return function(){this.style.removeProperty(t)}}function nr(t,n,e){return function(){this.style.setProperty(t,n,e)}}function er(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function rr(t,n){return t.style.getPropertyValue(n)||Ke(t).getComputedStyle(t,null).getPropertyValue(n)}function ir(t){return function(){delete this[t]}}function or(t,n){return function(){this[t]=n}}function sr(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function ar(t){return t.trim().split(/^|\s+/)}function ur(t){return t.classList||new cr(t)}function cr(t){this._node=t,this._names=ar(t.getAttribute("class")||"")}function lr(t,n){for(var e=ur(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function hr(t,n){for(var e=ur(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function fr(t){return function(){lr(this,t)}}function dr(t){return function(){hr(this,t)}}function pr(t,n){return function(){(n.apply(this,arguments)?lr:hr)(this,t)}}function gr(){this.textContent=""}function vr(t){return function(){this.textContent=t}}function yr(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function mr(){this.innerHTML=""}function br(t){return function(){this.innerHTML=t}}function xr(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function wr(){this.nextSibling&&this.parentNode.appendChild(this)}function _r(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Er(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===Ye&&n.documentElement.namespaceURI===Ye?n.createElement(t):n.createElementNS(e,t)}}function kr(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}cr.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Mr=function(t){var n=Xe(t);return(n.local?kr:Er)(n)};function Or(){return null}function Nr(){var t=this.parentNode;t&&t.removeChild(this)}function Ar(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Cr(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Tr(t,n,e){var r=Ke(t),i=r.CustomEvent;"function"==typeof i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function Sr(t,n){return function(){return Tr(this,t,n)}}function Lr(t,n){return function(){return Tr(this,t,n.apply(this,arguments))}}var jr=[null];function Dr(t,n){this._groups=t,this._parents=n}function Pr(){return new Dr([[document.documentElement]],jr)}Dr.prototype=Pr.prototype={constructor:Dr,select:function(t){"function"!=typeof t&&(t=De(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,s,a=n[i],u=a.length,c=r[i]=new Array(u),l=0;l<u;++l)(o=a[l])&&(s=t.call(o,o.__data__,l,a))&&("__data__"in o&&(s.__data__=o.__data__),c[l]=s);return new Dr(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=Ge(t));for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var s,a=n[o],u=a.length,c=0;c<u;++c)(s=a[c])&&(r.push(t.call(s,s.__data__,c,a)),i.push(s));return new Dr(r,i)},filter:function(t){"function"!=typeof t&&(t=Fe(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,s=n[i],a=s.length,u=r[i]=[],c=0;c<a;++c)(o=s[c])&&t.call(o,o.__data__,c,s)&&u.push(o);return new Dr(r,this._parents)},data:function(t,n){if(!t)return p=new Array(this.size()),l=-1,this.each((function(t){p[++l]=t})),p;var e,r=n?Ve:Re,i=this._parents,o=this._groups;"function"!=typeof t&&(e=t,t=function(){return e});for(var s=o.length,a=new Array(s),u=new Array(s),c=new Array(s),l=0;l<s;++l){var h=i[l],f=o[l],d=f.length,p=t.call(h,h&&h.__data__,l,i),g=p.length,v=u[l]=new Array(g),y=a[l]=new Array(g);r(h,f,v,y,c[l]=new Array(d),p,n);for(var m,b,x=0,w=0;x<g;++x)if(m=v[x]){for(x>=w&&(w=x+1);!(b=y[w])&&++w<g;);m._next=b||null}}return(a=new Dr(a,i))._enter=u,a._exit=c,a},enter:function(){return new Dr(this._enter||this._groups.map(Ie),this._parents)},exit:function(){return new Dr(this._exit||this._groups.map(Ie),this._parents)},join:function(t,n,e){var r=this.enter(),i=this,o=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=n&&(i=n(i)),null==e?o.remove():e(o),r&&i?r.merge(i).order():i},merge:function(t){for(var n=this._groups,e=t._groups,r=n.length,i=Math.min(r,e.length),o=new Array(r),s=0;s<i;++s)for(var a,u=n[s],c=e[s],l=u.length,h=o[s]=new Array(l),f=0;f<l;++f)(a=u[f]||c[f])&&(h[f]=a);for(;s<r;++s)o[s]=n[s];return new Dr(o,this._parents)},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,s=i[o];--o>=0;)(r=i[o])&&(s&&4^r.compareDocumentPosition(s)&&s.parentNode.insertBefore(r,s),s=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=Ue);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var s,a=e[o],u=a.length,c=i[o]=new Array(u),l=0;l<u;++l)(s=a[l])&&(c[l]=s);c.sort(n)}return new Dr(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),n=-1;return this.each((function(){t[++n]=this})),t},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],s=0,a=o.length;s<a;++s)(i=o[s])&&t.call(i,i.__data__,s,o);return this},attr:function(t,n){var e=Xe(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?We:qe:"function"==typeof n?e.local?Je:Ze:e.local?Qe:$e)(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?tr:"function"==typeof n?er:nr)(t,n,null==e?"":e)):rr(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?ir:"function"==typeof n?sr:or)(t,n)):this.node()[t]},classed:function(t,n){var e=ar(t+"");if(arguments.length<2){for(var r=ur(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?pr:n?fr:dr)(e,n))},text:function(t){return arguments.length?this.each(null==t?gr:("function"==typeof t?yr:vr)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?mr:("function"==typeof t?xr:br)(t)):this.node().innerHTML},raise:function(){return this.each(wr)},lower:function(){return this.each(_r)},append:function(t){var n="function"==typeof t?t:Mr(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var e="function"==typeof t?t:Mr(t),r=null==n?Or:"function"==typeof n?n:De(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Nr)},clone:function(t){return this.select(t?Cr:Ar)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,o=Te(t+""),s=o.length;if(!(arguments.length<2)){for(a=n?Le:Se,null==e&&(e=!1),r=0;r<s;++r)this.each(a(o[r],n,e));return this}var a=this.node().__on;if(a)for(var u,c=0,l=a.length;c<l;++c)for(r=0,u=a[c];r<s;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value},dispatch:function(t,n){return this.each(("function"==typeof n?Lr:Sr)(t,n))}};var Gr,Fr,Ir=Pr,zr=function(t){return"string"==typeof t?new Dr([[document.querySelector(t)]],[document.documentElement]):new Dr([[t]],jr)},Br=0,Rr=0,Vr=0,Ur=1e3,Yr=0,Hr=0,Xr=0,qr="object"==typeof performance&&performance.now?performance:Date,Wr="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function $r(){return Hr||(Wr(Qr),Hr=qr.now()+Xr)}function Qr(){Hr=0}function Zr(){this._call=this._time=this._next=null}function Jr(t,n,e){var r=new Zr;return r.restart(t,n,e),r}function Kr(){$r(),++Br;for(var t,n=Gr;n;)(t=Hr-n._time)>=0&&n._call.call(null,t),n=n._next;--Br}function ti(){Hr=(Yr=qr.now())+Xr,Br=Rr=0;try{Kr()}finally{Br=0,function(){for(var t,n,e=Gr,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Gr=n);Fr=t,ei(r)}(),Hr=0}}function ni(){var t=qr.now(),n=t-Yr;n>Ur&&(Xr-=n,Yr=t)}function ei(t){Br||(Rr&&(Rr=clearTimeout(Rr)),t-Hr>24?(t<1/0&&(Rr=setTimeout(ti,t-qr.now()-Xr)),Vr&&(Vr=clearInterval(Vr))):(Vr||(Yr=qr.now(),Vr=setInterval(ni,Ur)),Br=1,Wr(ti)))}Zr.prototype=Jr.prototype={constructor:Zr,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?$r():+e)+(null==n?0:+n),this._next||Fr===this||(Fr?Fr._next=this:Gr=this,Fr=this),this._call=t,this._time=e,ei()},stop:function(){this._call&&(this._call=null,this._time=1/0,ei())}};var ri=function(t,n,e){var r=new Zr;return r.restart((function(e){r.stop(),t(e+n)}),n=null==n?0:+n,e),r},ii=Me("start","end","cancel","interrupt"),oi=[],si=0,ai=1,ui=2,ci=3,li=4,hi=5,fi=6,di=function(t,n,e,r,i,o){var s=t.__transition;if(s){if(e in s)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(u){var c,l,h,f;if(e.state!==ai)return a();for(c in i)if((f=i[c]).name===e.name){if(f.state===ci)return ri(o);f.state===li?(f.state=fi,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<n&&(f.state=fi,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(ri((function(){e.state===ci&&(e.state=li,e.timer.restart(s,e.delay,e.time),s(u))})),e.state=ui,e.on.call("start",t,t.__data__,e.index,e.group),e.state===ui){for(e.state=ci,r=new Array(h=e.tween.length),c=0,l=-1;c<h;++c)(f=e.tween[c].value.call(t,t.__data__,e.index,e.group))&&(r[++l]=f);r.length=l+1}}function s(n){for(var i=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(a),e.state=hi,1),o=-1,s=r.length;++o<s;)r[o].call(t,i);e.state===hi&&(e.on.call("end",t,t.__data__,e.index,e.group),a())}function a(){for(var r in e.state=fi,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=Jr((function(t){e.state=ai,e.timer.restart(o,e.delay,e.time),e.delay<=t&&o(t-e.delay)}),0,e.time)}(t,e,{name:n,index:r,group:i,on:ii,tween:oi,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:si})};function pi(t,n){var e=vi(t,n);if(e.state>si)throw new Error("too late; already scheduled");return e}function gi(t,n){var e=vi(t,n);if(e.state>ci)throw new Error("too late; already running");return e}function vi(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}var yi,mi,bi,xi,wi=180/Math.PI,_i={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Ei=function(t,n,e,r,i,o){var s,a,u;return(s=Math.sqrt(t*t+n*n))&&(t/=s,n/=s),(u=t*e+n*r)&&(e-=t*u,r-=n*u),(a=Math.sqrt(e*e+r*r))&&(e/=a,r/=a,u/=a),t*r<n*e&&(t=-t,n=-n,u=-u,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*wi,skewX:Math.atan(u)*wi,scaleX:s,scaleY:a}};function ki(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}return function(o,s){var a=[],u=[];return o=t(o),s=t(s),function(t,r,i,o,s,a){if(t!==i||r!==o){var u=s.push("translate(",null,n,null,e);a.push({i:u-4,x:ut(t,i)},{i:u-2,x:ut(r,o)})}else(i||o)&&s.push("translate("+i+n+o+e)}(o.translateX,o.translateY,s.translateX,s.translateY,a,u),function(t,n,e,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:ut(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,s.rotate,a,u),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:ut(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,s.skewX,a,u),function(t,n,e,r,o,s){if(t!==e||n!==r){var a=o.push(i(o)+"scale(",null,",",null,")");s.push({i:a-4,x:ut(t,e)},{i:a-2,x:ut(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,a,u),o=s=null,function(t){for(var n,e=-1,r=u.length;++e<r;)a[(n=u[e]).i]=n.x(t);return a.join("")}}}var Mi=ki((function(t){return"none"===t?_i:(yi||(yi=document.createElement("DIV"),mi=document.documentElement,bi=document.defaultView),yi.style.transform=t,t=bi.getComputedStyle(mi.appendChild(yi),null).getPropertyValue("transform"),mi.removeChild(yi),t=t.slice(7,-1).split(","),Ei(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),Oi=ki((function(t){return null==t?_i:(xi||(xi=document.createElementNS("http://www.w3.org/2000/svg","g")),xi.setAttribute("transform",t),(t=xi.transform.baseVal.consolidate())?Ei((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):_i)}),", ",")",")");function Ni(t,n){var e,r;return function(){var i=gi(this,t),o=i.tween;if(o!==e)for(var s=0,a=(r=e=o).length;s<a;++s)if(r[s].name===n){(r=r.slice()).splice(s,1);break}i.tween=r}}function Ai(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=gi(this,t),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:n,value:e},u=0,c=i.length;u<c;++u)if(i[u].name===n){i[u]=a;break}u===c&&i.push(a)}o.tween=i}}function Ci(t,n,e){var r=t._id;return t.each((function(){var t=gi(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)})),function(t){return vi(t,r).value[n]}}var Ti=function(t,n){var e;return("number"==typeof n?ut:n instanceof M?dt:(e=M(n))?(n=e,dt):wt)(t,n)};function Si(t){return function(){this.removeAttribute(t)}}function Li(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ji(t,n,e){var r,i,o=e+"";return function(){var s=this.getAttribute(t);return s===o?null:s===r?i:i=n(r=s,e)}}function Di(t,n,e){var r,i,o=e+"";return function(){var s=this.getAttributeNS(t.space,t.local);return s===o?null:s===r?i:i=n(r=s,e)}}function Pi(t,n,e){var r,i,o;return function(){var s,a,u=e(this);if(null!=u)return(s=this.getAttribute(t))===(a=u+"")?null:s===r&&a===i?o:(i=a,o=n(r=s,u));this.removeAttribute(t)}}function Gi(t,n,e){var r,i,o;return function(){var s,a,u=e(this);if(null!=u)return(s=this.getAttributeNS(t.space,t.local))===(a=u+"")?null:s===r&&a===i?o:(i=a,o=n(r=s,u));this.removeAttributeNS(t.space,t.local)}}function Fi(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}(t,i)),e}return i._value=n,i}function Ii(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}(t,i)),e}return i._value=n,i}function zi(t,n){return function(){pi(this,t).delay=+n.apply(this,arguments)}}function Bi(t,n){return n=+n,function(){pi(this,t).delay=n}}function Ri(t,n){return function(){gi(this,t).duration=+n.apply(this,arguments)}}function Vi(t,n){return n=+n,function(){gi(this,t).duration=n}}function Ui(t,n){if("function"!=typeof n)throw new Error;return function(){gi(this,t).ease=n}}function Yi(t,n,e){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?pi:gi;return function(){var s=o(this,t),a=s.on;a!==r&&(i=(r=a).copy()).on(n,e),s.on=i}}var Hi=Ir.prototype.constructor;function Xi(t){return function(){this.style.removeProperty(t)}}function qi(t,n,e){var r,i;function o(){var o=n.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}(t,o,e)),r}return o._value=n,o}function Wi(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&function(t){return function(n){this.textContent=t.call(this,n)}}(r)),n}return r._value=t,r}var $i=0;function Qi(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function Zi(){return++$i}var Ji=Ir.prototype;Qi.prototype=(function(t){return Ir().transition(t)}).prototype={constructor:Qi,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=De(t));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var a,u,c=r[s],l=c.length,h=o[s]=new Array(l),f=0;f<l;++f)(a=c[f])&&(u=t.call(a,a.__data__,f,c))&&("__data__"in a&&(u.__data__=a.__data__),h[f]=u,di(h[f],n,e,f,h,vi(a,e)));return new Qi(o,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=Ge(t));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var u,c=r[a],l=c.length,h=0;h<l;++h)if(u=c[h]){for(var f,d=t.call(u,u.__data__,h,c),p=vi(u,e),g=0,v=d.length;g<v;++g)(f=d[g])&&di(f,n,e,g,d,p);o.push(d),s.push(u)}return new Qi(o,s,n,e)},filter:function(t){"function"!=typeof t&&(t=Fe(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,s=n[i],a=s.length,u=r[i]=[],c=0;c<a;++c)(o=s[c])&&t.call(o,o.__data__,c,s)&&u.push(o);return new Qi(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=Math.min(r,e.length),o=new Array(r),s=0;s<i;++s)for(var a,u=n[s],c=e[s],l=u.length,h=o[s]=new Array(l),f=0;f<l;++f)(a=u[f]||c[f])&&(h[f]=a);for(;s<r;++s)o[s]=n[s];return new Qi(o,this._parents,this._name,this._id)},selection:function(){return new Hi(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=Zi(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s,a=r[o],u=a.length,c=0;c<u;++c)if(s=a[c]){var l=vi(s,n);di(s,t,e,c,a,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Qi(r,this._parents,t,e)},call:Ji.call,nodes:Ji.nodes,node:Ji.node,size:Ji.size,empty:Ji.empty,each:Ji.each,on:function(t,n){var e=this._id;return arguments.length<2?vi(this.node(),e).on.on(t):this.each(Yi(e,t,n))},attr:function(t,n){var e=Xe(t),r="transform"===e?Oi:Ti;return this.attrTween(t,"function"==typeof n?(e.local?Gi:Pi)(e,r,Ci(this,"attr."+t,n)):null==n?(e.local?Li:Si)(e):(e.local?Di:ji)(e,r,n))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=Xe(t);return this.tween(e,(r.local?Fi:Ii)(r,n))},style:function(t,n,e){var r="transform"==(t+="")?Mi:Ti;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=rr(this,t),s=(this.style.removeProperty(t),rr(this,t));return o===s?null:o===e&&s===r?i:i=n(e=o,r=s)}}(t,r)).on("end.style."+t,Xi(t)):"function"==typeof n?this.styleTween(t,function(t,n,e){var r,i,o;return function(){var s=rr(this,t),a=e(this),u=a+"";return null==a&&(this.style.removeProperty(t),u=a=rr(this,t)),s===u?null:s===r&&u===i?o:(i=u,o=n(r=s,a))}}(t,r,Ci(this,"style."+t,n))).each(function(t,n){var e,r,i,o,s="style."+n,a="end."+s;return function(){var u=gi(this,t),c=u.on,l=null==u.value[s]?o||(o=Xi(n)):void 0;c===e&&i===l||(r=(e=c).copy()).on(a,i=l),u.on=r}}(this._id,t)):this.styleTween(t,function(t,n,e){var r,i,o=e+"";return function(){var s=rr(this,t);return s===o?null:s===r?i:i=n(r=s,e)}}(t,r,n),e).on("end.style."+t,null)},styleTween:function(t,n,e){var r="style."+(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;return this.tween(r,qi(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(Ci(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,Wi(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}));var t},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=vi(this.node(),e).tween,o=0,s=i.length;o<s;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?Ni:Ai)(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?zi:Bi)(n,t)):vi(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Ri:Vi)(n,t)):vi(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(Ui(n,t)):vi(this.node(),n).ease},end:function(){var t,n,e=this,r=e._id,i=e.size();return new Promise((function(o,s){var a={value:s},u={value:function(){0==--i&&o()}};e.each((function(){var e=gi(this,r),i=e.on;i!==t&&((n=(t=i).copy())._.cancel.push(a),n._.interrupt.push(a),n._.end.push(u)),e.on=n}))}))}};var Ki={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function to(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return Ki.time=$r(),Ki;return e}function no(t){return{type:t}}function eo(t){this._context=t}Ir.prototype.interrupt=function(t){return this.each((function(){!function(t,n){var e,r,i,o=t.__transition,s=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>ui&&e.state<hi,e.state=fi,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete o[i]):s=!1;s&&delete t.__transition}}(this,t)}))},Ir.prototype.transition=function(t){var n,e;t instanceof Qi?(n=t._id,t=t._name):(n=Zi(),(e=Ki).time=$r(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s,a=r[o],u=a.length,c=0;c<u;++c)(s=a[c])&&di(s,t,n,c,a,e||to(s,n));return new Qi(r,this._parents,t,n)},["w","e"].map(no),["n","s"].map(no),["n","w","e","s","nw","ne","sw","se"].map(no),eo.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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var ro=function(t){return new eo(t)},io=Math.PI,oo=2*io,so=oo-1e-6;function ao(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function uo(){return new ao}ao.prototype=uo.prototype={constructor:ao,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,r,i){var o=this._x1,s=this._y1,a=(e=+e)-(t=+t),u=(r=+r)-(n=+n),c=o-t,l=s-n,h=c*c+l*l;if((i=+i)<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(h>1e-6)if(Math.abs(l*a-u*c)>1e-6&&i){var f=e-o,d=r-s,p=a*a+u*u,g=f*f+d*d,v=Math.sqrt(p),y=Math.sqrt(h),m=i*Math.tan((io-Math.acos((p+h-g)/(2*v*y)))/2),b=m/y,x=m/v;Math.abs(b-1)>1e-6&&(this._+="L"+(t+b*c)+","+(n+b*l)),this._+="A"+i+","+i+",0,0,"+ +(l*f>c*d)+","+(this._x1=t+x*a)+","+(this._y1=n+x*u)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,r,i,o){t=+t,n=+n;var s=(e=+e)*Math.cos(r),a=e*Math.sin(r),u=t+s,c=n+a,l=1^o,h=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+u+","+c:(Math.abs(this._x1-u)>1e-6||Math.abs(this._y1-c)>1e-6)&&(this._+="L"+u+","+c),e&&(h<0&&(h=h%oo+oo),h>so?this._+="A"+e+","+e+",0,1,"+l+","+(t-s)+","+(n-a)+"A"+e+","+e+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):h>1e-6&&(this._+="A"+e+","+e+",0,"+ +(h>=io)+","+l+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};var co=uo,lo=function(t){return function(){return t}};function ho(t){return t[0]}function fo(t){return t[1]}var po=function(){var t=ho,n=fo,e=lo(!0),r=null,i=ro,o=null;function s(s){var a,u,c,l=s.length,h=!1;for(null==r&&(o=i(c=co())),a=0;a<=l;++a)!(a<l&&e(u=s[a],a,s))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(u,a,s),+n(u,a,s));if(c)return o=null,c+""||null}return s.x=function(n){return arguments.length?(t="function"==typeof n?n:lo(+n),s):t},s.y=function(t){return arguments.length?(n="function"==typeof t?t:lo(+t),s):n},s.defined=function(t){return arguments.length?(e="function"==typeof t?t:lo(!!t),s):e},s.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),s):i},s.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),s):r},s},go=function(){};function vo(t,n,e){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-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function yo(t,n){this._context=t,this._k=(1-n)/6}function mo(t,n){this._context=t,this._k=(1-n)/6}function bo(t){this._curve=t}yo.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:vo(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:vo(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(t){return new yo(t,n)}return e.tension=function(n){return t(+n)},e}(0),mo.prototype={areaStart:go,areaEnd:go,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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:vo(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(t){return new mo(t,n)}return e.tension=function(n){return t(+n)},e}(0),bo.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math;var xo=function(t,n){var e;function r(){var r,i,o=e.length,s=0,a=0;for(r=0;r<o;++r)s+=(i=e[r]).x,a+=i.y;for(s=s/o-t,a=a/o-n,r=0;r<o;++r)(i=e[r]).x-=s,i.y-=a}return null==t&&(t=0),null==n&&(n=0),r.initialize=function(t){e=t},r.x=function(n){return arguments.length?(t=+n,r):t},r.y=function(t){return arguments.length?(n=+t,r):n},r},wo=function(t){return function(){return t}},_o=function(){return 1e-6*(Math.random()-.5)};function Eo(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,o,s,a,u,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=n>=(o=(g+y)/2))?g=o:y=o,(l=e>=(s=(v+m)/2))?v=s:m=s,i=d,!(d=d[h=l<<1|c]))return i[h]=p,t;if(a=+t._x.call(null,d.data),u=+t._y.call(null,d.data),n===a&&e===u)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=n>=(o=(g+y)/2))?g=o:y=o,(l=e>=(s=(v+m)/2))?v=s:m=s}while((h=l<<1|c)==(f=(u>=s)<<1|a>=o));return i[f]=d,i[h]=p,t}var ko=function(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i};function Mo(t){return t[0]}function Oo(t){return t[1]}function No(t,n,e){var r=new Ao(null==n?Mo:n,null==e?Oo:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Ao(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Co(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var To=No.prototype=Ao.prototype;function So(t){return t.x+t.vx}function Lo(t){return t.y+t.vy}To.copy=function(){var t,n,e=new Ao(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=Co(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=Co(n));return e},To.add=function(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return Eo(this.cover(n,e),n,e,t)},To.addAll=function(t){var n,e,r,i,o=t.length,s=new Array(o),a=new Array(o),u=1/0,c=1/0,l=-1/0,h=-1/0;for(e=0;e<o;++e)isNaN(r=+this._x.call(null,n=t[e]))||isNaN(i=+this._y.call(null,n))||(s[e]=r,a[e]=i,r<u&&(u=r),r>l&&(l=r),i<c&&(c=i),i>h&&(h=i));for(l<u&&(u=this._x0,l=this._x1),h<c&&(c=this._y0,h=this._y1),this.cover(u,c).cover(l,h),e=0;e<o;++e)Eo(this,s[e],a[e],t[e]);return this},To.cover=function(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var e=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(e))i=(e=Math.floor(t))+1,o=(r=Math.floor(n))+1;else{if(!(e>t||t>i||r>n||n>o))return this;var s,a,u=i-e,c=this._root;switch(a=(n<(r+o)/2)<<1|t<(e+i)/2){case 0:do{(s=new Array(4))[a]=c,c=s}while(o=r+(u*=2),t>(i=e+u)||n>o);break;case 1:do{(s=new Array(4))[a]=c,c=s}while(o=r+(u*=2),(e=i-u)>t||n>o);break;case 2:do{(s=new Array(4))[a]=c,c=s}while(r=o-(u*=2),t>(i=e+u)||r>n);break;case 3:do{(s=new Array(4))[a]=c,c=s}while(r=o-(u*=2),(e=i-u)>t||r>n)}this._root&&this._root.length&&(this._root=c)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this},To.data=function(){var t=[];return this.visit((function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)})),t},To.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},To.find=function(t,n,e){var r,i,o,s,a,u,c,l=this._x0,h=this._y0,f=this._x1,d=this._y1,p=[],g=this._root;for(g&&p.push(new ko(g,l,h,f,d)),null==e?e=1/0:(l=t-e,h=n-e,f=t+e,d=n+e,e*=e);u=p.pop();)if(!(!(g=u.node)||(i=u.x0)>f||(o=u.y0)>d||(s=u.x1)<l||(a=u.y1)<h))if(g.length){var v=(i+s)/2,y=(o+a)/2;p.push(new ko(g[3],v,y,s,a),new ko(g[2],i,y,v,a),new ko(g[1],v,o,s,y),new ko(g[0],i,o,v,y)),(c=(n>=y)<<1|t>=v)&&(u=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=u)}else{var m=t-+this._x.call(null,g.data),b=n-+this._y.call(null,g.data),x=m*m+b*b;if(x<e){var w=Math.sqrt(e=x);l=t-w,h=n-w,f=t+w,d=n+w,r=g.data}}return r},To.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(s=+this._y.call(null,t)))return this;var n,e,r,i,o,s,a,u,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=o>=(a=(p+v)/2))?p=a:v=a,(l=s>=(u=(g+y)/2))?g=u:y=u,n=d,!(d=d[h=l<<1|c]))return this;if(!d.length)break;(n[h+1&3]||n[h+2&3]||n[h+3&3])&&(e=n,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):n?(i?n[h]=i:delete n[h],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[f]=d:this._root=d),this):(this._root=i,this)},To.removeAll=function(t){for(var n=0,e=t.length;n<e;++n)this.remove(t[n]);return this},To.root=function(){return this._root},To.size=function(){var t=0;return this.visit((function(n){if(!n.length)do{++t}while(n=n.next)})),t},To.visit=function(t){var n,e,r,i,o,s,a=[],u=this._root;for(u&&a.push(new ko(u,this._x0,this._y0,this._x1,this._y1));n=a.pop();)if(!t(u=n.node,r=n.x0,i=n.y0,o=n.x1,s=n.y1)&&u.length){var c=(r+o)/2,l=(i+s)/2;(e=u[3])&&a.push(new ko(e,c,l,o,s)),(e=u[2])&&a.push(new ko(e,r,l,c,s)),(e=u[1])&&a.push(new ko(e,c,i,o,l)),(e=u[0])&&a.push(new ko(e,r,i,c,l))}return this},To.visitAfter=function(t){var n,e=[],r=[];for(this._root&&e.push(new ko(this._root,this._x0,this._y0,this._x1,this._y1));n=e.pop();){var i=n.node;if(i.length){var o,s=n.x0,a=n.y0,u=n.x1,c=n.y1,l=(s+u)/2,h=(a+c)/2;(o=i[0])&&e.push(new ko(o,s,a,l,h)),(o=i[1])&&e.push(new ko(o,l,a,u,h)),(o=i[2])&&e.push(new ko(o,s,h,l,c)),(o=i[3])&&e.push(new ko(o,l,h,u,c))}r.push(n)}for(;n=r.pop();)t(n.node,n.x0,n.y0,n.x1,n.y1);return this},To.x=function(t){return arguments.length?(this._x=t,this):this._x},To.y=function(t){return arguments.length?(this._y=t,this):this._y};var jo=function(t){var n,e,r=1,i=1;function o(){for(var t,o,a,u,c,l,h,f=n.length,d=0;d<i;++d)for(o=No(n,So,Lo).visitAfter(s),t=0;t<f;++t)h=(l=e[(a=n[t]).index])*l,u=a.x+a.vx,c=a.y+a.vy,o.visit(p);function p(t,n,e,i,o){var s=t.data,f=t.r,d=l+f;if(!s)return n>u+d||i<u-d||e>c+d||o<c-d;if(s.index>a.index){var p=u-s.x-s.vx,g=c-s.y-s.vy,v=p*p+g*g;v<d*d&&(0===p&&(v+=(p=_o())*p),0===g&&(v+=(g=_o())*g),v=(d-(v=Math.sqrt(v)))/v*r,a.vx+=(p*=v)*(d=(f*=f)/(h+f)),a.vy+=(g*=v)*d,s.vx-=p*(d=1-d),s.vy-=g*d)}}}function s(t){if(t.data)return t.r=e[t.data.index];for(var n=t.r=0;n<4;++n)t[n]&&t[n].r>t.r&&(t.r=t[n].r)}function a(){if(n){var r,i,o=n.length;for(e=new Array(o),r=0;r<o;++r)e[(i=n[r]).index]=+t(i,r,n)}}return"function"!=typeof t&&(t=wo(null==t?1:+t)),o.initialize=function(t){n=t,a()},o.iterations=function(t){return arguments.length?(i=+t,o):i},o.strength=function(t){return arguments.length?(r=+t,o):r},o.radius=function(n){return arguments.length?(t="function"==typeof n?n:wo(+n),a(),o):t},o};function Do(t){return t.index}function Po(t,n){var e=t.get(n);if(!e)throw new Error("missing: "+n);return e}var Go=function(t){var n,e,r,i,o,s=Do,a=function(t){return 1/Math.min(i[t.source.index],i[t.target.index])},u=wo(30),c=1;function l(r){for(var i=0,s=t.length;i<c;++i)for(var a,u,l,h,f,d,p,g=0;g<s;++g)h=(l=(a=t[g]).target).x+l.vx-(u=a.source).x-u.vx||_o(),f=l.y+l.vy-u.y-u.vy||_o(),f*=d=((d=Math.sqrt(h*h+f*f))-e[g])/d*r*n[g],l.vx-=(h*=d)*(p=o[g]),l.vy-=f*p,u.vx+=h*(p=1-p),u.vy+=f*p}function h(){if(r){var a,u,c=r.length,l=t.length,h=tt(r,s);for(a=0,i=new Array(c);a<l;++a)(u=t[a]).index=a,"object"!=typeof u.source&&(u.source=Po(h,u.source)),"object"!=typeof u.target&&(u.target=Po(h,u.target)),i[u.source.index]=(i[u.source.index]||0)+1,i[u.target.index]=(i[u.target.index]||0)+1;for(a=0,o=new Array(l);a<l;++a)o[a]=i[(u=t[a]).source.index]/(i[u.source.index]+i[u.target.index]);n=new Array(l),f(),e=new Array(l),d()}}function f(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+a(t[e],e,t)}function d(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+u(t[n],n,t)}return null==t&&(t=[]),l.initialize=function(t){r=t,h()},l.links=function(n){return arguments.length?(t=n,h(),l):t},l.id=function(t){return arguments.length?(s=t,l):s},l.iterations=function(t){return arguments.length?(c=+t,l):c},l.strength=function(t){return arguments.length?(a="function"==typeof t?t:wo(+t),f(),l):a},l.distance=function(t){return arguments.length?(u="function"==typeof t?t:wo(+t),d(),l):u},l};function Fo(t){return t.x}function Io(t){return t.y}var zo=10,Bo=Math.PI*(3-Math.sqrt(5)),Ro=function(t){var n,e=1,r=.001,i=1-Math.pow(r,1/300),o=0,s=.6,a=tt(),u=Jr(l),c=Me("tick","end");function l(){h(),c.call("tick",n),e<r&&(u.stop(),c.call("end",n))}function h(r){var u,c,l=t.length;void 0===r&&(r=1);for(var h=0;h<r;++h)for(e+=(o-e)*i,a.each((function(t){t(e)})),u=0;u<l;++u)null==(c=t[u]).fx?c.x+=c.vx*=s:(c.x=c.fx,c.vx=0),null==c.fy?c.y+=c.vy*=s:(c.y=c.fy,c.vy=0);return n}function f(){for(var n,e=0,r=t.length;e<r;++e){if((n=t[e]).index=e,null!=n.fx&&(n.x=n.fx),null!=n.fy&&(n.y=n.fy),isNaN(n.x)||isNaN(n.y)){var i=zo*Math.sqrt(e),o=e*Bo;n.x=i*Math.cos(o),n.y=i*Math.sin(o)}(isNaN(n.vx)||isNaN(n.vy))&&(n.vx=n.vy=0)}}function d(n){return n.initialize&&n.initialize(t),n}return null==t&&(t=[]),f(),n={tick:h,restart:function(){return u.restart(l),n},stop:function(){return u.stop(),n},nodes:function(e){return arguments.length?(t=e,f(),a.each(d),n):t},alpha:function(t){return arguments.length?(e=+t,n):e},alphaMin:function(t){return arguments.length?(r=+t,n):r},alphaDecay:function(t){return arguments.length?(i=+t,n):+i},alphaTarget:function(t){return arguments.length?(o=+t,n):o},velocityDecay:function(t){return arguments.length?(s=1-t,n):1-s},force:function(t,e){return arguments.length>1?(null==e?a.remove(t):a.set(t,d(e)),n):a.get(t)},find:function(n,e,r){var i,o,s,a,u,c=0,l=t.length;for(null==r?r=1/0:r*=r,c=0;c<l;++c)(s=(i=n-(a=t[c]).x)*i+(o=e-a.y)*o)<r&&(u=a,r=s);return u},on:function(t,e){return arguments.length>1?(c.on(t,e),n):c.on(t)}}},Vo=function(){var t,n,e,r,i=wo(-30),o=1,s=1/0,a=.81;function u(r){var i,o=t.length,s=No(t,Fo,Io).visitAfter(l);for(e=r,i=0;i<o;++i)n=t[i],s.visit(h)}function c(){if(t){var n,e,o=t.length;for(r=new Array(o),n=0;n<o;++n)r[(e=t[n]).index]=+i(e,n,t)}}function l(t){var n,e,i,o,s,a=0,u=0;if(t.length){for(i=o=s=0;s<4;++s)(n=t[s])&&(e=Math.abs(n.value))&&(a+=n.value,u+=e,i+=e*n.x,o+=e*n.y);t.x=i/u,t.y=o/u}else{(n=t).x=n.data.x,n.y=n.data.y;do{a+=r[n.data.index]}while(n=n.next)}t.value=a}function h(t,i,u,c){if(!t.value)return!0;var l=t.x-n.x,h=t.y-n.y,f=c-i,d=l*l+h*h;if(f*f/a<d)return d<s&&(0===l&&(d+=(l=_o())*l),0===h&&(d+=(h=_o())*h),d<o&&(d=Math.sqrt(o*d)),n.vx+=l*t.value*e/d,n.vy+=h*t.value*e/d),!0;if(!(t.length||d>=s)){(t.data!==n||t.next)&&(0===l&&(d+=(l=_o())*l),0===h&&(d+=(h=_o())*h),d<o&&(d=Math.sqrt(o*d)));do{t.data!==n&&(n.vx+=l*(f=r[t.data.index]*e/d),n.vy+=h*f)}while(t=t.next)}}return u.initialize=function(n){t=n,c()},u.strength=function(t){return arguments.length?(i="function"==typeof t?t:wo(+t),c(),u):i},u.distanceMin=function(t){return arguments.length?(o=t*t,u):Math.sqrt(o)},u.distanceMax=function(t){return arguments.length?(s=t*t,u):Math.sqrt(s)},u.theta=function(t){return arguments.length?(a=t*t,u):Math.sqrt(a)},u},Uo=function(t,n,e){var r,i,o,s=wo(.1);function a(t){for(var s=0,a=r.length;s<a;++s){var u=r[s],c=u.x-n||1e-6,l=u.y-e||1e-6,h=Math.sqrt(c*c+l*l),f=(o[s]-h)*i[s]*t/h;u.vx+=c*f,u.vy+=l*f}}function u(){if(r){var n,e=r.length;for(i=new Array(e),o=new Array(e),n=0;n<e;++n)o[n]=+t(r[n],n,r),i[n]=isNaN(o[n])?0:+s(r[n],n,r)}}return"function"!=typeof t&&(t=wo(+t)),null==n&&(n=0),null==e&&(e=0),a.initialize=function(t){r=t,u()},a.strength=function(t){return arguments.length?(s="function"==typeof t?t:wo(+t),u(),a):s},a.radius=function(n){return arguments.length?(t="function"==typeof n?n:wo(+n),u(),a):t},a.x=function(t){return arguments.length?(n=+t,a):n},a.y=function(t){return arguments.length?(e=+t,a):e},a},Yo=function(t){var n,e,r,i=wo(.1);function o(t){for(var i,o=0,s=n.length;o<s;++o)(i=n[o]).vx+=(r[o]-i.x)*e[o]*t}function s(){if(n){var o,s=n.length;for(e=new Array(s),r=new Array(s),o=0;o<s;++o)e[o]=isNaN(r[o]=+t(n[o],o,n))?0:+i(n[o],o,n)}}return"function"!=typeof t&&(t=wo(null==t?0:+t)),o.initialize=function(t){n=t,s()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:wo(+t),s(),o):i},o.x=function(n){return arguments.length?(t="function"==typeof n?n:wo(+n),s(),o):t},o},Ho=function(t){var n,e,r,i=wo(.1);function o(t){for(var i,o=0,s=n.length;o<s;++o)(i=n[o]).vy+=(r[o]-i.y)*e[o]*t}function s(){if(n){var o,s=n.length;for(e=new Array(s),r=new Array(s),o=0;o<s;++o)e[o]=isNaN(r[o]=+t(n[o],o,n))?0:+i(n[o],o,n)}}return"function"!=typeof t&&(t=wo(null==t?0:+t)),o.initialize=function(t){n=t,s()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:wo(+t),s(),o):i},o.y=function(n){return arguments.length?(t="function"==typeof n?n:wo(+n),s(),o):t},o},Xo=function(t,n,e,r,i){for(var o,s=t.children,a=-1,u=s.length,c=t.value&&(r-n)/t.value;++a<u;)(o=s[a]).y0=e,o.y1=i,o.x0=n,o.x1=n+=o.value*c},qo=function(t,n,e,r,i){for(var o,s=t.children,a=-1,u=s.length,c=t.value&&(i-e)/t.value;++a<u;)(o=s[a]).x0=n,o.x1=r,o.y0=e,o.y1=e+=o.value*c};function Wo(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function $o(t,n){var e,r,i,o,s,a=new Ko(t),u=+t.value&&(a.value=t.value),c=[a];for(null==n&&(n=Qo);e=c.pop();)if(u&&(e.value=+e.data.value),(i=n(e.data))&&(s=i.length))for(e.children=new Array(s),o=s-1;o>=0;--o)c.push(r=e.children[o]=new Ko(i[o])),r.parent=e,r.depth=e.depth+1;return a.eachBefore(Jo)}function Qo(t){return t.children}function Zo(t){t.data=t.data.data}function Jo(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function Ko(t){this.data=t,this.depth=this.height=0,this.parent=null}!function t(n){function e(t,e,r,i,o){!function(t,n,e,r,i,o){for(var s,a,u,c,l,h,f,d,p,g,v,y=[],m=n.children,b=0,x=0,w=m.length,_=n.value;b<w;){u=i-e,c=o-r;do{l=m[x++].value}while(!l&&x<w);for(h=f=l,v=l*l*(g=Math.max(c/u,u/c)/(_*t)),p=Math.max(f/v,v/h);x<w;++x){if(l+=a=m[x].value,a<h&&(h=a),a>f&&(f=a),v=l*l*g,(d=Math.max(f/v,v/h))>p){l-=a;break}p=d}y.push(s={value:l,dice:u<c,children:m.slice(b,x)}),s.dice?Xo(s,e,r,i,_?r+=c*l/_:o):qo(s,e,r,_?e+=u*l/_:i,o),_-=l,b=x}}(n,t,e,r,i,o)}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}((1+Math.sqrt(5))/2),Ko.prototype=$o.prototype={constructor:Ko,count:function(){return this.eachAfter(Wo)},each:function(t){var n,e,r,i,o=this,s=[o];do{for(n=s.reverse(),s=[];o=n.pop();)if(t(o),e=o.children)for(r=0,i=e.length;r<i;++r)s.push(e[r])}while(s.length);return this},eachAfter:function(t){for(var n,e,r,i=this,o=[i],s=[];i=o.pop();)if(s.push(i),n=i.children)for(e=0,r=n.length;e<r;++e)o.push(n[e]);for(;i=s.pop();)t(i);return this},eachBefore:function(t){for(var n,e,r=this,i=[r];r=i.pop();)if(t(r),n=r.children)for(e=n.length-1;e>=0;--e)i.push(n[e]);return this},sum:function(t){return this.eachAfter((function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;for(t=e.pop(),n=r.pop();t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)r.push(n=n.parent);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){var t=[];return this.each((function(n){t.push(n)})),t},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(e){e!==t&&n.push({source:e.parent,target:e})})),n},copy:function(){return $o(this).eachBefore(Zo)}},"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains);var ts=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}],ns=function(){function t(t,n){this.element=t,this.zone=n,this.visible=new s.m,this.isVisible=!1,this.runCheck()}return t.prototype.destroy=function(){clearTimeout(this.timeout)},t.prototype.onVisibilityChange=function(){var t=this;this.zone.run((function(){t.isVisible=!0,t.visible.emit(!0)}))},t.prototype.runCheck=function(){var t=this,n=function(){if(t.element){var e=t.element.nativeElement;e.offsetHeight&&e.offsetWidth?(clearTimeout(t.timeout),t.onVisibilityChange()):(clearTimeout(t.timeout),t.zone.runOutsideAngular((function(){t.timeout=setTimeout((function(){return n()}),100)})))}};this.zone.runOutsideAngular((function(){t.timeout=setTimeout((function(){return n()}))}))},t}(),es=function(){function t(t,n,e){this.chartElement=t,this.zone=n,this.cd=e,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new s.m}return t.prototype.ngAfterViewInit=function(){this.bindWindowResizeEvent(),this.visibilityObserver=new ns(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))},t.prototype.ngOnDestroy=function(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())},t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{var t=this.getContainerDims();t&&(this.width=t.width,this.height=t.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()},t.prototype.getContainerDims=function(){var t,n,e=this.chartElement.nativeElement;if(null!==e.parentNode){var r=e.parentNode.getBoundingClientRect();t=r.width,n=r.height}return t&&n?{width:t,height:n}:null},t.prototype.formatDates=function(){for(var t=0;t<this.results.length;t++){var n=this.results[t];if(n.label=n.name,n.label instanceof Date&&(n.label=n.label.toLocaleDateString()),n.series)for(var e=0;e<n.series.length;e++){var r=n.series[e];r.label=r.name,r.label instanceof Date&&(r.label=r.label.toLocaleDateString())}}},t.prototype.unbindEvents=function(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()},t.prototype.bindWindowResizeEvent=function(){var t=this,n=Object(B.a)(window,"resize").pipe(Object(R.a)(200)).subscribe((function(n){t.update(),t.cd&&t.cd.markForCheck()}));this.resizeSubscription=n},t.prototype.cloneData=function(t){for(var n=[],e=0,r=t;e<r.length;e++){var i=r[e],o={name:i.name};if(void 0!==i.value&&(o.value=i.value),void 0!==i.series){o.series=[];for(var s=0,a=i.series;s<a.length;s++){var u=Object.assign({},a[s]);o.series.push(u)}}void 0!==i.extra&&(o.extra=JSON.parse(JSON.stringify(i.extra))),n.push(o)}return n},t}(),rs=function(){function t(t,n,e,r){"string"==typeof t&&(t=ts.find((function(n){return n.name===t}))),this.colorDomain=t.domain,this.scaleType=n,this.domain=e,this.customColors=r,this.scale=this.generateColorScheme(t,n,this.domain)}return t.prototype.generateColorScheme=function(t,n,e){var r;if("string"==typeof t&&(t=ts.find((function(n){return n.name===t}))),"quantile"===n)r=function t(){var n=[],e=[],r=[];function i(){var t=0,i=Math.max(1,e.length);for(r=new Array(i-1);++t<i;)r[t-1]=Z(n,t/i);return o}function o(t){if(!isNaN(t=+t))return e[U(r,t)]}return o.invertExtent=function(t){var i=e.indexOf(t);return i<0?[NaN,NaN]:[i>0?r[i-1]:n[0],i<r.length?r[i]:n[n.length-1]]},o.domain=function(t){if(!arguments.length)return n.slice();n=[];for(var e,r=0,o=t.length;r<o;++r)null==(e=t[r])||isNaN(e=+e)||n.push(e);return n.sort(V),i()},o.range=function(t){return arguments.length?(e=ot.call(t),i()):e.slice()},o.quantiles=function(){return r.slice()},o.copy=function(){return t().domain(n).range(e)},o}().range(t.domain).domain(e);else if("ordinal"===n)r=at().range(t.domain).domain(e);else if("linear"===n){var i=t.domain.slice();1===i.length&&(i.push(i[0]),this.colorDomain=i);var o=H(0,1,1/i.length);r=Xt().domain(o).range(i)}return r},t.prototype.getColor=function(t){if(null==t)throw new Error("Value can not be null");if("linear"===this.scaleType){var n=Xt().domain(this.domain).range([0,1]);return this.scale(n(t))}if("function"==typeof this.customColors)return this.customColors(t);var e=t.toString(),r=void 0;return this.customColors&&this.customColors.length>0&&(r=this.customColors.find((function(t){return t.name.toLowerCase()===e.toLowerCase()}))),r?r.value:this.scale(t)},t.prototype.getLinearGradientStops=function(t,n){void 0===n&&(n=this.domain[0]);var e=Xt().domain(this.domain).range([0,1]),r=function t(){var n,e,r=at().unknown(void 0),i=r.domain,o=r.range,s=[0,1],a=!1,u=0,c=0,l=.5;function h(){var t=i().length,r=s[1]<s[0],h=s[r-0],f=s[1-r];n=(f-h)/Math.max(1,t-u+2*c),a&&(n=Math.floor(n)),h+=(f-h-n*(t-u))*l,e=n*(1-u),a&&(h=Math.round(h),e=Math.round(e));var d=H(t).map((function(t){return h+n*t}));return o(r?d.reverse():d)}return delete r.unknown,r.domain=function(t){return arguments.length?(i(t),h()):i()},r.range=function(t){return arguments.length?(s=[+t[0],+t[1]],h()):s.slice()},r.rangeRound=function(t){return s=[+t[0],+t[1]],a=!0,h()},r.bandwidth=function(){return e},r.step=function(){return n},r.round=function(t){return arguments.length?(a=!!t,h()):a},r.padding=function(t){return arguments.length?(u=c=Math.max(0,Math.min(1,t)),h()):u},r.paddingInner=function(t){return arguments.length?(u=Math.max(0,Math.min(1,t)),h()):u},r.paddingOuter=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),h()):c},r.align=function(t){return arguments.length?(l=Math.max(0,Math.min(1,t)),h()):l},r.copy=function(){return t().domain(i()).range(s).round(a).paddingInner(u).paddingOuter(c).align(l)},h()}().domain(this.colorDomain).range([0,1]),i=this.getColor(t),o=e(n),s=this.getColor(n),a=e(t),u=1,c=o,l=[];for(l.push({color:s,offset:o,originalOffset:o,opacity:1});c<a&&u<this.colorDomain.length;){var h=this.colorDomain[u],f=r(h);if(f<=o)u++;else{if(f.toFixed(4)>=(a-r.bandwidth()).toFixed(4))break;l.push({color:h,offset:f,opacity:1}),c=f,u++}}if(l[l.length-1].offset<100&&l.push({color:i,offset:a,opacity:1}),a===o)l[0].offset=0,l[1].offset=100;else if(100!==l[l.length-1].offset)for(var d=0,p=l;d<p.length;d++){var g=p[d];g.offset=(g.offset-o)/(a-o)*100}return l},t}();function is(t,n,e){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+n)/6,(t._y0+4*t._y1+e)/6)}function os(t){this._context=t}function ss(t,n){this._basis=new os(t),this._beta=n}"undefined"!=typeof window?window:"undefined"!=typeof global&&global,Math,os.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:is(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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);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:is(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},ss.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],s=t[e]-i,a=n[e]-o,u=-1;++u<=e;)this._basis.point(this._beta*t[u]+(1-this._beta)*(i+(r=u/e)*s),this._beta*n[u]+(1-this._beta)*(o+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var as=function t(n){function e(t){return 1===n?new os(t):new ss(t,n)}return e.beta=function(n){return t(+n)},e}(.85),us=Math.PI;function cs(t){return(1-Math.cos(us*t))/2}var ls=e("XNiG"),hs=e("quSY"),fs=e("HDdC"),ds=e("LRne"),ps=e("SxV6");function gs(t){return void 0===t}function vs(t){return{a:1,c:0,e:t,b:0,d:1,f:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0}}function ys(){for(var t=arguments.length,n=Array(t),e=0;e<t;e++)n[e]=arguments[e];var r,i=function(t,n){return{a:t.a*n.a+t.c*n.b,c:t.a*n.c+t.c*n.d,e:t.a*n.e+t.c*n.f+t.e,b:t.b*n.a+t.d*n.b,d:t.b*n.c+t.d*n.d,f:t.b*n.e+t.d*n.f+t.f}};switch((n=Array.isArray(n[0])?n[0]:n).length){case 0:throw new Error("no matrices provided");case 1:return n[0];case 2:return i(n[0],n[1]);default:var o=(r=n,Array.isArray(r)?r:Array.from(r)),s=o[0],a=o[1],u=o.slice(2),c=i(s,a);return ys.apply(void 0,[c].concat(function(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);n<t.length;n++)e[n]=t[n];return e}return Array.from(t)}(u)))}}"function"==typeof Symbol&&Symbol,Math,Math,Math,Math;var ms=e("409L"),bs=e("zO0g"),xs=function(t,n,e){var r=new Zr,i=n;return null==n?(r.restart(t,n,e),r):(n=+n,e=null==e?$r():+e,r.restart((function o(s){s+=i,r.restart(o,i+=n,e),t(s)}),n,e),r)};const ws={};function _s(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return ws[t=`a${t}`]?_s():(ws[t]=!0,t)}function Es(t){return"string"==typeof t?{id:t,x:0,y:0}:t}function ks(t,n){return"number"==typeof n?t[n]:n}const Ms={dagre:class{constructor(){this.defaultSettings={orientation:"LR",marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(t){this.createDagreGraph(t),Object(ms.layout)(this.dagreGraph),t.edgeLabels=this.dagreGraph._edgeLabels;for(const n in this.dagreGraph._nodes){const e=this.dagreGraph._nodes[n],r=t.nodes.find(t=>t.id===e.id);r.position={x:e.x,y:e.y},r.dimension={width:e.width,height:e.height}}return t}updateEdge(t,n){const e=t.nodes.find(t=>t.id===n.source),r=t.nodes.find(t=>t.id===n.target),i=e.position.y<=r.position.y?-1:1;return n.points=[{x:e.position.x,y:e.position.y-i*(e.dimension.height/2)},{x:r.position.x,y:r.position.y+i*(r.dimension.height/2)}],t}createDagreGraph(t){const n=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new ms.graphlib.Graph({compound:n.compound,multigraph:n.multigraph}),this.dagreGraph.setGraph({rankdir:n.orientation,marginx:n.marginX,marginy:n.marginY,edgesep:n.edgePadding,ranksep:n.rankPadding,nodesep:n.nodePadding,align:n.align,acyclicer:n.acyclicer,ranker:n.ranker,multigraph:n.multigraph,compound:n.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=t.nodes.map(t=>{const n=Object.assign({},t);return n.width=t.dimension.width,n.height=t.dimension.height,n.x=t.position.x,n.y=t.position.y,n}),this.dagreEdges=t.edges.map(t=>{const n=Object.assign({},t);return n.id||(n.id=_s()),n});for(const e of this.dagreNodes)e.width||(e.width=20),e.height||(e.height=30),this.dagreGraph.setNode(e.id,e);for(const e of this.dagreEdges)n.multigraph?this.dagreGraph.setEdge(e.source,e.target,e,e.id):this.dagreGraph.setEdge(e.source,e.target);return this.dagreGraph}},dagreCluster:class{constructor(){this.defaultSettings={orientation:"LR",marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(t){this.createDagreGraph(t),Object(ms.layout)(this.dagreGraph),t.edgeLabels=this.dagreGraph._edgeLabels;const n=t=>{const n=this.dagreGraph._nodes[t.id];return Object.assign({},t,{position:{x:n.x,y:n.y},dimension:{width:n.width,height:n.height}})};return t.clusters=(t.clusters||[]).map(n),t.nodes=t.nodes.map(n),t}updateEdge(t,n){const e=t.nodes.find(t=>t.id===n.source),r=t.nodes.find(t=>t.id===n.target),i=e.position.y<=r.position.y?-1:1;return n.points=[{x:e.position.x,y:e.position.y-i*(e.dimension.height/2)},{x:r.position.x,y:r.position.y+i*(r.dimension.height/2)}],t}createDagreGraph(t){const n=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new ms.graphlib.Graph({compound:n.compound,multigraph:n.multigraph}),this.dagreGraph.setGraph({rankdir:n.orientation,marginx:n.marginX,marginy:n.marginY,edgesep:n.edgePadding,ranksep:n.rankPadding,nodesep:n.nodePadding,align:n.align,acyclicer:n.acyclicer,ranker:n.ranker,multigraph:n.multigraph,compound:n.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=t.nodes.map(t=>{const n=Object.assign({},t);return n.width=t.dimension.width,n.height=t.dimension.height,n.x=t.position.x,n.y=t.position.y,n}),this.dagreClusters=t.clusters||[],this.dagreEdges=t.edges.map(t=>{const n=Object.assign({},t);return n.id||(n.id=_s()),n});for(const e of this.dagreNodes)this.dagreGraph.setNode(e.id,e);for(const e of this.dagreClusters)this.dagreGraph.setNode(e.id,e),e.childNodeIds.forEach(t=>{this.dagreGraph.setParent(t,e.id)});for(const e of this.dagreEdges)n.multigraph?this.dagreGraph.setEdge(e.source,e.target,e,e.id):this.dagreGraph.setEdge(e.source,e.target);return this.dagreGraph}},dagreNodesOnly:class{constructor(){this.defaultSettings={orientation:"LR",marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,curveDistance:20,multigraph:!0,compound:!0},this.settings={}}run(t){this.createDagreGraph(t),Object(ms.layout)(this.dagreGraph),t.edgeLabels=this.dagreGraph._edgeLabels;for(const n in this.dagreGraph._nodes){const e=this.dagreGraph._nodes[n],r=t.nodes.find(t=>t.id===e.id);r.position={x:e.x,y:e.y},r.dimension={width:e.width,height:e.height}}for(const n of t.edges)this.updateEdge(t,n);return t}updateEdge(t,n){const e=t.nodes.find(t=>t.id===n.source),r=t.nodes.find(t=>t.id===n.target),i="BT"===this.settings.orientation||"TB"===this.settings.orientation?"y":"x",o="y"===i?"x":"y",s="y"===i?"height":"width",a=e.position[i]<=r.position[i]?-1:1,u={[o]:e.position[o],[i]:e.position[i]-a*(e.dimension[s]/2)},c={[o]:r.position[o],[i]:r.position[i]+a*(r.dimension[s]/2)},l=this.settings.curveDistance||this.defaultSettings.curveDistance;n.points=[u,{[o]:u[o],[i]:u[i]-a*l},{[o]:c[o],[i]:c[i]+a*l},c];const h=t.edgeLabels[`${n.source}\x01${n.target}\x01\0`];return h&&(h.points=n.points),t}createDagreGraph(t){const n=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new ms.graphlib.Graph({compound:n.compound,multigraph:n.multigraph}),this.dagreGraph.setGraph({rankdir:n.orientation,marginx:n.marginX,marginy:n.marginY,edgesep:n.edgePadding,ranksep:n.rankPadding,nodesep:n.nodePadding,align:n.align,acyclicer:n.acyclicer,ranker:n.ranker,multigraph:n.multigraph,compound:n.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=t.nodes.map(t=>{const n=Object.assign({},t);return n.width=t.dimension.width,n.height=t.dimension.height,n.x=t.position.x,n.y=t.position.y,n}),this.dagreEdges=t.edges.map(t=>{const n=Object.assign({},t);return n.id||(n.id=_s()),n});for(const e of this.dagreNodes)e.width||(e.width=20),e.height||(e.height=30),this.dagreGraph.setNode(e.id,e);for(const e of this.dagreEdges)n.multigraph?this.dagreGraph.setEdge(e.source,e.target,e,e.id):this.dagreGraph.setEdge(e.source,e.target);return this.dagreGraph}},d3ForceDirected:class{constructor(){this.defaultSettings={force:Ro().force("charge",Vo().strength(-150)).force("collide",jo(5)),forceLink:Go().id(t=>t.id).distance(()=>100)},this.settings={},this.outputGraph$=new ls.a}run(t){return this.inputGraph=t,this.d3Graph={nodes:[...this.inputGraph.nodes.map(t=>Object.assign({},t))],edges:[...this.inputGraph.edges.map(t=>Object.assign({},t))]},this.outputGraph={nodes:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&this.settings.force.nodes(this.d3Graph.nodes).force("link",this.settings.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}updateEdge(t,n){const e=Object.assign({},this.defaultSettings,this.settings);return e.force&&e.force.nodes(this.d3Graph.nodes).force("link",e.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}d3GraphToOutputGraph(t){return this.outputGraph.nodes=this.d3Graph.nodes.map(t=>Object.assign({},t,{id:t.id||_s(),position:{x:t.x,y:t.y},dimension:{width:t.dimension&&t.dimension.width||20,height:t.dimension&&t.dimension.height||20},transform:`translate(${t.x-(t.dimension&&t.dimension.width||20)/2||0}, ${t.y-(t.dimension&&t.dimension.height||20)/2||0})`})),this.outputGraph.edges=this.d3Graph.edges.map(t=>Object.assign({},t,{source:Es(t.source).id,target:Es(t.target).id,points:[{x:Es(t.source).x,y:Es(t.source).y},{x:Es(t.target).x,y:Es(t.target).y}]})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(t,n){this.settings.force.alphaTarget(.3).restart();const e=this.d3Graph.nodes.find(n=>n.id===t.id);e&&(this.draggingStart={x:n.x-e.x,y:n.y-e.y},e.fx=n.x-this.draggingStart.x,e.fy=n.y-this.draggingStart.y)}onDrag(t,n){if(!t)return;const e=this.d3Graph.nodes.find(n=>n.id===t.id);e&&(e.fx=n.x-this.draggingStart.x,e.fy=n.y-this.draggingStart.y)}onDragEnd(t,n){if(!t)return;const e=this.d3Graph.nodes.find(n=>n.id===t.id);e&&(this.settings.force.alphaTarget(0),e.fx=void 0,e.fy=void 0)}},colaForceDirected:class{constructor(){this.defaultSettings={force:Object(bs.d3adaptor)(Object.assign({},i,r,o)).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600,xOffset:0}},this.settings={},this.outputGraph$=new ls.a}run(t){return this.inputGraph=t,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(t=>Object.assign({},t,{width:t.dimension?t.dimension.width:20,height:t.dimension?t.dimension.height:20}))],groups:[...this.inputGraph.clusters.map(t=>({padding:5,groups:t.childNodeIds.map(t=>this.inputGraph.clusters.findIndex(n=>n.id===t)).filter(t=>t>=0),leaves:t.childNodeIds.map(t=>this.inputGraph.nodes.findIndex(n=>n.id===t)).filter(t=>t>=0)}))],links:[...this.inputGraph.edges.map(t=>{const n=this.inputGraph.nodes.findIndex(n=>t.source===n.id),e=this.inputGraph.nodes.findIndex(n=>t.target===n.id);if(-1!==n&&-1!==e)return Object.assign({},t,{source:n,target:e})}).filter(t=>!!t)],groupLinks:[...this.inputGraph.edges.map(t=>{const n=this.inputGraph.nodes.findIndex(n=>t.source===n.id),e=this.inputGraph.nodes.findIndex(n=>t.target===n.id);if(!(n>=0&&e>=0))return t}).filter(t=>!!t)]},this.outputGraph={nodes:[],clusters:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&(this.settings.force=this.settings.force.nodes(this.internalGraph.nodes).groups(this.internalGraph.groups).links(this.internalGraph.links).alpha(.5).on("tick",()=>{this.settings.onTickListener&&this.settings.onTickListener(this.internalGraph),this.outputGraph$.next(this.internalGraphToOutputGraph(this.internalGraph))}),this.settings.viewDimensions&&(this.settings.force=this.settings.force.size([this.settings.viewDimensions.width,this.settings.viewDimensions.height])),this.settings.forceModifierFn&&(this.settings.force=this.settings.forceModifierFn(this.settings.force)),this.settings.force.start()),this.outputGraph$.asObservable()}updateEdge(t,n){const e=Object.assign({},this.defaultSettings,this.settings);return e.force&&e.force.start(),this.outputGraph$.asObservable()}internalGraphToOutputGraph(t){return this.outputGraph.nodes=t.nodes.map(t=>Object.assign({},t,{id:t.id||_s(),position:{x:t.x,y:t.y},dimension:{width:t.dimension&&t.dimension.width||20,height:t.dimension&&t.dimension.height||20},transform:`translate(${t.x-(t.dimension&&t.dimension.width||20)/2||0}, ${t.y-(t.dimension&&t.dimension.height||20)/2||0})`})),this.outputGraph.edges=t.links.map(n=>{const e=ks(t.nodes,n.source),r=ks(t.nodes,n.target);return Object.assign({},n,{source:e.id,target:r.id,points:[e.bounds.rayIntersection(r.bounds.cx(),r.bounds.cy()),r.bounds.rayIntersection(e.bounds.cx(),e.bounds.cy())]})}).concat(t.groupLinks.map(n=>{const e=t.nodes.find(t=>t.id===n.source),r=t.nodes.find(t=>t.id===n.target),i=e||t.groups.find(t=>t.id===n.source),o=r||t.groups.find(t=>t.id===n.target);return Object.assign({},n,{source:i.id,target:o.id,points:[i.bounds.rayIntersection(o.bounds.cx(),o.bounds.cy()),o.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]})})),this.outputGraph.clusters=t.groups.map((t,n)=>Object.assign({},this.inputGraph.clusters[n],{dimension:{width:t.bounds?t.bounds.width():20,height:t.bounds?t.bounds.height():20},position:{x:t.bounds?t.bounds.x+t.bounds.width()/2:0,y:t.bounds?t.bounds.y+t.bounds.height()/2:0}})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(t,n){const e=this.outputGraph.nodes.findIndex(n=>n.id===t.id),r=this.internalGraph.nodes[e];r&&(this.draggingStart={x:r.x-n.x,y:r.y-n.y},r.fixed=1,this.settings.force.start())}onDrag(t,n){if(!t)return;const e=this.outputGraph.nodes.findIndex(n=>n.id===t.id),r=this.internalGraph.nodes[e];r&&(r.x=this.draggingStart.x+n.x,r.y=this.draggingStart.y+n.y)}onDragEnd(t,n){if(!t)return;const e=this.outputGraph.nodes.findIndex(n=>n.id===t.id),r=this.internalGraph.nodes[e];r&&(r.fixed=0)}}};class Os{getLayout(t){if(Ms[t])return new Ms[t];throw new Error(`Unknown layout type '${t}'`)}}const Ns={Both:"both",Horizontal:"horizontal",Vertical:"vertical"};class As extends es{constructor(t,n,e,r){super(t,n,e),this.el=t,this.zone=n,this.cd=e,this.layoutService=r,this.legend=!1,this.nodes=[],this.clusters=[],this.links=[],this.activeEntries=[],this.draggingEnabled=!0,this.panningEnabled=!0,this.panningAxis=Ns.Both,this.enableZoom=!0,this.zoomSpeed=.1,this.minZoomLevel=.1,this.maxZoomLevel=4,this.autoZoom=!1,this.panOnZoom=!0,this.animate=!1,this.autoCenter=!1,this.activate=new s.m,this.deactivate=new s.m,this.zoomChange=new s.m,this.clickHandler=new s.m,this.isMouseMoveCalled=!1,this.graphSubscription=new hs.a,this.subscriptions=[],this.margin=[0,0,0,0],this.results=[],this.isPanning=!1,this.isDragging=!1,this.initialized=!1,this.graphDims={width:0,height:0},this._oldLinks=[],this.oldNodes=new Set,this.transformationMatrix={a:1,c:0,e:0,b:0,d:1,f:0},this._touchLastX=null,this._touchLastY=null,this.groupResultsBy=t=>t.label}get zoomLevel(){return this.transformationMatrix.a}set zoomLevel(t){this.zoomTo(Number(t))}get panOffsetX(){return this.transformationMatrix.e}set panOffsetX(t){this.panTo(Number(t),null)}get panOffsetY(){return this.transformationMatrix.f}set panOffsetY(t){this.panTo(null,Number(t))}ngOnInit(){this.update$&&this.subscriptions.push(this.update$.subscribe(()=>{this.update()})),this.center$&&this.subscriptions.push(this.center$.subscribe(()=>{this.center()})),this.zoomToFit$&&this.subscriptions.push(this.zoomToFit$.subscribe(()=>{this.zoomToFit()})),this.panToNode$&&this.subscriptions.push(this.panToNode$.subscribe(t=>{this.panToNodeId(t)}))}ngOnChanges(t){const{layoutSettings:n}=t;this.setLayout(this.layout),n&&this.setLayoutSettings(this.layoutSettings),this.update()}setLayout(t){this.initialized=!1,t||(t="dagre"),"string"==typeof t&&(this.layout=this.layoutService.getLayout(t),this.setLayoutSettings(this.layoutSettings))}setLayoutSettings(t){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=t,this.update())}ngOnDestroy(){super.ngOnDestroy();for(const t of this.subscriptions)t.unsubscribe();this.subscriptions=null}ngAfterViewInit(){super.ngAfterViewInit(),setTimeout(()=>this.update())}update(){super.update(),this.curve||(this.curve=as.beta(1)),this.zone.run(()=>{this.dims=function(t){var n,e=t.margins,r=t.showXAxis,i=t.showYAxis,o=t.xAxisHeight,s=t.yAxisWidth,a=void 0===s?0:s,u=t.showXLabel,c=t.showYLabel,l=t.showLegend,h=t.legendType,f=t.legendPosition,d=t.columns,p=void 0===d?12:d,g=e[3],v=t.width,y=t.height-e[0]-e[2];return void 0!==l&&l&&"right"===(void 0===f?"right":f)&&(p-="ordinal"===(void 0===h?"ordinal":h)?2:1),v=(v=v*p/12)-e[1]-e[3],void 0!==r&&r&&(y-=5,y-=void 0===o?0:o,void 0!==u&&u&&(y-=n=30)),void 0!==i&&i&&(v-=5,v-=a,g+=a,g+=10,void 0!==c&&c&&(v-=n=30,g+=n)),v=Math.max(0,v),y=Math.max(0,y),{width:Math.floor(v),height:Math.floor(y),xOffset:Math.floor(g)}}({width:this.width,height:this.height,margins:this.margin,showLegend:this.legend}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.createGraph(),this.updateTransform(),this.initialized=!0})}createGraph(){this.graphSubscription.unsubscribe(),this.graphSubscription=new hs.a;const t=t=>(t.meta||(t.meta={}),t.id||(t.id=_s()),t.dimension?t.meta.forceDimensions=void 0===t.meta.forceDimensions||t.meta.forceDimensions:(t.dimension={width:this.nodeWidth?this.nodeWidth:30,height:this.nodeHeight?this.nodeHeight:30},t.meta.forceDimensions=!1),t.position={x:0,y:0},t.data=t.data?t.data:{},t);this.graph={nodes:[...this.nodes].map(t),clusters:[...this.clusters||[]].map(t),edges:[...this.links].map(t=>(t.id||(t.id=_s()),t))},requestAnimationFrame(()=>this.draw())}draw(){if(!this.layout||"string"==typeof this.layout)return;this.applyNodeDimensions();const t=this.layout.run(this.graph),n=t instanceof fs.a?t:Object(ds.a)(t);this.graphSubscription.add(n.subscribe(t=>{this.graph=t,this.tick()})),n.pipe(Object(ps.a)(t=>t.nodes.length>0)).subscribe(()=>this.applyNodeDimensions())}tick(){const t=new Set;this.graph.nodes.map(n=>{n.transform=`translate(${n.position.x-n.dimension.width/2||0}, ${n.position.y-n.dimension.height/2||0})`,n.data||(n.data={}),n.data.color=this.colors.getColor(this.groupResultsBy(n)),t.add(n.id)}),setTimeout(()=>{this.oldNodes=t},500),(this.graph.clusters||[]).map(t=>{t.transform=`translate(${t.position.x-t.dimension.width/2||0}, ${t.position.y-t.dimension.height/2||0})`,t.data||(t.data={}),t.data.color=this.colors.getColor(this.groupResultsBy(t))});const n=[];for(const e in this.graph.edgeLabels){const t=this.graph.edgeLabels[e],r=e.replace(/[^\w-]*/g,""),i=this.layout&&"string"!=typeof this.layout&&this.layout.settings&&this.layout.settings.multigraph;let o=this._oldLinks.find(i?t=>`${t.source}${t.target}${t.id}`===r:t=>`${t.source}${t.target}`===r);const s=this.graph.edges.find(i?t=>`${t.source}${t.target}${t.id}`===r:t=>`${t.source}${t.target}`===r);o?o.data&&s&&s.data&&JSON.stringify(o.data)!==JSON.stringify(s.data)&&(o.data=s.data):o=s||t,o.oldLine=o.line;const a=t.points,u=this.generateLine(a),c=Object.assign({},o);c.line=u,c.points=a,this.updateMidpointOnEdge(c,a);const l=a[Math.floor(a.length/2)];l&&(c.textTransform=`translate(${l.x||0},${l.y||0})`),c.textAngle=0,c.oldLine||(c.oldLine=c.line),this.calcDominantBaseline(c),n.push(c)}this.graph.edges=n,this.graph.edges&&(this._oldLinks=this.graph.edges.map(t=>{const n=Object.assign({},t);return n.oldLine=t.line,n})),this.graph.nodes&&this.graph.nodes.length&&(this.graphDims.width=Math.max(...this.graph.nodes.map(t=>t.position.x+t.dimension.width)),this.graphDims.height=Math.max(...this.graph.nodes.map(t=>t.position.y+t.dimension.height))),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(()=>this.redrawLines()),this.cd.markForCheck()}applyNodeDimensions(){this.nodeElements&&this.nodeElements.length&&this.nodeElements.map(t=>{const n=t.nativeElement,e=this.graph.nodes.find(t=>t.id===n.id);let r;try{r=n.getBBox()}catch(i){return}if(e.dimension.height=this.nodeHeight?e.dimension.height&&e.meta.forceDimensions?e.dimension.height:this.nodeHeight:e.dimension.height&&e.meta.forceDimensions?e.dimension.height:r.height,this.nodeMaxHeight&&(e.dimension.height=Math.max(e.dimension.height,this.nodeMaxHeight)),this.nodeMinHeight&&(e.dimension.height=Math.min(e.dimension.height,this.nodeMinHeight)),this.nodeWidth)e.dimension.width=e.dimension.width&&e.meta.forceDimensions?e.dimension.width:this.nodeWidth;else if(n.getElementsByTagName("text").length){let t;try{for(const e of n.getElementsByTagName("text")){const n=e.getBBox();t?(n.width>t.width&&(t.width=n.width),n.height>t.height&&(t.height=n.height)):t=n}}catch(i){return}e.dimension.width=e.dimension.width&&e.meta.forceDimensions?e.dimension.width:t.width+20}else e.dimension.width=e.dimension.width&&e.meta.forceDimensions?e.dimension.width:r.width;this.nodeMaxWidth&&(e.dimension.width=Math.max(e.dimension.width,this.nodeMaxWidth)),this.nodeMinWidth&&(e.dimension.width=Math.min(e.dimension.width,this.nodeMinWidth))})}redrawLines(t=this.animate){this.linkElements.map(n=>{const e=this.graph.edges.find(t=>t.id===n.nativeElement.id);e&&(zr(n.nativeElement).select(".line").attr("d",e.oldLine).transition().ease(cs).duration(t?500:0).attr("d",e.line),zr(this.chartElement.nativeElement).select(`#${e.id}`).attr("d",e.oldTextPath).transition().ease(cs).duration(t?500:0).attr("d",e.textPath),this.updateMidpointOnEdge(e,e.points))})}calcDominantBaseline(t){const n=t.points[0],e=t.points[t.points.length-1];t.oldTextPath=t.textPath,e.x<n.x?(t.dominantBaseline="text-before-edge",t.textPath=this.generateLine([...t.points].reverse())):(t.dominantBaseline="text-after-edge",t.textPath=t.line)}generateLine(t){return po().x(t=>t.x).y(t=>t.y).curve(this.curve)(t)}onZoom(t,n){const e=1+("in"===n?this.zoomSpeed:-this.zoomSpeed),r=this.zoomLevel*e;if(!(r<=this.minZoomLevel||r>=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&t){const n=t.clientX,r=t.clientY,i=this.chart.nativeElement.querySelector("svg"),o=i.querySelector("g.chart"),s=i.createSVGPoint();s.x=n,s.y=r;const a=s.matrixTransform(o.getScreenCTM().inverse());this.pan(a.x,a.y,!0),this.zoom(e),this.pan(-a.x,-a.y,!0)}else this.zoom(e)}pan(t,n,e=!1){const r=e?1:this.zoomLevel;this.transformationMatrix=ys(this.transformationMatrix,vs(t/r,n/r)),this.updateTransform()}panTo(t,n){null==t||isNaN(t)||null==n||isNaN(n)||(this.transformationMatrix=ys(this.transformationMatrix,vs((-this.panOffsetX-t*this.zoomLevel+this.dims.width/2)/this.zoomLevel,(-this.panOffsetY-n*this.zoomLevel+this.dims.height/2)/this.zoomLevel)),this.updateTransform())}zoom(t){this.transformationMatrix=ys(this.transformationMatrix,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return gs(n)&&(n=t),{a:t,c:0,e:0,b:0,d:n,f:0}}(t,t)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}zoomTo(t){this.transformationMatrix.a=isNaN(t)?this.transformationMatrix.a:Number(t),this.transformationMatrix.d=isNaN(t)?this.transformationMatrix.d:Number(t),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}onPan(t){this.pan(t.movementX,t.movementY)}onDrag(t){if(!this.draggingEnabled)return;const n=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(n,t),n.position.x+=t.movementX/this.zoomLevel,n.position.y+=t.movementY/this.zoomLevel,n.transform=`translate(${n.position.x-n.dimension.width/2}, ${n.position.y-n.dimension.height/2})`;for(const e of this.graph.edges)if((e.target===n.id||e.source===n.id||e.target.id===n.id||e.source.id===n.id)&&this.layout&&"string"!=typeof this.layout){const t=this.layout.updateEdge(this.graph,e),n=t instanceof fs.a?t:Object(ds.a)(t);this.graphSubscription.add(n.subscribe(t=>{this.graph=t,this.redrawEdge(e)}))}this.redrawLines(!1)}redrawEdge(t){const n=this.generateLine(t.points);this.calcDominantBaseline(t),t.oldLine=t.line,t.line=n}updateTransform(){var t;this.transform="matrix("+(t=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e10;return{a:Math.round(t.a*n)/n,b:Math.round(t.b*n)/n,c:Math.round(t.c*n)/n,d:Math.round(t.d*n)/n,e:Math.round(t.e*n)/n,f:Math.round(t.f*n)/n}}(this.transformationMatrix,100)).a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")"}onClick(t){this.select.emit(t)}onActivate(t){this.activeEntries.indexOf(t)>-1||(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t){const n=this.activeEntries.indexOf(t);this.activeEntries.splice(n,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}getSeriesDomain(){return this.nodes.map(t=>this.groupResultsBy(t)).reduce((t,n)=>-1!==t.indexOf(n)?t:t.concat([n]),[]).sort()}trackLinkBy(t,n){return n.id}trackNodeBy(t,n){return n.id}setColors(){this.colors=new rs(this.scheme,"ordinal",this.seriesDomain,this.customColors)}getLegendOptions(){return{scaleType:"ordinal",domain:this.seriesDomain,colors:this.colors}}onMouseMove(t){this.isMouseMoveCalled=!0,this.isPanning&&this.panningEnabled?this.checkEnum(this.panningAxis,t):this.isDragging&&this.draggingEnabled&&this.onDrag(t)}onMouseDown(t){this.isMouseMoveCalled=!1}graphClick(t){this.isMouseMoveCalled||this.clickHandler.emit(t)}onTouchStart(t){this._touchLastX=t.changedTouches[0].clientX,this._touchLastY=t.changedTouches[0].clientY,this.isPanning=!0}onTouchMove(t){if(this.isPanning&&this.panningEnabled){const n=t.changedTouches[0].clientX,e=t.changedTouches[0].clientY,r=n-this._touchLastX,i=e-this._touchLastY;this._touchLastX=n,this._touchLastY=e,this.pan(r,i)}}onTouchEnd(t){this.isPanning=!1}onMouseUp(t){this.isDragging=!1,this.isPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,t)}onNodeMouseDown(t,n){this.draggingEnabled&&(this.isDragging=!0,this.draggingNode=n,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(n,t))}center(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}zoomToFit(){const t=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);t<=this.minZoomLevel||t>=this.maxZoomLevel||t!==this.zoomLevel&&(this.zoomLevel=t,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}panToNodeId(t){const n=this.nodes.find(n=>n.id===t);n&&this.panTo(n.position.x,n.position.y)}checkEnum(t,n){switch(t){case Ns.Horizontal:this.pan(n.movementX,0);break;case Ns.Vertical:this.pan(0,n.movementY);break;default:this.onPan(n)}}updateMidpointOnEdge(t,n){if(t&&n)if(n.length%2==1)t.midPoint=n[Math.floor(n.length/2)];else{const e=n[n.length/2],r=n[n.length/2-1];t.midPoint={x:(e.x+r.x)/2,y:(e.y+r.y)/2}}}}class Cs{constructor(){this.mouseWheelUp=new s.m,this.mouseWheelDown=new s.m}onMouseWheelChrome(t){this.mouseWheelFunc(t)}onMouseWheelFirefox(t){this.mouseWheelFunc(t)}onMouseWheelIE(t){this.mouseWheelFunc(t)}mouseWheelFunc(t){window.event&&(t=window.event);const n=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail));n>0?this.mouseWheelUp.emit(t):n<0&&this.mouseWheelDown.emit(t),t.returnValue=!1,t.preventDefault&&t.preventDefault()}}class Ts{}class Ss{}var Ls=e("SVse"),js=e("mrSG");function Ds(t,n,e){var r,i,o;e=e||{};var s=null,a=0;function u(){a=!1===e.leading?0:+new Date,s=null,o=t.apply(r,i)}return function(){var c=+new Date;a||!1!==e.leading||(a=c);var l=n-(c-a);return r=this,i=arguments,l<=0?(clearTimeout(s),s=null,a=c,o=t.apply(r,i)):s||!1===e.trailing||(s=setTimeout(u,l)),o}}var Ps=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({}),Gs=7;function Fs(t,n,e){return"top"===e?t.top-Gs:"bottom"===e?t.top+t.height-n.height+Gs:"center"===e?t.top+t.height/2-n.height/2:void 0}function Is(t,n,e){return"left"===e?t.left-Gs:"right"===e?t.left+t.width-n.width+Gs:"center"===e?t.left+t.width/2-n.width/2:void 0}var zs=function(){function t(){}return t.calculateVerticalAlignment=function(t,n,e){var r=Fs(t,n,e);return r+n.height>window.innerHeight&&(r=window.innerHeight-n.height),r},t.calculateVerticalCaret=function(t,n,e,r){var i;"top"===r&&(i=t.height/2-e.height/2+Gs),"bottom"===r&&(i=n.height-t.height/2-e.height/2-Gs),"center"===r&&(i=n.height/2-e.height/2);var o=Fs(t,n,r);return o+n.height>window.innerHeight&&(i+=o+n.height-window.innerHeight),i},t.calculateHorizontalAlignment=function(t,n,e){var r=Is(t,n,e);return r+n.width>window.innerWidth&&(r=window.innerWidth-n.width),r},t.calculateHorizontalCaret=function(t,n,e,r){var i;"left"===r&&(i=t.width/2-e.width/2+Gs),"right"===r&&(i=n.width-t.width/2-e.width/2-Gs),"center"===r&&(i=n.width/2-e.width/2);var o=Is(t,n,r);return o+n.width>window.innerWidth&&(i+=o+n.width-window.innerWidth),i},t.shouldFlip=function(t,n,e,r){var i=!1;return"right"===e&&t.left+t.width+n.width+r>window.innerWidth&&(i=!0),"left"===e&&t.left-n.width-r<0&&(i=!0),"top"===e&&t.top-n.height-r<0&&(i=!0),"bottom"===e&&t.top+t.height+n.height+r>window.innerHeight&&(i=!0),i},t.positionCaret=function(n,e,r,i,o){var s=0,a=0;return n===Ps.right?(a=-7,s=t.calculateVerticalCaret(r,e,i,o)):n===Ps.left?(a=e.width,s=t.calculateVerticalCaret(r,e,i,o)):n===Ps.top?(s=e.height,a=t.calculateHorizontalCaret(r,e,i,o)):n===Ps.bottom&&(s=-7,a=t.calculateHorizontalCaret(r,e,i,o)),{top:s,left:a}},t.positionContent=function(n,e,r,i,o){var s=0,a=0;return n===Ps.right?(a=r.left+r.width+i,s=t.calculateVerticalAlignment(r,e,o)):n===Ps.left?(a=r.left-e.width-i,s=t.calculateVerticalAlignment(r,e,o)):n===Ps.top?(s=r.top-e.height-i,a=t.calculateHorizontalAlignment(r,e,o)):n===Ps.bottom&&(s=r.top+r.height+i,a=t.calculateHorizontalAlignment(r,e,o)),{top:s,left:a}},t.determinePlacement=function(n,e,r,i){if(t.shouldFlip(r,e,n,i)){if(n===Ps.right)return Ps.left;if(n===Ps.left)return Ps.right;if(n===Ps.top)return Ps.bottom;if(n===Ps.bottom)return Ps.top}return n},t}(),Bs=function(){function t(t,n){this.element=t,this.renderer=n}return Object.defineProperty(t.prototype,"cssClasses",{get:function(){var t="ngx-charts-tooltip-content";return t+=" position-"+this.placement,(t+=" type-"+this.type)+" "+this.cssClass},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){setTimeout(this.position.bind(this))},t.prototype.position=function(){var t=this,n=this.element.nativeElement,e=this.host.nativeElement.getBoundingClientRect();if(e.height||e.width){var r=n.getBoundingClientRect();this.checkFlip(e,r),this.positionContent(n,e,r),this.showCaret&&this.positionCaret(e,r),setTimeout((function(){return t.renderer.addClass(n,"animate")}),1)}},t.prototype.positionContent=function(t,n,e){var r=zs.positionContent(this.placement,e,n,this.spacing,this.alignment),i=r.left;this.renderer.setStyle(t,"top",r.top+"px"),this.renderer.setStyle(t,"left",i+"px")},t.prototype.positionCaret=function(t,n){var e=this.caretElm.nativeElement,r=e.getBoundingClientRect(),i=zs.positionCaret(this.placement,n,t,r,this.alignment),o=i.left;this.renderer.setStyle(e,"top",i.top+"px"),this.renderer.setStyle(e,"left",o+"px")},t.prototype.checkFlip=function(t,n){this.placement=zs.determinePlacement(this.placement,n,t,this.spacing)},t.prototype.onWindowResize=function(){this.position()},Object(js.__decorate)([(100,function(t,n,e){return{configurable:!0,enumerable:e.enumerable,get:function(){return Object.defineProperty(this,n,{configurable:!0,enumerable:e.enumerable,value:Ds(e.value,100,void 0)}),this[n]}}})],t.prototype,"onWindowResize",null),t}(),Rs=s.tb({encapsulation:2,styles:[[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate3d(0,0,0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}"]],data:{}});function Vs(t){return s.Qb(0,[(t()(),s.kb(0,null,null,0))],null,null)}function Us(t){return s.Qb(0,[(t()(),s.vb(0,0,null,null,3,"span",[],null,null,null,null,null)),(t()(),s.kb(16777216,null,null,2,null,Vs)),s.ub(2,540672,null,0,Ls.r,[s.O],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),s.Kb(3,{model:0})],(function(t,n){var e=n.component,r=t(n,3,0,e.context);t(n,2,0,r,e.template)}),null)}function Ys(t){return s.Qb(0,[(t()(),s.vb(0,0,null,null,0,"span",[],[[8,"innerHTML",1]],null,null,null,null))],null,(function(t,n){t(n,0,0,n.component.title)}))}function Hs(t){return s.Qb(0,[s.Mb(671088640,1,{caretElm:0}),(t()(),s.vb(1,0,null,null,6,"div",[],null,null,null,null,null)),(t()(),s.vb(2,0,[[1,0],["caretElm",1]],null,0,"span",[],[[8,"hidden",0],[8,"className",0]],null,null,null,null)),(t()(),s.vb(3,0,null,null,4,"div",[["class","tooltip-content"]],null,null,null,null,null)),(t()(),s.kb(16777216,null,null,1,null,Us)),s.ub(5,16384,null,0,Ls.k,[s.O,s.L],{ngIf:[0,"ngIf"]},null),(t()(),s.kb(16777216,null,null,1,null,Ys)),s.ub(7,16384,null,0,Ls.k,[s.O,s.L],{ngIf:[0,"ngIf"]},null)],(function(t,n){var e=n.component;t(n,5,0,!e.title),t(n,7,0,e.title)}),(function(t,n){var e=n.component;t(n,2,0,!e.showCaret,s.zb(1,"tooltip-caret position-",e.placement,""))}))}function Xs(t){return s.Qb(0,[(t()(),s.vb(0,0,null,null,1,"ngx-tooltip-content",[],[[8,"className",0]],[["window","resize"]],(function(t,n,e){var r=!0;return"window:resize"===n&&(r=!1!==s.Hb(t,1).onWindowResize()&&r),r}),Hs,Rs)),s.ub(1,4243456,null,0,Bs,[s.k,s.D],null,null)],null,(function(t,n){t(n,0,0,s.Hb(n,1).cssClasses)}))}var qs=s.rb("ngx-tooltip-content",Bs,Xs,{host:"host",showCaret:"showCaret",type:"type",placement:"placement",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},{},[]),Ws=function(){function t(t,n,e){this.applicationRef=t,this.componentFactoryResolver=n,this.injector=e}var n;return n=t,t.setGlobalRootViewContainer=function(t){n.globalRootViewContainer=t},t.prototype.getRootViewContainer=function(){var t=this.applicationRef.components;if(t&&t.length)return t[0];if(this._container)return this._container;if(n.globalRootViewContainer)return n.globalRootViewContainer;throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer.")},t.prototype.setRootViewContainer=function(t){this._container=t},t.prototype.getComponentRootNode=function(t){return t.hostView?t.hostView.rootNodes[0]:t.element.nativeElement},t.prototype.getRootViewContainerNode=function(){return this.getComponentRootNode(this.getRootViewContainer())},t.prototype.projectComponentBindings=function(t,n){if(n){if(void 0!==n.inputs)for(var e=0,r=Object.getOwnPropertyNames(n.inputs);e<r.length;e++){var i=r[e];t.instance[i]=n.inputs[i]}if(void 0!==n.outputs)for(var o=0,s=Object.getOwnPropertyNames(n.outputs);o<s.length;o++){var a=s[o];t.instance[a]=n.outputs[a]}}return t},t.prototype.appendComponent=function(t,n,e){void 0===n&&(n={}),void 0===e&&(e=this.getRootViewContainerNode());var r=this.componentFactoryResolver.resolveComponentFactory(t).create(this.injector),i=this.applicationRef,o=this.getComponentRootNode(r);return this.projectComponentBindings(r,n),i.attachView(r.hostView),r.onDestroy((function(){i.detachView(r.hostView)})),r.instance.renderer.appendChild(e,o),r},t.globalRootViewContainer=null,t}(),$s=function(t){function n(n){var e=t.call(this,n)||this;return e.injectionService=n,e.type=Bs,e}return Object(js.__extends)(n,t),n}(function(){function t(t){this.injectionService=t,this.defaults={},this.components=new Map}return t.prototype.getByType=function(t){return void 0===t&&(t=this.type),this.components.get(t)},t.prototype.create=function(t){return this.createByType(this.type,t)},t.prototype.createByType=function(t,n){n=this.assignDefaults(n);var e=this.injectComponent(t,n);return this.register(t,e),e},t.prototype.destroy=function(t){var n=this.components.get(t.componentType);if(n){var e=n.indexOf(t);e>-1&&(n[e].destroy(),n.splice(e,1))}},t.prototype.destroyAll=function(){this.destroyByType(this.type)},t.prototype.destroyByType=function(t){var n=this.components.get(t);if(n)for(var e=0,r=n;e<r.length;e++)this.destroy(r[e])},t.prototype.assignDefaults=function(t){var n=this.defaults,e=n.inputs,r=n.outputs;return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(e,t.inputs)),r&&(t.outputs=Object.assign(r,t.outputs)),t},t.prototype.injectComponent=function(t,n){return this.injectionService.appendComponent(t,n)},t.prototype.register=function(t,n){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(n)},t}()),Qs=function(){return function(){}}(),Zs=function(){return function(){}}(),Js=function(){function t(t,n){this.vcr=t,this.tooltipService=n,this.showLegend=!1,this.animations=!0,this.legendLabelClick=new s.m,this.legendLabelActivate=new s.m,this.legendLabelDeactivate=new s.m,this.tooltipService.injectionService.setRootViewContainer(this.vcr)}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){var t=0;this.showLegend&&(this.legendType=this.getLegendType(),this.legendOptions&&"right"!==this.legendOptions.position||(t="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-t)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*t/12)},t.prototype.getLegendType=function(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"},t}(),Ks=function(){function t(t){this.cd=t,this.horizontal=!1,this.labelClick=new s.m,this.labelActivate=new s.m,this.labelDeactivate=new s.m,this.legendEntries=[]}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()},t.prototype.getLegendEntries=function(){for(var t=[],n=function(n){var r=function(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}(n);-1===t.findIndex((function(t){return t.label===r}))&&t.push({label:n,formattedLabel:r,color:e.colors.getColor(n)})},e=this,r=0,i=this.data;r<i.length;r++)n(i[r]);return t},t.prototype.isActive=function(t){return!!this.activeEntries&&void 0!==this.activeEntries.find((function(n){return t.label===n.name}))},t.prototype.activate=function(t){this.labelActivate.emit(t)},t.prototype.deactivate=function(t){this.labelDeactivate.emit(t)},t.prototype.trackBy=function(t,n){return n.label},t}(),ta=function(){function t(t){this.sanitizer=t,this.horizontal=!1}return t.prototype.ngOnChanges=function(t){var n=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle("linear-gradient(to "+(this.horizontal?"right":"bottom")+", "+n+")")},t.prototype.gradientString=function(t,n){n.push(1);var e=[];return t.reverse().forEach((function(t,r){e.push(t+" "+Math.round(100*n[r])+"%")})),e.join(", ")},t}(),na=function(){function t(){this.isActive=!1,this.select=new s.m,this.activate=new s.m,this.deactivate=new s.m,this.toggle=new s.m}return Object.defineProperty(t.prototype,"trimmedLabel",{get:function(){return this.formattedLabel||"(empty)"},enumerable:!0,configurable:!0}),t.prototype.onMouseEnter=function(){this.activate.emit({name:this.label})},t.prototype.onMouseLeave=function(){this.deactivate.emit({name:this.label})},t}();"undefined"!=typeof window?window:"undefined"!=typeof global&&global;var ea=function(){return function(){}}(),ra=function(){return function(){}}(),ia=function(){return function(){}}(),oa=function(){return function(){}}(),sa=function(){return function(){}}(),aa=function(){return function(){}}(),ua=function(){return function(){}}(),ca=function(){return function(){}}(),la=(Math,function(){return function(){}}()),ha=function(){return function(){}}(),fa=function(){return function(){}}(),da=function(){return function(){}}();"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains);var pa=function(){return function(){}}(),ga=e("cUpR"),va=s.tb({encapsulation:2,styles:[[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{text-align:center;display:flex;flex-direction:column}.chart-legend .scale-legend-wrap{display:inline-block;flex:1;width:30px;border-radius:5px;margin:0 auto}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{width:auto;height:30px;margin:0 16px}"]],data:{}});function ya(t){return s.Qb(2,[(t()(),s.vb(0,0,null,null,7,"div",[["class","scale-legend"]],[[2,"horizontal-legend",null],[4,"height","px"],[4,"width","px"]],null,null,null,null)),(t()(),s.vb(1,0,null,null,2,"div",[["class","scale-legend-label"]],null,null,null,null,null)),(t()(),s.vb(2,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),s.Ob(3,null,["",""])),(t()(),s.vb(4,0,null,null,0,"div",[["class","scale-legend-wrap"]],[[4,"background",null]],null,null,null,null)),(t()(),s.vb(5,0,null,null,2,"div",[["class","scale-legend-label"]],null,null,null,null,null)),(t()(),s.vb(6,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),s.Ob(7,null,["",""]))],null,(function(t,n){var e=n.component;t(n,0,0,e.horizontal,e.horizontal?void 0:e.height,e.width),t(n,3,0,e.valueRange[1].toLocaleString()),t(n,4,0,e.gradient),t(n,7,0,e.valueRange[0].toLocaleString())}))}var ma=s.tb({encapsulation:2,styles:[],data:{}});function ba(t){return s.Qb(2,[(t()(),s.vb(0,0,null,null,3,"span",[["tabindex","-1"]],[[8,"title",0],[2,"active",null]],[[null,"click"]],(function(t,n,e){var r=!0,i=t.component;return"click"===n&&(r=!1!==i.select.emit(i.formattedLabel)&&r),r}),null,null)),(t()(),s.vb(1,0,null,null,0,"span",[["class","legend-label-color"]],[[4,"background-color",null]],[[null,"click"]],(function(t,n,e){var r=!0,i=t.component;return"click"===n&&(r=!1!==i.toggle.emit(i.formattedLabel)&&r),r}),null,null)),(t()(),s.vb(2,0,null,null,1,"span",[["class","legend-label-text"]],null,null,null,null,null)),(t()(),s.Ob(3,null,[" "," "]))],null,(function(t,n){var e=n.component;t(n,0,0,e.formattedLabel,e.isActive),t(n,1,0,e.color),t(n,3,0,e.trimmedLabel)}))}var xa=s.tb({encapsulation:2,styles:[[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{white-space:nowrap;overflow:hidden;margin-left:10px;margin-bottom:5px;font-size:14px;font-weight:700}.chart-legend li,.chart-legend ul{padding:0;margin:0;list-style:none}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{line-height:85%;list-style:none;text-align:left;float:left;width:100%;border-radius:3px;overflow-y:auto;overflow-x:hidden;white-space:nowrap;background:rgba(0,0,0,.05)}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{display:inline-block;height:15px;width:15px;margin-right:5px;color:#5b646b;border-radius:3px}.chart-legend .legend-label-text{display:inline-block;vertical-align:top;line-height:15px;font-size:12px;width:calc(100% - 20px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chart-legend .legend-title-text{vertical-align:bottom;display:inline-block;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"]],data:{}});function wa(t){return s.Qb(0,[(t()(),s.vb(0,0,null,null,2,"header",[["class","legend-title"]],null,null,null,null,null)),(t()(),s.vb(1,0,null,null,1,"span",[["class","legend-title-text"]],null,null,null,null,null)),(t()(),s.Ob(2,null,["",""]))],null,(function(t,n){t(n,2,0,n.component.title)}))}function _a(t){return s.Qb(0,[(t()(),s.vb(0,0,null,null,2,"li",[["class","legend-label"]],null,null,null,null,null)),(t()(),s.vb(1,0,null,null,1,"ngx-charts-legend-entry",[],null,[[null,"select"],[null,"activate"],[null,"deactivate"],[null,"mouseenter"],[null,"mouseleave"]],(function(t,n,e){var r=!0,i=t.component;return"mouseenter"===n&&(r=!1!==s.Hb(t,2).onMouseEnter()&&r),"mouseleave"===n&&(r=!1!==s.Hb(t,2).onMouseLeave()&&r),"select"===n&&(r=!1!==i.labelClick.emit(e)&&r),"activate"===n&&(r=!1!==i.activate(e)&&r),"deactivate"===n&&(r=!1!==i.deactivate(e)&&r),r}),ba,ma)),s.ub(2,49152,null,0,na,[],{color:[0,"color"],label:[1,"label"],formattedLabel:[2,"formattedLabel"],isActive:[3,"isActive"]},{select:"select",activate:"activate",deactivate:"deactivate"})],(function(t,n){t(n,2,0,n.context.$implicit.color,n.context.$implicit.label,n.context.$implicit.formattedLabel,n.component.isActive(n.context.$implicit))}),null)}function Ea(t){return s.Qb(2,[(t()(),s.vb(0,0,null,null,6,"div",[],[[4,"width","px"]],null,null,null,null)),(t()(),s.kb(16777216,null,null,1,null,wa)),s.ub(2,16384,null,0,Ls.k,[s.O,s.L],{ngIf:[0,"ngIf"]},null),(t()(),s.vb(3,0,null,null,3,"div",[["class","legend-wrap"]],null,null,null,null,null)),(t()(),s.vb(4,0,null,null,2,"ul",[["class","legend-labels"]],[[2,"horizontal-legend",null],[4,"max-height","px"]],null,null,null,null)),(t()(),s.kb(16777216,null,null,1,null,_a)),s.ub(6,278528,null,0,Ls.j,[s.O,s.L,s.r],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null)],(function(t,n){var e=n.component;t(n,2,0,(null==e.title?null:e.title.length)>0),t(n,6,0,e.legendEntries,e.trackBy)}),(function(t,n){var e=n.component;t(n,0,0,e.width),t(n,4,0,e.horizontal,e.height-45)}))}var ka=s.tb({encapsulation:2,styles:[],data:{animation:[{type:7,name:"animationState",definitions:[{type:1,expr:":enter",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:{type:6,styles:{opacity:1},offset:null},timings:"500ms 100ms"}],options:null}],options:{}}]}});function Ma(t){return s.Qb(0,[(t()(),s.vb(0,0,null,null,1,"ngx-charts-scale-legend",[["class","chart-legend"]],null,null,null,ya,va)),s.ub(1,573440,null,0,ta,[ga.b],{valueRange:[0,"valueRange"],colors:[1,"colors"],height:[2,"height"],width:[3,"width"],horizontal:[4,"horizontal"]},null)],(function(t,n){var e=n.component;t(n,1,0,e.legendOptions.domain,e.legendOptions.colors,e.view[1],e.legendWidth,e.legendOptions&&"below"===e.legendOptions.position)}),null)}function Oa(t){return s.Qb(0,[(t()(),s.vb(0,0,null,null,1,"ngx-charts-legend",[["class","chart-legend"]],null,[[null,"labelClick"],[null,"labelActivate"],[null,"labelDeactivate"]],(function(t,n,e){var r=!0,i=t.component;return"labelClick"===n&&(r=!1!==i.legendLabelClick.emit(e)&&r),"labelActivate"===n&&(r=!1!==i.legendLabelActivate.emit(e)&&r),"labelDeactivate"===n&&(r=!1!==i.legendLabelDeactivate.emit(e)&&r),r}),Ea,xa)),s.ub(1,573440,null,0,Ks,[s.h],{data:[0,"data"],title:[1,"title"],colors:[2,"colors"],height:[3,"height"],width:[4,"width"],activeEntries:[5,"activeEntries"],horizontal:[6,"horizontal"]},{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"})],(function(t,n){var e=n.component;t(n,1,0,e.legendOptions.domain,e.legendOptions.title,e.legendOptions.colors,e.view[1],e.legendWidth,e.activeEntries,e.legendOptions&&"below"===e.legendOptions.position)}),null)}function Na(t){return s.Qb(2,[(t()(),s.vb(0,0,null,null,6,"div",[["class","ngx-charts-outer"]],[[4,"width","px"],[24,"@animationState",0],[24,"@.disabled",0]],null,null,null,null)),(t()(),s.vb(1,0,null,null,1,":svg:svg",[["class","ngx-charts"]],[[1,"width",0],[1,"height",0]],null,null,null,null)),s.Gb(null,0),(t()(),s.kb(16777216,null,null,1,null,Ma)),s.ub(4,16384,null,0,Ls.k,[s.O,s.L],{ngIf:[0,"ngIf"]},null),(t()(),s.kb(16777216,null,null,1,null,Oa)),s.ub(6,16384,null,0,Ls.k,[s.O,s.L],{ngIf:[0,"ngIf"]},null)],(function(t,n){var e=n.component;t(n,4,0,e.showLegend&&"scaleLegend"===e.legendType),t(n,6,0,e.showLegend&&"legend"===e.legendType)}),(function(t,n){var e=n.component;t(n,0,0,e.view[0],"active",!e.animations),t(n,1,0,e.chartWidth,e.view[1])}))}var Aa=s.tb({encapsulation:2,styles:[".graph{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.graph .edge{stroke:#666;fill:none}.graph .edge .edge-label{stroke:none;font-size:12px;fill:#251e1e}.graph .panning-rect{fill:transparent;cursor:move}.graph .node-group.old-node{transition:transform .5s ease-in-out;transition:transform .5s ease-in-out,-webkit-transform .5s ease-in-out}.graph .node-group .node:focus{outline:0}.graph .cluster rect{opacity:.2}"],data:{}});function Ca(t){return s.Qb(0,[(t()(),s.kb(0,null,null,0))],null,null)}function Ta(t){return s.Qb(0,[(t()(),s.kb(16777216,null,null,1,null,Ca)),s.ub(1,540672,null,0,Ls.r,[s.O],{ngTemplateOutlet:[0,"ngTemplateOutlet"]},null),(t()(),s.kb(0,null,null,0))],(function(t,n){t(n,1,0,n.component.defsTemplate)}),null)}function Sa(t){return s.Qb(0,[(t()(),s.vb(0,0,null,null,0,":svg:path",[["class","text-path"]],[[1,"d",0],[1,"id",0]],null,null,null,null))],null,(function(t,n){t(n,0,0,n.context.$implicit.textPath,n.context.$implicit.id)}))}function La(t){return s.Qb(0,[(t()(),s.kb(0,null,null,0))],null,null)}function ja(t){return s.Qb(0,[(t()(),s.kb(16777216,null,null,2,null,La)),s.ub(1,540672,null,0,Ls.r,[s.O],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),s.Kb(2,{$implicit:0}),(t()(),s.kb(0,null,null,0))],(function(t,n){var e=n.component,r=t(n,2,0,n.parent.context.$implicit);t(n,1,0,r,e.clusterTemplate)}),null)}function Da(t){return s.Qb(0,[(t()(),s.vb(0,0,null,null,3,":svg:g",[["class","node cluster"]],null,null,null,null,null)),(t()(),s.vb(1,0,null,null,0,":svg:rect",[],[[1,"width",0],[1,"height",0],[1,"fill",0]],null,null,null,null)),(t()(),s.vb(2,0,null,null,1,":svg:text",[["alignment-baseline","central"]],[[1,"x",0],[1,"y",0]],null,null,null,null)),(t()(),s.Ob(3,null,[" "," "]))],null,(function(t,n){t(n,1,0,n.parent.context.$implicit.dimension.width,n.parent.context.$implicit.dimension.height,null==n.parent.context.$implicit.data?null:n.parent.context.$implicit.data.color),t(n,2,0,10,n.parent.context.$implicit.dimension.height/2),t(n,3,0,n.parent.context.$implicit.label)}))}function Pa(t){return s.Qb(0,[(t()(),s.vb(0,0,[["clusterElement",1]],null,4,":svg:g",[["class","node-group"]],[[8,"id",0],[1,"transform",0]],[[null,"click"]],(function(t,n,e){var r=!0;return"click"===n&&(r=!1!==t.component.onClick(t.context.$implicit)&&r),r}),null,null)),(t()(),s.kb(16777216,null,null,1,null,ja)),s.ub(2,16384,null,0,Ls.k,[s.O,s.L],{ngIf:[0,"ngIf"]},null),(t()(),s.kb(16777216,null,null,1,null,Da)),s.ub(4,16384,null,0,Ls.k,[s.O,s.L],{ngIf:[0,"ngIf"]},null)],(function(t,n){var e=n.component;t(n,2,0,e.clusterTemplate),t(n,4,0,!e.clusterTemplate)}),(function(t,n){t(n,0,0,n.context.$implicit.id,n.context.$implicit.transform)}))}function Ga(t){return s.Qb(0,[(t()(),s.kb(0,null,null,0))],null,null)}function Fa(t){return s.Qb(0,[(t()(),s.kb(16777216,null,null,2,null,Ga)),s.ub(1,540672,null,0,Ls.r,[s.O],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),s.Kb(2,{$implicit:0}),(t()(),s.kb(0,null,null,0))],(function(t,n){var e=n.component,r=t(n,2,0,n.parent.context.$implicit);t(n,1,0,r,e.linkTemplate)}),null)}function Ia(t){return s.Qb(0,[(t()(),s.vb(0,0,null,null,0,":svg:path",[["class","edge"]],[[1,"d",0]],null,null,null,null))],null,(function(t,n){t(n,0,0,n.parent.context.$implicit.line)}))}function za(t){return s.Qb(0,[(t()(),s.vb(0,0,[[3,0],["linkElement",1]],null,4,":svg:g",[["class","link-group"]],[[8,"id",0]],null,null,null,null)),(t()(),s.kb(16777216,null,null,1,null,Fa)),s.ub(2,16384,null,0,Ls.k,[s.O,s.L],{ngIf:[0,"ngIf"]},null),(t()(),s.kb(16777216,null,null,1,null,Ia)),s.ub(4,16384,null,0,Ls.k,[s.O,s.L],{ngIf:[0,"ngIf"]},null)],(function(t,n){var e=n.component;t(n,2,0,e.linkTemplate),t(n,4,0,!e.linkTemplate)}),(function(t,n){t(n,0,0,n.context.$implicit.id)}))}function Ba(t){return s.Qb(0,[(t()(),s.kb(0,null,null,0))],null,null)}function Ra(t){return s.Qb(0,[(t()(),s.kb(16777216,null,null,2,null,Ba)),s.ub(1,540672,null,0,Ls.r,[s.O],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),s.Kb(2,{$implicit:0}),(t()(),s.kb(0,null,null,0))],(function(t,n){var e=n.component,r=t(n,2,0,n.parent.context.$implicit);t(n,1,0,r,e.nodeTemplate)}),null)}function Va(t){return s.Qb(0,[(t()(),s.vb(0,0,null,null,0,":svg:circle",[["r","10"]],[[1,"cx",0],[1,"cy",0],[1,"fill",0]],null,null,null,null))],null,(function(t,n){t(n,0,0,n.parent.context.$implicit.dimension.width/2,n.parent.context.$implicit.dimension.height/2,null==n.parent.context.$implicit.data?null:n.parent.context.$implicit.data.color)}))}function Ua(t){return s.Qb(0,[(t()(),s.vb(0,0,[[2,0],["nodeElement",1]],null,4,":svg:g",[["class","node-group"]],[[2,"old-node",null],[8,"id",0],[1,"transform",0]],[[null,"click"],[null,"mousedown"]],(function(t,n,e){var r=!0,i=t.component;return"click"===n&&(r=!1!==i.onClick(t.context.$implicit)&&r),"mousedown"===n&&(r=!1!==i.onNodeMouseDown(e,t.context.$implicit)&&r),r}),null,null)),(t()(),s.kb(16777216,null,null,1,null,Ra)),s.ub(2,16384,null,0,Ls.k,[s.O,s.L],{ngIf:[0,"ngIf"]},null),(t()(),s.kb(16777216,null,null,1,null,Va)),s.ub(4,16384,null,0,Ls.k,[s.O,s.L],{ngIf:[0,"ngIf"]},null)],(function(t,n){var e=n.component;t(n,2,0,e.nodeTemplate),t(n,4,0,!e.nodeTemplate)}),(function(t,n){var e=n.component;t(n,0,0,e.animate&&e.oldNodes.has(n.context.$implicit.id),n.context.$implicit.id,n.context.$implicit.transform)}))}function Ya(t){return s.Qb(0,[(t()(),s.vb(0,0,null,null,16,":svg:g",[["class","graph chart"]],[[1,"transform",0]],[[null,"touchstart"],[null,"touchend"]],(function(t,n,e){var r=!0,i=t.component;return"touchstart"===n&&(r=!1!==i.onTouchStart(e)&&r),"touchend"===n&&(r=!1!==i.onTouchEnd(e)&&r),r}),null,null)),(t()(),s.vb(1,0,null,null,4,":svg:defs",[],null,null,null,null,null)),(t()(),s.kb(16777216,null,null,1,null,Ta)),s.ub(3,16384,null,0,Ls.k,[s.O,s.L],{ngIf:[0,"ngIf"]},null),(t()(),s.kb(16777216,null,null,1,null,Sa)),s.ub(5,278528,null,0,Ls.j,[s.O,s.L,s.r],{ngForOf:[0,"ngForOf"]},null),(t()(),s.vb(6,0,null,null,0,":svg:rect",[["class","panning-rect"]],[[1,"width",0],[1,"height",0],[1,"transform",0]],[[null,"mousedown"]],(function(t,n,e){var r=!0;return"mousedown"===n&&(r=0!=(t.component.isPanning=!0)&&r),r}),null,null)),s.Gb(null,0),(t()(),s.vb(8,0,null,null,2,":svg:g",[["class","clusters"]],null,null,null,null,null)),(t()(),s.kb(16777216,null,null,1,null,Pa)),s.ub(10,278528,null,0,Ls.j,[s.O,s.L,s.r],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(t()(),s.vb(11,0,null,null,2,":svg:g",[["class","links"]],null,null,null,null,null)),(t()(),s.kb(16777216,null,null,1,null,za)),s.ub(13,278528,null,0,Ls.j,[s.O,s.L,s.r],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(t()(),s.vb(14,0,null,null,2,":svg:g",[["class","nodes"]],null,null,null,null,null)),(t()(),s.kb(16777216,null,null,1,null,Ua)),s.ub(16,278528,null,0,Ls.j,[s.O,s.L,s.r],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null)],(function(t,n){var e=n.component;t(n,3,0,e.defsTemplate),t(n,5,0,e.graph.edges),t(n,10,0,e.graph.clusters,e.trackNodeBy),t(n,13,0,e.graph.edges,e.trackLinkBy),t(n,16,0,e.graph.nodes,e.trackNodeBy)}),(function(t,n){var e=n.component;t(n,0,0,e.transform),t(n,6,0,100*e.dims.width,100*e.dims.height,"translate("+50*(0-e.dims.width||0)+","+50*(0-e.dims.height||0)+")")}))}function Ha(t){return s.Qb(2,[s.Mb(402653184,1,{chart:0}),s.Mb(671088640,2,{nodeElements:1}),s.Mb(671088640,3,{linkElements:1}),(t()(),s.vb(3,16777216,[[1,0]],null,6,"ngx-charts-chart",[["mouseWheel",""]],null,[[null,"legendLabelClick"],[null,"legendLabelActivate"],[null,"legendLabelDeactivate"],[null,"mouseWheelUp"],[null,"mouseWheelDown"],[null,"mousewheel"],[null,"DOMMouseScroll"],[null,"onmousewheel"]],(function(t,n,e){var r=!0,i=t.component;return"mousewheel"===n&&(r=!1!==s.Hb(t,7).onMouseWheelChrome(e)&&r),"DOMMouseScroll"===n&&(r=!1!==s.Hb(t,7).onMouseWheelFirefox(e)&&r),"onmousewheel"===n&&(r=!1!==s.Hb(t,7).onMouseWheelIE(e)&&r),"legendLabelClick"===n&&(r=!1!==i.onClick(e)&&r),"legendLabelActivate"===n&&(r=!1!==i.onActivate(e)&&r),"legendLabelDeactivate"===n&&(r=!1!==i.onDeactivate(e)&&r),"mouseWheelUp"===n&&(r=!1!==i.onZoom(e,"in")&&r),"mouseWheelDown"===n&&(r=!1!==i.onZoom(e,"out")&&r),r}),Na,ka)),s.Lb(512,null,$s,$s,[Ws]),s.ub(5,573440,null,0,Js,[s.O,$s],{view:[0,"view"],showLegend:[1,"showLegend"],legendOptions:[2,"legendOptions"]},{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"}),s.Ib(6,2),s.ub(7,16384,null,0,Cs,[],null,{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}),(t()(),s.kb(16777216,null,0,1,null,Ya)),s.ub(9,16384,null,0,Ls.k,[s.O,s.L],{ngIf:[0,"ngIf"]},null)],(function(t,n){var e=n.component,r=t(n,6,0,e.width,e.height);t(n,5,0,r,e.legend,e.legendOptions),t(n,9,0,e.initialized&&e.graph)}),null)}class Xa{constructor(){this.links=[{id:"a",source:"1",target:"2"},{id:"b",source:"1",target:"3"},{id:"c",source:"3",target:"4"},{id:"d",source:"3",target:"5"},{id:"f",source:"2",target:"6"}],this.nodes=[{id:"1",label:"Node A"},{id:"2",label:"Node B"},{id:"3",label:"Node C"},{id:"4",label:"Node D"},{id:"5",label:"Node E"},{id:"6",label:"Node F"}],this.clusters=[{id:"bloxk_x",label:"Bock X",childNodeIds:["2","3"]}]}ngOnInit(){}onNodeSelect(){alert("hello")}}var qa=s.tb({encapsulation:0,styles:[[".node[_ngcontent-%COMP%]{cursor:pointer}"]],data:{}});function Wa(t){return s.Qb(0,[(t()(),s.vb(0,0,null,null,3,":svg:g",[["class","node"],["xmlns","http://www.w3.org/2000/xhtml"]],null,[[null,"click"]],(function(t,n,e){var r=!0;return"click"===n&&(r=!1!==t.component.onNodeSelect()&&r),r}),null,null)),(t()(),s.vb(1,0,null,null,0,":svg:rect",[["height","70"],["rx","5"],["width","70"]],null,null,null,null,null)),(t()(),s.vb(2,0,null,null,1,":svg:text",[["text-anchor","middle"],["x","35"],["y","65"]],null,null,null,null,null)),(t()(),s.Ob(3,null,["",""]))],null,(function(t,n){t(n,3,0,n.context.$implicit.label)}))}function $a(t){return s.Qb(0,[s.Mb(402653184,1,{diagram:0}),(t()(),s.vb(1,0,null,null,7,"ngx-graph",[["layout","dagre"]],null,[["document","mousemove"],["document","mousedown"],["document","click"],["document","touchmove"],["document","mouseup"]],(function(t,n,e){var r=!0;return"document:mousemove"===n&&(r=!1!==s.Hb(t,2).onMouseMove(e)&&r),"document:mousedown"===n&&(r=!1!==s.Hb(t,2).onMouseDown(e)&&r),"document:click"===n&&(r=!1!==s.Hb(t,2).graphClick(e)&&r),"document:touchmove"===n&&(r=!1!==s.Hb(t,2).onTouchMove(e)&&r),"document:mouseup"===n&&(r=!1!==s.Hb(t,2).onMouseUp(e)&&r),r}),Ha,Aa)),s.ub(2,4964352,null,4,As,[s.k,s.y,s.h,Os],{view:[0,"view"],nodes:[1,"nodes"],links:[2,"links"],draggingEnabled:[3,"draggingEnabled"],layout:[4,"layout"]},null),s.Mb(603979776,2,{linkTemplate:0}),s.Mb(603979776,3,{nodeTemplate:0}),s.Mb(603979776,4,{clusterTemplate:0}),s.Mb(603979776,5,{defsTemplate:0}),s.Ib(7,2),(t()(),s.kb(0,[[3,2],["nodeTemplate",2]],0,0,null,Wa))],(function(t,n){var e=n.component,r=t(n,7,0,500,500);t(n,2,0,r,e.nodes,e.links,!1,"dagre")}),null)}function Qa(t){return s.Qb(0,[(t()(),s.vb(0,0,null,null,1,"app-diagram",[],null,null,null,$a,qa)),s.ub(1,114688,null,0,Xa,[],null,null)],(function(t,n){t(n,1,0)}),null)}var Za=s.rb("app-diagram",Xa,Qa,{},{},[]),Ja=e("iInd");class Ka{}e.d(n,"FlowModuleNgFactory",(function(){return tu}));var tu=s.sb(a,[],(function(t){return s.Eb([s.Fb(512,s.j,s.bb,[[8,[u.a,Za,qs]],[3,s.j],s.w]),s.Fb(4608,Ls.m,Ls.l,[s.t,[2,Ls.C]]),s.Fb(4608,Ws,Ws,[s.g,s.j,s.q]),s.Fb(4608,$s,$s,[Ws]),s.Fb(4608,Os,Os,[]),s.Fb(1073742336,Ls.c,Ls.c,[]),s.Fb(1073742336,Ja.m,Ja.m,[[2,Ja.r],[2,Ja.k]]),s.Fb(1073742336,Ka,Ka,[]),s.Fb(1073742336,Qs,Qs,[]),s.Fb(1073742336,Zs,Zs,[]),s.Fb(1073742336,ea,ea,[]),s.Fb(1073742336,ra,ra,[]),s.Fb(1073742336,ia,ia,[]),s.Fb(1073742336,oa,oa,[]),s.Fb(1073742336,sa,sa,[]),s.Fb(1073742336,aa,aa,[]),s.Fb(1073742336,ua,ua,[]),s.Fb(1073742336,ca,ca,[]),s.Fb(1073742336,la,la,[]),s.Fb(1073742336,ha,ha,[]),s.Fb(1073742336,fa,fa,[]),s.Fb(1073742336,da,da,[]),s.Fb(1073742336,pa,pa,[]),s.Fb(1073742336,Ts,Ts,[]),s.Fb(1073742336,Ss,Ss,[]),s.Fb(1073742336,a,a,[]),s.Fb(1024,Ja.i,(function(){return[[{path:"",component:Xa}]]}),[])])}))},qZTm:function(t,n,e){var r=e("fR/l"),i=e("MvSz"),o=e("7GkX");t.exports=function(t){return r(t,o,i)}},quyA:function(t,n){var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},qvmO:function(t,n,e){var r=e("3y7U");t.exports=function(t,n){return r(t,n,"pre")}},rEGp:function(t,n){t.exports=function(t){var n=-1,e=Array(t.size);return t.forEach((function(t){e[++n]=t})),e}},rYy2:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(t){this.scale=t,this.AB=0,this.AD=0,this.A2=0}return t.prototype.addVariable=function(t){var n=this.scale/t.scale,e=t.weight;this.AB+=e*n*(t.offset/t.scale),this.AD+=e*n*t.desiredPosition,this.A2+=e*n*n},t.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},t}();n.PositionStats=r;var i=function(){function t(t,n,e,r){void 0===r&&(r=!1),this.left=t,this.right=n,this.gap=e,this.equality=r,this.active=!1,this.unsatisfiable=!1,this.left=t,this.right=n,this.gap=e,this.equality=r}return t.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},t}();n.Constraint=i;var o=function(){function t(t,n,e){void 0===n&&(n=1),void 0===e&&(e=1),this.desiredPosition=t,this.weight=n,this.scale=e,this.offset=0}return t.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},t.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},t.prototype.visitNeighbours=function(t,n){var e=function(e,r){return e.active&&t!==r&&n(e,r)};this.cOut.forEach((function(t){return e(t,t.right)})),this.cIn.forEach((function(t){return e(t,t.left)}))},t}();n.Variable=o;var s=function(){function t(t){this.vars=[],t.offset=0,this.ps=new r(t.scale),this.addVariable(t)}return t.prototype.addVariable=function(t){t.block=this,this.vars.push(t),this.ps.addVariable(t),this.posn=this.ps.getPosn()},t.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var t=0,n=this.vars.length;t<n;++t)this.ps.addVariable(this.vars[t]);this.posn=this.ps.getPosn()},t.prototype.compute_lm=function(t,n,e){var r=this,i=t.dfdv();return t.visitNeighbours(n,(function(n,o){var s=r.compute_lm(o,t,e);o===n.right?(i+=s*n.left.scale,n.lm=s):(i+=s*n.right.scale,n.lm=-s),e(n)})),i/t.scale},t.prototype.populateSplitBlock=function(t,n){var e=this;t.visitNeighbours(n,(function(n,r){r.offset=t.offset+(r===n.right?n.gap:-n.gap),e.addVariable(r),e.populateSplitBlock(r,t)}))},t.prototype.traverse=function(t,n,e,r){var i=this;void 0===e&&(e=this.vars[0]),void 0===r&&(r=null),e.visitNeighbours(r,(function(r,o){n.push(t(r)),i.traverse(t,n,o,e)}))},t.prototype.findMinLM=function(){var t=null;return this.compute_lm(this.vars[0],null,(function(n){!n.equality&&(null===t||n.lm<t.lm)&&(t=n)})),t},t.prototype.findMinLMBetween=function(t,n){this.compute_lm(t,null,(function(){}));var e=null;return this.findPath(t,null,n,(function(t,n){!t.equality&&t.right===n&&(null===e||t.lm<e.lm)&&(e=t)})),e},t.prototype.findPath=function(t,n,e,r){var i=this,o=!1;return t.visitNeighbours(n,(function(n,s){o||s!==e&&!i.findPath(s,t,e,r)||(o=!0,r(n,s))})),o},t.prototype.isActiveDirectedPathBetween=function(t,n){if(t===n)return!0;for(var e=t.cOut.length;e--;){var r=t.cOut[e];if(r.active&&this.isActiveDirectedPathBetween(r.right,n))return!0}return!1},t.split=function(n){return n.active=!1,[t.createSplitBlock(n.left),t.createSplitBlock(n.right)]},t.createSplitBlock=function(n){var e=new t(n);return e.populateSplitBlock(n,null),e},t.prototype.splitBetween=function(n,e){var r=this.findMinLMBetween(n,e);if(null!==r){var i=t.split(r);return{constraint:r,lb:i[0],rb:i[1]}}return null},t.prototype.mergeAcross=function(t,n,e){n.active=!0;for(var r=0,i=t.vars.length;r<i;++r){var o=t.vars[r];o.offset+=e,this.addVariable(o)}this.posn=this.ps.getPosn()},t.prototype.cost=function(){for(var t=0,n=this.vars.length;n--;){var e=this.vars[n],r=e.position()-e.desiredPosition;t+=r*r*e.weight}return t},t}();n.Block=s;var a=function(){function t(t){this.vs=t;var n=t.length;for(this.list=new Array(n);n--;){var e=new s(t[n]);this.list[n]=e,e.blockInd=n}}return t.prototype.cost=function(){for(var t=0,n=this.list.length;n--;)t+=this.list[n].cost();return t},t.prototype.insert=function(t){t.blockInd=this.list.length,this.list.push(t)},t.prototype.remove=function(t){var n=this.list.length-1,e=this.list[n];this.list.length=n,t!==e&&(this.list[t.blockInd]=e,e.blockInd=t.blockInd)},t.prototype.merge=function(t){var n=t.left.block,e=t.right.block,r=t.right.offset-t.left.offset-t.gap;n.vars.length<e.vars.length?(e.mergeAcross(n,t,r),this.remove(n)):(n.mergeAcross(e,t,-r),this.remove(e))},t.prototype.forEach=function(t){this.list.forEach(t)},t.prototype.updateBlockPositions=function(){this.list.forEach((function(t){return t.updateWeightedPosition()}))},t.prototype.split=function(t){var n=this;this.updateBlockPositions(),this.list.forEach((function(e){var r=e.findMinLM();null!==r&&r.lm<u.LAGRANGIAN_TOLERANCE&&(e=r.left.block,s.split(r).forEach((function(t){return n.insert(t)})),n.remove(e),t.push(r))}))},t}();n.Blocks=a;var u=function(){function t(t,n){this.vs=t,this.cs=n,this.vs=t,t.forEach((function(t){t.cIn=[],t.cOut=[]})),this.cs=n,n.forEach((function(t){t.left.cOut.push(t),t.right.cIn.push(t)})),this.inactive=n.map((function(t){return t.active=!1,t})),this.bs=null}return t.prototype.cost=function(){return this.bs.cost()},t.prototype.setStartingPositions=function(t){this.inactive=this.cs.map((function(t){return t.active=!1,t})),this.bs=new a(this.vs),this.bs.forEach((function(n,e){return n.posn=t[e]}))},t.prototype.setDesiredPositions=function(t){this.vs.forEach((function(n,e){return n.desiredPosition=t[e]}))},t.prototype.mostViolated=function(){for(var n=Number.MAX_VALUE,e=null,r=this.inactive,i=r.length,o=i,s=0;s<i;++s){var a=r[s];if(!a.unsatisfiable){var u=a.slack();if((a.equality||u<n)&&(n=u,e=a,o=s,a.equality))break}}return o!==i&&(n<t.ZERO_UPPERBOUND&&!e.active||e.equality)&&(r[o]=r[i-1],r.length=i-1),e},t.prototype.satisfy=function(){null==this.bs&&(this.bs=new a(this.vs)),this.bs.split(this.inactive);for(var n=null;(n=this.mostViolated())&&(n.equality||n.slack()<t.ZERO_UPPERBOUND&&!n.active);){var e=n.left.block;if(e!==n.right.block)this.bs.merge(n);else{if(e.isActiveDirectedPathBetween(n.right,n.left)){n.unsatisfiable=!0;continue}var r=e.splitBetween(n.left,n.right);if(null===r){n.unsatisfiable=!0;continue}this.bs.insert(r.lb),this.bs.insert(r.rb),this.bs.remove(e),this.inactive.push(r.constraint),n.slack()>=0?this.inactive.push(n):this.bs.merge(n)}}},t.prototype.solve=function(){this.satisfy();for(var t=Number.MAX_VALUE,n=this.bs.cost();Math.abs(t-n)>1e-4;)this.satisfy(),t=n,n=this.bs.cost();return n},t.LAGRANGIAN_TOLERANCE=-1e-4,t.ZERO_UPPERBOUND=-1e-10,t}();n.Solver=u,n.removeOverlapInOneDimension=function(t,n,e){for(var r=t.map((function(t){return new o(t.desiredCenter)})),s=[],a=t.length,c=0;c<a-1;c++)s.push(new i(r[c],r[c+1],(t[c].size+t[c+1].size)/2));var l=r[0],h=r[a-1],f=t[0].size/2,d=t[a-1].size/2,p=null,g=null;return n&&(p=new o(n,1e3*l.weight),r.push(p),s.push(new i(p,l,f))),e&&(g=new o(e,1e3*h.weight),r.push(g),s.push(new i(h,g,d))),new u(r,s).solve(),{newCenters:r.slice(0,t.length).map((function(t){return t.position()})),lowerBound:p?p.position():l.position()-f,upperBound:g?g.position():h.position()+d}}},sEf8:function(t,n){t.exports=function(t){return function(n){return t(n)}}},seXi:function(t,n,e){var r=e("qZTm"),i=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,o,s,a){var u=1&e,c=r(t),l=c.length;if(l!=r(n).length&&!u)return!1;for(var h=l;h--;){var f=c[h];if(!(u?f in n:i.call(n,f)))return!1}var d=a.get(t);if(d&&a.get(n))return d==n;var p=!0;a.set(t,n),a.set(n,t);for(var g=u;++h<l;){var v=t[f=c[h]],y=n[f];if(o)var m=u?o(y,v,f,n,t,a):o(v,y,f,t,n,a);if(!(void 0===m?v===y||s(v,y,e,o,a):m)){p=!1;break}g||(g="constructor"==f)}if(p&&!g){var b=t.constructor,x=n.constructor;b!=x&&"constructor"in t&&"constructor"in n&&!("function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x)&&(p=!1)}return a.delete(t),a.delete(n),p}},shjB:function(t,n){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},t2Dn:function(t,n,e){var r=e("hypo"),i=e("ljhN");t.exports=function(t,n,e){(void 0===e||i(t[n],e))&&(void 0!==e||n in t)||r(t,n,e)}},tLB3:function(t,n,e){var r=e("GoyQ"),i=e("/9aa"),o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(r(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=r(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var e=a.test(t);return e||u.test(t)?c(t.slice(2),e?2:8):s.test(t)?NaN:+t}},tMB7:function(t,n,e){var r=e("y1pI");t.exports=function(t){var n=this.__data__,e=r(n,t);return e<0?void 0:n[e][1]}},tQ6r:function(t,n,e){"use strict";var r=e("b5wT"),i=e("F9We").Graph;function o(t,n,e,i){var o;do{o=r.uniqueId(i)}while(t.hasNode(o));return e.dummy=n,t.setNode(o,e),o}function s(t){return r.max(r.map(t.nodes(),(function(n){var e=t.node(n).rank;if(!r.isUndefined(e))return e})))}t.exports={addDummyNode:o,simplify:function(t){var n=(new i).setGraph(t.graph());return r.forEach(t.nodes(),(function(e){n.setNode(e,t.node(e))})),r.forEach(t.edges(),(function(e){var r=n.edge(e.v,e.w)||{weight:0,minlen:1},i=t.edge(e);n.setEdge(e.v,e.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),n},asNonCompoundGraph:function(t){var n=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(e){t.children(e).length||n.setNode(e,t.node(e))})),r.forEach(t.edges(),(function(e){n.setEdge(e,t.edge(e))})),n},successorWeights:function(t){var n=r.map(t.nodes(),(function(n){var e={};return r.forEach(t.outEdges(n),(function(n){e[n.w]=(e[n.w]||0)+t.edge(n).weight})),e}));return r.zipObject(t.nodes(),n)},predecessorWeights:function(t){var n=r.map(t.nodes(),(function(n){var e={};return r.forEach(t.inEdges(n),(function(n){e[n.v]=(e[n.v]||0)+t.edge(n).weight})),e}));return r.zipObject(t.nodes(),n)},intersectRect:function(t,n){var e,r,i=t.x,o=t.y,s=n.x-i,a=n.y-o,u=t.width/2,c=t.height/2;if(!s&&!a)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(a)*u>Math.abs(s)*c?(a<0&&(c=-c),e=c*s/a,r=c):(s<0&&(u=-u),e=u,r=u*a/s),{x:i+e,y:o+r}},buildLayerMatrix:function(t){var n=r.map(r.range(s(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(e){var i=t.node(e),o=i.rank;r.isUndefined(o)||(n[o][i.order]=e)})),n},normalizeRanks:function(t){var n=r.min(r.map(t.nodes(),(function(n){return t.node(n).rank})));r.forEach(t.nodes(),(function(e){var i=t.node(e);r.has(i,"rank")&&(i.rank-=n)}))},removeEmptyRanks:function(t){var n=r.min(r.map(t.nodes(),(function(n){return t.node(n).rank}))),e=[];r.forEach(t.nodes(),(function(r){var i=t.node(r).rank-n;e[i]||(e[i]=[]),e[i].push(r)}));var i=0,o=t.graph().nodeRankFactor;r.forEach(e,(function(n,e){r.isUndefined(n)&&e%o!=0?--i:i&&r.forEach(n,(function(n){t.node(n).rank+=i}))}))},addBorderNode:function(t,n,e,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=e,i.order=r),o(t,"border",i,n)},maxRank:s,partition:function(t,n){var e={lhs:[],rhs:[]};return r.forEach(t,(function(t){n(t)?e.lhs.push(t):e.rhs.push(t)})),e},time:function(t,n){var e=r.now();try{return n()}finally{console.log(t+" time: "+(r.now()-e)+"ms")}},notime:function(t,n){return n()}}},tadb:function(t,n,e){var r=e("Cwc5")(e("Kz5y"),"DataView");t.exports=r},"u+pN":function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(){this.locks={}}return t.prototype.add=function(t,n){this.locks[t]=n},t.prototype.clear=function(){this.locks={}},t.prototype.isEmpty=function(){for(var t in this.locks)return!1;return!0},t.prototype.apply=function(t){for(var n in this.locks)t(Number(n),this.locks[n])},t}();n.Locks=r,n.Descent=function(){function t(t,n,e){void 0===e&&(e=null),this.D=n,this.G=e,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new i,this.project=null,this.x=t,this.k=t.length;var o=this.n=t[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new r,this.minD=Number.MAX_VALUE;for(var s,a=o;a--;)for(s=o;--s>a;){var u=n[a][s];u>0&&u<this.minD&&(this.minD=u)}for(this.minD===Number.MAX_VALUE&&(this.minD=1),a=this.k;a--;){for(this.g[a]=new Array(o),this.H[a]=new Array(o),s=o;s--;)this.H[a][s]=new Array(o);this.Hd[a]=new Array(o),this.a[a]=new Array(o),this.b[a]=new Array(o),this.c[a]=new Array(o),this.d[a]=new Array(o),this.e[a]=new Array(o),this.ia[a]=new Array(o),this.ib[a]=new Array(o),this.xtmp[a]=new Array(o)}}return t.createSquareMatrix=function(t,n){for(var e=new Array(t),r=0;r<t;++r){e[r]=new Array(t);for(var i=0;i<t;++i)e[r][i]=n(r,i)}return e},t.prototype.offsetDir=function(){for(var t=this,n=new Array(this.k),e=0,r=0;r<this.k;++r){var i=n[r]=this.random.getNextBetween(.01,1)-.5;e+=i*i}return e=Math.sqrt(e),n.map((function(n){return n*(t.minD/e)}))},t.prototype.computeDerivatives=function(t){var n=this,e=this.n;if(!(e<1)){for(var r,i=new Array(this.k),o=new Array(this.k),s=new Array(this.k),a=0,u=0;u<e;++u){for(r=0;r<this.k;++r)s[r]=this.g[r][u]=0;for(var c=0;c<e;++c)if(u!==c){for(var l=e;l--;){var h=0;for(r=0;r<this.k;++r){var f=i[r]=t[r][u]-t[r][c];h+=o[r]=f*f}if(h>1e-9)break;var d=this.offsetDir();for(r=0;r<this.k;++r)t[r][c]+=d[r]}var p=Math.sqrt(h),g=this.D[u][c],v=null!=this.G?this.G[u][c]:1;if(v>1&&p>g||!isFinite(g))for(r=0;r<this.k;++r)this.H[r][u][c]=0;else{v>1&&(v=1);var y=g*g,m=2*v*(p-g)/(y*p),b=p*p*p,x=2*-v/(y*b);for(isFinite(m)||console.log(m),r=0;r<this.k;++r)this.g[r][u]+=i[r]*m,s[r]-=this.H[r][u][c]=x*(b+g*(o[r]-h)+p*h)}}for(r=0;r<this.k;++r)a=Math.max(a,this.H[r][u][u]=s[r])}var w=this.snapGridSize/2,_=this.snapGridSize,E=this.snapStrength/(w*w),k=this.numGridSnapNodes;for(u=0;u<k;++u)for(r=0;r<this.k;++r){var M=this.x[r][u],O=M/_,N=O%1,A=O-N;-w<(f=Math.abs(N)<=.5?M-A*_:M>0?M-(A+1)*_:M-(A-1)*_)&&f<=w&&(this.scaleSnapByMaxH?(this.g[r][u]+=a*E*f,this.H[r][u][u]+=a*E):(this.g[r][u]+=E*f,this.H[r][u][u]+=E))}this.locks.isEmpty()||this.locks.apply((function(e,i){for(r=0;r<n.k;++r)n.H[r][e][e]+=a,n.g[r][e]-=a*(i[r]-t[r][e])}))}},t.dotProd=function(t,n){for(var e=0,r=t.length;r--;)e+=t[r]*n[r];return e},t.rightMultiply=function(n,e,r){for(var i=n.length;i--;)r[i]=t.dotProd(n[i],e)},t.prototype.computeStepSize=function(n){for(var e=0,r=0,i=0;i<this.k;++i)e+=t.dotProd(this.g[i],n[i]),t.rightMultiply(this.H[i],n[i],this.Hd[i]),r+=t.dotProd(n[i],this.Hd[i]);return 0!==r&&isFinite(r)?1*e/r:0},t.prototype.reduceStress=function(){this.computeDerivatives(this.x);for(var t=this.computeStepSize(this.g),n=0;n<this.k;++n)this.takeDescentStep(this.x[n],this.g[n],t);return this.computeStress()},t.copy=function(t,n){for(var e=t.length,r=n[0].length,i=0;i<e;++i)for(var o=0;o<r;++o)n[i][o]=t[i][o]},t.prototype.stepAndProject=function(n,e,r,i){t.copy(n,e),this.takeDescentStep(e[0],r[0],i),this.project&&this.project[0](n[0],n[1],e[0]),this.takeDescentStep(e[1],r[1],i),this.project&&this.project[1](e[0],n[1],e[1]);for(var o=2;o<this.k;o++)this.takeDescentStep(e[o],r[o],i)},t.mApply=function(t,n,e){for(var r=t;r-- >0;)for(var i=n;i-- >0;)e(r,i)},t.prototype.matrixApply=function(n){t.mApply(this.k,this.n,n)},t.prototype.computeNextPosition=function(t,n){var e=this;this.computeDerivatives(t);var r=this.computeStepSize(this.g);if(this.stepAndProject(t,n,this.g,r),this.project){this.matrixApply((function(r,i){return e.e[r][i]=t[r][i]-n[r][i]}));var i=this.computeStepSize(this.e);i=Math.max(.2,Math.min(i,1)),this.stepAndProject(t,n,this.e,i)}},t.prototype.run=function(t){for(var n=Number.MAX_VALUE,e=!1;!e&&t-- >0;){var r=this.rungeKutta();e=Math.abs(n/r-1)<this.threshold,n=r}return n},t.prototype.rungeKutta=function(){var n=this;this.computeNextPosition(this.x,this.a),t.mid(this.x,this.a,this.ia),this.computeNextPosition(this.ia,this.b),t.mid(this.x,this.b,this.ib),this.computeNextPosition(this.ib,this.c),this.computeNextPosition(this.c,this.d);var e=0;return this.matrixApply((function(t,r){var i=(n.a[t][r]+2*n.b[t][r]+2*n.c[t][r]+n.d[t][r])/6,o=n.x[t][r]-i;e+=o*o,n.x[t][r]=i})),e},t.mid=function(n,e,r){t.mApply(n.length,n[0].length,(function(t,i){return r[t][i]=n[t][i]+(e[t][i]-n[t][i])/2}))},t.prototype.takeDescentStep=function(t,n,e){for(var r=0;r<this.n;++r)t[r]=t[r]-e*n[r]},t.prototype.computeStress=function(){for(var t=0,n=0,e=this.n-1;n<e;++n)for(var r=n+1,i=this.n;r<i;++r){for(var o=0,s=0;s<this.k;++s){var a=this.x[s][n]-this.x[s][r];o+=a*a}o=Math.sqrt(o);var u=this.D[n][r];if(isFinite(u)){var c=u-o;t+=c*c/(u*u)}}return t},t.zeroDistance=1e-10,t}();var i=function(){function t(t){void 0===t&&(t=1),this.seed=t,this.a=214013,this.c=2531011,this.m=2147483648,this.range=32767}return t.prototype.getNext=function(){return this.seed=(this.seed*this.a+this.c)%this.m,(this.seed>>16)/this.range},t.prototype.getNextBetween=function(t,n){return t+this.getNext()*(n-t)},t}();n.PseudoRandom=i},u8Dt:function(t,n,e){var r=e("YESw"),i=Object.prototype.hasOwnProperty;t.exports=function(t){var n=this.__data__;if(r){var e=n[t];return"__lodash_hash_undefined__"===e?void 0:e}return i.call(n,t)?n[t]:void 0}},uM7l:function(t,n,e){var r=e("OBhP");t.exports=function(t){return r(t,4)}},"ut/Y":function(t,n,e){var r=e("ZCpW"),i=e("GDhZ"),o=e("zZ0H"),s=e("Z0cm"),a=e("+c4W");t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?s(t)?i(t[0],t[1]):r(t):a(t)}},v8eK:function(t,n,e){var r=e("XGnz"),i=e("EA7m"),o=e("LGYb"),s=e("3L66"),a=i((function(t){return o(r(t,1,s,!0))}));t.exports=a},"vN+2":function(t,n){t.exports=function(){}},"w/wX":function(t,n,e){var r=e("QqLw"),i=e("ExA7");t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},w802:function(t,n){t.exports="2.1.7"},"wF/u":function(t,n,e){var r=e("e5cp"),i=e("ExA7");t.exports=function t(n,e,o,s,a){return n===e||(null==n||null==e||!i(n)&&!i(e)?n!=n&&e!=e:r(n,e,o,s,t,a))}},wJg7:function(t,n){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},wclG:function(t,n,e){var r=e("pFRH"),i=e("88Gu")(r);t.exports=i},wrZu:function(t,n,e){var r=e("+K+b"),i=e("XYm9"),o=e("b2z7"),s=e("otv/"),a=e("yP5f");t.exports=function(t,n,e){var u=t.constructor;switch(n){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return i(t,e);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(t,e);case"[object Map]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return o(t);case"[object Set]":return new u;case"[object Symbol]":return s(t)}}},wraW:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("abOL"),i=e("fGn/");n.gridify=function(t,n,e,r){return t.cola.start(0,0,0,10,!1),function(t,n,e,r){t.forEach((function(t){t.routerNode={name:t.name,bounds:t.bounds.inflate(-e)}})),n.forEach((function(n){n.routerNode={bounds:n.bounds.inflate(-r),children:(void 0!==n.groups?n.groups.map((function(n){return t.length+n.id})):[]).concat(void 0!==n.leaves?n.leaves.map((function(t){return t.index})):[])}}));var o=t.concat(n).map((function(t,n){return t.routerNode.id=n,t.routerNode}));return new i.GridRouter(o,{getChildren:function(t){return t.children},getBounds:function(t){return t.bounds}},e-r)}(t.cola.nodes(),t.cola.groups(),e,r).routeEdges(t.powerGraph.powerEdges,n,(function(t){return t.source.routerNode.id}),(function(t){return t.target.routerNode.id}))},n.powerGraphGridLayout=function(t,n,e){var i;t.nodes.forEach((function(t,n){return t.index=n})),(new r.Layout).avoidOverlaps(!1).nodes(t.nodes).links(t.links).powerGraphGroups((function(t){(i=t).groups.forEach((function(t){return t.padding=e}))}));var o=t.nodes.length,s=[],a=t.nodes.slice(0);return a.forEach((function(t,n){return t.index=n})),i.groups.forEach((function(t){var n=t.index=t.id+o;a.push(t),void 0!==t.leaves&&t.leaves.forEach((function(t){return s.push({source:n,target:t.index})})),void 0!==t.groups&&t.groups.forEach((function(t){return s.push({source:n,target:t.id+o})}))})),i.powerEdges.forEach((function(t){s.push({source:t.source.index,target:t.target.index})})),(new r.Layout).size(n).nodes(a).links(s).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new r.Layout).convergenceThreshold(.001).size(n).avoidOverlaps(!0).nodes(t.nodes).links(t.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups((function(t){(i=t).groups.forEach((function(t){t.padding=e}))})).start(50,0,100,0,!1),powerGraph:i}}},xYSL:function(t,n){t.exports=function(t,n){return t.has(n)}},xaJk:function(t,n,e){var r=e("asDA"),i=e("SKAX"),o=e("ut/Y"),s=e("WPeF"),a=e("Z0cm");t.exports=function(t,n,e){var u=a(t)?r:s,c=arguments.length<3;return u(t,o(n,4),e,c,i)}},xkGU:function(t,n,e){t.exports=e("bNQv")},"xs/l":function(t,n,e){var r=e("TYy9"),i=e("Ioao"),o=e("wclG");t.exports=function(t){return o(i(t,void 0,r),t+"")}},xweI:function(t,n,e){var r=e("XGnz"),i=e("alwl"),o=e("EA7m"),s=e("mv/X"),a=o((function(t,n){if(null==t)return[];var e=n.length;return e>1&&s(t,n[0],n[1])?n=[]:e>2&&s(n[0],n[1],n[2])&&(n=[n[0]]),i(t,r(n,1),[])}));t.exports=a},y1pI:function(t,n,e){var r=e("ljhN");t.exports=function(t,n){for(var e=t.length;e--;)if(r(t[e][0],n))return e;return-1}},yGk4:function(t,n,e){var r=e("Cwc5")(e("Kz5y"),"Set");t.exports=r},yHx3:function(t,n){var e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},yP5f:function(t,n,e){var r=e("+K+b");t.exports=function(t,n){var e=n?r(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}},ycre:function(t,n,e){var r=e("711d")("length");t.exports=r},yue5:function(t,n,e){var r=e("/9aa");t.exports=function(t,n){if(t!==n){var e=void 0!==t,i=null===t,o=t==t,s=r(t),a=void 0!==n,u=null===n,c=n==n,l=r(n);if(!u&&!l&&!s&&t>n||s&&a&&c&&!u&&!l||i&&a&&c||!e&&c||!o)return 1;if(!i&&!s&&!l&&t<n||l&&e&&o&&!i&&!s||u&&e&&o||!a&&o||!c)return-1}return 0}},z6cq:function(t,n,e){var r=e("M96O");t.exports=function(t){var n=0,e=[],i={},o=[];return t.nodes().forEach((function(s){r.has(i,s)||function s(a){var u=i[a]={onStack:!0,lowlink:n,index:n++};if(e.push(a),t.successors(a).forEach((function(t){r.has(i,t)?i[t].onStack&&(u.lowlink=Math.min(u.lowlink,i[t].index)):(s(t),u.lowlink=Math.min(u.lowlink,i[t].lowlink))})),u.lowlink===u.index){var c,l=[];do{c=e.pop(),i[c].onStack=!1,l.push(c)}while(a!==c);o.push(l)}}(s)})),o}},zEVN:function(t,n,e){var r=e("Gi0A"),i=e("sEf8"),o=e("mdPL"),s=o&&o.isMap,a=s?i(s):r;t.exports=a},zO0g:function(t,n,e){"use strict";function r(t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e])}Object.defineProperty(n,"__esModule",{value:!0}),r(e("c6Se")),r(e("Km3O")),r(e("u+pN")),r(e("3duJ")),r(e("fGn/")),r(e("cugb")),r(e("abOL")),r(e("FJyg")),r(e("kj44")),r(e("EYCo")),r(e("n85Q")),r(e("/lCR")),r(e("imqj")),r(e("FJ48")),r(e("rYy2")),r(e("wraW"))},zZ0H:function(t,n){t.exports=function(t){return t}},zoYe:function(t,n,e){var r=e("nmnc"),i=e("eUgh"),o=e("Z0cm"),s=e("/9aa"),a=r?r.prototype:void 0,u=a?a.toString:void 0;t.exports=function t(n){if("string"==typeof n)return n;if(o(n))return i(n,t)+"";if(s(n))return u?u.call(n):"";var e=n+"";return"0"==e&&1/n==-1/0?"-0":e}}}]);