UNPKG

dc-vertical-stacked-bar-chart

Version:
2 lines 440 kB
/*! For license information please see index.js.LICENSE.txt */ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var i in n)("object"==typeof exports?exports:t)[i]=n[i]}}(this,(function(){return(()=>{var t={865:(t,e,n)=>{"use strict";function i(t,e){let n,i;if(void 0===e)for(const e of t)null!=e&&(void 0===n?e>=e&&(n=i=e):(n>e&&(n=e),i<e&&(i=e)));else{let r=-1;for(let s of t)null!=(s=e(s,++r,t))&&(void 0===n?s>=s&&(n=i=s):(n>s&&(n=s),i<s&&(i=s)))}return[n,i]}n.d(e,{Z:()=>i})},604:(t,e,n)=>{"use strict";n.d(e,{LL:()=>_,y4:()=>g,Kh:()=>d,F5:()=>f});var i=Array.prototype.slice;function r(t){return t}var s=1e-6;function a(t){return"translate("+t+",0)"}function o(t){return"translate(0,"+t+")"}function l(t){return e=>+t(e)}function h(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function c(){return!this.__axis}function u(t,e){var n=[],u=null,f=null,d=6,_=6,g=3,p="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,y=1===t||4===t?-1:1,m=4===t||2===t?"x":"y",b=1===t||3===t?a:o;function v(i){var a=null==u?e.ticks?e.ticks.apply(e,n):e.domain():u,o=null==f?e.tickFormat?e.tickFormat.apply(e,n):r:f,v=Math.max(d,0)+g,x=e.range(),w=+x[0]+p,A=+x[x.length-1]+p,M=(e.bandwidth?h:l)(e.copy(),p),k=i.selection?i.selection():i,S=k.selectAll(".domain").data([null]),C=k.selectAll(".tick").data(a,e).order(),T=C.exit(),E=C.enter().append("g").attr("class","tick"),R=C.select("line"),N=C.select("text");S=S.merge(S.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),C=C.merge(E),R=R.merge(E.append("line").attr("stroke","currentColor").attr(m+"2",y*d)),N=N.merge(E.append("text").attr("fill","currentColor").attr(m,y*v).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),i!==k&&(S=S.transition(i),C=C.transition(i),R=R.transition(i),N=N.transition(i),T=T.transition(i).attr("opacity",s).attr("transform",(function(t){return isFinite(t=M(t))?b(t+p):this.getAttribute("transform")})),E.attr("opacity",s).attr("transform",(function(t){var e=this.parentNode.__axis;return b((e&&isFinite(e=e(t))?e:M(t))+p)}))),T.remove(),S.attr("d",4===t||2===t?_?"M"+y*_+","+w+"H"+p+"V"+A+"H"+y*_:"M"+p+","+w+"V"+A:_?"M"+w+","+y*_+"V"+p+"H"+A+"V"+y*_:"M"+w+","+p+"H"+A),C.attr("opacity",1).attr("transform",(function(t){return b(M(t)+p)})),R.attr(m+"2",y*d),N.attr(m,y*v).text(o),k.filter(c).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),k.each((function(){this.__axis=M}))}return v.scale=function(t){return arguments.length?(e=t,v):e},v.ticks=function(){return n=i.call(arguments),v},v.tickArguments=function(t){return arguments.length?(n=null==t?[]:i.call(t),v):n.slice()},v.tickValues=function(t){return arguments.length?(u=null==t?null:i.call(t),v):u&&u.slice()},v.tickFormat=function(t){return arguments.length?(f=t,v):f},v.tickSize=function(t){return arguments.length?(d=_=+t,v):d},v.tickSizeInner=function(t){return arguments.length?(d=+t,v):d},v.tickSizeOuter=function(t){return arguments.length?(_=+t,v):_},v.tickPadding=function(t){return arguments.length?(g=+t,v):g},v.offset=function(t){return arguments.length?(p=+t,v):p},v}function f(t){return u(1,t)}function d(t){return u(2,t)}function _(t){return u(3,t)}function g(t){return u(4,t)}},313:(t,e,n)=>{"use strict";function i(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}n.d(e,{Z:()=>i})},789:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(888),r=n(986);function s(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===r.P&&e.documentElement.namespaceURI===r.P?e.createElement(t):e.createElementNS(n,t)}}function a(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function o(t){var e=(0,i.Z)(t);return(e.local?a:s)(e)}},83:(t,e,n)=>{"use strict";function i(t){return function(){return this.matches(t)}}function r(t){return function(e){return e.matches(t)}}n.d(e,{Z:()=>i,P:()=>r})},888:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(986);function r(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),i.Z.hasOwnProperty(e)?{space:i.Z[e],local:t}:t}},986:(t,e,n)=>{"use strict";n.d(e,{P:()=>i,Z:()=>r});var i="http://www.w3.org/1999/xhtml";const r={svg:"http://www.w3.org/2000/svg",xhtml:i,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},17:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(434);function r(t){return"string"==typeof t?new i.Y1([[document.querySelector(t)]],[document.documentElement]):new i.Y1([[t]],i.Jz)}},434:(t,e,n)=>{"use strict";n.d(e,{Y1:()=>rt,ZP:()=>at,Jz:()=>it});var i=n(634),r=n(313),s=n(545),a=n(83),o=Array.prototype.find;function l(){return this.firstElementChild}var h=Array.prototype.filter;function c(){return this.children}function u(t){return new Array(t.length)}function f(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function d(t){return function(){return t}}function _(t,e,n,i,r,s){for(var a,o=0,l=e.length,h=s.length;o<h;++o)(a=e[o])?(a.__data__=s[o],i[o]=a):n[o]=new f(t,s[o]);for(;o<l;++o)(a=e[o])&&(r[o]=a)}function g(t,e,n,i,r,s,a){var o,l,h,c=new Map,u=e.length,d=s.length,_=new Array(u);for(o=0;o<u;++o)(l=e[o])&&(_[o]=h=a.call(l,l.__data__,o,e)+"",c.has(h)?r[o]=l:c.set(h,l));for(o=0;o<d;++o)h=a.call(t,s[o],o,s)+"",(l=c.get(h))?(i[o]=l,l.__data__=s[o],c.delete(h)):n[o]=new f(t,s[o]);for(o=0;o<u;++o)(l=e[o])&&c.get(_[o])===l&&(r[o]=l)}function p(t){return t.__data__}function y(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}f.prototype={constructor:f,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var m=n(888);function b(t){return function(){this.removeAttribute(t)}}function v(t){return function(){this.removeAttributeNS(t.space,t.local)}}function x(t,e){return function(){this.setAttribute(t,e)}}function w(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function A(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function M(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var k=n(339);function S(t){return function(){delete this[t]}}function C(t,e){return function(){this[t]=e}}function T(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function E(t){return t.trim().split(/^|\s+/)}function R(t){return t.classList||new N(t)}function N(t){this._node=t,this._names=E(t.getAttribute("class")||"")}function D(t,e){for(var n=R(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function L(t,e){for(var n=R(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function P(t){return function(){D(this,t)}}function O(t){return function(){L(this,t)}}function z(t,e){return function(){(e.apply(this,arguments)?D:L)(this,t)}}function B(){this.textContent=""}function F(t){return function(){this.textContent=t}}function H(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function $(){this.innerHTML=""}function Y(t){return function(){this.innerHTML=t}}function I(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function G(){this.nextSibling&&this.parentNode.appendChild(this)}function U(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}N.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var q=n(789);function V(){return null}function Z(){var t=this.parentNode;t&&t.removeChild(this)}function j(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function X(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function W(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function K(t){return function(){var e=this.__on;if(e){for(var n,i=0,r=-1,s=e.length;i<s;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++r]=n:this.removeEventListener(n.type,n.listener,n.options);++r?e.length=r:delete this.__on}}}function J(t,e,n){return function(){var i,r=this.__on,s=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(r)for(var a=0,o=r.length;a<o;++a)if((i=r[a]).type===t.type&&i.name===t.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=n),void(i.value=e);this.addEventListener(t.type,s,n),i={type:t.type,name:t.name,value:e,listener:s,options:n},r?r.push(i):this.__on=[i]}}var Q=n(21);function tt(t,e,n){var i=(0,Q.Z)(t),r=i.CustomEvent;"function"==typeof r?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function et(t,e){return function(){return tt(this,t,e)}}function nt(t,e){return function(){return tt(this,t,e.apply(this,arguments))}}var it=[null];function rt(t,e){this._groups=t,this._parents=e}function st(){return new rt([[document.documentElement]],it)}rt.prototype=st.prototype={constructor:rt,select:function(t){"function"!=typeof t&&(t=(0,i.Z)(t));for(var e=this._groups,n=e.length,r=new Array(n),s=0;s<n;++s)for(var a,o,l=e[s],h=l.length,c=r[s]=new Array(h),u=0;u<h;++u)(a=l[u])&&(o=t.call(a,a.__data__,u,l))&&("__data__"in a&&(o.__data__=a.__data__),c[u]=o);return new rt(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);return null==e?[]:(0,r.Z)(e)}}(t):(0,s.Z)(t);for(var e=this._groups,n=e.length,i=[],a=[],o=0;o<n;++o)for(var l,h=e[o],c=h.length,u=0;u<c;++u)(l=h[u])&&(i.push(t.call(l,l.__data__,u,h)),a.push(l));return new rt(i,a)},selectChild:function(t){return this.select(null==t?l:function(t){return function(){return o.call(this.children,t)}}("function"==typeof t?t:(0,a.P)(t)))},selectChildren:function(t){return this.selectAll(null==t?c:function(t){return function(){return h.call(this.children,t)}}("function"==typeof t?t:(0,a.P)(t)))},filter:function(t){"function"!=typeof t&&(t=(0,a.Z)(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var s,o=e[r],l=o.length,h=i[r]=[],c=0;c<l;++c)(s=o[c])&&t.call(s,s.__data__,c,o)&&h.push(s);return new rt(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,p);var n=e?g:_,i=this._parents,s=this._groups;"function"!=typeof t&&(t=d(t));for(var a=s.length,o=new Array(a),l=new Array(a),h=new Array(a),c=0;c<a;++c){var u=i[c],f=s[c],y=f.length,m=(0,r.Z)(t.call(u,u&&u.__data__,c,i)),b=m.length,v=l[c]=new Array(b),x=o[c]=new Array(b),w=h[c]=new Array(y);n(u,f,v,x,w,m,e);for(var A,M,k=0,S=0;k<b;++k)if(A=v[k]){for(k>=S&&(S=k+1);!(M=x[S])&&++S<b;);A._next=M||null}}return(o=new rt(o,i))._enter=l,o._exit=h,o},enter:function(){return new rt(this._enter||this._groups.map(u),this._parents)},exit:function(){return new rt(this._exit||this._groups.map(u),this._parents)},join:function(t,e,n){var i=this.enter(),r=this,s=this.exit();return i="function"==typeof t?t(i):i.append(t+""),null!=e&&(r=e(r)),null==n?s.remove():n(s),i&&r?i.merge(r).order():r},merge:function(t){if(!(t instanceof rt))throw new Error("invalid merge");for(var e=this._groups,n=t._groups,i=e.length,r=n.length,s=Math.min(i,r),a=new Array(i),o=0;o<s;++o)for(var l,h=e[o],c=n[o],u=h.length,f=a[o]=new Array(u),d=0;d<u;++d)(l=h[d]||c[d])&&(f[d]=l);for(;o<i;++o)a[o]=e[o];return new rt(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,r=t[e],s=r.length-1,a=r[s];--s>=0;)(i=r[s])&&(a&&4^i.compareDocumentPosition(a)&&a.parentNode.insertBefore(i,a),a=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=y);for(var n=this._groups,i=n.length,r=new Array(i),s=0;s<i;++s){for(var a,o=n[s],l=o.length,h=r[s]=new Array(l),c=0;c<l;++c)(a=o[c])&&(h[c]=a);h.sort(e)}return new rt(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,s=i.length;r<s;++r){var a=i[r];if(a)return a}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r,s=e[n],a=0,o=s.length;a<o;++a)(r=s[a])&&t.call(r,r.__data__,a,s);return this},attr:function(t,e){var n=(0,m.Z)(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?v:b:"function"==typeof e?n.local?M:A:n.local?w:x)(n,e))},style:k.Z,property:function(t,e){return arguments.length>1?this.each((null==e?S:"function"==typeof e?T:C)(t,e)):this.node()[t]},classed:function(t,e){var n=E(t+"");if(arguments.length<2){for(var i=R(this.node()),r=-1,s=n.length;++r<s;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"==typeof e?z:e?P:O)(n,e))},text:function(t){return arguments.length?this.each(null==t?B:("function"==typeof t?H:F)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?$:("function"==typeof t?I:Y)(t)):this.node().innerHTML},raise:function(){return this.each(G)},lower:function(){return this.each(U)},append:function(t){var e="function"==typeof t?t:(0,q.Z)(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:(0,q.Z)(t),r=null==e?V:"function"==typeof e?e:(0,i.Z)(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Z)},clone:function(t){return this.select(t?X:j)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,r,s=W(t+""),a=s.length;if(!(arguments.length<2)){for(o=e?J:K,i=0;i<a;++i)this.each(o(s[i],e,n));return this}var o=this.node().__on;if(o)for(var l,h=0,c=o.length;h<c;++h)for(i=0,l=o[h];i<a;++i)if((r=s[i]).type===l.type&&r.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?nt:et)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i,r=t[e],s=0,a=r.length;s<a;++s)(i=r[s])&&(yield i)}};const at=st},339:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o,S:()=>l});var i=n(21);function r(t){return function(){this.style.removeProperty(t)}}function s(t,e,n){return function(){this.style.setProperty(t,e,n)}}function a(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function o(t,e,n){return arguments.length>1?this.each((null==e?r:"function"==typeof e?a:s)(t,e,null==n?"":n)):l(this.node(),t)}function l(t,e){return t.style.getPropertyValue(e)||(0,i.Z)(t).getComputedStyle(t,null).getPropertyValue(e)}},634:(t,e,n)=>{"use strict";function i(){}function r(t){return null==t?i:function(){return this.querySelector(t)}}n.d(e,{Z:()=>r})},545:(t,e,n)=>{"use strict";function i(){return[]}function r(t){return null==t?i:function(){return this.querySelectorAll(t)}}n.d(e,{Z:()=>r})},21:(t,e,n)=>{"use strict";function i(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}n.d(e,{Z:()=>i})},530:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Adder:()=>w,Delaunay:()=>Ws,FormatSpecifier:()=>tl,InternMap:()=>k,InternSet:()=>S,Voronoi:()=>Us,active:()=>ki,arc:()=>px,area:()=>Mx,areaRadial:()=>Lx,ascending:()=>r,autoType:()=>Sa,axisBottom:()=>Yt.LL,axisLeft:()=>Yt.y4,axisRight:()=>Yt.Kh,axisTop:()=>Yt.F5,bin:()=>tt,bisect:()=>u,bisectCenter:()=>c,bisectLeft:()=>h,bisectRight:()=>l,bisector:()=>s,blob:()=>ao,brush:()=>nr,brushSelection:()=>Qi,brushX:()=>tr,brushY:()=>er,buffer:()=>lo,chord:()=>_r,chordDirected:()=>pr,chordTranspose:()=>gr,cluster:()=>fd,color:()=>me,contourDensity:()=>Ts,contours:()=>ws,count:()=>f,create:()=>$v,creator:()=>Hv.Z,cross:()=>p,csv:()=>_o,csvFormat:()=>da,csvFormatBody:()=>_a,csvFormatRow:()=>pa,csvFormatRows:()=>ga,csvFormatValue:()=>ya,csvParse:()=>ua,csvParseRows:()=>fa,cubehelix:()=>fs,cumsum:()=>y,curveBasis:()=>fw,curveBasisClosed:()=>_w,curveBasisOpen:()=>pw,curveBumpX:()=>mw,curveBumpY:()=>bw,curveBundle:()=>xw,curveCardinal:()=>Mw,curveCardinalClosed:()=>Sw,curveCardinalOpen:()=>Tw,curveCatmullRom:()=>Nw,curveCatmullRomClosed:()=>Lw,curveCatmullRomOpen:()=>Ow,curveLinear:()=>vx,curveLinearClosed:()=>Bw,curveMonotoneX:()=>qw,curveMonotoneY:()=>Vw,curveNatural:()=>Xw,curveStep:()=>Kw,curveStepAfter:()=>Qw,curveStepBefore:()=>Jw,descending:()=>m,deviation:()=>v,difference:()=>Pt,disjoint:()=>Ot,dispatch:()=>jt,drag:()=>ia,dragDisable:()=>Jt,dragEnable:()=>Qt,dsv:()=>fo,dsvFormat:()=>ha,easeBack:()=>to,easeBackIn:()=>Ja,easeBackInOut:()=>to,easeBackOut:()=>Qa,easeBounce:()=>Xa,easeBounceIn:()=>ja,easeBounceInOut:()=>Wa,easeBounceOut:()=>Xa,easeCircle:()=>Va,easeCircleIn:()=>Ua,easeCircleInOut:()=>Va,easeCircleOut:()=>qa,easeCubic:()=>xi,easeCubicIn:()=>bi,easeCubicInOut:()=>xi,easeCubicOut:()=>vi,easeElastic:()=>io,easeElasticIn:()=>no,easeElasticInOut:()=>ro,easeElasticOut:()=>io,easeExp:()=>Ga,easeExpIn:()=>Ya,easeExpInOut:()=>Ga,easeExpOut:()=>Ia,easeLinear:()=>Ta,easePoly:()=>Pa,easePolyIn:()=>Da,easePolyInOut:()=>Pa,easePolyOut:()=>La,easeQuad:()=>Na,easeQuadIn:()=>Ea,easeQuadInOut:()=>Na,easeQuadOut:()=>Ra,easeSin:()=>Ha,easeSinIn:()=>Ba,easeSinInOut:()=>Ha,easeSinOut:()=>Fa,every:()=>Tt,extent:()=>x.Z,fcumsum:()=>M,filter:()=>Rt,forceCenter:()=>Ao,forceCollide:()=>zo,forceLink:()=>Ho,forceManyBody:()=>qo,forceRadial:()=>Vo,forceSimulation:()=>Uo,forceX:()=>Zo,forceY:()=>jo,format:()=>sl,formatDefaultLocale:()=>cl,formatLocale:()=>hl,formatPrefix:()=>al,formatSpecifier:()=>Qo,fsum:()=>A,geoAlbers:()=>Cf,geoAlbersUsa:()=>Tf,geoArea:()=>_h,geoAzimuthalEqualArea:()=>Df,geoAzimuthalEqualAreaRaw:()=>Nf,geoAzimuthalEquidistant:()=>Pf,geoAzimuthalEquidistantRaw:()=>Lf,geoBounds:()=>Xh,geoCentroid:()=>oc,geoCircle:()=>mc,geoClipAntimeridian:()=>Ec,geoClipCircle:()=>Rc,geoClipExtent:()=>Fc,geoClipRectangle:()=>Bc,geoConicConformal:()=>$f,geoConicConformalRaw:()=>Hf,geoConicEqualArea:()=>Sf,geoConicEqualAreaRaw:()=>kf,geoConicEquidistant:()=>Uf,geoConicEquidistantRaw:()=>Gf,geoContains:()=>eu,geoDistance:()=>Vc,geoEqualEarth:()=>Kf,geoEqualEarthRaw:()=>Wf,geoEquirectangular:()=>If,geoEquirectangularRaw:()=>Yf,geoGnomonic:()=>Qf,geoGnomonicRaw:()=>Jf,geoGraticule:()=>ru,geoGraticule10:()=>su,geoIdentity:()=>td,geoInterpolate:()=>au,geoLength:()=>Gc,geoMercator:()=>zf,geoMercatorRaw:()=>Of,geoNaturalEarth1:()=>nd,geoNaturalEarth1Raw:()=>ed,geoOrthographic:()=>rd,geoOrthographicRaw:()=>id,geoPath:()=>hf,geoProjection:()=>wf,geoProjectionMutator:()=>Af,geoRotation:()=>gc,geoStereographic:()=>ad,geoStereographicRaw:()=>sd,geoStream:()=>Ul,geoTransform:()=>cf,geoTransverseMercator:()=>ld,geoTransverseMercatorRaw:()=>od,gray:()=>qr,greatest:()=>bt,greatestIndex:()=>vt,group:()=>D,groupSort:()=>I,groups:()=>L,hcl:()=>ts,hierarchy:()=>_d,histogram:()=>tt,hsl:()=>Ee,html:()=>xo,image:()=>po,index:()=>z,indexes:()=>B,interpolate:()=>Qe,interpolateArray:()=>qe,interpolateBasis:()=>Le,interpolateBasisClosed:()=>Pe,interpolateBlues:()=>fv,interpolateBrBG:()=>Mb,interpolateBuGn:()=>Ib,interpolateBuPu:()=>Ub,interpolateCividis:()=>Av,interpolateCool:()=>Sv,interpolateCubehelix:()=>k_,interpolateCubehelixDefault:()=>Mv,interpolateCubehelixLong:()=>S_,interpolateDate:()=>Ze,interpolateDiscrete:()=>f_,interpolateGnBu:()=>Vb,interpolateGreens:()=>_v,interpolateGreys:()=>pv,interpolateHcl:()=>w_,interpolateHclLong:()=>A_,interpolateHsl:()=>m_,interpolateHslLong:()=>b_,interpolateHue:()=>d_,interpolateInferno:()=>Bv,interpolateLab:()=>v_,interpolateMagma:()=>zv,interpolateNumber:()=>je,interpolateNumberArray:()=>Ge,interpolateObject:()=>Xe,interpolateOrRd:()=>jb,interpolateOranges:()=>wv,interpolatePRGn:()=>Sb,interpolatePiYG:()=>Tb,interpolatePlasma:()=>Fv,interpolatePuBu:()=>Jb,interpolatePuBuGn:()=>Wb,interpolatePuOr:()=>Rb,interpolatePuRd:()=>tv,interpolatePurples:()=>mv,interpolateRainbow:()=>Tv,interpolateRdBu:()=>Db,interpolateRdGy:()=>Pb,interpolateRdPu:()=>nv,interpolateRdYlBu:()=>zb,interpolateRdYlGn:()=>Fb,interpolateReds:()=>vv,interpolateRgb:()=>He,interpolateRgbBasis:()=>Ye,interpolateRgbBasisClosed:()=>Ie,interpolateRound:()=>__,interpolateSinebow:()=>Dv,interpolateSpectral:()=>$b,interpolateString:()=>Je,interpolateTransformCss:()=>On,interpolateTransformSvg:()=>zn,interpolateTurbo:()=>Lv,interpolateViridis:()=>Ov,interpolateWarm:()=>kv,interpolateYlGn:()=>av,interpolateYlGnBu:()=>rv,interpolateYlOrBr:()=>lv,interpolateYlOrRd:()=>cv,interpolateZoom:()=>p_,interrupt:()=>En,intersection:()=>Bt,interval:()=>bA,isoFormat:()=>yA,isoParse:()=>mA,json:()=>mo,lab:()=>Vr,lch:()=>Qr,least:()=>yt,leastIndex:()=>mt,line:()=>Ax,lineRadial:()=>Dx,linkHorizontal:()=>Yx,linkRadial:()=>Gx,linkVertical:()=>Ix,local:()=>Iv,map:()=>Nt,matcher:()=>ii.Z,max:()=>et,maxIndex:()=>ht,mean:()=>ct,median:()=>ut,merge:()=>ft,min:()=>nt,minIndex:()=>dt,namespace:()=>Bn.Z,namespaces:()=>Uv.Z,nice:()=>J,now:()=>_n,pack:()=>Hd,packEnclose:()=>vd,packSiblings:()=>Ld,pairs:()=>_t,partition:()=>qd,path:()=>Mr,permute:()=>$,pie:()=>Cx,piecewise:()=>C_,pointRadial:()=>Px,pointer:()=>en,pointers:()=>qv,polygonArea:()=>E_,polygonCentroid:()=>R_,polygonContains:()=>P_,polygonHull:()=>L_,polygonLength:()=>O_,precisionFixed:()=>ul,precisionPrefix:()=>fl,precisionRound:()=>dl,quadtree:()=>To,quantile:()=>st,quantileSorted:()=>at,quantize:()=>T_,quickselect:()=>it,radialArea:()=>Lx,radialLine:()=>Dx,randomBates:()=>I_,randomBernoulli:()=>q_,randomBeta:()=>j_,randomBinomial:()=>X_,randomCauchy:()=>K_,randomExponential:()=>G_,randomGamma:()=>Z_,randomGeometric:()=>V_,randomInt:()=>F_,randomIrwinHall:()=>Y_,randomLcg:()=>eg,randomLogNormal:()=>$_,randomLogistic:()=>J_,randomNormal:()=>H_,randomPareto:()=>U_,randomPoisson:()=>Q_,randomUniform:()=>B_,randomWeibull:()=>W_,range:()=>pt,reduce:()=>Dt,reverse:()=>Lt,rgb:()=>we,ribbon:()=>Or,ribbonArrow:()=>zr,rollup:()=>P,rollups:()=>O,scaleBand:()=>ag,scaleDiverging:()=>ab,scaleDivergingLog:()=>ob,scaleDivergingPow:()=>hb,scaleDivergingSqrt:()=>cb,scaleDivergingSymlog:()=>lb,scaleIdentity:()=>xg,scaleImplicit:()=>rg,scaleLinear:()=>vg,scaleLog:()=>Rg,scaleOrdinal:()=>sg,scalePoint:()=>lg,scalePow:()=>Hg,scaleQuantile:()=>Ug,scaleQuantize:()=>qg,scaleRadial:()=>Gg,scaleSequential:()=>Qm,scaleSequentialLog:()=>tb,scaleSequentialPow:()=>nb,scaleSequentialQuantile:()=>rb,scaleSequentialSqrt:()=>ib,scaleSequentialSymlog:()=>eb,scaleSqrt:()=>$g,scaleSymlog:()=>Pg,scaleThreshold:()=>Vg,scaleTime:()=>Xm,scaleUtc:()=>Wm,scan:()=>xt,schemeAccent:()=>db,schemeBlues:()=>uv,schemeBrBG:()=>Ab,schemeBuGn:()=>Yb,schemeBuPu:()=>Gb,schemeCategory10:()=>fb,schemeDark2:()=>_b,schemeGnBu:()=>qb,schemeGreens:()=>dv,schemeGreys:()=>gv,schemeOrRd:()=>Zb,schemeOranges:()=>xv,schemePRGn:()=>kb,schemePaired:()=>gb,schemePastel1:()=>pb,schemePastel2:()=>yb,schemePiYG:()=>Cb,schemePuBu:()=>Kb,schemePuBuGn:()=>Xb,schemePuOr:()=>Eb,schemePuRd:()=>Qb,schemePurples:()=>yv,schemeRdBu:()=>Nb,schemeRdGy:()=>Lb,schemeRdPu:()=>ev,schemeRdYlBu:()=>Ob,schemeRdYlGn:()=>Bb,schemeReds:()=>bv,schemeSet1:()=>mb,schemeSet2:()=>bb,schemeSet3:()=>vb,schemeSpectral:()=>Hb,schemeTableau10:()=>xb,schemeYlGn:()=>sv,schemeYlGnBu:()=>iv,schemeYlOrBr:()=>ov,schemeYlOrRd:()=>hv,select:()=>Xt.Z,selectAll:()=>Zv,selection:()=>sn.ZP,selector:()=>si.Z,selectorAll:()=>ai.Z,shuffle:()=>wt,shuffler:()=>At,some:()=>Et,sort:()=>Y,stack:()=>rA,stackOffsetDiverging:()=>aA,stackOffsetExpand:()=>sA,stackOffsetNone:()=>tA,stackOffsetSilhouette:()=>oA,stackOffsetWiggle:()=>lA,stackOrderAppearance:()=>hA,stackOrderAscending:()=>uA,stackOrderDescending:()=>dA,stackOrderInsideOut:()=>_A,stackOrderNone:()=>eA,stackOrderReverse:()=>gA,stratify:()=>Wd,style:()=>li.S,subset:()=>Ht,sum:()=>Mt,superset:()=>Ft,svg:()=>wo,symbol:()=>lw,symbolCircle:()=>Ux,symbolCross:()=>qx,symbolDiamond:()=>jx,symbolSquare:()=>Qx,symbolStar:()=>Jx,symbolTriangle:()=>ew,symbolWye:()=>aw,symbols:()=>ow,text:()=>co,thresholdFreedmanDiaconis:()=>ot,thresholdScott:()=>lt,thresholdSturges:()=>Q,tickFormat:()=>mg,tickIncrement:()=>W,tickStep:()=>K,ticks:()=>X,timeDay:()=>gp,timeDays:()=>pp,timeFormat:()=>My,timeFormatDefaultLocale:()=>qm,timeFormatLocale:()=>wy,timeFriday:()=>Ap,timeFridays:()=>Rp,timeHour:()=>fp,timeHours:()=>dp,timeInterval:()=>ep,timeMillisecond:()=>ip,timeMilliseconds:()=>rp,timeMinute:()=>hp,timeMinutes:()=>cp,timeMonday:()=>bp,timeMondays:()=>Sp,timeMonth:()=>Lp,timeMonths:()=>Pp,timeParse:()=>ky,timeSaturday:()=>Mp,timeSaturdays:()=>Np,timeSecond:()=>ap,timeSeconds:()=>op,timeSunday:()=>mp,timeSundays:()=>kp,timeThursday:()=>wp,timeThursdays:()=>Ep,timeTickInterval:()=>my,timeTicks:()=>yy,timeTuesday:()=>vp,timeTuesdays:()=>Cp,timeWednesday:()=>xp,timeWednesdays:()=>Tp,timeWeek:()=>mp,timeWeeks:()=>kp,timeYear:()=>zp,timeYears:()=>Bp,timeout:()=>wn,timer:()=>yn,timerFlush:()=>mn,transition:()=>pi,transpose:()=>kt,tree:()=>i_,treemap:()=>l_,treemapBinary:()=>h_,treemapDice:()=>Ud,treemapResquarify:()=>u_,treemapSlice:()=>r_,treemapSliceDice:()=>c_,treemapSquarify:()=>o_,tsv:()=>go,tsvFormat:()=>xa,tsvFormatBody:()=>wa,tsvFormatRow:()=>Ma,tsvFormatRows:()=>Aa,tsvFormatValue:()=>ka,tsvParse:()=>ba,tsvParseRows:()=>va,union:()=>$t,utcDay:()=>qp,utcDays:()=>Vp,utcFormat:()=>Sy,utcFriday:()=>Qp,utcFridays:()=>ay,utcHour:()=>Ip,utcHours:()=>Gp,utcMillisecond:()=>ip,utcMilliseconds:()=>rp,utcMinute:()=>Hp,utcMinutes:()=>$p,utcMonday:()=>Xp,utcMondays:()=>ny,utcMonth:()=>hy,utcMonths:()=>cy,utcParse:()=>Cy,utcSaturday:()=>ty,utcSaturdays:()=>oy,utcSecond:()=>ap,utcSeconds:()=>op,utcSunday:()=>jp,utcSundays:()=>ey,utcThursday:()=>Jp,utcThursdays:()=>sy,utcTickInterval:()=>py,utcTicks:()=>gy,utcTuesday:()=>Wp,utcTuesdays:()=>iy,utcWednesday:()=>Kp,utcWednesdays:()=>ry,utcWeek:()=>jp,utcWeeks:()=>ey,utcYear:()=>fy,utcYears:()=>dy,variance:()=>b,version:()=>i,window:()=>jv.Z,xml:()=>vo,zip:()=>Ct,zoom:()=>LA,zoomIdentity:()=>AA,zoomTransform:()=>MA});var i="6.7.0";function r(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function s(t){let e=t,n=t;function i(t,e,i,r){for(null==i&&(i=0),null==r&&(r=t.length);i<r;){const s=i+r>>>1;n(t[s],e)<0?i=s+1:r=s}return i}return 1===t.length&&(e=(e,n)=>t(e)-n,n=function(t){return(e,n)=>r(t(e),n)}(t)),{left:i,center:function(t,n,r,s){null==r&&(r=0),null==s&&(s=t.length);const a=i(t,n,r,s-1);return a>r&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,e,i,r){for(null==i&&(i=0),null==r&&(r=t.length);i<r;){const s=i+r>>>1;n(t[s],e)>0?r=s:i=s+1}return i}}}function a(t){return null===t?NaN:+t}const o=s(r),l=o.right,h=o.left,c=s(a).center,u=l;function f(t,e){let n=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&++n;else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(r=+r)>=r&&++n}return n}function d(t){return 0|t.length}function _(t){return!(t>0)}function g(t){return"object"!=typeof t||"length"in t?t:Array.from(t)}function p(...t){const e="function"==typeof t[t.length-1]&&function(t){return e=>t(...e)}(t.pop()),n=(t=t.map(g)).map(d),i=t.length-1,r=new Array(i+1).fill(0),s=[];if(i<0||n.some(_))return s;for(;;){s.push(r.map(((e,n)=>t[n][e])));let a=i;for(;++r[a]===n[a];){if(0===a)return e?s.map(e):s;r[a--]=0}}}function y(t,e){var n=0,i=0;return Float64Array.from(t,void 0===e?t=>n+=+t||0:r=>n+=+e(r,i++,t)||0)}function m(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function b(t,e){let n,i=0,r=0,s=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(n=e-r,r+=n/++i,s+=n*(e-r));else{let a=-1;for(let o of t)null!=(o=e(o,++a,t))&&(o=+o)>=o&&(n=o-r,r+=n/++i,s+=n*(o-r))}if(i>1)return s/(i-1)}function v(t,e){const n=b(t,e);return n?Math.sqrt(n):n}var x=n(865);class w{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const e=this._partials;let n=0;for(let i=0;i<this._n&&i<32;i++){const r=e[i],s=t+r,a=Math.abs(t)<Math.abs(r)?t-(s-r):r-(s-t);a&&(e[n++]=a),t=s}return e[n]=t,this._n=n+1,this}valueOf(){const t=this._partials;let e,n,i,r=this._n,s=0;if(r>0){for(s=t[--r];r>0&&(e=s,n=t[--r],s=e+n,i=n-(s-e),!i););r>0&&(i<0&&t[r-1]<0||i>0&&t[r-1]>0)&&(n=2*i,e=s+n,n==e-s&&(s=e))}return s}}function A(t,e){const n=new w;if(void 0===e)for(let e of t)(e=+e)&&n.add(e);else{let i=-1;for(let r of t)(r=+e(r,++i,t))&&n.add(r)}return+n}function M(t,e){const n=new w;let i=-1;return Float64Array.from(t,void 0===e?t=>n.add(+t||0):r=>n.add(+e(r,++i,t)||0))}class k extends Map{constructor(t,e=R){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(C(this,t))}has(t){return super.has(C(this,t))}set(t,e){return super.set(T(this,t),e)}delete(t){return super.delete(E(this,t))}}class S extends Set{constructor(t,e=R){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const e of t)this.add(e)}has(t){return super.has(C(this,t))}add(t){return super.add(T(this,t))}delete(t){return super.delete(E(this,t))}}function C({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):n}function T({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):(t.set(i,n),n)}function E({_intern:t,_key:e},n){const i=e(n);return t.has(i)&&(n=t.get(n),t.delete(i)),n}function R(t){return null!==t&&"object"==typeof t?t.valueOf():t}function N(t){return t}function D(t,...e){return H(t,N,N,e)}function L(t,...e){return H(t,Array.from,N,e)}function P(t,e,...n){return H(t,N,e,n)}function O(t,e,...n){return H(t,Array.from,e,n)}function z(t,...e){return H(t,N,F,e)}function B(t,...e){return H(t,Array.from,F,e)}function F(t){if(1!==t.length)throw new Error("duplicate key");return t[0]}function H(t,e,n,i){return function t(r,s){if(s>=i.length)return n(r);const a=new k,o=i[s++];let l=-1;for(const t of r){const e=o(t,++l,r),n=a.get(e);n?n.push(t):a.set(e,[t])}for(const[e,n]of a)a.set(e,t(n,s));return e(a)}(t,0)}function $(t,e){return Array.from(e,(e=>t[e]))}function Y(t,...e){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");t=Array.from(t);let[n=r]=e;if(1===n.length||e.length>1){const i=Uint32Array.from(t,((t,e)=>e));return e.length>1?(e=e.map((e=>t.map(e))),i.sort(((t,n)=>{for(const i of e){const e=r(i[t],i[n]);if(e)return e}}))):(n=t.map(n),i.sort(((t,e)=>r(n[t],n[e])))),$(t,i)}return t.sort(n)}function I(t,e,n){return(1===e.length?Y(P(t,e,n),(([t,e],[n,i])=>r(e,i)||r(t,n))):Y(D(t,n),(([t,n],[i,s])=>e(n,s)||r(t,i)))).map((([t])=>t))}var G=Array.prototype,U=G.slice;function q(t){return function(){return t}}G.map;var V=Math.sqrt(50),Z=Math.sqrt(10),j=Math.sqrt(2);function X(t,e,n){var i,r,s,a,o=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((i=e<t)&&(r=t,t=e,e=r),0===(a=W(t,e,n))||!isFinite(a))return[];if(a>0){let n=Math.round(t/a),i=Math.round(e/a);for(n*a<t&&++n,i*a>e&&--i,s=new Array(r=i-n+1);++o<r;)s[o]=(n+o)*a}else{a=-a;let n=Math.round(t*a),i=Math.round(e*a);for(n/a<t&&++n,i/a>e&&--i,s=new Array(r=i-n+1);++o<r;)s[o]=(n+o)/a}return i&&s.reverse(),s}function W(t,e,n){var i=(e-t)/Math.max(0,n),r=Math.floor(Math.log(i)/Math.LN10),s=i/Math.pow(10,r);return r>=0?(s>=V?10:s>=Z?5:s>=j?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(s>=V?10:s>=Z?5:s>=j?2:1)}function K(t,e,n){var i=Math.abs(e-t)/Math.max(0,n),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),s=i/r;return s>=V?r*=10:s>=Z?r*=5:s>=j&&(r*=2),e<t?-r:r}function J(t,e,n){let i;for(;;){const r=W(t,e,n);if(r===i||0===r||!isFinite(r))return[t,e];r>0?(t=Math.floor(t/r)*r,e=Math.ceil(e/r)*r):r<0&&(t=Math.ceil(t*r)/r,e=Math.floor(e*r)/r),i=r}}function Q(t){return Math.ceil(Math.log(f(t))/Math.LN2)+1}function tt(){var t=N,e=x.Z,n=Q;function i(i){Array.isArray(i)||(i=Array.from(i));var r,s,a=i.length,o=new Array(a);for(r=0;r<a;++r)o[r]=t(i[r],r,i);var l=e(o),h=l[0],c=l[1],f=n(o,h,c);if(!Array.isArray(f)){const t=c,n=+f;if(e===x.Z&&([h,c]=J(h,c,n)),(f=X(h,c,n))[f.length-1]>=c)if(t>=c&&e===x.Z){const t=W(h,c,n);isFinite(t)&&(t>0?c=(Math.floor(c/t)+1)*t:t<0&&(c=(Math.ceil(c*-t)+1)/-t))}else f.pop()}for(var d=f.length;f[0]<=h;)f.shift(),--d;for(;f[d-1]>c;)f.pop(),--d;var _,g=new Array(d+1);for(r=0;r<=d;++r)(_=g[r]=[]).x0=r>0?f[r-1]:h,_.x1=r<d?f[r]:c;for(r=0;r<a;++r)h<=(s=o[r])&&s<=c&&g[u(f,s,0,d)].push(i[r]);return g}return i.value=function(e){return arguments.length?(t="function"==typeof e?e:q(e),i):t},i.domain=function(t){return arguments.length?(e="function"==typeof t?t:q([t[0],t[1]]),i):e},i.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?q(U.call(t)):q(t),i):n},i}function et(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n<r||void 0===n&&r>=r)&&(n=r)}return n}function nt(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n>r||void 0===n&&r>=r)&&(n=r)}return n}function it(t,e,n=0,i=t.length-1,s=r){for(;i>n;){if(i-n>600){const r=i-n+1,a=e-n+1,o=Math.log(r),l=.5*Math.exp(2*o/3),h=.5*Math.sqrt(o*l*(r-l)/r)*(a-r/2<0?-1:1);it(t,e,Math.max(n,Math.floor(e-a*l/r+h)),Math.min(i,Math.floor(e+(r-a)*l/r+h)),s)}const r=t[e];let a=n,o=i;for(rt(t,n,e),s(t[i],r)>0&&rt(t,n,i);a<o;){for(rt(t,a,o),++a,--o;s(t[a],r)<0;)++a;for(;s(t[o],r)>0;)--o}0===s(t[n],r)?rt(t,n,o):(++o,rt(t,o,i)),o<=e&&(n=o+1),e<=o&&(i=o-1)}return t}function rt(t,e,n){const i=t[e];t[e]=t[n],t[n]=i}function st(t,e,n){if(i=(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(i=+i)>=i&&(yield i)}}(t,n))).length){if((e=+e)<=0||i<2)return nt(t);if(e>=1)return et(t);var i,r=(i-1)*e,s=Math.floor(r),a=et(it(t,s).subarray(0,s+1));return a+(nt(t.subarray(s+1))-a)*(r-s)}}function at(t,e,n=a){if(i=t.length){if((e=+e)<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,r=(i-1)*e,s=Math.floor(r),o=+n(t[s],s,t);return o+(+n(t[s+1],s+1,t)-o)*(r-s)}}function ot(t,e,n){return Math.ceil((n-e)/(2*(st(t,.75)-st(t,.25))*Math.pow(f(t),-1/3)))}function lt(t,e,n){return Math.ceil((n-e)/(3.5*v(t)*Math.pow(f(t),-1/3)))}function ht(t,e){let n,i=-1,r=-1;if(void 0===e)for(const e of t)++r,null!=e&&(n<e||void 0===n&&e>=e)&&(n=e,i=r);else for(let s of t)null!=(s=e(s,++r,t))&&(n<s||void 0===n&&s>=s)&&(n=s,i=r);return i}function ct(t,e){let n=0,i=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(++n,i+=e);else{let r=-1;for(let s of t)null!=(s=e(s,++r,t))&&(s=+s)>=s&&(++n,i+=s)}if(n)return i/n}function ut(t,e){return st(t,.5,e)}function ft(t){return Array.from(function*(t){for(const e of t)yield*e}(t))}function dt(t,e){let n,i=-1,r=-1;if(void 0===e)for(const e of t)++r,null!=e&&(n>e||void 0===n&&e>=e)&&(n=e,i=r);else for(let s of t)null!=(s=e(s,++r,t))&&(n>s||void 0===n&&s>=s)&&(n=s,i=r);return i}function _t(t,e=gt){const n=[];let i,r=!1;for(const s of t)r&&n.push(e(i,s)),i=s,r=!0;return n}function gt(t,e){return[t,e]}function pt(t,e,n){t=+t,e=+e,n=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+n;for(var i=-1,r=0|Math.max(0,Math.ceil((e-t)/n)),s=new Array(r);++i<r;)s[i]=t+i*n;return s}function yt(t,e=r){let n,i=!1;if(1===e.length){let s;for(const a of t){const t=e(a);(i?r(t,s)<0:0===r(t,t))&&(n=a,s=t,i=!0)}}else for(const r of t)(i?e(r,n)<0:0===e(r,r))&&(n=r,i=!0);return n}function mt(t,e=r){if(1===e.length)return dt(t,e);let n,i=-1,s=-1;for(const r of t)++s,(i<0?0===e(r,r):e(r,n)<0)&&(n=r,i=s);return i}function bt(t,e=r){let n,i=!1;if(1===e.length){let s;for(const a of t){const t=e(a);(i?r(t,s)>0:0===r(t,t))&&(n=a,s=t,i=!0)}}else for(const r of t)(i?e(r,n)>0:0===e(r,r))&&(n=r,i=!0);return n}function vt(t,e=r){if(1===e.length)return ht(t,e);let n,i=-1,s=-1;for(const r of t)++s,(i<0?0===e(r,r):e(r,n)>0)&&(n=r,i=s);return i}function xt(t,e){const n=mt(t,e);return n<0?void 0:n}const wt=At(Math.random);function At(t){return function(e,n=0,i=e.length){let r=i-(n=+n);for(;r;){const i=t()*r--|0,s=e[r+n];e[r+n]=e[i+n],e[i+n]=s}return e}}function Mt(t,e){let n=0;if(void 0===e)for(let e of t)(e=+e)&&(n+=e);else{let i=-1;for(let r of t)(r=+e(r,++i,t))&&(n+=r)}return n}function kt(t){if(!(r=t.length))return[];for(var e=-1,n=nt(t,St),i=new Array(n);++e<n;)for(var r,s=-1,a=i[e]=new Array(r);++s<r;)a[s]=t[s][e];return i}function St(t){return t.length}function Ct(){return kt(arguments)}function Tt(t,e){if("function"!=typeof e)throw new TypeError("test is not a function");let n=-1;for(const i of t)if(!e(i,++n,t))return!1;return!0}function Et(t,e){if("function"!=typeof e)throw new TypeError("test is not a function");let n=-1;for(const i of t)if(e(i,++n,t))return!0;return!1}function Rt(t,e){if("function"!=typeof e)throw new TypeError("test is not a function");const n=[];let i=-1;for(const r of t)e(r,++i,t)&&n.push(r);return n}function Nt(t,e){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!=typeof e)throw new TypeError("mapper is not a function");return Array.from(t,((n,i)=>e(n,i,t)))}function Dt(t,e,n){if("function"!=typeof e)throw new TypeError("reducer is not a function");const i=t[Symbol.iterator]();let r,s,a=-1;if(arguments.length<3){if(({done:r,value:n}=i.next()),r)return;++a}for(;({done:r,value:s}=i.next()),!r;)n=e(n,s,++a,t);return n}function Lt(t){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(t).reverse()}function Pt(t,...e){t=new Set(t);for(const n of e)for(const e of n)t.delete(e);return t}function Ot(t,e){const n=e[Symbol.iterator](),i=new Set;for(const e of t){if(i.has(e))return!1;let t,r;for(;({value:t,done:r}=n.next())&&!r;){if(Object.is(e,t))return!1;i.add(t)}}return!0}function zt(t){return t instanceof Set?t:new Set(t)}function Bt(t,...e){t=new Set(t),e=e.map(zt);t:for(const n of t)for(const i of e)if(!i.has(n)){t.delete(n);continue t}return t}function Ft(t,e){const n=t[Symbol.iterator](),i=new Set;for(const t of e){if(i.has(t))continue;let e,r;for(;({value:e,done:r}=n.next());){if(r)return!1;if(i.add(e),Object.is(t,e))break}}return!0}function Ht(t,e){return Ft(e,t)}function $t(...t){const e=new Set;for(const n of t)for(const t of n)e.add(t);return e}var Yt=n(604),It={value:()=>{}};function Gt(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t);i[t]=[]}return new Ut(i)}function Ut(t){this._=t}function qt(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",i=t.indexOf(".");if(i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function Vt(t,e){for(var n,i=0,r=t.length;i<r;++i)if((n=t[i]).name===e)return n.value}function Zt(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=It,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}Ut.prototype=Gt.prototype={constructor:Ut,on:function(t,e){var n,i=this._,r=qt(t+"",i),s=-1,a=r.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++s<a;)if(n=(t=r[s]).type)i[n]=Zt(i[n],t.name,e);else if(null==e)for(n in i)i[n]=Zt(i[n],t.name,null);return this}for(;++s<a;)if((n=(t=r[s]).type)&&(n=Vt(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Ut(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,r=new Array(n),s=0;s<n;++s)r[s]=arguments[s+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=0,n=(i=this._[t]).length;s<n;++s)i[s].value.apply(e,r)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,s=i.length;r<s;++r)i[r].value.apply(e,n)}};const jt=Gt;var Xt=n(17);function Wt(t){t.stopImmediatePropagation()}function Kt(t){t.preventDefault(),t.stopImmediatePropagation()}function Jt(t){var e=t.document.documentElement,n=(0,Xt.Z)(t).on("dragstart.drag",Kt,!0);"onselectstart"in e?n.on("selectstart.drag",Kt,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function Qt(t,e){var n=t.document.documentElement,i=(0,Xt.Z)(t).on("dragstart.drag",null);e&&(i.on("click.drag",Kt,!0),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function te(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function ee(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function ne(){}var ie=.7,re=1/ie,se="\\s*([+-]?\\d+)\\s*",ae="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",oe="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",le=/^#([0-9a-f]{3,8})$/,he=new RegExp("^rgb\\("+[se,se,se]+"\\)$"),ce=new RegExp("^rgb\\("+[oe,oe,oe]+"\\)$"),ue=new RegExp("^rgba\\("+[se,se,se,ae]+"\\)$"),fe=new RegExp("^rgba\\("+[oe,oe,oe,ae]+"\\)$"),de=new RegExp("^hsl\\("+[ae,oe,oe]+"\\)$"),_e=new RegExp("^hsla\\("+[ae,oe,oe,ae]+"\\)$"),ge={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function pe(){return this.rgb().formatHex()}function ye(){return this.rgb().formatRgb()}function me(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=le.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?be(e):3===n?new Ae(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?ve(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?ve(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=he.exec(t))?new Ae(e[1],e[2],e[3],1):(e=ce.exec(t))?new Ae(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ue.exec(t))?ve(e[1],e[2],e[3],e[4]):(e=fe.exec(t))?ve(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=de.exec(t))?Ce(e[1],e[2]/100,e[3]/100,1):(e=_e.exec(t))?Ce(e[1],e[2]/100,e[3]/100,e[4]):ge.hasOwnProperty(t)?be(ge[t]):"transparent"===t?new Ae(NaN,NaN,NaN,0):null}function be(t){return new Ae(t>>16&255,t>>8&255,255&t,1)}function ve(t,e,n,i){return i<=0&&(t=e=n=NaN),new Ae(t,e,n,i)}function xe(t){return t instanceof ne||(t=me(t)),t?new Ae((t=t.rgb()).r,t.g,t.b,t.opacity):new Ae}function we(t,e,n,i){return 1===arguments.length?xe(t):new Ae(t,e,n,null==i?1:i)}function Ae(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function Me(){return"#"+Se(this.r)+Se(this.g)+Se(this.b)}function ke(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Se(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Ce(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Re(t,e,n,i)}function Te(t){if(t instanceof Re)return new Re(t.h,t.s,t.l,t.opacity);if(t instanceof ne||(t=me(t)),!t)return new Re;if(t instanceof Re)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),s=Math.max(e,n,i),a=NaN,o=s-r,l=(s+r)/2;return o?(a=e===s?(n-i)/o+6*(n<i):n===s?(i-e)/o+2:(e-n)/o+4,o/=l<.5?s+r:2-s-r,a*=60):o=l>0&&l<1?0:a,new Re(a,o,l,t.opacity)}function Ee(t,e,n,i){return 1===arguments.length?Te(t):new Re(t,e,n,null==i?1:i)}function Re(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function Ne(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function De(t,e,n,i,r){var s=t*t,a=s*t;return((1-3*t+3*s-a)*e+(4-6*s+3*a)*n+(1+3*t+3*s-3*a)*i+a*r)/6}function Le(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),r=t[i],s=t[i+1],a=i>0?t[i-1]:2*r-s,o=i<e-1?t[i+2]:2*s-r;return De((n-i/e)*e,a,r,s,o)}}function Pe(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),r=t[(i+e-1)%e],s=t[i%e],a=t[(i+1)%e],o=t[(i+2)%e];return De((n-i/e)*e,r,s,a,o)}}te(ne,me,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:pe,formatHex:pe,formatHsl:function(){return Te(this).formatHsl()},formatRgb:ye,toString:ye}),te(Ae,we,ee(ne,{brighter:function(t){return t=null==t?re:Math.pow(re,t),new Ae(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?ie:Math.pow(ie,t),new Ae(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Me,formatHex:Me,formatRgb:ke,toString:ke})),te(Re,Ee,ee(ne,{brighter:function(t){return t=null==t?re:Math.pow(re,t),new Re(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?ie:Math.pow(ie,t),new Re(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new Ae(Ne(t>=240?t-240:t+120,r,i),Ne(t,r,i),Ne(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const Oe=t=>()=>t;function ze(t,e){return function(n){return t+n*e}}function Be(t,e){var n=e-t;return n?ze(t,n>180||n<-180?n-360*Math.round(n/360):n):Oe(isNaN(t)?e:t)}function Fe(t,e){var n=e-t;return n?ze(t,n):Oe(isNaN(t)?e:t)}const He=function t(e){var n=function(t){return 1==(t=+t)?Fe:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):Oe(isNaN(e)?n:e)}}(e);function i(t,e){var i=n((t=we(t)).r,(e=we(e)).r),r=n(t.g,e.g),s=n(t.b,e.b),a=Fe(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=s(e),t.opacity=a(e),t+""}}return i.gamma=t,i}(1);function $e(t){return function(e){var n,i,r=e.length,s=new Array(r),a=new Array(r),o=new Array(r);for(n=0;n<r;++n)i=we(e[n]),s[n]=i.r||0,a[n]=i.g||0,o[n]=i.b||0;return s=t(s),a=t(a),o=t(o),i.opacity=1,function(t){return i.r=s(t),i.g=a(t),i.b=o(t),i+""}}}var Ye=$e(Le),Ie=$e(Pe);function Ge(t,e){e||(e=[]);var n,i=t?Math.min(e.length,t.length):0,r=e.slice();return function(s){for(n=0;n<i;++n)r[n]=t[n]*(1-s)+e[n]*s;return r}}function Ue(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function qe(t,e){return(Ue(e)?Ge:Ve)(t,e)}function Ve(t,e){var n,i=e?e.length:0,r=t?Math.min(i,t.length):0,s=new Array(r),a=new Array(i);for(n=0;n<r;++n)s[n]=Qe(t[n],e[n]);for(;n<i;++n)a[n]=e[n];return function(t){for(n=0;n<r;++n)a[n]=s[n](t);return a}}function Ze(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function je(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Xe(t,e){var n,i={