@redsift/d3-rs-tip
Advanced tools
Comparing version 0.3.3 to 0.4.0
@@ -1,3 +0,3 @@ | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.d3_rs_tip=t.d3_rs_tip||{})}(this,function(t){"use strict";function n(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Re.hasOwnProperty(n)?{space:Re[n],local:t}:t}function e(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===He&&n.documentElement.namespaceURI===He?n.createElement(t):n.createElementNS(e,t)}}function r(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function i(t){var i=n(t);return(i.local?r:e)(i)}function o(t,n,e){return t=a(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function a(t,n,e){return function(r){var i=Ke;Ke=r;try{t.call(this,this.__data__,n,e)}finally{Ke=i}}}function u(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 s(t){return function(){var n=this,e=this.__on;if(e){for(var r,i=0,o=-1,a=e.length;i<a;++i)r=e[i],t.type&&r.type!==t.type||r.name!==t.name?e[++o]=r:n.removeEventListener(r.type,r.listener,r.capture);++o?e.length=o:delete this.__on}}}function l(t,n,e){var r=Je.hasOwnProperty(t.type)?o:a;return function(i,o,a){var u,s=this,l=this.__on,c=r(n,o,a);if(l)for(var f=0,h=l.length;f<h;++f)if((u=l[f]).type===t.type&&u.name===t.name)return s.removeEventListener(u.type,u.listener,u.capture),s.addEventListener(u.type,u.listener=c,u.capture=e),void(u.value=n);this.addEventListener(t.type,c,e),u={type:t.type,name:t.name,value:n,listener:c,capture:e},l?l.push(u):this.__on=[u]}}function c(t,n,e){var r,i,o=this,a=u(t+""),c=a.length;if(!(arguments.length<2)){for(f=n?l:s,null==e&&(e=!1),r=0;r<c;++r)o.each(f(a[r],n,e));return this}var f=this.node().__on;if(f)for(var h,p=0,d=f.length;p<d;++p)for(r=0,h=f[p];r<c;++r)if((i=a[r]).type===h.type&&i.name===h.name)return h.value}function f(){}function h(t){return null==t?f:function(){return this.querySelector(t)}}function p(t){"function"!=typeof t&&(t=h(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a,u=n[i],s=u.length,l=r[i]=new Array(s),c=0;c<s;++c)(o=u[c])&&(a=t.call(o,o.__data__,c,u))&&("__data__"in o&&(a.__data__=o.__data__),l[c]=a);return new Ct(r,this._parents)}function d(){return[]}function y(t){return null==t?d:function(){return this.querySelectorAll(t)}}function g(t){"function"!=typeof t&&(t=y(t));for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var a,u=n[o],s=u.length,l=0;l<s;++l)(a=u[l])&&(r.push(t.call(a,a.__data__,l,u)),i.push(a));return new Ct(r,i)}function v(t){"function"!=typeof t&&(t=Ge(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a=n[i],u=a.length,s=r[i]=[],l=0;l<u;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&s.push(o);return new Ct(r,this._parents)}function m(t){return new Array(t.length)}function w(){return new Ct(this._enter||this._groups.map(m),this._parents)}function _(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function b(t){return function(){return t}}function x(t,n,e,r,i,o){for(var a,u=0,s=n.length,l=o.length;u<l;++u)(a=n[u])?(a.__data__=o[u],r[u]=a):e[u]=new _(t,o[u]);for(;u<s;++u)(a=n[u])&&(i[u]=a)}function M(t,n,e,r,i,o,a){var u,s,l,c={},f=n.length,h=o.length,p=new Array(f);for(u=0;u<f;++u)(s=n[u])&&(p[u]=l=Ze+a.call(s,s.__data__,u,n),l in c?i[u]=s:c[l]=s);for(u=0;u<h;++u)l=Ze+a.call(t,o[u],u,o),(s=c[l])?(r[u]=s,s.__data__=o[u],c[l]=null):e[u]=new _(t,o[u]);for(u=0;u<f;++u)(s=n[u])&&c[p[u]]===s&&(i[u]=s)}function N(t,n){if(!t)return p=new Array(this.size()),l=-1,this.each(function(t){p[++l]=t}),p;var e=n?M:x,r=this._parents,i=this._groups;"function"!=typeof t&&(t=b(t));for(var o=i.length,a=new Array(o),u=new Array(o),s=new Array(o),l=0;l<o;++l){var c=r[l],f=i[l],h=f.length,p=t.call(c,c&&c.__data__,l,r),d=p.length,y=u[l]=new Array(d),g=a[l]=new Array(d),v=s[l]=new Array(h);e(c,f,y,g,v,p,n);for(var m,w,_=0,N=0;_<d;++_)if(m=y[_]){for(_>=N&&(N=_+1);!(w=g[N])&&++N<d;);m._next=w||null}}return a=new Ct(a,r),a._enter=u,a._exit=s,a}function k(){return new Ct(this._exit||this._groups.map(m),this._parents)}function A(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var s,l=n[u],c=e[u],f=l.length,h=a[u]=new Array(f),p=0;p<f;++p)(s=l[p]||c[p])&&(h[p]=s);for(;u<r;++u)a[u]=n[u];return new Ct(a,this._parents)}function S(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this}function E(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=C);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var a,u=e[o],s=u.length,l=i[o]=new Array(s),c=0;c<s;++c)(a=u[c])&&(l[c]=a);l.sort(n)}return new Ct(i,this._parents).order()}function C(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function P(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function T(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t}function q(){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 a=r[i];if(a)return a}return null}function I(){var t=0;return this.each(function(){++t}),t}function z(){return!this.node()}function O(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],a=0,u=o.length;a<u;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this}function V(t){return function(){this.removeAttribute(t)}}function X(t){return function(){this.removeAttributeNS(t.space,t.local)}}function L(t,n){return function(){this.setAttribute(t,n)}}function j(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function B(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function F(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)}}function W(t,e){var r=n(t);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((null==e?r.local?X:V:"function"==typeof e?r.local?F:B:r.local?j:L)(r,e))}function D(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function H(t){return function(){this.style.removeProperty(t)}}function R(t,n,e){return function(){this.style.setProperty(t,n,e)}}function $(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function Y(t,n,e){var r;return arguments.length>1?this.each((null==n?H:"function"==typeof n?$:R)(t,n,null==e?"":e)):D(r=this.node()).getComputedStyle(r,null).getPropertyValue(t)}function U(t){return function(){delete this[t]}}function G(t,n){return function(){this[t]=n}}function J(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function K(t,n){return arguments.length>1?this.each((null==n?U:"function"==typeof n?J:G)(t,n)):this.node()[t]}function Q(t){return t.trim().split(/^|\s+/)}function Z(t){return t.classList||new tt(t)}function tt(t){this._node=t,this._names=Q(t.getAttribute("class")||"")}function nt(t,n){for(var e=Z(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function et(t,n){for(var e=Z(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function rt(t){return function(){nt(this,t)}}function it(t){return function(){et(this,t)}}function ot(t,n){return function(){(n.apply(this,arguments)?nt:et)(this,t)}}function at(t,n){var e=Q(t+"");if(arguments.length<2){for(var r=Z(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?ot:n?rt:it)(e,n))}function ut(){this.textContent=""}function st(t){return function(){this.textContent=t}}function lt(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function ct(t){return arguments.length?this.each(null==t?ut:("function"==typeof t?lt:st)(t)):this.node().textContent}function ft(){this.innerHTML=""}function ht(t){return function(){this.innerHTML=t}}function pt(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function dt(t){return arguments.length?this.each(null==t?ft:("function"==typeof t?pt:ht)(t)):this.node().innerHTML}function yt(){this.nextSibling&&this.parentNode.appendChild(this)}function gt(){return this.each(yt)}function vt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function mt(){return this.each(vt)}function wt(t){var n="function"==typeof t?t:i(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function _t(){return null}function bt(t,n){var e="function"==typeof t?t:i(t),r=null==n?_t:"function"==typeof n?n:h(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})}function xt(){var t=this.parentNode;t&&t.removeChild(this)}function Mt(){return this.each(xt)}function Nt(t){return arguments.length?this.property("__data__",t):this.node().__data__}function kt(t,n,e){var r=D(t),i=r.CustomEvent;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 At(t,n){return function(){return kt(this,t,n)}}function St(t,n){return function(){return kt(this,t,n.apply(this,arguments))}}function Et(t,n){return this.each(("function"==typeof n?St:At)(t,n))}function Ct(t,n){this._groups=t,this._parents=n}function Pt(){return new Ct([[document.documentElement]],tr)}function Tt(t){return"string"==typeof t?new Ct([[document.querySelector(t)]],[document.documentElement]):new Ct([[t]],tr)}function qt(){for(var t,n=arguments,e=0,r=arguments.length,i={};e<r;++e){if(!(t=n[e]+"")||t in i)throw new Error("illegal type: "+t);i[t]=[]}return new It(i)}function It(t){this._=t}function zt(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 Ot(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function Vt(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=nr,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}function Xt(){return lr||(hr(Lt),lr=fr.now()+cr)}function Lt(){lr=0}function jt(){this._call=this._time=this._next=null}function Bt(t,n,e){var r=new jt;return r.restart(t,n,e),r}function Ft(){Xt(),++ir;for(var t,n=er;n;)(t=lr-n._time)>=0&&n._call.call(null,t),n=n._next;--ir}function Wt(t){lr=(sr=t||fr.now())+cr,ir=or=0;try{Ft()}finally{ir=0,Ht(),lr=0}}function Dt(){var t=fr.now(),n=t-sr;n>ur&&(cr-=n,sr=t)}function Ht(){for(var t,n,e=er,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:er=n);rr=t,Rt(r)}function Rt(t){if(!ir){or&&(or=clearTimeout(or));var n=t-lr;n>24?(t<1/0&&(or=setTimeout(Wt,n)),ar&&(ar=clearInterval(ar))):(ar||(ar=setInterval(Dt,ur)),ir=1,hr(Wt))}}function $t(t,n,e){var r=new jt;return n=null==n?0:+n,r.restart(function(e){r.stop(),t(e+n)},n,e),r}function Yt(t,n,e,r,i,o){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};Kt(t,e,{name:n,index:r,group:i,on:pr,tween:dr,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:yr})}function Ut(t,n){var e=t.__transition;if(!e||!(e=e[n])||e.state>yr)throw new Error("too late");return e}function Gt(t,n){var e=t.__transition;if(!e||!(e=e[n])||e.state>vr)throw new Error("too late");return e}function Jt(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("too late");return e}function Kt(t,n,e){function r(t){e.state=gr,e.delay<=t?i(t-e.delay):e.timer.restart(i,e.delay,e.time)}function i(r){var i,s,l,c;for(i in u)c=u[i],c.name===e.name&&(c.state===mr?(c.state=_r,c.timer.stop(),c.on.call("interrupt",t,t.__data__,c.index,c.group),delete u[i]):+i<n&&(c.state=_r,c.timer.stop(),delete u[i]));if($t(function(){e.state===mr&&(e.timer.restart(o,e.delay,e.time),o(r))}),e.state=vr,e.on.call("start",t,t.__data__,e.index,e.group),e.state===vr){for(e.state=mr,a=new Array(l=e.tween.length),i=0,s=-1;i<l;++i)(c=e.tween[i].value.call(t,t.__data__,e.index,e.group))&&(a[++s]=c);a.length=s+1}}function o(r){for(var i=r<e.duration?e.ease.call(null,r/e.duration):(e.state=wr,1),o=-1,s=a.length;++o<s;)a[o].call(null,i);if(e.state===wr){e.state=_r,e.timer.stop(),e.on.call("end",t,t.__data__,e.index,e.group);for(o in u)if(+o!==n)return void delete u[n];delete t.__transition}}var a,u=t.__transition;u[n]=e,e.timer=Bt(r,0,e.time)}function Qt(t,n){var e,r,i,o=t.__transition,a=!0;if(o){n=null==n?null:n+"";for(i in o)(e=o[i]).name===n?(r=e.state===mr,e.state=_r,e.timer.stop(),r&&e.on.call("interrupt",t,t.__data__,e.index,e.group),delete o[i]):a=!1;a&&delete t.__transition}}function Zt(t){return this.each(function(){Qt(this,t)})}function tn(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function nn(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function en(){}function rn(t){var n;return t=(t+"").trim().toLowerCase(),(n=Mr.exec(t))?(n=parseInt(n[1],16),new ln(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1)):(n=Nr.exec(t))?on(parseInt(n[1],16)):(n=kr.exec(t))?new ln(n[1],n[2],n[3],1):(n=Ar.exec(t))?new ln(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Sr.exec(t))?an(n[1],n[2],n[3],n[4]):(n=Er.exec(t))?an(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Cr.exec(t))?cn(n[1],n[2]/100,n[3]/100,1):(n=Pr.exec(t))?cn(n[1],n[2]/100,n[3]/100,n[4]):Tr.hasOwnProperty(t)?on(Tr[t]):"transparent"===t?new ln(NaN,NaN,NaN,0):null}function on(t){return new ln(t>>16&255,t>>8&255,255&t,1)}function an(t,n,e,r){return r<=0&&(t=n=e=NaN),new ln(t,n,e,r)}function un(t){return t instanceof en||(t=rn(t)),t?(t=t.rgb(),new ln(t.r,t.g,t.b,t.opacity)):new ln}function sn(t,n,e,r){return 1===arguments.length?un(t):new ln(t,n,e,null==r?1:r)}function ln(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function cn(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new pn(t,n,e,r)}function fn(t){if(t instanceof pn)return new pn(t.h,t.s,t.l,t.opacity);if(t instanceof en||(t=rn(t)),!t)return new pn;if(t instanceof pn)return t;t=t.rgb();var n=t.r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,s=(o+i)/2;return u?(a=n===o?(e-r)/u+6*(e<r):e===o?(r-n)/u+2:(n-e)/u+4,u/=s<.5?o+i:2-o-i,a*=60):u=s>0&&s<1?0:a,new pn(a,u,s,t.opacity)}function hn(t,n,e,r){return 1===arguments.length?fn(t):new pn(t,n,e,null==r?1:r)}function pn(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function dn(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function yn(t){if(t instanceof vn)return new vn(t.l,t.a,t.b,t.opacity);if(t instanceof Nn){var n=t.h*qr;return new vn(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof ln||(t=un(t));var e=bn(t.r),r=bn(t.g),i=bn(t.b),o=mn((.4124564*e+.3575761*r+.1804375*i)/Or),a=mn((.2126729*e+.7151522*r+.072175*i)/Vr),u=mn((.0193339*e+.119192*r+.9503041*i)/Xr);return new vn(116*a-16,500*(o-a),200*(a-u),t.opacity)}function gn(t,n,e,r){return 1===arguments.length?yn(t):new vn(t,n,e,null==r?1:r)}function vn(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function mn(t){return t>Fr?Math.pow(t,1/3):t/Br+Lr}function wn(t){return t>jr?t*t*t:Br*(t-Lr)}function _n(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function bn(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function xn(t){if(t instanceof Nn)return new Nn(t.h,t.c,t.l,t.opacity);t instanceof vn||(t=yn(t));var n=Math.atan2(t.b,t.a)*Ir;return new Nn(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Mn(t,n,e,r){return 1===arguments.length?xn(t):new Nn(t,n,e,null==r?1:r)}function Nn(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function kn(t){if(t instanceof Sn)return new Sn(t.h,t.s,t.l,t.opacity);t instanceof ln||(t=un(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(Gr*r+Yr*n-Ur*e)/(Gr+Yr-Ur),o=r-i,a=($r*(e-i)-Hr*o)/Rr,u=Math.sqrt(a*a+o*o)/($r*i*(1-i)),s=u?Math.atan2(a,o)*Ir-120:NaN;return new Sn(s<0?s+360:s,u,i,t.opacity)}function An(t,n,e,r){return 1===arguments.length?kn(t):new Sn(t,n,e,null==r?1:r)}function Sn(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function En(t){return function(){return t}}function Cn(t,n){return function(e){return t+e*n}}function Pn(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)}}function Tn(t,n){var e=n-t;return e?Cn(t,e>180||e<-180?e-360*Math.round(e/360):e):En(isNaN(t)?n:t)}function qn(t){return 1===(t=+t)?In:function(n,e){return e-n?Pn(n,e,t):En(isNaN(n)?e:n)}}function In(t,n){var e=n-t;return e?Cn(t,e):En(isNaN(t)?n:t)}function zn(t,n){return t=+t,n-=t,function(e){return t+n*e}}function On(t){return function(){return t}}function Vn(t){return function(n){return t(n)+""}}function Xn(t,n){var e,r,i,o=ni.lastIndex=ei.lastIndex=0,a=-1,u=[],s=[];for(t+="",n+="";(e=ni.exec(t))&&(r=ei.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,s.push({i:a,x:zn(e,r)})),o=ei.lastIndex;return o<n.length&&(i=n.slice(o),u[a]?u[a]+=i:u[++a]=i),u.length<2?s[0]?Vn(s[0].x):On(n):(n=s.length,function(t){for(var e,r=0;r<n;++r)u[(e=s[r]).i]=e.x(t);return u.join("")})}function Ln(t,n,e,r,i,o){var a,u,s;return(a=Math.sqrt(t*t+n*n))&&(t/=a,n/=a),(s=t*e+n*r)&&(e-=t*s,r-=n*s),(u=Math.sqrt(e*e+r*r))&&(e/=u,r/=u,s/=u),t*r<n*e&&(t=-t,n=-n,s=-s,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*ri,skewX:Math.atan(s)*ri,scaleX:a,scaleY:u}}function jn(t){return"none"===t?ii:(Jr||(Jr=document.createElement("DIV"),Kr=document.documentElement,Qr=document.defaultView),Jr.style.transform=t,t=Qr.getComputedStyle(Kr.appendChild(Jr),null).getPropertyValue("transform"),Kr.removeChild(Jr),t=t.slice(7,-1).split(","),Ln(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function Bn(t){return null==t?ii:(Zr||(Zr=document.createElementNS("http://www.w3.org/2000/svg","g")),Zr.setAttribute("transform",t),(t=Zr.transform.baseVal.consolidate())?(t=t.matrix,Ln(t.a,t.b,t.c,t.d,t.e,t.f)):ii)}function Fn(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}function o(t,r,i,o,a,u){if(t!==i||r!==o){var s=a.push("translate(",null,n,null,e);u.push({i:s-4,x:zn(t,i)},{i:s-2,x:zn(r,o)})}else(i||o)&&a.push("translate("+i+n+o+e)}function a(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:zn(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}function u(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:zn(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}function s(t,n,e,r,o,a){if(t!==e||n!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:zn(t,e)},{i:u-2,x:zn(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}return function(n,e){var r=[],i=[];return n=t(n),e=t(e),o(n.translateX,n.translateY,e.translateX,e.translateY,r,i),a(n.rotate,e.rotate,r,i),u(n.skewX,e.skewX,r,i),s(n.scaleX,n.scaleY,e.scaleX,e.scaleY,r,i),n=e=null,function(t){for(var n,e=-1,o=i.length;++e<o;)r[(n=i[e]).i]=n.x(t);return r.join("")}}}function Wn(t){return function n(e){function r(n,r){var i=t((n=An(n)).h,(r=An(r)).h),o=In(n.s,r.s),a=In(n.l,r.l),u=In(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=o(t),n.l=a(Math.pow(t,e)),n.opacity=u(t),n+""}}return e=+e,r.gamma=n,r}(1)}function Dn(t,n){var e,r;return function(){var i=Gt(this,t),o=i.tween;if(o!==e){r=e=o;for(var a=0,u=r.length;a<u;++a)if(r[a].name===n){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function Hn(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=Gt(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var u={name:n,value:e},s=0,l=i.length;s<l;++s)if(i[s].name===n){i[s]=u;break}s===l&&i.push(u)}o.tween=i}}function Rn(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=Jt(this.node(),e).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?Dn:Hn)(e,t,n))}function $n(t,n,e){var r=t._id;return t.each(function(){var t=Gt(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)}),function(t){return Jt(t,r).value[n]}}function Yn(t,n){var e;return("number"==typeof n?zn:n instanceof rn?ti:(e=rn(n))?(n=e,ti):Xn)(t,n)}function Un(t){return function(){this.removeAttribute(t)}}function Gn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Jn(t,n,e){var r,i;return function(){var o=this.getAttribute(t);return o===e?null:o===r?i:i=n(r=o,e)}}function Kn(t,n,e){var r,i;return function(){var o=this.getAttributeNS(t.space,t.local);return o===e?null:o===r?i:i=n(r=o,e)}}function Qn(t,n,e){var r,i,o;return function(){var a,u=e(this);return null==u?void this.removeAttribute(t):(a=this.getAttribute(t),a===u?null:a===r&&u===i?o:o=n(r=a,i=u))}}function Zn(t,n,e){var r,i,o;return function(){var a,u=e(this);return null==u?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local),a===u?null:a===r&&u===i?o:o=n(r=a,i=u))}}function te(t,e){var r=n(t),i="transform"===r?ai:Yn;return this.attrTween(t,"function"==typeof e?(r.local?Zn:Qn)(r,i,$n(this,"attr."+t,e)):null==e?(r.local?Gn:Un)(r):(r.local?Kn:Jn)(r,i,e))}function ne(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttributeNS(t.space,t.local,r(n))}}return e._value=n,e}function ee(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttribute(t,r(n))}}return e._value=n,e}function re(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;var i=n(t);return this.tween(r,(i.local?ne:ee)(i,e))}function ie(t,n){return function(){Ut(this,t).delay=+n.apply(this,arguments)}}function oe(t,n){return n=+n,function(){Ut(this,t).delay=n}}function ae(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?ie:oe)(n,t)):Jt(this.node(),n).delay}function ue(t,n){return function(){Gt(this,t).duration=+n.apply(this,arguments)}}function se(t,n){return n=+n,function(){Gt(this,t).duration=n}}function le(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?ue:se)(n,t)):Jt(this.node(),n).duration}function ce(t,n){if("function"!=typeof n)throw new Error;return function(){Gt(this,t).ease=n}}function fe(t){var n=this._id;return arguments.length?this.each(ce(n,t)):Jt(this.node(),n).ease}function he(t){"function"!=typeof t&&(t=Ge(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a=n[i],u=a.length,s=r[i]=[],l=0;l<u;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&s.push(o);return new Ie(r,this._parents,this._name,this._id)}function pe(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var s,l=n[u],c=e[u],f=l.length,h=a[u]=new Array(f),p=0;p<f;++p)(s=l[p]||c[p])&&(h[p]=s);for(;u<r;++u)a[u]=n[u];return new Ie(a,this._parents,this._name,this._id)}function de(t){return(t+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t})}function ye(t,n,e){var r,i,o=de(n)?Ut:Gt;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(n,e),a.on=i}}function ge(t,n){var e=this._id;return arguments.length<2?Jt(this.node(),e).on.on(t):this.each(ye(e,t,n))}function ve(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}function me(){return this.on("end.remove",ve(this._id))}function we(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=h(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var u,s,l=r[a],c=l.length,f=o[a]=new Array(c),p=0;p<c;++p)(u=l[p])&&(s=t.call(u,u.__data__,p,l))&&("__data__"in u&&(s.__data__=u.__data__),f[p]=s,Yt(f[p],n,e,p,f,Jt(u,e)));return new Ie(o,this._parents,n,e)}function _e(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=y(t));for(var r=this._groups,i=r.length,o=[],a=[],u=0;u<i;++u)for(var s,l=r[u],c=l.length,f=0;f<c;++f)if(s=l[f]){for(var h,p=t.call(s,s.__data__,f,l),d=Jt(s,e),g=0,v=p.length;g<v;++g)(h=p[g])&&Yt(h,n,e,g,p,d);o.push(p),a.push(s)}return new Ie(o,a,n,e)}function be(){return new ui(this._groups,this._parents)}function xe(t,n){var e,r,i;return function(){var o=D(this).getComputedStyle(this,null),a=o.getPropertyValue(t),u=(this.style.removeProperty(t),o.getPropertyValue(t));return a===u?null:a===e&&u===r?i:i=n(e=a,r=u)}}function Me(t){return function(){this.style.removeProperty(t)}}function Ne(t,n,e){var r,i;return function(){var o=D(this).getComputedStyle(this,null).getPropertyValue(t);return o===e?null:o===r?i:i=n(r=o,e)}}function ke(t,n,e){var r,i,o;return function(){var a=D(this).getComputedStyle(this,null),u=a.getPropertyValue(t),s=e(this);return null==s&&(this.style.removeProperty(t),s=a.getPropertyValue(t)),u===s?null:u===r&&s===i?o:o=n(r=u,i=s)}}function Ae(t,n,e){var r="transform"==(t+="")?oi:Yn;return null==n?this.styleTween(t,xe(t,r)).on("end.style."+t,Me(t)):this.styleTween(t,"function"==typeof n?ke(t,r,$n(this,"style."+t,n)):Ne(t,r,n),e)}function Se(t,n,e){function r(){var r=this,i=n.apply(r,arguments);return i&&function(n){r.style.setProperty(t,i(n),e)}}return r._value=n,r}function Ee(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,Se(t,n,null==e?"":e))}function Ce(t){return function(){this.textContent=t}}function Pe(t){return function(){var n=t(this);this.textContent=null==n?"":n}}function Te(t){return this.tween("text","function"==typeof t?Pe($n(this,"text",t)):Ce(null==t?"":t+""))}function qe(){for(var t=this._name,n=this._id,e=Oe(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],s=u.length,l=0;l<s;++l)if(a=u[l]){var c=Jt(a,n);Yt(a,t,e,l,u,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Ie(r,this._parents,t,e)}function Ie(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function ze(t){return Pt().transition(t)}function Oe(){return++si}function Ve(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}function Xe(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return yi.time=Xt(),yi;return e}function Le(t){var n,e;t instanceof Ie?(n=t._id,t=t._name):(n=Oe(),(e=yi).time=Xt(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],s=u.length,l=0;l<s;++l)(a=u[l])&&Yt(a,t,n,l,u,e||Xe(a,n));return new Ie(r,this._parents,t,n)}function je(t){return t&&"object"==typeof t&&"default"in t?t.default:t}function Be(t,n){return n={exports:{}},t(n,n.exports),n.exports}function Fe(t){return t<414?"12px":"14px"}function We(t){function n(){var n=Tt("div"+(t?"#"+t:"."+x));return n.empty()&&(n=Tt(document.createElement("div"))),n.attr("id",t).attr("class",x).style("position","absolute").style("top",0).style("left",0).style("opacity",0).style("pointer-events","none").style("box-sizing","border-box"),n.node()}function e(t){if(t=t.node())return"svg"===t.tagName.toLowerCase()?t:t.ownerSVGElement}function r(){return null===M&&(M=n(),A.appendChild(M)),Tt(M)}function i(n){A||document.body.appendChild(M);var r=e(n);if(r){null!=r.createSVGPoint&&(N=r.createSVGPoint()),r=Tt(r);var o=r.select("defs");o.empty()&&(o=r.append("defs"));var a=C;void 0===a&&(a=i.defaultStyle(S,_i));var u=o.selectAll("style"+(t?"#style-tip-"+t:".style-"+x)).data(a?[a]:[]);u.exit().remove(),u=u.enter().append("style").attr("type","text/css").attr("id",t?"style-tip-"+t:null).attr("class",t?null:"style-"+x).merge(u),u.text(function(t){return t})}}function o(){var t=p();return{top:t.n.y-M.offsetHeight,left:t.n.x-M.offsetWidth/2}}function a(){var t=p();return{top:t.s.y,left:t.s.x-M.offsetWidth/2}}function u(){var t=p();return{top:t.e.y-M.offsetHeight/2,left:t.e.x}}function s(){var t=p();return{top:t.w.y-M.offsetHeight/2,left:t.w.x-M.offsetWidth}}function l(){var t=p();return{top:t.nw.y-M.offsetHeight,left:t.nw.x-M.offsetWidth}}function c(){var t=p();return{top:t.ne.y-M.offsetHeight,left:t.ne.x}}function f(){var t=p();return{top:t.sw.y,left:t.sw.x-M.offsetWidth}}function h(){var t=p();return{top:t.se.y,left:t.se.x}}function p(){for(var t=k||Ke.target;"undefined"==typeof t.getScreenCTM&&"undefined"===t.parentNode;)t=t.parentNode;var n={},e=t.getScreenCTM(),r=t.getBBox(),i=r.width,o=r.height,a=r.x,u=r.y;return N.x=a,N.y=u,n.nw=N.matrixTransform(e),N.x+=i,n.ne=N.matrixTransform(e),N.y+=o,n.se=N.matrixTransform(e),N.x-=i,n.sw=N.matrixTransform(e),N.y-=o/2,n.w=N.matrixTransform(e),N.x+=i,n.e=N.matrixTransform(e),N.x-=i/2,N.y-=o/2,n.n=N.matrixTransform(e),N.y+=o,n.s=N.matrixTransform(e),n}var d=function(t){return"function"==typeof t?t:function(){return t}},y=function(){return"n"},g=function(){return[0,0]},v=function(){return" "},m=function(t){return t instanceof Node};ze();var w=y,_=g,b=v,x="d3-tip",M=n(),N=null,k=null,A=null,S="light",E=!1,C=void 0;i.self=function(){return"div"+(t?"#"+t:"."+x)},i.id=function(){return t},i.classed=function(t){return arguments.length?(x=t,i):x},i.show=function(){A||i.parent(document.body);var t=[].slice.call(arguments);k=this;var n=!1;1===t.length&&m(t[0])&&(k=t[0],t[0]=k.__data__,n=!0);var e=b.apply(k,t);if(null==e)return i;for(var o=_.apply(k,t),a=w.apply(k,t),u=r(),s=T.length,l=M.offsetParent.getBoundingClientRect();s--;)u.classed(T[s],!1);u.classed(a,!0).html(e);var c=P[a].apply(k);return u.style("top",c.top+o[0]-l.top+"px").style("left",c.left+o[1]-l.left+"px"),n&&window.addEventListener("load",function(){c=P[a].apply(k),u.style("top",c.top+o[0]-l.top+"px").style("left",c.left+o[1]-l.left+"px")}),null!=E&&E!==!1&&(u=u.transition(),"number"==typeof E&&(u=u.duration(E))),u.style("opacity",1),i},i.hide=function(){var t=r();return t.interrupt(),t.style("opacity",0),i},i.attr=function(t){if(arguments.length<2&&"string"==typeof t)return r().attr(t);var n=[].slice.call(arguments);return Pt.prototype.attr.apply(r(),n),i},i.direction=function(t){return arguments.length?(w=null==t?t:d(t),i):w},i.offset=function(t){return arguments.length?(_=null==t?t:d(t),i):_},i.html=function(t){return arguments.length?(b=null==t?t:d(t),i):b},i.destroy=function(){return M&&(r().remove(),M=null),i},i.style=function(t){return arguments.length?(C=t,i):C},i.transition=function(t){return arguments.length?(E=t,i):E},i.theme=function(t){return arguments.length?(S=t,i):S},i.parent=function(t){if(!arguments.length)return A;A=t||document.body,A.appendChild(M);var n=Tt(M.offsetParent);return"static"===n.style("position")&&n.style("position","relative"),i},i.defaultStyle=function(t,n){return"\n "+wi.fixed.cssImport+" \n "+i.self()+" {\n line-height: 1;\n font-family: "+wi.fixed.family+";\n color: "+gi[t].negative.text+";\n font-weight: "+wi.fixed.weightMonochrome+"; \n font-size: "+wi.fixed.sizeForWidth(n)+"; \n padding: 8px;\n background: "+gi[t].negative.background+";\n border-radius: 2px;\n pointer-events: none;\n }\n /* Creates a small triangle extender for the tooltip */\n "+i.self()+":after {\n box-sizing: border-box;\n display: inline;\n width: 100%;\n line-height: 1;\n color: "+gi[t].negative.background+";\n font-size: "+wi.fixed.sizeForWidth(1)+"; \n position: absolute;\n pointer-events: none;\n }\n /* Northward tooltips */\n "+i.self()+'.n:after {\n content: "\\25bc";\n margin: -3px 0 0 0;\n top: 100%;\n left: 0;\n text-align: center;\n }\n /* Eastward tooltips */\n '+i.self()+'.e:after {\n content: "\\25C0";\n margin: -7px 0 0 0;\n top: 50%;\n left: -7px;\n }\n /* Southward tooltips */\n '+i.self()+'.s:after {\n content: "\\25B2";\n margin: 0 0 1px 0;\n top: -10px;\n left: 0;\n text-align: center;\n }\n /* Westward tooltips */\n '+i.self()+'.w:after {\n content: "\\25B6";\n margin: -7px 0 0 0;\n top: 50%;\n left: 100%;\n } \n '; | ||
};var P={n:o,s:a,e:u,w:s,nw:l,ne:c,sw:f,se:h},T=Object.keys(P);return i}var De="0.3.3",He="http://www.w3.org/1999/xhtml",Re={svg:"http://www.w3.org/2000/svg",xhtml:He,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},$e=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var Ye=document.documentElement;if(!Ye.matches){var Ue=Ye.webkitMatchesSelector||Ye.msMatchesSelector||Ye.mozMatchesSelector||Ye.oMatchesSelector;$e=function(t){return function(){return Ue.call(this,t)}}}}var Ge=$e,Je={},Ke=null;if("undefined"!=typeof document){var Qe=document.documentElement;"onmouseenter"in Qe||(Je={mouseenter:"mouseover",mouseleave:"mouseout"})}_.prototype={constructor:_,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 Ze="$";tt.prototype={add:function(t){var n=this._names.indexOf(t);n<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 tr=[null];Ct.prototype=Pt.prototype={constructor:Ct,select:p,selectAll:g,filter:v,data:N,enter:w,exit:k,merge:A,order:S,sort:E,call:P,nodes:T,node:q,size:I,empty:z,each:O,attr:W,style:Y,property:K,classed:at,text:ct,html:dt,raise:gt,lower:mt,append:wt,insert:bt,remove:Mt,datum:Nt,on:c,dispatch:Et};var nr={value:function(){}};It.prototype=qt.prototype={constructor:It,on:function(t,n){var e,r=this._,i=zt(t+"",r),o=-1,a=i.length;{if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o<a;)if(e=(t=i[o]).type)r[e]=Vt(r[e],t.name,n);else if(null==n)for(e in r)r[e]=Vt(r[e],t.name,null);return this}for(;++o<a;)if((e=(t=i[o]).type)&&(e=Ot(r[e],t.name)))return e}},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new It(t)},call:function(t,n){var e=arguments;if((r=arguments.length-2)>0)for(var r,i,o=new Array(r),a=0;a<r;++a)o[a]=e[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(i=this._[t],a=0,r=i.length;a<r;++a)i[a].value.apply(n,o)},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 er,rr,ir=0,or=0,ar=0,ur=1e3,sr=0,lr=0,cr=0,fr="object"==typeof performance&&performance.now?performance:Date,hr="function"==typeof requestAnimationFrame?fr===Date?function(t){requestAnimationFrame(function(){t(fr.now())})}:requestAnimationFrame:function(t){setTimeout(t,17)};jt.prototype=Bt.prototype={constructor:jt,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Xt():+e)+(null==n?0:+n),this._next||rr===this||(rr?rr._next=this:er=this,rr=this),this._call=t,this._time=e,Rt()},stop:function(){this._call&&(this._call=null,this._time=1/0,Rt())}};var pr=qt("start","end","interrupt"),dr=[],yr=0,gr=1,vr=2,mr=3,wr=4,_r=5,br=.7,xr=1/br,Mr=/^#([0-9a-f]{3})$/,Nr=/^#([0-9a-f]{6})$/,kr=/^rgb\(\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*\)$/,Ar=/^rgb\(\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*\)$/,Sr=/^rgba\(\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/,Er=/^rgba\(\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/,Cr=/^hsl\(\s*([-+]?\d+(?:\.\d+)?)\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*\)$/,Pr=/^hsla\(\s*([-+]?\d+(?:\.\d+)?)\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/,Tr={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};tn(en,rn,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),tn(ln,sn,nn(en,{brighter:function(t){return t=null==t?xr:Math.pow(xr,t),new ln(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?br:Math.pow(br,t),new ln(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),tn(pn,hn,nn(en,{brighter:function(t){return t=null==t?xr:Math.pow(xr,t),new pn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?br:Math.pow(br,t),new pn(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 ln(dn(t>=240?t-240:t+120,i,r),dn(t,i,r),dn(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var qr=Math.PI/180,Ir=180/Math.PI,zr=18,Or=.95047,Vr=1,Xr=1.08883,Lr=4/29,jr=6/29,Br=3*jr*jr,Fr=jr*jr*jr;tn(vn,gn,nn(en,{brighter:function(t){return new vn(this.l+zr*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new vn(this.l-zr*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return t=Vr*wn(t),n=Or*wn(n),e=Xr*wn(e),new ln(_n(3.2404542*n-1.5371385*t-.4985314*e),_n(-.969266*n+1.8760108*t+.041556*e),_n(.0556434*n-.2040259*t+1.0572252*e),this.opacity)}})),tn(Nn,Mn,nn(en,{brighter:function(t){return new Nn(this.h,this.c,this.l+zr*(null==t?1:t),this.opacity)},darker:function(t){return new Nn(this.h,this.c,this.l-zr*(null==t?1:t),this.opacity)},rgb:function(){return yn(this).rgb()}}));var Wr=-.14861,Dr=1.78277,Hr=-.29227,Rr=-.90649,$r=1.97294,Yr=$r*Rr,Ur=$r*Dr,Gr=Dr*Hr-Rr*Wr;tn(Sn,An,nn(en,{brighter:function(t){return t=null==t?xr:Math.pow(xr,t),new Sn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?br:Math.pow(br,t),new Sn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*qr,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new ln(255*(n+e*(Wr*r+Dr*i)),255*(n+e*(Hr*r+Rr*i)),255*(n+e*($r*r)),this.opacity)}}));var Jr,Kr,Qr,Zr,ti=function t(n){function e(t,n){var e=r((t=sn(t)).r,(n=sn(n)).r),i=r(t.g,n.g),o=r(t.b,n.b),a=r(t.opacity,n.opacity);return function(n){return t.r=e(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}var r=qn(n);return e.gamma=t,e}(1),ni=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ei=new RegExp(ni.source,"g"),ri=180/Math.PI,ii={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},oi=Fn(jn,"px, ","px)","deg)"),ai=Fn(Bn,", ",")",")");Wn(Tn);var ui=(Wn(In),Pt.prototype.constructor),si=0,li=Pt.prototype;Ie.prototype=ze.prototype={constructor:Ie,select:we,selectAll:_e,filter:he,merge:pe,selection:be,transition:qe,call:li.call,nodes:li.nodes,node:li.node,size:li.size,empty:li.empty,each:li.each,on:ge,attr:te,attrTween:re,style:Ae,styleTween:Ee,text:Te,remove:me,tween:Rn,delay:ae,duration:le,ease:fe};var ci=3,fi=(function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(ci),function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(ci),function t(n){function e(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,e.exponent=t,e}(ci),1.70158),hi=(function t(n){function e(t){return t*t*((n+1)*t-n)}return n=+n,e.overshoot=t,e}(fi),function t(n){function e(t){return--t*t*((n+1)*t+n)+1}return n=+n,e.overshoot=t,e}(fi),function t(n){function e(t){return((t*=2)<1?t*t*((n+1)*t-n):(t-=2)*t*((n+1)*t+n)+2)/2}return n=+n,e.overshoot=t,e}(fi),2*Math.PI),pi=1,di=.3,yi=(function t(n,e){function r(t){return n*Math.pow(2,10*--t)*Math.sin((i-t)/e)}var i=Math.asin(1/(n=Math.max(1,n)))*(e/=hi);return r.amplitude=function(n){return t(n,e*hi)},r.period=function(e){return t(n,e)},r}(pi,di),function t(n,e){function r(t){return 1-n*Math.pow(2,-10*(t=+t))*Math.sin((t+i)/e)}var i=Math.asin(1/(n=Math.max(1,n)))*(e/=hi);return r.amplitude=function(n){return t(n,e*hi)},r.period=function(e){return t(n,e)},r}(pi,di),function t(n,e){function r(t){return((t=2*t-1)<0?n*Math.pow(2,10*t)*Math.sin((i-t)/e):2-n*Math.pow(2,-10*t)*Math.sin((i+t)/e))/2}var i=Math.asin(1/(n=Math.max(1,n)))*(e/=hi);return r.amplitude=function(n){return t(n,e*hi)},r.period=function(e){return t(n,e)},r}(pi,di),{time:null,delay:0,duration:250,ease:Ve});Pt.prototype.interrupt=Zt,Pt.prototype.transition=Le;var gi={light:{background:"#ffffff",text:"#262626",axis:"#262626",grid:"#e0e0e0",highlight:"rgba(225,16,16,0.5)",lowlight:"rgba(127,127,127,0.3)",shadow:"rgba(127,127,127,0.4)",fillOpacity:.33,negative:{background:"rgba(0, 0, 0, 0.66)",text:"#ffffff"}},dark:{background:"#333333",text:"#ffffff",axis:"#ffffff",grid:"#6d6d6d",highlight:"rgba(225,16,16,0.5)",lowlight:"rgba(127,127,127,0.5)",shadow:"rgba(255,255,255,0.4)",fillOpacity:.33,negative:{background:"rgba(255, 255, 255, 0.85)",text:"#262626"}}},vi=Be(function(t){function n(t,n){return 1-3*n+3*t}function e(t,n){return 3*n-6*t}function r(t){return 3*t}function i(t,i,o){return((n(i,o)*t+e(i,o))*t+r(i))*t}function o(t,i,o){return 3*n(i,o)*t*t+2*e(i,o)*t+r(i)}function a(t,n,e,r,o){var a,u,s=0;do u=n+(e-n)/2,a=i(u,r,o)-t,a>0?e=u:n=u;while(Math.abs(a)>c&&++s<f);return u}function u(t,n,e,r){for(var a=0;a<s;++a){var u=o(n,e,r);if(0===u)return n;var l=i(n,e,r)-t;n-=l/u}return n}var s=4,l=.001,c=1e-7,f=10,h=11,p=1/(h-1),d="function"==typeof Float32Array;t.exports=function(t,n,e,r){function s(n){for(var r=0,i=1,s=h-1;i!==s&&c[i]<=n;++i)r+=p;--i;var f=(n-c[i])/(c[i+1]-c[i]),d=r+f*p,y=o(d,t,e);return y>=l?u(n,d,t,e):0===y?d:a(n,r,r+p,t,e)}if(!(0<=t&&t<=1&&0<=e&&e<=1))throw new Error("bezier x values must be in [0, 1] range");var c=d?new Float32Array(h):new Array(h);if(t!==n||e!==r)for(var f=0;f<h;++f)c[f]=i(f*p,t,e);return function(o){return t===n&&e===r?o:0===o?0:1===o?1:i(s(o),n,r)}}});je(vi);var mi='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',wi={fixed:{cssImport:"@import url(https://fonts.googleapis.com/css?family=Source+Code+Pro:300,500);",weightMonochrome:300,weightColor:500,sizeForWidth:Fe,family:'"Source Code Pro", Consolas, "Liberation Mono", Menlo, Courier, monospace'},variable:{cssImport:"@import url(https://fonts.googleapis.com/css?family=Raleway:400,500);",weightMonochrome:400,weightColor:500,sizeForWidth:Fe,family:'"Raleway", "Trebuchet MS", '+mi},brand:{cssImport:"@import url(https://fonts.googleapis.com/css?family=Electrolize);",weightMonochrome:400,weightColor:400,sizeForWidth:Fe,family:'"Electrolize", '+mi}},_i=800;t.version=De,t.body=We,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.d3_rs_tip={})}(this,function(t){"use strict";function n(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===Sn&&n.documentElement.namespaceURI===Sn?n.createElement(t):n.createElementNS(e,t)}}function e(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function r(t,n,e){return t=i(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function i(t,n,e){return function(r){var i=Vn;Vn=r;try{t.call(this,this.__data__,n,e)}finally{Vn=i}}}function o(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 a(t){return function(){var n=this,e=this.__on;if(e){for(var r,i=0,o=-1,a=e.length;i<a;++i)r=e[i],t.type&&r.type!==t.type||r.name!==t.name?e[++o]=r:n.removeEventListener(r.type,r.listener,r.capture);++o?e.length=o:delete this.__on}}}function u(t,n,e){var o=Rn.hasOwnProperty(t.type)?r:i;return function(r,i,a){var u,s=this,l=this.__on,c=o(n,i,a);if(l)for(var f=0,h=l.length;f<h;++f)if((u=l[f]).type===t.type&&u.name===t.name)return s.removeEventListener(u.type,u.listener,u.capture),s.addEventListener(u.type,u.listener=c,u.capture=e),void(u.value=n);this.addEventListener(t.type,c,e),u={type:t.type,name:t.name,value:n,listener:c,capture:e},l?l.push(u):this.__on=[u]}}function s(){}function l(){return[]}function c(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function f(t,n,e,r,i,o){for(var a,u=0,s=n.length,l=o.length;u<l;++u)(a=n[u])?(a.__data__=o[u],r[u]=a):e[u]=new c(t,o[u]);for(;u<s;++u)(a=n[u])&&(i[u]=a)}function h(t,n,e,r,i,o,a){var u,s,l,f={},h=n.length,p=o.length,d=new Array(h);for(u=0;u<h;++u)(s=n[u])&&(d[u]=l=Yn+a.call(s,s.__data__,u,n),l in f?i[u]=s:f[l]=s);for(u=0;u<p;++u)l=Yn+a.call(t,o[u],u,o),(s=f[l])?(r[u]=s,s.__data__=o[u],f[l]=null):e[u]=new c(t,o[u]);for(u=0;u<h;++u)(s=n[u])&&f[d[u]]===s&&(i[u]=s)}function p(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function d(t){return function(){this.removeAttribute(t)}}function y(t){return function(){this.removeAttributeNS(t.space,t.local)}}function g(t,n){return function(){this.setAttribute(t,n)}}function v(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function m(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function w(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)}}function _(t){return function(){this.style.removeProperty(t)}}function b(t,n,e){return function(){this.style.setProperty(t,n,e)}}function x(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function k(t){return function(){delete this[t]}}function N(t,n){return function(){this[t]=n}}function M(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function A(t){return t.trim().split(/^|\s+/)}function E(t){return t.classList||new S(t)}function S(t){this._node=t,this._names=A(t.getAttribute("class")||"")}function C(t,n){for(var e=E(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function P(t,n){for(var e=E(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function T(t){return function(){C(this,t)}}function I(t){return function(){P(this,t)}}function q(t,n){return function(){(n.apply(this,arguments)?C:P)(this,t)}}function z(){this.textContent=""}function O(t){return function(){this.textContent=t}}function R(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function V(){this.innerHTML=""}function X(t){return function(){this.innerHTML=t}}function L(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function j(){this.nextSibling&&this.parentNode.appendChild(this)}function B(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function W(){return null}function F(){var t=this.parentNode;t&&t.removeChild(this)}function H(t,n,e){var r=ae(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 D(t,n){return function(){return H(this,t,n)}}function $(t,n){return function(){return H(this,t,n.apply(this,arguments))}}function Y(t,n){this._groups=t,this._parents=n}function U(){return new Y([[document.documentElement]],we)}function G(){for(var t,n=arguments,e=0,r=arguments.length,i={};e<r;++e){if(!(t=n[e]+"")||t in i)throw new Error("illegal type: "+t);i[t]=[]}return new J(i)}function J(t){this._=t}function K(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 Q(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function Z(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}function tt(){return Ce||(Ie(nt),Ce=Te.now()+Pe)}function nt(){Ce=0}function et(){this._call=this._time=this._next=null}function rt(t,n,e){var r=new et;return r.restart(t,n,e),r}function it(){tt(),++Ne;for(var t,n=xe;n;)(t=Ce-n._time)>=0&&n._call.call(null,t),n=n._next;--Ne}function ot(){Ce=(Se=Te.now())+Pe,Ne=Me=0;try{it()}finally{Ne=0,ut(),Ce=0}}function at(){var t=Te.now(),n=t-Se;n>Ee&&(Pe-=n,Se=t)}function ut(){for(var t,n,e=xe,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:xe=n);ke=t,st(r)}function st(t){if(!Ne){Me&&(Me=clearTimeout(Me));t-Ce>24?(t<1/0&&(Me=setTimeout(ot,t-Te.now()-Pe)),Ae&&(Ae=clearInterval(Ae))):(Ae||(Se=Te.now(),Ae=setInterval(at,Ee)),Ne=1,Ie(ot))}}function lt(t,n){var e=t.__transition;if(!e||!(e=e[n])||e.state>Re)throw new Error("too late");return e}function ct(t,n){var e=t.__transition;if(!e||!(e=e[n])||e.state>Xe)throw new Error("too late");return e}function ft(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("too late");return e}function ht(t,n,e){function r(t){e.state=Ve,e.timer.restart(i,e.delay,e.time),e.delay<=t&&i(t-e.delay)}function i(r){var l,c,f,h;if(e.state!==Ve)return a();for(l in s)if(h=s[l],h.name===e.name){if(h.state===Le)return qe(i);h.state===je?(h.state=We,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete s[l]):+l<n&&(h.state=We,h.timer.stop(),delete s[l])}if(qe(function(){e.state===Le&&(e.state=je,e.timer.restart(o,e.delay,e.time),o(r))}),e.state=Xe,e.on.call("start",t,t.__data__,e.index,e.group),e.state===Xe){for(e.state=Le,u=new Array(f=e.tween.length),l=0,c=-1;l<f;++l)(h=e.tween[l].value.call(t,t.__data__,e.index,e.group))&&(u[++c]=h);u.length=c+1}}function o(n){for(var r=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(a),e.state=Be,1),i=-1,o=u.length;++i<o;)u[i].call(null,r);e.state===Be&&(e.on.call("end",t,t.__data__,e.index,e.group),a())}function a(){e.state=We,e.timer.stop(),delete s[n];for(var r in s)return;delete t.__transition}var u,s=t.__transition;s[n]=e,e.timer=rt(r,0,e.time)}function pt(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function dt(){}function yt(t){var n;return t=(t+"").trim().toLowerCase(),(n=Je.exec(t))?(n=parseInt(n[1],16),new _t(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1)):(n=Ke.exec(t))?gt(parseInt(n[1],16)):(n=Qe.exec(t))?new _t(n[1],n[2],n[3],1):(n=Ze.exec(t))?new _t(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=tr.exec(t))?vt(n[1],n[2],n[3],n[4]):(n=nr.exec(t))?vt(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=er.exec(t))?bt(n[1],n[2]/100,n[3]/100,1):(n=rr.exec(t))?bt(n[1],n[2]/100,n[3]/100,n[4]):ir.hasOwnProperty(t)?gt(ir[t]):"transparent"===t?new _t(NaN,NaN,NaN,0):null}function gt(t){return new _t(t>>16&255,t>>8&255,255&t,1)}function vt(t,n,e,r){return r<=0&&(t=n=e=NaN),new _t(t,n,e,r)}function mt(t){return t instanceof dt||(t=yt(t)),t?(t=t.rgb(),new _t(t.r,t.g,t.b,t.opacity)):new _t}function wt(t,n,e,r){return 1===arguments.length?mt(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 bt(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Nt(t,n,e,r)}function xt(t){if(t instanceof Nt)return new Nt(t.h,t.s,t.l,t.opacity);if(t instanceof dt||(t=yt(t)),!t)return new Nt;if(t instanceof Nt)return t;t=t.rgb();var n=t.r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,s=(o+i)/2;return u?(a=n===o?(e-r)/u+6*(e<r):e===o?(r-n)/u+2:(n-e)/u+4,u/=s<.5?o+i:2-o-i,a*=60):u=s>0&&s<1?0:a,new Nt(a,u,s,t.opacity)}function kt(t,n,e,r){return 1===arguments.length?xt(t):new Nt(t,n,e,null==r?1:r)}function Nt(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Mt(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function At(t){if(t instanceof St)return new St(t.l,t.a,t.b,t.opacity);if(t instanceof Ot){var n=t.h*or;return new St(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof _t||(t=mt(t));var e=It(t.r),r=It(t.g),i=It(t.b),o=Ct((.4124564*e+.3575761*r+.1804375*i)/ur),a=Ct((.2126729*e+.7151522*r+.072175*i)/sr);return new St(116*a-16,500*(o-a),200*(a-Ct((.0193339*e+.119192*r+.9503041*i)/lr)),t.opacity)}function Et(t,n,e,r){return 1===arguments.length?At(t):new St(t,n,e,null==r?1:r)}function St(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function Ct(t){return t>pr?Math.pow(t,1/3):t/hr+cr}function Pt(t){return t>fr?t*t*t:hr*(t-cr)}function Tt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function It(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function qt(t){if(t instanceof Ot)return new Ot(t.h,t.c,t.l,t.opacity);t instanceof St||(t=At(t));var n=Math.atan2(t.b,t.a)*ar;return new Ot(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function zt(t,n,e,r){return 1===arguments.length?qt(t):new Ot(t,n,e,null==r?1:r)}function Ot(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function Rt(t){if(t instanceof Xt)return new Xt(t.h,t.s,t.l,t.opacity);t instanceof _t||(t=mt(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(br*r+wr*n-_r*e)/(br+wr-_r),o=r-i,a=(mr*(e-i)-gr*o)/vr,u=Math.sqrt(a*a+o*o)/(mr*i*(1-i)),s=u?Math.atan2(a,o)*ar-120:NaN;return new Xt(s<0?s+360:s,u,i,t.opacity)}function Vt(t,n,e,r){return 1===arguments.length?Rt(t):new Xt(t,n,e,null==r?1:r)}function Xt(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Lt(t,n){return function(e){return t+e*n}}function jt(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)}}function Bt(t){return 1==(t=+t)?Wt:function(n,e){return e-n?jt(n,e,t):Ar(isNaN(n)?e:n)}}function Wt(t,n){var e=n-t;return e?Lt(t,e):Ar(isNaN(t)?n:t)}function Ft(t){return function(){return t}}function Ht(t){return function(n){return t(n)+""}}function Dt(t){return"none"===t?qr:(xr||(xr=document.createElement("DIV"),kr=document.documentElement,Nr=document.defaultView),xr.style.transform=t,t=Nr.getComputedStyle(kr.appendChild(xr),null).getPropertyValue("transform"),kr.removeChild(xr),t=t.slice(7,-1).split(","),zr(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function $t(t){return null==t?qr:(Mr||(Mr=document.createElementNS("http://www.w3.org/2000/svg","g")),Mr.setAttribute("transform",t),(t=Mr.transform.baseVal.consolidate())?(t=t.matrix,zr(t.a,t.b,t.c,t.d,t.e,t.f)):qr)}function Yt(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}function o(t,r,i,o,a,u){if(t!==i||r!==o){var s=a.push("translate(",null,n,null,e);u.push({i:s-4,x:Sr(t,i)},{i:s-2,x:Sr(r,o)})}else(i||o)&&a.push("translate("+i+n+o+e)}function a(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:Sr(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}function u(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:Sr(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}function s(t,n,e,r,o,a){if(t!==e||n!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:Sr(t,e)},{i:u-2,x:Sr(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}return function(n,e){var r=[],i=[];return n=t(n),e=t(e),o(n.translateX,n.translateY,e.translateX,e.translateY,r,i),a(n.rotate,e.rotate,r,i),u(n.skewX,e.skewX,r,i),s(n.scaleX,n.scaleY,e.scaleX,e.scaleY,r,i),n=e=null,function(t){for(var n,e=-1,o=i.length;++e<o;)r[(n=i[e]).i]=n.x(t);return r.join("")}}}function Ut(t,n){var e,r;return function(){var i=ct(this,t),o=i.tween;if(o!==e){r=e=o;for(var a=0,u=r.length;a<u;++a)if(r[a].name===n){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function Gt(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=ct(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var u={name:n,value:e},s=0,l=i.length;s<l;++s)if(i[s].name===n){i[s]=u;break}s===l&&i.push(u)}o.tween=i}}function Jt(t,n,e){var r=t._id;return t.each(function(){var t=ct(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)}),function(t){return ft(t,r).value[n]}}function Kt(t){return function(){this.removeAttribute(t)}}function Qt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Zt(t,n,e){var r,i;return function(){var o=this.getAttribute(t);return o===e?null:o===r?i:i=n(r=o,e)}}function tn(t,n,e){var r,i;return function(){var o=this.getAttributeNS(t.space,t.local);return o===e?null:o===r?i:i=n(r=o,e)}}function nn(t,n,e){var r,i,o;return function(){var a,u=e(this);return null==u?void this.removeAttribute(t):(a=this.getAttribute(t),a===u?null:a===r&&u===i?o:o=n(r=a,i=u))}}function en(t,n,e){var r,i,o;return function(){var a,u=e(this);return null==u?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local),a===u?null:a===r&&u===i?o:o=n(r=a,i=u))}}function rn(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttributeNS(t.space,t.local,r(n))}}return e._value=n,e}function on(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttribute(t,r(n))}}return e._value=n,e}function an(t,n){return function(){lt(this,t).delay=+n.apply(this,arguments)}}function un(t,n){return n=+n,function(){lt(this,t).delay=n}}function sn(t,n){return function(){ct(this,t).duration=+n.apply(this,arguments)}}function ln(t,n){return n=+n,function(){ct(this,t).duration=n}}function cn(t,n){if("function"!=typeof n)throw new Error;return function(){ct(this,t).ease=n}}function fn(t){return(t+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t})}function hn(t,n,e){var r,i,o=fn(n)?lt:ct;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(n,e),a.on=i}}function pn(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}function dn(t,n){var e,r,i;return function(){var o=ae(this).getComputedStyle(this,null),a=o.getPropertyValue(t),u=(this.style.removeProperty(t),o.getPropertyValue(t));return a===u?null:a===e&&u===r?i:i=n(e=a,r=u)}}function yn(t){return function(){this.style.removeProperty(t)}}function gn(t,n,e){var r,i;return function(){var o=ae(this).getComputedStyle(this,null).getPropertyValue(t);return o===e?null:o===r?i:i=n(r=o,e)}}function vn(t,n,e){var r,i,o;return function(){var a=ae(this).getComputedStyle(this,null),u=a.getPropertyValue(t),s=e(this);return null==s&&(this.style.removeProperty(t),s=a.getPropertyValue(t)),u===s?null:u===r&&s===i?o:o=n(r=u,i=s)}}function mn(t,n,e){function r(){var r=this,i=n.apply(r,arguments);return i&&function(n){r.style.setProperty(t,i(n),e)}}return r._value=n,r}function wn(t){return function(){this.textContent=t}}function _n(t){return function(){var n=t(this);this.textContent=null==n?"":n}}function bn(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function xn(t){return U().transition(t)}function kn(){return++ei}function Nn(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}function Mn(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return ii.time=tt(),ii;return e}function An(t){return t<414?"12px":"14px"}function En(t){function n(){var n=_e("div"+(t?"#"+t:"."+x));return n.empty()&&(n=_e(document.createElement("div"))),n.attr("id",t).attr("class",x).style("position","absolute").style("top",0).style("left",0).style("opacity",0).style("pointer-events","none").style("box-sizing","border-box"),n.node()}function e(t){if(t=t.node())return"svg"===t.tagName.toLowerCase()?t:t.ownerSVGElement}function r(){return null===k&&(k=n(),A.appendChild(k)),_e(k)}function i(n){A||document.body.appendChild(k);var r=e(n);if(r){null!=r.createSVGPoint&&(N=r.createSVGPoint()),r=_e(r);var o=r.select("defs");o.empty()&&(o=r.append("defs"));var a=C;void 0===a&&(a=i.defaultStyle(E,li));var u=o.selectAll("style"+(t?"#style-tip-"+t:".style-"+x)).data(a?[a]:[]);u.exit().remove(),u=u.enter().append("style").attr("type","text/css").attr("id",t?"style-tip-"+t:null).attr("class",t?null:"style-"+x).merge(u),u.text(function(t){return t})}}function o(){var t=p();return{top:t.n.y-k.offsetHeight,left:t.n.x-k.offsetWidth/2}}function a(){var t=p();return{top:t.s.y,left:t.s.x-k.offsetWidth/2}}function u(){var t=p();return{top:t.e.y-k.offsetHeight/2,left:t.e.x}}function s(){var t=p();return{top:t.w.y-k.offsetHeight/2,left:t.w.x-k.offsetWidth}}function l(){var t=p();return{top:t.nw.y-k.offsetHeight,left:t.nw.x-k.offsetWidth}}function c(){var t=p();return{top:t.ne.y-k.offsetHeight,left:t.ne.x}}function f(){var t=p();return{top:t.sw.y,left:t.sw.x-k.offsetWidth}}function h(){var t=p();return{top:t.se.y,left:t.se.x}}function p(){for(var t=M||Vn.target;void 0===t.getScreenCTM&&"undefined"===t.parentNode;)t=t.parentNode;var n={},e=t.getScreenCTM(),r=t.getBBox(),i=r.width,o=r.height,a=r.x,u=r.y;return N.x=a,N.y=u,n.nw=N.matrixTransform(e),N.x+=i,n.ne=N.matrixTransform(e),N.y+=o,n.se=N.matrixTransform(e),N.x-=i,n.sw=N.matrixTransform(e),N.y-=o/2,n.w=N.matrixTransform(e),N.x+=i,n.e=N.matrixTransform(e),N.x-=i/2,N.y-=o/2,n.n=N.matrixTransform(e),N.y+=o,n.s=N.matrixTransform(e),n}var d=function(t){return"function"==typeof t?t:function(){return t}},y=function(){return"n"},g=function(){return[0,0]},v=function(){return" "},m=function(t){return t instanceof Node};xn();var w=y,_=g,b=v,x="d3-tip",k=n(),N=null,M=null,A=null,E="light",S=!1,C=void 0,P=16777271;i.self=function(){return"div"+(t?"#"+t:"."+x)},i.id=function(){return t},i.classed=function(t){return arguments.length?(x=t,i):x},i.show=function(){A||i.parent(document.body);var t=[].slice.call(arguments);M=this;var n=!1;1===t.length&&m(t[0])&&(M=t[0],t[0]=M.__data__,n=!0);var e=b.apply(M,t);if(null==e)return i;for(var o=_.apply(M,t),a=w.apply(M,t),u=r(),s=I.length,l=k.offsetParent.getBoundingClientRect();s--;)u.classed(I[s],!1);u.classed(a,!0).html(e);var c=T[a].apply(M);return u.style("top",c.top+o[0]-l.top+"px").style("left",c.left+o[1]-l.left+"px").style("z-index",P),n&&window.addEventListener("load",function(){c=T[a].apply(M),u.style("top",c.top+o[0]-l.top+"px").style("left",c.left+o[1]-l.left+"px")}),null!=S&&!1!==S&&(u=u.transition(),"number"==typeof S&&(u=u.duration(S))),u.style("opacity",1),i},i.hide=function(){var t=r();return t.interrupt(),t.style("opacity",0),i},i.attr=function(t){if(arguments.length<2&&"string"==typeof t)return r().attr(t);var n=[].slice.call(arguments);return U.prototype.attr.apply(r(),n),i},i.direction=function(t){return arguments.length?(w=null==t?t:d(t),i):w},i.offset=function(t){return arguments.length?(_=null==t?t:d(t),i):_},i.html=function(t){return arguments.length?(b=null==t?t:d(t),i):b},i.destroy=function(){return k&&(r().remove(),k=null),i},i.style=function(t){return arguments.length?(C=t,i):C},i.transition=function(t){return arguments.length?(S=t,i):S},i.theme=function(t){return arguments.length?(E=t,i):E},i.zIndex=function(t){return arguments.length?(P=t,i):P},i.parent=function(t){if(!arguments.length)return A;A=t||document.body,A.appendChild(k);var n=_e(k.offsetParent);return"static"===n.style("position")&&n.style("position","relative"),i},i.defaultStyle=function(t,n){return"\n "+si.fixed.cssImport+" \n "+i.self()+" {\n line-height: 1;\n font-family: "+si.fixed.family+";\n color: "+ai[t].negative.text+";\n font-weight: "+si.fixed.weightMonochrome+"; \n font-size: "+si.fixed.sizeForWidth(n)+"; \n padding: 8px;\n background: "+ai[t].negative.background+";\n border-radius: 2px;\n pointer-events: none;\n }\n /* Creates a small triangle extender for the tooltip */\n "+i.self()+":after {\n box-sizing: border-box;\n display: inline;\n width: 100%;\n line-height: 1;\n color: "+ai[t].negative.background+";\n font-size: "+si.fixed.sizeForWidth(1)+"; \n position: absolute;\n pointer-events: none;\n }\n /* Northward tooltips */\n "+i.self()+'.n:after {\n content: "\\25bc";\n margin: -3px 0 0 0;\n top: 100%;\n left: 0;\n text-align: center;\n }\n /* Eastward tooltips */\n '+i.self()+'.e:after {\n content: "\\25C0";\n margin: -7px 0 0 0;\n top: 50%;\n left: -7px;\n }\n /* Southward tooltips */\n '+i.self()+'.s:after {\n content: "\\25B2";\n margin: 0 0 1px 0;\n top: -10px;\n left: 0;\n text-align: center;\n }\n /* Westward tooltips */\n '+i.self()+'.w:after {\n content: "\\25B6";\n margin: -7px 0 0 0;\n top: 50%;\n left: 100%;\n } \n '};var T={n:o,s:a,e:u,w:s,nw:l,ne:c,sw:f,se:h},I=Object.keys(T);return i}var Sn="http://www.w3.org/1999/xhtml",Cn={svg:"http://www.w3.org/2000/svg",xhtml:Sn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Pn=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Cn.hasOwnProperty(n)?{space:Cn[n],local:t}:t},Tn=function(t){var r=Pn(t);return(r.local?e:n)(r)},In=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var qn=document.documentElement;if(!qn.matches){var zn=qn.webkitMatchesSelector||qn.msMatchesSelector||qn.mozMatchesSelector||qn.oMatchesSelector;In=function(t){return function(){return zn.call(this,t)}}}}var On=In,Rn={},Vn=null;if("undefined"!=typeof document){"onmouseenter"in document.documentElement||(Rn={mouseenter:"mouseover",mouseleave:"mouseout"})}var Xn=function(t,n,e){var r,i,s=this,l=o(t+""),c=l.length;if(!(arguments.length<2)){for(f=n?u:a,null==e&&(e=!1),r=0;r<c;++r)s.each(f(l[r],n,e));return this}var f=this.node().__on;if(f)for(var h,p=0,d=f.length;p<d;++p)for(r=0,h=f[p];r<c;++r)if((i=l[r]).type===h.type&&i.name===h.name)return h.value},Ln=function(t){return null==t?s:function(){return this.querySelector(t)}},jn=function(t){"function"!=typeof t&&(t=Ln(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a,u=n[i],s=u.length,l=r[i]=new Array(s),c=0;c<s;++c)(o=u[c])&&(a=t.call(o,o.__data__,c,u))&&("__data__"in o&&(a.__data__=o.__data__),l[c]=a);return new Y(r,this._parents)},Bn=function(t){return null==t?l:function(){return this.querySelectorAll(t)}},Wn=function(t){"function"!=typeof t&&(t=Bn(t));for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var a,u=n[o],s=u.length,l=0;l<s;++l)(a=u[l])&&(r.push(t.call(a,a.__data__,l,u)),i.push(a));return new Y(r,i)},Fn=function(t){"function"!=typeof t&&(t=On(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a=n[i],u=a.length,s=r[i]=[],l=0;l<u;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&s.push(o);return new Y(r,this._parents)},Hn=function(t){return new Array(t.length)},Dn=function(){return new Y(this._enter||this._groups.map(Hn),this._parents)};c.prototype={constructor:c,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 $n=function(t){return function(){return t}},Yn="$",Un=function(t,n){if(!t)return y=new Array(this.size()),l=-1,this.each(function(t){y[++l]=t}),y;var e=n?h:f,r=this._parents,i=this._groups;"function"!=typeof t&&(t=$n(t));for(var o=i.length,a=new Array(o),u=new Array(o),s=new Array(o),l=0;l<o;++l){var c=r[l],p=i[l],d=p.length,y=t.call(c,c&&c.__data__,l,r),g=y.length,v=u[l]=new Array(g),m=a[l]=new Array(g);e(c,p,v,m,s[l]=new Array(d),y,n);for(var w,_,b=0,x=0;b<g;++b)if(w=v[b]){for(b>=x&&(x=b+1);!(_=m[x])&&++x<g;);w._next=_||null}}return a=new Y(a,r),a._enter=u,a._exit=s,a},Gn=function(){return new Y(this._exit||this._groups.map(Hn),this._parents)},Jn=function(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var s,l=n[u],c=e[u],f=l.length,h=a[u]=new Array(f),p=0;p<f;++p)(s=l[p]||c[p])&&(h[p]=s);for(;u<r;++u)a[u]=n[u];return new Y(a,this._parents)},Kn=function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},Qn=function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=p);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var a,u=e[o],s=u.length,l=i[o]=new Array(s),c=0;c<s;++c)(a=u[c])&&(l[c]=a);l.sort(n)}return new Y(i,this._parents).order()},Zn=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},te=function(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t},ne=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 a=r[i];if(a)return a}return null},ee=function(){var t=0;return this.each(function(){++t}),t},re=function(){return!this.node()},ie=function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],a=0,u=o.length;a<u;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},oe=function(t,n){var e=Pn(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?y:d:"function"==typeof n?e.local?w:m:e.local?v:g)(e,n))},ae=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView},ue=function(t,n,e){var r;return arguments.length>1?this.each((null==n?_:"function"==typeof n?x:b)(t,n,null==e?"":e)):ae(r=this.node()).getComputedStyle(r,null).getPropertyValue(t)},se=function(t,n){return arguments.length>1?this.each((null==n?k:"function"==typeof n?M:N)(t,n)):this.node()[t]};S.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 le=function(t,n){var e=A(t+"");if(arguments.length<2){for(var r=E(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?q:n?T:I)(e,n))},ce=function(t){return arguments.length?this.each(null==t?z:("function"==typeof t?R:O)(t)):this.node().textContent},fe=function(t){return arguments.length?this.each(null==t?V:("function"==typeof t?L:X)(t)):this.node().innerHTML},he=function(){return this.each(j)},pe=function(){return this.each(B)},de=function(t){var n="function"==typeof t?t:Tn(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},ye=function(t,n){var e="function"==typeof t?t:Tn(t),r=null==n?W:"function"==typeof n?n:Ln(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})},ge=function(){return this.each(F)},ve=function(t){return arguments.length?this.property("__data__",t):this.node().__data__},me=function(t,n){return this.each(("function"==typeof n?$:D)(t,n))},we=[null];Y.prototype=U.prototype={constructor:Y,select:jn,selectAll:Wn,filter:Fn,data:Un,enter:Dn,exit:Gn,merge:Jn,order:Kn,sort:Qn,call:Zn,nodes:te,node:ne,size:ee,empty:re,each:ie,attr:oe,style:ue,property:se,classed:le,text:ce,html:fe,raise:he,lower:pe,append:de,insert:ye,remove:ge,datum:ve,on:Xn,dispatch:me};var _e=function(t){return"string"==typeof t?new Y([[document.querySelector(t)]],[document.documentElement]):new Y([[t]],we)},be={value:function(){}};J.prototype=G.prototype={constructor:J,on:function(t,n){var e,r=this._,i=K(t+"",r),o=-1,a=i.length;{if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o<a;)if(e=(t=i[o]).type)r[e]=Z(r[e],t.name,n);else if(null==n)for(e in r)r[e]=Z(r[e],t.name,null);return this}for(;++o<a;)if((e=(t=i[o]).type)&&(e=Q(r[e],t.name)))return e}},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new J(t)},call:function(t,n){var e=arguments;if((r=arguments.length-2)>0)for(var r,i,o=new Array(r),a=0;a<r;++a)o[a]=e[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(i=this._[t],a=0,r=i.length;a<r;++a)i[a].value.apply(n,o)},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 xe,ke,Ne=0,Me=0,Ae=0,Ee=1e3,Se=0,Ce=0,Pe=0,Te="object"==typeof performance&&performance.now?performance:Date,Ie="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};et.prototype=rt.prototype={constructor:et,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?tt():+e)+(null==n?0:+n),this._next||ke===this||(ke?ke._next=this:xe=this,ke=this),this._call=t,this._time=e,st()},stop:function(){this._call&&(this._call=null,this._time=1/0,st())}};var qe=function(t,n,e){var r=new et;return n=null==n?0:+n,r.restart(function(e){r.stop(),t(e+n)},n,e),r},ze=G("start","end","interrupt"),Oe=[],Re=0,Ve=1,Xe=2,Le=3,je=4,Be=5,We=6,Fe=function(t,n,e,r,i,o){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};ht(t,e,{name:n,index:r,group:i,on:ze,tween:Oe,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Re})},He=function(t,n){var e,r,i,o=t.__transition,a=!0;if(o){n=null==n?null:n+"" | ||
;for(i in o)(e=o[i]).name===n?(r=e.state>Xe&&e.state<Be,e.state=We,e.timer.stop(),r&&e.on.call("interrupt",t,t.__data__,e.index,e.group),delete o[i]):a=!1;a&&delete t.__transition}},De=function(t){return this.each(function(){He(this,t)})},$e=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t},Ye="\\s*([+-]?\\d+)\\s*",Ue="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ge="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Je=/^#([0-9a-f]{3})$/,Ke=/^#([0-9a-f]{6})$/,Qe=new RegExp("^rgb\\("+[Ye,Ye,Ye]+"\\)$"),Ze=new RegExp("^rgb\\("+[Ge,Ge,Ge]+"\\)$"),tr=new RegExp("^rgba\\("+[Ye,Ye,Ye,Ue]+"\\)$"),nr=new RegExp("^rgba\\("+[Ge,Ge,Ge,Ue]+"\\)$"),er=new RegExp("^hsl\\("+[Ue,Ge,Ge]+"\\)$"),rr=new RegExp("^hsla\\("+[Ue,Ge,Ge,Ue]+"\\)$"),ir={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};$e(dt,yt,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),$e(_t,wt,pt(dt,{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 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),$e(Nt,kt,pt(dt,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Nt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Nt(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(Mt(t>=240?t-240:t+120,i,r),Mt(t,i,r),Mt(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var or=Math.PI/180,ar=180/Math.PI,ur=.95047,sr=1,lr=1.08883,cr=4/29,fr=6/29,hr=3*fr*fr,pr=fr*fr*fr;$e(St,Et,pt(dt,{brighter:function(t){return new St(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new St(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return t=sr*Pt(t),n=ur*Pt(n),e=lr*Pt(e),new _t(Tt(3.2404542*n-1.5371385*t-.4985314*e),Tt(-.969266*n+1.8760108*t+.041556*e),Tt(.0556434*n-.2040259*t+1.0572252*e),this.opacity)}})),$e(Ot,zt,pt(dt,{brighter:function(t){return new Ot(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Ot(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return At(this).rgb()}}));var dr=-.14861,yr=1.78277,gr=-.29227,vr=-.90649,mr=1.97294,wr=mr*vr,_r=mr*yr,br=yr*gr-vr*dr;$e(Xt,Vt,pt(dt,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Xt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Xt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*or,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*(dr*r+yr*i)),255*(n+e*(gr*r+vr*i)),255*(n+e*(mr*r)),this.opacity)}}));var xr,kr,Nr,Mr,Ar=function(t){return function(){return t}},Er=function t(n){function e(t,n){var e=r((t=wt(t)).r,(n=wt(n)).r),i=r(t.g,n.g),o=r(t.b,n.b),a=Wt(t.opacity,n.opacity);return function(n){return t.r=e(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}var r=Bt(n);return e.gamma=t,e}(1),Sr=function(t,n){return t=+t,n-=t,function(e){return t+n*e}},Cr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Pr=new RegExp(Cr.source,"g"),Tr=function(t,n){var e,r,i,o=Cr.lastIndex=Pr.lastIndex=0,a=-1,u=[],s=[];for(t+="",n+="";(e=Cr.exec(t))&&(r=Pr.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,s.push({i:a,x:Sr(e,r)})),o=Pr.lastIndex;return o<n.length&&(i=n.slice(o),u[a]?u[a]+=i:u[++a]=i),u.length<2?s[0]?Ht(s[0].x):Ft(n):(n=s.length,function(t){for(var e,r=0;r<n;++r)u[(e=s[r]).i]=e.x(t);return u.join("")})},Ir=180/Math.PI,qr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},zr=function(t,n,e,r,i,o){var a,u,s;return(a=Math.sqrt(t*t+n*n))&&(t/=a,n/=a),(s=t*e+n*r)&&(e-=t*s,r-=n*s),(u=Math.sqrt(e*e+r*r))&&(e/=u,r/=u,s/=u),t*r<n*e&&(t=-t,n=-n,s=-s,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*Ir,skewX:Math.atan(s)*Ir,scaleX:a,scaleY:u}},Or=Yt(Dt,"px, ","px)","deg)"),Rr=Yt($t,", ",")",")"),Vr=function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=ft(this.node(),e).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?Ut:Gt)(e,t,n))},Xr=function(t,n){var e;return("number"==typeof n?Sr:n instanceof yt?Er:(e=yt(n))?(n=e,Er):Tr)(t,n)},Lr=function(t,n){var e=Pn(t),r="transform"===e?Rr:Xr;return this.attrTween(t,"function"==typeof n?(e.local?en:nn)(e,r,Jt(this,"attr."+t,n)):null==n?(e.local?Qt:Kt)(e):(e.local?tn:Zt)(e,r,n+""))},jr=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=Pn(t);return this.tween(e,(r.local?rn:on)(r,n))},Br=function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?an:un)(n,t)):ft(this.node(),n).delay},Wr=function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?sn:ln)(n,t)):ft(this.node(),n).duration},Fr=function(t){var n=this._id;return arguments.length?this.each(cn(n,t)):ft(this.node(),n).ease},Hr=function(t){"function"!=typeof t&&(t=On(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a=n[i],u=a.length,s=r[i]=[],l=0;l<u;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&s.push(o);return new bn(r,this._parents,this._name,this._id)},Dr=function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var s,l=n[u],c=e[u],f=l.length,h=a[u]=new Array(f),p=0;p<f;++p)(s=l[p]||c[p])&&(h[p]=s);for(;u<r;++u)a[u]=n[u];return new bn(a,this._parents,this._name,this._id)},$r=function(t,n){var e=this._id;return arguments.length<2?ft(this.node(),e).on.on(t):this.each(hn(e,t,n))},Yr=function(){return this.on("end.remove",pn(this._id))},Ur=function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=Ln(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var u,s,l=r[a],c=l.length,f=o[a]=new Array(c),h=0;h<c;++h)(u=l[h])&&(s=t.call(u,u.__data__,h,l))&&("__data__"in u&&(s.__data__=u.__data__),f[h]=s,Fe(f[h],n,e,h,f,ft(u,e)));return new bn(o,this._parents,n,e)},Gr=function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=Bn(t));for(var r=this._groups,i=r.length,o=[],a=[],u=0;u<i;++u)for(var s,l=r[u],c=l.length,f=0;f<c;++f)if(s=l[f]){for(var h,p=t.call(s,s.__data__,f,l),d=ft(s,e),y=0,g=p.length;y<g;++y)(h=p[y])&&Fe(h,n,e,y,p,d);o.push(p),a.push(s)}return new bn(o,a,n,e)},Jr=U.prototype.constructor,Kr=function(){return new Jr(this._groups,this._parents)},Qr=function(t,n,e){var r="transform"==(t+="")?Or:Xr;return null==n?this.styleTween(t,dn(t,r)).on("end.style."+t,yn(t)):this.styleTween(t,"function"==typeof n?vn(t,r,Jt(this,"style."+t,n)):gn(t,r,n+""),e)},Zr=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,mn(t,n,null==e?"":e))},ti=function(t){return this.tween("text","function"==typeof t?_n(Jt(this,"text",t)):wn(null==t?"":t+""))},ni=function(){for(var t=this._name,n=this._id,e=kn(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],s=u.length,l=0;l<s;++l)if(a=u[l]){var c=ft(a,n);Fe(a,t,e,l,u,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new bn(r,this._parents,t,e)},ei=0,ri=U.prototype;bn.prototype=xn.prototype={constructor:bn,select:Ur,selectAll:Gr,filter:Hr,merge:Dr,selection:Kr,transition:ni,call:ri.call,nodes:ri.nodes,node:ri.node,size:ri.size,empty:ri.empty,each:ri.each,on:$r,attr:Lr,attrTween:jr,style:Qr,styleTween:Zr,text:ti,remove:Yr,tween:Vr,delay:Br,duration:Wr,ease:Fr};var ii={time:null,delay:0,duration:250,ease:Nn},oi=function(t){var n,e;t instanceof bn?(n=t._id,t=t._name):(n=kn(),(e=ii).time=tt(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],s=u.length,l=0;l<s;++l)(a=u[l])&&Fe(a,t,n,l,u,e||Mn(a,n));return new bn(r,this._parents,t,n)};U.prototype.interrupt=De,U.prototype.transition=oi;var ai={light:{background:"#ffffff",text:"#262626",axis:"#262626",grid:"#e0e0e0",highlight:"rgba(225,16,16,0.5)",lowlight:"rgba(127,127,127,0.3)",shadow:"rgba(127,127,127,0.4)",fillOpacity:.33,negative:{background:"rgba(0, 0, 0, 0.66)",text:"#ffffff"}},dark:{background:"#333333",text:"#ffffff",axis:"#ffffff",grid:"#6d6d6d",highlight:"rgba(225,16,16,0.5)",lowlight:"rgba(127,127,127,0.5)",shadow:"rgba(255,255,255,0.4)",fillOpacity:.33,negative:{background:"rgba(255, 255, 255, 0.85)",text:"#262626"}}},ui=(function(t,n){n={exports:{}},t(n,n.exports),n.exports}(function(t){function n(t,n){return 1-3*n+3*t}function e(t,n){return 3*n-6*t}function r(t){return 3*t}function i(t,i,o){return((n(i,o)*t+e(i,o))*t+r(i))*t}function o(t,i,o){return 3*n(i,o)*t*t+2*e(i,o)*t+r(i)}function a(t,n,e,r,o){var a,u,s=0;do{u=n+(e-n)/2,a=i(u,r,o)-t,a>0?e=u:n=u}while(Math.abs(a)>l&&++s<c);return u}function u(t,n,e,r){for(var a=0;a<s;++a){var u=o(n,e,r);if(0===u)return n;n-=(i(n,e,r)-t)/u}return n}var s=4,l=1e-7,c=10,f=11,h=1/(f-1),p="function"==typeof Float32Array;t.exports=function(t,n,e,r){function s(n){for(var r=0,i=1,s=f-1;i!==s&&l[i]<=n;++i)r+=h;--i;var c=(n-l[i])/(l[i+1]-l[i]),p=r+c*h,d=o(p,t,e);return d>=.001?u(n,p,t,e):0===d?p:a(n,r,r+h,t,e)}if(!(0<=t&&t<=1&&0<=e&&e<=1))throw new Error("bezier x values must be in [0, 1] range");var l=p?new Float32Array(f):new Array(f);if(t!==n||e!==r)for(var c=0;c<f;++c)l[c]=i(c*h,t,e);return function(o){return t===n&&e===r?o:0===o?0:1===o?1:i(s(o),n,r)}}}),'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'),si={fixed:{cssImport:"@import url(https://fonts.googleapis.com/css?family=Source+Code+Pro:300,500);",weightMonochrome:300,weightColor:500,sizeForWidth:An,family:'"Source Code Pro", Consolas, "Liberation Mono", Menlo, Courier, monospace'},variable:{cssImport:"@import url(https://fonts.googleapis.com/css?family=Raleway:400,500);",weightMonochrome:400,weightColor:500,sizeForWidth:An,family:'"Raleway", "Trebuchet MS", '+ui},brand:{cssImport:"@import url(https://fonts.googleapis.com/css?family=Electrolize);",weightMonochrome:400,weightColor:400,sizeForWidth:An,family:'"Electrolize", '+ui}},li=800;t.version="0.4.0",t.body=En,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=d3-rs-tip.umd-es2015.min.js.map |
@@ -50,7 +50,7 @@ 'use strict'; | ||
return rollup({ | ||
moduleName: outputFilename.replace(/-/g, '_'), | ||
name: outputFilename.replace(/-/g, '_'), | ||
globals: globalMap, | ||
entry: 'index.js', | ||
input: 'index.js', | ||
format: 'umd', | ||
sourceMap: true, | ||
sourcemap: true, | ||
plugins: [ | ||
@@ -57,0 +57,0 @@ json({ |
{ | ||
"name": "@redsift/d3-rs-tip", | ||
"version": "0.3.3", | ||
"version": "0.4.0", | ||
"description": "Tip for graphs using D3v4.", | ||
@@ -24,3 +24,3 @@ "keywords": [ | ||
"build": "gulp -o d3-rs-tip build", | ||
"pretest": "npm outdated && npm run build", | ||
"pretest": "(npm outdated || true) && npm run build", | ||
"test": "tape 'test/**/*-test.js' && eslint index.js src", | ||
@@ -27,0 +27,0 @@ "prepublish": "npm run build" |
@@ -40,3 +40,4 @@ /** | ||
transition= false, | ||
style = undefined; | ||
style = undefined, | ||
zIndex = 16777271; | ||
@@ -148,2 +149,3 @@ function initNode() { | ||
.style('left', (coords.left + poffset[1]) - parentCoords.left + 'px') | ||
.style('z-index', zIndex); | ||
@@ -261,2 +263,5 @@ if(standalone){ | ||
_impl.zIndex = function(_) { | ||
return arguments.length ? (zIndex = _, _impl) : zIndex; | ||
} | ||
@@ -263,0 +268,0 @@ _impl.parent = function(v) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
334957
12
3437
1