open-consul/website/build/javascripts/lib/d3.v3.min-614dfb7a.js

5 lines
143 KiB
JavaScript
Raw Normal View History

2014-02-08 00:41:03 +00:00
d3=function(){function t(t){return null!=t&&!isNaN(t)}function e(t){return t.length}function n(t){for(var e=1;t*e%1;)e*=10;return e}function i(t,e){try{for(var n in e)Object.defineProperty(t.prototype,n,{value:e[n],enumerable:!1})}catch(i){t.prototype=e}}function r(){}function o(){}function s(t,e,n){return function(){var i=n.apply(e,arguments);return i===e?t:i}}function a(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.substring(1);for(var n=0,i=ha.length;i>n;++n){var r=ha[n]+e;if(r in t)return r}}function l(){}function u(){}function c(t){function e(){for(var e,i=n,r=-1,o=i.length;++r<o;)(e=i[r].on)&&e.apply(this,arguments);return t}var n=[],i=new r;return e.on=function(e,r){var o,s=i.get(e);return arguments.length<2?s&&s.on:(s&&(s.on=null,n=n.slice(0,o=n.indexOf(s)).concat(n.slice(o+1)),i.remove(e)),r&&n.push(i.set(e,{on:r})),t)},e}function h(){Us.event.preventDefault()}function f(){for(var t,e=Us.event;t=e.sourceEvent;)e=t;return e}function p(t){for(var e=new u,n=0,i=arguments.length;++n<i;)e[arguments[n]]=c(e);return e.of=function(n,i){return function(r){try{var o=r.sourceEvent=Us.event;r.target=t,Us.event=r,e[r.type].apply(n,i)}finally{Us.event=o}}},e}function d(t){return pa(t,ya),t}function g(t){return"function"==typeof t?t:function(){return da(t,this)}}function m(t){return"function"==typeof t?t:function(){return ga(t,this)}}function v(t,e){function n(){this.removeAttribute(t)}function i(){this.removeAttributeNS(t.space,t.local)}function r(){this.setAttribute(t,e)}function o(){this.setAttributeNS(t.space,t.local,e)}function s(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}function a(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}return t=Us.ns.qualify(t),null==e?t.local?i:n:"function"==typeof e?t.local?a:s:t.local?o:r}function y(t){return t.trim().replace(/\s+/g," ")}function x(t){return new RegExp("(?:^|\\s+)"+Us.requote(t)+"(?:\\s+|$)","g")}function b(t,e){function n(){for(var n=-1;++n<r;)t[n](this,e)}function i(){for(var n=-1,i=e.apply(this,arguments);++n<r;)t[n](this,i)}t=t.trim().split(/\s+/).map(w);var r=t.length;return"function"==typeof e?i:n}function w(t){var e=x(t);return function(n,i){if(r=n.classList)return i?r.add(t):r.remove(t);var r=n.getAttribute("class")||"";i?(e.lastIndex=0,e.test(r)||n.setAttribute("class",y(r+" "+t))):n.setAttribute("class",y(r.replace(e," ")))}}function k(t,e,n){function i(){this.style.removeProperty(t)}function r(){this.style.setProperty(t,e,n)}function o(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}return null==e?i:"function"==typeof e?o:r}function M(t,e){function n(){delete this[t]}function i(){this[t]=e}function r(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}return null==e?n:"function"==typeof e?r:i}function S(t){return"function"==typeof t?t:(t=Us.ns.qualify(t)).local?function(){return this.ownerDocument.createElementNS(t.space,t.local)}:function(){return this.ownerDocument.createElementNS(this.namespaceURI,t)}}function C(t){return{__data__:t}}function T(t){return function(){return va(this,t)}}function A(t){return arguments.length||(t=Us.ascending),function(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}}function _(t,e){for(var n=0,i=t.length;i>n;n++)for(var r,o=t[n],s=0,a=o.length;a>s;s++)(r=o[s])&&e(r,s,n);return t}function L(t){return pa(t,ba),t}function E(t){var e,n;return function(i,r,o){var s,a=t[o].update,l=a.length;for(o!=n&&(n=o,e=0),r>=e&&(e=r+1);!(s=a[e])&&++e<l;);return s}}function N(){var t=this.__transition__;t&&++t.active}function P(t,e,n){function i(){var e=this[s];e&&(this.removeEventListener(t,e,e.$),delete this[s])}function r(){var r=u(e,Zs(arguments));i.call(this),this.addEventListener(t,this[s]=r,r.$=n),r._=e}function o(){var e,n=new RegExp("^__on([^.]+)"+Us.requote(t)+"$");for(var i in this)if(e=i.match(n)){var r=this[i];this.removeEventListener(e[1],r,r.$),delete this[i]}}var s="__on"+t,a=t.indexOf("."),u=D;a>0&&(t=t.substring(0,a));var c=ka.get(t);return c&&(t=c
}function di(t,e,n){var i=new fi(t,null);return i.a=e,i.b=n,Yl.push(i),i}function gi(t,e,n,i){t.a||t.b?t.l===n?t.b=i:t.a=i:(t.a=i,t.l=e,t.r=n)}function mi(t,e,n){var i=t.a,r=t.b;this.edge=t,this.site=e,this.angle=n?Math.atan2(n.y-e.y,n.x-e.x):t.l===e?Math.atan2(r.x-i.x,i.y-r.y):Math.atan2(i.x-r.x,r.y-i.y)}function vi(){this._=null}function yi(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function xi(t,e){var n=e,i=e.R,r=n.U;r?r.L===n?r.L=i:r.R=i:t._=i,i.U=r,n.U=i,n.R=i.L,n.R&&(n.R.U=n),i.L=n}function bi(t,e){var n=e,i=e.L,r=n.U;r?r.L===n?r.L=i:r.R=i:t._=i,i.U=r,n.U=i,n.L=i.R,n.L&&(n.L.U=n),i.R=n}function wi(t){for(;t.L;)t=t.L;return t}function ki(t,e){var n,i,r,o=t.sort(Mi).pop();for(Yl=[],Gl=new Array(t.length),Ul=new vi,Zl=new vi;;)if(r=Vl,o&&(!r||o.y<r.y||o.y===r.y&&o.x<r.x))(o.x!==n||o.y!==i)&&(Gl[o.i]=new ri(o),ei(o),n=o.x,i=o.y),o=t.pop();else{if(!r)break;ti(r.arc)}e&&(ci(e),oi(e));var s={cells:Gl,edges:Yl};return Ul=Zl=Yl=Gl=null,s}function Mi(t,e){return e.y-t.y||e.x-t.x}function Si(t,e,n){return(t.x-n.x)*(e.y-t.y)-(t.x-e.x)*(n.y-t.y)}function Ci(t){return t.x}function Ti(t){return t.y}function Ai(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function _i(t,e,n,i,r,o){if(!t(e,n,i,r,o)){var s=.5*(n+r),a=.5*(i+o),l=e.nodes;l[0]&&_i(t,l[0],n,i,s,a),l[1]&&_i(t,l[1],s,i,r,a),l[2]&&_i(t,l[2],n,a,s,o),l[3]&&_i(t,l[3],s,a,r,o)}}function Li(t,e){t=Us.rgb(t),e=Us.rgb(e);var n=t.r,i=t.g,r=t.b,o=e.r-n,s=e.g-i,a=e.b-r;return function(t){return"#"+le(Math.round(n+o*t))+le(Math.round(i+s*t))+le(Math.round(r+a*t))}}function Ei(t,e){var n,i={},r={};for(n in t)n in e?i[n]=Di(t[n],e[n]):r[n]=t[n];for(n in e)n in t||(r[n]=e[n]);return function(t){for(n in i)r[n]=i[n](t);return r}}function Ni(t,e){return e-=t=+t,function(n){return t+e*n}}function Pi(t,e){var n,i,r,o,s,a=0,l=0,u=[],c=[];for(t+="",e+="",tu.lastIndex=0,i=0;n=tu.exec(e);++i)n.index&&u.push(e.substring(a,l=n.index)),c.push({i:u.length,x:n[0]}),u.push(null),a=tu.lastIndex;for(a<e.length&&u.push(e.substring(a)),i=0,o=c.length;(n=tu.exec(t))&&o>i;++i)if(s=c[i],s.x==n[0]){if(s.i)if(null==u[s.i+1])for(u[s.i-1]+=s.x,u.splice(s.i,1),r=i+1;o>r;++r)c[r].i--;else for(u[s.i-1]+=s.x+u[s.i+1],u.splice(s.i,2),r=i+1;o>r;++r)c[r].i-=2;else if(null==u[s.i+1])u[s.i]=s.x;else for(u[s.i]=s.x+u[s.i+1],u.splice(s.i+1,1),r=i+1;o>r;++r)c[r].i--;c.splice(i,1),o--,i--}else s.x=Ni(parseFloat(n[0]),parseFloat(s.x));for(;o>i;)s=c.pop(),null==u[s.i+1]?u[s.i]=s.x:(u[s.i]=s.x+u[s.i+1],u.splice(s.i+1,1)),o--;return 1===u.length?null==u[0]?(s=c[0].x,function(t){return s(t)+""}):function(){return e}:function(t){for(i=0;o>i;++i)u[(s=c[i]).i]=s.x(t);return u.join("")}}function Di(t,e){for(var n,i=Us.interpolators.length;--i>=0&&!(n=Us.interpolators[i](t,e)););return n}function Ri(t,e){var n,i=[],r=[],o=t.length,s=e.length,a=Math.min(t.length,e.length);for(n=0;a>n;++n)i.push(Di(t[n],e[n]));for(;o>n;++n)r[n]=t[n];for(;s>n;++n)r[n]=e[n];return function(t){for(n=0;a>n;++n)r[n]=i[n](t);return r}}function Oi(t){return function(e){return 0>=e?0:e>=1?1:t(e)}}function zi(t){return function(e){return 1-t(1-e)}}function Hi(t){return function(e){return.5*(.5>e?t(2*e):2-t(2-2*e))}}function ji(t){return t*t}function Ii(t){return t*t*t}function $i(t){if(0>=t)return 0;if(t>=1)return 1;var e=t*t,n=e*t;return 4*(.5>t?n:3*(t-e)+n-.75)}function Bi(t){return function(e){return Math.pow(e,t)}}function Fi(t){return 1-Math.cos(t*_a)}function Wi(t){return Math.pow(2,10*(t-1))}function qi(t){return 1-Math.sqrt(1-t*t)}function Xi(t,e){var n;return arguments.length<2&&(e=.45),arguments.length?n=e/Aa*Math.asin(1/t):(t=1,n=e/4),function(i){return 1+t*Math.pow(2,-10*i)*Math.sin((i-n)*Aa/e)}}function Yi(t){return t||(t=1.70158),function(e){return e*e*((t+1)*e-t)}}function Gi(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function Ui(t,e){t=Us.hcl(t),e=Us.hcl(e);var n=t.h,i=t.c,r=t.l,o=e.h-n,s=e.c-i,a=e.l-r;return isNaN(s)&&(s=0,i=isNaN(i)?e.c:i),isNaN(o)?(o=0,n=isNaN(n)?e.h:n):o>180?o-=360:-180>o&&(o+=360),function(t){return Z(n+o*t,i+s*t,r+a*t)+""}}functi
for(n=new Array(s);--r>=0;)for(i=t[r],e=i.length;--e>=0;)n[--s]=i[e];return n};var la=Math.abs;Us.range=function(t,e,i){if(arguments.length<3&&(i=1,arguments.length<2&&(e=t,t=0)),1/0===(e-t)/i)throw new Error("infinite range");var r,o=[],s=n(la(i)),a=-1;if(t*=s,e*=s,i*=s,0>i)for(;(r=t+i*++a)>e;)o.push(r/s);else for(;(r=t+i*++a)<e;)o.push(r/s);return o},Us.map=function(t){var e=new r;if(t instanceof r)t.forEach(function(t,n){e.set(t,n)});else for(var n in t)e.set(n,t[n]);return e},i(r,{has:function(t){return ua+t in this},get:function(t){return this[ua+t]},set:function(t,e){return this[ua+t]=e},remove:function(t){return t=ua+t,t in this&&delete this[t]},keys:function(){var t=[];return this.forEach(function(e){t.push(e)}),t},values:function(){var t=[];return this.forEach(function(e,n){t.push(n)}),t},entries:function(){var t=[];return this.forEach(function(e,n){t.push({key:e,value:n})}),t},forEach:function(t){for(var e in this)e.charCodeAt(0)===ca&&t.call(this,e.substring(1),this[e])}});var ua="\0",ca=ua.charCodeAt(0);Us.nest=function(){function t(e,a,l){if(l>=s.length)return i?i.call(o,a):n?a.sort(n):a;for(var u,c,h,f,p=-1,d=a.length,g=s[l++],m=new r;++p<d;)(f=m.get(u=g(c=a[p])))?f.push(c):m.set(u,[c]);return e?(c=e(),h=function(n,i){c.set(n,t(e,i,l))}):(c={},h=function(n,i){c[n]=t(e,i,l)}),m.forEach(h),c}function e(t,n){if(n>=s.length)return t;var i=[],r=a[n++];return t.forEach(function(t,r){i.push({key:t,values:e(r,n)})}),r?i.sort(function(t,e){return r(t.key,e.key)}):i}var n,i,o={},s=[],a=[];return o.map=function(e,n){return t(n,e,0)},o.entries=function(n){return e(t(Us.map,n,0),0)},o.key=function(t){return s.push(t),o},o.sortKeys=function(t){return a[s.length-1]=t,o},o.sortValues=function(t){return n=t,o},o.rollup=function(t){return i=t,o},o},Us.set=function(t){var e=new o;if(t)for(var n=0,i=t.length;i>n;++n)e.add(t[n]);return e},i(o,{has:function(t){return ua+t in this},add:function(t){return this[ua+t]=!0,t},remove:function(t){return t=ua+t,t in this&&delete this[t]},values:function(){var t=[];return this.forEach(function(e){t.push(e)}),t},forEach:function(t){for(var e in this)e.charCodeAt(0)===ca&&t.call(this,e.substring(1))}}),Us.behavior={},Us.rebind=function(t,e){for(var n,i=1,r=arguments.length;++i<r;)t[n=arguments[i]]=s(t,e,e[n]);return t};var ha=["webkit","ms","moz","Moz","o","O"];Us.dispatch=function(){for(var t=new u,e=-1,n=arguments.length;++e<n;)t[arguments[e]]=c(t);return t},u.prototype.on=function(t,e){var n=t.indexOf("."),i="";if(n>=0&&(i=t.substring(n+1),t=t.substring(0,n)),t)return arguments.length<2?this[t].on(i):this[t].on(i,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(i,null);return this}},Us.event=null,Us.requote=function(t){return t.replace(fa,"\\$&")};var fa=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,pa={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)t[n]=e[n]},da=function(t,e){return e.querySelector(t)},ga=function(t,e){return e.querySelectorAll(t)},ma=Ks[a(Ks,"matchesSelector")],va=function(t,e){return ma.call(t,e)};"function"==typeof Sizzle&&(da=function(t,e){return Sizzle(t,e)[0]||null},ga=function(t,e){return Sizzle.uniqueSort(Sizzle(t,e))},va=Sizzle.matchesSelector),Us.selection=function(){return wa};var ya=Us.selection.prototype=[];ya.select=function(t){var e,n,i,r,o=[];t=g(t);for(var s=-1,a=this.length;++s<a;){o.push(e=[]),e.parentNode=(i=this[s]).parentNode;for(var l=-1,u=i.length;++l<u;)(r=i[l])?(e.push(n=t.call(r,r.__data__,l,s)),n&&"__data__"in r&&(n.__data__=r.__data__)):e.push(null)}return d(o)},ya.selectAll=function(t){var e,n,i=[];t=m(t);for(var r=-1,o=this.length;++r<o;)for(var s=this[r],a=-1,l=s.length;++a<l;)(n=s[a])&&(i.push(e=Zs(t.call(n,n.__data__,a,r))),e.parentNode=n);return d(i)};var xa={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};Us.ns={prefix:xa,qualify:function(t){var e=t.indexOf(":"),n=t;return e>=0&&(n=t.substring(0,e),t=t.substring(e+1)),xa.hasOwnProperty(n)?{space:
},t.step=function(e){return arguments.length?t.majorStep(e).minorStep(e):t.minorStep()},t.majorStep=function(e){return arguments.length?(m=+e[0],v=+e[1],t):[m,v]},t.minorStep=function(e){return arguments.length?(d=+e[0],g=+e[1],t):[d,g]},t.precision=function(e){return arguments.length?(y=+e,c=Dn(a,s,90),h=Rn(i,n,y),f=Dn(u,l,90),p=Rn(o,r,y),t):y},t.majorExtent([[-180,-90+La],[180,90-La]]).minorExtent([[-180,-80-La],[180,80+La]])},Us.geo.greatArc=function(){function t(){return{type:"LineString",coordinates:[e||i.apply(this,arguments),n||r.apply(this,arguments)]}}var e,n,i=On,r=zn;return t.distance=function(){return Us.geo.distance(e||i.apply(this,arguments),n||r.apply(this,arguments))},t.source=function(n){return arguments.length?(i=n,e="function"==typeof n?null:n,t):i},t.target=function(e){return arguments.length?(r=e,n="function"==typeof e?null:e,t):r},t.precision=function(){return arguments.length?t:0},t},Us.geo.interpolate=function(t,e){return Hn(t[0]*Na,t[1]*Na,e[0]*Na,e[1]*Na)},Us.geo.length=function(t){return jl=0,Us.geo.stream(t,Il),jl};var jl,Il={sphere:l,point:l,lineStart:jn,lineEnd:l,polygonStart:l,polygonEnd:l},$l=In(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(Us.geo.azimuthalEqualArea=function(){return kn($l)}).raw=$l;var Bl=In(function(t){var e=Math.acos(t);return e&&e/Math.sin(e)},ge);(Us.geo.azimuthalEquidistant=function(){return kn(Bl)}).raw=Bl,(Us.geo.conicConformal=function(){return an($n)}).raw=$n,(Us.geo.conicEquidistant=function(){return an(Bn)}).raw=Bn;var Fl=In(function(t){return 1/t},Math.atan);(Us.geo.gnomonic=function(){return kn(Fl)}).raw=Fl,Fn.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-_a]},(Us.geo.mercator=function(){return Wn(Fn)}).raw=Fn;var Wl=In(function(){return 1},Math.asin);(Us.geo.orthographic=function(){return kn(Wl)}).raw=Wl;var ql=In(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(Us.geo.stereographic=function(){return kn(ql)}).raw=ql,qn.invert=function(t,e){return[Math.atan2($(t),Math.cos(e)),I(Math.sin(e)/B(t))]},(Us.geo.transverseMercator=function(){return Wn(qn)}).raw=qn,Us.geom={},Us.geom.hull=function(t){function e(t){if(t.length<3)return[];var e,r,o,s,a,l,u,c,h,f,p,d,g=de(n),m=de(i),v=t.length,y=v-1,x=[],b=[],w=0;if(g===Xn&&i===Yn)e=t;else for(o=0,e=[];v>o;++o)e.push([+g.call(this,r=t[o],o),+m.call(this,r,o)]);for(o=1;v>o;++o)(e[o][1]<e[w][1]||e[o][1]==e[w][1]&&e[o][0]<e[w][0])&&(w=o);for(o=0;v>o;++o)o!==w&&(l=e[o][1]-e[w][1],a=e[o][0]-e[w][0],x.push({angle:Math.atan2(l,a),index:o}));for(x.sort(function(t,e){return t.angle-e.angle}),p=x[0].angle,f=x[0].index,h=0,o=1;y>o;++o){if(s=x[o].index,p==x[o].angle){if(a=e[f][0]-e[w][0],l=e[f][1]-e[w][1],u=e[s][0]-e[w][0],c=e[s][1]-e[w][1],a*a+l*l>=u*u+c*c){x[o].index=-1;continue}x[h].index=-1}p=x[o].angle,h=o,f=s}for(b.push(w),o=0,s=0;2>o;++s)x[s].index>-1&&(b.push(x[s].index),o++);for(d=b.length;y>s;++s)if(!(x[s].index<0)){for(;!Gn(b[d-2],b[d-1],x[s].index,e);)--d;b[d++]=x[s].index}var k=[];for(o=d-1;o>=0;--o)k.push(t[b[o]]);return k}var n=Xn,i=Yn;return arguments.length?e(t):(e.x=function(t){return arguments.length?(n=t,e):n},e.y=function(t){return arguments.length?(i=t,e):i},e)},Us.geom.polygon=function(t){return pa(t,Xl),t};var Xl=Us.geom.polygon.prototype=[];Xl.area=function(){for(var t,e=-1,n=this.length,i=this[n-1],r=0;++e<n;)t=i,i=this[e],r+=t[1]*i[0]-t[0]*i[1];return.5*r},Xl.centroid=function(t){var e,n,i=-1,r=this.length,o=0,s=0,a=this[r-1];for(arguments.length||(t=-1/(6*this.area()));++i<r;)e=a,a=this[i],n=e[0]*a[1]-a[0]*e[1],o+=(e[0]+a[0])*n,s+=(e[1]+a[1])*n;return[o*t,s*t]},Xl.clip=function(t){for(var e,n,i,r,o,s,a=Zn(t),l=-1,u=this.length-Zn(this),c=this[u-1];++l<u;){for(e=t.slice(),t.length=0,r=this[l],o=e[(i=e.length-a)-1],n=-1;++n<i;)s=e[n],Un(s,c,r)?(Un(o,c,r)||t.push(Vn(o,s,c,r)),t.push(s)):Un(o,c,r)&&t.push(Vn(o,s,c,r)),o=s;a&&t.push(t[0]),c=r}return t};var Yl,Gl,Ul,Vl,Zl,Ql=[],Kl=[];ri.prototype.prepare=function(){for(var t,e=this.edges,n=e.length;n--;)t=e[n].edge,t.b&&t.a||e.splice(n,1);return e.sort(si),e.length},mi.prototype={start:function(){return
}))},Lu.delay=function(t){var e=this.id;return _(this,"function"==typeof t?function(n,i,r){n.__transition__[e].delay=+t.call(n,n.__data__,i,r)}:(t=+t,function(n){n.__transition__[e].delay=t}))},Lu.duration=function(t){var e=this.id;return _(this,"function"==typeof t?function(n,i,r){n.__transition__[e].duration=Math.max(1,t.call(n,n.__data__,i,r))}:(t=Math.max(1,t),function(n){n.__transition__[e].duration=t}))},Lu.each=function(t,e){var n=this.id;if(arguments.length<2){var i=Tu,r=Cu;Cu=n,_(this,function(e,i,r){Tu=e.__transition__[n],t.call(e,e.__data__,i,r)}),Tu=i,Cu=r}else _(this,function(i){var r=i.__transition__[n];(r.event||(r.event=Us.dispatch("start","end"))).on(t,e)});return this},Lu.transition=function(){for(var t,e,n,i,r=this.id,o=++Eu,s=[],a=0,l=this.length;l>a;a++){s.push(t=[]);for(var e=this[a],u=0,c=e.length;c>u;u++)(n=e[u])&&(i=Object.create(n.__transition__[r]),i.delay+=i.duration,ss(n,u,o,i)),t.push(n)}return is(s,o)},Us.svg.axis=function(){function t(t){t.each(function(){var t,u=Us.select(this),c=this.__chart__||n,h=this.__chart__=n.copy(),f=null==l?h.ticks?h.ticks.apply(h,a):h.domain():l,p=null==e?h.tickFormat?h.tickFormat.apply(h,a):ge:e,d=u.selectAll(".tick").data(f,h),g=d.enter().insert("g",".domain").attr("class","tick").style("opacity",La),m=Us.transition(d.exit()).style("opacity",La).remove(),v=Us.transition(d).style("opacity",1),y=no(h),x=u.selectAll(".domain").data([0]),b=(x.enter().append("path").attr("class","domain"),Us.transition(x));g.append("line"),g.append("text");var w=g.select("line"),k=v.select("line"),M=d.select("text").text(p),S=g.select("text"),C=v.select("text");switch(i){case"bottom":t=as,w.attr("y2",r),S.attr("y",Math.max(r,0)+s),k.attr("x2",0).attr("y2",r),C.attr("x",0).attr("y",Math.max(r,0)+s),M.attr("dy",".71em").style("text-anchor","middle"),b.attr("d","M"+y[0]+","+o+"V0H"+y[1]+"V"+o);break;case"top":t=as,w.attr("y2",-r),S.attr("y",-(Math.max(r,0)+s)),k.attr("x2",0).attr("y2",-r),C.attr("x",0).attr("y",-(Math.max(r,0)+s)),M.attr("dy","0em").style("text-anchor","middle"),b.attr("d","M"+y[0]+","+-o+"V0H"+y[1]+"V"+-o);break;case"left":t=ls,w.attr("x2",-r),S.attr("x",-(Math.max(r,0)+s)),k.attr("x2",-r).attr("y2",0),C.attr("x",-(Math.max(r,0)+s)).attr("y",0),M.attr("dy",".32em").style("text-anchor","end"),b.attr("d","M"+-o+","+y[0]+"H0V"+y[1]+"H"+-o);break;case"right":t=ls,w.attr("x2",r),S.attr("x",Math.max(r,0)+s),k.attr("x2",r).attr("y2",0),C.attr("x",Math.max(r,0)+s).attr("y",0),M.attr("dy",".32em").style("text-anchor","start"),b.attr("d","M"+o+","+y[0]+"H0V"+y[1]+"H"+o)}if(h.rangeBand){var T=h,A=T.rangeBand()/2;c=h=function(t){return T(t)+A}}else c.rangeBand?c=h:m.call(t,h);g.call(t,c),v.call(t,h)})}var e,n=Us.scale.linear(),i=Nu,r=6,o=6,s=3,a=[10],l=null;return t.scale=function(e){return arguments.length?(n=e,t):n},t.orient=function(e){return arguments.length?(i=e in Pu?e+"":Nu,t):i},t.ticks=function(){return arguments.length?(a=arguments,t):a},t.tickValues=function(e){return arguments.length?(l=e,t):l},t.tickFormat=function(n){return arguments.length?(e=n,t):e},t.tickSize=function(e){var n=arguments.length;return n?(r=+e,o=+arguments[n-1],t):r},t.innerTickSize=function(e){return arguments.length?(r=+e,t):r},t.outerTickSize=function(e){return arguments.length?(o=+e,t):o},t.tickPadding=function(e){return arguments.length?(s=+e,t):s},t.tickSubdivide=function(){return arguments.length&&t},t};var Nu="bottom",Pu={top:1,right:1,bottom:1,left:1};Us.svg.brush=function(){function t(o){o.each(function(){var o=Us.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",r).on("touchstart.brush",r),s=o.selectAll(".background").data([0]);s.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),o.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var a=o.selectAll(".resize").data(m,ge);a.exit().remove(),a.enter().append("g").attr("class",function(t){return"resize "+t}).style("cursor",function(t){return Du[t]}).append("rect").attr("