=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}},e.arc=function(){var e=v,o=p,x=n(0),w=null,M=_,S=g,L=y,j=null;function T(){var n,v,p=+e.apply(this,arguments),_=+o.apply(this,arguments),g=M.apply(this,arguments)-c,y=S.apply(this,arguments)-c,T=i(y-g),D=y>g;if(j||(j=n=t.path()),_1e-12)if(T>m-1e-12)j.moveTo(_*s(g),_*l(g)),j.arc(0,0,_,g,y,!D),p>1e-12&&(j.moveTo(p*s(y),p*l(y)),j.arc(0,0,p,y,g,D));else{var N,C,Y=g,V=y,E=g,A=y,F=T,P=T,I=L.apply(this,arguments)/2,$=I>1e-12&&(w?+w.apply(this,arguments):d(p*p+_*_)),O=r(i(_-p)/2,+x.apply(this,arguments)),H=O,R=O;if($>1e-12){var G=h($/p*l(I)),z=h($/_*l(I));(F-=2*G)>1e-12?(E+=G*=D?1:-1,A-=G):(F=0,E=A=(g+y)/2),(P-=2*z)>1e-12?(Y+=z*=D?1:-1,V-=z):(P=0,Y=V=(g+y)/2)}var q=_*s(Y),U=_*l(Y),B=p*s(A),W=p*l(A);if(O>1e-12){var J,K=_*s(V),X=_*l(V),Q=p*s(E),Z=p*l(E);if(T1e-12?R>1e-12?(N=k(Q,Z,q,U,_,R,D),C=k(K,X,B,W,_,R,D),j.moveTo(N.cx+N.x01,N.cy+N.y01),R1e-12&&F>1e-12?H>1e-12?(N=k(B,W,K,X,p,-H,D),C=k(q,U,Q,Z,p,-H,D),j.lineTo(N.cx+N.x01,N.cy+N.y01),H0&&(h+=c);for(null!=t?v.sort((function(e,n){return t(p[e],p[n])})):null!=i&&v.sort((function(e,t){return i(n[e],n[t])})),r=0,d=h?(g-f*b)/h:0;r0?c*d:0)+b,p[l]={data:n[l],index:r,value:c,startAngle:_,endAngle:u,padAngle:y};return p}return r.value=function(t){return arguments.length?(e="function"==typeof t?t:n(+t),r):e},r.sortValues=function(e){return arguments.length?(t=e,i=null,r):t},r.sort=function(e){return arguments.length?(i=e,t=null,r):i},r.startAngle=function(e){return arguments.length?(a="function"==typeof e?e:n(+e),r):a},r.endAngle=function(e){return arguments.length?(s="function"==typeof e?e:n(+e),r):s},r.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:n(+e),r):o},r},e.pointRadial=I,e.radialArea=P,e.radialLine=F,e.stack=function(){var e=n([]),t=Ge,i=Re,a=ze;function s(n){var s,o,r=Array.from(e.apply(this,arguments),qe),l=r.length,d=-1;for(const e of n)for(s=0,++d;s0)for(var n,i,a,s,o,r,l=0,d=e[t[0]].length;l0?(i[0]=s,i[1]=s+=a):a<0?(i[1]=o,i[0]=o+=a):(i[0]=0,i[1]=a)},e.stackOffsetExpand=function(e,t){if((i=e.length)>0){for(var n,i,a,s=0,o=e[0].length;s0){for(var n,i=0,a=e[t[0]],s=a.length;i0&&(i=(n=e[t[0]]).length)>0){for(var n,i,a,s=0,o=1;o1e-6)if(Math.abs(c*l-d*u)>1e-6&&s){var f=i-o,h=a-r,v=l*l+d*d,p=f*f+h*h,_=Math.sqrt(v),g=Math.sqrt(m),y=s*Math.tan((t-Math.acos((v+m-p)/(2*_*g)))/2),b=y/g,k=y/_;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*u)+","+(n+b*c)),this._+="A"+s+","+s+",0,0,"+ +(c*f>u*h)+","+(this._x1=e+k*l)+","+(this._y1=n+k*d)}else this._+="L"+(this._x1=e)+","+(this._y1=n)},arc:function(e,a,s,o,r,l){e=+e,a=+a,l=!!l;var d=(s=+s)*Math.cos(o),u=s*Math.sin(o),c=e+d,m=a+u,f=1^l,h=l?o-r:r-o;if(s<0)throw new Error("negative radius: "+s);null===this._x1?this._+="M"+c+","+m:(Math.abs(this._x1-c)>1e-6||Math.abs(this._y1-m)>1e-6)&&(this._+="L"+c+","+m),s&&(h<0&&(h=h%n+n),h>i?this._+="A"+s+","+s+",0,1,"+f+","+(e-d)+","+(a-u)+"A"+s+","+s+",0,1,"+f+","+(this._x1=c)+","+(this._y1=m):h>1e-6&&(this._+="A"+s+","+s+",0,"+ +(h>=t)+","+f+","+(this._x1=e+s*Math.cos(r))+","+(this._y1=a+s*Math.sin(r))))},rect:function(e,t,n,i){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}},e.path=s,Object.defineProperty(e,"__esModule",{value:!0})}(t)},"./node_modules/d3-zoom/dist/d3-zoom.js":function(e,t,n){!function(e,t,n,i,a,s){"use strict";var o=e=>()=>e;function r(e,{sourceEvent:t,target:n,transform:i,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:a}})}function l(e,t,n){this.k=e,this.x=t,this.y=n}l.prototype={constructor:l,scale:function(e){return 1===e?this:new l(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new l(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var d=new l(1,0,0);function u(e){for(;!e.__zoom;)if(!(e=e.parentNode))return d;return e.__zoom}function c(e){e.stopImmediatePropagation()}function m(e){e.preventDefault(),e.stopImmediatePropagation()}function f(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function h(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function v(){return this.__zoom||d}function p(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function _(){return navigator.maxTouchPoints||"ontouchstart"in this}function g(e,t,n){var i=e.invertX(t[0][0])-n[0][0],a=e.invertX(t[1][0])-n[1][0],s=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a),o>s?(s+o)/2:Math.min(0,s)||Math.max(0,o))}u.prototype=l.prototype,e.zoom=function(){var e,u,y,b=f,k=h,x=g,w=p,M=_,S=[0,1/0],L=[[-1/0,-1/0],[1/0,1/0]],j=250,T=i.interpolateZoom,D=t.dispatch("start","zoom","end"),N=0,C=10;function Y(e){e.property("__zoom",v).on("wheel.zoom",$).on("mousedown.zoom",O).on("dblclick.zoom",H).filter(M).on("touchstart.zoom",R).on("touchmove.zoom",G).on("touchend.zoom touchcancel.zoom",z).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function V(e,t){return(t=Math.max(S[0],Math.min(S[1],t)))===e.k?e:new l(t,e.x,e.y)}function E(e,t,n){var i=t[0]-n[0]*e.k,a=t[1]-n[1]*e.k;return i===e.x&&a===e.y?e:new l(e.k,i,a)}function A(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function F(e,t,n,i){e.on("start.zoom",(function(){P(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){P(this,arguments).event(i).end()})).tween("zoom",(function(){var e=this,a=arguments,s=P(e,a).event(i),o=k.apply(e,a),r=null==n?A(o):"function"==typeof n?n.apply(e,a):n,d=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),u=e.__zoom,c="function"==typeof t?t.apply(e,a):t,m=T(u.invert(r).concat(d/u.k),c.invert(r).concat(d/c.k));return function(e){if(1===e)e=c;else{var t=m(e),n=d/t[2];e=new l(n,r[0]-t[0]*n,r[1]-t[1]*n)}s.zoom(null,e)}}))}function P(e,t,n){return!n&&e.__zooming||new I(e,t)}function I(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=k.apply(e,t),this.taps=0}function $(e,...t){if(b.apply(this,arguments)){var n=P(this,t).event(e),i=this.__zoom,o=Math.max(S[0],Math.min(S[1],i.k*Math.pow(2,w.apply(this,arguments)))),r=a.pointer(e);if(n.wheel)n.mouse[0][0]===r[0]&&n.mouse[0][1]===r[1]||(n.mouse[1]=i.invert(n.mouse[0]=r)),clearTimeout(n.wheel);else{if(i.k===o)return;n.mouse=[r,i.invert(r)],s.interrupt(this),n.start()}m(e),n.wheel=setTimeout(l,150),n.zoom("mouse",x(E(V(i,o),n.mouse[0],n.mouse[1]),n.extent,L))}function l(){n.wheel=null,n.end()}}function O(e,...t){if(!y&&b.apply(this,arguments)){var i=P(this,t,!0).event(e),o=a.select(e.view).on("mousemove.zoom",f,!0).on("mouseup.zoom",h,!0),r=a.pointer(e,l),l=e.currentTarget,d=e.clientX,u=e.clientY;n.dragDisable(e.view),c(e),i.mouse=[r,this.__zoom.invert(r)],s.interrupt(this),i.start()}function f(e){if(m(e),!i.moved){var t=e.clientX-d,n=e.clientY-u;i.moved=t*t+n*n>N}i.event(e).zoom("mouse",x(E(i.that.__zoom,i.mouse[0]=a.pointer(e,l),i.mouse[1]),i.extent,L))}function h(e){o.on("mousemove.zoom mouseup.zoom",null),n.dragEnable(e.view,i.moved),m(e),i.event(e).end()}}function H(e,...t){if(b.apply(this,arguments)){var n=this.__zoom,i=a.pointer(e.changedTouches?e.changedTouches[0]:e,this),s=n.invert(i),o=n.k*(e.shiftKey?.5:2),r=x(E(V(n,o),i,s),k.apply(this,t),L);m(e),j>0?a.select(this).transition().duration(j).call(F,r,i,e):a.select(this).call(Y.transform,r,i,e)}}function R(t,...n){if(b.apply(this,arguments)){var i,o,r,l,d=t.touches,m=d.length,f=P(this,n,t.changedTouches.length===m).event(t);for(c(t),o=0;o>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?y(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?y(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=l.exec(e))?new x(t[1],t[2],t[3],1):(t=d.exec(e))?new x(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=u.exec(e))?y(t[1],t[2],t[3],t[4]):(t=c.exec(e))?y(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?L(t[1],t[2]/100,t[3]/100,1):(t=f.exec(e))?L(t[1],t[2]/100,t[3]/100,t[4]):h.hasOwnProperty(e)?g(h[e]):"transparent"===e?new x(NaN,NaN,NaN,0):null}function g(e){return new x(e>>16&255,e>>8&255,255&e,1)}function y(e,t,n,i){return i<=0&&(e=t=n=NaN),new x(e,t,n,i)}function b(e){return e instanceof i||(e=_(e)),e?new x((e=e.rgb()).r,e.g,e.b,e.opacity):new x}function k(e,t,n,i){return 1===arguments.length?b(e):new x(e,t,n,null==i?1:i)}function x(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function w(){return"#"+S(this.r)+S(this.g)+S(this.b)}function M(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"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===e?")":", "+e+")")}function S(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function L(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new D(e,t,n,i)}function j(e){if(e instanceof D)return new D(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=_(e)),!e)return new D;if(e instanceof D)return e;var t=(e=e.rgb()).r/255,n=e.g/255,a=e.b/255,s=Math.min(t,n,a),o=Math.max(t,n,a),r=NaN,l=o-s,d=(o+s)/2;return l?(r=t===o?(n-a)/l+6*(n0&&d<1?0:r,new D(r,l,d,e.opacity)}function T(e,t,n,i){return 1===arguments.length?j(e):new D(e,t,n,null==i?1:i)}function D(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function N(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}t(i,_,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:v,formatHex:v,formatHsl:function(){return j(this).formatHsl()},formatRgb:p,toString:p}),t(x,k,n(i,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new x(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new x(this.r*e,this.g*e,this.b*e,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:w,formatHex:w,formatRgb:M,toString:M})),t(D,T,n(i,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new D(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new D(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,a=2*n-i;return new x(N(e>=240?e-240:e+120,a,i),N(e,a,i),N(e<120?e+240:e-120,a,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 e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));const C=Math.PI/180,Y=180/Math.PI,V=6/29,E=3*V*V;function A(e){if(e instanceof P)return new P(e.l,e.a,e.b,e.opacity);if(e instanceof z)return q(e);e instanceof x||(e=b(e));var t,n,i=H(e.r),a=H(e.g),s=H(e.b),o=I((.2225045*i+.7168786*a+.0606169*s)/1);return i===a&&a===s?t=n=o:(t=I((.4360747*i+.3850649*a+.1430804*s)/.96422),n=I((.0139322*i+.0971045*a+.7141733*s)/.82521)),new P(116*o-16,500*(t-o),200*(o-n),e.opacity)}function F(e,t,n,i){return 1===arguments.length?A(e):new P(e,t,n,null==i?1:i)}function P(e,t,n,i){this.l=+e,this.a=+t,this.b=+n,this.opacity=+i}function I(e){return e>.008856451679035631?Math.pow(e,1/3):e/E+4/29}function $(e){return e>V?e*e*e:E*(e-4/29)}function O(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function H(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function R(e){if(e instanceof z)return new z(e.h,e.c,e.l,e.opacity);if(e instanceof P||(e=A(e)),0===e.a&&0===e.b)return new z(NaN,0{}};function n(){for(var e,t=0,n=arguments.length,a={};t=0&&(n=e.slice(i+1),e=e.slice(0,i)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function s(e,t){for(var n,i=0,a=e.length;i0)for(var n,i,a=new Array(n),s=0;s()=>e;function l(e,{sourceEvent:t,subject:n,target:i,identifier:a,active:s,x:o,y:r,dx:l,dy:d,dispatch:u}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:s,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:r,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:d,enumerable:!0,configurable:!0},_:{value:u}})}function d(e){return!e.ctrlKey&&!e.button}function u(){return this.parentNode}function c(e,t){return null==t?{x:e.x,y:e.y}:t}function m(){return navigator.maxTouchPoints||"ontouchstart"in this}l.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e},e.drag=function(){var e,f,h,v,p=d,_=u,g=c,y=m,b={},k=t.dispatch("start","drag","end"),x=0,w=0;function M(e){e.on("mousedown.drag",S).filter(y).on("touchstart.drag",T).on("touchmove.drag",D).on("touchend.drag touchcancel.drag",N).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function S(t,a){if(!v&&p.call(this,t,a)){var o=C(this,_.call(this,t,a),t,a,"mouse");o&&(n.select(t.view).on("mousemove.drag",L,!0).on("mouseup.drag",j,!0),s(t.view),i(t),h=!1,e=t.clientX,f=t.clientY,o("start",t))}}function L(t){if(a(t),!h){var n=t.clientX-e,i=t.clientY-f;h=n*n+i*i>w}b.mouse("drag",t)}function j(e){n.select(e.view).on("mousemove.drag mouseup.drag",null),o(e.view,h),a(e),b.mouse("end",e)}function T(e,t){if(p.call(this,e,t)){var n,a,s=e.changedTouches,o=_.call(this,e,t),r=s.length;for(n=0;n+e,e.easePoly=s,e.easePolyIn=i,e.easePolyInOut=s,e.easePolyOut=a,e.easeQuad=t,e.easeQuadIn=function(e){return e*e},e.easeQuadInOut=t,e.easeQuadOut=function(e){return e*(2-e)},e.easeSin=l,e.easeSinIn=function(e){return 1==+e?1:1-Math.cos(e*r)},e.easeSinInOut=l,e.easeSinOut=function(e){return Math.sin(e*r)},Object.defineProperty(e,"__esModule",{value:!0})}(t)},"./node_modules/d3-zoom/node_modules/d3-interpolate/dist/d3-interpolate.js":function(e,t,n){!function(e,t){"use strict";function n(e,t,n,i,a){var s=e*e,o=s*e;return((1-3*e+3*s-o)*t+(4-6*s+3*o)*n+(1+3*e+3*s-3*o)*i+o*a)/6}function i(e){var t=e.length-1;return function(i){var a=i<=0?i=0:i>=1?(i=1,t-1):Math.floor(i*t),s=e[a],o=e[a+1],r=a>0?e[a-1]:2*s-o,l=a