1(self.webpackChunkdzweb=self.webpackChunkdzweb||[]).push([[8734],{68734:function(kn,me,qt){kn.exports=function(){"use strict";function v(n){var i=this;i.d3=window.d3?window.d3:qt(51770),i.api=n,i.config=i.getDefaultConfig(),i.data={},i.cache={},i.axes={}}function nt(n){this.internal=new v(this),this.internal.loadConfig(n),this.internal.beforeInit(n),this.internal.init(),this.internal.afterInit(n),function i(o,u,g){Object.keys(o).forEach(function(m){u[m]=o[m].bind(g),Object.keys(o[m]).length>0&&i(o[m],u[m],g)})}(nt.prototype,this,this)}var Jt=function(n){return Math.ceil(n)+.5},je=function(n){return 10*Math.ceil(n/10)},xe=function(n){return n[1]-n[0]},Ht=function(n,i,o){return Et(n[i])?n[i]:o},yn=function(n){var i=Ct(n),o=[n.pathSegList.getItem(0),n.pathSegList.getItem(1)];return{x:o[0].x,y:Math.min(o[0].y,o[1].y),width:i.width,height:i.height}},Ct=function(n){try{return n.getBBox()}catch{return{x:0,y:0,width:0,height:0}}},$t=function(n){return Array.isArray(n)},Et=function(n){return typeof n<"u"},Ut=function(n){return typeof n>"u"||null===n||xt(n)&&0===n.length||"object"==typeof n&&0===Object.keys(n).length},Wt=function(n){return"function"==typeof n},Ye=function(n){return"number"==typeof n},xt=function(n){return"string"==typeof n},Lt=function(n){return typeof n>"u"},Q=function(n){return n||0===n},At=function(n){return!Ut(n)},Gt=function(n){return"string"==typeof n?n.replace(/</g,"<").replace(/>/g,">"):n},ne=function(n){var i=function(n){typeof n>"u"&&(n=window.navigator.userAgent);var i=n.indexOf("MSIE ");return i>0?parseInt(n.substring(i+5,n.indexOf(".",i)),10):(i=n.indexOf("Trident/"))>0&&(i=n.indexOf("rv:"),parseInt(n.substring(i+3,n.indexOf(".",i)),10))}();return typeof n>"u"?!!i:n===i};function Ft(n,i){var o=this;o.component=n,o.params=i||{},o.d3=n.d3,o.scale=o.d3.scaleLinear(),o.orient="bottom",o.innerTickSize=6,o.outerTickSize=this.params.withOuterTick?6:0,o.tickPadding=3,o.tickValues=null,o.tickOffset=0,o.tickCulling=!0,o.tickTextRotate=o.params.tickTextRotate,o.axis=o.generateAxis()}Ft.prototype.axisX=function(n,i,o){n.attr("transform",function(u){return"translate("+Math.ceil(i(u)+o)+", 0)"})},Ft.prototype.axisY=function(n,i){n.attr("transform",function(o){return"translate(0,"+Math.ceil(i(o))+")"})},Ft.prototype.scaleExtent=function(n){var i=n[0],o=n[n.length-1];return i<o?[i,o]:[o,i]},Ft.prototype.generateTicks=function(n){var o,u,g=[];if(n.ticks)return n.ticks.apply(n,this.tickArguments);for(u=n.domain(),o=Math.ceil(u[0]);o<u[1];o++)g.push(o);return g.length>0&&g[0]>0&&g.unshift(g[0]-(g[1]-g[0])),g},Ft.prototype.copyScale=function(){var o,n=this,i=n.scale.copy();return n.params.isCategory&&(o=n.scale.domain(),i.domain([o[0],o[1]-1])),i},Ft.prototype.textFormatted=function(n){var o=this.tickFormat?this.tickFormat(n):n;return typeof o<"u"?o:""},Ft.prototype.updateRange=function(){var n=this;return n.range=n.scale.rangeExtent?n.scale.rangeExtent():n.scaleExtent(n.scale.range()),n.range},Ft.prototype.updateTickTextCharSize=function(n){var i=this;if(i.tickTextCharSize)return i.tickTextCharSize;var o={h:11.5,w:5.5};return n.select("text").text(function(u){return i.textFormatted(u)}).each(function(u){var g=Ct(this),m=i.textFormatted(u),w=g.height,T=m?g.width/m.length:void 0;w&&T&&(o.h=w,o.w=T)}).text(""),i.tickTextCharSize=o,o},Ft.prototype.isVertical=function(){return"left"===this.orient||"right"===this.orient},Ft.prototype.tspanData=function(n,i,o){var u=this,g=u.params.tickMultiline?u.splitTickText(n,o):[].concat(u.textFormatted(n));return u.params.tickMultiline&&u.params.tickMultilineMax>0&&(g=u.ellipsify(g,u.params.tickMultilineMax)),g.map(function(m){return{index:i,splitted:m,length:g.length}})},Ft.prototype.splitTickText=function(n,i){var m,w,o=this,u=o.textFormatted(n),g=o.params.tickWidth;
1if("[object Array]"===Object.prototype.toString.call(u))return u;return(!g||g<=0)&&(g=o.isVertical()?95:o.params.isCategory?Math.ceil(i(1)-i(0))-12:110),function L(I,P){w=void 0;for(var N=1;N<P.length;N++)if(" "===P.charAt(N)&&(w=N),m=P.substr(0,N+1),g<o.tickTextCharSize.w*m.length)return L(I.concat(P.substr(0,w||N)),P.slice(w?w+1:N));return I.concat(P)}([],u+"")},Ft.prototype.ellipsify=function(n,i){if(n.length<=i)return n;for(var o=n.slice(0,i),u=3,g=i-1;g>=0;g--){var m=o[g].length;if(o[g]=o[g].substr(0,m-u).padEnd(m,"."),(u-=m)<=0)break}return o},Ft.prototype.updateTickLength=function(){var n=this;n.tickLength=Math.max(n.innerTickSize,0)+n.tickPadding},Ft.prototype.lineY2=function(n){var i=this,o=i.scale(n)+(i.tickCentered?0:i.tickOffset);return i.range[0]<o&&o<i.range[1]?i.innerTickSize:0},Ft.prototype.textY=function(){var i=this.tickTextRotate;return i?11.5-i/15*2.5*(i>0?1:-1):this.tickLength},Ft.prototype.textTransform=function(){var i=this.tickTextRotate;return i?"rotate("+i+")":""},Ft.prototype.textTextAnchor=function(){var i=this.tickTextRotate;return i?i>0?"start":"end":"middle"},Ft.prototype.tspanDx=function(){var i=this.tickTextRotate;return i?8*Math.sin(Math.PI*(i/180)):0},Ft.prototype.tspanDy=function(n,i){var o=this,u=o.tickTextCharSize.h;return 0===i&&(u=o.isVertical()?-(o.tickTextCharSize.h/2*(n.length-1)-3):".71em"),u},Ft.prototype.generateAxis=function(){var n=this,i=n.d3,o=n.params;function u(g,m){var w;return g.each(function(){var $,F,Z,T=u.g=i.select(this),E=this.__chart__||n.scale,L=this.__chart__=n.copyScale(),I=n.tickValues?n.tickValues:n.generateTicks(L),P=T.selectAll(".tick").data(I,L),N=P.enter().insert("g",".domain").attr("class","tick").style("opacity",1e-6),D=P.exit().remove(),O=P.merge(N);o.isCategory?(n.tickOffset=Math.ceil((L(1)-L(0))/2),F=n.tickCentered?0:n.tickOffset,Z=n.tickCentered?n.tickOffset:0):n.tickOffset=F=0,n.updateRange(),n.updateTickLength(),n.updateTickTextCharSize(T.select(".tick"));
vendor: 9,924 bytes, line 1
1var it=O.select("line").merge(N.append("line")),vt=O.select("text").merge(N.append("text")),kt=O.selectAll("text").selectAll("tspan").data(function(ut,ft){return n.tspanData(ut,ft,L)}),Rt=kt.enter().append("tspan").merge(kt).text(function(ut){return ut.splitted});kt.exit().remove();var mt=T.selectAll(".domain").data([0]),dt=mt.enter().append("path").merge(mt).attr("class","domain");switch(n.orient){case"bottom":$=n.axisX,it.attr("x1",F).attr("x2",F).attr("y2",function(ut,ft){return n.lineY2(ut,ft)}),vt.attr("x",0).attr("y",function(ut,ft){return n.textY(ut,ft)}).attr("transform",function(ut,ft){return n.textTransform(ut,ft)}).style("text-anchor",function(ut,ft){return n.textTextAnchor(ut,ft)}),Rt.attr("x",0).attr("dy",function(ut,ft){return n.tspanDy(ut,ft)}).attr("dx",function(ut,ft){return n.tspanDx(ut,ft)}),dt.attr("d","M"+n.range[0]+","+n.outerTickSize+"V0H"+n.range[1]+"V"+n.outerTickSize);break;case"top":$=n.axisX,it.attr("x1",F).attr("x2",F).attr("y2",function(ut,ft){return-1*n.lineY2(ut,ft)}),vt.attr("x",0).attr("y",function(ut,ft){return-1*n.textY(ut,ft)-(o.isCategory?2:n.tickLength-2)}).attr("transform",function(ut,ft){return n.textTransform(ut,ft)}).style("text-anchor",function(ut,ft){return n.textTextAnchor(ut,ft)}),Rt.attr("x",0).attr("dy",function(ut,ft){return n.tspanDy(ut,ft)}).attr("dx",function(ut,ft){return n.tspanDx(ut,ft)}),dt.attr("d","M"+n.range[0]+","+-n.outerTickSize+"V0H"+n.range[1]+"V"+-n.outerTickSize);break;case"left":$=n.axisY,it.attr("x2",-n.innerTickSize).attr("y1",Z).attr("y2",Z),vt.attr("x",-n.tickLength).attr("y",n.tickOffset).style("text-anchor","end"),Rt.attr("x",-n.tickLength).attr("dy",function(ut,ft){return n.tspanDy(ut,ft)}),dt.attr("d","M"+-n.outerTickSize+","+n.range[0]+"H0V"+n.range[1]+"H"+-n.outerTickSize);break;case"right":$=n.axisY,it.attr("x2",n.innerTickSize).attr("y1",Z).attr("y2",Z),vt.attr("x",n.tickLength).attr("y",n.tickOffset).style("text-anchor","start"),Rt.attr("x",n.tickLength).attr("dy",function(ut,ft){return n.tspanDy(ut,ft)}),dt.attr("d","M"+n.outerTickSize+","+n.range[0]+"H0V"+n.range[1]+"H"+n.outerTickSize)}if(L.rangeBand){var Zt=L,gt=Zt.rangeBand()/2;E=L=function(ut){return Zt(ut)+gt}}else E.rangeBand?E=L:D.call($,L,n.tickOffset);N.call($,E,n.tickOffset),w=(m?O.transition(m):O).style("opacity",1).call($,L,n.tickOffset)}),w}return u.scale=function(g){return arguments.length?(n.scale=g,u):n.scale},u.orient=function(g){return arguments.length?(n.orient=g in{top:1,right:1,bottom:1,left:1}?g+"":"bottom",u):n.orient},u.tickFormat=function(g){return arguments.length?(n.tickFormat=g,u):n.tickFormat},u.tickCentered=function(g){return arguments.length?(n.tickCentered=g,u):n.tickCentered},u.tickOffset=function(){return n.tickOffset},u.tickInterval=function(){var g;return(g=o.isCategory?2*n.tickOffset:(u.g.select("path.domain").node().getTotalLength()-2*n.outerTickSize)/u.g.selectAll("line").size())==1/0?0:g},u.ticks=function(){return arguments.length?(n.tickArguments=arguments,u):n.tickArguments},u.tickCulling=function(g){return arguments.length?(n.tickCulling=g,u):n.tickCulling},u.tickValues=function(g){if("function"==typeof g)n.tickValues=function(){return g(n.scale.domain())};else{if(!arguments.length)return n.tickValues;n.tickValues=g}return u},u};var k={target:"c3-target",chart:"c3-chart",chartLine:"c3-chart-line",chartLines:"c3-chart-lines",chartBar:"c3-chart-bar",chartBars:"c3-chart-bars",chartText:"c3-chart-text",chartTexts:"c3-chart-texts",chartArc:"c3-chart-arc",chartArcs:"c3-chart-arcs",chartArcsTitle:"c3-chart-arcs-title",chartArcsBackground:"c3-chart-arcs-background",chartArcsGaugeUnit:"c3-chart-arcs-gauge-unit",chartArcsGaugeMax:"c3-chart-arcs-gauge-max",chartArcsGaugeMin:"c3-chart-arcs-gauge-min",selectedCircle:"c3-selected-circle",selectedCircles:"c3-selected-circles",eventRect:"c3-event-rect",eventRects:"c3-event-rects",eventRectsSingle:"c3-event-rects-single",eventRectsMultiple:"c3-event-rects-multiple",zoomRect:"c3-zoom-rect",brush:"c3-brush",dragZoom:"c3-drag-zoom",focused:"c3-focused",defocused:"c3-defocused",region:"c3-region",regions:"c3-regions",title:"c3-title",tooltipContainer:"c3-tooltip-container",tooltip:"c3-tooltip",tooltipName:"c3-tooltip-name",shape:"c3-shape",shapes:"c3-shapes",line:"c3-line",lines:"c3-lines",bar:"c3-bar",bars:"c3-bars",circle:"c3-circle",circles:"c3-circles",arc:"c3-arc",arcLabelLine:"c3-arc-label-line",arcs:"c3-arcs",area:"c3-area",areas:"c3-areas",empty:"c3-empty",text:"c3-text",texts:"c3-texts",gaugeValue:"c3-gauge-value",grid:"c3-grid",gridLines:"c3-grid-lines",xgrid:"c3-xgrid",xgrids:"c3-xgrids",xgridLine:"c3-xgrid-line",xgridLines:"c3-xgrid-lines",xgridFocus:"c3-xgrid-focus",ygrid:"c3-ygrid",ygrids:"c3-ygrids",ygridLine:"c3-ygrid-line",ygridLines:"c3-ygrid-lines",colorScale:"c3-colorscale",stanfordElements:"c3-stanford-elements",stanfordLine:"c3-stanford-line",stanfordLines:"c3-stanford-lines",stanfordRegion:"c3-stanford-region",stanfordRegions:"c3-stanford-regions",stanfordText:"c3-stanford-text",stanfordTexts:"c3-stanford-texts",axis:"c3-axis",axisX:"c3-axis-x",axisXLabel:"c3-axis-x-label",axisY:"c3-axis-y",axisYLabel:"c3-axis-y-label",axisY2:"c3-axis-y2",axisY2Label:"c3-axis-y2-label",legendBackground:"c3-legend-background",legendItem:"c3-legend-item",legendItemEvent:"c3-legend-item-event",legendItemTile:"c3-legend-item-tile",legendItemHidden:"c3-legend-item-hidden",legendItemFocused:"c3-legend-item-focused",dragarea:"c3-dragarea",EXPANDED:"_expanded_",SELECTED:"_selected_",INCLUDED:"_included_"},on=function n(i){this.owner=i,this.d3=i.d3,this.internal=Ft},yt=on;yt.prototype.init=function(){var i=this.owner,o=i.config,u=i.main;i.axes.x=u.append("g").attr("class",k.axis+" "+k.axisX).attr("clip-path",o.axis_x_inner?"":i.clipPathForXAxis).attr("transform",i.getTranslate("x")).style("visibility",o.axis_x_show?"visible":"hidden"),i.axes.x.append("text").attr("class",k.axisXLabel).attr("transform",o.axis_rotated?"rotate(-90)":"").style("text-anchor",this.textAnchorForXAxisLabel.bind(this)),i.axes.y=u.append("g").attr("class",k.axis+" "+k.axisY).attr("clip-path",o.axis_y_inner?"":i.clipPathForYAxis).attr("transform",i.getTranslate("y")).style("visibility",o.axis_y_show?"visible":"hidden"),i.axes.y.append("text").attr("class",k.axisYLabel).attr("transform",o.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForYAxisLabel.bind(this)),i.axes.y2=u.append("g").attr("class",k.axis+" "+k.axisY2).attr("transform",i.getTranslate("y2")).style("visibility",o.axis_y2_show?"visible":"hidden"),i.axes.y2.append("text").attr("class",k.axisY2Label).attr("transform",o.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForY2AxisLabel.bind(this))},yt.prototype.getXAxis=function(i,o,u,g,m,w,T){var E=this.owner,L=E.config,I={isCategory:E.isCategorized(),withOuterTick:m,tickMultiline:L.axis_x_tick_multiline,tickMultilineMax:L.axis_x_tick_multiline?Number(L.axis_x_tick_multilineMax):0,tickWidth:L.axis_x_tick_width,tickTextRotate:T?0:L.axis_x_tick_rotate,withoutTransition:w},P=new this.internal(this,I).axis.scale(i).orient(o);return E.isTimeSeries()&&g&&"function"!=typeof g&&(g=g.map(function(N){return E.parseDate(N)})),P.tickFormat(u).tickValues(g),E.isCategorized()&&(P.tickCentered(L.axis_x_tick_centered),Ut(L.axis_x_tick_culling)&&(L.axis_x_tick_culling=!1)),P},yt.prototype.updateXAxisTickValues=function(i,o){var m,u=this.owner,g=u.config;return(g.axis_x_tick_fit||g.axis_x_tick_count)&&(m=this.generateTickValues(u.mapTargetsToUniqueXs(i),g.axis_x_tick_count,u.isTimeSeries())),o?o.tickValues(m):(u.xAxis.tickValues(m),u.subXAxis.tickValues(m)),m},yt.prototype.getYAxis=function(i,o,u,g,m,w,T){var E=this.owner,L=E.config,I=L["axis_"+i+"_tick_format"];!I&&E.isAxisNormalized(i)&&(I=function(N){return N+"%"});var P=new this.internal(this,{withOuterTick:m,withoutTransition:w,tickTextRotate:T?0:L.axis_y_tick_rotate}).axis.scale(o).orient(u);return I&&P.tickFormat(I),E.isTimeSeriesY()?P.ticks(L.axis_y_tick_time_type,L.axis_y_tick_time_interval):P.tickValues(g),P},yt.prototype.getId=function(i){var o=this.owner.config;return i in o.data_axes?o.data_axes[i]:"y"},yt.prototype.getXAxisTickFormat=function(){var i=this.owner,o=i.config,u=i.isTimeSeries()?i.defaultAxisTimeFormat:i.isCategorized()?i.categoryName:function(g){return g};return o.axis_x_tick_format&&(Wt(o.axis_x_tick_format)?u=o.axis_x_tick_format:i.isTimeSeries()&&(u=function(g){return g?i.axisTimeFormat(o.axis_x_tick_format)(g):""})),Wt(u)?function(g){return u.call(i,g)}:u},yt.prototype.getTickValues=function(i,o){return i||(o?o.tickValues():void 0)},yt.prototype.getXAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_x_tick_values,this.owner.xAxis)},yt.prototype.getYAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y_tick_values,this.owner.yAxis)},yt.prototype.getY2AxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y2_tick_values,this.owner.y2Axis)},yt.prototype.getLabelOptionByAxisId=function(i){var g,u=this.owner.config;return"y"===i?g=u.axis_y_label:"y2"===i?g=u.axis_y2_label:"x"===i&&(g=u.axis_x_label),g},yt.prototype.getLabelText=function(i){var o=this.getLabelOptionByAxisId(i);return xt(o)?o:o?o.text:null},yt.prototype.setLabelText=function(i,o){var g=this.owner.config,m=this.getLabelOptionByAxisId(i);xt(m)?"y"===i?g.axis_y_label=o:"y2"===i?g.axis_y2_label=o:"x"===i&&(g.axis_x_label=o):m&&(m.text=o)},yt.prototype.getLabelPosition=function(i,o){var u=this.getLabelOptionByAxisId(i),g=u&&"object"==typeof u&&u.position?u.position:o;return{isInner:g.indexOf("inner")>=0,isOuter:g.indexOf("outer")>=0,isLeft:g.indexOf("left")>=0,isCenter:g.indexOf("center")>=0,isRight:g.indexOf("right")>=0,isTop:g.indexOf("top")>=0,isMiddle:g.indexOf("middle")>=0,isBottom:g.indexOf("bottom")>=0}},yt.prototype.getXAxisLabelPosition=function(){return this.getLabelPosition("x",this.owner.config.axis_rotated?"inner-top":"inner
1-right")},yt.prototype.getYAxisLabelPosition=function(){return this.getLabelPosition("y",this.owner.config.axis_rotated?"inner-right":"inner-top")},yt.prototype.getY2AxisLabelPosition=function(){return this.getLabelPosition("y2",this.owner.config.axis_rotated?"inner-right":"inner-top")},yt.prototype.getLabelPositionById=function(i){return"y2"===i?this.getY2AxisLabelPosition():"y"===i?this.getYAxisLabelPosition():this.getXAxisLabelPosition()},yt.prototype.textForXAxisLabel=function(){return this.getLabelText("x")},yt.prototype.textForYAxisLabel=function(){return this.getLabelText("y")},yt.prototype.textForY2AxisLabel=function(){return this.getLabelText("y2")},yt.prototype.xForAxisLabel=function(i,o){var u=this.owner;return i?o.isLeft?0:o.isCenter?u.width/2:u.width:o.isBottom?-u.height:o.isMiddle?-u.height/2:0},yt.prototype.dxForAxisLabel=function(i,o){return i?o.isLeft?"0.5em":o.isRight?"-0.5em":"0":o.isTop?"-0.5em":o.isBottom?"0.5em":"0"},yt.prototype.textAnchorForAxisLabel=function(i,o){return i?o.isLeft?"start":o.isCenter?"middle":"end":o.isBottom?"start":o.isMiddle?"middle":"end"},yt.prototype.xForXAxisLabel=function(){return this.xForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},yt.prototype.xForYAxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},yt.prototype.xForY2AxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},yt.prototype.dxForXAxisLabel=function(){return this.dxForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},yt.prototype.dxForYAxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},yt.prototype.dxForY2AxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},yt.prototype.dyForXAxisLabel=function(){var i=this.owner,o=i.config,u=this.getXAxisLabelPosition();return o.axis_rotated?u.isInner?"1.2em":-25-(i.config.axis_x_inner?0:this.getMaxTickWidth("x")):u.isInner?"-0.5em":i.getHorizontalAxisHeight("x")-10},yt.prototype.dyForYAxisLabel=function(){var i=this.owner,o=this.getYAxisLabelPosition();return i.config.axis_rotated?o.isInner?"-0.5em":"3em":o.isInner?"1.2em":-10-(i.config.axis_y_inner?0:this.getMaxTickWidth("y")+10)},yt.prototype.dyForY2AxisLabel=function(){var i=this.owner,o=this.getY2AxisLabelPosition();return i.config.axis_rotated?o.isInner?"1.2em":"-2.2em":o.isInner?"-0.5em":15+(i.config.axis_y2_inner?0:this.getMaxTickWidth("y2")+15)},yt.prototype.textAnchorForXAxisLabel=function(){return this.textAnchorForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},yt.prototype.textAnchorForYAxisLabel=function(){return this.textAnchorForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},yt.prototype.textAnchorForY2AxisLabel=function(){return this.textAnchorForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},yt.prototype.getMaxTickWidth=function(i,o){var m,w,T,E,u=this.owner,g=0;return o&&u.currentMaxTickWidths[i]||(u.svg&&(m=u.filterTargetsToShow(u.data.targets),"y"===i?(w=u.y.copy().domain(u.getYDomain(m,"y")),T=this.getYAxis(i,w,u.yOrient,u.yAxisTickValues,!1,!0,!0)):"y2"===i?(w=u.y2.copy().domain(u.getYDomain(m,"y2")),T=this.getYAxis(i,w,u.y2Orient,u.y2AxisTickValues,!1,!0,!0)):(w=u.x.copy().domain(u.getXDomain(m)),T=this.getXAxis(w,u.xOrient,u.xAxisTickFormat,u.xAxisTickValues,!1,!0,!0),this.updateXAxisTickValues(m,T)),(E=u.d3.select("body").append("div").classed("c3",!0)).append("svg").style("visibility","hidden").style("position","fixed").style("top",0).style("left",0).append("g").call(T).each(function(){u.d3.select(this).selectAll("text").each(function(){var I=Ct(this);g<I.width&&(g=I.width)}),E.remove()})),u.currentMaxTickWidths[i]=g<=0?u.currentMaxTickWidths[i]:g),u.currentMaxTickWidths[i]},yt.prototype.updateLabels=function(i){var o=this.owner,u=o.main.select("."+k.axisX+" ."+k.axisXLabel),g=o.main.select("."+k.axisY+" ."+k.axisYLabel),m=o.main.select("."+k.axisY2+" ."+k.axisY2Label);(i?u.transition():u).attr("x",this.xForXAxisLabel.bind(this)).attr("dx",this.dxForXAxisLabel.bind(this)).attr("dy",this.dyForXAxisLabel.bind(this)).text(this.textForXAxisLabel.bind(this)),(i?g.transition():g).attr("x",this.xForYAxisLabel.bind(this)).attr("dx",this.dxForYAxisLabel.bind(this)).attr("dy",this.dyForYAxisLabel.bind(this)).text(this.textForYAxisLabel.bind(this)),(i?m.transition():m).attr("x",this.xForY2AxisLabel.bind(this)).attr("dx",this.dxForY2AxisLabel.bind(this)).attr("dy",this.dyForY2AxisLabel.bind(this)).text(this.textForY2AxisLabel.bind(this))},yt.prototype.getPadding=function(i,o,u,g){var m="number"==typeof i?i:i[o];return Q(m)?"ratio"===i.unit?i[o]*g:this.convertPixelsToAxisPadding(m,g):u},yt.prototype.convertPixelsToAxisPadding=function(i,o){var u=this.owner;return o*(i/(u.config.axis_rotated?u.width:u.height))},yt.prototype.generateTickValues=function(i,o,u){var m,w,T,E,L,I,P,g=i;if(o)if(1===(m=Wt(o)?o():o))g=[i[0]];else if(2===m)g=[i[0],i[i.length-1]];else if(m>2){for(L=((T=i[i.length-1])-(w=i[0]))/(1+(E=m-2)),g=[w],I=0;I<E;I++)P=+w+L*(I+1),g.push(u?new Date(P):P);g.push(T)}return u||(g=g.sort(function(N,D){return N-D})),g},yt.prototype.generateTransitions=function(i){var u=this.owner.axes;return{axisX:i?u.x.transition().duration(i):u.x,axisY:i?u.y.transition().duration(i):u.y,axisY2:i?u.y2.transition().duration(i):u.y2,axisSubX:i?u.subx.transition().duration(i):u.subx}},yt.prototype.redraw=function(i,o){var u=this.owner,g=i?u.d3.transition().duration(i):null;u.axes.x.style("opacity",o?0:1).call(u.xAxis,g),u.axes.y.style("opacity",o?0:1).call(u.yAxis,g),u.axes.y2.style("opacity",o?0:1).call(u.y2Axis,g),u.axes.subx.style("opacity",o?0:1).call(u.subXAxis,g)};var Rn={version:"0.7.20",chart:{fn:nt.prototype,internal:{fn:v.prototype,axis:{fn:on.prototype,internal:{fn:Ft.prototype}}}},generate:function(n){return new nt(n)}};function Ti(n,i,o){var u=[.01,10];function m(w){return o(i(w))}
vendor: 45,766 bytes, line 1
1return i||(i=n.scaleLinear()).range(u),o||((o=n.scaleLog()).domain(u),o.nice()),m.domain=function(w){return arguments.length?(i.domain(w),m):i.domain()},m.range=function(w){return arguments.length?(o.range(w),m):o.range()},m.ticks=function(w){return function g(w,T,E){var L,I,P,N;if(arguments.length<3)E=10;else if(0===E)return[];N=(T-w)/(I=E-1),P=w,(L=new Array(E))[0]=Math.pow(10,P);for(var D=1;D<I;D++)P+=N,L[D]=Math.pow(10,P);return L[I]=Math.pow(10,T),L}(-2,1,w||10).map(function(T){return i.invert(T)})},m.copy=function(){return Ti(n,i.copy(),o.copy())},m}function sn(n){return n/Math.pow(10,Math.ceil(Math.log(n)/Math.LN10-1e-12))==1}v.prototype.beforeInit=function(){},v.prototype.afterInit=function(){},v.prototype.init=function(){var n=this,i=n.config;if(n.initParams(),i.data_url)n.convertUrlToData(i.data_url,i.data_mimeType,i.data_headers,i.data_keys,n.initWithData);else if(i.data_json)n.initWithData(n.convertJsonToData(i.data_json,i.data_keys));else if(i.data_rows)n.initWithData(n.convertRowsToData(i.data_rows));else{if(!i.data_columns)throw Error("url or json or rows or columns is required.");n.initWithData(n.convertColumnsToData(i.data_columns))}},v.prototype.initParams=function(){var n=this,i=n.d3,o=n.config;n.clipId="c3-"+(new Date).valueOf()+"-clip",n.clipIdForXAxis=n.clipId+"-xaxis",n.clipIdForYAxis=n.clipId+"-yaxis",n.clipIdForGrid=n.clipId+"-grid",n.clipIdForSubchart=n.clipId+"-subchart",n.clipPath=n.getClipPath(n.clipId),n.clipPathForXAxis=n.getClipPath(n.clipIdForXAxis),n.clipPathForYAxis=n.getClipPath(n.clipIdForYAxis),n.clipPathForGrid=n.getClipPath(n.clipIdForGrid),n.clipPathForSubchart=n.getClipPath(n.clipIdForSubchart),n.dragStart=null,n.dragging=!1,n.flowing=!1,n.cancelClick=!1,n.mouseover=void 0,n.transiting=!1,n.color=n.generateColor(),n.levelColor=n.generateLevelColor(),n.dataTimeParse=(o.data_xLocaltime?i.timeParse:i.utcParse)(n.config.data_xFormat),n.axisTimeFormat=o.axis_x_localtime?i.timeFormat:i.utcFormat,n.defaultAxisTimeFormat=function(u){return u.getMilliseconds()?i.timeFormat(".%L")(u):u.getSeconds()?i.timeFormat(":%S")(u):u.getMinutes()?i.timeFormat("%I:%M")(u):u.getHours()?i.timeFormat("%I %p")(u):u.getDay()&&1!==u.getDate()||1!==u.getDate()||u.getMonth()?i.timeFormat("%-m/%-d")(u):i.timeFormat("%Y/%-m/%-d")(u)},n.hiddenTargetIds=[],n.hiddenLegendIds=[],n.focusedTargetIds=[],n.defocusedTargetIds=[],n.xOrient=o.axis_rotated?o.axis_x_inner?"right":"left":o.axis_x_inner?"top":"bottom",n.yOrient=o.axis_rotated?o.axis_y_inner?"top":"bottom":o.axis_y_inner?"right":"left",n.y2Orient=o.axis_rotated?o.axis_y2_inner?"bottom":"top":o.axis_y2_inner?"left":"right",n.subXOrient=o.axis_rotated?"left":"bottom",n.isLegendRight="right"===o.legend_position,n.isLegendInset="inset"===o.legend_position,n.isLegendTop="top-left"===o.legend_inset_anchor||"top-right"===o.legend_inset_anchor,n.isLegendLeft="top-left"===o.legend_inset_anchor||"bottom-left"===o.legend_inset_anchor,n.legendStep=0,n.legendItemWidth=0,n.legendItemHeight=0,n.currentMaxTickWidths={x:0,y:0,y2:0},n.rotated_padding_left=30,n.rotated_padding_right=o.axis_rotated&&!o.axis_x_show?0:30,n.rotated_padding_top=5,n.withoutFadeIn={},n.intervalForObserveInserted=void 0,n.axes.subx=i.selectAll([])},v.prototype.initChartElements=function(){this.initBar&&this.initBar(),this.initLine&&this.initLine(),this.initArc&&this.initArc(),this.initGauge&&this.initGauge(),this.initText&&this.initText()},v.prototype.initWithData=function(n){var g,m,i=this,o=i.d3,u=i.config,w=!0;i.axis=new on(i),i.selectChart=u.bindto?"function"==typeof u.bindto.node?u.bindto:o.select(u.bindto):o.selectAll([]),i.selectChart.empty()&&(i.selectChart=o.select(document.createElement("div")).style("opacity",0),i.observeInserted(i.selectChart),w=!1),i.selectChart.html("").classed("c3",!0),i.data.xs={},i.data.targets=i.convertDataToTargets(n),u.data_filter&&(i.data.targets=i.data.targets.filter(u.data_filter)),u.data_hide&&i.addHiddenTargetIds(!0===u.data_hide?i.mapToIds(i.data.targets):u.data_hide),u.legend_hide&&i.addHiddenLegendIds(!0===u.legend_hide?i.mapToIds(i.data.targets):u.legend_hide),i.isStanfordGraphType()&&i.initStanfordData(),i.updateSizes(),i.updateScales(),i.x.domain(o.extent(i.getXDomain(i.data.targets))),i.y.domain(i.getYDomain(i.data.targets,"y")),i.y2.domain(i.getYDomain(i.data.targets,"y2")),i.subX.domain(i.x.domain()),i.subY.domain(i.y.domain()),i.subY2.domain(i.y2.domain()),i.orgXDomain=i.x.domain(),i.svg=i.selectChart.append("svg").style("overflow","hidden").on("mouseenter",function(){return u.onmouseover.call(i)}).on("mouseleave",function(){return u.onmouseout.call(i)}),i.config.svg_classname&&i.svg.attr("class",i.config.svg_classname),g=i.svg.append("defs"),i.clipChart=i.appendClip(g,i.clipId),i.clipXAxis=i.appendClip(g,i.clipIdForXAxis),i.clipYAxis=i.appendClip(g,i.clipIdForYAxis),i.clipGrid=i.appendClip(g,i.clipIdForGrid),i.clipSubchart=i.appendClip(g,i.clipIdForSubchart),i.updateSvgSize(),m=i.main=i.svg.append("g").attr("transform",i.getTranslate("main")),i.initPie&&i.initPie(),i.initDragZoom&&i.initDragZoom(),u.subchart_show&&i.initSubchart&&i.initSubchart(),i.initTooltip&&i.initTooltip(),i.initLegend&&i.initLegend(),i.initTitle&&i.initTitle(),i.initZoom&&i.initZoom(),i.isStanfordGraphType()&&i.drawColorScale(),u.subchart_show&&i.initSubchartBrush&&i.initSubchartBrush(),m.append("text").attr("class",k.text+" "+k.empty).attr("text-anchor","middle").attr("dominant-baseline","middle"),i.initRegion(),i.initGrid(),m.append("g").attr("clip-path",i.clipPath).attr("class",k.chart),u.grid_lines_front&&i.initGridLines(),i.initStanfordElements(),i.initEventRect(),i.initChartElements(),i.axis.init(),i.updateTargets(i.data.targets),u.axis_x_selection&&i.brush.selectionAsValue(i.getDefaultSelection()),w&&(i.updateDimension(),i.config.oninit.call(i),i.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1})),i.bindResize(),i.bindWindowFocus(),i.api.element=i.selectChart.node()},v.prototype.smoothLines=function(n,i){var o=this;"grid"===i&&n.each(function(){var u=o.d3.select(this),g=u.attr("x1"),m=u.attr("x2"),w=u.attr("y1"),T=u.attr("y2");u.attr({x1:Math.ceil(g),x2:Math.ceil(m),y1:Math.ceil(w),y2:Math.ceil(T)})})},v.prototype.updateSizes=function(){var n=this,i=n.config,o=n.legend?n.getLegendHeight():0,u=n.legend?n.getLegendWidth():0,g=n.isLegendRight||n.isLegendInset?0:o,m=n.hasArcType(),w=i.axis_rotated||m?0:n.getHorizontalAxisHeight("x"),T=i.axis_rotated||m?0:n.getHorizontalAxisHeight("x",!0),E=i.subchart_show&&!m?i.subchart_size_height+T:0;n.currentWidth=n.getCurrentWidth(),n.currentHeight=n.getCurrentHeight(),n.margin=i.axis_rotated?{top:n.getHorizontalAxisHeight("y2")+n.getCurrentPaddingTop(),right:m?0:n.getCurrentPaddingRight(),bottom:n.getHorizontalAxisHeight("y")+g+n.getCurrentPaddingBottom(),left:E+(m?0:n.getCurrentPaddingLeft())}:{top:4+n.getCurrentPaddingTop(),right:m?0:n.getCurrentPaddingRight(),bottom:w+E+g+n.getCurrentPaddingBottom(),left:m?0:n.getCurrentPaddingLeft()},n.margin2=i.axis_rotated?{top:n.margin.top,right:NaN,bottom:20+g,left:n.rotated_padding_left}:{top:n.currentHeight-E-g,right:NaN,bottom:T+g,left:n.margin.left},n.margin3={top:0,right:NaN,bottom:0,left:0},n.updateSizeForLegend&&n.updateSizeForLegend(o,u),n.width=n.currentWidth-n.margin.left-n.margin.right,n.height=n.currentHeight-n.margin.top-n.margin.bottom,n.width<0&&(n.width=0),n.height<0&&(n.height=0),n.width2=i.axis_rotated?n.margin.left-n.rotated_padding_left-n.rotated_padding_right:n.width,n.height2=i.axis_rotated?n.height:n.currentHeight-n.margin2.top-n.margin2.bottom,n.width2<0&&(n.width2=0),n.height2<0&&(n.height2=0),n.arcWidth=n.width-(n.isLegendRight?u+10:0),n.arcHeight=n.height-(n.isLegendRight?0:10),n.hasType("gauge")&&!i.gauge_fullCircle&&(n.arcHeight+=n.height-n.getGaugeLabelHeight()),n.updateRadius&&n.updateRadius(),n.isLegendRight&&m&&(n.margin3.left=n.arcWidth/2+1.1*n.radiusExpanded)},v.prototype.updateTargets=function(n){var i=this,o=i.config;i.updateTargetsForText(n),i.updateTargetsForBar(n),i.updateTargetsForLine(n),i.hasArcType()&&i.updateTargetsForArc&&i.updateTargetsForArc(n),o.subchart_show&&i.updateTargetsForSubchart&&i.updateTargetsForSubchart(n),i.showTargets()},v.prototype.showTargets=function(){var n=this;n.svg.selectAll("."+k.target).filter(function(i){return n.isTargetToShow(i.id)}).transition().duration(n.config.transition_duration).style("opacity",1)},v.prototype.redraw=function(n,i){var L,I,P,N,D,O,$,F,Z,it,vt,kt,bt,mt,dt,Zt,gt,ut,ft,le,Te,Ae,ve,pe,Pe,et,wt,Ce,ti,mn,Ke,o=this,u=o.main,g=o.d3,m=o.config,w=o.getShapeIndices(o.isAreaType),T=o.getShapeIndices(o.isBarType),E=o.getShapeIndices(o.isLineType),Rt=o.hasArcType(),ie=o.filterTargetsToShow(o.data.targets),or=o.xv.bind(o);if(L=Ht(n=n||{},"withY",!0),I=Ht(n,"withSubchart",!0),P=Ht(n,"withTransition",!0),O=Ht(n,"withTransform",!1),$=Ht(n,"withUpdateXDomain",!1),F=Ht(n,"withUpdateOrgXDomain",!1),Z=Ht(n,"withTrimXDomain",!0),bt=Ht(n,"withUpdateXAxis",$),it=Ht(n,"withLegend",!1),vt=Ht(n,"withEventRect",!0),kt=Ht(n,"withDimension",!0),N=Ht(n,"withTransitionForExit",P),D=Ht(n,"withTransitionForAxis",P),ft=P?m.transition_duration:0,le=N?ft:0,Te=D?ft:0,i=i||o.axis.generateTransitions(Te),it&&m.legend_show?o.updateLegend(o.mapToIds(o.data.targets),n,i):kt&&o.updateDimension(!0),o.isCategorized()&&0===ie.length&&o.x.domain([0,o.axes.x.selectAll(".tick").size()]),ie.length?(o.updateXDomain(ie,$,F,Z),m.axis_x_tick_values||(et=o.axis.updateXAxisTickValues(ie))):(o.xAxis.tickValues([]),o.subXAxis.tickValues([])),m.zoom_rescale&&!n.flow&&(ti=o.x.orgDomain()),o.y.domain(o.getYDomain(ie,"y",ti)),o.y2.domain(o.getYDomain(ie,"y2",ti)),!m.axis_y_tick_values&&m.axis_y_tick_count&&o.yAxis.tickValues(o.axis.generateTickValues(o.y.domain(),m.axis_y_tick_count)),!m.axis_y2_tick_values&&m.axis_y2_tick_count&&o.y2Axis.tickValues(o.axis.generateTickValues(o.y2.domain(),m.axis_y2_tick_count)),o.axis.redraw(Te,Rt),o.axis.updateLabels(P),($||bt)&&ie.length)if(m.axis_x_tick_culling&&et){for(wt=1;wt<et.length;wt++)if(et.length/wt<m.axis_x_tick_culling_max){Ce=wt;break}o.svg.selectAll("."+k.axisX+" .tick text").each(function(Be){var xn=et.indexOf(Be);xn>=0&&g.select(this).style("display",xn%Ce?"none":"block")})}else o.svg.selectAll("."+k.axisX+" .tick text").style("display","block");mt=o.generateDrawArea?o.generateDrawArea(w,!1):void 0,dt=o.generateDrawBar?o.generateDrawBar(T):void 0,Zt=o.generateDrawLine?o.generateDrawLine(E,!1):void 0,gt=o.generateXYForText(w,T,E,!0),ut=o.generateXYForText(w,T,E,!1),o.updateCircleY(),mn=(o.config.axis_rotated?o.circleY:o.circleX).bind(o),Ke=(o.config.axis_rotated?o.circleX:o.circleY).bind(o),L&&(o.subY.domain(o.getYDomain(ie,"y")),o.subY2.domain(o.getYDomain(ie,"y2"))),o.updateXgridFocus(),u.select("text."+k.text+"."+k.empty).attr("x",o.width/2).attr("y",o.height/2).text(m.data_empty_label_text).transition().style("opacity",ie.length?0:1),vt&&o.redrawEventRect(),o.updateGrid(ft),o.updateStanfordElements(ft),o.updateRegion(ft),o.updateBar(le),o.updateLine(le),o.updateArea(le),o.updateCircle(mn,Ke),o.hasDataLabel()&&o.updateText(gt,ut,le),o.redrawTitle&&o.redrawTitle(),o.redrawArc&&o.redrawArc(ft,le,O),m.subchart_show&&o.redrawSubchart&&o.redrawSubchart(I,i,ft,le,w,T,E),o.isStanfordGraphType()&&o.drawColorScale(),u.selectAll("."+k.selectedCircles).filter(o.isBarType.bind(o)).selectAll("circle").remove(),n.flow&&(pe=o.generateFlow({targets:ie,flow:n.flow,duration:n.flow.duration,drawBar:dt,drawLine:Zt,drawArea:mt,cx:mn,cy:Ke,xv:or,xForText:gt,yForText:ut})),ft&&o.isTabVisible()?(Pe=g.transition().duration(ft),Ae=[],[o.redrawBar(dt,!0,Pe),o.redrawLine(Zt,!0,Pe),o.redrawArea(mt,!0,Pe),o.redrawCircle(mn,Ke,!0,Pe),o.redrawText(gt,ut,n.flow,!0,Pe),o.redrawRegion(!0,Pe),o.redrawGrid(!0,Pe)].forEach(function(Be){Be.forEach(function(xn){Ae.push(xn)})}),ve=o.generateWait(),Ae.forEach(function(Be){ve.add(Be)}),ve(function(){pe&&pe(),m.onrendered&&m.onrendered.call(o)})):(o.redrawBar(dt),o.redrawLine(Zt),o.redrawArea(mt),o.redrawCircle(mn,Ke),o.redrawText(gt,ut,n.flow),o.redrawRegion(),o.redrawGrid(),pe&&pe(),m.onrendered&&m.onrendered.call(o)),o.mapToIds(o.data.targets).forEach(function(Be){o.withoutFadeIn[Be]=!0})},v.prototype.updateAndRedraw=function(n){var u,i=this,o=i.config;(n=n||{}).withTransition=Ht(n,"withTransition",!0),n.withTransform=Ht(n,"withTransform",!1),n.withLegend=Ht(n,"withLegend",!1),n.withUpdateXDomain=Ht(n,"withUpdateXDomain",!0),n.withUpdateOrgXDomain=Ht(n,"withUpdateOrgXDomain",!0),n.withTransitionForExit=!1,n.withTransitionForTransform=Ht(n,"withTransitionForTransform",n.withTransition),i.updateSizes(),n.withLegend&&o.legend_show||(u=i.axis.generateTransitions(n.withTransitionForAxis?o.transition_duration:0),i.updateScales(),i.updateSvgSize(),i.transformAll(n.withTransitionForTransform,u)),i.redraw(n,u)},v.prototype.redrawWithoutRescale=function(){this.redraw({withY:!1,withSubchart:!1,withEventRect:!1,withTransitionForAxis:!1})},v.prototype.isTimeSeries=function(){return"timeseries"===this.config.axis_x_type},v.prototype.isCategorized=function(){return this.config.axis_x_type.indexOf("categor")>=0},v.prototype.isCustomX=function(){var i=this.config;return!this.isTimeSeries()&&(i.data_x||At(i.data_xs))},v.prototype.isTimeSeriesY=function(){return"timeseries"===this.config.axis_y_type},v.prototype.getTranslate=function(n){var u,g,i=this,o=i.config;return"main"===n?(u=Jt(i.margin.left),g=Jt(i.margin.top)):"context"===n?(u=Jt(i.margin2.left),g=Jt(i.margin2.top)):"legend"===n?(u=i.margin3.left,g=i.margin3.top):"x"===n?(u=0,g=o.axis_rotated?0:i.height):"y"===n?(u=0,g=o.axis_rotated?i.height:0):"y2"===n?(u=o.axis_rotated?0:i.width,g=o.axis_rotated?1:0):"subx"===n?(u=0,g=o.axis_rotated?0:i.height2):"arc"===n&&(u=i.arcWidth/2,g=i.arcHeight/2-(i.hasType("gauge")?6:0)),"translate("+u+","+g+")"},v.prototype.initialOpacity=function(n){return null!==n.value&&this.withoutFadeIn[n.id]?1:0},v.prototype.initialOpacityForCircle=function(n){return null!==n.value&&this.withoutFadeIn[n.id]?this.opacityForCircle(n):0},v.prototype.opacityForCircle=function(n){var o=(Wt(this.config.point_show)?this.config.point_show(n):this.config.point_show)||this.isStanfordType(n)?1:0;return Q(n.value)?this.isScatterType(n)?.5:o:0},v.prototype.opacityForText=function(){return this.hasDataLabel()?1:0},v.prototype.xx=function(n){return n?this.x(n.x):null},v.prototype.xvCustom=function(n,i){var o=this,u=i?n[i]:n.value;return o.isTimeSeries()?u=o.parseDate(n.value):o.isCategorized()&&"string"==typeof n.value&&(u=o.config.axis_x_categories.indexOf(n.value)),Math.ceil(o.x(u))},v.prototype.yvCustom=function(n,i){return Math.ceil((n.axis&&"y2"===n.axis?this.y2:this.y)(i?n[i]:n.value))},v.prototype.xv=function(n){var i=this,o=n.value;return i.isTimeSeries()?o=i.parseDate(n.value):i.isCategorized()&&"string"==typeof n.value&&(o=i.config.axis_x_categories.indexOf(n.value)),Math.ceil(i.x(o))},v.prototype.yv=function(n){return Math.ceil((n.axis&&"y2"===n.axis?this.y2:this.y)(n.value))},v.prototype.subxx=function(n){return n?this.subX(n.x):null},v.prototype.transformMain=function(n,i){var u,g,m,o=this;i&&i.axisX?u=i.axisX:(u=o.main.select("."+k.axisX),n&&(u=u.transition())),i&&i.axisY?g=i.axisY:(g=o.main.select("."+k.axisY),n&&(g=g.transition())),i&&i.axisY2?m=i.axisY2:(m=o.main.select("."+k.axisY2),n&&(m=m.transition())),(n?o.main.transition():o.main).attr("transform",o.getTranslate("main")),u.attr("transform",o.getTranslate("x")),g.attr("transform",o.getTranslate("y")),m.attr("transform",o.getTranslate("y2")),o.main.select("."+k.chartArcs).attr("transform",o.getTranslate("arc"))},v.prototype.transformAll=function(n,i){var o=this;o.transformMain(n,i),o.config.subchart_show&&o.transformContext(n,i),o.legend&&o.transformLegend(n)},v.prototype.updateSvgSize=function(){var n=this,i=n.svg.select("."+k.brush+" .overlay");n.svg.attr("width",n.currentWidth).attr("height",n.currentHeight),n.svg.selectAll(["#"+n.clipId,"#"+n.clipIdForGrid]).select("rect").attr("width",n.width).attr("height",n.height),n.svg.select("#"+n.clipIdForXAxis).select("rect").attr("x",n.getXAxisClipX.bind(n)).attr("y",n.getXAxisClipY.bind(n)).attr("width",n.getXAxisClipWidth.bind(n)).attr("height",n.getXAxisClipHeight.bind(n)),n.svg.select("#"+n.clipIdForYAxis).select("rect").attr("x",n.getYAxisClipX.bind(n)).attr("y",n.getYAxisClipY.bind(n)).attr("width",n.getYAxisClipWidth.bind(n)).attr("height",n.getYAxisClipHeight.bind(n)),n.svg.select("#"+n.clipIdForSubchart).select("rect").attr("width",n.width).attr("height",i.size()&&i.attr("height")||0),n.selectChart.style("max-height",n.currentHeight+"px")},v.prototype.updateDimension=function(n){var i=this;n||(i.config.axis_rotated?(i.axes.x.call(i.xAxis),i.axes.subx.call(i.subXAxis)):(i.axes.y.call(i.yAxis),i.axes.y2.call(i.y2Axis))),i.updateSizes(),i.updateScales(),i.updateSvgSize(),i.transformAll(!1)},v.prototype.observeInserted=function(n){var o,i=this;typeof MutationObserver>"u"?window.console.error("MutationObserver not defined."):(o=new MutationObserver(function(u){u.forEach(function(g){"childList"===g.type&&g.previousSibling&&(o.disconnect(),i.intervalForObserveInserted=window.setInterval(function(){n.node().parentNode&&(window.clearInterval(i.intervalForObserveInserted),i.updateDimension(),i.brush&&i.brush.update(),i.config.oninit.call(i),i.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransition:!1,withTransitionForTransform:!1,withLegend:!0}),n.transition().style("opacity",1))},10))})})).observe(n.node(),{attributes:!0,childList:!0,characterData:!0})},v.prototype.bindResize=function(){var n=this,i=n.config;n.resizeFunction=n.generateResize(),n.resizeFunction.add(function(){i.onresize.call(n)}),i.resize_auto&&n.resizeFunction.add(function(){void 0!==n.resizeTimeout&&window.clearTimeout(n.resizeTimeout),n.resizeTimeout=window.setTimeout(function(){delete n.resizeTimeout,n.updateAndRedraw({withUpdateXDomain:!1,withUpdateOrgXDomain:!1,withTransition:!1,withTransitionForTransform:!1,withLegend:!0}),n.brush&&n.brush.update()},100)}),n.resizeFunction.add(function(){i.onresized.call(n)}),n.resizeIfElementDisplayed=function(){null==n.api||!n.api.element.offsetParent||n.resizeFunction()},window.addEventListener("resize",n.resizeIfElementDisplayed,!1)},v.prototype.bindWindowFocus=function(){var n=this;this.windowFocusHandler||(this.windowFocusHandler=function(){n.redraw()},window.addEventListener("focus",this.windowFocusHandler))},v.prototype.unbindWindowFocus=function(){window.removeEventListener("focus",this.windowFocusHandler),delete this.windowFocusHandler},v.prototype.generateResize=function(){var n=[];function i(){n.forEach(function(o){o()})}return i.add=function(o){n.push(o)},i.remove=function(o){for(var u=0;u<n.length;u++)if(n[u]===o){n.splice(u,1);break}},i},v.prototype.endall=function(n,i){var o=0;n.each(function(){++o}).on("end",function(){--o||i.apply(this,arguments)})},v.prototype.generateWait=function(){var n=this,i=[],o=function(u){var g=setInterval(function(){if(n.isTabVisible()){var m=0;i.forEach(function(w){if(w.empty())m+=1;else try{w.transition()}catch{m+=1}}),m===i.length&&(clearInterval(g),u&&u())}},50)};return o.add=function(u){i.push(u)},o},v.prototype.parseDate=function(n){var o;return n instanceof Date?o=n:"string"==typeof n?o=this.dataTimeParse(n):("object"==typeof n||"number"==typeof n&&!isNaN(n))&&(o=new Date(+n)),(!o||isNaN(+o))&&window.console.error("Failed to parse x '"+n+"' to Date object"),o},v.prototype.isTabVisible=function(){return!document.hidden},v.prototype.getPathBox=yn,v.prototype.CLASS=k,"SVGPathSeg"in window||(window.SVGPathSeg=function(n,i,o){this.pathSegType=n,this.pathSegTypeAsLetter=i,this._owningPathSegList=o},window.SVGPathSeg.prototype.classname="SVGPathSeg",window.SVGPathSeg.PATHSEG_UNKNOWN=0,window.SVGPathSeg.PATHSEG_CLOSEPATH=1,window.SVGPathSeg.PATHSEG_MOVETO_ABS=2,window.SVGPathSeg.PATHSEG_MOVETO_REL=3,window.SVGPathSeg.PATHSEG_LINETO_ABS=4,window.SVGPathSeg.PATHSEG_LINETO_REL=5,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS=6,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL=7,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS=8,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL=9,window.SVGPathSeg.PATHSEG_ARC_ABS=10,window.SVGPathSeg.PATHSEG_ARC_REL=11,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS=12,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL=13,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS=14,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL=15,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS=16,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL=17,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS=18,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL=19,window.SVGPathSeg.prototype._segmentChanged=function(){this._owningPathSegList&&this._owningPathSegList.segmentChanged(this)},window.SVGPathSegClosePath=function(n){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CLOSEPATH,"z",n)},window.SVGPathSegClosePath.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegClosePath.prototype.toString=function(){return"[object SVGPathSegClosePath]"},window.SVGPathSegClosePath.prototype._asPathString=function(){return this.pathSegTypeAsLetter},window.SVGPathSegClosePath.prototype.clone=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathSegMovetoAbs=function(n,i,o){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_ABS,"M",n),this._x=i,this._y=o},window.SVGPathSegMovetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoAbs.prototype.toString=function(){return"[object SVGPathSegMovetoAbs]"},window.SVGPathSegMovetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegMovetoAbs.prototype.clone=function(){return new window.SVGPathSegMovetoAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n,this._segmentChanged()},enumerable:!0}),window.SVGPathSegMovetoRel=function(n,i,o){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_REL,"m",n),this._x=i,this._y=o},window.SVGPathSegMovetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoRel.prototype.toString=function(){return"[object SVGPathSegMovetoRel]"},window.SVGPathSegMovetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegMovetoRel.prototype.clone=function(){return new window.SVGPathSegMovetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoAbs=function(n,i,o){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_ABS,"L",n),this._x=i,this._y=o},window.SVGPathSegLinetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoAbs.prototype.toString=function(){return"[object SVGPathSegLinetoAbs]"},window.SVGPathSegLinetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegLinetoAbs.prototype.clone=function(){return new window.SVGPathSegLinetoAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoRel=function(n,i,o){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_REL,"l",n),this._x=i,this._y=o},window.SVGPathSegLinetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoRel.prototype.toString=function(){return"[object SVGPathSegLinetoRel]"},window.SVGPathSegLinetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegLinetoRel.prototype.clone=function(){return new window.SVGPathSegLinetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicAbs=function(n,i,o,u,g,m,w){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS,"C",n),this._x=i,this._y=o,this._x1=u,this._y1=g,this._x2=m,this._y2=w},window.SVGPathSegCurvetoCubicAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicAbs]"},window.SVGPathSegCurvetoCubicAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicAbs(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x1",{get:function(){return this._x1},set:function(n){this._x1=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y1",{get:function(){return this._y1},set:function(n){this._y1=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x2",{get:function(){return this._x2},set:function(n){this._x2=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y2",{get:function(){return this._y2},set:function(n){this._y2=n,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicRel=function(n,i,o,u,g,m,w){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL,"c",n),this._x=i,this._y=o,this._x1=u,this._y1=g,this._x2=m,this._y2=w},window.SVGPathSegCurvetoCubicRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicRel]"},window.SVGPathSegCurvetoCubicRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicRel(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x1",{get:function(){return this._x1},set:function(n){this._x1=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y1",{get:function(){return this._y1},set:function(n){this._y1=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x2",{get:function(){return this._x2},set:function(n){this._x2=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y2",{get:function(){return this._y2},set:function(n){this._y2=n,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticAbs=function(n,i,o,u,g){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS,"Q",n),this._x=i,this._y=o,this._x1=u,this._y1=g},window.SVGPathSegCurvetoQuadraticAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticAbs]"},window.SVGPathSegCurvetoQuadraticAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x1",{get:function(){return this._x1},set:function(n){this._x1=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y1",{get:function(){return this._y1},set:function(n){this._y1=n,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticRel=function(n,i,o,u,g){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL,"q",n),this._x=i,this._y=o,this._x1=u,this._y1=g},window.SVGPathSegCurvetoQuadraticRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticRel]"},window.SVGPathSegCurvetoQuadraticRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticRel(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x1",{get:function(){return this._x1},set:function(n){this._x1=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y1",{get:function(){return this._y1},set:function(n){this._y1=n,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcAbs=function(n,i,o,u,g,m,w,T){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_ABS,"A",n),this._x=i,this._y=o,this._r1=u,this._r2=g,this._angle=m,this._largeArcFlag=w,this._sweepFlag=T},window.SVGPathSegArcAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcAbs.prototype.toString=function(){return"[object SVGPathSegArcAbs]"},window.SVGPathSegArcAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},window.SVGPathSegArcAbs.prototype.clone=function(){return new window.SVGPathSegArcAbs(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(window.SVGPathSegArcAbs.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r1",{get:function(){return this._r1},set:function(n){this._r1=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r2",{get:function(){return this._r2},set:function(n){this._r2=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"angle",{get:function(){return this._angle},set:function(n){this._angle=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(n){this._largeArcFlag=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(n){this._sweepFlag=n,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcRel=function(n,i,o,u,g,m,w,T){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_REL,"a",n),this._x=i,this._y=o,this._r1=u,this._r2=g,this._angle=m,this._largeArcFlag=w,this._sweepFlag=T},window.SVGPathSegArcRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcRel.prototype.toString=function(){return"[object SVGPathSegArcRel]"},window.SVGPathSegArcRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},window.SVGPathSegArcRel.prototype.clone=function(){return new window.SVGPathSegArcRel(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(window.SVGPathSegArcRel.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r1",{get:function(){return this._r1},set:function(n){this._r1=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r2",{get:function(){return this._r2},set:function(n){this._r2=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"angle",{get:function(){return this._angle},set:function(n){this._angle=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(n){this._largeArcFlag=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(n){this._sweepFlag=n,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalAbs=function(n,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS,"H",n),this._x=i},window.SVGPathSegLinetoHorizontalAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalAbs]"},window.SVGPathSegLinetoHorizontalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},window.SVGPathSegLinetoHorizontalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalAbs(void 0,this._x)},Object.defineProperty(window.SVGPathSegLinetoHorizontalAbs.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalRel=function(n,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL,"h",n),this._x=i},window.SVGPathSegLinetoHorizontalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalRel.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalRel]"},window.SVGPathSegLinetoHorizontalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},window.SVGPathSegLinetoHorizontalRel.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalRel(void 0,this._x)},Object.defineProperty(window.SVGPathSegLinetoHorizontalRel.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalAbs=function(n,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS,"V",n),this._y=i},window.SVGPathSegLinetoVerticalAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoVerticalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalAbs]"},window.SVGPathSegLinetoVerticalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},window.SVGPathSegLinetoVerticalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalAbs(void 0,this._y)},Object.defineProperty(window.SVGPathSegLinetoVerticalAbs.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalRel=function(n,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL,"v",n),this._y=i},window.SVGPathSegLinetoVerticalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoVerticalRel.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalRel]"},window.SVGPathSegLinetoVerticalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},window.SVGPathSegLinetoVerticalRel.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalRel(void 0,this._y)},Object.defineProperty(window.SVGPathSegLinetoVerticalRel.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothAbs=function(n,i,o,u,g){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS,"S",n),this._x=i,this._y=o,this._x2=u,this._y2=g},window.SVGPathSegCurvetoCubicSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothAbs]"},window.SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicSmoothAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x2",{get:function(){return this._x2},set:function(n){this._x2=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y2",{get:function(){return this._y2},set:function(n){this._y2=n,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothRel=function(n,i,o,u,g){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL,"s",n),this._x=i,this._y=o,this._x2=u,this._y2=g},window.SVGPathSegCurvetoCubicSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothRel]"},window.SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x2",{get:function(){return this._x2},set:function(n){this._x2=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y2",{get:function(){return this._y2},set:function(n){this._y2=n,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothAbs=function(n,i,o){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS,"T",n),this._x=i,this._y=o},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothAbs]"},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothRel=function(n,i,o){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL,"t",n),this._x=i,this._y=o},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothRel]"},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n,this._segmentChanged()},enumerable:!0}),window.SVGPathElement.prototype.createSVGPathSegClosePath=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathElement.prototype.createSVGPathSegMovetoAbs=function(n,i){return new window.SVGPathSegMovetoAbs(void 0,n,i)},window.SVGPathElement.prototype.createSVGPathSegMovetoRel=function(n,i){return new window.SVGPathSegMovetoRel(void 0,n,i)},window.SVGPathElement.prototype.createSVGPathSegLinetoAbs=function(n,i){return new window.SVGPathSegLinetoAbs(void 0,n,i)},window.SVGPathElement.prototype.createSVGPathSegLinetoRel=function(n,i){return new window.SVGPathSegLinetoRel(void 0,n,i)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs=function(n,i,o,u,g,m){return new window.SVGPathSegCurvetoCubicAbs(void 0,n,i,o,u,g,m)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel=function(n,i,o,u,g,m){return new window.SVGPathSegCurvetoCubicRel(void 0,n,i,o,u,g,m)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs=function(n,i,o,u){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,n,i,o,u)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel=function(n,i,o,u){return new window.SVGPathSegCurvetoQuadraticRel(void 0,n,i,o,u)},window.SVGPathElement.prototype.createSVGPathSegArcAbs=function(n,i,o,u,g,m,w){return new window.SVGPathSegArcAbs(void 0,n,i,o,u,g,m,w)},window.SVGPathElement.prototype.createSVGPathSegArcRel=function(n,i,o,u,g,m,w){return new window.SVGPathSegArcRel(void 0,n,i,o,u,g,m,w)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs=function(n){return new window.SVGPathSegLinetoHorizontalAbs(void 0,n)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel=function(n){return new window.SVGPathSegLinetoHorizontalRel(void 0,n)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs=function(n){return new window.SVGPathSegLinetoVerticalAbs(void 0,n)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel=function(n){return new window.SVGPathSegLinetoVerticalRel(void 0,n)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs=function(n,i,o,u){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,n,i,o,u)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel=function(n,i,o,u){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,n,i,o,u)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs=function(n,i){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,n,i)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel=function(n,i){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,n,i)},"getPathSegAtLength"in window.SVGPathElement.prototype||(window.SVGPathElement.prototype.getPathSegAtLength=function(n){if(void 0===n||!isFinite(n))throw"Invalid arguments.";var i=document.createElementNS("http://www.w3.org/2000/svg","path");
1i.setAttribute("d",this.getAttribute("d"));var o=i.pathSegList.numberOfItems-1;if(o<=0)return 0;do{if(i.pathSegList.removeItem(o),n>i.getTotalLength())break;o--}while(o>0);return o})),"SVGPathSegList"in window||(window.SVGPathSegList=function(n){this._pathElement=n,this._list=this._parsePath(this._pathElement.getAttribute("d")),this._mutationObserverConfig={attributes:!0,attributeFilter:["d"]},this._pathElementMutationObserver=new MutationObserver(this._updateListFromPathMutations.bind(this)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.classname="SVGPathSegList",Object.defineProperty(window.SVGPathSegList.prototype,"numberOfItems",{get:function(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"pathSegList",{get:function(){return this._pathSegList||(this._pathSegList=new window.SVGPathSegList(this)),this._pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"normalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedNormalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),window.SVGPathSegList.prototype._checkPathSynchronizedToList=function(){this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords())},window.SVGPathSegList.prototype._updateListFromPathMutations=function(n){if(this._pathElement){var i=!1;n.forEach(function(o){"d"==o.attributeName&&(i=!0)}),i&&(this._list=this._parsePath(this._pathElement.getAttribute("d")))}},window.SVGPathSegList.prototype._writeListToPath=function(){this._pathElementMutationObserver.disconnect(),this._pathElement.setAttribute("d",window.SVGPathSegList._pathSegArrayAsString(this._list)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.segmentChanged=function(n){this._writeListToPath()},window.SVGPathSegList.prototype.clear=function(){this._checkPathSynchronizedToList(),this._list.forEach(function(n){n._owningPathSegList=null}),this._list=[],this._writeListToPath()},window.SVGPathSegList.prototype.initialize=function(n){return this._checkPathSynchronizedToList(),this._list=[n],n._owningPathSegList=this,this._writeListToPath(),n},window.SVGPathSegList.prototype._checkValidIndex=function(n){if(isNaN(n)||n<0||n>=this.numberOfItems)throw"INDEX_SIZE_ERR"},window.SVGPathSegList.prototype.getItem=function(n){return this._checkPathSynchronizedToList(),this._checkValidIndex(n),this._list[n]},window.SVGPathSegList.prototype.insertItemBefore=function(n,i){return this._checkPathSynchronizedToList(),i>this.numberOfItems&&(i=this.numberOfItems),n._owningPathSegList&&(n=n.clone()),this._list.splice(i,0,n),n._owningPathSegList=this,this._writeListToPath(),n},window.SVGPathSegList.prototype.replaceItem=function(n,i){return this._checkPathSynchronizedToList(),n._owningPathSegList&&(n=n.clone()),this._checkValidIndex(i),this._list[i]=n,n._owningPathSegList=this,this._writeListToPath(),n},window.SVGPathSegList.prototype.removeItem=function(n){this._checkPathSynchronizedToList(),this._checkValidIndex(n);var i=this._list[n];return this._list.splice(n,1),this._writeListToPath(),i},window.SVGPathSegList.prototype.appendItem=function(n){return this._checkPathSynchronizedToList(),n._owningPathSegList&&(n=n.clone()),this._list.push(n),n._owningPathSegList=this,this._writeListToPath(),n},window.SVGPathSegList._pathSegArrayAsString=function(n){var i="",o=!0;return n.forEach(function(u){o?(o=!1,i+=u._asPathString()):i+=" "+u._asPathString()}),i},window.SVGPathSegList.prototype._parsePath=function(n){if(!n||0==n.length)return[];var i=this,o=function(){this.pathSegList=[]};o.prototype.appendSegment=function(T){this.pathSegList.push(T)};var u=function(T){this._string=T,this._currentIndex=0,this._endIndex=this._string.length,this._previousCommand=window.SVGPathSeg.PATHSEG_UNKNOWN,this._skipOptionalSpaces()};
vendor: 4,105 bytes, line 1
1u.prototype._isCurrentSpace=function(){var T=this._string[this._currentIndex];return T<=" "&&(" "==T||"\n"==T||"\t"==T||"\r"==T||"\f"==T)},u.prototype._skipOptionalSpaces=function(){for(;this._currentIndex<this._endIndex&&this._isCurrentSpace();)this._currentIndex++;return this._currentIndex<this._endIndex},u.prototype._skipOptionalSpacesOrDelimiter=function(){return!(this._currentIndex<this._endIndex&&!this._isCurrentSpace()&&","!=this._string.charAt(this._currentIndex))&&(this._skipOptionalSpaces()&&this._currentIndex<this._endIndex&&","==this._string.charAt(this._currentIndex)&&(this._currentIndex++,this._skipOptionalSpaces()),this._currentIndex<this._endIndex)},u.prototype.hasMoreData=function(){return this._currentIndex<this._endIndex},u.prototype.peekSegmentType=function(){return this._pathSegTypeFromChar(this._string[this._currentIndex])},u.prototype._pathSegTypeFromChar=function(T){switch(T){case"Z":case"z":return window.SVGPathSeg.PATHSEG_CLOSEPATH;case"M":return window.SVGPathSeg.PATHSEG_MOVETO_ABS;case"m":return window.SVGPathSeg.PATHSEG_MOVETO_REL;case"L":return window.SVGPathSeg.PATHSEG_LINETO_ABS;case"l":return window.SVGPathSeg.PATHSEG_LINETO_REL;case"C":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS;case"c":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL;case"Q":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS;case"q":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL;case"A":return window.SVGPathSeg.PATHSEG_ARC_ABS;case"a":return window.SVGPathSeg.PATHSEG_ARC_REL;case"H":return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS;case"h":return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL;case"V":return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS;case"v":return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL;case"S":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS;case"s":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL;case"T":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS;case"t":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL;default:return window.SVGPathSeg.PATHSEG_UNKNOWN}},u.prototype._nextCommandHelper=function(T,E){return("+"==T||"-"==T||"."==T||T>="0"&&T<="9")&&E!=window.SVGPathSeg.PATHSEG_CLOSEPATH?E==window.SVGPathSeg.PATHSEG_MOVETO_ABS?window.SVGPathSeg.PATHSEG_LINETO_ABS:E==window.SVGPathSeg.PATHSEG_MOVETO_REL?window.SVGPathSeg.PATHSEG_LINETO_REL:E:window.SVGPathSeg.PATHSEG_UNKNOWN},u.prototype.initialCommandIsMoveTo=function(){if(!this.hasMoreData())return!0;var T=this.peekSegmentType();return T==window.SVGPathSeg.PATHSEG_MOVETO_ABS||T==window.SVGPathSeg.PATHSEG_MOVETO_REL},u.prototype._parseNumber=function(){var T=0,E=0,L=1,I=0,P=1,N=1,D=this._currentIndex;if(this._skipOptionalSpaces(),this._currentIndex<this._endIndex&&"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:this._currentIndex<this._endIndex&&"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,P=-1),!(this._currentIndex==this._endIndex||(this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")&&"."!=this._string.charAt(this._currentIndex))){for(var O=this._currentIndex;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)this._currentIndex++;if(this._currentIndex!=O)for(var $=this._currentIndex-1,F=1;$>=O;)E+=F*(this._string.charAt($--)-"0"),F*=10;if(this._currentIndex<this._endIndex&&"."==this._string.charAt(this._currentIndex)){if(this._currentIndex++,this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)L*=10,I+=(this._string.charAt(this._currentIndex)-"0")/L,this._currentIndex+=1}if(this._currentIndex!=D&&this._currentIndex+1<this._endIndex&&("e"==this._string.charAt(this._currentIndex)||"E"==this._string.charAt(this._currentIndex))&&"x"!=this._string.charAt(this._currentIndex+1)&&"m"!=this._string.charAt(this._currentIndex+1)){if
1(this._currentIndex++,"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,N=-1),this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)T*=10,T+=this._string.charAt(this._currentIndex)-"0",this._currentIndex++}var Z=E+I;if(Z*=P,T&&(Z*=Math.pow(10,N*T)),D!=this._currentIndex)return this._skipOptionalSpacesOrDelimiter(),Z}},u.prototype._parseArcFlag=function(){if(!(this._currentIndex>=this._endIndex)){var T=!1,E=this._string.charAt(this._currentIndex++);if("0"==E)T=!1;else{if("1"!=E)return;T=!0}return this._skipOptionalSpacesOrDelimiter(),T}},u.prototype.parseSegment=function(){var T=this._string[this._currentIndex],E=this._pathSegTypeFromChar(T);if(E==window.SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand==window.SVGPathSeg.PATHSEG_UNKNOWN||(E=this._nextCommandHelper(T,this._previousCommand))==window.SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=E,E){case window.SVGPathSeg.PATHSEG_MOVETO_REL:return new window.SVGPathSegMovetoRel(i,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_MOVETO_ABS:return new window.SVGPathSegMovetoAbs(i,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_REL:return new window.SVGPathSegLinetoRel(i,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_ABS:return new window.SVGPathSegLinetoAbs(i,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new window.SVGPathSegLinetoHorizontalRel(i,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new window.SVGPathSegLinetoHorizontalAbs(i,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new window.SVGPathSegLinetoVerticalRel(i,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new window.SVGPathSegLinetoVerticalAbs(i,this._parseNumber());case window.SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new window.SVGPathSegClosePath(i);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:var L={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new window.SVGPathSegCurvetoCubicRel(i,L.x,L.y,L.x1,L.y1,L.x2,L.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:return L={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicAbs(i,L.x,L.y,L.x1,L.y1,L.x2,L.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:return L={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothRel(i,L.x,L.y,L.x2,L.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:return L={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothAbs(i,L.x,L.y,L.x2,L.y2);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:return L={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticRel(i,L.x,L.y,L.x1,L.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:return L={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticAbs(i,L.x,L.y,L.x1,L.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new window.SVGPathSegCurvetoQuadraticSmoothRel(i,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new window.SVGPathSegCurvetoQuadraticSmoothAbs(i,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_ARC_REL:return L={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()}
vendor: 14,847 bytes, line 1
1,new window.SVGPathSegArcRel(i,L.x,L.y,L.x1,L.y1,L.arcAngle,L.arcLarge,L.arcSweep);case window.SVGPathSeg.PATHSEG_ARC_ABS:return L={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcAbs(i,L.x,L.y,L.x1,L.y1,L.arcAngle,L.arcLarge,L.arcSweep);default:throw"Unknown path seg type."}};var g=new o,m=new u(n);if(!m.initialCommandIsMoveTo())return[];for(;m.hasMoreData();){var w=m.parseSegment();if(!w)return[];g.appendSegment(w)}return g.pathSegList}),String.prototype.padEnd||(String.prototype.padEnd=function(i,o){return i>>=0,o=String(typeof o<"u"?o:" "),this.length>i?String(this):((i-=this.length)>o.length&&(o+=o.repeat(i/o.length)),String(this)+o.slice(0,i))}),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(i,o){if(null==i)throw new TypeError("Cannot convert undefined or null to object");for(var u=Object(i),g=1;g<arguments.length;g++){var m=arguments[g];if(null!=m)for(var w in m)Object.prototype.hasOwnProperty.call(m,w)&&(u[w]=m[w])}return u},writable:!0,configurable:!0}),(nt.prototype.axis=function(){}).labels=function(n){var i=this.internal;arguments.length&&(Object.keys(n).forEach(function(o){i.axis.setLabelText(o,n[o])}),i.axis.updateLabels())},nt.prototype.axis.max=function(n){var i=this.internal,o=i.config;if(!arguments.length)return{x:o.axis_x_max,y:o.axis_y_max,y2:o.axis_y2_max};"object"==typeof n?(Q(n.x)&&(o.axis_x_max=n.x),Q(n.y)&&(o.axis_y_max=n.y),Q(n.y2)&&(o.axis_y2_max=n.y2)):o.axis_y_max=o.axis_y2_max=n,i.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})},nt.prototype.axis.min=function(n){var i=this.internal,o=i.config;if(!arguments.length)return{x:o.axis_x_min,y:o.axis_y_min,y2:o.axis_y2_min};"object"==typeof n?(Q(n.x)&&(o.axis_x_min=n.x),Q(n.y)&&(o.axis_y_min=n.y),Q(n.y2)&&(o.axis_y2_min=n.y2)):o.axis_y_min=o.axis_y2_min=n,i.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})},nt.prototype.axis.range=function(n){if(!arguments.length)return{max:this.axis.max(),min:this.axis.min()};Et(n.max)&&this.axis.max(n.max),Et(n.min)&&this.axis.min(n.min)},nt.prototype.axis.types=function(n){var i=this.internal;if(void 0===n)return{y:i.config.axis_y_type,y2:i.config.axis_y2_type};Et(n.y)&&(i.config.axis_y_type=n.y),Et(n.y2)&&(i.config.axis_y2_type=n.y2),i.updateScales(),i.redraw()},nt.prototype.category=function(n,i){var o=this.internal,u=o.config;return arguments.length>1&&(u.axis_x_categories[n]=i,o.redraw()),u.axis_x_categories[n]},nt.prototype.categories=function(n){var i=this.internal,o=i.config;return arguments.length&&(o.axis_x_categories=n,i.redraw()),o.axis_x_categories},nt.prototype.resize=function(n){var o=this.internal.config;o.size_width=n?n.width:null,o.size_height=n?n.height:null,this.flush()},nt.prototype.flush=function(){this.internal.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1})},nt.prototype.destroy=function(){var n=this.internal;return window.clearInterval(n.intervalForObserveInserted),void 0!==n.resizeTimeout&&window.clearTimeout(n.resizeTimeout),window.removeEventListener("resize",n.resizeIfElementDisplayed),n.resizeFunction.remove(),n.unbindWindowFocus(),n.selectChart.classed("c3",!1).html(""),Object.keys(n).forEach(function(i){n[i]=null}),null},nt.prototype.color=function(n){return this.internal.color(n)},(nt.prototype.data=function(n){var i=this.internal.data.targets;return typeof n>"u"?i:i.filter(function(o){return[].concat(n).indexOf(o.id)>=0})}).shown=function(n){return this.internal.filterTargetsToShow(this.data(n))},nt.prototype.data.values=function(n,i){void 0===i&&(i=!0);var o=null;if(n){var u=this.data(n);u&&$t(u)&&(o=u.reduce(function(g,m){var w=m.values.map(function(T){return T.value});return i?g=g.concat(w):g.push(w),g},[]))}return o},nt.prototype.data.names=function(n){return this.internal.clearLegendItemTextBoxCache(),this.internal.updateDataAttributes("names",n)},nt.prototype.data.colors=function(n){return this.internal.updateDataAttributes("colors",n)},nt.prototype.data.axes=function(n){return this.internal.updateDataAttributes("axes",n)},nt.prototype.data.stackNormalized=function(n){if(void 0===n)return this.internal.isStackNormalized();this.internal.config.data_stack_normalize=!!n,this.internal.redraw()},(nt.prototype.donut=function(){}).padAngle=function(n){if(void 0===n)return this.internal.config.donut_padAngle;this.internal.config.donut_padAngle=n,this.flush()},nt.prototype.flow=function(n){var o,u,T,E,L,N,D,i=this.internal,g=[],m=i.getMaxDataCount(),I=0,P=0;if(n.json)u=i.convertJsonToData(n.json,n.keys);else if(n.rows)u=i.convertRowsToData(n.rows);else{if(!n.columns)return;u=i.convertColumnsToData(n.columns)}o=i.convertDataToTargets(u,!0),i.data.targets.forEach(function(O){var F,Z,$=!1;for(F=0;F<o.length;F++)if(O.id===o[F].id){for($=!0,O.values[O.values.length-1]&&(P=O.values[O.values.length-1].index+1),I=o[F].values.length,Z=0;Z<I;Z++)o[F].values[Z].index=P+Z,i.isTimeSeries()||(o[F].values[Z].x=P+Z);O.values=O.values.concat(o[F].values),o.splice(F,1);break}$||g.push(O.id)}),i.data.targets.forEach(function(O){var $,F;for($=0;$<g.length;$++)if(O.id===g[$])for(P=O.values[O.values.length-1].index+1,F=0;F<I;F++)O.values.push({id:O.id,index:P+F,x:i.isTimeSeries()?i.getOtherTargetX(P+F):P+F,value:null})}),i.data.targets.length&&o.forEach(function(O){var $,F=[];for($=i.data.targets[0].values[0].index;$<P;$++)F.push({id:O.id,index:$,x:i.isTimeSeries()?i.getOtherTargetX($):$,value:null});O.values.forEach(function(Z){Z.index+=P,i.isTimeSeries()||(Z.x+=P)}),O.values=F.concat(O.values)}),i.data.targets=i.data.targets.concat(o),i.getMaxDataCount(),L=(E=i.data.targets[0]).values[0],Et(n.to)?(I=0,D=i.isTimeSeries()?i.parseDate(n.to):n.to,E.values.forEach(function(O){O.x<D&&I++})):Et(n.length)&&(I=n.length),m?1===m&&i.isTimeSeries()&&(N=(E.values[E.values.length-1].x-L.x)/2,T=[new Date(+L.x-N),new Date(+L.x+N)],i.updateXDomain(null,!0,!0,!1,T)):(N=i.isTimeSeries()?E.values.length>1?E.values[E.values.length-1].x-L.x:L.x-i.getXDomain(i.data.targets)[0]:1,i.updateXDomain(null,!0,!0,!1,T=[L.x-N,L.x])),i.updateTargets(i.data.targets),i.redraw({flow:{index:L.index,length:I,duration:Q(n.duration)?n.duration:i.config.transition_duration,done:n.done,orgDataCount:m},withLegend:!0,withTransition:m>1,withTrimXDomain:!1,withUpdateXAxis:!0})},v.prototype.generateFlow=function(n){var i=this,o=i.config,u=i.d3;return function(){var $,Z,mt,ut,ft,le,Te,Ae,ve,pe,Pe,g=n.targets,m=n.flow,w=n.drawBar,T=n.drawLine,E=n.drawArea,L=n.cx,I=n.cy,P=n.xv,N=n.xForText,D=n.yForText,O=n.duration,it=m.index,vt=m.length,kt=i.getValueOnIndex(i.data.targets[0].values,it),bt=i.getValueOnIndex(i.data.targets[0].values,it+vt),Rt=i.x.domain(),dt=m.duration||O,Zt=m.done||function(){},gt=i.generateWait();i.flowing=!0,i.data.targets.forEach(function(et){et.values.splice(0,vt)}),mt=i.updateXDomain(g,!0,!0),i.updateXGrid&&i.updateXGrid(!0),ut=i.xgrid||u.selectAll([]),ft=i.xgridLines||u.selectAll([]),le=i.mainRegion||u.selectAll([]),Te=i.mainText||u.selectAll([]),Ae=i.mainBar||u.selectAll([]),ve=i.mainLine||u.selectAll([]),pe=i.mainArea||u.selectAll([]),Pe=i.mainCircle||u.selectAll([]),m.orgDataCount?$=1===m.orgDataCount||(kt&&kt.x)===(bt&&bt.x)||i.isTimeSeries()?i.x(Rt[0])-i.x(mt[0]):i.x(kt.x)-i.x(bt.x):1!==i.data.targets[0].values.length?$=i.x(Rt[0])-i.x(mt[0]):i.isTimeSeries()?(kt=i.getValueOnIndex(i.data.targets[0].values,0),bt=i.getValueOnIndex(i.data.targets[0].values,i.data.targets[0].values.length-1),$=i.x(kt.x)-i.x(bt.x)):$=xe(mt)/2,Z="translate("+$+",0) scale("+xe(Rt)/xe(mt)+",1)",i.hideXGridFocus();var ie=u.transition().ease(u.easeLinear).duration(dt);gt.add(i.xAxis(i.axes.x,ie)),gt.add(Ae.transition(ie).attr("transform",Z)),gt.add(ve.transition(ie).attr("transform",Z)),gt.add(pe.transition(ie).attr("transform",Z)),gt.add(Pe.transition(ie).attr("transform",Z)),gt.add(Te.transition(ie).attr("transform",Z)),gt.add(le.filter(i.isRegionOnX).transition(ie).attr("transform",Z)),gt.add(ut.transition(ie).attr("transform",Z)),gt.add(ft.transition(ie).attr("transform",Z)),gt(function(){var et,wt=[],Ce=[];if(vt){for(et=0;et<vt;et++)wt.push("."+k.shape+"-"+(it+et)),Ce.push("."+k.text+"-"+(it+et));i.svg.selectAll("."+k.shapes).selectAll(wt).remove(),i.svg.selectAll("."+k.texts).selectAll(Ce).remove(),i.svg.select("."+k.xgrid).remove()}ut.attr("transform",null).attr("x1",i.xgridAttr.x1).attr("x2",i.xgridAttr.x2).attr("y1",i.xgridAttr.y1).attr("y2",i.xgridAttr.y2).style("opacity",i.xgridAttr.opacity),ft.attr("transform",null),ft.select("line").attr("x1",o.axis_rotated?0:P).attr("x2",o.axis_rotated?i.width:P),ft.select("text").attr("x",o.axis_rotated?i.width:0).attr("y",P),Ae.attr("transform",null).attr("d",w),ve.attr("transform",null).attr("d",T),pe.attr("transform",null).attr("d",E),Pe.attr("transform",null).attr("cx",L).attr("cy",I),Te.attr("transform",null).attr("x",N).attr("y",D).style("fill-opacity",i.opacityForText.bind(i)),le.attr("transform",null),le.filter(i.isRegionOnX).attr("x",i.regionX.bind(i)).attr("width",i.regionWidth.bind(i)),Zt(),i.flowing=!1})}},nt.prototype.focus=function(n){var o,i=this.internal;n=i.mapToTargetIds(n),o=i.svg.selectAll(i.selectorTargets(n.filter(i.isTargetToShow,i))),this.revert(),this.defocus(),o.classed(k.focused,!0).classed(k.defocused,!1),i.hasArcType()&&i.expandArc(n),i.toggleFocusLegend(n,!0),i.focusedTargetIds=n,i.defocusedTargetIds=i.defocusedTargetIds.filter(function(u){return n.indexOf(u)<0})},nt.prototype.defocus=function(n){var i=this.internal;n=i.mapToTargetIds(n),i.svg.selectAll(i.selectorTargets(n.filter(i.isTargetToShow,i))).classed(k.focused,!1).classed(k.defocused,!0),i.hasArcType()&&i.unexpandArc(n),i.toggleFocusLegend(n,!1),i.focusedTargetIds=i.focusedTargetIds.filter(function(u){return n.indexOf(u)<0}),i.defocusedTargetIds=n},nt.prototype.revert=function(n){var i=this.internal;n=i.mapToTargetIds(n),i.svg.selectAll(i.selectorTargets(n)).classed(k.focused,!1).classed(k.defocused,!1),i.hasArcType()&&i.unexpandArc(n),i.config.legend_show&&(i.showLegend(n.filter(i.isLegendToShow.bind(i))),i.legend.selectAll(i.selectorLegends(n)).filter(function(){return i.d3.select(this).classed(k.legendItemFocused)}).classed(k.legendItemFocused,!1)),i.focusedTargetIds=[],i.defocusedTargetIds=[]},(nt.prototype.xgrids=function(n){var i=this.internal,o=i.config;return n&&(o.grid_x_lines=n,i.redrawWithoutRescale()),o.grid_x_lines}).add=function(n){return this.xgrids(this.internal.config.grid_x_lines.concat(n||[]))},nt.prototype.xgrids.remove=function(n){this.internal.removeGridLines(n,!0)},(nt.prototype.ygrids=function(n){var i=this.internal,o=i.config;return n&&(o.grid_y_lines=n,i.redrawWithoutRescale()),o.grid_y_lines}).add=function(n){return this.ygrids(this.internal.config.grid_y_lines.concat(n||[]))},nt.prototype.ygrids.remove=function(n){this.internal.removeGridLines(n,!1)},nt.prototype.groups=function(n){var i=this.internal,o=i.config;return Lt(n)||(o.data_groups=n,i.redraw()),o.data_groups},(nt.prototype.legend=function(){}).show=function(n){var i=this.internal;i.showLegend(i.mapToTargetIds(n)),i.updateAndRedraw({withLegend:!0})},nt.prototype.legend.hide=function(n){var i=this.internal;i.hideLegend(i.mapToTargetIds(n)),i.updateAndRedraw({withLegend:!1})},nt.prototype.load=function(n){var i=this.internal,o=i.config;n.xs&&i.addXs(n.xs),"names"in n&&nt.prototype.data.names.bind(this)(n.names),"classes"in n&&Object.keys(n.classes).forEach(function(u){o.data_classes[u]=n.classes[u]}),"categories"in n&&i.isCategorized()&&(o.axis_x_categories=n.categories),"axes"in n&&Object.keys(n.axes).forEach(function(u){o.data_axes[u]=n.axes[u]}),"colors"in n&&Object.keys(n.colors).forEach(function(u){o.data_colors[u]=n.colors[u]}),"cacheIds"in n&&i.hasCaches(n.cacheIds)?i.load(i.getCaches(n.cacheIds),n.done):n.unload?i.unload(i.mapToTargetIds(!0===n.unload?null:n.unload),function(){i.loadFromArgs(n)}):i.loadFromArgs(n)},nt.prototype.unload=function(n){var i=this.internal;(n=n||{})instanceof Array?n={ids:n}:"string"==typeof n&&(n={ids:[n]}),i.unload(i.mapToTargetIds(n.ids),function(){i.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),n.done&&n.done()})},(nt.prototype.pie=function(){}).padAngle=function(n){if(void 0===n)return this.internal.config.pie_padAngle;this.internal.config.pie_padAngle=n,this.flush()},(nt.prototype.regions=function(n){var i=this.internal,o=i.config;return n&&(o.regions=n,i.redrawWithoutRescale()),o.regions}).add=function(n){var i=this.internal,o=i.config;return n&&(o.regions=o.regions.concat(n),i.redrawWithoutRescale()),o.regions},nt.prototype.regions.remove=function(n){var u,g,m,i=this.internal,o=i.config;return u=Ht(n=n||{},"duration",o.transition_duration),g=Ht(n,"classes",[k.region]),m=i.main.select("."+k.regions).selectAll(g.map(function(w){return"."+w})),(u?m.transition().duration(u):m).style("opacity",0).remove(),o.regions=o.regions.filter(function(w){var T=!1;return!w.class||(w.class.split(" ").forEach(function(E){g.indexOf(E)>=0&&(T=!0)}),!T)}),o.regions},nt.prototype.selected=function(n){var i=this.internal,o=i.d3;return i.main.selectAll("."+k.shapes+i.getTargetSelectorSuffix(n)).selectAll("."+k.shape).filter(function(){return o.select(this).classed(k.SELECTED)}).nodes().map(function(u){var g=u.__data__;return g.data?g.data:g})},nt.prototype.select=function(n,i,o){var u=this.internal,g=u.d3,m=u.config;!m.data_selection_enabled||u.main.selectAll("."+k.shapes).selectAll("."+k.shape).each(function(w,T){var E=g.select(this),L=w.data?w.data.id:w.id,I=u.getToggle(this,w).bind(u),P=m.data_selection_grouped||!n||n.indexOf(L)>=0,N=!i||i.indexOf(T)>=0,D=E.classed(k.SELECTED);E.classed(k.line)||E.classed(k.area)||(P&&N?m.data_selection_isselectable(w)&&!D&&I(!0,E.classed(k.SELECTED,!0),w,T):Et(o)&&o&&D&&I(!1,E.classed(k.SELECTED,!1),w,T))})},nt.prototype.unselect=function(n,i){var o=this.internal,u=o.d3,g=o.config;!g.data_selection_enabled||o.main.selectAll("."+k.shapes).selectAll("."+k.shape).each(function(m,w){var T=u.select(this),E=m.data?m.data.id:m.id,L=o.getToggle(this,m).bind(o),I=g.data_selection_grouped||!n||n.indexOf(E)>=0,P=!i||i.indexOf(w)>=0,N=T.classed(k.SELECTED);T.classed(k.line)||T.classed(k.area)||I&&P&&g.data_selection_isselectable(m)&&N&&L(!1,T.classed(k.SELECTED,!1),m,w)})},nt.prototype.show=function(n,i){var u,o=this.internal;n=o.mapToTargetIds(n),i=i||{},o.removeHiddenTargetIds(n),(u=o.svg.selectAll(o.selectorTargets(n))).transition().style("display",ne()?"block":"initial","important").style("opacity",1,"important").call(o.endall,function(){u.style("opacity",null).style("opacity",1)}),i.withLegend&&o.showLegend(n),o.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},nt.prototype.hide=function(n,i){var u,o=this.internal;n=o.mapToTargetIds(n),i=i||{}
1,o.addHiddenTargetIds(n),(u=o.svg.selectAll(o.selectorTargets(n))).transition().style("opacity",0,"important").call(o.endall,function(){u.style("opacity",null).style("opacity",0),u.style("display","none")}),i.withLegend&&o.hideLegend(n),o.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},nt.prototype.toggle=function(n,i){var o=this,u=this.internal;u.mapToTargetIds(n).forEach(function(g){u.isTargetToShow(g)?o.hide(g,i):o.show(g,i)})},(nt.prototype.subchart=function(){}).isShown=function(){return this.internal.config.subchart_show},nt.prototype.subchart.show=function(){var n=this.internal;n.config.subchart_show||(n.config.subchart_show=!0,n.initSubchart(),n.updateDimension(),n.initSubchartBrush(),n.updateTargetsForSubchart(n.getTargets()),n.mapToIds(n.data.targets).forEach(function(i){n.withoutFadeIn[i]=!1}),n.updateAndRedraw(),n.showTargets())},nt.prototype.subchart.hide=function(){var n=this.internal;!n.config.subchart_show||(n.config.subchart_show=!1,n.removeSubchart(),n.redraw())},(nt.prototype.tooltip=function(){}).show=function(n){var o,u,i=this.internal,g={};n.mouse?g=n.mouse:(n.data?u=n.data:typeof n.x<"u"&&(o=n.id?i.data.targets.filter(function(m){return m.id===n.id}):i.data.targets,u=i.filterByX(o,n.x).slice(0,1)[0]),g=u?i.getMousePosition(u):null),i.dispatchEvent("mousemove",g),i.config.tooltip_onshow.call(i,u)},nt.prototype.tooltip.hide=function(){this.internal.dispatchEvent("mouseout",0),this.internal.config.tooltip_onhide.call(this)},nt.prototype.transform=function(n,i){var o=this.internal,u=["pie","donut"].indexOf(n)>=0?{withTransform:!0}:null;o.transformTo(i,n,u)},v.prototype.transformTo=function(n,i,o){var u=this,g=!u.hasArcType(),m=o||{withTransitionForAxis:g};m.withTransitionForTransform=!1,u.transiting=!1,u.setTargetType(n,i),u.updateTargets(u.data.targets),u.updateAndRedraw(m)},nt.prototype.x=function(n){var i=this.internal;return arguments.length&&(i.updateTargetX(i.data.targets,n),i.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),i.data.xs},nt.prototype.xs=function(n){var i=this.internal;return arguments.length&&(i.updateTargetXs(i.data.targets,n),i.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),i.data.xs},(nt.prototype.zoom=function(n){var i=this.internal;return n?(i.isTimeSeries()&&(n=n.map(function(o){return i.parseDate(o)})),i.config.subchart_show?i.brush.selectionAsValue(n,!0):(i.updateXDomain(null,!0,!1,!1,n),i.redraw({withY:i.config.zoom_rescale,withSubchart:!1})),i.config.zoom_onzoom.call(this,i.x.orgDomain()),n):i.x.domain()}).enable=function(n){var i=this.internal;i.config.zoom_enabled=n,i.updateAndRedraw()},nt.prototype.unzoom=function(){var n=this.internal;n.config.subchart_show?n.brush.clear():(n.updateXDomain(null,!0,!1,!1,n.subX.domain()),n.redraw({withY:n.config.zoom_rescale,withSubchart:!1}))},nt.prototype.zoom.max=function(n){var i=this.internal,o=i.config;if(0!==n&&!n)return o.zoom_x_max;o.zoom_x_max=i.d3.max([i.orgXDomain[1],n])},nt.prototype.zoom.min=function(n){var i=this.internal,o=i.config;if(0!==n&&!n)return o.zoom_x_min;o.zoom_x_min=i.d3.min([i.orgXDomain[0],n])},nt.prototype.zoom.range=function(n){if(!arguments.length)return{max:this.domain.max(),min:this.domain.min()};Et(n.max)&&this.domain.max(n.max),Et(n.min)&&this.domain.min(n.min)},v.prototype.initPie=function(){var n=this;n.pie=n.d3.pie().padAngle(this.getPadAngle.bind(this)).value(function(g){return g.values.reduce(function(m,w){return m+w.value},0)});var o=n.getOrderFunction();if(o&&(n.isOrderAsc()||n.isOrderDesc())){var u=o;o=function(g,m){return-1*u(g,m)}}n.pie.sort(o||null)},v.prototype.updateRadius=function(){var n=this,i=n.config,o=i.gauge_width||i.donut_width,u=n.filterTargetsToShow(n.data.targets).length*n.config.gauge_arcs_minWidth;n.radiusExpanded=Math.min(n.arcWidth,n.arcHeight)/2*(n.hasType("gauge")?.85:1),n.radius=.95*n.radiusExpanded,n.innerRadiusRatio=o?(n.radius-o)/n.radius:.6,n.innerRadius=n.hasType("donut")||n.hasType("gauge")?n.radius*n.innerRadiusRatio:0,n.gaugeArcWidth=o||(u<=n.radius-n.innerRadius?n.radius-n.innerRadius:u<=n.radius?u:n.radius)},v.prototype.getPadAngle=function(){return this.hasType("pie")?this.config.pie_padAngle||0:this.hasType("donut")&&this.config.donut_padAngle||0},v.prototype.updateArc=function(){var n=this;n.svgArc=n.getSvgArc(),n.svgArcExpanded=n.getSvgArcExpanded(),n.svgArcExpandedSub=n.getSvgArcExpanded(.98)},v.prototype.updateAngle=function(n){var m,w,T,E,i=this,o=i.config,u=!1,g=0;
1return o?(i.pie(i.filterTargetsToShow(i.data.targets)).forEach(function(L){!u&&L.data.id===n.data.id&&(u=!0,(n=L).index=g),g++}),isNaN(n.startAngle)&&(n.startAngle=0),isNaN(n.endAngle)&&(n.endAngle=n.startAngle),i.isGaugeType(n.data)&&(m=o.gauge_min,w=o.gauge_max,T=Math.PI*(o.gauge_fullCircle?2:1)/(w-m),E=n.value<m?0:n.value<w?n.value-m:w-m,n.startAngle=o.gauge_startingAngle,n.endAngle=n.startAngle+T*E),u?n:null):null},v.prototype.getSvgArc=function(){var n=this,i=n.hasType("gauge"),o=n.gaugeArcWidth/n.filterTargetsToShow(n.data.targets).length,u=n.d3.arc().outerRadius(function(m){return i?n.radius-o*m.index:n.radius}).innerRadius(function(m){return i?n.radius-o*(m.index+1):n.innerRadius}),g=function(m,w){var T;return w?u(m):(T=n.updateAngle(m))?u(T):"M 0 0"};return g.centroid=u.centroid,g},v.prototype.getSvgArcExpanded=function(n){n=n||1;var i=this,o=i.hasType("gauge"),u=i.gaugeArcWidth/i.filterTargetsToShow(i.data.targets).length,g=Math.min(i.radiusExpanded*n-i.radius,.8*u-100*(1-n)),m=i.d3.arc().outerRadius(function(w){return o?i.radius-u*w.index+g:i.radiusExpanded*n}).innerRadius(function(w){return o?i.radius-u*(w.index+1):i.innerRadius});return function(w){var T=i.updateAngle(w);return T?m(T):"M 0 0"}},v.prototype.getArc=function(n,i,o){return o||this.isArcType(n.data)?this.svgArc(n,i):"M 0 0"},v.prototype.transformForArcLabel=function(n){var g,m,w,T,E,i=this,o=i.config,u=i.updateAngle(n),L="",I=i.hasType("gauge");if(u&&!I)g=this.svgArc.centroid(u),m=isNaN(g[0])?0:g[0],w=isNaN(g[1])?0:g[1],T=Math.sqrt(m*m+w*w),L="translate("+m*(E=i.hasType("donut")&&o.donut_label_ratio?Wt(o.donut_label_ratio)?o.donut_label_ratio(n,i.radius,T):o.donut_label_ratio:i.hasType("pie")&&o.pie_label_ratio?Wt(o.pie_label_ratio)?o.pie_label_ratio(n,i.radius,T):o.pie_label_ratio:i.radius&&T?(36/i.radius>.375?1.175-36/i.radius:.8)*i.radius/T:0)+","+w*E+")";else if(u&&I&&i.filterTargetsToShow(i.data.targets).length>1){var P=Math.sin(u.endAngle-Math.PI/2);L="translate("+(m=Math.cos(u.endAngle-Math.PI/2)*(i.radiusExpanded+25))+","+(w=P*(i.radiusExpanded+15-Math.abs(10*P))+3)+")"}return L},v.prototype.getArcRatio=function(n){return this.getRatio("arc",n)},v.prototype.convertToArcData=function(n){return this.addName({id:n.data.id,value:n.value,ratio:this.getRatio("arc",n),index:n.index})},v.prototype.textForArcLabel=function(n){var o,u,g,m,w,i=this;return i.shouldShowArcLabel()&&(u=(o=i.updateAngle(n))?o.value:null,g=i.getRatio("arc",o),m=n.data.id,i.hasType("gauge")||i.meetsArcLabelThreshold(g))?(w=i.getArcLabelFormat())?w(u,g,m):i.defaultArcValueFormat(u,g):""},v.prototype.textForGaugeMinMax=function(n,i){var u=this.getGaugeLabelExtents();return u?u(n,i):n},v.prototype.expandArc=function(n){var o,i=this;i.transiting?o=window.setInterval(function(){i.transiting||(window.clearInterval(o),i.legend.selectAll(".c3-legend-item-focused").size()>0&&i.expandArc(n))},10):(n=i.mapToTargetIds(n),i.svg.selectAll(i.selectorTargets(n,"."+k.chartArc)).each(function(u){!i.shouldExpand(u.data.id)||i.d3.select(this).selectAll("path").transition().duration(i.expandDuration(u.data.id)).attr("d",i.svgArcExpanded).transition().duration(2*i.expandDuration(u.data.id)).attr("d",i.svgArcExpandedSub).each(function(g){i.isDonutType(g.data)})}))},v.prototype.unexpandArc=function(n){var i=this;i.transiting||(n=i.mapToTargetIds(n),i.svg.selectAll(i.selectorTargets(n,"."+k.chartArc)).selectAll("path").transition().duration(function(o){return i.expandDuration(o.data.id)}).attr("d",i.svgArc),i.svg.selectAll("."+k.arc))},v.prototype.expandDuration=function(n){var i=this,o=i.config;return i.isDonutType(n)?o.donut_expand_duration:i.isGaugeType(n)?o.gauge_expand_duration:i.isPieType(n)?o.pie_expand_duration:50},v.prototype.shouldExpand=function(n){var i=this,o=i.config;return i.isDonutType(n)&&o.donut_expand||i.isGaugeType(n)&&o.gauge_expand||i.isPieType(n)&&o.pie_expand},v.prototype.shouldShowArcLabel=function(){var n=this,i=n.config,o=!0;return n.hasType("donut")?o=i.donut_label_show:n.hasType("pie")&&(o=i.pie_label_show),o},v.prototype.meetsArcLabelThreshold=function(n){var o=this.config;return n>=(this.hasType("donut")?o.donut_label_threshold:o.pie_label_threshold)},v.prototype.getArcLabelFormat=function(){var n=this,i=n.config,o=i.pie_label_format;return n.hasType("gauge")?o=i.gauge_label_format:n.hasType("donut")&&(o=i.donut_label_format),o},v.prototype.getGaugeLabelExtents=function(){return this.config.gauge_label_extents},v.prototype.getArcTitle=function(){return this.hasType("donut")?this.config.donut_title:""},v.prototype.updateTargetsForArc=function(n){var g,i=this,o=i.main,m=i.classChartArc.bind(i),w=i.classArcs.bind(i),T=i.classFocus.bind(i);(g=o.select("."+k.chartArcs).selectAll("."+k.chartArc).data(i.pie(n)).attr("class",function(E){return m(E)+T(E.data)}).enter().append("g").attr("class",m)).append("g").attr("class",w),g.append("text").attr("dy",i.hasType("gauge")?"-.1em":".35em").style("opacity",0).style("text-anchor","middle").style("pointer-events","none")},v.prototype.initArc=function(){var n=this;n.arcs=n.main.select("."+k.chart).append("g").attr("class",k.chartArcs).attr("transform",n.getTranslate("arc")),n.arcs.append("text").attr("class",k.chartArcsTitle).style("text-anchor","middle").text(n.getArcTitle())},v.prototype.redrawArc=function(n,i,o){var T,E,L,I,u=this,g=u.d3,m=u.config,w=u.main,P=u.hasType("gauge");
vendor: 27,678 bytes, line 1
1if(E=(T=w.selectAll("."+k.arcs).selectAll("."+k.arc).data(u.arcData.bind(u))).enter().append("path").attr("class",u.classArc.bind(u)).style("fill",function(O){return u.color(O.data)}).style("cursor",function(O){return m.interaction_enabled&&m.data_selection_isselectable(O)?"pointer":null}).each(function(O){u.isGaugeType(O.data)&&(O.startAngle=O.endAngle=m.gauge_startingAngle),this._current=O}).merge(T),P&&(I=(L=w.selectAll("."+k.arcs).selectAll("."+k.arcLabelLine).data(u.arcData.bind(u))).enter().append("rect").attr("class",function(O){return k.arcLabelLine+" "+k.target+" "+k.target+"-"+O.data.id}).merge(L),1===u.filterTargetsToShow(u.data.targets).length?I.style("display","none"):I.style("fill",function(O){return u.levelColor?u.levelColor(O.data.values.reduce(function($,F){return $+F.value},0)):u.color(O.data)}).style("display",m.gauge_labelLine_show?"":"none").each(function(O){var $=0,Z=0,it=0,vt="";if(u.hiddenTargetIds.indexOf(O.data.id)<0){var kt=u.updateAngle(O),bt=u.gaugeArcWidth/u.filterTargetsToShow(u.data.targets).length*(kt.index+1),Rt=kt.endAngle-Math.PI/2,mt=u.radius-bt,dt=Rt-(0===mt?0:1/mt);$=u.radiusExpanded-u.radius+bt,Z=Math.cos(dt)*mt,it=Math.sin(dt)*mt,vt="rotate("+180*Rt/Math.PI+", "+Z+", "+it+")"}g.select(this).attr("x",Z).attr("y",it).attr("width",$).attr("height",2).attr("transform",vt).style("stroke-dasharray","0, "+($+2)+", 0")})),E.attr("transform",function(O){return!u.isGaugeType(O.data)&&o?"scale(0)":""}).on("mouseover",m.interaction_enabled?function(O){var $,F;u.transiting||($=u.updateAngle(O))&&(F=u.convertToArcData($),u.expandArc($.data.id),u.api.focus($.data.id),u.toggleFocusLegend($.data.id,!0),u.config.data_onmouseover(F,this))}:null).on("mousemove",m.interaction_enabled?function(O){var F,$=u.updateAngle(O);$&&(F=u.convertToArcData($),u.showTooltip([F],this))}:null).on("mouseout",m.interaction_enabled?function(O){var $,F;u.transiting||($=u.updateAngle(O))&&(F=u.convertToArcData($),u.unexpandArc($.data.id),u.api.revert(),u.revertLegend(),u.hideTooltip(),u.config.data_onmouseout(F,this))}:null).on("click",m.interaction_enabled?function(O,$){var Z,F=u.updateAngle(O);F&&(Z=u.convertToArcData(F),u.toggleShape&&u.toggleShape(this,Z,$),u.config.data_onclick.call(u.api,Z,this))}:null).each(function(){u.transiting=!0}).transition().duration(n).attrTween("d",function(O){var F,$=u.updateAngle(O);return $?(isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle),F=g.interpolate(this._current,$),this._current=F(0),function(Z){if(null===u.config)return"M 0 0";var it=F(Z);return it.data=O.data,u.getArc(it,!0)}):function(){return"M 0 0"}}).attr("transform",o?"scale(1)":"").style("fill",function(O){return u.levelColor?u.levelColor(O.data.values.reduce(function($,F){return $+F.value},0)):u.color(O.data.id)}).call(u.endall,function(){u.transiting=!1}),T.exit().transition().duration(i).style("opacity",0).remove(),w.selectAll("."+k.chartArc).select("text").style("opacity",0).attr("class",function(O){return u.isGaugeType(O.data)?k.gaugeValue:""}).text(u.textForArcLabel.bind(u)).attr("transform",u.transformForArcLabel.bind(u)).style("font-size",function(O){return u.isGaugeType(O.data)&&1===u.filterTargetsToShow(u.data.targets).length?Math.round(u.radius/5)+"px":""}).transition().duration(n).style("opacity",function(O){return u.isTargetToShow(O.data.id)&&u.isArcType(O.data)?1:0}),w.select("."+k.chartArcsTitle).style("opacity",u.hasType("donut")||P?1:0),P){var N=0,D=u.arcs.select("g."+k.chartArcsBackground).selectAll("path."+k.chartArcsBackground).data(u.data.targets);D.enter().append("path").attr("class",function(O,$){return k.chartArcsBackground+" "+k.chartArcsBackground+"-"+$}).merge(D).attr("d",function(O){if(u.hiddenTargetIds.indexOf(O.id)>=0)return"M 0 0";var $={data:[{value:m.gauge_max}],startAngle:m.gauge_startingAngle,endAngle:-1*m.gauge_startingAngle*(m.gauge_fullCircle?Math.PI:1),index:N++};return u.getArc($,!0,!0)}),D.exit().remove(),u.arcs.select("."+k.chartArcsGaugeUnit).attr("dy",".75em").text(m.gauge_label_show?m.gauge_units:""),u.arcs.select("."+k.chartArcsGaugeMin).attr("dx",-1*(u.innerRadius+(u.radius-u.innerRadius)/(m.gauge_fullCircle?1:2))+"px").attr("dy","1.2em").text(m.gauge_label_show?u.textForGaugeMinMax(m.gauge_min,!1):""),u.arcs.select("."+k.chartArcsGaugeMax).attr("dx",u.innerRadius+(u.radius-u.innerRadius)/(m.gauge_fullCircle?1:2)+"px").attr("dy","1.2em").text(m.gauge_label_show?u.textForGaugeMinMax(m.gauge_max,!0):"")}},v.prototype.initGauge=function(){var n=this.arcs;this.hasType("gauge")&&(n.append("g").attr("class",k.chartArcsBackground),n.append("text").attr("class",k.chartArcsGaugeUnit).style("text-anchor","middle").style("pointer-events","none"),n.append("text").attr("class",k.chartArcsGaugeMin).style("text-anchor","middle").style("pointer-events","none"),n.append("text").attr("class",k.chartArcsGaugeMax).style("text-anchor","middle").style("pointer-events","none"))},v.prototype.getGaugeLabelHeight=function(){return this.config.gauge_label_show?20:0},v.prototype.addToCache=function(n,i){this.cache["$"+n]=i},v.prototype.getFromCache=function(n){return this.cache["$"+n]},v.prototype.resetCache=function(){var n=this;Object.keys(this.cache).filter(function(i){return/^\$/.test(i)}).forEach(function(i){delete n.cache[i]})},v.prototype.hasCaches=function(n){for(var i=0;i<n.length;i++)if(!(n[i]in this.cache))return!1;return!0},v.prototype.addCache=function(n,i){this.cache[n]=this.cloneTarget(i)},v.prototype.getCaches=function(n){var o,i=[];for(o=0;o<n.length;o++)n[o]in this.cache&&i.push(this.cloneTarget(this.cache[n[o]]));return i},v.prototype.categoryName=function(n){var i=this.config;return n<i.axis_x_categories.length?i.axis_x_categories[n]:n},v.prototype.generateTargetClass=function(n){return n||0===n?("-"+n).replace(/\s/g,"-"):""},v.prototype.generateClass=function(n,i){return" "+n+" "+n+this.generateTargetClass(i)},v.prototype.classText=function(n){return this.generateClass(k.text,n.index)},v.prototype.classTexts=function(n){return this.generateClass(k.texts,n.id)},v.prototype.classShape=function(n){return this.generateClass(k.shape,n.index)},v.prototype.classShapes=function(n){return this.generateClass(k.shapes,n.id)},v.prototype.classLine=function(n){return this.classShape(n)+this.generateClass(k.line,n.id)},v.prototype.classLines=function(n){return this.classShapes(n)+this.generateClass(k.lines,n.id)},v.prototype.classCircle=function(n){return this.classShape(n)+this.generateClass(k.circle,n.index)},v.prototype.classCircles=function(n){return this.classShapes(n)+this.generateClass(k.circles,n.id)},v.prototype.classBar=function(n){return this.classShape(n)+this.generateClass(k.bar,n.index)},v.prototype.classBars=function(n){return this.classShapes(n)+this.generateClass(k.bars,n.id)},v.prototype.classArc=function(n){return this.classShape(n.data)+this.generateClass(k.arc,n.data.id)},v.prototype.classArcs=function(n){return this.classShapes(n.data)+this.generateClass(k.arcs,n.data.id)},v.prototype.classArea=function(n){return this.classShape(n)+this.generateClass(k.area,n.id)},v.prototype.classAreas=function(n){return this.classShapes(n)+this.generateClass(k.areas,n.id)},v.prototype.classRegion=function(n,i){return this.generateClass(k.region,i)+" "+("class"in n?n.class:"")},v.prototype.classEvent=function(n){return this.generateClass(k.eventRect,n.index)},v.prototype.classTarget=function(n){var o=this.config.data_classes[n],u="";return o&&(u=" "+k.target+"-"+o),this.generateClass(k.target,n)+u},v.prototype.classFocus=function(n){return this.classFocused(n)+this.classDefocused(n)},v.prototype.classFocused=function(n){return" "+(this.focusedTargetIds.indexOf(n.id)>=0?k.focused:"")},v.prototype.classDefocused=function(n){return" "+(this.defocusedTargetIds.indexOf(n.id)>=0?k.defocused:"")},v.prototype.classChartText=function(n){return k.chartText+this.classTarget(n.id)},v.prototype.classChartLine=function(n){return k.chartLine+this.classTarget(n.id)},v.prototype.classChartBar=function(n){return k.chartBar+this.classTarget(n.id)},v.prototype.classChartArc=function(n){return k.chartArc+this.classTarget(n.data.id)},v.prototype.getTargetSelectorSuffix=function(n){var i=this.generateTargetClass(n);return window.CSS&&window.CSS.escape?window.CSS.escape(i):i.replace(/([?!@#$%^&*()=+,.<>'":;\[\]\/|~`{}\\])/g,"\\$1")},v.prototype.selectorTarget=function(n,i){return(i||"")+"."+k.target+this.getTargetSelectorSuffix(n)},v.prototype.selectorTargets=function(n,i){var o=this;return(n=n||[]).length?n.map(function(u){return o.selectorTarget(u,i)}):null},v.prototype.selectorLegend=function(n){return"."+k.legendItem+this.getTargetSelectorSuffix(n)},v.prototype.selectorLegends=function(n){var i=this;return n&&n.length?n.map(function(o){return i.selectorLegend(o)}):null},v.prototype.getClipPath=function(n){return"url("+(ne(9)?"":document.URL.split("#")[0])+"#"+n+")"},v.prototype.appendClip=function(n,i){return n.append("clipPath").attr("id",i).append("rect")},v.prototype.getAxisClipX=function(n){var i=Math.max(30,this.margin.left);return n?-(1+i):-(i-1)},v.prototype.getAxisClipY=function(n){return n?-20:-this.margin.top},v.prototype.getXAxisClipX=function(){return this.getAxisClipX(!this.config.axis_rotated)},v.prototype.getXAxisClipY=function(){return this.getAxisClipY(!this.config.axis_rotated)},v.prototype.getYAxisClipX=function(){var n=this;return n.config.axis_y_inner?-1:n.getAxisClipX(n.config.axis_rotated)},v.prototype.getYAxisClipY=function(){return this.getAxisClipY(this.config.axis_rotated)},v.prototype.getAxisClipWidth=function(n){var i=this,o=Math.max(30,i.margin.left),u=Math.max(30,i.margin.right);return n?i.width+2+o+u:i.margin.left+20},v.prototype.getAxisClipHeight=function(n){return(n?this.margin.bottom:this.margin.top+this.height)+20},v.prototype.getXAxisClipWidth=function(){return this.getAxisClipWidth(!this.config.axis_rotated)},v.prototype.getXAxisClipHeight=function(){return this.getAxisClipHeight(!this.config.axis_rotated)},v.prototype.getYAxisClipWidth=function(){var n=this;return n.getAxisClipWidth(n.config.axis_rotated)+(n.config.axis_y_inner?20:0)},v.prototype.getYAxisClipHeight=function(){return this.getAxisClipHeight(this.config.axis_rotated)},v.prototype.generateColor=function(){var i=this.config,o=this.d3,u=i.data_colors,g=At(i.color_pattern)?i.color_pattern:o.schemeCategory10,m=i.data_color,w=[];return function(T){var L,E=T.id||T.data&&T.data.id||T;return u[E]instanceof Function?L=u[E](T):u[E]?L=u[E]:(w.indexOf(E)<0&&w.push(E),L=g[w.indexOf(E)%g.length],u[E]=L),m instanceof Function?m(L,T):L}},v.prototype.generateLevelColor=function(){var i=this.config,o=i.color_pattern,u=i.color_threshold,g="value"===u.unit,m=u.values&&u.values.length?u.values:[],w=u.max||100;return At(u)&&At(o)?function(T){var E,I=o[o.length-1];for(E=0;E<m.length;E++)if((g?T:100*T/w)<m[E]){I=o[E];break}return I}:null},v.prototype.getDefaultConfig=function(){var n={bindto:"#chart",svg_classname:void 0,size_width:void 0,size_height:void 0,padding_left:void 0,padding_right:void 0,padding_top:void 0,padding_bottom:void 0,resize_auto:!0,zoom_enabled:!1,zoom_initialRange:void 0,zoom_type:"scroll",zoom_disableDefaultBehavior:!1,zoom_privileged:!1,zoom_rescale:!1,zoom_onzoom:function(){},zoom_onzoomstart:function(){},zoom_onzoomend:function(){},zoom_x_min:void 0,zoom_x_max:void 0,interaction_brighten:!0,interaction_enabled:!0,onmouseover:function(){},onmouseout:function(){},onresize:function(){},onresized:function(){},oninit:function(){},onrendered:function(){},transition_duration:350,data_epochs:"epochs",data_x:void 0,data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_idConverter:function(i){return i},data_names:{},data_classes:{},data_groups:[],data_axes:{},data_type:void 0,data_types:{},data_labels:{},data_order:"desc",data_regions:{},data_color:void 0,data_colors:{},data_hide:!1,data_filter:void 0,data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:function(){return!0},data_selection_multiple:!0,data_selection_draggable:!1,data_stack_normalize:!1,data_onclick:function(){},data_onmouseover:function(){},data_onmouseout:function(){},data_onselected:function(){},data_onunselected:function(){},data_url:void 0,data_headers:void 0,data_json:void 0,data_rows:void 0,data_columns:void 0,data_mimeType:void 0,data_keys:void 0,data_empty_label_text:"",subchart_show:!1,subchart_size_height:60,subchart_axis_x_show:!0,subchart_onbrush:function(){},color_pattern:[],color_threshold:{},legend_show:!0,legend_hide:!1,legend_position:"bottom",legend_inset_anchor:"top-left",legend_inset_x:10,legend_inset_y:0,legend_inset_step:void 0,legend_item_onclick:void 0,legend_item_onmouseover:void 0,legend_item_onmouseout:void 0,legend_equally:!1,legend_padding:0,legend_item_tile_width:10,legend_item_tile_height:10,axis_rotated:!1,axis_x_show:!0,axis_x_type:"indexed",axis_x_localtime:!0,axis_x_categories:[],axis_x_tick_centered:!1,axis_x_tick_format:void 0,axis_x_tick_culling:{},axis_x_tick_culling_max:10,axis_x_tick_count:void 0,axis_x_tick_fit:!0,axis_x_tick_values:null,axis_x_tick_rotate:0,axis_x_tick_outer:!0,axis_x_tick_multiline:!0,axis_x_tick_multilineMax:0,axis_x_tick_width:null,axis_x_max:void 0,axis_x_min:void 0,axis_x_padding:{},axis_x_height:void 0,axis_x_selection:void 0,axis_x_label:{},axis_x_inner:void 0,axis_y_show:!0,axis_y_type:"linear",axis_y_max:void 0,axis_y_min:void 0,axis_y_inverted:!1,axis_y_center:void 0,axis_y_inner:void 0,axis_y_label:{},axis_y_tick_format:void 0,axis_y_tick_outer:!0,axis_y_tick_values:null,axis_y_tick_rotate:0,axis_y_tick_count:void 0,axis_y_tick_time_type:void 0,axis_y_tick_time_interval:void 0,axis_y_padding:{},axis_y_default:void 0,axis_y2_show:!1,axis_y2_type:"linear",axis_y2_max:void 0,axis_y2_min:void 0,axis_y2_inverted:!1,axis_y2_center:void 0,axis_y2_inner:void 0,axis_y2_label:{},axis_y2_tick_format:void 0,axis_y2_tick_outer:!0,axis_y2_tick_values:null,axis_y2_tick_count:void 0,axis_y2_padding:{},axis_y2_default:void 0,grid_x_show:!1,grid_x_type:"tick",grid_x_lines:[],grid_y_show:!1,grid_y_lines:[],grid_y_ticks:10,grid_focus_show:!0,grid_lines_front:!0,point_show:!0,point_r:2.5,point_sensitivity:10,point_focus_expand_enabled:!0,point_focus_expand_r:void 0,point_select_r:void 0,line_connectNull:!1,line_step_type:"step",bar_width:void 0,bar_width_ratio:.6,bar_width_max:void 0,bar_zerobased:!0,bar_space:0,area_zerobased:!0,area_above:!1,pie_label_show:!0,pie_label_format:void 0,pie_label_threshold:.05,pie_label_ratio:void 0,pie_expand:{},pie_expand_duration:50,pie_padAngle:0,gauge_fullCircle:!1,gauge_label_show:!0,gauge_labelLine_show:!0,gauge_label_format:void 0,gauge_min:0,gauge_max:100,gauge_startingAngle:-1*Math.PI/2,gauge_label_extents:void 0,gauge_units:void 0,gauge_width:void 0,gauge_arcs_minWidth:5,gauge_expand:{},gauge_expand_duration:50,donut_label_show:!0,donut_label_format:void 0,donut_label_threshold:.05,donut_label_ratio:void 0,donut_width:void 0,donut_title:"",donut_expand:{},donut_expand_duration:50,donut_padAngle:0,spline_interpolation_type:"cardinal",stanford_lines:[],stanford_regions:[],stanford_texts:[],stanford_scaleMin:void 0,stanford_scaleMax:void 0,stanford_scaleWidth:void 0,stanford_scaleFormat:void 0,stanford_scaleValues:void 0,stanford_colors:void 0,stanford_padding:{top:0,right:0,bottom:0,left:0},regions:[],tooltip_show:!0,tooltip_grouped:!0,tooltip_order:void 0,tooltip_format_title:void 0,tooltip_format_name:void 0,tooltip_format_value:void 0,tooltip_horizontal:void 0,tooltip_position:void 0,tooltip_contents:function(i,o,u,g){return this.getTooltipContent?this.getTooltipContent(i,o,u,g):""},tooltip_init_show:!1,tooltip_init_x:0,tooltip_init_position:{top:"0px",left:"50px"},tooltip_onshow:function(){},tooltip_onhide:function(){},title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"top-center"};return Object.keys(this.additionalConfig).forEach(function(i){n[i]=this.additionalConfig[i]},this),n},v.prototype.additionalConfig={},v.prototype.loadConfig=function(n){var o,u,g,i=this.config;function m(){var w=u.shift();return w&&o&&"object"==typeof o&&w in o?(o=o[w],m()):w?void 0:o}Object.keys(i).forEach(function(w){o=n,u=w.split("_"),g=m(),Et(g)&&(i[w]=g)})},v.prototype.convertUrlToData=function(n,i,o,u,g){var T,E,m=this,w=i||"csv";"json"===w?(T=m.d3.json,E=m.convertJsonToData):"tsv"===w?(T=m.d3.tsv,E=m.convertXsvToData):(T=m.d3.csv,E=m.convertXsvToData),T(n,o).then(function(L){g.call(m,E.call(m,L,u))}).catch(function(L){throw L})},v.prototype.convertXsvToData=function(n){var i=n.columns;return 0===n.length?{keys:i,rows:[i.reduce(function(u,g){var m;return Object.assign(u,((m={})[g]=null,m))},{})]}:{keys:i,rows:[].concat(n)}},v.prototype.convertJsonToData=function(n,i){var g,m,o=this,u=[];return i?(i.x?(g=i.value.concat(i.x),o.config.data_x=i.x):g=i.value,u.push(g),n.forEach(function(w){var T=[];g.forEach(function(E){var L=o.findValueInJson(w,E);Lt(L)&&(L=null),T.push(L)}),u.push(T)}),m=o.convertRowsToData(u)):(Object.keys(n).forEach(function(w){u.push([w].concat(n[w]))}),m=o.convertColumnsToData(u)),m},v.prototype.findValueInJson=function(n,i){if(i in n)return n[i];for(var o=(i=(i=i.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),u=0;u<o.length;++u){var g=o[u];if(!(g in n))return;n=n[g]}return n},v.prototype.convertRowsToData=function(n){for(var i=[],o=n[0],u=1;u<n.length;u++){for(var g={},m=0;m<n[u].length;m++){if(Lt(n[u][m]))throw new Error("Source data is missing a component at ("+u+","+m+")!");g[o[m]]=n[u][m]}i.push(g)}return{keys:o,rows:i}},v.prototype.convertColumnsToData=function(n){for(var i=[],o=[],u=0;u<n.length;u++){for(var g=n[u][0],m=1;m<n[u].length;m++){if(Lt(i[m-1])&&(i[m-1]={}),Lt(n[u][m]))throw new Error("Source data is missing a component at ("+u+","+m+")!");i[m-1][g]=n[u][m]}o.push(g)}return{keys:o,rows:i}},v.prototype.convertDataToTargets=function(n,i){var g,m,w,T,E,o=this,u=o.config;if($t(n)?T=Object.keys(n[0]):(T=n.keys,n=n.rows),w=T.filter(o.isX,o),o.isStanfordGraphType()){if(E=T.filter(o.isEpochs,o),m=T.filter(o.isNotXAndNotEpochs,o),1!==w.length||1!==E.length||1!==m.length)throw new Error("You must define the 'x' key name and the 'epochs' for Stanford Diagrams")}else m=T.filter(o.isNotX,o);return m.forEach(function(L){var I=o.getXKey(L);o.isCustomX()||o.isTimeSeries()?w.indexOf(I)>=0?o.data.xs[L]=(i&&o.data.xs[L]?o.data.xs[L]:[]).concat(n.map(function(P){return P[I]}).filter(Q).map(function(P,N){return o.generateTargetX(P,L,N)})):u.data_x?o.data.xs[L]=o.getOtherTargetXs():At(u.data_xs)&&(o.data.xs[L]=o.getXValuesOfXKey(I,o.data.targets)):o.data.xs[L]=n.map(function(P,N){return N})}),m.forEach(function(L){if(!o.data.xs[L])throw new Error('x is not defined for id = "'+L+'".')}),(g=m.map(function(L,I){var P=u.data_idConverter(L);return{id:P,id_org:L,values:n.map(function(N,D){var Z,it,$=N[o.getXKey(L)],F=null===N[L]||isNaN(N[L])?null:+N[L];return o.isCustomX()&&o.isCategorized()&&!Lt($)?(0===I&&0===D&&(u.axis_x_categories=[]),-1===(Z=u.axis_x_categories.indexOf($))&&(Z=u.axis_x_categories.length,u.axis_x_categories.push($))):Z=o.generateTargetX($,L,D),(Lt(N[L])||o.data.xs[L].length<=D)&&(Z=void 0),it={x:Z,value:F,id:P},o.isStanfordGraphType()&&(it.epochs=N[E]),it}).filter(function(N){return Et(N.x)})}})).forEach(function(L){var I;u.data_xSort&&(L.values=L.values.sort(function(P,N){return(P.x||0===P.x?P.x:1/0)-(N.x||0===N.x?N.x:1/0)})),I=0,L.values.forEach(function(P){P.index=I++}),o.data.xs[L.id].sort(function(P,N){return P-N})}),o.hasNegativeValue=o.hasNegativeValueInTargets(g),o.hasPositiveValue=o.hasPositiveValueInTargets(g),u.data_type&&o.setTargetType(o.mapToIds(g).filter(function(L){return!(L in u.data_types)}),u.data_type),g.forEach(function(L){o.addCache(L.id_org,L)}),g},v.prototype.isEpochs=function(n){var o=this.config;return o.data_epochs&&n===o.data_epochs},v.prototype.isX=function(n){var o=this.config;return o.data_x&&n===o.data_x||At(o.data_xs)&&function(n,i){var o=!1;return Object.keys(n).forEach(function(u){n[u]===i&&(o=!0)}),o}(o.data_xs,n)},v.prototype.isNotX=function(n){return!this.isX(n)},v.prototype.isNotXAndNotEpochs=function(n){return!this.isX(n)&&!this.isEpochs(n)},v.prototype.isStackNormalized=function(){return this.config.data_stack_normalize&&this.config.data_groups.length>0},v.prototype.isAxisNormalized=function(n){var i=this;return!!i.isStackNormalized()&&i.data.targets.filter(function(o){return i.axis.getId(o.id)===n}).some(function(o){return i.isTargetNormalized(o.id)})},v.prototype.isTargetNormalized=function(n){return this.isStackNormalized()&&this.config.data_groups.some(function(o){return o.includes(n)})},v.prototype.getXKey=function(n){var o=this.config;return o.data_x?o.data_x:At(o.data_xs)?o.data_xs[n]:null},v.prototype.getTotalPerIndex=function(n){var i=this;if(!i.isStackNormalized())return null;var o=i.getFromCache("getTotalPerIndex");if(void 0!==o)return o[n];var u={y:[],y2:[]};return i.data.targets.filter(function(g){return i.isTargetNormalized(g.id)}).filter(function(g){return i.isTargetToShow(g.id)}).forEach(function(g){var m=u[i.axis.getId(g.id)];g.values.forEach(function(w,T){m[T]||(m[T]=0),m[T]+=Ye(w.value)?w.value:0})}),i.addToCache("getTotalPerIndex",u),u[n]},v.prototype.getTotalDataSum=function(){var n=this,i=n.getFromCache("getTotalDataSum");if(void 0!==i)return i;var o=function(n){return Array.isArray(n)?[].concat.apply([],n):[]}(n.data.targets.filter(function(u){return n.isTargetToShow(u.id)}).map(function(u){return u.values})).map(function(u){return u.value}).reduce(function(u,g){return u+g},0);return n.addToCache("getTotalDataSum",o),o},v.prototype.getXValuesOfXKey=function(n,i){var u,o=this;return(i&&At(i)?o.mapToIds(i):[]).forEach(function(m){o.getXKey(m)===n&&(u=o.data.xs[m])}),u},v.prototype.getXValue=function(n,i){var o=this;return n in o.data.xs&&o.data.xs[n]&&Q(o.data.xs[n][i])?o.data.xs[n][i]:i},v.prototype.getOtherTargetXs=function(){var i=Object.keys(this.data.xs);return i.length?this.data.xs[i[0]]:null},v.prototype.getOtherTargetX=function(n){var i=this.getOtherTargetXs();return i&&n<i.length?i[n]:null},v.prototype.addXs=function(n){var i=this;Object.keys(n).forEach(function(o){i.config.data_xs[o]=n[o]})},v.prototype.addName=function(n){var o;return n&&(n.name=void 0!==(o=this.config.data_names[n.id])?o:n.id),n},v.prototype.getValueOnIndex=function(n,i){var o=n.filter(function(u){return u.index===i});return o.length?o[0]:null},v.prototype.updateTargetX=function(n,i){var o=this;n.forEach(function(u){u.values.forEach(function(g,m){g.x=o.generateTargetX(i[m],u.id,m)}),o.data.xs[u.id]=i})},v.prototype.updateTargetXs=function(n,i){var o=this;n.forEach(function(u){i[u.id]&&o.updateTargetX([u],i[u.id])})},v.prototype.generateTargetX=function(n,i,o){var u=this;return u.isTimeSeries()?u.parseDate(n||u.getXValue(i,o)):u.isCustomX()&&!u.isCategorized()?Q(n)?+n:u.getXValue(i,o):o},v.prototype.cloneTarget=function(n){return{id:n.id,id_org:n.id_org,values:n.values.map(function(i){return{x:i.x,value:i.value,id:i.id}})}},v.prototype.getMaxDataCount=function(){return this.d3.max(this.data.targets,function(i){return i.values.length})},v.prototype.mapToIds=function(n){return n.map(function(i){return i.id})},v.prototype.mapToTargetIds=function(n){return n?[].concat(n):this.mapToIds(this.data.targets)},v.prototype.hasTarget=function(n,i){var u,o=this.mapToIds(n);for(u=0;u<o.length;u++)if(o[u]===i)return!0;return!1},v.prototype.isTargetToShow=function(n){return this.hiddenTargetIds.indexOf(n)<0},v.prototype.isLegendToShow=function(n){return this.hiddenLegendIds.indexOf(n)<0},v.prototype.getTargetsToShow=function(){return this.filterTargetsToShow(this.data.targets)},v.prototype.filterTargetsToShow=function(n){var i=this;return n.filter(function(o){return i.isTargetToShow(o.id)})},v.prototype.getTargets=function(){return this.data.targets},v.prototype.mapTargetsToUniqueXs=function(n){var i=this,o=i.d3.set(i.d3.merge(n.map(function(u){return u.values.map(function(g){return+g.x})}))).values();return(o=i.isTimeSeries()?o.map(function(u){return new Date(+u)}):o.map(function(u){return+u})).sort(function(u,g){return u<g?-1:u>g?1:u>=g?0:NaN})},v.prototype.addHiddenTargetIds=function(n){n=n instanceof Array?n:new Array(n);for(var i=0;i<n.length;i++)this.hiddenTargetIds.indexOf(n[i])<0&&(this.hiddenTargetIds=this.hiddenTargetIds.concat(n[i]));this.resetCache()},v.prototype.removeHiddenTargetIds=function(n){this.hiddenTargetIds=this.hiddenTargetIds.filter(function(i){return n.indexOf(i)<0}),this.resetCache()},v.prototype.addHiddenLegendIds=function(n){n=n instanceof Array?n:new Array(n);for(var i=0;i<n.length;i++)this.hiddenLegendIds.indexOf(n[i])<0&&(this.hiddenLegendIds=this.hiddenLegendIds.concat(n[i]))},v.prototype.removeHiddenLegendIds=function(n){this.hiddenLegendIds=this.hiddenLegendIds.filter(function(i){return n.indexOf(i)<0})},v.prototype.getValuesAsIdKeyed=function(n){var i={};return n.forEach(function(o){i[o.id]=[],o.values.forEach(function(u){i[o.id].push(u.value)})}),i},v.prototype.checkValueInTargets=function(n,i){var u,g,m,o=Object.keys(n);for(u=0;u<o.length;u++)for(m=n[o[u]].values,g=0;g<m.length;g++)if(i(m[g].value))return!0;return!1},v.prototype.hasNegativeValueInTargets=function(n){return this.checkValueInTargets(n,function(i){return i<0})},v.prototype.hasPositiveValueInTargets=function(n){return this.checkValueInTargets(n,function(i){return i>0})},v.prototype.isOrderDesc=function(){var n=this.config;return"string"==typeof n.data_order&&"desc"===n.data_order.toLowerCase()},v.prototype.isOrderAsc=function(){var n=this.config;return"string"==typeof n.data_order&&"asc"===n.data_order.toLowerCase()},v.prototype.getOrderFunction=function(){var n=this,i=n.config,o=n.isOrderAsc(),u=n.isOrderDesc();if(o||u){var g=function(w,T){return w+Math.abs(T.value)};return function(w,T){var E=w.values.reduce(g,0),L=T.values.reduce(g,0);return o?L-E:E-L}}if(Wt(i.data_order))return i.data_order;if($t(i.data_order)){var m=i.data_order;return function(w,T){return m.indexOf(w.id)-m.indexOf(T.id)}}},v.prototype.orderTargets=function(n){var i=this.getOrderFunction();return i&&n.sort(i),n},v.prototype.filterByIndex=function(n,i){return this.d3.merge(n.map(function(o){return o.values.filter(function(u){return u.index===i})}))},v.prototype.filterByX=function(n,i){return this.d3.merge(n.map(function(o){return o.values})).filter(function(o){return o.x-i==0})},v.prototype.filterRemoveNull=function(n){return n.filter(function(i){return Q(i.value)})},v.prototype.filterByXDomain=function(n,i){return n.map(function(o){return{id:o.id,id_org:o.id_org,values:o.values.filter(function(u){return i[0]<=u.x&&u.x<=i[1]})}})},v.prototype.hasDataLabel=function(){var n=this.config;return!("boolean"!=typeof n.data_labels||!n.data_labels)||!("object"!=typeof n.data_labels||!At(n.data_labels))},v.prototype.getDataLabelLength=function(n,i,o){var u=this,g=[0,0];return u.selectChart.select("svg").selectAll(".dummy").data([n,i]).enter().append("text").text(function(w){return u.dataLabelFormat(w.id)(w)}).each(function(w,T){g[T]=1.3*Ct(this)[o]}).remove(),g},v.prototype.isNoneArc=function(n){return this.hasTarget(this.data.targets,n.id)},v.prototype.isArc=function(n){return"data"in n&&this.hasTarget(this.data.targets,n.data.id)},v.prototype.findClosestFromTargets=function(n,i){var o=this,u=n.map(function(g){return o.findClosest(g.values,i,o.config.tooltip_horizontal?o.horizontalDistance.bind(o):o.dist.bind(o),o.config.point_sensitivity)}).filter(function(g){return g});if(0!==u.length)return 1===u.length?u[0]:o.findClosest(u,i,o.dist.bind(o))},v.prototype.findClosestFromTargetsByX=function(n,i){var o,u;
1return n.forEach(function(g){g.values.forEach(function(m){var w=Math.abs(i-m.x);(void 0===u||w<u)&&(o=m,u=w)})}),o},v.prototype.findClosest=function(n,i,o,u){void 0===u&&(u=1/0);var m,g=this;return n.filter(function(w){return w&&g.isBarType(w.id)}).forEach(function(w){if(!m){var T=g.main.select("."+k.bars+g.getTargetSelectorSuffix(w.id)+" ."+k.bar+"-"+w.index).node();g.isWithinBar(i,T)&&(m=w)}}),n.filter(function(w){return w&&!g.isBarType(w.id)}).forEach(function(w){var T=o(w,i);T<u&&(u=T,m=w)}),m},v.prototype.dist=function(n,i){var o=this,u=o.config,g=u.axis_rotated?1:0,m=u.axis_rotated?0:1,w=o.circleY(n,n.index),T=o.x(n.x);return Math.sqrt(Math.pow(T-i[g],2)+Math.pow(w-i[m],2))},v.prototype.horizontalDistance=function(n,i){var g=this.config.axis_rotated?1:0,m=this.x(n.x);return Math.abs(m-i[g])},v.prototype.convertValuesToStep=function(n){var o,i=[].concat(n);if(!this.isCategorized())return n;for(o=n.length+1;0<o;o--)i[o]=i[o-1];return i[0]={x:i[0].x-1,value:i[0].value,id:i[0].id},i[n.length+1]={x:i[n.length].x+1,value:i[n.length].value,id:i[n.length].id},i},v.prototype.getRatio=function(n,i,o){void 0===o&&(o=!1);var u=this,g=u.api,m=0;if(i&&g.data.shown.call(g).length)if(m=i.ratio||i.value,"arc"===n)if(u.hasType("gauge"))m=(i.endAngle-i.startAngle)/(Math.PI*(u.config.gauge_fullCircle?2:1));else{var w=u.getTotalDataSum();m=i.value/w}
1else"index"===n&&(w=u.getTotalPerIndex(u.axis.getId(i.id)),i.ratio=Ye(i.value)&&w&&w[i.index]>0?i.value/w[i.index]:0,m=i.ratio);return o&&m?100*m:m},v.prototype.updateDataAttributes=function(n,i){var g=this.config["data_"+n];return typeof i>"u"||(Object.keys(i).forEach(function(m){g[m]=i[m]}),this.redraw({withLegend:!0})),g},v.prototype.load=function(n,i){var o=this;n&&(i.filter&&(n=n.filter(i.filter)),(i.type||i.types)&&n.forEach(function(u){o.setTargetType(u.id,i.types&&i.types[u.id]?i.types[u.id]:i.type)}),o.data.targets.forEach(function(u){for(var g=0;g<n.length;g++)if(u.id===n[g].id){u.values=n[g].values,n.splice(g,1);break}}),o.data.targets=o.data.targets.concat(n)),o.updateTargets(o.data.targets),o.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),i.done&&i.done()},v.prototype.loadFromArgs=function(n){var i=this;i.resetCache(),n.data?i.load(i.convertDataToTargets(n.data),n):n.url?i.convertUrlToData(n.url,n.mimeType,n.headers,n.keys,function(o){i.load(i.convertDataToTargets(o),n)}):i.load(n.json?i.convertDataToTargets(i.convertJsonToData(n.json,n.keys)):n.rows?i.convertDataToTargets(i.convertRowsToData(n.rows)):n.columns?i.convertDataToTargets(i.convertColumnsToData(n.columns)):null,n)},v.prototype.unload=function(n,i){var o=this;o.resetCache(),i||(i=function(){}),(n=n.filter(function(u){return o.hasTarget(o.data.targets,u)}))&&0!==n.length?(o.svg.selectAll(n.map(function(u){return o.selectorTarget(u)})).transition().style("opacity",0).remove().call(o.endall,i),n.forEach(function(u){o.withoutFadeIn[u]=!1,o.legend&&o.legend.selectAll("."+k.legendItem+o.getTargetSelectorSuffix(u)).remove(),o.data.targets=o.data.targets.filter(function(g){return g.id!==u})})):i()},v.prototype.getYDomainMin=function(n){var m,w,T,E,L,I,i=this,o=i.config,u=i.mapToIds(n),g=i.getValuesAsIdKeyed(n);if(o.data_groups.length>0)for(I=i.hasNegativeValueInTargets(n),m=0;m<o.data_groups.length;m++)if(0!==(E=o.data_groups[m].filter(function(P){return u.indexOf(P)>=0})).length)for(T=E[0],I&&g[T]&&g[T].forEach(function(P,N){g[T][N]=P<0?P:0}),w=1;w<E.length;w++)g[L=E[w]]&&g[L].forEach(function(P,N){i.axis.getId(L)===i.axis.getId(T)&&g[T]&&!(I&&+P>0)&&(g[T][N]+=+P)});return i.d3.min(Object.keys(g).map(function(P){return i.d3.min(g[P])}))},v.prototype.getYDomainMax=function(n){var m,w,T,E,L,I,i=this,o=i.config,u=i.mapToIds(n),g=i.getValuesAsIdKeyed(n);if(o.data_groups.length>0)for(I=i.hasPositiveValueInTargets(n),m=0;m<o.data_groups.length;m++)if(0!==(E=o.data_groups[m].filter(function(P){return u.indexOf(P)>=0})).length)for(T=E[0],I&&g[T]&&g[T].forEach(function(P,N){g[T][N]=P>0?P:0}),w=1;w<E.length;w++)g[L=E[w]]&&g[L].forEach(function(P,N){i.axis.getId(L)===i.axis.getId(T)&&g[T]&&!(I&&+P<0)&&(g[T][N]+=+P)});return i.d3.max(Object.keys(g).map(function(P){return i.d3.max(g[P])}))},v.prototype.getYDomain=function(n,i,o){var u=this,g=u.config;if(u.isAxisNormalized(i))return[0,100];var P,N,D,O,F,Z,it,vt,kt,bt,m=n.filter(function(ut){return u.axis.getId(ut.id)===i}),w=o?u.filterByXDomain(m,o):m,T="y2"===i?g.axis_y2_min:g.axis_y_min,E="y2"===i?g.axis_y2_max:g.axis_y_max,L=u.getYDomainMin(w),I=u.getYDomainMax(w),$="y2"===i?g.axis_y2_center:g.axis_y_center,Rt=u.hasType("bar",w)&&g.bar_zerobased||u.hasType("area",w)&&g.area_zerobased,mt="y2"===i?g.axis_y2_inverted:g.axis_y_inverted,dt=u.hasDataLabel()&&g.axis_rotated,Zt=u.hasDataLabel()&&!g.axis_rotated;if(L=Q(T)?T:Q(E)?L<E?L:E-10:L,I=Q(E)?E:Q(T)?T<I?I:T+10:I,0===w.length)return"y2"===i?u.y2.domain():u.y.domain();if(isNaN(L)&&(L=0),isNaN(I)&&(I=L),L===I&&(L<0?I=0:L=0),kt=L>=0&&I>=0,bt=L<=0&&I<=0,(Q(T)&&kt||Q(E)&&bt)&&(Rt=!1),Rt&&(kt&&(L=0),bt&&(I=0)),D=O=.1*(N=Math.abs(I-L)),typeof $<"u"&&(I=$+(F=Math.max(Math.abs(L),Math.abs(I))),L=$-F),dt)Z=u.getDataLabelLength(L,I,"width"),it=xe(u.y.range()),D+=N*((vt=[Z[0]/it,Z[1]/it])[1]/(1-vt[0]-vt[1])),O+=N*(vt[0]/(1-vt[0]-vt[1]));else if(Zt){Z=u.getDataLabelLength(L,I,"height");var gt=u.getY(g["axis_"+i+"_type"],[0,g.axis_rotated?u.width:u.height],[0,N]);D+=gt(Z[1]),O+=gt(Z[0])}return"y"===i&&At(g.axis_y_padding)&&(D=u.axis.getPadding(g.axis_y_padding,"top",D,N),O=u.axis.getPadding(g.axis_y_padding,"bottom",O,N)),"y2"===i&&At(g.axis_y2_padding)&&(D=u.axis.getPadding(g.axis_y2_padding,"top",D,N),O=u.axis.getPadding(g.axis_y2_padding,"bottom",O,N)),Rt&&(kt&&(O=L),bt&&(D=-I)),P=[L-O,I+D],mt?P.reverse():P},v.prototype.getXDomainMin=function(n){var i=this,o=i.config;return Et(o.axis_x_min)?i.isTimeSeries()?this.parseDate(o.axis_x_min):o.axis_x_min:i.d3.min(n,function(u){return i.d3.min(u.values,function(g){return g.x})})},v.prototype.getXDomainMax=function(n){var i=this,o=i.config;return Et(o.axis_x_max)?i.isTimeSeries()?this.parseDate(o.axis_x_max):o.axis_x_max:i.d3.max(n,function(u){return i.d3.max(u.values,function(g){return g.x})})},v.prototype.getXDomainPadding=function(n){var g,m,w,T,i=this,o=i.config,u=n[1]-n[0];return m=i.isCategorized()?0:i.hasType("bar")?(g=i.getMaxDataCount())>1?u/(g-1)/2:.5:.01*u,"object"==typeof o.axis_x_padding&&At(o.axis_x_padding)?(w=Q(o.axis_x_padding.left)?o.axis_x_padding.left:m,T=Q(o.axis_x_padding.right)?o.axis_x_padding.right:m):w=T="number"==typeof o.axis_x_padding?o.axis_x_padding:m,{left
1:w,right:T}},v.prototype.getXDomain=function(n){var i=this,o=[i.getXDomainMin(n),i.getXDomainMax(n)],u=o[0],g=o[1],m=i.getXDomainPadding(o),w=0,T=0;return u-g==0&&!i.isCategorized()&&(i.isTimeSeries()?(u=new Date(.5*u.getTime()),g=new Date(1.5*g.getTime())):(u=0===u?1:.5*u,g=0===g?-1:1.5*g)),(u||0===u)&&(w=i.isTimeSeries()?new Date(u.getTime()-m.left):u-m.left),(g||0===g)&&(T=i.isTimeSeries()?new Date(g.getTime()+m.right):g+m.right),[w,T]},v.prototype.updateXDomain=function(n,i,o,u,g){var m=this,w=m.config;return o&&(m.x.domain(g||m.d3.extent(m.getXDomain(n))),m.orgXDomain=m.x.domain(),w.zoom_enabled&&m.zoom.update(),m.subX.domain(m.x.domain()),m.brush&&m.brush.updateScale(m.subX)),i&&m.x.domain(g||(!m.brush||m.brush.empty()?m.orgXDomain:m.brush.selectionAsValue())),u&&m.x.domain(m.trimXDomain(m.x.orgDomain())),m.x.domain()},v.prototype.trimXDomain=function(n){var i=this.getZoomDomain(),o=i[0],u=i[1];return n[0]<=o&&(n[1]=o-n[0]+ +n[1],n[0]=o),u<=n[1]&&(n[0]=+n[0]-(n[1]-u),n[1]=u),n},v.prototype.drag=function(n){var m,w,T,E,L,I,P,N,i=this,o=i.config,u=i.main,g=i.d3;i.hasArcType()||!o.data_selection_enabled||!o.data_selection_multiple||(m=i.dragStart[0],w=i.dragStart[1],T=n[0],E=n[1],L=Math.min(m,T),I=Math.max(m,T),P=o.data_selection_grouped?i.margin.top:Math.min(w,E),N=o.data_selection_grouped?i.height:Math.max(w,E),u.select("."+k.dragarea).attr("x",L).attr("y",P).attr("width",I-L).attr("height",N-P),u.selectAll("."+k.shapes).selectAll("."+k.shape).each(function(D,O){if(o.data_selection_isselectable(D)){var it,vt,Rt,dt,$=g.select(this),F=$.classed(k.SELECTED),Z=$.classed(k.INCLUDED),mt=!1;if($.classed(k.circle))it=1*$.attr("cx"),vt=1*$.attr("cy"),Rt=i.togglePoint,mt=L<it&&it<I&&P<vt&&vt<N;else{if(!$.classed(k.bar))return;vt=(dt=yn(this)).y,Rt=i.togglePath,mt=!(I<(it=dt.x)||it+dt.width<L||N<vt||vt+dt.height<P)}mt^Z&&($.classed(k.INCLUDED,!Z),$.classed(k.SELECTED,!F),Rt.call(i,!F,$,D,O))}}))},v.prototype.dragstart=function(n){var i=this,o=i.config;i.hasArcType()||!o.data_selection_enabled||(i.dragStart=n,i.main.select("."+k.chart).append("rect").attr("class",k.dragarea).style("opacity",.1),i.dragging=!0)},v.prototype.dragend=function(){var n=this,i=n.config;n.hasArcType()||!i.data_selection_enabled||(n.main.select("."+k.dragarea).transition().duration(100).style("opacity",0).remove(),n.main.selectAll("."+k.shape).classed(k.INCLUDED,!1),n.dragging=!1)},v.prototype.getYFormat=function(n){var i=this,o=n&&!i.hasType("gauge")?i.defaultArcValueFormat:i.yFormat,u=n&&!i.hasType("gauge")?i.defaultArcValueFormat:i.y2Format;return function(g,m,w){return("y2"===i.axis.getId(w)?u:o).call(i,g,m)}},v.prototype.yFormat=function(n){var o=this.config;return(o.axis_y_tick_format?o.axis_y_tick_format:this.defaultValueFormat)(n)},v.prototype.y2Format=function(n){var o=this.config;return(o.axis_y2_tick_format?o.axis_y2_tick_format:this.defaultValueFormat)(n)},v.prototype.defaultValueFormat=function(n){return Q(n)?+n:""},v.prototype.defaultArcValueFormat=function(n,i){return(100*i).toFixed(1)+"%"},v.prototype.dataLabelFormat=function(n){var o=this.config.data_labels,g=function(m){return Q(m)?+m:""};return"function"==typeof o.format?o.format:"object"==typeof o.format?o.format[n]?!0===o.format[n]?g:o.format[n]:function(){return""}:g},v.prototype.initGrid=function(){var n=this,i=n.config,o=n.d3;n.grid=n.main.append("g").attr("clip-path",n.clipPathForGrid).attr("class",k.grid),i.grid_x_show&&n.grid.append("g").attr("class",k.xgrids),i.grid_y_show&&n.grid.append("g").attr("class",k.ygrids),i.grid_focus_show&&n.grid.append("g").attr("class",k.xgridFocus).append("line").attr("class",k.xgridFocus),n.xgrid=o.selectAll([]),i.grid_lines_front||n.initGridLines()},v.prototype.initGridLines=function(){var n=this,i=n.d3;n.gridLines=n.main.append("g").attr("clip-path",n.clipPathForGrid).attr("class",k.grid+" "+k.gridLines),n.gridLines.append("g").attr("class",k.xgridLines),n.gridLines.append("g").attr("class",k.ygridLines),n.xgridLines=i.selectAll([])},v.prototype.updateXGrid=function(n){var i=this,o=i.config,u=i.d3,g=i.generateGridData(o.grid_x_type,i.x),m=i.isCategorized()?i.xAxis.tickOffset():0;i.xgridAttr=o.axis_rotated?{x1:0,x2:i.width,y1:function(E){return i.x(E)-m},y2:function(E){return i.x(E)-m}}:{x1:function(E){return i.x(E)+m},x2:function(E){return i.x(E)+m},y1:0,y2:i.height},i.xgridAttr.opacity=function(){return+u.select(this).attr(o.axis_rotated?"y1":"x1")===(o.axis_rotated?i.height:0)?0:1};
vendor: 4,131 bytes, line 1
1var w=i.main.select("."+k.xgrids).selectAll("."+k.xgrid).data(g),T=w.enter().append("line").attr("class",k.xgrid).attr("x1",i.xgridAttr.x1).attr("x2",i.xgridAttr.x2).attr("y1",i.xgridAttr.y1).attr("y2",i.xgridAttr.y2).style("opacity",0);i.xgrid=T.merge(w),n||i.xgrid.attr("x1",i.xgridAttr.x1).attr("x2",i.xgridAttr.x2).attr("y1",i.xgridAttr.y1).attr("y2",i.xgridAttr.y2).style("opacity",i.xgridAttr.opacity),w.exit().remove()},v.prototype.updateYGrid=function(){var n=this,i=n.config,o=n.yAxis.tickValues()||n.y.ticks(i.grid_y_ticks),u=n.main.select("."+k.ygrids).selectAll("."+k.ygrid).data(o),g=u.enter().append("line").attr("class",k.ygrid);n.ygrid=g.merge(u),n.ygrid.attr("x1",i.axis_rotated?n.y:0).attr("x2",i.axis_rotated?n.y:n.width).attr("y1",i.axis_rotated?0:n.y).attr("y2",i.axis_rotated?n.height:n.y),u.exit().remove(),n.smoothLines(n.ygrid,"grid")},v.prototype.gridTextAnchor=function(n){return n.position?n.position:"end"},v.prototype.gridTextDx=function(n){return"start"===n.position?4:"middle"===n.position?0:-4},v.prototype.xGridTextX=function(n){return"start"===n.position?-this.height:"middle"===n.position?-this.height/2:0},v.prototype.yGridTextX=function(n){return"start"===n.position?0:"middle"===n.position?this.width/2:this.width},v.prototype.updateGrid=function(n){var g,m,w,T,i=this,o=i.main,u=i.config,E=i.xv.bind(i),L=i.yv.bind(i),I=i.xGridTextX.bind(i),P=i.yGridTextX.bind(i);i.grid.style("visibility",i.hasArcType()?"hidden":"visible"),o.select("line."+k.xgridFocus).style("visibility","hidden"),u.grid_x_show&&i.updateXGrid(),(m=(g=o.select("."+k.xgridLines).selectAll("."+k.xgridLine).data(u.grid_x_lines)).enter().append("g").attr("class",function(N){return k.xgridLine+(N.class?" "+N.class:"")})).append("line").attr("x1",u.axis_rotated?0:E).attr("x2",u.axis_rotated?i.width:E).attr("y1",u.axis_rotated?E:0).attr("y2",u.axis_rotated?E:i.height).style("opacity",0),m.append("text").attr("text-anchor",i.gridTextAnchor).attr("transform",u.axis_rotated?"":"rotate(-90)").attr("x",u.axis_rotated?P:I).attr("y",E).attr("dx",i.gridTextDx).attr("dy",-5).style("opacity",0),i.xgridLines=m.merge(g),g.exit().transition().duration(n).style("opacity",0).remove(),u.grid_y_show&&i.updateYGrid(),(T=(w=o.select("."+k.ygridLines).selectAll("."+k.ygridLine).data(u.grid_y_lines)).enter().append("g").attr("class",function(N){return k.ygridLine+(N.class?" "+N.class:"")})).append("line").attr("x1",u.axis_rotated?L:0).attr("x2",u.axis_rotated?L:i.width).attr("y1",u.axis_rotated?0:L).attr("y2",u.axis_rotated?i.height:L).style("opacity",0),T.append("text").attr("text-anchor",i.gridTextAnchor).attr("transform",u.axis_rotated?"rotate(-90)":"").attr("x",u.axis_rotated?I:P).attr("y",L).attr("dx",i.gridTextDx).attr("dy",-5).style("opacity",0),i.ygridLines=T.merge(w),i.ygridLines.select("line").transition().duration(n).attr("x1",u.axis_rotated?L:0).attr("x2",u.axis_rotated?L:i.width).attr("y1",u.axis_rotated?0:L).attr("y2",u.axis_rotated?i.height:L).style("opacity",1),i.ygridLines.select("text").transition().duration(n).attr("x",u.axis_rotated?i.xGridTextX.bind(i):i.yGridTextX.bind(i)).attr("y",L).text(function(N){return N.text}).style("opacity",1),w.exit().transition().duration(n).style("opacity",0).remove()},v.prototype.redrawGrid=function(n,i){var o=this,u=o.config,g=o.xv.bind(o),m=o.xgridLines.select("line"),w=o.xgridLines.select("text");return[(n?m.transition(i):m).attr("x1",u.axis_rotated?0:g).attr("x2",u.axis_rotated?o.width:g).attr("y1",u.axis_rotated?g:0).attr("y2",u.axis_rotated?g:o.height).style("opacity",1),(n?w.transition(i):w).attr("x",u.axis_rotated?o.yGridTextX.bind(o):o.xGridTextX.bind(o)).attr("y",g).text(function(T){return T.text}).style("opacity",1)]},v.prototype.showXGridFocus=function(n){var i=this,o=i.config,u=n.filter(function(w){return w&&Q(w.value)}),g=i.main.selectAll("line."+k.xgridFocus),m=i.xx.bind(i);!o.tooltip_show||i.hasType("stanford")||i.hasArcType()||(g.style("visibility","visible").data([u[0]]).attr(o.axis_rotated?"y1":"x1",m).attr(o.axis_rotated?"y2":"x2",m),i.smoothLines(g,"grid"))},v.prototype.hideXGridFocus=function(){this.main.select("line."+k.xgri
1dFocus).style("visibility","hidden")},v.prototype.updateXgridFocus=function(){var n=this,i=n.config;n.main.select("line."+k.xgridFocus).attr("x1",i.axis_rotated?0:-10).attr("x2",i.axis_rotated?n.width:-10).attr("y1",i.axis_rotated?-10:0).attr("y2",i.axis_rotated?-10:n.height)},v.prototype.generateGridData=function(n,i){var g,m,w,T,u=[],E=this.main.select("."+k.axisX).selectAll(".tick").size();if("year"===n)for(m=(g=this.getXDomain())[0].getFullYear(),w=g[1].getFullYear(),T=m;T<=w;T++)u.push(new Date(T+"-01-01 00:00:00"));else(u=i.ticks(10)).length>E&&(u=u.filter(function(L){return(""+L).indexOf(".")<0}));return u},v.prototype.getGridFilterToRemove=function(n){return n?function(i){var o=!1;return[].concat(n).forEach(function(u){("value"in u&&i.value===u.value||"class"in u&&i.class===u.class)&&(o=!0)}),o}:function(){return!0}},v.prototype.removeGridLines=function(n,i){var o=this,u=o.config,g=o.getGridFilterToRemove(n),m=function(E){return!g(E)},T=i?k.xgridLine:k.ygridLine;o.main.select("."+(i?k.xgridLines:k.ygridLines)).selectAll("."+T).filter(g).transition().duration(u.transition_duration).style("opacity",0).remove(),i?u.grid_x_lines=u.grid_x_lines.filter(m):u.grid_y_lines=u.grid_y_lines.filter(m)},v.prototype.initEventRect=function(){var n=this,i=n.config;n.main.select("."+k.chart).append("g").attr("class",k.eventRects).style("fill-opacity",0),n.eventRect=n.main.select("."+k.eventRects).append("rect").attr("class",k.eventRect),i.zoom_enabled&&n.zoom&&(n.eventRect.call(n.zoom).on("dblclick.zoom",null),i.zoom_initialRange&&n.eventRect.transition().duration(0).call(n.zoom.transform,n.zoomTransform(i.zoom_initialRange)))},v.prototype.redrawEventRect=function(){var n=this,i=n.d3,o=n.config;function u(){n.svg.select("."+k.eventRect).style("cursor",null),n.hideXGridFocus(),n.hideTooltip(),n.unexpandCircles(),n.unexpandBars()}var g=function(w,T){return T&&(n.isBarType(T.id)||n.dist(T,w)<o.point_sensitivity)},m=function(w){return w?n.addName(Object.assign({},w)):null};n.main.select("."+k.eventRects).style("cursor",o.zoom_enabled?o.axis_rotated?"ns-resize":"ew-resize":null),n.eventRect.attr("x",0).attr("y",0).attr("width",n.width).attr("height",n.height).on("mouseout",o.interaction_enabled?function(){!o||n.hasArcType()||(n.mouseover&&(o.data_onmouseout.call(n.api,n.mouseover),n.mouseover=void 0),u())}:null).on("mousemove",o.interaction_enabled?function(){if(!n.dragging){var w=n.getTargetsToShow();if(!n.hasArcType(w)){var P,T=i.mouse(this),E=m(n.findClosestFromTargets(w,T)),L=g(T,E);if(n.mouseover&&(!E||E.id!==n.mouseover.id||E.index!==n.mouseover.index)&&(o.data_onmouseout.call(n.api,n.mouseover),n.mouseover=void 0),E&&!n.mouseover&&(o.data_onmouseover.call(n.api,E),n.mouseover=E),n.svg.select("."+k.eventRect).style("cursor",L?"pointer":null),!o.tooltip_grouped||n.hasType("stanford",w))E&&(P=[E]);else{var N;(N=E||n.findClosestFromTargetsByX(w,n.x.invert(o.axis_rotated?T[1]:T[0])))&&(P=n.filterByX(w,N.x))}if(!P||0===P.length)return u();P=P.map(m),n.showTooltip(P,this),o.point_focus_expand_enabled&&(n.unexpandCircles(),P.forEach(function(O){n.expandCircles(O.index,O.id,!1)})),n.unexpandBars(),P.forEach(function(O){n.expandBars(O.index,O.id,!1)}),n.showXGridFocus(P)}}}:null).on("click",o.interaction_enabled?function(){var w=n.getTargetsToShow();if(!n.hasArcType(w)){var T=i.mouse(this),E=m(n.findClosestFromTargets(w,T));if(g(T,E)&&((!o.data_selection_grouped||n.isStanfordType(E)?[E]:n.filterByX(w,E.x)).forEach(function(P){n.main.selectAll("."+k.shapes+n.getTargetSelectorSuffix(P.id)).selectAll("."+k.shape+"-"+P.index).each(function(){(o.data_selection_grouped||n.isWithinShape(this,P))&&n.toggleShape(this,P,P.index)})}),E)){var I=n.main.selectAll("."+k.shapes+n.getTargetSelectorSuffix(E.id)).select("."+k.shape+"-"+E.index);o.data_onclick.call(n.api,E,I.node())}}}:null).call(o.interaction_enabled&&o.data_selection_draggable&&n.drag?i.drag().on("drag",function(){n.drag(i.mouse(this))}).on("start",function(){n.dragstart(i.mouse(this))}).on("end",function(){n.dragend()}):function(){})},v.prototype.getMousePosition=function(n){return[this.x(n.x),this.getYScale(n.id)(n.value)]},v.prototype.dispatchEvent=function(n,i){var g=this.main.select("."+k.eventRect).node(),m=g.getBoundingClientRect(),w=m.left+(i?i[
vendor: 17,586 bytes, line 1
10]:0),T=m.top+(i?i[1]:0),E=document.createEvent("MouseEvents");E.initMouseEvent(n,!0,!0,window,0,w,T,w,T,!1,!1,!1,!1,0,null),g.dispatchEvent(E)},v.prototype.initLegend=function(){var n=this;if(n.legendItemTextBox={},n.legendHasRendered=!1,n.legend=n.svg.append("g").attr("transform",n.getTranslate("legend")),!n.config.legend_show)return n.legend.style("visibility","hidden"),void(n.hiddenLegendIds=n.mapToIds(n.data.targets));n.updateLegendWithDefaults()},v.prototype.updateLegendWithDefaults=function(){var n=this;n.updateLegend(n.mapToIds(n.data.targets),{withTransform:!1,withTransitionForTransform:!1,withTransition:!1})},v.prototype.updateSizeForLegend=function(n,i){var o=this,u=o.config,g={top:o.isLegendTop?o.getCurrentPaddingTop()+u.legend_inset_y+5.5:o.currentHeight-n-o.getCurrentPaddingBottom()-u.legend_inset_y,left:o.isLegendLeft?o.getCurrentPaddingLeft()+u.legend_inset_x+.5:o.currentWidth-i-o.getCurrentPaddingRight()-u.legend_inset_x+.5};o.margin3={top:o.isLegendRight?0:o.isLegendInset?g.top:o.currentHeight-n,right:NaN,bottom:0,left:o.isLegendRight?o.currentWidth-i:o.isLegendInset?g.left:0}},v.prototype.transformLegend=function(n){var i=this;(n?i.legend.transition():i.legend).attr("transform",i.getTranslate("legend"))},v.prototype.updateLegendStep=function(n){this.legendStep=n},v.prototype.updateLegendItemWidth=function(n){this.legendItemWidth=n},v.prototype.updateLegendItemHeight=function(n){this.legendItemHeight=n},v.prototype.getLegendWidth=function(){var n=this;return n.config.legend_show?n.isLegendRight||n.isLegendInset?n.legendItemWidth*(n.legendStep+1):n.currentWidth:0},v.prototype.getLegendHeight=function(){var n=this,i=0;return n.config.legend_show&&(i=n.isLegendRight?n.currentHeight:Math.max(20,n.legendItemHeight)*(n.legendStep+1)),i},v.prototype.opacityForLegend=function(n){return n.classed(k.legendItemHidden)?null:1},v.prototype.opacityForUnfocusedLegend=function(n){return n.classed(k.legendItemHidden)?null:.3},v.prototype.toggleFocusLegend=function(n,i){var o=this;n=o.mapToTargetIds(n),o.legend.selectAll("."+k.legendItem).filter(function(u){return n.indexOf(u)>=0}).classed(k.legendItemFocused,i).transition().duration(100).style("opacity",function(){return(i?o.opacityForLegend:o.opacityForUnfocusedLegend).call(o,o.d3.select(this))})},v.prototype.revertLegend=function(){var n=this,i=n.d3;n.legend.selectAll("."+k.legendItem).classed(k.legendItemFocused,!1).transition().duration(100).style("opacity",function(){return n.opacityForLegend(i.select(this))})},v.prototype.showLegend=function(n){var i=this,o=i.config;o.legend_show||(o.legend_show=!0,i.legend.style("visibility","visible"),i.legendHasRendered||i.updateLegendWithDefaults()),i.removeHiddenLegendIds(n),i.legend.selectAll(i.selectorLegends(n)).style("visibility","visible").transition().style("opacity",function(){return i.opacityForLegend(i.d3.select(this))})},v.prototype.hideLegend=function(n){var i=this,o=i.config;o.legend_show&&Ut(n)&&(o.legend_show=!1,i.legend.style("visibility","hidden")),i.addHiddenLegendIds(n),i.legend.selectAll(i.selectorLegends(n)).style("opacity",0).style("visibility","hidden")},v.prototype.clearLegendItemTextBoxCache=function(){this.legendItemTextBox={}},v.prototype.updateLegend=function(n,i,o){var m,w,T,E,L,I,P,N,D,kt,ft,le,Te,Ae,ve,pe,u=this,g=u.config,F=0,Z=0,vt=g.legend_item_tile_width+5,bt=0,Rt={},mt={},dt={},Zt=[0],gt={},ut=0;function ie(et,wt,Ce){var vn,ha,ti=0===Ce,or=Ce===n.length-1,mn=function Pe(et,wt){return u.legendItemTextBox[wt]||(u.legendItemTextBox[wt]=u.getTextRect(et.textContent,k.legendItem,et)),u.legendItemTextBox[wt]}(et,wt),Ke=mn.width+vt+(!or||u.isLegendRight||u.isLegendInset?10:0)+g.legend_padding,Be=mn.height+4,xn=u.isLegendRight||u.isLegendInset?Be:Ke,sr=u.isLegendRight||u.isLegendInset?u.getLegendHeight():u.getLegendWidth();function ur(wn,hs){hs||(vn=(sr-bt-xn)/2)<10&&(vn=(sr-xn)/2,bt=0,ut++),gt[wn]=ut,Zt[ut]=u.isLegendInset?10:vn,Rt[wn]=bt,bt+=xn}ti&&(bt=0,ut=0,F=0,Z=0),!g.legend_show||u.isLegendToShow(wt)?(mt[wt]=Ke,dt[wt]=Be,(!F||Ke>=F)&&(F=Ke),(!Z||Be>=Z)&&(Z=Be),ha=u.isLegendRight||u.isLegendInset?Z:F,g.legend_equally?(Object.keys(mt).forEach(function(wn){mt[wn]=F}),Object.keys(dt).forEach(function(wn){dt[wn]=Z}),(vn=(sr-ha*n.length)/2)<10?(bt=0,ut=0,n.forEach(function(wn){ur(wn)})):ur(wt,!0)):ur(wt)):mt[wt]=dt[wt]=gt[wt]=Rt[wt]=0}n=n.filter(function(et){return!Et(g.data_names[et])||null!==g.data_names[et]}),ft=Ht(i=i||{},"withTransition",!0),le=Ht(i,"withTransitionForTransform",!0),u.isLegendInset&&u.updateLegendStep(ut=g.legend_inset_step?g.legend_inset_step:n.length),u.isLegendRight?(m=function(et){return F*gt[et]},E=function(et){return Zt[gt[et]]+Rt[et]}):u.isLegendInset?(m=function(et){return F*gt[et]+10},E=function(et){return Zt[gt[et]]+Rt[et]}):(m=function(et){return Zt[gt[et]]+Rt[et]},E=function(et){return Z*gt[et]}),w=function(et,wt){return m(et,wt)+4+g.legend_item_tile_width},L=function(et,wt){return E(et,wt)+9},T=function(et,wt){return m(et,wt)},I=function(et,wt){return E(et,wt)-5},P=function(et,wt){return m(et,wt)-2},N=function(et,wt){return m(et,wt)-2+g.legend_item_tile_width},D=function(et,wt){return E(et,wt)+4},(kt=u.legend.selectAll("."+k.legendItem).data(n).enter().append("g").attr("class",function(et){return u.generateClass(k.legendItem,et)}).style("visibility",function(et){return u.isLegendToShow(et)?"visible":"hidden"}).style("cursor",function(){return g.interaction_enabled?"pointer":"auto"}).on("click",g.interaction_enabled?function(et){g.legend_item_onclick?g.legend_item_onclick.call(u,et):u.d3.event.altKey?(u.api.hide(),u.api.show(et)):(u.api.toggle(et),u.isTargetToShow(et)?u.api.focus(et):u.api.revert())}:null).on("mouseover",g.interaction_enabled?function(et){g.legend_item_onmouseover?g.legend_item_onmouseover.call(u,et):(u.d3.select(this).classed(k.legendItemFocused,!0),!u.transiting&&u.isTargetToShow(et)&&u.api.focus(et))}:null).on("mouseout",g.interaction_enabled?function(et){g.legend_item_onmouseout?g.legend_item_onmouseout.call(u,et):(u.d3.select(this).classed(k.legendItemFocused,!1),u.api.revert())}:null)).append("text").text(function(et){return Et(g.data_names[et])?g.data_names[et]:et}).each(function(et,wt){ie(this,et,wt)}).style("pointer-events","none").attr("x",u.isLegendRight||u.isLegendInset?w:-200).attr("y",u.isLegendRight||u.isLegendInset?-200:L),kt.append("rect").attr("class",k.legendItemEvent).style("fill-opacity",0).attr("x",u.isLegendRight||u.isLegendInset?T:-200).attr("y",u.isLegendRight||u.isLegendInset?-200:I),kt.append("line").attr("class",k.legendItemTile).style("stroke",u.color).style("pointer-events","none").attr("x1",u.isLegendRight||u.isLegendInset?P:-200).attr("y1",u.isLegendRight||u.isLegendInset?-200:D).attr("x2",u.isLegendRight||u.isLegendInset?N:-200).attr("y2",u.isLegendRight||u.isLegendInset?-200:D).attr("stroke-width",g.legend_item_tile_height),pe=u.legend.select("."+k.legendBackground+" rect"),u.isLegendInset&&F>0&&0===pe.size()&&(pe=u.legend.insert("g","."+k.legendItem).attr("class",k.legendBackground).append("rect")),Te=u.legend.selectAll("text").data(n).text(function(et){return Et(g.data_names[et])?g.data_names[et]:et}).each(function(et,wt){ie(this,et,wt)}),(ft?Te.transition():Te).attr("x",w).attr("y",L),Ae=u.legend.selectAll("rect."+k.legendItemEvent).data(n),(ft?Ae.transition():Ae).attr("width",function(et){return mt[et]}).attr("height",function(et){return dt[et]}).attr("x",T).attr("y",I),ve=u.legend.selectAll("line."+k.legendItemTile).data(n),(ft?ve.transition():ve).style("stroke",u.levelColor?function(et){return u.levelColor(u.cache[et].values.reduce(function(wt,Ce){return wt+Ce.value},0))}:u.color).attr("x1",P).attr("y1",D).attr("x2",N).attr("y2",D),pe&&(ft?pe.transition():pe).attr("height",u.getLegendHeight()-12).attr("width",F*(ut+1)+10),u.legend.selectAll("."+k.legendItem).classed(k.legendItemHidden,function(et){return!u.isTargetToShow(et)}),u.updateLegendItemWidth(F),u.updateLegendItemHeight(Z),u.updateLegendStep(ut),u.updateSizes(),u.updateScales(),u.updateSvgSize(),u.transformAll(le,o),u.legendHasRendered=!0},v.prototype.initRegion=function(){var n=this;n.region=n.main.append("g").attr("clip-path",n.clipPath).attr("class",k.regions)},v.prototype.updateRegion=function(n){var i=this,o=i.config;i.region.style("visibility",i.hasArcType()?"hidden":"visible");var u=i.main.select("."+k.regions).selectAll("."+k.region).data(o.regions),g=u.enter().append("g");g.append("rect").attr("x",i.regionX.bind(i)).attr("y",i.regionY.bind(i)).attr("width",i.regionWidth.bind(i)).attr("height",i.regionHeight.bind(i)).style("fill-opacity",function(m){return Q(m.opacity)?m.opacity:.1}),g.append("text").text(i.labelRegion.bind(i)),i.mainRegion=g.merge(u).attr("class",i.classRegion.bind(i)),u.exit().transition().duration(n).style("opacity",0).remove()},v.prototype.redrawRegion=function(n,i){var o=this,u=o.mainRegion,g=o.mainRegion.selectAll("text");return[(n?u.transition(i):u).attr("x",o.regionX.bind(o)).attr("y",o.regionY.bind(o)).attr("width",o.regionWidth.bind(o)).attr("height",o.regionHeight.bind(o)).style("fill-opacity",function(m){return Q(m.opacity)?m.opacity:.1}),(n?g.transition(i):g).attr("x",o.labelOffsetX.bind(o)).attr("y",o.labelOffsetY.bind(o)).attr("transform",o.labelTransform.bind(o)).attr("style","text-anchor: left;")]},v.prototype.regionX=function(n){var i=this,o=i.config;return"y"===n.axis||"y2"===n.axis?o.axis_rotated&&"start"in n?("y"===n.axis?i.y:i.y2)(n.start):0:o.axis_rotated?0:"start"in n?i.x(i.isTimeSeries()?i.parseDate(n.start):n.start):0},v.prototype.regionY=function(n){var i=this,o=i.config;return"y"===n.axis||"y2"===n.axis?o.axis_rotated?0:"end"in n?("y"===n.axis?i.y:i.y2)(n.end):0:o.axis_rotated&&"start"in n?i.x(i.isTimeSeries()?i.parseDate(n.start):n.start):0},v.prototype.regionWidth=function(n){var g,i=this,o=i.config,u=i.regionX(n);return(g="y"===n.axis||"y2"===n.axis?o.axis_rotated&&"end"in n?("y"===n.axis?i.y:i.y2)(n.end):i.width:o.axis_rotated?i.width:"end"in n?i.x(i.isTimeSeries()?i.parseDate(n.end):n.end):i.width)<u?0:g-u},v.prototype.regionHeight=function(n){var g,i=this,o=i.config,u=this.regionY(n);return(g="y"===n.axis||"y2"===n.axis?o.axis_rotated?i.height:"start"in n?("y"===n.axis?i.y:i.y2)(n.start):i.height:o.axis_rotated&&"end"in n?i.x(i.isTimeSeries()?i.parseDate(n.end):n.end):i.height)<u?0:g-u},v.prototype.isRegionOnX=function(n){return!n.axis||"x"===n.axis},v.prototype.labelRegion=function(n){return"label"in n?n.label:""},v.prototype.labelTransform=function(n){return"vertical"in n&&n.vertical?"rotate(90)":""},v.prototype.labelOffsetX=function(n){var i="paddingX"in n?n.paddingX:3,o="paddingY"in n?n.paddingY:3;return"vertical"in n&&n.vertical?this.regionY(n)+o:this.regionX(n)+i},v.prototype.labelOffsetY=function(n){var i="paddingX"in n?n.paddingX:3,o="paddingY"in n?n.paddingY:3;return"vertical"in n&&n.vertical?-(this.regionX(n)+i):this.regionY(n)+10+o},v.prototype.getScale=function(n,i,o){return(o?this.d3.scaleTime():this.d3.scaleLinear()).range([n,i])},v.prototype.getX=function(n,i,o,u){var T,g=this,m=g.getScale(n,i,g.isTimeSeries()),w=o?m.domain(o):m;for(T in g.isCategorized()?(u=u||function(){return 0},m=function(E,L){var I=w(E)+u(E);return L?I:Math.ceil(I)}):m=function(E,L){var I=w(E);return L?I:Math.ceil(I)},w)m[T]=w[T];return m.orgDomain=function(){return w.domain()},g.isCategorized()&&(m.domain=function(E){return arguments.length?(w.domain(E),m):[(E=this.orgDomain())[0],E[1]+1]}),m},v.prototype.getY=function(n,i,o){var u;if("timeseries"===n||"time"===n)u=this.d3.scaleTime();else if("log"===n)u=Ti(this.d3);else{if("linear"!==n&&void 0!==n)throw new Error('Invalid Y axis type: "'+n+'"');u=this.d3.scaleLinear()}return i&&u.domain(i),o&&u.range(o),u},v.prototype.getYScale=function(n){return"y2"===this.axis.getId(n)?this.y2:this.y},v.prototype.getSubYScale=function(n){return"y2"===this.axis.getId(n)?this.subY2:this.subY},v.prototype.updateScales=function(){var n=this,i=n.config,o=!n.x;n.xMin=i.axis_rotated?1:0,n.xMax=i.axis_rotated?n.height:n.width,n.yMin=i.axis_rotated?0:n.height,n.yMax=i.axis_rotated?n.width:1,n.subXMin=n.xMin,n.subXMax=n.xMax,n.subYMin=i.axis_rotated?0:n.height2,n.subYMax=i.axis_rotated?n.width2:1,n.x=n.getX(n.xMin,n.xMax,o?void 0:n.x.orgDomain(),function(){return n.xAxis.tickOffset()}),n.y=n.getY(i.axis_y_type,o?i.axis_y_default:n.y.domain(),[n.yMin,n.yMax]),n.y2=n.getY(i.axis_y2_type,o?i.axis_y2_default:n.y2.domain(),[n.yMin,n.yMax]),n.subX=n.getX(n.xMin,n.xMax,n.orgXDomain,function(u){return u%1?0:n.subXAxis.tickOffset()}),n.subY=n.getY(i.axis_y_type,o?i.axis_y_default:n.subY.domain(),[n.subYMin,n.subYMax]),n.subY2=n.getY(i.axis_y2_type,o?i.axis_y2_default:n.subY2.domain(),[n.subYMin,n.subYMax]),n.xAxisTickFormat=n.axis.getXAxisTickFormat(),n.xAxisTickValues=n.axis.getXAxisTickValues(),n.yAxisTickValues=n.axis.getYAxisTickValues(),n.y2AxisTickValues=n.axis.getY2AxisTickValues(),n.xAxis=n.axis.getXAxis(n.x,n.xOrient,n.xAxisTickFormat,n.xAxisTickValues,i.axis_x_tick_outer),n.subXAxis=n.axis.getXAxis(n.subX,n.subXOrient,n.xAxisTickFormat,n.xAxisTickValues,i.axis_x_tick_outer),n.yAxis=n.axis.getYAxis("y",n.y,n.yOrient,n.yAxisTickValues,i.axis_y_tick_outer),n.y2Axis=n.axis.getYAxis("y2",n.y2,n.y2Orient,n.y2AxisTickValues,i.axis_y2_tick_outer),o||n.brush&&n.brush.updateScale(n.subX),n.updateArc&&n.updateArc()},v.prototype.selectPoint=function(n,i,o){var u=this,g=u.config,m=(g.axis_rotated?u.circleY:u.circleX).bind(u),w=(g.axis_rotated?u.circleX:u.circleY).bind(u),T=u.pointSelectR.bind(u);g.data_onselected.call(u.api,i,n.node()),u.main.select("."+k.selectedCircles+u.getTargetSelectorSuffix(i.id)).selectAll("."+k.selectedCircle+"-"+o).data([i]).enter().append("circle").attr("class",function(){return u.generateClass(k.selectedCircle,o)}).attr("cx",m).attr("cy",w).attr("stroke",function(){return u.color(i)}).attr("r",function(E){return 1.4*u.pointSelectR(E)}).transition().duration(100).attr("r",T)},v.prototype.unselectPoint=function(n,i,o){var u=this;u.config.data_onunselected.call(u.api,i,n.node()),u.main.select("."+k.selectedCircles+u.getTargetSelectorSuffix(i.id)).selectAll("."+k.selectedCircle+"-"+o).transition().duration(100).attr("r",0).remove()},v.prototype.togglePoint=function(n,i,o,u){n?this.selectPoint(i,o,u):this.unselectPoint(i,o,u)},v.prototype.selectPath=function(n,i){var o=this;o.config.data_onselected.call(o,i,n.node()),o.config.interaction_brighten&&n.transition().duration(100).style("fill",function(){return o.d3.rgb(o.color(i)).brighter(.75)})},v.prototype.unselectPath=function(n,i){var o=this;o.config.data_onunselected.call(o,i,n.node()),o.config.interaction_brighten&&n.transition().duration(100).style("fill",function(){return o.color(i)})},v.prototype.togglePath=function(n,i,o,u){n?this.selectPath(i,o,u):this.unselectPath(i,o,u)},v.prototype.getToggle=function(n,i){var u,o=this;return"circle"===n.nodeName?u=o.isStepType(i)?function(){}:o.togglePoint:"path"===n.nodeName&&(u=o.togglePath),u},v.prototype.toggleShape=function(n,i,o){var u=this,g=u.d3,m=u.config,w=g.select(n),T=w.classed(k.SELECTED),E=u.getToggle(n,i).bind(u);m.data_selection_enabled&&m.data_selection_isselectable(i)&&(m.data_selection_multiple||u.main.selectAll("."+k.shapes+(m.data_selection_grouped?u.getTargetSelectorSuffix(i.id):"")).selectAll("."+k.shape).each(function(L,I){var P=g.select(this);P.classed(k.SELECTED)&&E(!1,P.classed(k.SELECTED,!1),L,I)}),w.classed(k.SELECTED,!T),E(!T,w,i,o))},v.prototype.initBar=function(){this.main.select("."+k.chart).append("g").attr("class",k.chartBars)},v.prototype.updateTargetsForBar=function(n){var i=this,o=i.config,m=i.classChartBar.bind(i),w=i.classBars.bind(i),T=i.classFocus.bind(i);i.main.select("."+k.chartBars).selectAll("."+k.chartBar).data(n).attr("class",function(E){return m(E)+T(E)}).enter().append("g").attr("class",m).style("pointer-events","none").append("g").attr("class",w).style("cursor",function(E){return o.data_selection_isselectable(E)?"pointer":null})},v.prototype.updateBar=function(n){var i=this,o=i.barData.bind(i),u=i.classBar.bind(i),g=i.initialOpacity.bind(i),m=function(E){return i.color(E.id)},w=i.main.selectAll("."+k.bars).selectAll("."+k.bar).data(o),T=w.enter().append("path").attr("class",u).style("stroke",m).style("fill",m);i.mainBar=T.merge(w).style("opacity",g),w.exit().transition().duration(n).style("opacity",0)},v.prototype.redrawBar=function(n,i,o){var u=this;return[(i?this.mainBar.transition(o):this.mainBar).attr("d",n).style("stroke",this.color).style("fill",this.color).style("opacity",function(g){return u.isTargetToShow(g.id)?1:0})]},v.prototype.getBarW=function(n,i){var u=this.config,g="number"==typeof u.bar_width?u.bar_width:i?n.tickInterval()*u.bar_width_ratio/i:0;return u.bar_width_max&&g>u.bar_width_max?u.bar_width_max:g},v.prototype.getBars=function(n,i){var o=this;return(i?o.main.selectAll("."+k.bars+o.getTargetSelectorSuffix(i)):o.main).selectAll("."+k.bar+(Q(n)?"-"+n:""))},v.prototype.expandBars=function(n,i,o){o&&this.unexpandBars(),this.getBars(n,i).classed(k.EXPANDED,!0)},v.prototype.unexpandBars=function(n){this.getBars(n).classed(k.EXPANDED,!1)},v.prototype.generateDrawBar=function(n,i){var u=this.config,g=this.generateGetBarPoints(n,i);return function(m,w){var T=g(m,w),E=u.axis_rotated?1:0,L=u.axis_rotated?0:1;return"M "+T[0][E]+","+T[0][L]+" L"+T[1][E]+","+T[1][L]+" L"+T[2][E]+","+T[2][L]+" L"+T[3][E]+","+T[3][L]+" z"}},v.prototype.generateGetBarPoints=function(n,i){var o=this,g=n.__max__+1,m=o.getBarW(i?o.subXAxis:o.xAxis,g),w=o.getShapeX(m,g,n,!!i),T=o.getShapeY(!!i),E=o.getShapeOffset(o.isBarType,n,!!i),L=m*(o.config.bar_space/2),I=i?o.get
1SubYScale:o.getYScale;return function(P,N){var D=I.call(o,P.id)(0),O=E(P,N)||D,$=w(P),F=T(P);return o.config.axis_rotated&&(0<P.value&&F<D||P.value<0&&D<F)&&(F=D),[[$+L,O],[$+L,F-=D-O],[$+m-L,F],[$+m-L,O]]}},v.prototype.isWithinBar=function(n,i){return function(n,i,o){return void 0===o&&(o=0),i.x-o<n[0]&&n[0]<i.x+i.width+o&&i.y-o<n[1]&&n[1]<i.y+i.height+o}(n,Ct(i),2)},v.prototype.getShapeIndices=function(n){var m,w,i=this,o=i.config,u={},g=0;return i.filterTargetsToShow(i.data.targets.filter(n,i)).forEach(function(T){for(m=0;m<o.data_groups.length;m++)if(!(o.data_groups[m].indexOf(T.id)<0))for(w=0;w<o.data_groups[m].length;w++)if(o.data_groups[m][w]in u){u[T.id]=u[o.data_groups[m][w]];break}Lt(u[T.id])&&(u[T.id]=g++)}),u.__max__=g-1,u},v.prototype.getShapeX=function(n,i,o,u){var m=u?this.subX:this.x;return function(w){var T=w.id in o?o[w.id]:0;return w.x||0===w.x?m(w.x)-n*(i/2-T):0}},v.prototype.getShapeY=function(n){var i=this;return function(o){return(n?i.getSubYScale(o.id):i.getYScale(o.id))(i.isTargetNormalized(o.id)?i.getRatio("index",o,!0):o.value)}},v.prototype.getShapeOffset=function(n,i,o){var u=this,g=u.orderTargets(u.filterTargetsToShow(u.data.targets.filter(n,u))),m=g.map(function(w){return w.id});return function(w,T){var E=o?u.getSubYScale(w.id):u.getYScale(w.id),L=E(0),I=L;return g.forEach(function(P){var N=u.isStepType(w)?u.convertValuesToStep(P.values):P.values,D=u.isTargetNormalized(w.id),O=N.map(function($){return D?u.getRatio("index",$,!0):$.value});P.id===w.id||i[P.id]!==i[w.id]||m.indexOf(P.id)<m.indexOf(w.id)&&((Lt(N[T])||+N[T].x!=+w.x)&&(T=-1,N.forEach(function($,F){($.x.constructor===Date?+$.x:$.x)===(w.x.constructor===Date?+w.x:w.x)&&(T=F)})),T in N&&N[T].value*w.value>=0&&(I+=E(O[T])-L))}),I}},v.prototype.isWithinShape=function(n,i){var g,o=this,u=o.d3.select(n);return o.isTargetToShow(i.id)?"circle"===n.nodeName?g=o.isStepType(i)?o.isWithinStep(n,o.getYScale(i.id)(i.value)):o.isWithinCircle(n,1.5*o.pointSelectR(i)):"path"===n.nodeName&&(g=!u.classed(k.bar)||o.isWithinBar(o.d3.mouse(n),n)):g=!1,g},v.prototype.getInterpolate=function(n){var i=this,o=i.d3,u={linear:o.curveLinear,"linear-closed":o.curveLinearClosed,basis:o.curveBasis,"basis-open":o.curveBasisOpen,"basis-closed":o.curveBasisClosed,bundle:o.curveBundle,cardinal:o.curveCardinal,"cardinal-open":o.curveCardinalOpen,"cardinal-closed":o.curveCardinalClosed,monotone:o.curveMonotoneX,step:o.curveStep,"step-before":o.curveStepBefore,"step-after":o.curveStepAfter};return i.isSplineType(n)?u[i.config.spline_interpolation_type]||u.cardinal:i.isStepType(n)?u[i.config.line_step_type]:u.linear},v.prototype.initLine=function(){this.main.select("."+k.chart).append("g").attr("class",k.chartLines)},v.prototype.updateTargetsForLine=function(n){var g,i=this,o=i.config,m=i.classChartLine.bind(i),w=i.classLines.bind(i),T=i.classAreas.bind(i),E=i.classCircles.bind(i),L=i.classFocus.bind(i);(g=i.main.select("."+k.chartLines).selectAll("."+k.chartLine).data(n).attr("class",function(I){return m(I)+L(I)}).enter().append("g").attr("class",m).style("opacity",0).style("pointer-events","none")).append("g").attr("class",w),g.append("g").attr("class",T),g.append("g").attr("class",function(I){return i.generateClass(k.selectedCircles,I.id)}),g.append("g").attr("class",E).style("cursor",function(I){return o.data_selection_isselectable(I)?"pointer":null}
1),n.forEach(function(I){i.main.selectAll("."+k.selectedCircles+i.getTargetSelectorSuffix(I.id)).selectAll("."+k.selectedCircle).each(function(P){P.value=I.values[P.index].value})})},v.prototype.updateLine=function(n){var i=this,o=i.main.selectAll("."+k.lines).selectAll("."+k.line).data(i.lineData.bind(i)),u=o.enter().append("path").attr("class",i.classLine.bind(i)).style("stroke",i.color);i.mainLine=u.merge(o).style("opacity",i.initialOpacity.bind(i)).style("shape-rendering",function(g){return i.isStepType(g)?"crispEdges":""}).attr("transform",null),o.exit().transition().duration(n).style("opacity",0)},v.prototype.redrawLine=function(n,i,o){return[(i?this.mainLine.transition(o):this.mainLine).attr("d",n).style("stroke",this.color).style("opacity",1)]},v.prototype.generateDrawLine=function(n,i){var o=this,u=o.config,g=o.d3.line(),m=o.generateGetLinePoints(n,i),w=i?o.getSubYScale:o.getYScale,T=function(L){return(i?o.subxx:o.xx).call(o,L)},E=function(L,I){return u.data_groups.length>0?m(L,I)[0][1]:w.call(o,L.id)(L.value)};return g=u.axis_rotated?g.x(E).y(T):g.x(T).y(E),u.line_connectNull||(g=g.defined(function(L){return null!=L.value})),function(L){var $,I=u.line_connectNull?o.filterRemoveNull(L.values):L.values,P=i?o.subX:o.x,N=w.call(o,L.id),D=0,O=0;return o.isLineType(L)?u.data_regions[L.id]?$=o.lineWithRegions(I,P,N,u.data_regions[L.id]):(o.isStepType(L)&&(I=o.convertValuesToStep(I)),$=g.curve(o.getInterpolate(L))(I)):(I[0]&&(D=P(I[0].x),O=N(I[0].value)),$=u.axis_rotated?"M "+O+" "+D:"M "+D+" "+O),$||"M 0 0"}},v.prototype.generateGetLinePoints=function(n,i){var o=this,u=o.config,m=o.getShapeX(0,n.__max__+1,n,!!i),w=o.getShapeY(!!i),T=o.getShapeOffset(o.isLineType,n,!!i),E=i?o.getSubYScale:o.getYScale;return function(L,I){var P=E.call(o,L.id)(0),N=T(L,I)||P,D=m(L),O=w(L);return u.axis_rotated&&(0<L.value&&O<P||L.value<0&&P<O)&&(O=P),[[D,O-(P-N)],[D,O-(P-N)],[D,O-(P-N)],[D,O-(P-N)]]}},v.prototype.lineWithRegions=function(n,i,o,u){var T,E,I,P,N,D,O,F,Z,vt,kt,g=this,m=g.config,L="M",it=g.isCategorized()?.5:0,bt=[];function Rt(dt,Zt){var gt;for(gt=0;gt<Zt.length;gt++)if(Zt[gt].start<dt&&dt<=Zt[gt].end)return!0;return!1}if(Et(u))for(T=0;T<u.length;T++)bt[T]={},bt[T].start=Lt(u[T].start)?n[0].x:g.isTimeSeries()?g.parseDate(u[T].start):u[T].start,bt[T].end=Lt(u[T].end)?n[n.length-1].x:g.isTimeSeries()?g.parseDate(u[T].end):u[T].end;function mt(dt){return"M"+dt[0][0]+" "+dt[0][1]+" "+dt[1][0]+" "+dt[1][1]}for(vt=m.axis_rotated?function(dt){return o(dt.value)}:function(dt){return i(dt.x)},kt=m.axis_rotated?function(dt){return i(dt.x)}:function(dt){return o(dt.value)},I=g.isTimeSeries()?function(dt,Zt,gt,ut){var ft=dt.x.getTime(),le=Zt.x-dt.x,Te=new Date(ft+le*gt),Ae=new Date(ft+le*(gt+ut));return mt(m.axis_rotated?[[o(N(gt)),i(Te)],[o(N(gt+ut)),i(Ae)]]:[[i(Te),o(N(gt))],[i(Ae),o(N(gt+ut))]])}:function(dt,Zt,gt,ut){return mt(m.axis_rotated?[[o(N(gt),!0),i(P(gt))],[o(N(gt+ut),!0),i(P(gt+ut))]]:[[i(P(gt),!0),o(N(gt))],[i(P(gt+ut),!0),o(N(gt+ut))]])},T=0;T<n.length;T++)if(Lt(bt)||!Rt(n[T].x,bt))L+=" "+vt(n[T])+" "+kt(n[T]);else for(P=g.getScale(n[T-1].x+it,n[T].x+it,g.isTimeSeries()),N=g.getScale(n[T-1].value,n[T].value),D=i(n[T].x)-i(n[T-1].x),O=o(n[T].value)-o(n[T-1].value),Z=2*(F=2/Math.sqrt(Math.pow(D,2)+Math.pow(O,2))),E=F;E<=1;E+=Z)L+=I(n[T-1],n[T],E,F);return L},v.prototype.updateArea=function(n){var i=this,o=i.d3,u=i.main.selectAll("."+k.areas).selectAll("."+k.area).data(i.lineData.bind(i)),g=u.enter().append("path").attr("class",i.classArea.bind(i)).style("fill",i.color).style("opacity",function(){return i.orgAreaOpacity=+o.select(this).style("opacity"),0});i.mainArea=g.merge(u).style("opacity",i.orgAreaOpacity),u.exit().transition().duration(n).style("opacity",0)},v.prototype.redrawArea=function(n,i,o){return[(i?this.mainArea.transition(o):this.mainArea).attr("d",n).style("fill",this.color).style("opacity",this.orgAreaOpacity)]},v.prototype.generateDrawArea=function(n,i){var o=this,u=o.config,g=o.d3.area(),m=o.generateGetAreaPoints(n,i),w=i?o.getSubYScale:o.getYScale,T=function(I){return(i?o.subxx:o.xx).call(o,I)},E=function(I,P){return u.data_groups.length>0?m(I,P)[0][1]:w.call(o,I.id)(o.getAreaBaseValue(I.id))},L=function(I,P){return u.data_groups.length>0?m(I,P)[1][1]:w.call(o,I.id)(I.value)};return g=u.axis_rotated?g.x0(E).x1(L).y(T):g.x(T).y0(u.area_above?0:E).y1(L),u.line_connectNull||(g=g.defined(function(I){return null!==I.value})),function(I){var O,P=u.line_connectNull?o.filterRemoveNull(I.values):I.values,N=0,D=0;return o.isAreaType(I)?(o.isStepType(I)&&(P=o.convertValuesToStep(P)),O=g.curve(o.getInterpolate(I))(P)):(P[0]&&(N=o.x(P[0].x),D=o.getYScale(I.id)(P[0].value)),O=u.axis_rotated?"M "+D+" "+N:"M "+N+" "+D),O||"M 0 0"}},v.prototype.getAreaBaseValue=function(){return 0},v.prototype.generateGetAreaPoints=function(n,i){var o=this,u=o.config,m=o.getShapeX(0,n.__max__+1,n,!!i),w=o.getShapeY(!!i),T=o.getShapeOffset(o.isAreaType,n,!!i),E=i?o.get
vendor: 24,855 bytes, line 1
1SubYScale:o.getYScale;return function(L,I){var P=E.call(o,L.id)(0),N=T(L,I)||P,D=m(L),O=w(L);return u.axis_rotated&&(0<L.value&&O<P||L.value<0&&P<O)&&(O=P),[[D,N],[D,O-(P-N)],[D,O-(P-N)],[D,N]]}},v.prototype.updateCircle=function(n,i){var o=this,u=o.main.selectAll("."+k.circles).selectAll("."+k.circle).data(o.lineOrScatterOrStanfordData.bind(o)),g=u.enter().append("circle").attr("shape-rendering",o.isStanfordGraphType()?"crispEdges":"").attr("class",o.classCircle.bind(o)).attr("cx",n).attr("cy",i).attr("r",o.pointR.bind(o)).style("color",o.isStanfordGraphType()?o.getStanfordPointColor.bind(o):o.color);o.mainCircle=g.merge(u).style("opacity",o.isStanfordGraphType()?1:o.initialOpacityForCircle.bind(o)),u.exit().style("opacity",0)},v.prototype.redrawCircle=function(n,i,o,u){var g=this,m=g.main.selectAll("."+k.selectedCircle);return[(o?g.mainCircle.transition(u):g.mainCircle).style("opacity",this.opacityForCircle.bind(g)).style("color",g.isStanfordGraphType()?g.getStanfordPointColor.bind(g):g.color).attr("cx",n).attr("cy",i),(o?m.transition(u):m).attr("cx",n).attr("cy",i)]},v.prototype.circleX=function(n){return n.x||0===n.x?this.x(n.x):null},v.prototype.updateCircleY=function(){var i,o,n=this;n.config.data_groups.length>0?(i=n.getShapeIndices(n.isLineType),o=n.generateGetLinePoints(i),n.circleY=function(u,g){return o(u,g)[0][1]}):n.circleY=function(u){return n.getYScale(u.id)(u.value)}},v.prototype.getCircles=function(n,i){var o=this;return(i?o.main.selectAll("."+k.circles+o.getTargetSelectorSuffix(i)):o.main).selectAll("."+k.circle+(Q(n)?"-"+n:""))},v.prototype.expandCircles=function(n,i,o){var u=this,g=u.pointExpandedR.bind(u);o&&u.unexpandCircles(),u.getCircles(n,i).classed(k.EXPANDED,!0).attr("r",g)},v.prototype.unexpandCircles=function(n){var i=this,o=i.pointR.bind(i);i.getCircles(n).filter(function(){return i.d3.select(this).classed(k.EXPANDED)}).classed(k.EXPANDED,!1).attr("r",o)},v.prototype.pointR=function(n){var o=this.config;return this.isStepType(n)?0:Wt(o.point_r)?o.point_r(n):o.point_r},v.prototype.pointExpandedR=function(n){var i=this,o=i.config;return o.point_focus_expand_enabled?Wt(o.point_focus_expand_r)?o.point_focus_expand_r(n):o.point_focus_expand_r?o.point_focus_expand_r:1.75*i.pointR(n):i.pointR(n)},v.prototype.pointSelectR=function(n){var o=this.config;return Wt(o.point_select_r)?o.point_select_r(n):o.point_select_r?o.point_select_r:4*this.pointR(n)},v.prototype.isWithinCircle=function(n,i){var o=this.d3,u=o.mouse(n),g=o.select(n),m=+g.attr("cx"),w=+g.attr("cy");return Math.sqrt(Math.pow(m-u[0],2)+Math.pow(w-u[1],2))<i},v.prototype.isWithinStep=function(n,i){return Math.abs(i-this.d3.mouse(n)[1])<30},v.prototype.getCurrentWidth=function(){var i=this.config;return i.size_width?i.size_width:this.getParentWidth()},v.prototype.getCurrentHeight=function(){var n=this,i=n.config,o=i.size_height?i.size_height:n.getParentHeight();return o>0?o:320/(n.hasType("gauge")&&!i.gauge_fullCircle?2:1)},v.prototype.getCurrentPaddingTop=function(){var n=this,i=n.config,o=Q(i.padding_top)?i.padding_top:0;return n.title&&n.title.node()&&(o+=n.getTitlePadding()),o},v.prototype.getCurrentPaddingBottom=function(){var n=this.config;return Q(n.padding_bottom)?n.padding_bottom:0},v.prototype.getCurrentPaddingLeft=function(n){var i=this,o=i.config;return Q(o.padding_left)?o.padding_left:o.axis_rotated?!o.axis_x_show||o.axis_x_inner?1:Math.max(je(i.getAxisWidthByAxisId("x",n)),40):!o.axis_y_show||o.axis_y_inner?i.axis.getYAxisLabelPosition().isOuter?30:1:je(i.getAxisWidthByAxisId("y",n))},v.prototype.getCurrentPaddingRight=function(){var n=this,i=n.config,o=0,g=n.isLegendRight?n.getLegendWidth()+20:0;return o=Q(i.padding_right)?i.padding_right+1:i.axis_rotated?10+g:!i.axis_y2_show||i.axis_y2_inner?2+g+(n.axis.getY2AxisLabelPosition().isOuter?20:0):je(n.getAxisWidthByAxisId("y2"))+g,n.colorScale&&n.colorScale.node()&&(o+=n.getColorScalePadding()),o},v.prototype.getParentRectValue=function(n){for(var o,i=this.selectChart.node();i&&"BODY"!==i.tagName;){try{o=i.getBoundingClientRect()[n]}catch{"width"===n&&(o=i.offsetWidth)}if(o)break;i=i.parentNode}return o},v.prototype.getParentWidth=function(){return this.getParentRectValue("width")},v.prototype.getParentHeight=function(){var n=this.selectChart.style("height");return n.indexOf("px")>0?+n.replace("px",""):0},v.prototype.getSvgLeft=function(n){var i=this,o=i.config,u=o.axis_rotated||!o.axis_rotated&&!o.axis_y_inner,m=i.main.select("."+(o.axis_rotated?k.axisX:k.axisY)).node(),w=m&&u?m.getBoundingClientRect():{right:0},T=i.selectChart.node().getBoundingClientRect(),E=i.hasArcType(),L=w.right-T.left-(E?0:i.getCurrentPaddingLeft(n));return L>0?L:0},v.prototype.getAxisWidthByAxisId=function(n,i){var u=this.axis.getLabelPositionById(n);return this.axis.getMaxTickWidth(n,i)+(u.isInner?20:40)},v.prototype.getHorizontalAxisHeight=function(n,i){var o=this,u=o.config,g=30;return"x"!==n||(Et(i)&&i?u.subchart_axis_x_show:u.axis_x_show)?"x"===n&&u.axis_x_height?u.axis_x_height:"y"!==n||u.axis_y_show?"y2"!==n||u.axis_y2_show?("x"===n&&!u.axis_rotated&&u.axis_x_tick_rotate&&(g=30+o.axis.getMaxTickWidth(n)*Math.cos(Math.PI*(90-Math.abs(u.axis_x_tick_rotate))/180)),"y"===n&&u.axis_rotated&&u.axis_y_tick_rotate&&(g=30+o.axis.getMaxTickWidth(n)*Math.cos(Math.PI*(90-Math.abs(u.axis_y_tick_rotate))/180)),g+(o.axis.getLabelPositionById(n).isInner?0:10)+("y2"===n?-10:0)):o.rotated_padding_top:!u.legend_show||o.isLegendRight||o.isLegendInset?1:10:8},v.prototype.initBrush=function(n){var i=this,o=i.d3;return i.brush=(i.config.axis_rotated?o.brushY():o.brushX()).on("brush",function(){var u=o.event.sourceEvent;u&&"zoom"===u.type||i.redrawForBrush()}).on("end",function(){var u=o.event.sourceEvent;u&&"zoom"===u.type||i.brush.empty()&&u&&"end"!==u.type&&i.brush.clear()}),i.brush.updateExtent=function(){var u=this.scale.range();return this.extent(i.config.axis_rotated?[[0,u[0]],[i.width2,u[1]]]:[[u[0],0],[u[1],i.height2]]),this},i.brush.updateScale=function(u){return this.scale=u,this},i.brush.update=function(u){this.updateScale(u||i.subX).updateExtent(),i.context.select("."+k.brush).call(this)},i.brush.clear=function(){i.context.select("."+k.brush).call(i.brush.move,null)},i.brush.selection=function(){return o.brushSelection(i.context.select("."+k.brush).node())},i.brush.selectionAsValue=function(u,g){var m,w;return u?(i.context&&(m=[this.scale(u[0]),this.scale(u[1])],w=i.context.select("."+k.brush),g&&(w=w.transition()),i.brush.move(w,m)),[]):(m=i.brush.selection()||[0,0],[this.scale.invert(m[0]),this.scale.invert(m[1])])},i.brush.empty=function(){var u=i.brush.selection();return!u||u[0]===u[1]},i.brush.updateScale(n)},v.prototype.initSubchart=function(){var n=this,i=n.config,o=n.context=n.svg.append("g").attr("transform",n.getTranslate("context"));o.style("visibility","visible"),o.append("g").attr("clip-path",n.clipPathForSubchart).attr("class",k.chart),o.select("."+k.chart).append("g").attr("class",k.chartBars),o.select("."+k.chart).append("g").attr("class",k.chartLines),o.append("g").attr("clip-path",n.clipPath).attr("class",k.brush),n.axes.subx=o.append("g").attr("class",k.axisX).attr("transform",n.getTranslate("subx")).attr("clip-path",i.axis_rotated?"":n.clipPathForXAxis).style("visibility",i.subchart_axis_x_show?"visible":"hidden")},v.prototype.initSubchartBrush=function(){var n=this;n.initBrush(n.subX).updateExtent(),n.context.select("."+k.brush).call(n.brush)},v.prototype.updateTargetsForSubchart=function(n){var g,m,w,T,i=this,o=i.context,u=i.config,E=i.classChartBar.bind(i),L=i.classBars.bind(i),I=i.classChartLine.bind(i),P=i.classLines.bind(i),N=i.classAreas.bind(i);(w=(T=o.select("."+k.chartBars).selectAll("."+k.chartBar).data(n)).enter().append("g").style("opacity",0)).merge(T).attr("class",E),w.append("g").attr("class",L),(g=(m=o.select("."+k.chartLines).selectAll("."+k.chartLine).data(n)).enter().append("g").style("opacity",0)).merge(m).attr("class",I),g.append("g").attr("class",P),g.append("g").attr("class",N),o.selectAll("."+k.brush+" rect").attr(u.axis_rotated?"width":"height",u.axis_rotated?i.width2:i.height2)},v.prototype.updateBarForSubchart=function(n){var i=this,o=i.context.selectAll("."+k.bars).selectAll("."+k.bar).data(i.barData.bind(i)),u=o.enter().append("path").attr("class",i.classBar.bind(i)).style("stroke","none").style("fill",i.color);o.exit().transition().duration(n).style("opacity",0).remove(),i.contextBar=u.merge(o).style("opacity",i.initialOpacity.bind(i))},v.prototype.redrawBarForSubchart=function(n,i,o){(i?this.contextBar.transition(Math.random().toString()).duration(o):this.contextBar).attr("d",n).style("opacity",1)},v.prototype.updateLineForSubchart=function(n){var i=this,o=i.context.selectAll("."+k.lines).selectAll("."+k.line).data(i.lineData.bind(i)),u=o.enter().append("path").attr("class",i.classLine.bind(i)).style("stroke",i.color);o.exit().transition().duration(n).style("opacity",0).remove(),i.contextLine=u.merge(o).style("opacity",i.initialOpacity.bind(i))},v.prototype.redrawLineForSubchart=function(n,i,o){(i?this.contextLine.transition(Math.random().toString()).duration(o):this.contextLine).attr("d",n).style("opacity",1)},v.prototype.updateAreaForSubchart=function(n){var i=this,o=i.d3,u=i.context.selectAll("."+k.areas).selectAll("."+k.area).data(i.lineData.bind(i)),g=u.enter().append("path").attr("class",i.classArea.bind(i)).style("fill",i.color).style("opacity",function(){return i.orgAreaOpacity=+o.select(this).style("opacity"),0});u.exit().transition().duration(n).style("opacity",0).remove(),i.contextArea=g.merge(u).style("opacity",0)},v.prototype.redrawAreaForSubchart=function(n,i,o){(i?this.contextArea.transition(Math.random().toString()).duration(o):this.contextArea).attr("d",n).style("fill",this.color).style("opacity",this.orgAreaOpacity)},v.prototype.redrawSubchart=function(n,i,o,u,g,m,w){var L,I,P,T=this,E=T.d3;E.event&&"zoom"===E.event.type&&T.brush.selectionAsValue(T.x.orgDomain()),n&&(T.brush.empty()||T.brush.selectionAsValue(T.x.orgDomain()),L=T.generateDrawArea(g,!0),I=T.generateDrawBar(m,!0),P=T.generateDrawLine(w,!0),T.updateBarForSubchart(o),T.updateLineForSubchart(o),T.updateAreaForSubchart(o),T.redrawBarForSubchart(I,o,o),T.redrawLineForSubchart(P,o,o),T.redrawAreaForSubchart(L,o,o))},v.prototype.redrawForBrush=function(){var u,n=this,i=n.x,o=n.d3;n.redraw({withTransition:!1,withY:n.config.zoom_rescale,withSubchart:!1,withUpdateXDomain:!0,withEventRect:!1,withDimension:!1}),u=o.event.selection||n.brush.scale.range(),n.main.select("."+k.eventRect).call(n.zoom.transform,o.zoomIdentity.scale(n.width/(u[1]-u[0])).translate(-u[0],0)),n.config.subchart_onbrush.call(n.api,i.orgDomain())},v.prototype.transformContext=function(n,i){var u,o=this;i&&i.axisSubX?u=i.axisSubX:(u=o.context.select("."+k.axisX),n&&(u=u.transition())),o.context.attr("transform",o.getTranslate("context")),u.attr("transform",o.getTranslate("subx"))},v.prototype.getDefaultSelection=function(){var n=this,i=n.config,o=Wt(i.axis_x_selection)?i.axis_x_selection(n.getXDomain(n.data.targets)):i.axis_x_selection;return n.isTimeSeries()&&(o=[n.parseDate(o[0]),n.parseDate(o[1])]),o},v.prototype.removeSubchart=function(){var n=this;n.brush=null,n.context.remove(),n.context=null},v.prototype.initText=function(){var n=this;n.main.select("."+k.chart).append("g").attr("class",k.chartTexts),n.mainText=n.d3.selectAll([])},v.prototype.updateTargetsForText=function(n){var i=this,o=i.classChartText.bind(i),u=i.classTexts.bind(i),g=i.classFocus.bind(i),m=i.main.select("."+k.chartTexts).selectAll("."+k.chartText).data(n),w=m.enter().append("g").attr("class",o).style("opacity",0).style("pointer-events","none");w.append("g").attr("class",u),w.merge(m).attr("class",function(T){return o(T)+g(T)})},v.prototype.updateText=function(n,i,o){var u=this,g=u.config,m=u.barOrLineData.bind(u),w=u.classText.bind(u),T=u.main.selectAll("."+k.texts).selectAll("."+k.text).data(m),E=T.enter().append("text").attr("class",w).attr("text-anchor",function(L){return g.axis_rotated?L.value<0?"end":"start":"middle"}).style("stroke","none").attr("x",n).attr("y",i).style("fill",function(L){return u.color(L)}).style("fill-opacity",0);u.mainText=E.merge(T).text(function(L,I,P){return u.dataLabelFormat(L.id)(L.value,L.id,I,P)}),T.exit().transition().duration(o).style("fill-opacity",0).remove()},v.prototype.redrawText=function(n,i,o,u,g){return[(u?this.mainText.transition(g):this.mainText).attr("x",n).attr("y",i).style("fill",this.color).style("fill-opacity",o?0:this.opacityForText.bind(this))]},v.prototype.getTextRect=function(n,i,o){var w,u=this.d3.select("body").append("div").classed("c3",!0),g=u.append("svg").style("visibility","hidden").style("position","fixed").style("top",0).style("left",0),m=this.d3.select(o).style("font");return g.selectAll(".dummy").data([n]).enter().append("text").classed(i||"",!0).style("font",m).text(n).each(function(){w=Ct(this)}),u.remove(),w},v.prototype.generateXYForText=function(n,i,o,u){var g=this,m=g.generateGetAreaPoints(n,!1),w=g.generateGetBarPoints(i,!1),T=g.generateGetLinePoints(o,!1),E=u?g.getXForText:g.getYForText;return function(L,I){var P=g.isAreaType(L)?m:g.isBarType(L)?w:T;return E.call(g,P(L,I),L,this)}},v.prototype.getXForText=function(n,i,o){var m,w,u=this,g=Ct(o);return u.config.axis_rotated?(w=u.isBarType(i)?4:6,m=n[2][1]+w*(i.value<0?-1:1)):m=u.hasType("bar")?(n[2][0]+n[0][0])/2:n[0][0],null===i.value&&(m>u.width?m=u.width-g.width:m<0&&(m=4)),m},v.prototype.getYForText=function(n,i,o){var m,u=this,g=Ct(o);return u.config.axis_rotated?m=(n[0][0]+n[2][0]+.6*g.height)/2:(m=n[2][1],i.value<0||0===i.value&&!u.hasPositiveValue?(m+=g.height,u.isBarType(i)&&u.isSafari()?m-=3:!u.isBarType(i)&&u.isChrome()&&(m+=3)):m+=u.isBarType(i)?-3:-6),null===i.value&&!u.config.axis_rotated&&(m<g.height?m=g.height:m>this.height&&(m=this.height-4)),m},v.prototype.initTitle=function(){var n=this;n.title=n.svg.append("text").text(n.config.title_text).attr("class",n.CLASS.title)},v.prototype.redrawTitle=function(){var n=this;n.title.attr("x",n.xForTitle.bind(n)).attr("y",n.yForTitle.bind(n))},v.prototype.xForTitle=function(){var n=this,i=n.config,o=i.title_position||"left";return o.indexOf("right")>=0?n.currentWidth-n.getTextRect(n.title.node().textContent,n.CLASS.title,n.title.node()).width-i.title_padding.right:o.indexOf("center")>=0?Math.max((n.currentWidth-n.getTextRect(n.title.node().textContent,n.CLASS.title,n.title.node()).width)/2,0):i.title_padding.left},v.prototype.yForTitle=function(){var n=this;return n.config.title_padding.top+n.getTextRect(n.title.node().textContent,n.CLASS.title,n.title.node()).height},v.prototype.getTitlePadding=function(){return this.yForTitle()+this.config.title_padding.bottom},v.prototype.drawColorScale=function(){var g,w,T,E,L,I,P,n=this,i=n.d3,o=n.config,u=n.data.targets[0];if(g=isNaN(o.stanford_scaleWidth)?20:o.stanford_scaleWidth,5<0||g<0)throw Error("Colorscale's barheight and barwidth must be greater than 0.");T=i.range(o.stanford_padding.bottom,P=n.height-o.stanford_padding.bottom-o.stanford_padding.top,5),I=i.scaleSequential(u.colors).domain([T[T.length-1],T[0]]),n.colorScale&&n.colorScale.remove(),n.colorScale=n.svg.append("g").attr("width",50).attr("height",P).attr("class",k.colorScale),n.colorScale.append("g").attr("transform","translate(0, "+o.stanford_padding.top+")").selectAll("bars").data(T).enter().append("rect").attr("y",function(N,D){return 5*D}).attr("x",0).attr("width",g).attr("height",5).attr("fill",function(N){return I(N)}),L=i.scaleLog().domain([u.minEpochs,u.maxEpochs]).range([T[0]+o.stanford_padding.top+T[T.length-1]+5-1,T[0]+o.stanford_padding.top]),E=i.axisRight(L),"pow10"===o.stanford_scaleFormat?E.tickValues([1,10,100,1e3,1e4,1e5,1e6,1e7]):Wt(o.stanford_scaleFormat)?E.tickFormat(o.stanford_scaleFormat):E.tickFormat(i.format("d")),Wt(o.stanford_scaleValues)&&E.tickValues(o.stanford_scaleValues(u.minEpochs,u.maxEpochs)),w=n.colorScale.append("g").attr("class","legend axis").attr("transform","translate("+g+",0)").call(E),"pow10"===o.stanford_scaleFormat&&w.selectAll(".tick text").text(null).filter(sn).text(10).append("tspan").attr("dy","-.7em").text(function(N){return Math.round(Math.log(N)/Math.LN10)}),n.colorScale.attr("transform","translate("+(n.currentWidth-n.xForColorScale())+", 0)")},v.prototype.xForColorScale=function(){return this.config.stanford_padding.right+Ct(this.colorScale.node()).width},v.prototype.getColorScalePadding=function(){return this.xForColorScale()+this.config.stanford_padding.left+20},v.prototype.isStanfordGraphType=function(){return"stanford"===this.config.data_type},v.prototype.initStanfordData=function(){var g,m,w,n=this,i=n.d3,o=n.config,u=n.data.targets[0];if(u.values.sort(ar),g=u.values.map(function(T){return T.epochs}),(w=isNaN(o.stanford_scaleMin)?i.min(g):o.stanford_scaleMin)>(m=isNaN(o.stanford_scaleMax)?i.max(g):o.stanford_scaleMax))throw Error("Number of minEpochs has to be smaller than maxEpochs");u.colors=Wt(o.stanford_colors)?o.stanford_colors:i.interpolateHslLong(i.hsl(250,1,.5),i.hsl(0,1,.5)),u.colorscale=i.scaleSequentialLog(u.colors).domain([w,m]),u.minEpochs=w,u.maxEpochs=m},v.prototype.getStanfordPointColor=function(n){return this.data.targets[0].colorscale(n.epochs)},v.prototype.getCentroid=function(n){var g,m,w,T,E,i=ir(n),o=0,u=0;for(g=0,m=n.length-1;g<n.length;m=g,g+=1)o+=((T=n[g]).x+(E=n[m]).x)*(w=T.x*E.y-E.x*T.y),u+=(T.y+E.y)*w;return{x:o/(w=6*i),y:u/w}},v.prototype.getStanfordTooltipTitle=function(n){var o=this.axis.getLabelText("x"),u=this.axis.getLabelText("y");return"\n <tr><th>"+(o?Gt(o):"x")+"</th><th class='value'>"+n.x+"</th></tr>\n <tr><th>"+(u?Gt(u):"y")+"</th><th class='value'>"+n.value+"</th></tr>\n "},v.prototype.countEpochsInRegion=function(n){var u,g,o=this.data.targets[0];return u=o.values.reduce(function(m,w){return m+Number(w.epochs)},0),{value:g=o.values.reduce(function(m,w){return rr(w,n)?m+Number(w.epochs):m},0),percentage:0!==g?(g/u*100).toFixed(1):0}};var ir=function(n){var o,u,g,m,i=0;for(o=0,u=n.length-1;o<n.length;u=o,o+=1)i+=(g=n[o]).x*(m=n[u]).y,i-=g.y*m.x;return i/2},rr=function(n,i){for(var o,u,g,T=n.x,E=n.value,L=!1,I=0,P=i.length-1;I<i.length;P=I++)o=i[I].x,(u=i[I].y)>E!=(g=i[P].y)>E&&T<(i[P].x-o)*(E-u)/(g-u)+o&&(L=!L);return L},ar=function(n,i){return n.epochs<i.epochs?-1:n.epochs>i.epochs?1:0};return v.prototype.initStanfordElements=function(){var n=this;n.stanfordElements=n.main.select("."+k.chart).append("g").attr("class",k.stanfordElements),n.stanfordElements.append("g").attr("class",k.stanfordLines),n.stanfordElements.append("g").attr("class",k.stanfordTexts),n.stanfordElements.append("g").attr("class",k.stanfordRegions)},v.prototype.updateStanfordElements=function(n){var g,m,w,T,E,L,i=this,o=i.main,u=i.config,I=i.xvCustom.bind(i),P=i.yvCustom.bind(i),N=i.countEpochsInRegion.bind(i);(m=(g=o.select("."+k.stanfordLines).style("shape-rendering","geometricprecision").selectAll("."+k.stanfordLine).data(u.stanford_lines)).enter().append("g").attr("class",function(D){return k.stanfordLine+(D.class?" "+D.class:"")})).append("line").attr("x1",function(D){return u.axis_rotated?P(D,"value_y1"):I(D,"value_x1")}).attr("x2",function(D){return u.axis_rotated?P(D,"value_y2"):I(D,"value_x2")}).attr("y1",function(D){return u.axis_rotated?I(D,"value_x1"):P(D,"value_y1")}).attr("y2",function(D){return u.axis_rotated?I(D,"value_x2"):P(D,"value_y2")}).style("opacity",0),i.stanfordLines=m.merge(g),i.stanfordLines.select("line").transition().duration(n).attr("x1",function(D){return u.axis_rotated?P(D,"value_y1"):I(D,"value_x1")}).attr("x2",function(D){return u.axis_rotated?P(D,"value_y2"):I(D,"value_x2")}).attr("y1",function(D){return u.axis_rotated?I(D,"value_x1"):P(D,"value_y1")}).attr("y2",function(D){return u.axis_rotated?I(D,"value_x2"):P(D,"value_y2")}).style("opacity",1),g.exit().transition().duration(n).style("opacity",0).remove(),(L=(E=o.select("."+k.stanfordTexts).selectAll("."+k.stanfordText).data(u.stanford_texts)).enter().append("g").attr("class",function(D){return k.stanfordText+(D.class?" "+D.class:"")})).append("text").attr("x",function(D){return u.axis_rotated?P(D,"y"):I(D,"x")}).attr("y",function(D){return u.axis_rotated?I(D,"x"):P(D,"y")}).style("opacity",0),i.stanfordTexts=L.merge(E),i.stanfordTexts.select("text").transition().duration(n).attr("x",function(D){return u.axis_rotated?P(D,"y"):I(D,"x")}).attr("y",function(D){return u.axis_rotated?I(D,"x"):P(D,"y")}).text(function(D){return D.content}).style("opacity",1),E.exit().transition().duration(n).style("opacity",0).remove(),(T=(w=o.select("."+k.stanfordRegions).selectAll("."+k.stanfordRegion).data(u.stanford_regions)).enter().append("g").attr("class",function(D){return k.stanfordRegion+(D.class?" "+D.class:"")})).append("polygon").attr("points",function(D){return D.points.map(function(O){return[u.axis_rotated?P(O,"y"):I(O,"x"),u.axis_rotated?I(O,"x"):P(O,"y")].join(",")}).join(" ")}).style("opacity",0),T.append("text").attr("x",function(D){return i.getCentroid(D.points).x}).attr("y",function(D){return i.getCentroid(D.points).y}).style("opacity",0),i.stanfordRegions=T.merge(w),i.stanfordRegions.select("polygon").transition().duration(n).attr("points",function(D){return D.points.map(function(O){return[u.axis_rotated?P(O,"y"):I(O,"x"),u.axis_rotated?I(O,"x"):P(O,"y")].join(",")}).join(" ")}).style("opacity",function(D){return D.opacity?D.opacity:.2}),i.stanfordRegions.select("text").transition().duration(n).attr("x",function(D){return u.axis_rotated?P(i.getCentroid(D.points),"y"):I(i.getCentroid(D.points),"x")}).attr("y",function(D){return u.axis_rotated?I(i.getCentroid(D.points),"x"):P(i.getCentroid(D.points),"y")}).text(function(D){var O,$,F;return D.text?(i.isStanfordGraphType()&&(O=(F=N(D.points)).value,$=F.percentage),D.text(O,$)):""}).attr("text-anchor","middle").attr("dominant-baseline","middle").style("opacity",1),w.exit().transition().duration(n).style("opacity",0).remove()},v.prototype.initTooltip=function(){var o,n=this,i=n.config;if(n.tooltip=n.selectChart.style("position","relative").append("div").attr("class",k.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none"),i.tooltip_init_show){if(n.isTimeSeries()&&xt(i.tooltip_init_x)){for(i.tooltip_init_x=n.parseDate(i.tooltip_init_x),o=0;o<n.data.targets[0].values.length&&n.data.targets[0].values[o].x-i.tooltip_init_x!=0;o++);i.tooltip_init_x=o}n.tooltip.html(i.tooltip_contents.call(n,n.data.targets.map(function(u){return n.addName(u.values[i.tooltip_init_x])}),n.axis.getXAxisTickFormat(),n.getYFormat(n.hasArcType()),n.color)),n.tooltip.style("top",i.tooltip_init_position.top).style("left",i.tooltip_init_position.left).style("display","block")}},v.prototype.getTooltipSortFunction=function(){var n=this,i=n.config;if(0!==i.data_groups.length&&void 0===i.tooltip_order){var m=n.orderTargets(n.data.targets).map(function(w){return w.id});return(n.isOrderAsc()||n.isOrderDesc())&&(m=m.reverse()),function(w,T){return m.indexOf(w.id)-m.indexOf(T.id)}}var o=i.tooltip_order;void 0===o&&(o=i.data_order);var u=function(w){return w?w.value:null};if(xt(o)&&"asc"===o.toLowerCase())return function(w,T){return u(w)-u(T)};if(xt(o)&&"desc"===o.toLowerCase())return function(w,T){return u(T)-u(w)};if(Wt(o)){var g=o;return void 0===i.tooltip_order&&(g=function(w,T){return o(w?{id:w.id,values:[w]}:null,T?{id:T.id,values:[T]}:null)}),g}return $t(o)?function(w,T){return o.indexOf(w.id)-o.indexOf(T.id)}:void 0},v.prototype.getTooltipContent=function(n,i,o,u){var E,L,I,P,N,D,g=this,m=g.config,w=m.tooltip_format_title||i,T=m.tooltip_format_name||function(F){return F},O=m.tooltip_format_value;O||(O=g.isTargetNormalized(n.id)?function(F,Z){return(100*Z).toFixed(2)+"%"}:o);var $=this.getTooltipSortFunction();for($&&n.sort($),L=0;L<n.length;L++)if(n[L]&&(n[L].value||0===n[L].value)){if(g.isStanfordGraphType())E||(I=g.getStanfordTooltipTitle(n[L]),E="<table class='"+g.CLASS.tooltip+"'>"+I),D=g.getStanfordPointColor(n[L]),N=Gt(m.data_epochs),P=n[L].epochs;else if(E||(I=Gt(w?w(n[L].x,n[L].index):n[L].x),E="<table class='"+g.CLASS.tooltip+"'>"+(I||0===I?"<tr><th colspan='2'>"+I+"</th></tr>":"")),void 0!==(P=Gt(O(n[L].value,n[L].ratio,n[L].id,n[L].index,n)))){if(null===n[L].name)continue;N=Gt(T(n[L].name,n[L].ratio,n[L].id,n[L].index)),D=g.levelColor?g.levelColor(n[L].value):u(n[L].id)}void 0!==P&&(E+="<tr class='"+g.CLASS.tooltipName+"-"+g.getTargetSelectorSuffix(n[L].id)+"'>",E+="<td class='name'><span style='background-color:"+D+"'></span>"+N+"</td>",E+="<td class='value'>"+P+"</td>",E+="</tr>")}return E+"</table>"},v.prototype.tooltipPosition=function(n,i,o,u){var T,E,L,I,P,g=this,m=g.config,w=g.d3,N=g.hasArcType(),D=w.mouse(u);return N?(E=(g.width-(g.isLegendRight?g.getLegendWidth():0))/2+D[0],I=(g.hasType("gauge")?g.height:g.height/2)+D[1]+20):(T=g.getSvgLeft(!0),m.axis_rotated?(L=(E=T+
1D[0]+100)+i,P=g.currentWidth-g.getCurrentPaddingRight(),I=g.x(n[0].x)+20):(L=(E=T+g.getCurrentPaddingLeft(!0)+g.x(n[0].x)+20)+i,P=T+g.currentWidth-g.getCurrentPaddingRight(),I=D[1]+15),L>P&&(E-=L-P+20),I+o>g.currentHeight&&(I-=o+30)),I<0&&(I=0),{top:I,left:E}},v.prototype.showTooltip=function(n,i){var g,m,w,o=this,u=o.config,T=o.hasArcType(),E=n.filter(function(I){return I&&Q(I.value)}),L=u.tooltip_position||v.prototype.tooltipPosition;0!==E.length&&u.tooltip_show?(o.tooltip.html(u.tooltip_contents.call(o,n,o.axis.getXAxisTickFormat(),o.getYFormat(T),o.color)).style("display","block"),g=o.tooltip.property("offsetWidth"),m=o.tooltip.property("offsetHeight"),w=L.call(this,E,g,m,i),o.tooltip.style("top",w.top+"px").style("left",w.left+"px")):o.hideTooltip()},v.prototype.hideTooltip=function(){this.tooltip.style("display","none")},v.prototype.setTargetType=function(n,i){var o=this,u=o.config;o.mapToTargetIds(n).forEach(function(g){o.withoutFadeIn[g]=i===u.data_types[g],u.data_types[g]=i}),n||(u.data_type=i)},v.prototype.hasType=function(n,i){var o=this,u=o.config.data_types,g=!1;return(i=i||o.data.targets)&&i.length?i.forEach(function(m){var w=u[m.id];(w&&w.indexOf(n)>=0||!w&&"line"===n)&&(g=!0)}):Object.keys(u).length?Object.keys(u).forEach(function(m){u[m]===n&&(g=!0)}):g=o.config.data_type===n,g},v.prototype.hasArcType=function(n){return this.hasType("pie",n)||this.hasType("donut",n)||this.hasType("gauge",n)},v.prototype.isLineType=function(n){var i=this.config,o=xt(n)?n:n.id;return!i.data_types[o]||["line","spline","area","area-spline","step","area-step"].indexOf(i.data_types[o])>=0},v.prototype.isStepType=function(n){var i=xt(n)?n:n.id;return["step","area-step"].indexOf(this.config.data_types[i])>=0},v.prototype.isSplineType=function(n){var i=xt(n)?n:n.id;return["spline","area-spline"].indexOf(this.config.data_types[i])>=0},v.prototype.isAreaType=function(n){var i=xt(n)?n:n.id;return["area","area-spline","area-step"].indexOf(this.config.data_types[i])>=0},v.prototype.isBarType=function(n){var i=xt(n)?n:n.id;return"bar"===this.config.data_types[i]},v.prototype.isScatterType=function(n){var i=xt(n)?n:n.id;return"scatter"===this.config.data_types[i]},v.prototype.isStanfordType=function(n){var i=xt(n)?n:n.id;return"stanford"===this.config.data_types[i]},v.prototype.isPieType=function(n){var i=xt(n)?n:n.id;return"pie"===this.config.data_types[i]},v.prototype.isGaugeType=function(n){var i=xt(n)?n:n.id;return"gauge"===this.config.data_types[i]},v.prototype.isDonutType=function(n){var i=xt(n)?n:n.id;return"donut"===this.config.data_types[i]},v.prototype.isArcType=function(n){return this.isPieType(n)||this.isDonutType(n)||this.isGaugeType(n)},v.prototype.lineData=function(n){return this.isLineType(n)?[n]:[]},v.prototype.arcData=function(n){return this.isArcType(n.data)?[n]:[]},v.prototype.barData=function(n){return this.isBarType(n)?n.values:[]},v.prototype.lineOrScatterOrStanfordData=function(n){return this.isLineType(n)||this.isScatterType(n)||this.isStanfordType(n)?n.values:[]},v.prototype.barOrLineData=function(n){return this.isBarType(n)||this.isLineType(n)?n.values:[]},v.prototype.isSafari=function(){var n=window.navigator.userAgent;return n.indexOf("Safari")>=0&&n.indexOf("Chrome")<0},v.prototype.isChrome=function(){return window.navigator.userAgent.indexOf("Chrome")>=0},v.prototype.initZoom=function(){var u,n=this,i=n.d3,o=n.config;return n.zoom=i.zoom().on("start",function(){if("scroll"===o.zoom_type){var g=i.event.sourceEvent;g&&"brush"===g.type||(u=g,o.zoom_onzoomstart.call(n.api,g))}}).on("zoom",function(){if("scroll"===o.zoom_type){var g=i.event.sourceEvent;g&&"brush"===g.type||(n.redrawForZoom(),o.zoom_onzoom.call(n.api,n.x.orgDomain()))}}).on("end",function(){if("scroll"===o.zoom_type){var g=i.event.sourceEvent;g&&"brush"===g.type||g&&u.clientX===g.clientX&&u.clientY===g.clientY||o.zoom_onzoomend.call(n.api,n.x.orgDomain())}}),n.zoom.updateDomain=function(){return i.event&&i.event.transform&&n.x.domain(o.axis_rotated&&"scroll"===o.zoom_type&&"mousemove"===i.event.sourceEvent.type?i.event.transform.rescaleY(n.subX).domain():i.event.transform.rescaleX(n.subX).domain()),this},n.zoom.updateExtent=function(){return this.scaleExtent([1,1/0]).translateExtent([[0,0],[n.width,n.height]]).extent([[0,0],[n.width,n.height]]),this},n.zoom.update=function(){return this.updateExtent().updateDomain()},n.zoom.updateExtent()},v.prototype.zoomTransform=function(n){var i=this,o=[i.x(n[0]),i.x(n[1])];return i.d3.zoomIdentity.scale(i.width/(o[1]-o[0])).translate(-o[0],0)},v.prototype.initDragZoom=function(){var n=this,i=n.d3,o=n.config,u=n.context=n.svg,g=n.margin.left+20.5,m=n.margin.top+.5;if("drag"===o.zoom_type&&o.zoom_enabled){var w=function(E){return E&&E.map(function(L){return n.x.invert(L)})},T=n.dragZoomBrush=i.brushX().on("start",function(){n.api.unzoom(),n.svg.select("."+k.dragZoom).
1classed("disabled",!1),o.zoom_onzoomstart.call(n.api,i.event.sourceEvent)}).on("brush",function(){o.zoom_onzoom.call(n.api,w(i.event.selection))}).on("end",function(){if(null!=i.event.selection){var E=w(i.event.selection);o.zoom_disableDefaultBehavior||n.api.zoom(E),n.svg.select("."+k.dragZoom).classed("disabled",!0),o.zoom_onzoomend.call(n.api,E)}});u.append("g").classed(k.dragZoom,!0).attr("clip-path",n.clipPath).attr("transform","translate("+g+","+m+")").call(T)}},v.prototype.getZoomDomain=function(){var n=this,i=n.config,o=n.d3;return[o.min([n.orgXDomain[0],i.zoom_x_min]),o.max([n.orgXDomain[1],i.zoom_x_max])]},v.prototype.redrawForZoom=function(){var n=this,i=n.d3,o=n.config,u=n.zoom,g=n.x;!o.zoom_enabled||0!==n.filterTargetsToShow(n.data.targets).length&&(u.update(),!o.zoom_disableDefaultBehavior&&(n.isCategorized()&&g.orgDomain()[0]===n.orgXDomain[0]&&g.domain([n.orgXDomain[0]-1e-10,g.orgDomain()[1]]),n.redraw({withTransition:!1,withY:o.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),i.event.sourceEvent&&"mousemove"===i.event.sourceEvent.type&&(n.cancelClick=!0)))},Rn}()},34019:(kn,me,qt)=>{"use strict";function v(P,N){return P<N?-1:P>N?1:P>=N?0:NaN}function nt(P){return 1===P.length&&(P=function Jt(P){return function(N,D){return v(P(N),D)}}(P)),{left:function(N,D,O,$){for(null==O&&(O=0),null==$&&($=N.length);O<$;){var F=O+$>>>1;P(N[F],D)<0?O=F+1:$=F}return O},right:function(N,D,O,$){for(null==O&&(O=0),null==$&&($=N.length);O<$;){var F=O+$>>>1;P(N[F],D)>0?$=F:O=F+1}return O}}}qt.d(me,{j2:()=>v,b4:()=>yn,Nw:()=>Ht,ml:()=>xe,YF:()=>nt,kC:()=>$t,$1:()=>Et,P3:()=>Ye,We:()=>xt,KX:()=>Ti,Fp:()=>ar,J6:()=>n,C2:()=>i,TS:()=>o,VV:()=>u,X:()=>Ct,FO:()=>g,VR:()=>sn,w6:()=>Qt,Rp:()=>m,TV:()=>w,Sm:()=>T,o6:()=>ir,FA:()=>rr,_X:()=>Rn,G9:()=>on,ly:()=>yt,sd:()=>k,p4:()=>E,CA:()=>Wt,$R:()=>I});var je=nt(v),xe=je.right,Ht=je.left;const yn=xe;function Ct(P,N){null==N&&(N=Yt);for(var D=0,O=P.length-1,$=P[0],F=new Array(O<0?0:O);D<O;)F[D]=N($,$=P[++D]);return F}function Yt(P,N){return[P,N]}function $t(P,N,D){var Z,it,vt,kt,O=P.length,$=N.length,F=new Array(O*$);for(null==D&&(D=Yt),Z=vt=0;Z<O;++Z)for(kt=P[Z],it=0;it<$;++it,++vt)F[vt]=D(kt,N[it]);return F}function Et(P,N){return N<P?-1:N>P?1:N>=P?0:NaN}function Ut(P){return null===P?NaN:+P}function Wt(P,N){var Z,it,D=P.length,O=0,$=-1,F=0,vt=0;if(null==N)for(;++$<D;)isNaN(Z=Ut(P[$]))||(vt+=(it=Z-F)*(Z-(F+=it/++O)));else for(;++$<D;)isNaN(Z=Ut(N(P[$],$,P)))||(vt+=(it=Z-F)*(Z-(F+=it/++O)));if(O>1)return vt/(O-1)}function Ye(P,N){var D=Wt(P,N);return D&&Math.sqrt(D)}function xt(P,N){var $,F,Z,D=P.length,O=-1;if(null==N){for(;++O<D;)if(null!=($=P[O])&&$>=$)for(F=Z=$;++O<D;)null!=($=P[O])&&(F>$&&(F=$),Z<$&&(Z=$))}else for(;++O<D;)if(null!=($=N(P[O],O,P))&&$>=$)for(F=Z=$;++O<D;)null!=($=N(P[O],O,P))&&(F>$&&(F=$),Z<$&&(Z=$));return[F,Z]}var Lt=Array.prototype,Q=Lt.slice,At=Lt.map;function Gt(P){return function(){return P}}function se(P){return P}function Qt(P,N,D){P=+P,N=+N,D=($=arguments.length)<2?(N=P,P=0,1):$<3?1:+D;for(var O=-1,$=0|Math.max(0,Math.ceil((N-P)/D)),F=new Array($);++O<$;)F[O]=P+O*D;return F}var It=Math.sqrt(50),ne=Math.sqrt(10),Ft=Math.sqrt(2);function k(P,N,D){var O,F,Z,it,$=-1;if(D=+D,(P=+P)==(N=+N)&&D>0)return[P];if((O=N<P)&&(F=P,P=N,N=F),0===(it=on(P,N,D))||!isFinite(it))return[];if(it>0)for(P=Math.ceil(P/it),N=Math.floor(N/it),Z=new Array(F=Math.ceil(N-P+1));++$<F;)Z[$]=(P+$)*it;else for(P=Math.floor(P*it),N=Math.ceil(N*it),Z=new Array(F=Math.ceil(P-N+1));++$<F;)Z[$]=(P-$)/it;return O&&Z.reverse(),Z}function on(P,N,D){var O=(N-P)/Math.max(0,D),$=Math.floor(Math.log(O)/Math.LN10),F=O/Math.pow(10,$);return $>=0?(F>=It?10:F>=ne?5:F>=Ft?2:1)*Math.pow(10,$):-Math.pow(10,-$)/(F>=It?10:F>=ne?5:F>=Ft?2:1)}function yt(P,N,D){var O=Math.abs(N-P)/Math.max(0,D),$=Math.pow(10,Math.floor(Math.log(O)/Math.LN10)),F=O/$;return F>=It?$*=10:F>=ne?$*=5:F>=Ft&&($*=2),N<P?-$:$}function Rn(P){return Math.ceil(Math.log(P.length)/Math.LN2)+1}function Ti(){var P=se,N=xt,D=Rn;function O($){var F,it,Z=$.length,vt=new Array(Z);for(F=0;F<Z;++F)vt[F]=P($[F],F,$);var kt=N(vt),bt=kt[0],Rt=kt[1],mt=D(vt,bt,Rt);Array.isArray(mt)||(mt=yt(bt,Rt,mt),mt=Qt(Math.ceil(bt/mt)*mt,Rt,mt));for(var dt=mt.length;mt[0]<=bt;)mt.shift(),--dt;for(;mt[dt-1]>Rt;)mt.pop(),--dt;var gt,Zt=new Array(dt+1);for(F=0;F<=dt;++F)(gt=Zt[F]=[]).x0=F>0?mt[F-1]:bt,gt.x1=F<dt?mt[F]:Rt;for(F=0;F<Z;++F)bt<=(it=vt[F])&&it<=Rt&&Zt[yn(mt,it,0,dt)].push($[F]);return Zt}return O.value=function($){return arguments.length?(P="function"==typeof $?$:Gt($),O):P},O.domain=function($){return arguments.length?(N="function"==typeof $?$:Gt([$[0],$[1]]),O):N},O.thresholds=function($){return arguments.length?(D="function"==typeof $?$:Array.isArray($)?Gt(Q.call($)):Gt($),O):D},O}function sn(P,N,D){if(null==D&&(D=Ut),O=P.length){if((N=+N)<=0||O<2)return+D(P[0],0,P);
vendor: 3,313 bytes, line 1
1if(N>=1)return+D(P[O-1],O-1,P);var O,$=(O-1)*N,F=Math.floor($),Z=+D(P[F],F,P);return Z+(+D(P[F+1],F+1,P)-Z)*($-F)}}function ir(P,N,D){return P=At.call(P,Ut).sort(v),Math.ceil((D-N)/(2*(sn(P,.75)-sn(P,.25))*Math.pow(P.length,-1/3)))}function rr(P,N,D){return Math.ceil((D-N)/(3.5*Ye(P)*Math.pow(P.length,-1/3)))}function ar(P,N){var $,F,D=P.length,O=-1;if(null==N){for(;++O<D;)if(null!=($=P[O])&&$>=$)for(F=$;++O<D;)null!=($=P[O])&&$>F&&(F=$)}else for(;++O<D;)if(null!=($=N(P[O],O,P))&&$>=$)for(F=$;++O<D;)null!=($=N(P[O],O,P))&&$>F&&(F=$);return F}function n(P,N){var F,D=P.length,O=D,$=-1,Z=0;if(null==N)for(;++$<D;)isNaN(F=Ut(P[$]))?--O:Z+=F;else for(;++$<D;)isNaN(F=Ut(N(P[$],$,P)))?--O:Z+=F;if(O)return Z/O}function i(P,N){var $,D=P.length,O=-1,F=[];if(null==N)for(;++O<D;)isNaN($=Ut(P[O]))||F.push($);else for(;++O<D;)isNaN($=Ut(N(P[O],O,P)))||F.push($);return sn(F.sort(v),.5)}function o(P){for(var D,F,Z,N=P.length,O=-1,$=0;++O<N;)$+=P[O].length;for(F=new Array($);--N>=0;)for(D=(Z=P[N]).length;--D>=0;)F[--$]=Z[D];return F}function u(P,N){var $,F,D=P.length,O=-1;if(null==N){for(;++O<D;)if(null!=($=P[O])&&$>=$)for(F=$;++O<D;)null!=($=P[O])&&F>$&&(F=$)}else for(;++O<D;)if(null!=($=N(P[O],O,P))&&$>=$)for(F=$;++O<D;)null!=($=N(P[O],O,P))&&F>$&&(F=$);return F}function g(P,N){for(var D=N.length,O=new Array(D);D--;)O[D]=P[N[D]];return O}function m(P,N){if(D=P.length){var D,F,O=0,$=0,Z=P[$];for(null==N&&(N=v);++O<D;)(N(F=P[O],Z)<0||0!==N(Z,Z))&&(Z=F,$=O);if(0===N(Z,Z))return $}}function w(P,N,D){for(var $,F,O=(D??P.length)-(N=null==N?0:+N);O;)F=Math.random()*O--|0,$=P[O+N],P[O+N]=P[F+N],P[F+N]=$;return P}function T(P,N){var $,D=P.length,O=-1,F=0;if(null==N)for(;++O<D;)($=+P[O])&&(F+=$);else for(;++O<D;)($=+N(P[O],O,P))&&(F+=$);return F}function E(P){if(!(F=P.length))return[];for(var N=-1,D=u(P,L),O=new Array(D);++N<D;)for(var F,$=-1,Z=O[N]=new Array(F);++$<F;)Z[$]=P[$][N];return O}function L(P){return P.length}function I(){return E(arguments)}},73066:(kn,me,qt)=>{"use strict";qt.d(me,{Z:()=>yn});var v=Math.PI,nt=2*v,Jt=1e-6,je=nt-Jt;function xe(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Ht(){return new xe}xe.prototype=Ht.prototype={constructor:xe,moveTo:function(Ct,Yt){this._+="M"+(this._x0=this._x1=+Ct)+","+(this._y0=this._y1=+Yt)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(Ct,Yt){this._+="L"+(this._x1=+Ct)+","+(this._y1=+Yt)},quadraticCurveTo:function(Ct,Yt,$t,Et){this._+="Q"+ +Ct+","+ +Yt+","+(this._x1=+$t)+","+(this._y1=+Et)},bezierCurveTo:function(Ct,Yt,$t,Et,Ut,Wt){this._+="C"+ +Ct+","+ +Yt+","+ +$t+","+ +Et+","+(this._x1=+Ut)+","+(this._y1=+Wt)},arcTo:function(Ct,Yt,$t,Et,Ut){var Wt=this._x1,Ye=this._y1,xt=($t=+$t)-(Ct=+Ct),Lt=(Et=+Et)-(Yt=+Yt),Q=Wt-Ct,At=Ye-Yt,Gt=Q*Q+At*At;if((Ut=+Ut)<0)throw new Error("negative radius: "+Ut);if(null===this._x1)this._+="M"+(this._x1=Ct)+","+(this._y1=Yt);else if(Gt>Jt)if(Math.abs(At*xt-Lt*Q)>Jt&&Ut){var se=$t-Wt,Qt=Et-Ye,It=xt*xt+Lt*Lt,ne=se*se+Qt*Qt,Ft=Math.sqrt(It),k=Math.sqrt(Gt),on=Ut*Math.tan((v-Math.acos((It+Gt-ne)/(2*Ft*k)))/2),yt=on/k,Rn=on/Ft;Math.abs(yt-1)>Jt&&(this._+="L"+(Ct+yt*Q)+","+(Yt+yt*At)),this._+="A"+Ut+","+Ut+",0,0,"+ +(At*se>Q*Qt)+","+(this._x1=Ct+Rn*xt)+","+(this._y1=Yt+Rn*Lt)}else this._+="L"+(this._x1=Ct)+","+(this._y1=Yt)}
1,arc:function(Ct,Yt,$t,Et,Ut,Wt){Ct=+Ct,Yt=+Yt,Wt=!!Wt;var Ye=($t=+$t)*Math.cos(Et),xt=$t*Math.sin(Et),Lt=Ct+Ye,Q=Yt+xt,At=1^Wt,Gt=Wt?Et-Ut:Ut-Et;if($t<0)throw new Error("negative radius: "+$t);null===this._x1?this._+="M"+Lt+","+Q:(Math.abs(this._x1-Lt)>Jt||Math.abs(this._y1-Q)>Jt)&&(this._+="L"+Lt+","+Q),$t&&(Gt<0&&(Gt=Gt%nt+nt),Gt>je?this._+="A"+$t+","+$t+",0,1,"+At+","+(Ct-Ye)+","+(Yt-xt)+"A"+$t+","+$t+",0,1,"+At+","+(this._x1=Lt)+","+(this._y1=Q):Gt>Jt&&(this._+="A"+$t+","+$t+",0,"+ +(Gt>=v)+","+At+","+(this._x1=Ct+$t*Math.cos(Ut))+","+(this._y1=Yt+$t*Math.sin(Ut))))},rect:function(Ct,Yt,$t,Et){this._+="M"+(this._x0=this._x1=+Ct)+","+(this._y0=this._y1=+Yt)+"h"+ +$t+"v"+ +Et+"h"+-$t+"Z"},toString:function(){return this._}};const yn=Ht},3668:(kn,me,qt)=>{"use strict";qt.d(me,{t:()=>v});var v=Array.prototype.slice},21456:(kn,me,qt)=>{"use strict";function v(nt){return function(){return nt}}qt.d(me,{Z:()=>v})},18374:(kn,me,qt)=>{"use strict";qt.d(me,{M4:()=>Ye,h5:()=>Ut,rR:()=>Wt});var v=qt(73066),nt=qt(3668),Jt=qt(21456),je=qt(86503),xe=qt(32222);function Ht(xt){return xt.source}function yn(xt){return xt.target}function Ct(xt){var Lt=Ht,Q=yn,At=je.x,Gt=je.y,se=null;function Qt(){var It,ne=nt.t.call(arguments),Ft=Lt.apply(this,ne),k=Q.apply(this,ne);if(se||(se=It=(0,v.Z)()),xt(se,+At.apply(this,(ne[0]=Ft,ne)),+Gt.apply(this,ne),+At.apply(this,(ne[0]=k,ne)),+Gt.apply(this,ne)),It)return se=null,It+""||null}return Qt.source=function(It){return arguments.length?(Lt=It,Qt):Lt},Qt.target=function(It){return arguments.length?(Q=It,Qt):Q},Qt.x=function(It){return arguments.length?(At="function"==typeof It?It:(0,Jt.Z)(+It),Qt):At},Qt.y=function(It){return arguments.length?(Gt="function"==typeof It?It:(0,Jt.Z)(+It),Qt):Gt},Qt.context=function(It){return arguments.length?(se=It??null,Qt):se},Qt}function Yt(xt,Lt,Q,At,Gt){xt.moveTo(Lt,Q),xt.bezierCurveTo(Lt=(Lt+At)/2,Q,Lt,Gt,At,Gt)}function $t(xt,Lt,Q,At,Gt){xt.moveTo(Lt,Q),xt.bezierCurveTo(Lt,Q=(Q+Gt)/2,At,Q,At,Gt)}function Et(xt,Lt,Q,At,Gt){var se=(0,xe.Z)(Lt,Q),Qt=(0,xe.Z)(Lt,Q=(Q+Gt)/2),It=(0,xe.Z)(At,Q),ne=(0,xe.Z)(At,Gt);xt.moveTo(se[0],se[1]),xt.bezierCurveTo(Qt[0],Qt[1],It[0],It[1],ne[0],ne[1])}function Ut(){return Ct(Yt)}function Wt(){return Ct($t)}function Ye(){var xt=Ct(Et);return xt.angle=xt.x,delete xt.x,xt.radius=xt.y,delete xt.y,xt}},86503:(kn,me,qt)=>{"use strict";function v(Jt){return Jt[0]}function nt(Jt){return Jt[1]}qt.d(me,{x:()=>v,y:()=>nt})},32222:(kn,me,qt)=>{"use strict";function v(nt,Jt){return[(Jt=+Jt)*Math.cos(nt-=Math.PI/2),Jt*Math.sin(nt)]}qt.d(me,{Z:()=>v})},51770:(kn,me,qt)=>{"use strict";qt.r(me),qt.d(me,{FormatSpecifier:()=>Ba,active:()=>Sy,arc:()=>kS,area:()=>Tp,areaRadial:()=>Lp,ascending:()=>Q.j2,autoType:()=>$m,axisBottom:()=>ar,axisLeft:()=>n,axisRight:()=>rr,axisTop:()=>ir,bisect:()=>Q.b4,bisectLeft:()=>Q.Nw,bisectRight:()=>Q.ml,bisector:()=>Q.YF,blob:()=>fx,brush:()=>$y,brushSelection:()=>Vy,brushX:()=>Gy,brushY:()=>Oy,buffer:()=>hx,chord:()=>Dy,clientPoint:()=>va,cluster:()=>Pv,color:()=>Xn,contourDensity:()=>pm,contours:()=>cl,create:()=>xS,creator:()=>da,cross:()=>Q.kC,csv:()=>px,csvFormat:()=>Am,csvFormatBody:()=>Pm,csvFormatRow:()=>Lm,csvFormatRows:()=>Cm,csvFormatValue:()=>Mm,csvParse:()=>dl,csvParseRows:()=>Tm,cubehelix:()=>fn,curveBasis:()=>YS,curveBasisClosed:()=>BS,curveBasisOpen:()=>HS,curveBundle:()=>US,curveCardinal:()=>WS,curveCardinalClosed:()=>qS,curveCardinalOpen:()=>ZS,curveCatmullRom:()=>QS,curveCatmullRomClosed:()=>jS,curveCatmullRomOpen:()=>KS,curveLinear:()=>es,curveLinearClosed:()=>JS,curveMonotoneX:()=>tT,curveMonotoneY:()=>eT,curveNatural:()=>nT,curveStep:()=>iT,curveStepAfter:()=>aT,curveStepBefore:()=>rT,customEvent:()=>cr,descending:()=>Q.$1,deviation:()=>Q.P3,dispatch:()=>T,drag:()=>vm,dragDisable:()=>ga,dragEnable:()=>pa,dsv:()=>gx,dsvFormat:()=>Ia,easeBack:()=>bl,easeBackIn:()=>ax,easeBackInOut:()=>bl,easeBackOut:()=>ox,easeBounce:()=>Tr,easeBounceIn:()=>ix,easeBounceInOut:()=>rx,easeBounceOut:()=>Tr,easeCircle:()=>wl,easeCircleIn:()=>Wm,easeCircleInOut:()=>wl,easeCircleOut:()=>qm,easeCubic:()=>Vs,easeCubicIn:()=>my,easeCubicInOut:()=>Vs,easeCubicOut:()=>xy,easeElastic:()=>Sl,easeElasticIn:()=>sx,easeElasticInOut:()=>ux,easeElasticOut:()=>Sl,easeExp:()=>vl,easeExpIn:()=>Hm,easeExpInOut:()=>vl,easeExpOut:()=>Um,easeLinear:()=>Dm,easePoly:()=>_l,easePolyIn:()=>zm,easePolyInOut:()=>_l,easePolyOut:()=>Xm,easeQuad:()=>pl,easeQuadIn:()=>Im,easeQuadInOut:()=>pl,easeQuadOut:()=>Fm,easeSin:()=>xl,easeSinIn:()=>Ym,easeSinInOut:()=>xl,easeSinOut:()=>Bm,entries:()=>Ky,event:()=>at,extent:()=>Q.We,forceCenter:()=>Sx,forceCollide:()=>Xx,forceLink:()=>Bx,forceManyBody:()=>Qx,forceRadial:()=>jx,forceSimulation:()=>Zx,forceX:()=>Kx,forceY:()=>Jx,format:()=>Ua,formatDefaultLocale:()=>Ol,formatLocale:()=>Gl,formatPrefix:()=>su,formatSpecifier:()=>Ar,geoAlbers:()=>Qh,geoAlbersUsa:()=>rv,geoArea:()=>c1,geoAzimuthalEqualArea:()=>av,geoAzimuthalEqualAreaRaw:()=>Uu,geoAzimuthalEquidistant:()=>
1ov,geoAzimuthalEquidistantRaw:()=>Wu,geoBounds:()=>d1,geoCentroid:()=>x1,geoCircle:()=>v1,geoClipAntimeridian:()=>Au,geoClipCircle:()=>mh,geoClipExtent:()=>C1,geoClipRectangle:()=>yo,geoConicConformal:()=>uv,geoConicConformalRaw:()=>Jh,geoConicEqualArea:()=>Mo,geoConicEqualAreaRaw:()=>Zh,geoConicEquidistant:()=>fv,geoConicEquidistantRaw:()=>td,geoContains:()=>G1,geoDistance:()=>vo,geoEqualEarth:()=>hv,geoEqualEarthRaw:()=>qu,geoEquirectangular:()=>cv,geoEquirectangularRaw:()=>Ir,geoGnomonic:()=>dv,geoGnomonicRaw:()=>Zu,geoGraticule:()=>Lh,geoGraticule10:()=>O1,geoIdentity:()=>gv,geoInterpolate:()=>$1,geoLength:()=>xh,geoMercator:()=>sv,geoMercatorRaw:()=>Dr,geoNaturalEarth1:()=>pv,geoNaturalEarth1Raw:()=>Qu,geoOrthographic:()=>_v,geoOrthographicRaw:()=>ju,geoPath:()=>q1,geoProjection:()=>Mn,geoProjectionMutator:()=>Bu,geoRotation:()=>fh,geoStereographic:()=>yv,geoStereographicRaw:()=>Ku,geoStream:()=>ln,geoTransform:()=>Z1,geoTransverseMercator:()=>mv,geoTransverseMercatorRaw:()=>Ju,gray:()=>tm,hcl:()=>$a,hierarchy:()=>tc,histogram:()=>Q.KX,hsl:()=>ya,html:()=>wx,image:()=>yx,interpolate:()=>dr,interpolateArray:()=>c_,interpolateBasis:()=>cf,interpolateBasisClosed:()=>ff,interpolateBlues:()=>tS,interpolateBrBG:()=>V2,interpolateBuGn:()=>X2,interpolateBuPu:()=>Y2,interpolateCividis:()=>oS,interpolateCool:()=>cS,interpolateCubehelix:()=>Sw,interpolateCubehelixDefault:()=>sS,interpolateCubehelixLong:()=>No,interpolateDate:()=>_f,interpolateDiscrete:()=>dw,interpolateGnBu:()=>B2,interpolateGreens:()=>eS,interpolateGreys:()=>nS,interpolateHcl:()=>ww,interpolateHclLong:()=>bw,interpolateHsl:()=>mw,interpolateHslLong:()=>xw,interpolateHue:()=>gw,interpolateInferno:()=>yS,interpolateLab:()=>vw,interpolateMagma:()=>_S,interpolateNumber:()=>Je,interpolateNumberArray:()=>xs,interpolateObject:()=>yf,interpolateOrRd:()=>H2,interpolateOranges:()=>aS,interpolatePRGn:()=>G2,interpolatePiYG:()=>O2,interpolatePlasma:()=>mS,interpolatePuBu:()=>W2,interpolatePuBuGn:()=>U2,interpolatePuOr:()=>$2,interpolatePuRd:()=>q2,interpolatePurples:()=>iS,interpolateRainbow:()=>fS,interpolateRdBu:()=>N2,interpolateRdGy:()=>D2,interpolateRdPu:()=>Z2,interpolateRdYlBu:()=>I2,interpolateRdYlGn:()=>F2,interpolateReds:()=>rS,interpolateRgb:()=>hr,interpolateRgbBasis:()=>df,interpolateRgbBasisClosed:()=>u_,interpolateRound:()=>yd,interpolateSinebow:()=>dS,interpolateSpectral:()=>z2,interpolateString:()=>bs,interpolateTransformCss:()=>Lf,interpolateTransformSvg:()=>Mf,interpolateTurbo:()=>gS,interpolateViridis:()=>pS,interpolateWarm:()=>uS,interpolateYlGn:()=>j2,interpolateYlGnBu:()=>Q2,interpolateYlOrBr:()=>K2,interpolateYlOrRd:()=>J2,interpolateZoom:()=>vd,interrupt:()=>ai,interval:()=>bT,isoFormat:()=>mT,isoParse:()=>wT,json:()=>xx,keys:()=>Qy,lab:()=>Oa,lch:()=>em,line:()=>Mc,lineRadial:()=>Cp,linkHorizontal:()=>kc.h5,linkRadial:()=>kc.M4,linkVertical:()=>kc.rR,local:()=>vp,map:()=>Yn,matcher:()=>O,max:()=>Q.Fp,mean:()=>Q.J6,median:()=>Q.C2,merge:()=>Q.TS,min:()=>Q.VV,mouse:()=>ii,namespace:()=>Ce,namespaces:()=>wt,nest:()=>Uy,now:()=>Ri,pack:()=>jv,packEnclose:()=>nd,packSiblings:()=>qv,pairs:()=>Q.X,partition:()=>Kv,path:()=>$i.Z,permute:()=>Q.FO,pie:()=>GS,piecewise:()=>Tw,pointRadial:()=>OS.Z,polygonArea:()=>Pw,polygonCentroid:()=>Cw,polygonContains:()=>kw,polygonHull:()=>Ew,polygonLength:()=>Rw,precisionFixed:()=>$l,precisionPrefix:()=>Nl,precisionRound:()=>Dl,quadtree:()=>Xa,quantile:()=>Q.VR,quantize:()=>Aw,radialArea:()=>Lp,radialLine:()=>Cp,randomBates:()=>Ow,randomExponential:()=>$w,randomIrwinHall:()=>Pd,randomLogNormal:()=>Gw,randomNormal:()=>Ad,randomUniform:()=>Vw,range:()=>Q.w6,rgb:()=>Ei,ribbon:()=>Hy,scaleBand:()=>uc,scaleDiverging:()=>Bg,scaleDivergingLog:()=>Hg,scaleDivergingPow:()=>Pc,scaleDivergingSqrt:()=>b2,scaleDivergingSymlog:()=>Ug,scaleIdentity:()=>Gd,scaleImplicit:()=>oc,scaleLinear:()=>Vd,scaleLog:()=>Id,scaleOrdinal:()=>sc,scalePoint:()=>Nw,scalePow:()=>gc,scaleQuantile:()=>Bd,scaleQuantize:()=>Hd,scaleSequential:()=>Fg,scaleSequentialLog:()=>zg,scaleSequentialPow:()=>Ac,scaleSequentialQuantile:()=>Yg,scaleSequentialSqrt:()=>w2,scaleSequentialSymlog:()=>Xg,scaleSqrt:()=>qw,scaleSymlog:()=>Xd,scaleThreshold:()=>Ud,scaleTime:()=>_2,scaleUtc:()=>v2,scan:()=>Q.Rp,schemeAccent:()=>T2,schemeBlues:()=>gp,schemeBrBG:()=>Wg,schemeBuGn:()=>np,schemeBuPu:()=>ip,schemeCategory10:()=>S2,schemeDark2:()=>A2,schemeGnBu:()=>rp,schemeGreens:()=>pp,schemeGreys:()=>_p,schemeOrRd:()=>ap,schemeOranges:()=>xp,schemePRGn:()=>qg,schemePaired:()=>
vendor: 13,329 bytes, line 1
1P2,schemePastel1:()=>C2,schemePastel2:()=>L2,schemePiYG:()=>Zg,schemePuBu:()=>sp,schemePuBuGn:()=>op,schemePuOr:()=>Qg,schemePuRd:()=>up,schemePurples:()=>yp,schemeRdBu:()=>jg,schemeRdGy:()=>Kg,schemeRdPu:()=>cp,schemeRdYlBu:()=>Jg,schemeRdYlGn:()=>tp,schemeReds:()=>mp,schemeSet1:()=>M2,schemeSet2:()=>E2,schemeSet3:()=>k2,schemeSpectral:()=>ep,schemeTableau10:()=>R2,schemeYlGn:()=>lp,schemeYlGnBu:()=>fp,schemeYlOrBr:()=>hp,schemeYlOrRd:()=>dp,select:()=>He,selectAll:()=>wS,selection:()=>Ai,selector:()=>L,selectorAll:()=>N,set:()=>Zy,shuffle:()=>Q.TV,stack:()=>sT,stackOffsetDiverging:()=>cT,stackOffsetExpand:()=>uT,stackOffsetNone:()=>Ki,stackOffsetSilhouette:()=>fT,stackOffsetWiggle:()=>lT,stackOrderAppearance:()=>Kp,stackOrderAscending:()=>Jp,stackOrderDescending:()=>dT,stackOrderInsideOut:()=>gT,stackOrderNone:()=>Ji,stackOrderReverse:()=>pT,stratify:()=>nw,style:()=>ei,sum:()=>Q.Sm,svg:()=>bx,symbol:()=>XS,symbolCircle:()=>Rc,symbolCross:()=>Mp,symbolDiamond:()=>kp,symbolSquare:()=>Gp,symbolStar:()=>Vp,symbolTriangle:()=>Op,symbolWye:()=>$p,symbols:()=>zS,text:()=>za,thresholdFreedmanDiaconis:()=>Q.o6,thresholdScott:()=>Q.FA,thresholdSturges:()=>Q._X,tickFormat:()=>Rd,tickIncrement:()=>Q.G9,tickStep:()=>Q.ly,ticks:()=>Q.sd,timeDay:()=>Xo,timeDays:()=>ib,timeFormat:()=>wc,timeFormatDefaultLocale:()=>Rg,timeFormatLocale:()=>_g,timeFriday:()=>Jd,timeFridays:()=>eb,timeHour:()=>rg,timeHours:()=>rb,timeInterval:()=>ge,timeMillisecond:()=>Ho,timeMilliseconds:()=>cg,timeMinute:()=>og,timeMinutes:()=>ab,timeMonday:()=>Zr,timeMondays:()=>jw,timeMonth:()=>qd,timeMonths:()=>Qw,timeParse:()=>kg,timeSaturday:()=>tg,timeSaturdays:()=>nb,timeSecond:()=>Yo,timeSeconds:()=>ug,timeSunday:()=>qr,timeSundays:()=>eg,timeThursday:()=>xi,timeThursdays:()=>tb,timeTuesday:()=>jd,timeTuesdays:()=>Kw,timeWednesday:()=>Kd,timeWednesdays:()=>Jw,timeWeek:()=>qr,timeWeeks:()=>eg,timeYear:()=>_i,timeYears:()=>Zw,timeout:()=>As,timer:()=>Ta,timerFlush:()=>vf,touch:()=>gr,touches:()=>bS,transition:()=>Rf,transpose:()=>Q.p4,tree:()=>uw,treemap:()=>cw,treemapBinary:()=>fw,treemapDice:()=>Hr,treemapResquarify:()=>hw,treemapSlice:()=>$o,treemapSliceDice:()=>lw,treemapSquarify:()=>_d,tsv:()=>_x,tsvFormat:()=>km,tsvFormatBody:()=>Rm,tsvFormatRow:()=>Gm,tsvFormatRows:()=>Vm,tsvFormatValue:()=>Om,tsvParse:()=>gl,tsvParseRows:()=>Em,utcDay:()=>Uo,utcDays:()=>hb,utcFormat:()=>Wo,utcFriday:()=>hg,utcFridays:()=>fb,utcHour:()=>Ng,utcHours:()=>m2,utcMillisecond:()=>Ho,utcMilliseconds:()=>cg,utcMinute:()=>Ig,utcMinutes:()=>x2,utcMonday:()=>jr,utcMondays:()=>ob,utcMonth:()=>Og,utcMonths:()=>y2,utcParse:()=>bc,utcSaturday:()=>dg,utcSaturdays:()=>lb,utcSecond:()=>Yo,utcSeconds:()=>ug,utcSunday:()=>Qr,utcSundays:()=>gg,utcThursday:()=>wi,utcThursdays:()=>cb,utcTuesday:()=>fg,utcTuesdays:()=>sb,utcWednesday:()=>lg,utcWednesdays:()=>ub,utcWeek:()=>Qr,utcWeeks:()=>gg,utcYear:()=>bi,utcYears:()=>db,values:()=>jy,variance:()=>Q.CA,version:()=>nt,voronoi:()=>zT,window:()=>vn,xml:()=>vx,zip:()=>Q.$R,zoom:()=>qT,zoomIdentity:()=>ls,zoomTransform:()=>f0});var nt="5.16.0",Q=qt(34019),At=Array.prototype.slice;function Gt(t){return t}function k(t){return"translate("+(t+.5)+",0)"}function on(t){return"translate(0,"+(t+.5)+")"}function yt(t){return function(e){return+t(e)}}function Rn(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(r){return+t(r)+e}}function Ti(){return!this.__axis}function sn(t,e){var r=[],a=null,s=null,c=6,f=6,l=3,h=1===t||4===t?-1:1,d=4===t||2===t?"x":"y",p=1===t||3===t?k:on;function y(_){var x=a??(e.ticks?e.ticks.apply(e,r):e.domain()),S=s??(e.tickFormat?e.tickFormat.apply(e,r):Gt),b=Math.max(c,0)+l,A=e.range(),C=+A[0]+.5,V=+A[A.length-1]+.5,M=(e.bandwidth?Rn:yt)(e.copy()),R=_.selection?_.selection():_,z=R.selectAll(".domain").data([null]),B=R.selectAll(".tick").data(x,e).order(),X=B.exit(),j=B.enter().append("g").attr("class","tick"),W=B.select("line"),q=B.select("text");z=z.merge(z.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),B=B.merge(j),W=W.merge(j.append("line").attr("stroke","currentColor").attr(d+"2",h*c)),q=q.merge(j.append("text").attr("fill","currentColor").attr(d,h*b).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),_!==R&&(z=z.transition(_),B=B.transition(_),W=W.transition(_),q=q.transition(_),X=X.transition(_).attr("opacity",1e-6).attr("transform",function(U){return isFinite(U=M(U))?p(U):this.getAttribute("transform")}),j.attr("opacity",1e-6).attr("transform",function(U){var G=this.parentNode.__axis;return p(G&&isFinite(G=G(U))?G:M(U))})),X.remove(),z.attr("d",4===t||2==t?f?"M"+h*f+","+C+"H0.5V"+V+"H"+h*f:"M0.5,"+C+"V"+V:f?"M"+C+","+h*f+"V0.5H"+V+"V"+h*f:"M"+C+",0.5H"+V),B.attr("opacity",1).attr("transform",function(U){return p(M(U))}),W.attr(d+"2",h*c),q.attr(d,h*b).text(S),R.filter(Ti).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),R.each(function(){this.__axis=M})}return y.scale=function(_){return arguments.length?(e=_,y):e},y.ticks=function(){return r=At.call(arguments),y},y.tickArguments=function(_){return arguments.length?(r=null==_?[]:At.call(_),y):r.slice()},y.tickValues=function(_){return arguments.length?(a=null==_?null:At.call(_),y):a&&a.slice()},y.tickFormat=function(_){return arguments.length?(s=_,y):s},y.tickSize=function(_){return arguments.length?(c=f=+_,y):c},y.tickSizeInner=function(_){return arguments.length?(c=+_,y):c},y.tickSizeOuter=function(_){return arguments.length?(f=+_,y):f},y.tickPadding=function(_){return arguments.length?(l=+_,y):l},y}function ir(t){return sn(1,t)}function rr(t){return sn(2,t)}function ar(t){return sn(3,t)}function n(t){return sn(4,t)}var i={value:function(){}};function o(){for(var a,t=0,e=arguments.length,r={};t<e;++t){if(!(a=arguments[t]+"")||a in r||/[\s.]/.test(a))throw new Error("illegal type: "+a);r[a]=[]}return new u(r)}function u(t){this._=t}function g(t,e){return t.trim().split(/^|\s+/).map(function(r){var a="",s=r.indexOf(".");if(s>=0&&(a=r.slice(s+1),r=r.slice(0,s)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:a}})}function m(t,e){for(var s,r=0,a=t.length;r<a;++r)if((s=t[r]).name===e)return s.value}function w(t,e,r){for(var a=0,s=t.length;a<s;++a)if(t[a].name===e){t[a]=i,t=t.slice(0,a).concat(t.slice(a+1));break}return null!=r&&t.push({name:e,value:r}),t}u.prototype=o.prototype={constructor:u,on:function(t,e){var s,r=this._,a=g(t+"",r),c=-1,f=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++c<f;)if(s=(t=a[c]).type)r[s]=w(r[s],t.name,e);else if(null==e)for(s in r)r[s]=w(r[s],t.name,null);return this}for(;++c<f;)if((s=(t=a[c]).type)&&(s=m(r[s],t.name)))return s},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new u(t)},call:function(t,e){if((s=arguments.length-2)>0)for(var s,c,r=new Array(s),a=0;a<s;++a)r[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,s=(c=this._[t]).length;a<s;++a)c[a].value.apply(e,r)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var a=this._[t],s=0,c=a.length;s<c;++s)a[s].value.apply(e,r)}};const T=o;function E(){}function L(t){return null==t?E:function(){return this.querySelector(t)}}function P(){return[]}function N(t){return null==t?P:function(){return this.querySelectorAll(t)}}function O(t){return function(){return this.matches(t)}}function F(t){return new Array(t.length)}function it(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function bt(t,e,r,a,s,c){for(var l,f=0,h=e.length,d=c.length;f<d;++f)(l=e[f])?(l.__data__=c[f],a[f]=l):r[f]=new it(t,c[f]);for(;f<h;++f)(l=e[f])&&(s[f]=l)}function Rt(t,e,r,a,s,c,f){var l,h,x,d={},p=e.length,y=c.length,_=new Array(p);for(l=0;l<p;++l)(h=e[l])&&(_[l]=x="$"+f.call(h,h.__data__,l,e),x in d?s[l]=h:d[x]=h);for(l=0;l<y;++l)(h=d[x="$"+f.call(t,c[l],l,c)])?(a[l]=h,h.__data__=c[l],d[x]=null):r[l]=new it(t,c[l]);for(l=0;l<p;++l)(h=e[l])&&d[_[l]]===h&&(s[l]=h)}function le(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}it.prototype={constructor:it,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 et="http://www.w3.org/1999/xhtml";const wt={svg:"http://www.w3.org/2000/svg",xhtml:et,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ce(t){var e=t+="",r=e.indexOf(":");return r>=0&&"xmlns"!==(e=t.slice(0,r))&&(t=t.slice(r+1)),wt.hasOwnProperty(e)?{space:wt[e],local:t}:t}function ti(t){return function(){this.removeAttribute(t)}}function or(t){return function(){this.removeAttributeNS(t.space,t.local)}}function mn(t,e){return function(){this.setAttribute(t,e)}}function Ke(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Be(t,e){return function(){var r=e.apply(this,arguments);null==r?this.removeAttribute(t):this.setAttribute(t,r)}}function xn(t,e){return function(){var r=e.apply(this,arguments);null==r?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function vn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ha(t){return function(){this.style.removeProperty(t)}}function ur(t,e,r){return function(){this.style.setProperty(t,e,r)}}function wn(t,e,r){return function(){var a=e.apply(this,arguments);null==a?this.style.removeProperty(t):this.style.setProperty(t,a,r)}}function ei(t,e){return t.style.getPropertyValue(e)||vn(t).getComputedStyle(t,null).getPropertyValue(e)}function h0(t){return function(){delete this[t]}}function d0(t,e){return function(){this[t]=e}}function g0(t,e){return function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}}function Hc(t){return t.trim().split(/^|\s+/)}function ds(t){return t.classList||new Uc(t)}function Uc(t){this._node=t,this._names=Hc(t.getAttribute("class")||"")}function Wc(t,e){for(var r=ds(t),a=-1,s=e.length;++a<s;)r.add(e[a])}function qc(t,e){for(var r=ds(t),a=-1,s=e.length;++a<s;)r.remove(e[a])}function _0(t){return function(){Wc(this,t)}}function y0(t){return function(){qc(this,t)}}function m0(t,e){return function(){(e.apply(this,arguments)?Wc:qc)(this,t)}}function v0(){this.textContent=""}function w0(t){return function(){this.textContent=t}}function b0(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function T0(){this.innerHTML=""}function A0(t){return function(){this.innerHTML=t}}function P0(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function L0(){this.nextSibling&&this.parentNode.appendChild(this)}function E0(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function R0(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===et&&e.documentElement.namespaceURI===et?e.createElement(t):e.createElementNS(r,t)}}function V0(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function da(t){var e=Ce(t);return(e.local?V0:R0)(e)}function O0(){return null}function N0(){var t=this.parentNode;t&&t.removeChild(this)}function I0(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function F0(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}Uc.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 Zc={},at=null;function B0(t,e,r){return t=Qc(t,e,r),function(a){var s=a.relatedTarget;(!s||s!==this&&!(8&s.compareDocumentPosition(this)))&&t.call(this,a)}}function Qc(t,e,r){return function(a){var s=at;at=a;try{t.call(this,this.__data__,e,r)}finally{at=s}}}function H0(t){return t.trim().split(/^|\s+/).map(function(e){var r="",a=e.indexOf(".");return a>=0&&(r=e.slice(a+1),e=e.slice(0,a)),{type:e,name:r}})}function U0(t){return function(){var e=this.__on;if(e){for(var c,r=0,a=-1,s=e.length;r<s;++r)c=e[r],t.type&&c.type!==t.type||c.name!==t.name?e[++a]=c:this.removeEventListener(c.type,c.listener,c.capture);++a?e.length=a:delete this.__on}}}function W0(t,e,r){var a=Zc.hasOwnProperty(t.type)?B0:Qc;return function(s,c,f){var h,l=this.__on,d=a(e,c,f);if(l)for(var p=0,y=l.length;p<y;++p)if((h=l[p]).type===t.type&&h.name===t.name)return this.removeEventListener(h.type,h.listener,h.capture),this.addEventListener(h.type,h.listener=d,h.capture=r),void(h.value=e);this.addEventListener(t.type,d,r),h={type:t.type,name:t.name,value:e,listener:d,capture:r},l?l.push(h):this.__on=[h]}}function cr(t,e,r,a){var s=at;t.sourceEvent=at,at=t;try{return e.apply(r,a)}finally{at=s}}function jc(t,e,r){var a=vn(t),s=a.CustomEvent;"function"==typeof s?s=new s(e,r):(s=a.document.createEvent("Event"),r?(s.initEvent(e,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(e,!1,!1)),t.dis
1patchEvent(s)}function Z0(t,e){return function(){return jc(this,t,e)}}function Q0(t,e){return function(){return jc(this,t,e.apply(this,arguments))}}typeof document<"u"&&("onmouseenter"in document.documentElement||(Zc={mouseenter:"mouseover",mouseleave:"mouseout"}));var gs=[null];function Re(t,e){this._groups=t,this._parents=e}function Kc(){return new Re([[document.documentElement]],gs)}Re.prototype=Kc.prototype={constructor:Re,select:function I(t){"function"!=typeof t&&(t=L(t));for(var e=this._groups,r=e.length,a=new Array(r),s=0;s<r;++s)for(var h,d,c=e[s],f=c.length,l=a[s]=new Array(f),p=0;p<f;++p)(h=c[p])&&(d=t.call(h,h.__data__,p,c))&&("__data__"in h&&(d.__data__=h.__data__),l[p]=d);return new Re(a,this._parents)},selectAll:function D(t){"function"!=typeof t&&(t=N(t));for(var e=this._groups,r=e.length,a=[],s=[],c=0;c<r;++c)for(var h,f=e[c],l=f.length,d=0;d<l;++d)(h=f[d])&&(a.push(t.call(h,h.__data__,d,f)),s.push(h));return new Re(a,s)},filter:function $(t){"function"!=typeof t&&(t=O(t));for(var e=this._groups,r=e.length,a=new Array(r),s=0;s<r;++s)for(var h,c=e[s],f=c.length,l=a[s]=[],d=0;d<f;++d)(h=c[d])&&t.call(h,h.__data__,d,c)&&l.push(h);return new Re(a,this._parents)},data:function mt(t,e){if(!t)return x=new Array(this.size()),d=-1,this.each(function(B){x[++d]=B}),x;var r=e?Rt:bt,a=this._parents,s=this._groups;"function"!=typeof t&&(t=function vt(t){return function(){return t}}(t));for(var c=s.length,f=new Array(c),l=new Array(c),h=new Array(c),d=0;d<c;++d){var p=a[d],y=s[d],_=y.length,x=t.call(p,p&&p.__data__,d,a),S=x.length,b=l[d]=new Array(S),A=f[d]=new Array(S);r(p,y,b,A,h[d]=new Array(_),x,e);for(var R,z,V=0,M=0;V<S;++V)if(R=b[V]){for(V>=M&&(M=V+1);!(z=A[M])&&++M<S;);R._next=z||null}}return(f=new Re(f,a))._enter=l,f._exit=h,f}
1,enter:function Z(){return new Re(this._enter||this._groups.map(F),this._parents)},exit:function dt(){return new Re(this._exit||this._groups.map(F),this._parents)},join:function Zt(t,e,r){var a=this.enter(),s=this,c=this.exit();return a="function"==typeof t?t(a):a.append(t+""),null!=e&&(s=e(s)),null==r?c.remove():r(c),a&&s?a.merge(s).order():s},merge:function gt(t){for(var e=this._groups,r=t._groups,a=e.length,c=Math.min(a,r.length),f=new Array(a),l=0;l<c;++l)for(var _,h=e[l],d=r[l],p=h.length,y=f[l]=new Array(p),x=0;x<p;++x)(_=h[x]||d[x])&&(y[x]=_);for(;l<a;++l)f[l]=e[l];return new Re(f,this._parents)},order:function ut(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var f,a=t[e],s=a.length-1,c=a[s];--s>=0;)(f=a[s])&&(c&&4^f.compareDocumentPosition(c)&&c.parentNode.insertBefore(f,c),c=f);return this},sort:function ft(t){function e(y,_){return y&&_?t(y.__data__,_.__data__):!y-!_}t||(t=le);for(var r=this._groups,a=r.length,s=new Array(a),c=0;c<a;++c){for(var d,f=r[c],l=f.length,h=s[c]=new Array(l),p=0;p<l;++p)(d=f[p])&&(h[p]=d);h.sort(e)}return new Re(s,this._parents).order()},call:function Te(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function Ae(){var t=new Array(this.size()),e=-1;return this.each(function(){t[++e]=this}),t},node:function ve(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var a=t[e],s=0,c=a.length;s<c;++s){var f=a[s];if(f)return f}return null},size:function pe(){var t=0;return this.each(function(){++t}),t},empty:function Pe(){return!this.node()},each:function ie(t){for(var e=this._groups,r=0,a=e.length;r<a;++r)for(var l,s=e[r],c=0,f=s.length;c<f;++c)(l=s[c])&&t.call(l,l.__data__,c,s);return this},attr:function sr(t,e){var r=Ce(t);if(arguments.length<2){var a=this.node();return r.local?a.getAttributeNS(r.space,r.local):a.getAttribute(r)}return this.each((null==e?r.local?or:ti:"function"==typeof e?r.local?xn:Be:r.local?Ke:mn)(r,e))},style:function hs(t,e,r){return arguments.length>1?this.each((null==e?ha:"function"==typeof e?wn:ur)(t,e,r??"")):ei(this.node(),t)},property:function p0(t,e){return arguments.length>1?this.each((null==e?h0:"function"==typeof e?g0:d0)(t,e)):this.node()[t]},classed:function x0(t,e){var r=Hc(t+"");if(arguments.length<2){for(var a=ds(this.node()),s=-1,c=r.length;++s<c;)if(!a.contains(r[s]))return!1;return!0}return this.each(("function"==typeof e?m0:e?_0:y0)(r,e))},text:function S0(t){return arguments.length?this.each(null==t?v0:("function"==typeof t?b0:w0)(t)):this.node().textContent},html:function C0(t){return arguments.length?this.each(null==t?T0:("function"==typeof t?P0:A0)(t)):this.node().innerHTML},raise:function M0(){return this.each(L0)},lower:function k0(){return this.each(E0)},append:function G0(t){var e="function"==typeof t?t:da(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function $0(t,e){var r="function"==typeof t?t:da(t),a=null==e?O0:"function"==typeof e?e:L(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),a.apply(this,arguments)||null)})},remove:function D0(){return this.each(N0)},clone:function z0(t){return this.select(t?F0:I0)},datum:function X0(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function q0(t,e,r){var s,f,a=H0(t+""),c=a.length;if(!(arguments.length<2)){for(l=e?W0:U0,null==r&&(r=!1),s=0;s<c;++s)this.each(l(a[s],e,r));return this}var l=this.node().__on;if(l)for(var p,h=0,d=l.length;h<d;++h)for(s=0,p=l[h];s<c;++s)if((f=a[s]).type===p.type&&f.name===p.name)return p.value},dispatch:function j0(t,e){return this.each(("function"==typeof e?Q0:Z0)(t,e))}};const Ai=Kc;function He(t){return"string"==typeof t?new Re([[document.querySelector(t)]],[document.documentElement]):new Re([[t]],gs)}function ps(){at.stopImmediatePropagation()}function Pi(){at.preventDefault(),at.stopImmediatePropagation()}function ga(t){var e=t.document.documentElement,r=He(t).on("dragstart.drag",Pi,!0);"onselectstart"in e?r.on("selectstart.drag",Pi,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function pa(t,e){var r=t.document.documentElement,a=He(t).on("dragstart.drag",null);e&&(a.on("click.drag",Pi,!0),setTimeout(function(){a.on("click.drag",null)},0)),"onselectstart"in r?a.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}function Ci(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function fr(t,e){var r=Object.create(t.prototype);for(var a in e)r[a]=e[a];return r}function zn(){}var Li=1/.7,Mi="\\s*([+-]?\\d+)\\s*",lr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",bn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",K0=/^#([0-9a-f]{3,8})$/,J0=new RegExp("^rgb\\("+[Mi,Mi,Mi]+"\\)$"),t_=new RegExp("^rgb\\("+[bn,bn,bn]+"\\)$"),e_=new RegExp("^rgba\\("+[Mi,Mi,Mi,lr]+"\\)$"),n_=new RegExp("^rgba\\("+[bn,bn,bn,lr]+"\\)$"),i_=new RegExp("^hsl\\("+[lr,bn,bn]+"\\)$"),r_=ne
vendor: 4,146 bytes, line 1
1w RegExp("^hsla\\("+[lr,bn,bn,lr]+"\\)$"),Jc={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 tf(){return this.rgb().formatHex()}function ef(){return this.rgb().formatRgb()}function Xn(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=K0.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?nf(e):3===r?new we(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?_a(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?_a(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=J0.exec(t))?new we(e[1],e[2],e[3],1):(e=t_.exec(t))?new we(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=e_.exec(t))?_a(e[1],e[2],e[3],e[4]):(e=n_.exec(t))?_a(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=i_.exec(t))?of(e[1],e[2]/100,e[3]/100,1):(e=r_.exec(t))?of(e[1],e[2]/100,e[3]/100,e[4]):Jc.hasOwnProperty(t)?nf(Jc[t]):"transparent"===t?new we(NaN,NaN,NaN,0):null}function nf(t){return new we(t>>16&255,t>>8&255,255&t,1)}function _a(t,e,r,a){return a<=0&&(t=e=r=NaN),new we(t,e,r,a)}function _s(t){return t instanceof zn||(t=Xn(t)),t?new we((t=t.rgb()).r,t.g,t.b,t.opacity):new we}function Ei(t,e,r,a){return 1===arguments.length?_s(t):new we(t,e,r,a??1)}function we(t,e,r,a){this.r=+t,this.g=+e,this.b=+r,this.opacity=+a}function rf(){return"#"+ys(this.r)+ys(this.g)+ys(this.b)}function af(){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))+", "+
vendor: 8,256 bytes, line 1
1Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function ys(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function of(t,e,r,a){return a<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Sn(t,e,r,a)}function sf(t){if(t instanceof Sn)return new Sn(t.h,t.s,t.l,t.opacity);if(t instanceof zn||(t=Xn(t)),!t)return new Sn;if(t instanceof Sn)return t;var e=(t=t.rgb()).r/255,r=t.g/255,a=t.b/255,s=Math.min(e,r,a),c=Math.max(e,r,a),f=NaN,l=c-s,h=(c+s)/2;return l?(f=e===c?(r-a)/l+6*(r<a):r===c?(a-e)/l+2:(e-r)/l+4,l/=h<.5?c+s:2-c-s,f*=60):l=h>0&&h<1?0:f,new Sn(f,l,h,t.opacity)}function ya(t,e,r,a){return 1===arguments.length?sf(t):new Sn(t,e,r,a??1)}function Sn(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}function ms(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}function uf(t,e,r,a,s){var c=t*t,f=c*t;return((1-3*t+3*c-f)*e+(4-6*c+3*f)*r+(1+3*t+3*c-3*f)*a+f*s)/6}function cf(t){var e=t.length-1;return function(r){var a=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),s=t[a],c=t[a+1];return uf((r-a/e)*e,a>0?t[a-1]:2*s-c,s,c,a<e-1?t[a+2]:2*c-s)}}function ff(t){var e=t.length;return function(r){var a=Math.floor(((r%=1)<0?++r:r)*e);return uf((r-a/e)*e,t[(a+e-1)%e],t[a%e],t[(a+1)%e],t[(a+2)%e])}}function ma(t){return function(){return t}}function lf(t,e){return function(r){return t+r*e}}function xa(t,e){var r=e-t;return r?lf(t,r>180||r<-180?r-360*Math.round(r/360):r):ma(isNaN(t)?e:t)}function _e(t,e){var r=e-t;return r?lf(t,r):ma(isNaN(t)?e:t)}Ci(zn,Xn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:tf,formatHex:tf,formatHsl:function a_(){return sf(this).formatHsl()},formatRgb:ef,toString:ef}),Ci(we,Ei,fr(zn,{brighter:function(t){return t=null==t?Li:Math.pow(Li,t),new we(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new we(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:rf,formatHex:rf,formatRgb:af,toString:af})),Ci(Sn,ya,fr(zn,{brighter:function(t){return t=null==t?Li:Math.pow(Li,t),new Sn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Sn(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,r=this.l,a=r+(r<.5?r:1-r)*e,s=2*r-a;return new we(ms(t>=240?t-240:t+120,s,a),ms(t,s,a),ms(t<120?t+240:t-120,s,a),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 hr=function t(e){var r=function s_(t){return 1==(t=+t)?_e:function(e,r){return r-e?function o_(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(a){return Math.pow(t+a*e,r)}}(e,r,t):ma(isNaN(e)?r:e)}}(e);function a(s,c){var f=r((s=Ei(s)).r,(c=Ei(c)).r),l=r(s.g,c.g),h=r(s.b,c.b),d=_e(s.opacity,c.opacity);return function(p){return s.r=f(p),s.g=l(p),s.b=h(p),s.opacity=d(p),s+""}}return a.gamma=t,a}(1);function hf(t){return function(e){var f,l,r=e.length,a=new Array(r),s=new Array(r),c=new Array(r);for(f=0;f<r;++f)l=Ei(e[f]),a[f]=l.r||0,s[f]=l.g||0,c[f]=l.b||0;return a=t(a),s=t(s),c=t(c),l.opacity=1,function(h){return l.r=a(h),l.g=s(h),l.b=c(h),l+""}}}var df=hf(cf),u_=hf(ff);function xs(t,e){e||(e=[]);var s,r=t?Math.min(e.length,t.length):0,a=e.slice();return function(c){for(s=0;s<r;++s)a[s]=t[s]*(1-c)+e[s]*c;return a}}function gf(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function c_(t,e){return(gf(e)?xs:pf)(t,e)}function pf(t,e){var f,r=e?e.length:0,a=t?Math.min(r,t.length):0,s=new Array(a),c=new Array(r);for(f=0;f<a;++f)s[f]=dr(t[f],e[f]);for(;f<r;++f)c[f]=e[f];return function(l){for(f=0;f<a;++f)c[f]=s[f](l);return c}}function _f(t,e){var r=new Date;return t=+t,e=+e,function(a){return r.setTime(t*(1-a)+e*a),r}}function Je(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function yf(t,e){var s,r={},a={};for(s in(null===t||"object"!=typeof t)&&(t={}),(null===e||"object"!=typeof e)&&(e={}),e)s in t?r[s]=dr(t[s],e[s]):a[s]=e[s];return function(c){for(s in r)a[s]=r[s](c);return a}}var vs=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ws=new RegExp(vs.source,"g");function bs(t,e){var a,s,c,r=vs.lastIndex=ws.lastIndex=0,f=-1,l=[],h=[];for(t+="",e+="";(a=vs.exec(t))&&(s=ws.exec(e));)(c=s.index)>r&&(c=e.slice(r,c),l[f]?l[f]+=c:l[++f]=c),(a=a[0])===(s=s[0])?l[f]?l[f]+=s:l[++f]=s:(l[++f]=null,h.push({i:f,x:Je(a,s)})),r=ws.lastIndex;return r<e.length&&(c=e.slice(r),l[f]?l[f]+=c:l[++f]=c),l.length<2?h[0]?function l_(t){return function(e){return t(e)+""}}(h[0].x):function f_(t){return function(){return t}}(e):(e=h.length,function(d){for(var y,p=0;p<e;++p)l[(y=h[p]).i]=y.x(d);return l.join("")})}function dr(t,e){var a,r=typeof e;return null==e||"boolean"===r?ma(e):("number"===r?Je:"string"===r?(a=Xn(e))?(e=a,hr):bs:e instanceof Xn?hr:e instanceof Date?_f:gf(e)?xs:Array.isArray(e)?pf:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?yf:Je)(t,e)}function Ss(){for(var e,t=at;e=t.sourceEvent;)t=e;return t}function va(t,e){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var a=r.createSVGPoint();return a.x=e.clientX,a.y=e.clientY,[(a=a.matrixTransform(t.getScreenCTM().inverse())).x,a.y]}var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}function gr(t,e,r){arguments.length<3&&(r=e,e=Ss().changedTouches);for(var c,a=0,s=e?e.length:0;a<s;++a)if((c=e[a]).identifier===r)return va(t,c);return null}function ii(t){var e=Ss();return e.changedTouches&&(e=e.changedTouches[0]),va(t,e)}var wa,yr,ki=0,pr=0,_r=0,ba=0,ri=0,Sa=0,mr="object"==typeof performance&&performance.now?performance:Date,xf="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Ri(){return ri||(xf(h_),ri=mr.now()+Sa)}function h_(){ri=0}function xr(){this._call=this._time=this._next=null}function Ta(t,e,r){var a=new xr;return a.restart(t,e,r),a}function vf(){Ri(),++ki;for(var e,t=wa;t;)(e=ri-t._time)>=0&&t._call.call(null,e),t=t._next;--ki}function wf(){ri=(ba=mr.now())+Sa,ki=pr=0;try{vf()}finally{ki=0,function g_(){for(var t,r,e=wa,a=1/0;e;)e._call?(a>e._time&&(a=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:wa=r);yr=t,Ts(a)}(),ri=0}}function d_(){var t=mr.now(),e=t-ba;e>1e3&&(Sa-=e,ba=t)}function Ts(t){ki||(pr&&(pr=clearTimeout(pr)),t-ri>24?(t<1/0&&(pr=setTimeout(wf,t-mr.now()-Sa)),_r&&(_r=clearInterval(_r))):(_r||(ba=mr.now(),_r=setInterval(d_,1e3)),ki=1,xf(wf)))}function As(t,e,r){var a=new xr;return a.restart(function(s){a.stop(),t(s+e)},e=null==e?0:+e,r),a}xr.prototype=Ta.prototype={constructor:xr,restart:function(t,e,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?Ri():+r)+(null==e?0:+e),!this._next&&yr!==this&&(yr?yr._next=this:wa=this,yr=this),this._call=t,this._time=r,Ts()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ts())}};var p_=T("start","end","cancel","interrupt"),__=[];function Ca(t,e,r,a,s,c){var f=t.__transition;if(f){if(r in f)return}else t.__transition={};!function y_(t,e,r){var s,a=t.__transition;function f(d){var p,y,_,x;if(1!==r.state)return h();for(p in a)if((x=a[p]).name===r.name){if(3===x.state)return As(f);4===x.state?(x.state=6,x.timer.stop(),x.on.call("interrupt",t,t.__data__,x.index,x.group),delete a[p]):+p<e&&(x.state=6,x.timer.stop(),x.on.call("cancel",t,t.__data__,x.index,x.group),delete a[p])}if(As(function(){3===r.state&&(r.state=4,r.timer.restart(l,r.delay,r.time),l(d))}),r.state=2,r.on.call("start",t,t.__data__,r.index,r.group),2===r.state){for(r.state=3,s=new Array(_=r.tween.length),p=0,y=-1;p<_;++p)(x=r.tween[p].value.call(t,t.__data__,r.index,r.group))&&(s[++y]=x);s.length=y+1}}function l(d){for(var p=d<r.duration?r.ease.call(null,d/r.duration):(r.timer.restart(h),r.state=5,1
vendor: 4,728 bytes, line 1
1),y=-1,_=s.length;++y<_;)s[y].call(t,p);5===r.state&&(r.on.call("end",t,t.__data__,r.index,r.group),h())}function h(){for(var d in r.state=6,r.timer.stop(),delete a[e],a)return;delete t.__transition}a[e]=r,r.timer=Ta(function c(d){r.state=1,r.timer.restart(f,r.delay,r.time),r.delay<=d&&f(d-r.delay)},0,r.time)}(t,r,{name:e,index:a,group:s,on:p_,tween:__,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:0})}function Ms(t,e){var r=un(t,e);if(r.state>0)throw new Error("too late; already scheduled");return r}function Vn(t,e){var r=un(t,e);if(r.state>3)throw new Error("too late; already running");return r}function un(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function ai(t,e){var a,s,f,r=t.__transition,c=!0;if(r){for(f in e=null==e?null:e+"",r)(a=r[f]).name===e?(s=a.state>2&&a.state<5,a.state=6,a.timer.stop(),a.on.call(s?"interrupt":"cancel",t,t.__data__,a.index,a.group),delete r[f]):c=!1;c&&delete t.__transition}}var vr,ks,Pf,La,Tf=180/Math.PI,Es={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Af(t,e,r,a,s,c){var f,l,h;return(f=Math.sqrt(t*t+e*e))&&(t/=f,e/=f),(h=t*r+e*a)&&(r-=t*h,a-=e*h),(l=Math.sqrt(r*r+a*a))&&(r/=l,a/=l,h/=l),t*a<e*r&&(t=-t,e=-e,h=-h,f=-f),{translateX:s,translateY:c,rotate:Math.atan2(e,t)*Tf,skewX:Math.atan(h)*Tf,scaleX:f,scaleY:l}}function Cf(t,e,r,a){function s(d){return d.length?d.pop()+" ":""}return function(d,p){var y=[],_=[];return d=t(d),p=t(p),function c(d,p,y,_,x,S){if(d!==y||p!==_){var b=x.push("translate(",null,e,null,r);S.push({i:b-4,x:Je(d,y)},{i:b-2,x:Je(p,_)})}else(y||_)&&x.push("translate("+y+e+_+r)}(d.translateX,d.translateY,p.translateX,p.translateY,y,_),function f(d,p,y,_){d!==p?(d-p>180?p+=360:p-d>180&&(d+=360),_.push({i:y.push(s(y)+"rotate(",null,a)-2,x:Je(d,p)})):p&&y.push(s(y)+"rotate("+p+a)}(d.rotate,p.rotate,y,_),function l(d,p,y,_){d!==p?_.push({i:y.push(s(y)+"skewX(",null,a)-2,x:Je(d,p)}):p&&y.push(s(y)+"skewX("+p+a)}(d.skewX,p.skewX,y,_),function h(d,p,y,_,x,S){if(d!==y||p!==_){var b=x.push(s(x)+"scale(",null,",",null,")");S.push({i:b-4,x:Je(d,y)},{i:b-2,x:Je(p,_)})}else(1!==y||1!==_)&&x.push(s(x)+"scale("+y+","+_+")")}(d.scaleX,d.scaleY,p.scaleX,p.scaleY,y,_),d=p=null,function(x){for(var A,S=-1,b=_.length;++S<b;)y[(A=_[S]).i]=A.x(x);return y.join("")}}}var Lf=Cf(function x_(t){return"none"===t?Es:(vr||(vr=document.createElement("DIV"),ks=document.documentElement,Pf=document.defaultView),vr.style.transform=t,t=Pf.getComputedStyle(ks.appendChild(vr),null).getPropertyValue("transform"),ks.removeChild(vr),Af(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),Mf=Cf(function v_(t){return null!=t&&(La||(La=document.createElementNS("http://www.w3.org/2000/svg","g")),La.setAttribute("transform",t),t=La.transform.baseVal.consolidate())?Af((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Es},", ",")",")");function w_(t,e){var r,a;return function(){var s=Vn(this,t),c=s.tween;if(c!==r)for(var f=0,l=(a=r=c).length;f<l;++f)if(a[f].name===e){(a=a.slice()).splice(f,1);break}s.tween=a}}function b_(t,e,r){var a,s;if("function"!=typeof r)throw new Error;return function(){var c=Vn(this,t),f=c.tween;if(f!==a){s=(a=f).slice();for(var l={name:e,value:r},h=0,d=s.length;h<d;++h)if(s[h].name===e){s[h]=l;break}h===d&&s.push(l)}c.tween=s}}function Rs(t,e,r){var a=t._id;return t.each(function(){var s=Vn(this,a);(s.value||(s.value={}))[e]=r.apply(this,arguments)}),function(s){return un(s,a).value[e]}}function Ef(t,e){var r;return("number"==typeof e?Je:e instanceof Xn?hr:(r=Xn(e))?(e=r,hr):bs)(t,e)}function T_(t){return function(){this.removeAttribute(t)}}function A_(t){return function(){this.removeAttributeNS(t.space,t.local)}}function P_(t,e,r){var a,c,s=r+"";return function(){var f=this.getAttribute(t);return f===s?null:f===a?c:c=e(a=f,r)}}function C_(t,e,r){var a,c,s=r+"";return function(){var f=this.getAttributeNS(t.space,t.local);return f===s?null:f===a?c:c=e(a=f,r)}}function L_(t,e,r){var a,s,c;return function(){var f,h,l=r(this);return null==l?void this.removeAttribute(t):(f=this.getAttribute(t))===(h=l+"")?null:f===a&&h===s?c:(s=h,c=e(a=f,l))}}function M_(t,e,r){var a,s,c;return function(){var f,h,l=r(this);return null==l?void this.removeAttributeNS(t.space,t.local):(f=this.getAttributeNS(t.space,t.local))===(h=l+"")?null:f===a&&h===s?c:(s=h,c=e(a=f,l))}}function k_(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function R_(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function V_(t,e){var r,a;function s(){var c=e.apply(this,arguments);return c!==a&&(r=(a=c)&&R_(t,c)),r}return s._value=e,s}function G_(t,e){var r,a;function s(){var c=e.apply(this,arguments);
vendor: 4,418 bytes, line 1
1return c!==a&&(r=(a=c)&&k_(t,c)),r}return s._value=e,s}function $_(t,e){return function(){Ms(this,t).delay=+e.apply(this,arguments)}}function N_(t,e){return e=+e,function(){Ms(this,t).delay=e}}function I_(t,e){return function(){Vn(this,t).duration=+e.apply(this,arguments)}}function F_(t,e){return e=+e,function(){Vn(this,t).duration=e}}function X_(t,e){if("function"!=typeof e)throw new Error;return function(){Vn(this,t).ease=e}}function W_(t,e,r){var a,s,c=function U_(t){return(t+"").trim().split(/^|\s+/).every(function(e){var r=e.indexOf(".");return r>=0&&(e=e.slice(0,r)),!e||"start"===e})}(e)?Ms:Vn;return function(){var f=c(this,t),l=f.on;l!==a&&(s=(a=l).copy()).on(e,r),f.on=s}}var J_=Ai.prototype.constructor;function kf(t){return function(){this.style.removeProperty(t)}}function oy(t,e,r){return function(a){this.style.setProperty(t,e.call(this,a),r)}}function sy(t,e,r){var a,s;function c(){var f=e.apply(this,arguments);return f!==s&&(a=(s=f)&&oy(t,f,r)),a}return c._value=e,c}function hy(t){return function(e){this.textContent=t.call(this,e)}}function dy(t){var e,r;function a(){var s=t.apply(this,arguments);return s!==r&&(e=(r=s)&&hy(s)),e}return a._value=t,a}var yy=0;function Tn(t,e,r,a){this._groups=t,this._parents=e,this._name=r,this._id=a}function Rf(t){return Ai().transition(t)}function Vf(){return++yy}var Vi=Ai.prototype;function my(t){return t*t*t}function xy(t){return--t*t*t+1}function Vs(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}Tn.prototype=Rf.prototype={constructor:Tn,select:function j_(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=L(t));for(var a=this._groups,s=a.length,c=new Array(s),f=0;f<s;++f)for(var p,y,l=a[f],h=l.length,d=c[f]=new Array(h),_=0;_<h;++_)(p=l[_])&&(y=t.call(p,p.__data__,_,l))&&("__data__"in p&&(y.__data__=p.__data__),d[_]=y,Ca(d[_],e,r,_,d,un(p,r)));return new Tn(c,this._parents,e,r)},selectAll:function K_(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=N(t));for(var a=this._groups,s=a.length,c=[],f=[],l=0;l<s;++l)for(var p,h=a[l],d=h.length,y=0;y<d;++y)if(p=h[y]){for(var x,_=t.call(p,p.__data__,y,h),S=un(p,r),b=0,A=_.length;b<A;++b)(x=_[b])&&Ca(x,e,r,b,_,S);c.push(_),f.push(p)}return new Tn(c,f,e,r)},filter:function B_(t){"function"!=typeof t&&(t=O(t));for(var e=this._groups,r=e.length,a=new Array(r),s=0;s<r;++s)for(var h,c=e[s],f=c.length,l=a[s]=[],d=0;d<f;++d)(h=c[d])&&t.call(h,h.__data__,d,c)&&l.push(h);return new Tn(a,this._parents,this._name,this._id)},merge:function H_(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,a=e.length,c=Math.min(a,r.length),f=new Array(a),l=0;l<c;++l)for(var _,h=e[l],d=r[l],p=h.length,y=f[l]=new Array(p),x=0;x<p;++x)(_=h[x]||d[x])&&(y[x]=_);for(;l<a;++l)f[l]=e[l];return new Tn(f,this._parents,this._name,this._id)},selection:function ty(){return new J_(this._groups,this._parents)},transition:function py(){for(var t=this._name,e=this._id,r=Vf(),a=this._groups,s=a.length,c=0;c<s;++c)for(var h,f=a[c],l=f.length,d=0;d<l;++d)if(h=f[d]){var p=un(h,e);Ca(h,t,r,d,f,{time:p.time+p.delay+p.duration,delay:0,duration:p.duration,ease:p.ease})}return new Tn(a,this._parents,t,r)},call:Vi.call,nodes:Vi.nodes,node:Vi.node,size:Vi.size,empty:Vi.empty,each:Vi.each,on:function q_(t,e){var r=this._id;return arguments.length<2?un(this.node(),r).on.on(t):this.each(W_(r,t,e))},attr:function E_(t,e){var r=Ce(t),a="transform"===r?Mf:Ef;return this.attrTween(t,"function"==typeof e?(r.local?M_:L_)(r,a,Rs(this,"attr."+t,e)):null==e?(r.local?A_:T_)(r):(r.local?C_:P_)(r,a,e))},attrTween:function O_(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 a=Ce(t);return this.tween(r,(a.local?V_:G_)(a,e))},style:function ay(t,e,r){var a="transform"==(t+="")?Lf:Ef;return null==e?this.styleTween(t,function ey(t,e){var r,a,s;return function(){var c=ei(this,t),f=(this.style.removeProperty(t),ei(this,t));return c===f?null:c===r&&f===a?s:s=e(r=c,a=f)}}(t,a)).on("end.style."+t,kf(t)):"function"==typeof e?this.styleTween(t,function iy(t,e,r){var a,s,c;return function(){var f=ei(this,t),l=r(this),h=l+"";return null==l&&(this.style.removeProperty(t),h=l=ei(this,t)),f===h?null:f===a&&h===s?c:(s=h,c=e(a=f,l))}}(t,a,Rs(this,"style."+t,e))).each(function ry(t,e){var r,a,s,l,c="style."+e,f="end."+c;return function(){var h=Vn(this,t),d=h.on,p=null==h.value[c]?l||(l=kf(e)):void 0;
1(d!==r||s!==p)&&(a=(r=d).copy()).on(f,s=p),h.on=a}}(this._id,t)):this.styleTween(t,function ny(t,e,r){var a,c,s=r+"";return function(){var f=ei(this,t);return f===s?null:f===a?c:c=e(a=f,r)}}(t,a,e),r).on("end.style."+t,null)},styleTween:function uy(t,e,r){var a="style."+(t+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(null==e)return this.tween(a,null);if("function"!=typeof e)throw new Error;return this.tween(a,sy(t,e,r??""))},text:function ly(t){return this.tween("text","function"==typeof t?function fy(t){return function(){var e=t(this);this.textContent=e??""}}(Rs(this,"text",t)):function cy(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function gy(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,dy(t))},remove:function Q_(){return this.on("end.remove",function Z_(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function S_(t,e){var r=this._id;if(t+="",arguments.length<2){for(var f,a=un(this.node(),r).tween,s=0,c=a.length;s<c;++s)if((f=a[s]).name===t)return f.value;return null}return this.each((null==e?w_:b_)(r,t,e))},delay:function D_(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?$_:N_)(e,t)):un(this.node(),e).delay},duration:function z_(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?I_:F_)(e,t)):un(this.node(),e).duration},ease:function Y_(t){var e=this._id;return arguments.length?this.each(X_(e,t)):un(this.node(),e).ease},end:function _y(){var t,e,r=this,a=r._id,s=r.size();return new Promise(function(c,f){var l={value:f},h={value:function(){0==--s&&c()}};r.each(function(){var d=Vn(this,a),p=d.on;p!==t&&((e=(t=p).copy())._.cancel.push(l),e._.interrupt.push(l),e._.end.push(h)),d.on=e})})}};var Gs={time:null,delay:0,duration:250,ease:Vs};function vy(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))return Gs.time=Ri(),Gs;return r}Ai.prototype.interrupt=function m_(t){return this.each(function(){ai(this,t)})},Ai.prototype.transition=function wy(t){var e,r;t instanceof Tn?(e=t._id,t=t._name):(e=Vf(),(r=Gs).time=Ri(),t=null==t?null:t+"");for(var a=this._groups,s=a.length,c=0;c<s;++c)for(var h,f=a[c],l=f.length,d=0;d<l;++d)(h=f[d])&&Ca(h,t,e,d,f,r||vy(h,e));return new Tn(a,this._parents,t,e)};var by=[null];function Sy(t,e){var a,s,r=t.__transition;if(r)for(s in e=null==e?null:e+"",r)if((a=r[s]).state>1&&a.name===e)return new Tn([[t]],by,e,+s);return null}function Os(t){return function(){return t}}function Ty(t,e,r){this.target=t,this.type=e,this.selection=r}function Gf(){at.stopImmediatePropagation()}function $s(){at.preventDefault(),at.stopImmediatePropagation()}var Of={name:"drag"},Ns={name:"space"},Gi={name:"handle"},Oi={name:"center"};function $f(t){return[+t[0],+t[1]]}function Ds(t){return[$f(t[0]),$f(t[1])]}function Ay(t){return function(e){return gr(e,at.touches,t)}}var Ma={name:"x",handles:["w","e"].map(wr),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Ea={name:"y",handles:["n","s"].map(wr),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},Py={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(wr),input:function(t){return null==t?null:Ds(t)},output:function(t){return t}},Gn={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Nf={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Df={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Cy={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Ly={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function wr(t){return{type:t}}function My(){return!at.ctrlKey&&!at.button}function Ey(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function ky(){return navigator.maxTouchPoints||"ontouchstart"in this}function Is(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Ry(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Vy(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function Gy(){return Fs(Ma)}function Oy(){return Fs(Ea)}function $y(){return Fs(Py)}function Fs(t){var l,e=Ey,r=My,a=ky,s=!0,c=T("start","brush","end"),f=6;
1function h(A){var C=A.property("__brush",b).selectAll(".overlay").data([wr("overlay")]);C.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Gn.overlay).merge(C).each(function(){var M=Is(this).extent;He(this).attr("x",M[0][0]).attr("y",M[0][1]).attr("width",M[1][0]-M[0][0]).attr("height",M[1][1]-M[0][1])}),A.selectAll(".selection").data([wr("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Gn.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var V=A.selectAll(".handle").data(t.handles,function(M){return M.type});V.exit().remove(),V.enter().append("rect").attr("class",function(M){return"handle handle--"+M.type}).attr("cursor",function(M){return Gn[M.type]}),A.each(d).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",_).filter(a).on("touchstart.brush",_).on("touchmove.brush",x).on("touchend.brush touchcancel.brush",S).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(){var A=He(this),C=Is(this).selection;C?(A.selectAll(".selection").style("display",null).attr("x",C[0][0]).attr("y",C[0][1]).attr("width",C[1][0]-C[0][0]).attr("height",C[1][1]-C[0][1]),A.selectAll(".handle").style("display",null).attr("x",function(V){return"e"===V.type[V.type.length-1]?C[1][0]-f/2:C[0][0]-f/2}).attr("y",function(V){return"s"===V.type[0]?C[1][1]-f/2:C[0][1]-f/2}).attr("width",function(V){return"n"===V.type||"s"===V.type?C[1][0]-C[0][0]+f:f}).attr("height",function(V){return"e"===V.type||"w"===V.type?C[1][1]-C[0][1]+f:f})):A.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function p(A,C,V){var M=A.__brush.emitter;return!M||V&&M.clean?new y(A,C,V):M}function y(A,C,V){this.that=A,this.args=C,this.state=A.__brush,this.active=0,this.clean=V}function _(){if((!l||at.touches)&&r.apply(this,arguments)){var W,q,G,H,Y,K,ot,lt,re,zt,fe,A=this,C=at.target.__data__.type,V="selection"===(s&&at.metaKey?C="overlay":C)?Of:s&&at.altKey?Oi:Gi,M=t===Ea?null:Cy[C],R=t===Ma?null:Ly[C],z=Is(A),B=z.extent,X=z.selection,j=B[0][0],U=B[0][1],J=B[1][0],ct=B[1][1],St=0,Tt=0,Kt=M&&R&&s&&at.shiftKey,an=at.touches?Ay(at.changedTouches[0].identifier):ii,pn=an(A),_n=pn,rt=p(A,arguments,!0).beforestart();"overlay"===C?(X&&(re=!0),z.selection=X=[[W=t===Ea?j:pn[0],G=t===Ma?U:pn[1]],[Y=t===Ea?J:W,ot=t===Ma?ct:G]]):(W=X[0][0],G=X[0][1],Y=X[1][0],ot=X[1][1]),q=W,H=G,K=Y,lt=ot;var Pt=He(A).attr("pointer-events","none"),Ot=Pt.selectAll(".overlay").attr("cursor",Gn[C]);if(at.touches)rt.moved=Se,rt.ended=ke;else{var tt=He(at.view).on("mousemove.brush",Se,!0).on("mouseup.brush",ke,!0);s&&tt.on("keydown.brush",ze,!0).on("keyup.brush",Fn,!0),ga(at.view)}Gf(),ai(A),d.call(A),rt.start()}function Se(){var Xe=an(A);Kt&&!zt&&!fe&&(Math.abs(Xe[0]-_n[0])>Math.abs(Xe[1]-_n[1])?fe=!0:zt=!0),_n=Xe,re=!0,$s(),Xt()}function Xt(){var Xe;switch(St=_n[0]-pn[0],Tt=_n[1]-pn[1],V){case Ns:case Of:M&&(St=Math.max(j-W,Math.min(J-Y,St)),q=W+St,K=Y+St),R&&(Tt=Math.max(U-G,Math.min(ct-ot,Tt)),H=G+Tt,lt=ot+Tt);break;case Gi:M<0?(St=Math.max(j-W,Math.min(J-W,St)),q=W+St,K=Y):M>0&&(St=Math.max(j-Y,Math.min(J-Y,St)),q=W,K=Y+St),R<0?(Tt=Math.max(U-G,Math.min(ct-G,Tt)),H=G+Tt,lt=ot):R>0&&(Tt=Math.max(U-ot,Math.min(ct-ot,Tt)),H=G,lt=ot+Tt);break;case Oi:M&&(q=Math.max(j,Math.min(J,W-St*M)),K=Math.max(j,Math.min(J,Y+St*M))),R&&(H=Math.max(U,Math.min(ct,G-Tt*R)),lt=Math.max(U,Math.min(ct,ot+Tt*R)))}K<q&&(M*=-1,Xe=W,W=Y,Y=Xe,Xe=q,q=K,K=Xe,C in Nf&&Ot.attr("cursor",Gn[C=Nf[C]])),lt<H&&(R*=-1,Xe=G,G=ot,ot=Xe,Xe=H,H=lt,lt=Xe,C in Df&&Ot.attr("cursor",Gn[C=Df[C]])),z.selection&&(X=z.selection),zt&&(q=X[0][0],K=X[1][0]),fe&&(H=X[0][1],lt=X[1][1]),(X[0][0]!==q||X[0][1]!==H||X[1][0]!==K||X[1][1]!==lt)&&(z.selection=[[q,H],[K,lt]],d.call(A),rt.brush())}function ke(){if(Gf(),at.touches){if(at.touches.length)return;l&&clearTimeout(l),l=setTimeout(function(){l=null},500)}else pa(at.view,re),tt.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Pt.attr("pointer-events","all"),Ot.attr("cursor",Gn.overlay),z.selection&&(X=z.selection),Ry(X)&&(z.selection=null,d.call(A)),rt.end()}function ze(){switch(at.keyCode){case 16:Kt=M&&R;break;case 18:V===Gi&&(M&&(Y=K-St*M,W=q+St*M),R&&(ot=lt-Tt*R,G=H+Tt*R),V=Oi,Xt());break;case 32:(V===Gi||V===Oi)&&(M<0?Y=K-St:M>0&&(W=q-St),R<0?ot=lt-Tt:R>0&&(G=H-Tt),V=Ns,Ot.attr("cursor",Gn.selection),Xt());break;default:return}$s()}function Fn(){switch(at.keyCode){case 16:Kt&&(zt=fe=Kt=!1,Xt());break;case 18:V===Oi&&(M<0?Y=K:M>0&&(W=q),R<0?ot=lt:R>0&&(G=H),V=Gi,Xt());break;case 32:V===Ns&&(at.altKey?(M&&(Y=K-St*M,W=q+St*M),R&&(ot=lt-Tt*R,G=H+Tt*R),V=Oi):(M<0?Y=K:M>0&&(W=q),R<0?ot=lt:R>0&&(G=H),V=Gi),Ot.attr("cursor",Gn[C]),Xt());break;default:return}$s()}}function x(){p(this,arguments).moved()}function S(){p(this,arguments).ended()}function b(){var A=this.__brush||{selection:null};return A.extent=Ds(e.apply(this,arguments)),A.dim=t,A}return h.move=function(A,C){A.selection?A.on("start.brush",function(){p(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){p(this,arguments).end()}).tween("brush",function(){var V=this,M=V.__brush,R=p(V,arguments),z=M.selection,B=t.input("function"==typeof C?C.apply(this,arguments):C,M.extent),X=dr(z,B);function j(W){M.selection=1===W&&null===B?null:X(W),d.call(V),R.brush()}return null!==z&&null!==B?j:j(1)}):A.each(function(){var V=this,M=arguments,R=V.__brush,z=t.input("function"==typeof C?C.apply(V,M):C,R.extent),B=p(V,M).beforestart();ai(V),R.selection=null===z?null:z,d.call(V),B.start().brush().end()})},h.clear=function(A){h.move(A,null)},y.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit
1("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(A){cr(new Ty(h,A,t.output(this.state.selection)),c.apply,c,[A,this.that,this.args])}},h.extent=function(A){return arguments.length?(e="function"==typeof A?A:Os(Ds(A)),h):e},h.filter=function(A){return arguments.length?(r="function"==typeof A?A:Os(!!A),h):r},h.touchable=function(A){return arguments.length?(a="function"==typeof A?A:Os(!!A),h):a},h.handleSize=function(A){return arguments.length?(f=+A,h):f},h.keyModifiers=function(A){return arguments.length?(s=!!A,h):s},h.on=function(){var A=c.on.apply(c,arguments);return A===c?h:A},h}var If=Math.cos,Ff=Math.sin,zf=Math.PI,ka=zf/2,Xf=2*zf,Yf=Math.max;function Ny(t){return function(e,r){return t(e.source.value+e.target.value,r.source.value+r.target.value)}}function Dy(){var t=0,e=null,r=null,a=null;function s(c){var x,S,b,A,C,V,f=c.length,l=[],h=(0,Q.w6)(f),d=[],p=[],y=p.groups=new Array(f),_=new Array(f*f);for(x=0,C=-1;++C<f;){for(S=0,V=-1;++V<f;)S+=c[C][V];l.push(S),d.push((0,Q.w6)(f)),x+=S}for(e&&h.sort(function(q,U){return e(l[q],l[U])}),r&&d.forEach(function(q,U){q.sort(function(G,H){return r(c[U][G],c[U][H])})}),A=(x=Yf(0,Xf-t*f)/x)?t:Xf/f,S=0,C=-1;++C<f;){for(b=S,V=-1;++V<f;){var M=h[C],R=d[M][V],z=c[M][R],B=S,X=S+=z*x;_[R*f+M]={index:M,subindex:R,startAngle:B,endAngle:X,value:z}}y[M]={index:M,startAngle:b,endAngle:S,value:l[M]},S+=A}for(C=-1;++C<f;)for(V=C-1;++V<f;){var j=_[V*f+C],W=_[C*f+V];(j.value||W.value)&&p.push(j.value<W.value?{source:W,target:j}:{source:j,target:W})}return a?p.sort(a):p}return s.padAngle=function(c){return arguments.length?(t=Yf(0,c),s):t},s.sortGroups=function(c){return arguments.length?(e=c,s):e},s.sortSubgroups=function(c){return arguments.length?(r=c,s):r},s.sortChords=function(c){return arguments.length?(null==c?a=null:(a=Ny(c))._=c,s):a&&a._},s}var Iy=Array.prototype.slice;function zs(t){return function(){return t}}var $i=qt(73066);function Fy(t){return t.source}function zy(t){return t.target}function Xy(t){return t.radius}function Yy(t){return t.startAngle}function By(t){return t.endAngle}function Hy(){var t=Fy,e=zy,r=Xy,a=Yy,s=By,c=null;function f(){var l,h=Iy.call(arguments),d=t.apply(this,h),p=e.apply(this,h),y=+r.apply(this,(h[0]=d,h)),_=a.apply(this,h)-ka,x=s.apply(this,h)-ka,S=y*If(_),b=y*Ff(_),A=+r.apply(this,(h[0]=p,h)),C=a.apply(this,h)-ka,V=s.apply(this,h)-ka;if(c||(c=l=(0,$i.Z)()),c.moveTo(S,b),c.arc(0,0,y,_,x),(_!==C||x!==V)&&(c.quadraticCurveTo(0,0,A*If(C),A*Ff(C)),c.arc(0,0,A,C,V)),c.quadraticCurveTo(0,0,S,b),c.closePath(),l)return c=null,l+""||null}return f.radius=function(l){return arguments.length?(r="function"==typeof l?l:zs(+l),f):r},f.startAngle=function(l){return arguments.length?(a="function"==typeof l?l:zs(+l),f):a},f.endAngle=function(l){return arguments.length?(s="function"==typeof l?l:zs(+l),f):s},f.source=function(l){return arguments.length?(t=l,f):t},f.target=function(l){return arguments.length?(e=l,f):e},f.context=function(l){return arguments.length?(c=l??null,f):c},f}var tn="$";function Ra(){}function Bf(t,e){var r=new Ra;if(t instanceof Ra)t.each(function(l,h){r.set(h,l)});else if(Array.isArray(t)){var c,a=-1,s=t.length;if(null==e)for(;++a<s;)r.set(a,t[a]);else for(;++a<s;)r.set(e(c=t[a],a,t),c)}else if(t)for(var f in t)r.set(f,t[f]);return r}Ra.prototype=Bf.prototype={constructor:Ra,has:function(t){return tn+t in this},get:function(t){return this[tn+t]},set:function(t,e){return this[tn+t]=e,this},remove:function(t){var e=tn+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===tn&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===tn&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===tn&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===tn&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===tn&&++t;return t},empty:function(){for(var t in this)if(t[0]===tn)return!1;return!0},each:function(t){for(var e in this)e[0]===tn&&t(this[e],e.slice(1),this)}};const Yn=Bf;function Uy(){var r,a,s,t=[],e=[];function c(l,h,d,p){if(h>=t.length)return null!=r&&l.sort(r),null!=a?a(l):l;for(var S,b,C,y=-1,_=l.length,x=t[h++],A=Yn(),V=d();++y<_;)(C=A.get(S=x(b=l[y])+""))?C.push(b):A.set(S,[b]);return A.each(function(M,R){p(V,R,c(M,h,d,p))}),V}function f(l,h){if(++h>t.length)return l;var d,p=e[h-1];return null!=a&&h>=t.length?d=l.entries():(d=[],l.each(function(y,_){d.push({key:_,values:f(y,h)})})),null!=p?d.sort(function(y,_){return p(y.key,_.key)}):d}return s={object:function(l){return c(l,0,Wy,qy)},map:function(l){return c(l,0,Hf,Uf)},entries:function(l){return f(c(l,0,Hf,Uf),0)},key:function(l){return t.push(l),s},sortKeys:function(l){return e[t.length-1]=l,s},sortValues:function(l){return r=l,s},rollup:function(l){return a=l,s}}}function Wy(){return{}}function qy(t,e,r){t[e]=r}function Hf(){return Yn()}function Uf(t,e,r){t.set(e,r)}function Va(){}var oi=Yn.prototype;function Wf(t,e){var r=new Va;if(t instanceof Va)t.each(function(c){r.add(c)});else if(t){var a=-1,s=t.length;if(null==e)for(;++a<s;)r.add(t[a]);else for(;++a<s;)r.add(e(t[a],a,t))}return r}Va.prototype=Wf.prototype={constructor:Va,has:oi.has,add:function(t){return this[tn+(t+="")]=t,this},remove:oi.remove,clear:oi.clear,values:oi.keys,size:oi.size,empty:oi.empty,each:oi.each};const Zy=Wf;function Qy(t){var e=[];for(var r in t)e.push(r);return e}function jy(t){var e=[];for(var r in t)e.push(t[r]);return e}function Ky(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e}var qf=Math.PI/180,Zf=180/Math.PI,Jf=4/29,Ni=6/29,tl=3*Ni*Ni;function el(t){if(t instanceof cn)return new cn(t.l,t.a,t.b,t.opacity);if(t instanceof An)return il(t);t instanceof we||(t=_s(t));var c,f,e=Hs(t.r),r=Hs(t.g),a=Hs(t.b),s=Xs((.2225045*e+.7168786*r+.0606169*a)/1);return e===r&&r===a?c=f=s:(c=Xs((.4360747*e+.3850649*r+.1430804*a)/.96422),f=Xs((.0139322*e+.0971045*r+.7141733*a)/.82521)),new cn(116*s-16,500*(c-s),200*(s-f),t.opacity)}function tm(t,e){return new cn(t,0,0,e??1)}function Oa(t,e,r,a){return 1===arguments.length?el(t):new cn(t,e,r,a??1)}function cn(t,e,r,a){this.l=+t,this.a=+e,this.b=+r,this.opacity=+a}function Xs(t){return t>.008856451679035631?Math.pow(t,1/3):t/tl+Jf}function Ys(t){return t>Ni?t*t*t:tl*(t-Jf)}
1function Bs(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Hs(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function nl(t){if(t instanceof An)return new An(t.h,t.c,t.l,t.opacity);if(t instanceof cn||(t=el(t)),0===t.a&&0===t.b)return new An(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Zf;return new An(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function em(t,e,r,a){return 1===arguments.length?nl(t):new An(r,e,t,a??1)}function $a(t,e,r,a){return 1===arguments.length?nl(t):new An(t,e,r,a??1)}function An(t,e,r,a){this.h=+t,this.c=+e,this.l=+r,this.opacity=+a}function il(t){if(isNaN(t.h))return new cn(t.l,0,0,t.opacity);var e=t.h*qf;return new cn(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Ci(cn,Oa,fr(zn,{brighter:function(t){return new cn(this.l+18*(t??1),this.a,this.b,this.opacity)},darker:function(t){return new cn(this.l-18*(t??1),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return new we(Bs(3.1338561*(e=.96422*Ys(e))-1.6168667*(t=1*Ys(t))-.4906146*(r=.82521*Ys(r))),Bs(-.9787684*e+1.9161415*t+.033454*r),Bs(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),Ci(An,$a,fr(zn,{brighter:function(t){return new An(this.h,this.c,this.l+18*(t??1),this.opacity)},darker:function(t){return new An(this.h,this.c,this.l-18*(t??1),this.opacity)},rgb:function(){return il(this).rgb()}}));var Us=1.78277,Ws=-.29227,Na=-.90649,br=1.97294,al=br*Na,ol=br*Us,sl=Us*Ws- -.14861*Na;function nm(t){if(t instanceof si)return new si(t.h,t.s,t.l,t.opacity);t instanceof we||(t=_s(t));var r=t.g/255,a=t.b/255,s=(sl*a+al*(t.r/255)-ol*r)/(sl+al-ol),c=a-s,f=(br*(r-s)-Ws*c)/Na,l=Math.sqrt(f*f+c*c)/(br*s*(1-s)),h=l?Math.atan2(f,c)*Zf-120:NaN;return new si(h<0?h+360:h,l,s,t.opacity)}function fn(t,e,r,a){return 1===arguments.length?nm(t):new si(t,e,r,a??1)}function si(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}Ci(si,fn,fr(zn,{brighter:function(t){return t=null==t?Li:Math.pow(Li,t),new si(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new si(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*qf,e=+this.l,r=isNaN(this.s)?0:this.s*e*(1-e),a=Math.cos(t),s=Math.sin(t);return new we(255*(e+r*(-.14861*a+Us*s)),255*(e+r*(Ws*a+Na*s)),255*(e+r*(br*a)),this.opacity)}}));var ul=Array.prototype.slice;function rm(t,e){return t-e}function Bn(t){return function(){return t}}function om(t,e){for(var s,r=-1,a=e.length;++r<a;)if(s=sm(t,e[r]))return s;return 0}function sm(t,e){for(var r=e[0],a=e[1],s=-1,c=0,f=t.length,l=f-1;c<f;l=c++){var h=t[c],d=h[0],p=h[1],y=t[l],_=y[0],x=y[1];if(um(h,y,e))return 0;p>a!=x>a&&r<(_-d)*(a-p)/(x-p)+d&&(s=-s)}return s}function um(t,e,r){var a;return function cm(t,e,r){return(e[0]-t[0])*(r[1]-t[1])==(r[0]-t[0])*(e[1]-t[1])}(t,e,r)&&function fm(t,e,r){return t<=e&&e<=r||r<=e&&e<=t}(t[a=+(t[0]===e[0])],r[a],e[a])}function lm(){}var On=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function cl(){var t=1,e=1,r=Q._X,a=h;function s(d){var p=r(d);if(Array.isArray(p))p=p.slice().sort(rm);else{var y=(0,Q.We)(d),_=y[0],x=y[1];p=(0,Q.ly)(_,x,p),p=(0,Q.w6)(Math.floor(_/p)*p,Math.floor(x/p)*p,p)}return p.map(function(S){return c(d,S)})}function c(d,p){var y=[],_=[];return function f(d,p,y){var S,b,C,V,M,_=new Array,x=new Array;for(S=b=-1,On[(C=d[0]>=p)<<1].forEach(R);++S<t-1;)On[C|(C=d[S+1]>=p)<<1].forEach(R);for(On[C<<0].forEach(R);++b<e-1;){for(S=-1,On[(C=d[b*t+t]>=p)<<1|(V=d[b*t]>=p)<<2].forEach(R);++S<t-1;)M=V,On[C|(C=d[b*t+t+S+1]>=p)<<1|(V=d[b*t+S+1]>=p)<<2|M<<3].forEach(R);On[C|V<<3].forEach(R)}for(S=-1,On[(V=d[b*t]>=p)<<2].forEach(R);++S<t-1;)M=V,On[(V=d[b*t+S+1]>=p)<<2|M<<3].forEach(R);function R(z){var q,U,B=[z[0][0]+S,z[0][1]+b],X=[z[1][0]+S,z[1][1]+b],j=l(B),W=l(X);(q=x[j])?(U=_[W])?(delete x[q.end],delete _[U.start],q===U?(q.ring.push(X),y(q.ring)):_[q.start]=x[U.end]={start:q.start,end:U.end,ring:q.ring.concat(U.ring)}):(delete x[q.end],q.ring.push(X),x[q.end=W]=q):(q=_[W])?(U=x[j])?(delete _[q.start],delete x[U.end],q===U?(q.ring.push(X),y(q.ring)):_[U.start]=x[q.end]={start:U.start,end:q.end,ring:U.ring.concat(q.ring)}):(delete _[q.start],q.ring.unshift(B),_[q.start=j]=q):_[j]=x[W]={start:j,end:W,ring:[B,X]}}On[V<<3].forEach(R)}(d,p,function(x){a(x,d,p),function am(t){for(var e=0,r=t.length,a=t[r-1][1]*t[0][0]-t[r-1][0]*t[0][1];++e<r;)a+=t[e-1][1]*t[e][0]-t[e-1][0]*t[e][1];return a}(x)>0?y.push([x]):_.push(x)}),_.forEach(function(x){for(var A,S=0,b=y.length;S<b;++S)if(-1!==om((A=y[S])[0],x))return void A.push(x)}),{type:"MultiPolygon",value:p,coordinates:y}}function l(d){return 2*d[0]+d[1]*(t+1)*4}
1function h(d,p,y){d.forEach(function(_){var C,x=_[0],S=_[1],b=0|x,A=0|S,V=p[A*t+b];x>0&&x<t&&b===x&&(_[0]=x+(y-(C=p[A*t+b-1]))/(V-C)-.5),S>0&&S<e&&A===S&&(_[1]=S+(y-(C=p[(A-1)*t+b]))/(V-C)-.5)})}return s.contour=c,s.size=function(d){if(!arguments.length)return[t,e];var p=Math.ceil(d[0]),y=Math.ceil(d[1]);if(!(p>0&&y>0))throw new Error("invalid size");return t=p,e=y,s},s.thresholds=function(d){return arguments.length?(r="function"==typeof d?d:Array.isArray(d)?Bn(ul.call(d)):Bn(d),s):r},s.smooth=function(d){return arguments.length?(a=d?h:lm,s):a===h},s}function qs(t,e,r){for(var a=t.width,s=t.height,c=1+(r<<1),f=0;f<s;++f)for(var l=0,h=0;l<a+r;++l)l<a&&(h+=t.data[l+f*a]),l>=r&&(l>=c&&(h-=t.data[l-c+f*a]),e.data[l-r+f*a]=h/Math.min(l+1,a-1+c-l,c))}function Zs(t,e,r){for(var a=t.width,s=t.height,c=1+(r<<1),f=0;f<a;++f)for(var l=0,h=0;l<s+r;++l)l<s&&(h+=t.data[f+l*a]),l>=r&&(l>=c&&(h-=t.data[f+(l-c)*a]),e.data[f+(l-r)*a]=h/Math.min(l+1,s-1+c-l,c))}function hm(t){return t[0]}function dm(t){return t[1]}function gm(){return 1}function pm(){var t=hm,e=dm,r=gm,a=960,s=500,c=20,f=2,l=3*c,h=a+2*l>>f,d=s+2*l>>f,p=Bn(20);function y(C){var V=new Float32Array(h*d),M=new Float32Array(h*d);
1C.forEach(function(B,X,j){var W=+t(B,X,j)+l>>f,q=+e(B,X,j)+l>>f,U=+r(B,X,j);W>=0&&W<h&&q>=0&&q<d&&(V[W+q*h]+=U)}),qs({width:h,height:d,data:V},{width:h,height:d,data:M},c>>f),Zs({width:h,height:d,data:M},{width:h,height:d,data:V},c>>f),qs({width:h,height:d,data:V},{width:h,height:d,data:M},c>>f),Zs({width:h,height:d,data:M},{width:h,height:d,data:V},c>>f),qs({width:h,height:d,data:V},{width:h,height:d,data:M},c>>f),Zs({width:h,height:d,data:M},{width:h,height:d,data:V},c>>f);var R=p(V);if(!Array.isArray(R)){var z=(0,Q.Fp)(V);R=(0,Q.ly)(0,z,R),(R=(0,Q.w6)(0,Math.floor(z/R)*R,R)).shift()}return cl().thresholds(R).size([h,d])(V).map(_)}function _(C){return C.value*=Math.pow(2,-2*f),C.coordinates.forEach(x),C}function x(C){C.forEach(S)}function S(C){C.forEach(b)}function b(C){C[0]=C[0]*Math.pow(2,f)-l,C[1]=C[1]*Math.pow(2,f)-l}function A(){return h=a+2*(l=3*c)>>f,d=s+2*l>>f,y}return y.x=function(C){return arguments.length?(t="function"==typeof C?C:Bn(+C),y):t},y.y=function(C){return arguments.length?(e="function"==typeof C?C:Bn(+C),y):e},y.weight=function(C){return arguments.length?(r="function"==typeof C?C:Bn(+C),y):r},y.size=function(C){if(!arguments.length)return[a,s];var V=Math.ceil(C[0]),M=Math.ceil(C[1]);if(!(V>=0||V>=0))throw new Error("invalid size");return a=V,s=M,A()},y.cellSize=function(C){if(!arguments.length)return 1<<f;if(!((C=+C)>=1))throw new Error("invalid cell size");return f=Math.floor(Math.log(C)/Math.LN2),A()},y.thresholds=function(C){return arguments.length?(p="function"==typeof C?C:Array.isArray(C)?Bn(ul.call(C)):Bn(C),y):p},y.bandwidth=function(C){if(!arguments.length)return Math.sqrt(c*(c+1));if(!((C=+C)>=0))throw new Error("invalid bandwidth");return c=Math.round((Math.sqrt(4*C*C+1)-1)/2),A()},y}function Da(t){return function(){return t}}function Qs(t,e,r,a,s,c,f,l,h,d){this.target=t,this.type=e,this.subject=r,this.identifier=a,this.active=s,this.x=c,this.y=f,this.dx=l,this.dy=h,this._=d}function _m(){return!at.ctrlKey&&!at.button}function ym(){return this.parentNode}function mm(t){return t??{x:at.x,y:at.y}}function xm(){return navigator.maxTouchPoints||"ontouchstart"in this}function vm(){var l,h,d,p,t=_m,e=ym,r=mm,a=xm,s={},c=T("start","drag","end"),f=0,y=0;function _(R){R.on("mousedown.drag",x).filter(a).on("touchstart.drag",A).on("touchmove.drag",C).on("touchend.drag touchcancel.drag",V).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(){if(!p&&t.apply(this,arguments)){var R=M("mouse",e.apply(this,arguments),ii,this,arguments);!R||(He(at.view).on("mousemove.drag",S,!0).on("mouseup.drag",b,!0),ga(at.view),ps(),d=!1,l=at.clientX,h=at.clientY,R("start"))}}function S(){if(Pi(),!d){var R=at.clientX-l,z=at.clientY-h;d=R*R+z*z>y}s.mouse("drag")}function b(){He(at.view).on("mousemove.drag mouseup.drag",null),pa(at.view,d),Pi(),s.mouse("end")}function A(){if(t.apply(this,arguments)){var X,j,R=at.changedTouches,z=e.apply(this,arguments),B=R.length;for(X=0;X<B;++X)(j=M(R[X].identifier,z,gr,this,arguments))&&(ps(),j("start"))}}function C(){var B,X,R=at.changedTouches,z=R.length;for(B=0;B<z;++B)(X=s[R[B].identifier])&&(Pi(),X("drag"))}function V(){var B,X,R=at.changedTouches,z=R.length;for(p&&clearTimeout(p),p=setTimeout(function(){p=null},500),B=0;B<z;++B)(X=s[R[B].identifier])&&(ps(),X("end"))}function M(R,z,B,X,j){var q,U,G,W=B(z,R),H=c.copy();if(cr(new Qs(_,"beforestart",q,R,f,W[0],W[1],0,0,H),function(){return null!=(at.subject=q=r.apply(X,j))&&(U=q.x-W[0]||0,G=q.y-W[1]||0,!0)}))return function J(Y){var ct,K=W;switch(Y){case"start":s[R]=J,ct=f++;break;case"end":delete s[R],--f;case"drag":W=B(z,R),ct=f}cr(new Qs(_,Y,q,R,ct,W[0]+U,W[1]+G,W[0]-K[0],W[1]-K[1],H),H.apply,H,[Y,X,j])}}return _.filter=function(R){return arguments.length?(t="function"==typeof R?R:Da(!!R),_):t},_.container=function(R){return arguments.length?(e="function"==typeof R?R:Da(R),_):e},_.subject=function(R){return arguments.length?(r="function"==typeof R?R:Da(R),_):r},_.touchable=function(R){return arguments.length?(a="function"==typeof R?R:Da(!!R),_):a},_.on=function(){var R=c.on.apply(c,arguments);return R===c?_:R},_.clickDistance=function(R){return arguments.length?(y=(R=+R)*R,_):Math.sqrt(y)},_}Qs.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var fl={},js={};function ll(t){return new Function("d","return {"+t.map(function(e,r){return JSON.stringify(e)+": d["+r+'] || ""'}).join(",")+"}")}function hl(t){var e=Object.create(null),r=[];return t.forEach(function(a){for(var s in a)s in e||r.push(e[s]=s)}),r}function Ue(t,e){var r=t+"",a=r.length;return a<e?new Array(e-a+1).join(0)+r:r}function Ia(t){var e=new RegExp('["'+t+"\n\r]"),r=t.charCodeAt(0);function s(y,_){var C,x=[],S=y.length,b=0,A=0,V=S<=0,M=!1;function R(){if(V)return js;if(M)return M=!1,fl;var B,j,X=b;if(34===y.charCodeAt(X)){for(;b++<S&&34!==y.charCodeAt(b)||34===y.charCodeAt(++b););return(B=b)>=S?V=!0:10===(j=y.charCodeAt(b++))?M=!0:13===j&&(M=!0,10===y.charCodeAt(b)&&++b),y.slice(X+1,B-1).replace(/""/g,'"')}for(;b<S;){if(10===(j=y.charCodeAt(B=b++)))M=!0;else if(13===j)M=!0,10===y.charCodeAt(b)&&++b;else if(j!==r)continue;return y.slice(X,B)}return V=!0,y.slice(X,S)}for(10===y.charCodeAt(S-1)&&--S,13===y.charCodeAt(S-1)&&--S;(C=R())!==js;){for(var z=[];C!==fl&&C!==js;)z.push(C),C=R();_&&null==(z=_(z,A++))||x.push(z)}return x}function c(y,_){return y.map(function(x){return _.map(function(S){return p(x[S])}).join(t)})}function d(y){return y.map(p).join(t)}
1function p(y){return null==y?"":y instanceof Date?function Sm(t){var e=t.getUTCHours(),r=t.getUTCMinutes(),a=t.getUTCSeconds(),s=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":function bm(t){return t<0?"-"+Ue(-t,6):t>9999?"+"+Ue(t,6):Ue(t,4)}(t.getUTCFullYear())+"-"+Ue(t.getUTCMonth()+1,2)+"-"+Ue(t.getUTCDate(),2)+(s?"T"+Ue(e,2)+":"+Ue(r,2)+":"+Ue(a,2)+"."+Ue(s,3)+"Z":a?"T"+Ue(e,2)+":"+Ue(r,2)+":"+Ue(a,2)+"Z":r||e?"T"+Ue(e,2)+":"+Ue(r,2)+"Z":"")}(y):e.test(y+="")?'"'+y.replace(/"/g,'""')+'"':y}return{parse:function a(y,_){var x,S,b=s(y,function(A,C){if(x)return x(A,C-1);S=A,x=_?function wm(t,e){var r=ll(t);return function(a,s){return e(r(a),s,t)}}(A,_):ll(A)});return b.columns=S||[],b},parseRows:s,format:function f(y,_){return null==_&&(_=hl(y)),[_.map(p).join(t)].concat(c(y,_)).join("\n")},formatBody:function l(y,_){return null==_&&(_=hl(y)),c(y,_).join("\n")},formatRows:function h(y){return y.map(d).join("\n")},formatRow:d,formatValue:p}}var ui=Ia(","),dl=ui.parse,Tm=ui.parseRows,Am=ui.format,Pm=ui.formatBody,Cm=ui.formatRows,Lm=ui.formatRow,Mm=ui.formatValue,ci=Ia("\t"),gl=ci.parse,Em=ci.parseRows,km=ci.format,Rm=ci.formatBody,Vm=ci.formatRows,Gm=ci.formatRow,Om=ci.formatValue;function $m(t){for(var e in t){var a,s,r=t[e].trim();if(r)if("true"===r)r=!0;else if("false"===r)r=!1;else if("NaN"===r)r=NaN;else if(isNaN(a=+r)){if(!(s=r.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;Nm&&!!s[4]&&!s[7]&&(r=r.replace(/-/g,"/").replace(/T/," ")),r=new Date(r)}else r=a;else r=null;t[e]=r}return t}var Nm=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function Dm(t){return+t}function Im(t){return t*t}function Fm(t){return t*(2-t)}function pl(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}var zm=function t(e){function r(a){return Math.pow(a,e)}return e=+e,r.exponent=t,r}(3),Xm=function t(e){function r(a){return 1-Math.pow(1-a,e)}return e=+e,r.exponent=t,r}(3),_l=function t(e){function r(a){return((a*=2)<=1?Math.pow(a,e):2-Math.pow(2-a,e))/2}return e=+e,r.exponent=t,r}(3),yl=Math.PI,ml=yl/2;function Ym(t){return 1==+t?1:1-Math.cos(t*ml)}function Bm(t){return Math.sin(t*ml)}function xl(t){return(1-Math.cos(yl*t))/2}function Hn(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function Hm(t){return Hn(1-+t)}function Um(t){return 1-Hn(t)}function vl(t){return((t*=2)<=1?Hn(1-t):2-Hn(t-1))/2}function Wm(t){return 1-Math.sqrt(1-t*t)}function qm(t){return Math.sqrt(1- --t*t)}function wl(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var Fa=7.5625;function ix(t){return 1-Tr(1-t)}function Tr(t){return(t=+t)<.36363636363636365?Fa*t*t:t<.7272727272727273?Fa*(t-=.5454545454545454)*t+.75:t<.9090909090909091?Fa*(t-=.8181818181818182)*t+.9375:Fa*(t-=.9545454545454546)*t+.984375}function rx(t){return((t*=2)<=1?1-Tr(1-t):Tr(t-1)+1)/2}var nu=1.70158,ax=function t(e){function r(a){return(a=+a)*a*(e*(a-1)+a)}return e=+e,r.overshoot=t,r}(nu),ox=function t(e){function r(a){return--a*a*((a+1)*e+a)+1}return e=+e,r.overshoot=t,r}(nu),bl=function t(e){function r(a){return((a*=2)<1?a*a*((e+1)*a-e):(a-=2)*a*((e+1)*a+e)+2)/2}return e=+e,r.overshoot=t,r}(nu),Di=2*Math.PI,sx=function t(e,r){var a=Math.asin(1/(e=Math.max(1,e)))*(r/=Di);function s(c){return e*Hn(- --c)*Math.sin((a-c)/r)}return s.amplitude=function(c){return t(c,r*Di)},s.period=function(c){return t(e,c)},s}(1,.3),Sl=function t(e,r){var a=Math.asin(1/(e=Math.max(1,e)))*(r/=Di);function s(c){return 1-e*Hn(c=+c)*Math.sin((c+a)/r)}return s.amplitude=function(c){return t(c,r*Di)},s.period=function(c){return t(e,c)},s}(1,.3),ux=function t(e,r){var a=Math.asin(1/(e=Math.max(1,e)))*(r/=Di);function s(c){return((c=2*c-1)<0?e*Hn(-c)*Math.sin((a-c)/r):2-e*Hn(c)*Math.sin((a+c)/r))/2}return s.amplitude=function(c){return t(c,r*Di)},s.period=function(c){return t(e,c)},s}(1,.3);function cx(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}function fx(t,e){return fetch(t,e).then(cx)}function lx(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}function hx(t,e){return fetch(t,e).then(lx)}function dx(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function za(t,e){return fetch(t,e).then(dx)}function Tl(t){return function(e,r,a){return 2===arguments.length&&"function"==typeof r&&(a=r,r=void 0),za(e,r).then(function(s){return t(s,a)})}}function gx(t,e,r,a){3===arguments.length&&"function"==typeof r&&(a=r,r=void 0);var s=Ia(t);return za(e,r).then(function(c){return s.parse(c,a)})}var px=Tl(dl),_x=Tl(gl);function yx(t,e){return new Promise(function(r,a){var s=new Image;for(var c in e)s[c]=e[c];s.onerror=a,s.onload=function(){r(s)},s.src=t})}function mx(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}function xx(t,e){return fetch(t,e).then(mx)}function au(t){return function(e,r){return za(e,r).then(function(a){return(new DOMParser).parseFromString(a,t)})}}const vx=au("application/xml");var wx=au("text/html"),bx=au("image/svg+xml");function Sx(t,e){var r;function a(){var s,f,c=r.length,l=0,h=0;for(s=0;s<c;++s)l+=(f=r[s]).x,h+=f.y;for(l=l/c-t,h=h/c-e,s=0;s<c;++s)(f=r[s]).x-=l,f.y-=h}return null==t&&(t=0),null==e&&(e=0),a.initialize=function(s){r=s},a.x=function(s){return arguments.length?(t=+s,a):t},a.y=function(s){return arguments.length?(e=+s,a):e},a}function de(t){return function(){return t}}function Un(){return 1e-6*(Math.random()-.5)}function Al(t,e,r,a){if(isNaN(e)||isNaN(r))return t;var s,y,_,x,S,b,A,C,V,c=t._root,f={data:a},l=t._x0,h=t._y0,d=t._x1,p=t._y1;if(!c)return t._root=f,t;for(;c.length;)if((b=e>
vendor: 5,827 bytes, line 1
1=(y=(l+d)/2))?l=y:d=y,(A=r>=(_=(h+p)/2))?h=_:p=_,s=c,!(c=c[C=A<<1|b]))return s[C]=f,t;if(x=+t._x.call(null,c.data),S=+t._y.call(null,c.data),e===x&&r===S)return f.next=c,s?s[C]=f:t._root=f,t;do{s=s?s[C]=new Array(4):t._root=new Array(4),(b=e>=(y=(l+d)/2))?l=y:d=y,(A=r>=(_=(h+p)/2))?h=_:p=_}while((C=A<<1|b)==(V=(S>=_)<<1|x>=y));return s[V]=c,s[C]=f,t}function Ve(t,e,r,a,s){this.node=t,this.x0=e,this.y0=r,this.x1=a,this.y1=s}function $x(t){return t[0]}function Dx(t){return t[1]}function Xa(t,e,r){var a=new ou(e??$x,r??Dx,NaN,NaN,NaN,NaN);return null==t?a:a.addAll(t)}function ou(t,e,r,a,s,c){this._x=t,this._y=e,this._x0=r,this._y0=a,this._x1=s,this._y1=c,this._root=void 0}function Pl(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var Ge=Xa.prototype=ou.prototype;function Fx(t){return t.x+t.vx}function zx(t){return t.y+t.vy}function Xx(t){var e,r,a=1,s=1;function c(){for(var h,p,y,_,x,S,b,d=e.length,A=0;A<s;++A)for(p=Xa(e,Fx,zx).visitAfter(f),h=0;h<d;++h)b=(S=r[(y=e[h]).index])*S,_=y.x+y.vx,x=y.y+y.vy,p.visit(C);function C(V,M,R,z,B){var X=V.data,j=V.r,W=S+j;if(!X)return M>_+W||z<_-W||R>x+W||B<x-W;if(X.index>y.index){var q=_-X.x-X.vx,U=x-X.y-X.vy,G=q*q+U*U;G<W*W&&(0===q&&(G+=(q=Un())*q),0===U&&(G+=(U=Un())*U),G=(W-(G=Math.sqrt(G)))/G*a,y.vx+=(q*=G)*(W=(j*=j)/(b+j)),y.vy+=(U*=G)*W,X.vx-=q*(W=1-W),X.vy-=U*W)}}}function f(h){if(h.data)return h.r=r[h.data.index];for(var d=h.r=0;d<4;++d)h[d]&&h[d].r>h.r&&(h.r=h[d].r)}function l(){if(e){var h,p,d=e.length;for(r=new Array(d),h=0;h<d;++h)r[(p=e[h]).index]=+t(p,h,e)}}return"function"!=typeof t&&(t=de(null==t?1:+t)),c.initialize=function(h){e=h,l()},c.iterations=function(h){return arguments.length?(s=+h,c):s},c.strength=function(h){return arguments.length?(a=+h,c):a},c.radius=function(h){return arguments.length?(t="function"==typeof h?h:de(+h),l(),c):t},c}function Yx(t){return t.index}function Cl(t,e){var r=t.get(e);if(!r)throw new Error("missing: "+e);return r}function Bx(t){var a,c,f,l,h,e=Yx,r=function p(b){return 1/Math.min(l[b.source.index],l[b.target.index])},s=de(30),d=1;function y(b){for(var A=0,C=t.length;A<d;++A)for(var M,R,z,B,X,j,W,V=0;V<C;++V)B=(z=(M=t[V]).target).x+z.vx-(R=M.source).x-R.vx||Un(),X=z.y+z.vy-R.y-R.vy||Un(),X*=j=((j=Math.sqrt(B*B+X*X))-c[V])/j*b*a[V],z.vx-=(B*=j)*(W=h[V]),z.vy-=X*W,R.vx+=B*(W=1-W),R.vy+=X*W}function _(){if(f){var b,M,A=f.length,C=t.length,V=Yn(f,e);for(b=0,l=new Array(A);b<C;++b)(M=t[b]).index=b,"object"!=typeof M.source&&(M.source=Cl(V,M.source)),"object"!=typeof M.target&&(M.target=Cl(V,M.target)),l[M.source.index]=(l[M.source.index]||0)+1,l[M.target.index]=(l[M.target.index]||0)+1;for(b=0,h=new Array(C);b<C;++b)h[b]=l[(M=t[b]).source.index]/(l[M.source.index]+l[M.target.index]);a=new Array(C),x(),c=new Array(C),S()}}function x(){if(f)for(var b=0,A=t.length;b<A;++b)a[b]=+r(t[b],b,t)}function S(){if(f)for(var b=0,A=t.length;b<A;++b)c[b]=+s(t[b],b,t)}return null==t&&(t=[]),y.initialize=function(b){f=b,_()},y.links=function(b){return arguments.length?(t=b,_(),y):t},y.id=function(b){return arguments.length?(e=b,y):e},y.iterations=function(b){return arguments.length?(d=+b,y):d},y.strength=function(b){return arguments.length?(r="function"==typeof b?b:de(+b),x(),y):r},y.distance=function(b){return arguments.length?(s="function"==typeof b?b:de(+b),S(),y):s},y}function Hx(t){return t.x}function Ux(t){return t.y}Ge.copy=function(){var r,a,t=new ou(this._x,this._y,this._x0,this._y0,this._x1,this._y1),e=this._root;if(!e)return t;if(!e.length)return t._root=Pl(e),t;for(r=[{source:e,target:t._root=new Array(4)}];e=r.pop();)for(var s=0;s<4;++s)(a=e.source[s])&&(a.length?r.push({source:a,target:e.target[s]=new Array(4)}):e.target[s]=Pl(a));return t},Ge.add=function Tx(t){var e=+this._x.call(null,t),r=+this._y.call(null,t);return Al(this.cover(e,r),e,r,t)},Ge.addAll=function Ax(t){var e,r,s,c,a=t.length,f=new Array(a),l=new Array(a),h=1/0,d=1/0,p=-1/0,y=-1/0;for(r=0;r<a;++r)isNaN(s=+this._x.call(null,e=t[r]))||isNaN(c=+this._y.call(null,e))||(f[r]=s,l[r]=c,s<h&&(h=s),s>p&&(p=s),c<d&&(d=c),c>y&&(y=c));if(h>p||d>y)return this;for(this.cover(h,d).cover(p,y),r=0;r<a;++r)Al(this,f[r],l[r],t[r]);return this},Ge.cover=function Px(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var r=this._x0,a=this._y0,s=this._x1,c=this._y1;if(isNaN(r))s=(r=Math.floor(t))+1,c=(a=Math.floor(e))+1;else{for(var h,d,f=s-r,l=this._root;r>t||t>=s||a>e||e>=c;)switch(d=(e<a)<<1|t<r,h=new Array(4),h[d]=l,l=h,f*=2,d){case 0:s=r+f,c=a+f;break;case 1:r=s-f,c=a+f;break;case 2:s=r+f,a=c-f;break;case 3:r=s-f,a=c-f}this._root&&this._root.length&&(this._root=l)}return this._x0=r,this._y0=a,this._x1=s,this._y1=c,this},Ge.data=function Cx(){var t=[];return this.visit(function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)}),t},Ge.extent=function Lx(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Ge.find=function Mx(t,e,r){var a,f,l,h,d,S,b,s=this._x0,c=this._y0,p=this._x1,y=this._y1,_=[],x=this._root;for(x&&_.push(new Ve(x,s,c,p,y)),null==r?r=1/0:(s=t-r,c=e-r,p=t+r,y=e+r,r*=r);S=_.pop();)if(!(!(x=S.node)||(f=S.x0)>p||(l=S.y0)>y||(h=S.x1)<s||(d=S.y1)<c))if(x.length){var A=(f+h)/2,C=(l+d)/2;_.push(new Ve(x[3],A,C,h,d),new Ve(x[2],f,C,A,d),new Ve(x[1],A,l,h,C),new Ve(x[0],f,l,A,C)),(b=(e>=C)<<1|t>=A)&&(S=_[_.length-1],_[_.length-1]=_[_.length-1-b],_[_.length-1-b]=S)}else{var V=t-+this._x.call(null,x.data),M=e-+this._y.call(null,x.data),R=V*V+M*M;if(R<r){var z=Math.sqrt(r=R);s=t-z,c=e-z,p=t+z,y=e+z,a=x.data}}return a},Ge.remove=function Ex(t){if(isNaN(p=+this._x.call(null,t))||isNaN(y=+this._y.call(null,t)))return this;var e,a,s,c,p,y,_,x,S,b,A,C,r=this._root,f=this._x0,l=this._y0,h=this._x1,d=this._y1;if(!r)return this;if(r.length)for(;;){if((S=p>=(_=(f+h)/2))?f=_:h=_,(b=y>
vendor: 9,418 bytes, line 1
1=(x=(l+d)/2))?l=x:d=x,e=r,!(r=r[A=b<<1|S]))return this;if(!r.length)break;(e[A+1&3]||e[A+2&3]||e[A+3&3])&&(a=e,C=A)}for(;r.data!==t;)if(s=r,!(r=r.next))return this;return(c=r.next)&&delete r.next,s?(c?s.next=c:delete s.next,this):e?(c?e[A]=c:delete e[A],(r=e[0]||e[1]||e[2]||e[3])&&r===(e[3]||e[2]||e[1]||e[0])&&!r.length&&(a?a[C]=r:this._root=r),this):(this._root=c,this)},Ge.removeAll=function kx(t){for(var e=0,r=t.length;e<r;++e)this.remove(t[e]);return this},Ge.root=function Rx(){return this._root},Ge.size=function Vx(){var t=0;return this.visit(function(e){if(!e.length)do{++t}while(e=e.next)}),t},Ge.visit=function Gx(t){var r,s,c,f,l,h,e=[],a=this._root;for(a&&e.push(new Ve(a,this._x0,this._y0,this._x1,this._y1));r=e.pop();)if(!t(a=r.node,c=r.x0,f=r.y0,l=r.x1,h=r.y1)&&a.length){var d=(c+l)/2,p=(f+h)/2;(s=a[3])&&e.push(new Ve(s,d,p,l,h)),(s=a[2])&&e.push(new Ve(s,c,p,d,h)),(s=a[1])&&e.push(new Ve(s,d,f,l,p)),(s=a[0])&&e.push(new Ve(s,c,f,d,p))}return this},Ge.visitAfter=function Ox(t){var a,e=[],r=[];for(this._root&&e.push(new Ve(this._root,this._x0,this._y0,this._x1,this._y1));a=e.pop();){var s=a.node;if(s.length){var c,f=a.x0,l=a.y0,h=a.x1,d=a.y1,p=(f+h)/2,y=(l+d)/2;(c=s[0])&&e.push(new Ve(c,f,l,p,y)),(c=s[1])&&e.push(new Ve(c,p,l,h,y)),(c=s[2])&&e.push(new Ve(c,f,y,p,d)),(c=s[3])&&e.push(new Ve(c,p,y,h,d))}r.push(a)}for(;a=r.pop();)t(a.node,a.x0,a.y0,a.x1,a.y1);return this},Ge.x=function Nx(t){return arguments.length?(this._x=t,this):this._x},Ge.y=function Ix(t){return arguments.length?(this._y=t,this):this._y};var qx=Math.PI*(3-Math.sqrt(5));function Zx(t){var e,r=1,a=.001,s=1-Math.pow(a,1/300),c=0,f=.6,l=Yn(),h=Ta(p),d=T("tick","end");function p(){y(),d.call("tick",e),r<a&&(h.stop(),d.call("end",e))}function y(S){var b,C,A=t.length;void 0===S&&(S=1);for(var V=0;V<S;++V)for(r+=(c-r)*s,l.each(function(M){M(r)}),b=0;b<A;++b)null==(C=t[b]).fx?C.x+=C.vx*=f:(C.x=C.fx,C.vx=0),null==C.fy?C.y+=C.vy*=f:(C.y=C.fy,C.vy=0);return e}function _(){for(var A,S=0,b=t.length;S<b;++S){if((A=t[S]).index=S,null!=A.fx&&(A.x=A.fx),null!=A.fy&&(A.y=A.fy),isNaN(A.x)||isNaN(A.y)){var C=10*Math.sqrt(S),V=S*qx;A.x=C*Math.cos(V),A.y=C*Math.sin(V)}(isNaN(A.vx)||isNaN(A.vy))&&(A.vx=A.vy=0)}}function x(S){return S.initialize&&S.initialize(t),S}return null==t&&(t=[]),_(),e={tick:y,restart:function(){return h.restart(p),e},stop:function(){return h.stop(),e},nodes:function(S){return arguments.length?(t=S,_(),l.each(x),e):t},alpha:function(S){return arguments.length?(r=+S,e):r},alphaMin:function(S){return arguments.length?(a=+S,e):a},alphaDecay:function(S){return arguments.length?(s=+S,e):+s},alphaTarget:function(S){return arguments.length?(c=+S,e):c},velocityDecay:function(S){return arguments.length?(f=1-S,e):1-f},force:function(S,b){return arguments.length>1?(null==b?l.remove(S):l.set(S,x(b)),e):l.get(S)},find:function(S,b,A){var M,R,z,B,X,C=0,V=t.length;for(null==A?A=1/0:A*=A,C=0;C<V;++C)(z=(M=S-(B=t[C]).x)*M+(R=b-B.y)*R)<A&&(X=B,A=z);return X},on:function(S,b){return arguments.length>1?(d.on(S,b),e):d.on(S)}}}function Qx(){var t,e,r,s,a=de(-30),c=1,f=1/0,l=.81;function h(_){var x,S=t.length,b=Xa(t,Hx,Ux).visitAfter(p);for(r=_,x=0;x<S;++x)e=t[x],b.visit(y)}function d(){if(t){var _,S,x=t.length;for(s=new Array(x),_=0;_<x;++_)s[(S=t[_]).index]=+a(S,_,t)}}function p(_){var S,b,C,V,M,x=0,A=0;if(_.length){for(C=V=M=0;M<4;++M)(S=_[M])&&(b=Math.abs(S.value))&&(x+=S.value,A+=b,C+=b*S.x,V+=b*S.y);_.x=C/A,_.y=V/A}else{(S=_).x=S.data.x,S.y=S.data.y;do{x+=s[S.data.index]}while(S=S.next)}_.value=x}function y(_,x,S,b){if(!_.value)return!0;var A=_.x-e.x,C=_.y-e.y,V=b-x,M=A*A+C*C;if(V*V/l<M)return M<f&&(0===A&&(M+=(A=Un())*A),0===C&&(M+=(C=Un())*C),M<c&&(M=Math.sqrt(c*M)),e.vx+=A*_.value*r/M,e.vy+=C*_.value*r/M),!0;if(!(_.length||M>=f)){(_.data!==e||_.next)&&(0===A&&(M+=(A=Un())*A),0===C&&(M+=(C=Un())*C),M<c&&(M=Math.sqrt(c*M)));do{_.data!==e&&(e.vx+=A*(V=s[_.data.index]*r/M),e.vy+=C*V)}while(_=_.next)}}return h.initialize=function(_){t=_,d()},h.strength=function(_){return arguments.length?(a="function"==typeof _?_:de(+_),d(),h):a},h.distanceMin=function(_){return arguments.length?(c=_*_,h):Math.sqrt(c)},h.distanceMax=function(_){return arguments.length?(f=_*_,h):Math.sqrt(f)},h.theta=function(_){return arguments.length?(l=_*_,h):Math.sqrt(l)},h}function jx(t,e,r){var a,c,f,s=de(.1);function l(d){for(var p=0,y=a.length;p<y;++p){var _=a[p],x=_.x-e||1e-6,S=_.y-r||1e-6,b=Math.sqrt(x*x+S*S),A=(f[p]-b)*c[p]*d/b;_.vx+=x*A,_.vy+=S*A}}function h(){if(a){var d,p=a.length;for(c=new Array(p),f=new Array(p),d=0;d<p;++d)f[d]=+t(a[d],d,a),c[d]=isNaN(f[d])?0:+s(a[d],d,a)}}return"function"!=typeof t&&(t=de(+t)),null==e&&(e=0),null==r&&(r=0),l.initialize=function(d){a=d,h()},l.strength=function(d){return arguments.length?(s="function"==typeof d?d:de(+d),h(),l):s},l.radius=function(d){return arguments.length?(t="function"==typeof d?d:de(+d),h(),l):t},l.x=function(d){return arguments.length?(e=+d,l):e},l.y=function(d){return arguments.length?(r=+d,l):r},l}function Kx(t){var r,a,s,e=de(.1);function c(l){for(var p,h=0,d=r.length;h<d;++h)(p=r[h]).vx+=(s[h]-p.x)*a[h]*l}function f(){if(r){var l,h=r.length;for(a=new Array(h),s=new Array(h),l=0;l<h;++l)a[l]=isNaN(s[l]=+t(r[l],l,r))?0:+e(r[l],l,r)}}return"function"!=typeof t&&(t=de(null==t?0:+t)),c.initialize=function(l){r=l,f()},c.strength=function(l){return arguments.length?(e="function"==typeof l?l:de(+l),f(),c):e},c.x=function(l){return arguments.length?(t="function"==typeof l?l:de(+l),f(),c):t},c}function Jx(t){var r,a,s,e=de(.1);function c(l){for(var p,h=0,d=r.length;h<d;++h)(p=r[h]).vy+=(s[h]-p.y)*a[h]*l}function f(){if(r){var l,h=r.length;for(a=new Array(h),s=new Array(h),l=0;l<h;++l)a[l]=isNaN(s[l]=+t(r[l],l,r))?0:+e(r[l],l,r)}}return"function"!=typeof t&&(t=de(null==t?0:+t)),c.initialize=function(l){r=l,f()},c.strength=function(l){return arguments.length?(e="function"==typeof l?l:de(+l),f(),c):e},c.y=function(l){return arguments.length?(t="function"==typeof l?l:de(+l),f(),c):t},c}function Ya(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,a=t.slice(0,r);return[a.length>1?a[0]+a.slice(2):a,+t.slice(r+1)]}function Ii(t){return(t=Ya(Math.abs(t)))?t[1]:NaN}var Ll,i1=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ar(t){if(!(e=i1.exec(t)))throw new Error("invalid format: "+t);var e;return new Ba({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Ba(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Ml(t,e){var r=Ya(t,e);if(!r)return t+"";var a=r[0],s=r[1];return s<0?"0."+new Array(-s).join("0")+a:a.length>s+1?a.slice(0,s+1)+"."+a.slice(s+1):a+new Array(s-a.length+2).join("0")}Ar.prototype=Ba.prototype,Ba.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const El={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function t1(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Ml(100*t,e)},r:Ml,s:function a1(t,e){var r=Ya(t,e);if(!r)return t+"";var a=r[0],s=r[1],c=s-(Ll=3*Math.max(-8,Math.min(8,Math.floor(s/3))))+1,f=a.length;return c===f?a:c>f?a+new Array(c-f+1).join("0"):c>0?a.slice(0,c)+"."+a.slice(c):"0."+new Array(1-c).join("0")+Ya(t,Math.max(0,e+c-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function kl(t){return t}var Ha,Ua,su,Rl=Array.prototype.map,Vl=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Gl(t){var e=void 0===t.grouping||void 0===t.thousands?kl:function e1(t,e){return function(r,a){for(var s=r.length,c=[],f=0,l=t[0],h=0;s>0&&l>0&&(h+l+1>a&&(l=Math.max(1,a-h)),c.push(r.substring(s-=l,s+l)),!((h+=l+1)>a));)l=t[f=(f+1)%t.length];return c.reverse().join(e)}}(Rl.call(t.grouping,Number),t.thousands+""),r=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?kl:function n1(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}(Rl.call(t.numerals,String)),f=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"-":t.minus+"",h=void 0===t.nan?"NaN":t.nan+"";function d(y){var _=(y=Ar(y)).fill,x=y.align,S=y.sign,b=y.symbol,A=y.zero,C=y.width,V=y.comma,M=y.precision,R=y.trim,z=y.type;"n"===z?(V=!0,z="g"):El[z]||(void 0===M&&(M=12),R=!0,z="g"),(A||"0"===_&&"="===x)&&(A=!0,_="0",x="=");var B="$"===b?r:"#"===b&&/[boxX]/.test(z)?"0"+z.toLowerCase():"",X="$"===b?a:/[%p]/.test(z)?f:"",j=El[z],W=/[defgprs%]/.test(z);function q(U){var J,Y,K,G=B,H=X;
vendor: 4,187 bytes, line 1
1if("c"===z)H=j(U)+H,U="";else{var ct=(U=+U)<0||1/U<0;if(U=isNaN(U)?h:j(Math.abs(U),M),R&&(U=function r1(t){t:for(var s,e=t.length,r=1,a=-1;r<e;++r)switch(t[r]){case".":a=s=r;break;case"0":0===a&&(a=r),s=r;break;default:if(!+t[r])break t;a>0&&(a=0)}return a>0?t.slice(0,a)+t.slice(s+1):t}(U)),ct&&0==+U&&"+"!==S&&(ct=!1),G=(ct?"("===S?S:l:"-"===S||"("===S?"":S)+G,H=("s"===z?Vl[8+Ll/3]:"")+H+(ct&&"("===S?")":""),W)for(J=-1,Y=U.length;++J<Y;)if(48>(K=U.charCodeAt(J))||K>57){H=(46===K?s+U.slice(J+1):U.slice(J))+H,U=U.slice(0,J);break}}V&&!A&&(U=e(U,1/0));var ot=G.length+U.length+H.length,lt=ot<C?new Array(C-ot+1).join(_):"";switch(V&&A&&(U=e(lt+U,lt.length?C-H.length:1/0),lt=""),x){case"<":U=G+U+H+lt;break;case"=":U=G+lt+U+H;break;case"^":U=lt.slice(0,ot=lt.length>>1)+G+U+H+lt.slice(ot);break;default:U=lt+G+U+H}return c(U)}return M=void 0===M?6:/[gprs]/.test(z)?Math.max(1,Math.min(21,M)):Math.max(0,Math.min(20,M)),q.toString=function(){return y+""},q}return{format:d,formatPrefix:function p(y,_){var x=d(((y=Ar(y)).type="f",y)),S=3*Math.max(-8,Math.min(8,Math.floor(Ii(_)/3))),b=Math.pow(10,-S),A=Vl[8+S/3];return function(C){return x(b*C)+A}}}}function Ol(t){return Ha=Gl(t),Ua=Ha.format,su=Ha.formatPrefix,Ha}function $l(t){return Math.max(0,-Ii(Math.abs(t)))}function Nl(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ii(e)/3)))-Ii(Math.abs(t)))}function Dl(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Ii(e)-Ii(t))+1}function Wn(){return new Wa}function Wa(){this.reset()}Ol({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Wa.prototype={constructor:Wa,reset:function(){this.s=this.t=0},add:function(t){Il(qa,t,this.t),Il(this,qa.s,this.s),this.s?this.t+=qa.t:this.s=qa.t},valueOf:function(){return this.s}};var qa=new Wa;function Il(t,e,r){var a=t.s=e+r,s=a-e;t.t=e-(a-s)+(r-s)}var pt=1e-6,Za=1e-12,Vt=Math.PI,ue=Vt/2,Qa=Vt/4,Oe=2*Vt,te=180/Vt,_t=Vt/180,Dt=Math.abs,Fi=Math.atan,$e=Math.atan2,ht=Math.cos,ja=Math.ceil,Fl=Math.exp,Ka=(Math,Math.log),uu=Math.pow,st=Math.sin,en=Math.sign||function(t){return t>0?1:t<0?-1:0},he=Math.sqrt,cu=Math.tan;function zl(t){return t>1?0:t<-1?Vt:Math.acos(t)}function Ne(t){return t>1?ue:t<-1?-ue:Math.asin(t)}function Xl(t){return(t=st(t/2))*t}function ae(){}function Ja(t,e){t&&Bl.hasOwnProperty(t.type)&&Bl[t.type](t,e)}var Yl={Feature:function(t,e){Ja(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,a=-1,s=r.length;++a<s;)Ja(r[a].geometry,e)}},Bl={Sphere:function(t,e){e.sphere()},Point:function(t,e){e.point((t=t.coordinates)[0],t[1],t[2])},MultiPoint:function(t,e){for(var r=t.coordinates,a=-1,s=r.length;++a<s;)e.point((t=r[a])[0],t[1],t[2])},LineString:function(t,e){fu(t.coordinates,e,0)},MultiLineString:function(t,e){for(var r=t.coordinates,a=-1,s=r.length;++a<s;)fu(r[a],e,0)},Polygon:function(t,e){Hl(t.coordinates,e)},MultiPolygon:function(t,e){for(var r=t.coordinates,a=-1,s=r.length;++a<s;)Hl(r[a],e)},GeometryCollection:function(t,e){for(var r=t.geometries,a=-1,s=r.length;++a<s;)Ja(r[a],e)}};function fu(t,e,r){var c,a=-1,s=t.length-r;for(e.lineStart();++a<s;)e.point((c=t[a])[0],c[1],c[2]);e.lineEnd()}function Hl(t,e){var r=-1,a=t.length;for(e.polygonStart();++r<a;)fu(t[r],e,1);e.polygonEnd()}function ln(t,e){t&&Yl.hasOwnProperty(t.type)?Yl[t.type](t,e):Ja(t,e)}var Ul,Wl,lu,hu,du,to=Wn(),eo=Wn(),Pn={point:ae,lineStart:ae,lineEnd:ae,polygonStart:function(){to.reset(),Pn.lineStart=o1,Pn.lineEnd=s1},polygonEnd:function(){var t=+to;eo.add(t<0?Oe+t:t),this.lineStart=this.lineEnd=this.point=ae},sphere:function(){eo.add(Oe)}};function o1(){Pn.point=u1}function s1(){ql(Ul,Wl)}function u1(t,e){Pn.point=ql,Ul=t,Wl=e,lu=t*=_t,hu=ht(e=(e*=_t)/2+Qa),du=st(e)}function ql(t,e){var r=(t*=_t)-lu,a=r>=0?1:-1,s=a*r,c=ht(e=(e*=_t)/2+Qa),f=st(e),l=du*f,h=hu*c+l*ht(s),d=l*a*st(s);to.add($e(d,h)),lu=t,hu=c,du=f}function c1(t){return eo.reset(),ln(t,Pn),2*eo}function no(t){return[$e(t[1],t[0]),Ne(t[2])]}function fi(t){var e=t[0],r=t[1],a=ht(r);return[a*ht(e),a*st(e),st(r)]}function io(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function zi(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function gu(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}
vendor: 4,497 bytes, line 1
1function ro(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function ao(t){var e=he(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var oe,We,ce,qe,li,Zl,Ql,Xi,qn,$n,Pr=Wn(),Nn={point:pu,lineStart:Kl,lineEnd:Jl,polygonStart:function(){Nn.point=th,Nn.lineStart=f1,Nn.lineEnd=l1,Pr.reset(),Pn.polygonStart()},polygonEnd:function(){Pn.polygonEnd(),Nn.point=pu,Nn.lineStart=Kl,Nn.lineEnd=Jl,to<0?(oe=-(ce=180),We=-(qe=90)):Pr>pt?qe=90:Pr<-pt&&(We=-90),$n[0]=oe,$n[1]=ce},sphere:function(){oe=-(ce=180),We=-(qe=90)}};function pu(t,e){qn.push($n=[oe=t,ce=t]),e<We&&(We=e),e>qe&&(qe=e)}function jl(t,e){var r=fi([t*_t,e*_t]);if(Xi){var a=zi(Xi,r),c=zi([a[1],-a[0],0],a);ao(c),c=no(c);var d,f=t-li,l=f>0?1:-1,h=c[0]*te*l,p=Dt(f)>180;p^(l*li<h&&h<l*t)?(d=c[1]*te)>qe&&(qe=d):p^(l*li<(h=(h+360)%360-180)&&h<l*t)?(d=-c[1]*te)<We&&(We=d):(e<We&&(We=e),e>qe&&(qe=e)),p?t<li?Ze(oe,t)>Ze(oe,ce)&&(ce=t):Ze(t,ce)>Ze(oe,ce)&&(oe=t):ce>=oe?(t<oe&&(oe=t),t>ce&&(ce=t)):t>li?Ze(oe,t)>Ze(oe,ce)&&(ce=t):Ze(t,ce)>Ze(oe,ce)&&(oe=t)}else qn.push($n=[oe=t,ce=t]);e<We&&(We=e),e>qe&&(qe=e),Xi=r,li=t}function Kl(){Nn.point=jl}function Jl(){$n[0]=oe,$n[1]=ce,Nn.point=pu,Xi=null}function th(t,e){if(Xi){var r=t-li;Pr.add(Dt(r)>180?r+(r>0?360:-360):r)}else Zl=t,Ql=e;Pn.point(t,e),jl(t,e)}function f1(){Pn.lineStart()}function l1(){th(Zl,Ql),Pn.lineEnd(),Dt(Pr)>pt&&(oe=-(ce=180)),$n[0]=oe,$n[1]=ce,Xi=null}function Ze(t,e){return(e-=t)<0?e+360:e}function h1(t,e){return t[0]-e[0]}function eh(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function d1(t){var e,r,a,s,c,f,l;if(qe=ce=-(oe=We=1/0),qn=[],ln(t,Nn),r=qn.length){for(qn.sort(h1),e=1,c=[a=qn[0]];e<r;++e)eh(a,(s=qn[e])[0])||eh(a,s[1])?(Ze(a[0],s[1])>Ze(a[0],a[1])&&(a[1]=s[1]),Ze(s[0],a[1])>Ze(a[0],a[1])&&(a[0]=s[0])):c.push(a=s);for(f=-1/0,e=0,a=c[r=c.length-1];e<=r;a=s,++e)(l=Ze(a[1],(s=c[e])[0]))>f&&(f=l,oe=s[0],ce=a[1])}return qn=$n=null,oe===1/0||We===1/0?[[NaN,NaN],[NaN,NaN]]:[[oe,We],[ce,qe]]}var Cr,oo,so,uo,co,fo,lo,ho,_u,yu,mu,nh,ih,De,Ie,Fe,hn={sphere:ae,point:xu,lineStart:rh,lineEnd:ah,polygonStart:function(){hn.lineStart=_1,hn.lineEnd=y1},polygonEnd:function(){hn.lineStart=rh,hn.lineEnd=ah}};function xu(t,e){t*=_t;var r=ht(e*=_t);Lr(r*ht(t),r*st(t),st(e))}function Lr(t,e,r){++Cr,so+=(t-so)/Cr,uo+=(e-uo)/Cr,co+=(r-co)/Cr}function rh(){hn.point=g1}function g1(t,e){t*=_t;var r=ht(e*=_t);De=r*ht(t),Ie=r*st(t),Fe=st(e),hn.point=p1,Lr(De,Ie,Fe)}function p1(t,e){t*=_t;var r=ht(e*=_t),a=r*ht(t),s=r*st(t),c=st(e),f=$e(he((f=Ie*c-Fe*s)*f+(f=Fe*a-De*c)*f+(f=De*s-Ie*a)*f),De*a+Ie*s+Fe*c);oo+=f,fo+=f*(De+(De=a)),lo+=f*(Ie+(Ie=s)),ho+=f*(Fe+(Fe=c)),Lr(De,Ie,Fe)}function ah(){hn.point=xu}function _1(){hn.point=m1}function y1(){oh(nh,ih),hn.point=xu}function m1(t,e){nh=t,ih=e,t*=_t,e*=_t,hn.point=oh;var r=ht(e);De=r*ht(t),Ie=r*st(t),Fe=st(e),Lr(De,Ie,Fe)}function oh(t,e){t*=_t;var r=ht(e*=_t),a=r*ht(t),s=r*st(t),c=st(e),f=Ie*c-Fe*s,l=Fe*a-De*c,h=De*s-Ie*a,d=he(f*f+l*l+h*h),p=Ne(d),y=d&&-p/d;_u+=y*f,yu+=y*l,mu+=y*h,oo+=p,fo+=p*(De+(De=a)),lo+=p*(Ie+(Ie=s)),ho+=p*(Fe+(Fe=c)),Lr(De,Ie,Fe)}function x1(t){Cr=oo=so=uo=co=fo=lo=ho=_u=yu=mu=0,ln(t,hn);var e=_u,r=yu,a=mu,s=e*e+r*r+a*a;return s<Za&&(e=fo,r=lo,a=ho,oo<pt&&(e=so,r=uo,a=co),(s=e*e+r*r+a*a)<Za)?[NaN,NaN]:[$e(r,e)*te,Ne(a/he(s))*te]}function Yi(t){return function(){return t}}function vu(t,e){function r(a,s){return a=t(a,s),e(a[0],a[1])}return t.invert&&e.invert&&(r.invert=function(a,s){return(a=e.invert(a,s))&&t.invert(a[0],a[1])}),r}function wu(t,e){return[Dt(t)>Vt?t+Math.round(-t/Oe)*Oe:t,e]}function bu(t,e,r){return(t%=Oe)?e||r?vu(uh(t),ch(e,r)):uh(t):e||r?ch(e,r):wu}function sh(t){return function(e,r){return[(e+=t)>Vt?e-Oe:e<-Vt?e+Oe:e,r]}}function uh(t){var e=sh(t);return e.invert=sh(-t),e}function ch(t,e){var r=ht(t),a=st(t),s=ht(e),c=st(e);function f(l,h){var d=ht(h),p=ht(l)*d,y=st(l)*d,_=st(h),x=_*r+p*a;return[$e(y*s-x*c,p*r-_*a),Ne(x*s+y*c)]}return f.invert=function(l,h){var d=ht(h),p=ht(l)*d,y=st(l)*d,_=st(h),x=_*s-y*c;return[$e(y*s+_*c,p*r+x*a),Ne(x*r-p*a)]},f}function fh(t){function e(r){return(r=t(r[0]*_t,r[1]*_t))[0]*=te,r[1]*=te,r}return t=bu(t[0]*_t,t[1]*_t,t.length>2?t[2]*_t:0),e.invert=function(r){return(r=t.invert(r[0]*_t,r[1]*_t))[0]*=te,r[1]*=te,r},e}function lh(t,e,r,a,s,c){if(r){var f=ht(e),l=st(e),h=a*r;null==s?(s=e+a*Oe,c=e-h/2):(s=hh(f,s),c=hh(f,c),(a>0?s<c:s>c)&&(s+=a*Oe));for(var d,p=s;a>0?p>c:p<c;p-=h)d=no([f,-l*ht(p),-l*st(p)]),t.point(d[0],d[1])}}function hh(t,e){(e=fi(e))[0]-=t,ao(e);var r=zl(-e[1]);return((-e[2]<0?-r:r)+Oe-pt)%Oe}
vendor: 11,905 bytes, line 1
1function v1(){var a,s,t=Yi([0,0]),e=Yi(90),r=Yi(6),c={point:function f(h,d){a.push(h=s(h,d)),h[0]*=te,h[1]*=te}};function l(){var h=t.apply(this,arguments),d=e.apply(this,arguments)*_t,p=r.apply(this,arguments)*_t;return a=[],s=bu(-h[0]*_t,-h[1]*_t,0).invert,lh(c,d,p,1),h={type:"Polygon",coordinates:[a]},a=s=null,h}return l.center=function(h){return arguments.length?(t="function"==typeof h?h:Yi([+h[0],+h[1]]),l):t},l.radius=function(h){return arguments.length?(e="function"==typeof h?h:Yi(+h),l):e},l.precision=function(h){return arguments.length?(r="function"==typeof h?h:Yi(+h),l):r},l}function dh(){var e,t=[];return{point:function(r,a,s){e.push([r,a,s])},lineStart:function(){t.push(e=[])},lineEnd:ae,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var r=t;return t=[],e=null,r}}}function go(t,e){return Dt(t[0]-e[0])<pt&&Dt(t[1]-e[1])<pt}function po(t,e,r,a){this.x=t,this.z=e,this.o=r,this.e=a,this.v=!1,this.n=this.p=null}function gh(t,e,r,a,s){var l,h,c=[],f=[];if(t.forEach(function(S){if(!((b=S.length-1)<=0)){var b,V,A=S[0],C=S[b];if(go(A,C)){if(!A[2]&&!C[2]){for(s.lineStart(),l=0;l<b;++l)s.point((A=S[l])[0],A[1]);return void s.lineEnd()}C[0]+=2*pt}c.push(V=new po(A,S,null,!0)),f.push(V.o=new po(A,null,V,!1)),c.push(V=new po(C,S,null,!1)),f.push(V.o=new po(C,null,V,!0))}}),c.length){for(f.sort(e),ph(c),ph(f),l=0,h=f.length;l<h;++l)f[l].e=r=!r;for(var p,y,d=c[0];;){for(var _=d,x=!0;_.v;)if((_=_.n)===d)return;p=_.z,s.lineStart();do{if(_.v=_.o.v=!0,_.e){if(x)for(l=0,h=p.length;l<h;++l)s.point((y=p[l])[0],y[1]);else a(_.x,_.n.x,1,s);_=_.n}else{if(x)for(l=(p=_.p.z).length-1;l>=0;--l)s.point((y=p[l])[0],y[1]);else a(_.x,_.p.x,-1,s);_=_.p}p=(_=_.o).z,x=!x}while(!_.v);s.lineEnd()}}}function ph(t){if(e=t.length){for(var e,s,r=0,a=t[0];++r<e;)a.n=s=t[r],s.p=a,a=s;a.n=s=t[0],s.p=a}}wu.invert=wu;var Su=Wn();function Tu(t){return Dt(t[0])<=Vt?t[0]:en(t[0])*((Dt(t[0])+Vt)%Oe-Vt)}function _h(t,e){var r=Tu(e),a=e[1],s=st(a),c=[st(r),-ht(r),0],f=0,l=0;Su.reset(),1===s?a=ue+pt:-1===s&&(a=-ue-pt);for(var h=0,d=t.length;h<d;++h)if(y=(p=t[h]).length)for(var p,y,_=p[y-1],x=Tu(_),S=_[1]/2+Qa,b=st(S),A=ht(S),C=0;C<y;++C,x=M,b=z,A=B,_=V){var V=p[C],M=Tu(V),R=V[1]/2+Qa,z=st(R),B=ht(R),X=M-x,j=X>=0?1:-1,W=j*X,q=W>Vt,U=b*z;if(Su.add($e(U*j*st(W),A*B+U*ht(W))),f+=q?X+j*Oe:X,q^x>=r^M>=r){var G=zi(fi(_),fi(V));ao(G);var H=zi(c,G);ao(H);var J=(q^X>=0?-1:1)*Ne(H[2]);(a>J||a===J&&(G[0]||G[1]))&&(l+=q^X>=0?1:-1)}}return(f<-pt||f<pt&&Su<-pt)^1&l}function yh(t,e,r,a){return function(s){var d,p,y,c=e(s),f=dh(),l=e(f),h=!1,_={point:x,lineStart:b,lineEnd:A,polygonStart:function(){_.point=C,_.lineStart=V,_.lineEnd=M,p=[],d=[]},polygonEnd:function(){_.point=x,_.lineStart=b,_.lineEnd=A,p=(0,Q.TS)(p);var R=_h(d,a);p.length?(h||(s.polygonStart(),h=!0),gh(p,b1,R,r,s)):R&&(h||(s.polygonStart(),h=!0),s.lineStart(),r(null,null,1,s),s.lineEnd()),h&&(s.polygonEnd(),h=!1),p=d=null},sphere:function(){s.polygonStart(),s.lineStart(),r(null,null,1,s),s.lineEnd(),s.polygonEnd()}};function x(R,z){t(R,z)&&s.point(R,z)}function S(R,z){c.point(R,z)}function b(){_.point=S,c.lineStart()}function A(){_.point=x,c.lineEnd()}function C(R,z){y.push([R,z]),l.point(R,z)}function V(){l.lineStart(),y=[]}function M(){C(y[0][0],y[0][1]),l.lineEnd();var B,j,W,q,R=l.clean(),z=f.result(),X=z.length;if(y.pop(),d.push(y),y=null,X){if(1&R){if((j=(W=z[0]).length-1)>0){for(h||(s.polygonStart(),h=!0),s.lineStart(),B=0;B<j;++B)s.point((q=W[B])[0],q[1]);s.lineEnd()}return}X>1&&2&R&&z.push(z.pop().concat(z.shift())),p.push(z.filter(w1))}}return _}}function w1(t){return t.length>1}function b1(t,e){return((t=t.x)[0]<0?t[1]-ue-pt:ue-t[1])-((e=e.x)[0]<0?e[1]-ue-pt:ue-e[1])}const Au=yh(function(){return!0},function S1(t){var s,e=NaN,r=NaN,a=NaN;return{lineStart:function(){t.lineStart(),s=1},point:function(c,f){var l=c>0?Vt:-Vt,h=Dt(c-e);Dt(h-Vt)<pt?(t.point(e,r=(r+f)/2>0?ue:-ue),t.point(a,r),t.lineEnd(),t.lineStart(),t.point(l,r),t.point(c,r),s=0):a!==l&&h>=Vt&&(Dt(e-a)<pt&&(e-=a*pt),Dt(c-l)<pt&&(c-=l*pt),r=function T1(t,e,r,a){var s,c,f=st(t-r);return Dt(f)>pt?Fi((st(e)*(c=ht(a))*st(r)-st(a)*(s=ht(e))*st(t))/(s*c*f)):(e+a)/2}(e,r,c,f),t.point(a,r),t.lineEnd(),t.lineStart(),t.point(l,r),s=0),t.point(e=c,r=f),a=l},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-s}}},function A1(t,e,r,a){var s;if(null==t)a.point(-Vt,s=r*ue),a.point(0,s),a.point(Vt,s),a.point(Vt,0),a.point(Vt,-s),a.point(0,-s),a.point(-Vt,-s),a.point(-Vt,0),a.point(-Vt,s);else if(Dt(t[0]-e[0])>pt){var c=t[0]<e[0]?Vt:-Vt;a.point(-c,s=r*c/2),a.point(0,s),a.point(c,s)}else a.point(e[0],e[1])},[-Vt,-ue]);function mh(t){var e=ht(t),r=6*_t,a=e>0,s=Dt(e)>pt;function f(p,y){return ht(p)*ht(y)>e}function h(p,y,_){var b=[1,0,0],A=zi(fi(p),fi(y)),C=io(A,A),V=A[0],M=C-V*V;if(!M)return!_&&p;var R=e*C/M,z=-e*V/M,B=zi(b,A),X=ro(b,R);gu(X,ro(A,z));var W=B,q=io(X,W),U=io(W,W),G=q*q-U*(io(X,X)-1);if(!(G<0)){var H=he(G),J=ro(W,(-q-H)/U);if(gu(J,X),J=no(J),!_)return J;var lt,Y=p[0],K=y[0],ct=p[1],ot=y[1];K<Y&&(lt=Y,Y=K,K=lt);var St=K-Y,Tt=Dt(St-Vt)<pt;if(!Tt&&ot<ct&&(lt=ct,ct=ot,ot=lt),Tt||St<pt?Tt?ct+ot>0^J[1]<(Dt(J[0]-Y)<pt?ct:ot):ct<=J[1]&&J[1]<=ot:St>Vt^(Y<=J[0]&&J[0]<=K)){var Kt=ro(W,(-q+H)/U);return gu(Kt,X),[J,no(Kt)]}}}function d(p,y){var _=a?t:Vt-t,x=0;return p<-_?x|=1:p>_&&(x|=2),y<-_?x|=4:y>_&&(x|=8),x}return yh(f,function l(p){var y,_,x,S,b;return{lineStart:function(){S=x=!1,b=1},point:function(A,C){var M,V=[A,C],R=f(A,C),z=a?R?0:d(A,C):R?d(A+(A<0?Vt:-Vt),C):0;if(!y&&(S=x=R)&&p.lineStart(),R!==x&&(!(M=h(y,V))||go(y,M)||go(V,M))&&(V[2]=1),R!==x)b=0,R?(p.lineStart(),M=h(V,y),p.point(M[0],M[1])):(M=h(y,V),p.point(M[0],M[1],2),p.lineEnd()),y=M;else if(s&&y&&a^R){var B;!(z&_)&&(B=h(V,y,!0))&&(b=0,a?(p.lineStart(),p.point(B[0][0],B[0][1]),p.point(B[1][0],B[1][1]),p.lineEnd()):(p.point(B[1][0],B[1][1]),p.lineEnd(),p.lineStart(),p.point(B[0][0],B[0][1],3)))}R&&(!y||!go(y,V))&&p.point(V[0],V[1]),y=V,x=R,_=z},lineEnd:function(){x&&p.lineEnd(),y=null},clean:function(){return b|(S&&x)<<1}}},function c(p,y,_,x){lh(x,t,r,_,p,y)},a?[0,-t]:[-Vt,t-Vt])}var Mr=1e9,_o=-Mr;function yo(t,e,r,a){function s(d,p){return t<=d&&d<=r&&e<=p&&p<=a}function c(d,p,y,_){var x=0,S=0;if(null==d||(x=f(d,y))!==(S=f(p,y))||h(d,p)<0^y>0)do{_.point(0===x||3===x?t:r,x>1?a:e)}while((x=(x+y+4)%4)!==S);else _.point(p[0],p[1])}function f(d,p){return Dt(d[0]-t)<pt?p>0?0:3:Dt(d[0]-r)<pt?p>0?2:1:Dt(d[1]-e)<pt?p>0?1:0:p>0?3:2}function l(d,p){return h(d.x,p.x)}function h(d,p){var y=f(d,1),_=f(p,1);return y!==_?y-_:0===y?p[1]-d[1]:1===y?d[0]-p[0]:2===y?d[1]-p[1]:p[0]-d[0]}return function(d){var _,x,S,b,A,C,V,M,R,z,B,p=d,y=dh(),X={point:j,lineStart:function G(){X.point=J,x&&x.push(S=[]),z=!0,R=!1,V=M=NaN},lineEnd:function H(){_&&(J(b,A),C&&R&&y.rejoin(),_.push(y.result())),X.point=j,R&&p.lineEnd()},polygonStart:function q(){p=y,_=[],x=[],B=!0},polygonEnd:function U(){var Y=function W(){for(var Y=0,K=0,ct=x.length;K<ct;++K)for(var re,Kt,ot=x[K],lt=1,St=ot.length,Tt=ot[0],zt=Tt[0],fe=Tt[1];lt<St;++lt)re=zt,Kt=fe,zt=(Tt=ot[lt])[0],fe=Tt[1],Kt<=a?fe>a&&(zt-re)*(a-Kt)>(fe-Kt)*(t-re)&&++Y:fe<=a&&(zt-re)*(a-Kt)<(fe-Kt)*(t-re)&&--Y;return Y}(),K=B&&Y,ct=(_=(0,Q.TS)(_)).length;(K||ct)&&(d.polygonStart(),K&&(d.lineStart(),c(null,null,1,d),d.lineEnd()),ct&&gh(_,l,Y,c,d),d.polygonEnd()),p=d,_=x=S=null}};function j(Y,K){s(Y,K)&&p.point(Y,K)}function J(Y,K){var ct=s(Y,K);if(x&&S.push([Y,K]),z)b=Y,A=K,C=ct,z=!1,ct&&(p.lineStart(),p.point(Y,K));else if(ct&&R)p.point(Y,K);else{var ot=[V=Math.max(_o,Math.min(Mr,V)),M=Math.max(_o,Math.min(Mr,M))],lt=[Y=Math.max(_o,Math.min(Mr,Y)),K=Math.max(_o,Math.min(Mr,K))];!function P1(t,e,r,a,s,c){var S,f=t[0],l=t[1],p=0,y=1,_=e[0]-f,x=e[1]-l;if(S=r-f,_||!(S>0)){if(S/=_,_<0){if(S<p)return;S<y&&(y=S)}else if(_>0){if(S>y)return;S>p&&(p=S)}if(S=s-f,_||!(S<0)){if(S/=_,_<0){if(S>y)return;S>p&&(p=S)}else if(_>0){if(S<p)return;S<y&&(y=S)}if(S=a-l,x||!(S>0)){if(S/=x,x<0){if(S<p)return;S<y&&(y=S)}else if(x>0){if(S>y)return;S>p&&(p=S)}if(S=c-l,x||!(S<0)){if(S/=x,x<0){if(S>y)return;S>p&&(p=S)}else if(x>0){if(S<p)return;S<y&&(y=S)}return p>0&&(t[0]=f+p*_,t[1]=l+p*x),y<1&&(e[0]=f+y*_,e[1]=l+y*x),!0}}}}}(ot,lt,t,e,r,a)?ct&&(p.lineStart(),p.point(Y,K),B=!1):(R||(p.lineStart(),p.point(ot[0],ot[1])),p.point(lt[0],lt[1]),ct||p.lineEnd(),B=!1)}V=Y,M=K,R=ct}return X}}function C1(){var s,c,f,t=0,e=0,r=960,a=500;return f={stream:function(l){return s&&c===l?s:s=yo(t,e,r,a)(c=l)},extent:function(l){return arguments.length?(t=+l[0][0],e=+l[0][1],r=+l[1][0],a=+l[1][1],s=c=null,f):[[t,e],[r,a]]}}}var Cu,mo,xo,Pu=Wn(),Bi={sphere:ae,point:ae,lineStart:function L1(){Bi.point=E1,Bi.lineEnd=M1},lineEnd:ae,polygonStart:ae,polygonEnd:ae};function M1(){Bi.point=Bi.lineEnd=ae}function E1(t,e){Cu=t*=_t,mo=st(e*=_t),xo=ht(e),Bi.point=k1}function k1(t,e){t*=_t;var r=st(e*=_t),a=ht(e),s=Dt(t-Cu),c=ht(s),l=a*st(s),h=xo*r-mo*a*c,d=mo*r+xo*a*c;Pu.add($e(he(l*l+h*h),d)),Cu=t,mo=r,xo=a}function xh(t){return Pu.reset(),ln(t,Bi),+Pu}var Lu=[null,null],R1={type:"LineString",coordinates:Lu};function vo(t,e){return Lu[0]=t,Lu[1]=e,xh(R1)}var vh={Feature:function(t,e){return wo(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,a=-1,s=r.length;++a<s;)if(wo(r[a].geometry,e))return!0;return!1}},wh={Sphere:function(){return!0},Point:function(t,e){return bh(t.coordinates,e)},MultiPoint:function(t,e){for(var r=t.coordinates,a=-1,s=r.length;++a<s;)if(bh(r[a],e))return!0;return!1},LineString:function(t,e){return Sh(t.coordinates,e)},MultiLineString:function(t,e){for(var r=t.coordinates,a=-1,s=r.length;++a<s;)if(Sh(r[a],e))return!0;return!1},Polygon:function(t,e){return Th(t.coordinates,e)},MultiPolygon:function(t,e){for(var r=t.coordinates,a=-1,s=r.length;++a<s;)if(Th(r[a],e))return!0;return!1},GeometryCollection:function(t,e){for(var r=t.geometries,a=-1,s=r.length;++a<s;)if(wo(r[a],e))return!0;return!1}};function wo(t,e){return!(!t||!wh.hasOwnProperty(t.type))&&wh[t.type](t,e)}function bh(t,e){return 0===vo(t,e)}function Sh(t,e){for(var r,a,s,c=0,f=t.length;c<f;c++){if(0===(a=vo(t[c],e))||c>0&&(s=vo(t[c],t[c-1]))>0&&r<=s&&a<=s&&(r+a-s)*(1-Math.pow((r-a)/s,2))<Za*s)return!0;r=a}return!1}function Th(t,e){return!!_h(t.map(V1),Ah(e))}function V1(t){return(t=t.map(Ah)).pop(),t}function Ah(t){return[t[0]*_t,t[1]*_t]}function G1(t,e){return(t&&vh.hasOwnProperty(t.type)?vh[t.type]:wo)(t,e)}function Ph(t,e,r){var a=(0,Q.w6)(t,e-pt,r).concat(e);return function(s){return a.map(function(c){return[s,c]})}}function Ch(t,e,r){var a=(0,Q.w6)(t,e-pt,r).concat(e);return function(s){return a.map(function(c){return[c,s]})}}function Lh(){var t,e,r,a,s,c,f,l,_,x,S,b,h=10,d=h,p=90,y=360,A=2.5;function C(){return{type:"MultiLineString",coordinates:V()}}function V(){return(0,Q.w6)(ja(a/p)*p,r,p).map(S).concat((0,Q.w6)(ja(l/y)*y,f,y).map(b)).concat((0,Q.w6)(ja(e/h)*h,t,h).filter(function(M){return Dt(M%p)>pt}).map(_)).concat((0,Q.w6)(ja(c/d)*d,s,d).filter(function(M){return Dt(M%y)>pt}).map(x))}return C.lines=function(){return V().map(function(M){return{type:"LineString",coordinates:M}})},C.outline=function(){return{type:"Polygon",coordinates:[S(a).concat(b(f).slice(1),S(r).reverse().slice(1),b(l).reverse().slice(1))]}},C.extent=function(M){return arguments.length?C.extentMajor(M).extentMinor(M):C.extentMinor()},C.extentMajor=function(M){return arguments.length?(l=+M[0][1],f=+M[1][1],(a=+M[0][0])>(r=+M[1][0])&&(M=a,a=r,r=M),l>f&&(M=l,l=f,f=M),C.precision(A)):[[a,l],[r,f]]},C.extentMinor=function(M){return arguments.length?(c=+M[0][1],s=+M[1][1],(e=+M[0][0])>(t=+M[1][0])&&(M=e,e=t,t=M),c>s&&(M=c,c=s,s=M),C.precision(A)):[[e,c],[t,s]]},C.step=function(M){return arguments.length?C.stepMajor(M).stepMinor(M):C.stepMinor()},C.stepMajor=function(M){return arguments.length?(p=+M[0],y=+M[1],C):[p,y]},C.stepMinor=function(M){return arguments.length?(h=+M[0],d=+M[1],C):[h,d]},C.precision=function(M){return arguments.length?(A=+M,_=Ph(c,s,90),x=Ch(e,t,A),S=Ph(l,f,90
vendor: 5,717 bytes, line 1
1),b=Ch(a,r,A),C):A},C.extentMajor([[-180,-90+pt],[180,90-pt]]).extentMinor([[-180,-80-pt],[180,80+pt]])}function O1(){return Lh()()}function $1(t,e){var r=t[0]*_t,a=t[1]*_t,s=e[0]*_t,c=e[1]*_t,f=ht(a),l=st(a),h=ht(c),d=st(c),p=f*ht(r),y=f*st(r),_=h*ht(s),x=h*st(s),S=2*Ne(he(Xl(c-a)+f*h*Xl(s-r))),b=st(S),A=S?function(C){var V=st(C*=S)/b,M=st(S-C)/b,R=M*p+V*_,z=M*y+V*x,B=M*l+V*d;return[$e(z,R)*te,$e(B,he(R*R+z*z))*te]}:function(){return[r*te,a*te]};return A.distance=S,A}function Er(t){return t}var Mh,Eh,ku,Ru,Mu=Wn(),Eu=Wn(),Zn={point:ae,lineStart:ae,lineEnd:ae,polygonStart:function(){Zn.lineStart=N1,Zn.lineEnd=I1},polygonEnd:function(){Zn.lineStart=Zn.lineEnd=Zn.point=ae,Mu.add(Dt(Eu)),Eu.reset()},result:function(){var t=Mu/2;return Mu.reset(),t}};function N1(){Zn.point=D1}function D1(t,e){Zn.point=kh,Mh=ku=t,Eh=Ru=e}function kh(t,e){Eu.add(Ru*t-ku*e),ku=t,Ru=e}function I1(){kh(Mh,Eh)}const Rh=Zn;var Hi=1/0,bo=Hi,kr=-Hi,So=kr;const To={point:function z1(t,e){t<Hi&&(Hi=t),t>kr&&(kr=t),e<bo&&(bo=e),e>So&&(So=e)},lineStart:ae,lineEnd:ae,polygonStart:ae,polygonEnd:ae,result:function(){var t=[[Hi,bo],[kr,So]];return kr=So=-(bo=Hi=1/0),t}};var Vh,Gh,Cn,Ln,Vu=0,Gu=0,Rr=0,Ao=0,Po=0,Ui=0,Ou=0,$u=0,Vr=0,dn={point:hi,lineStart:Oh,lineEnd:$h,polygonStart:function(){dn.lineStart=B1,dn.lineEnd=H1},polygonEnd:function(){dn.point=hi,dn.lineStart=Oh,dn.lineEnd=$h},result:function(){var t=Vr?[Ou/Vr,$u/Vr]:Ui?[Ao/Ui,Po/Ui]:Rr?[Vu/Rr,Gu/Rr]:[NaN,NaN];return Vu=Gu=Rr=Ao=Po=Ui=Ou=$u=Vr=0,t}};function hi(t,e){Vu+=t,Gu+=e,++Rr}function Oh(){dn.point=X1}function X1(t,e){dn.point=Y1,hi(Cn=t,Ln=e)}function Y1(t,e){var r=t-Cn,a=e-Ln,s=he(r*r+a*a);Ao+=s*(Cn+t)/2,Po+=s*(Ln+e)/2,Ui+=s,hi(Cn=t,Ln=e)}function $h(){dn.point=hi}function B1(){dn.point=U1}function H1(){Nh(Vh,Gh)}function U1(t,e){dn.point=Nh,hi(Vh=Cn=t,Gh=Ln=e)}function Nh(t,e){var r=t-Cn,a=e-Ln,s=he(r*r+a*a);Ao+=s*(Cn+t)/2,Po+=s*(Ln+e)/2,Ui+=s,Ou+=(s=Ln*t-Cn*e)*(Cn+t),$u+=s*(Ln+e),Vr+=3*s,hi(Cn=t,Ln=e)}const Dh=dn;function Ih(t){this._context=t}Ih.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,Oe)}},result:ae};var Du,Fh,zh,Gr,Or,Nu=Wn(),Co={point:ae,lineStart:function(){Co.point=W1},lineEnd:function(){Du&&Xh(Fh,zh),Co.point=ae},polygonStart:function(){Du=!0},polygonEnd:function(){Du=null},result:function(){var t=+Nu;return Nu.reset(),t}};function W1(t,e){Co.point=Xh,Fh=Gr=t,zh=Or=e}function Xh(t,e){Nu.add(he((Gr-=t)*Gr+(Or-=e)*Or)),Gr=t,Or=e}const Yh=Co;function Bh(){this._string=[]}function Hh(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function q1(t,e){var a,s,r=4.5;function c(f){return f&&("function"==typeof r&&s.pointRadius(+r.apply(this,arguments)),ln(f,a(s))),s.result()}return c.area=function(f){return ln(f,a(Rh)),Rh.result()},c.measure=function(f){return ln(f,a(Yh)),Yh.result()},c.bounds=function(f){return ln(f,a(To)),To.result()},c.centroid=function(f){return ln(f,a(Dh)),Dh.result()},c.projection=function(f){return arguments.length?(a=null==f?(t=null,Er):(t=f).stream,c):t},c.context=function(f){return arguments.length?(s=null==f?(e=null,new Bh):new Ih(e=f),"function"!=typeof r&&s.pointRadius(r),c):e},c.pointRadius=function(f){return arguments.length?(r="function"==typeof f?f:(s.pointRadius(+f),+f),c):r},c.projection(t).context(e)}function Z1(t){return{stream:$r(t)}}function $r(t){return function(e){var r=new Iu;for(var a in t)r[a]=t[a];return r.stream=e,r}}function Iu(){}function Fu(t,e,r){var a=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=a&&t.clipExtent(null),ln(r,t.stream(To)),e(To.result()),null!=a&&t.clipExtent(a),t}function Lo(t,e,r){return Fu(t,function(a){var s=e[1][0]-e[0][0],c=e[1][1]-e[0][1],f=Math.min(s/(a[1][0]-a[0][0]),c/(a[1][1]-a[0][1])),l=+e[0][0]+(s-f*(a[1][0]+a[0][0]))/2,h=+e[0][1]+(c-f*(a[1][1]+a[0][1]))/2;t.scale(150*f).translate([l,h])},r)}function zu(t,e,r){return Lo(t,[[0,0],e],r)}function Xu(t,e,r){return Fu(t,function(a){var s=+e,c=s/(a[1][0]-a[0][0]),f=(s-c*(a[1][0]+a[0][0]))/2,l=-c*a[0][1];t.scale(150*c).translate([f,l])},r)}function Yu(t,e,r){return Fu(t,function(a){var s=+e,c=s/(a[1][1]-a[0][1]),f=-c*a[0][0],l=(s-c*(a[1][1]+a[0][1]))/2;t.scale(150*c).translate([f,l])},r)}Bh.prototype={_radius:4.5,_circle:Hh(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=Hh(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},Iu.prototype={constructor:Iu,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Q1=ht(30*_t);function Wh(t,e){return+e?function K1(t,e){function r(a,s,c,f,l,h,d,p,y,_,x,S,b,A){var C=d-a,V=p-s,M=C*C+V*V;
vendor: 5,609 bytes, line 1
1if(M>4*e&&b--){var R=f+_,z=l+x,B=h+S,X=he(R*R+z*z+B*B),j=Ne(B/=X),W=Dt(Dt(B)-1)<pt||Dt(c-y)<pt?(c+y)/2:$e(z,R),q=t(W,j),U=q[0],G=q[1],H=U-a,J=G-s,Y=V*H-C*J;(Y*Y/M>e||Dt((C*H+V*J)/M-.5)>.3||f*_+l*x+h*S<Q1)&&(r(a,s,c,f,l,h,U,G,W,R/=X,z/=X,B,b,A),A.point(U,G),r(U,G,W,R,z,B,d,p,y,_,x,S,b,A))}}return function(a){var s,c,f,l,h,d,p,y,_,x,S,b,A={point:C,lineStart:V,lineEnd:R,polygonStart:function(){a.polygonStart(),A.lineStart=z},polygonEnd:function(){a.polygonEnd(),A.lineStart=V}};function C(j,W){j=t(j,W),a.point(j[0],j[1])}function V(){y=NaN,A.point=M,a.lineStart()}function M(j,W){var q=fi([j,W]),U=t(j,W);r(y,_,p,x,S,b,y=U[0],_=U[1],p=j,x=q[0],S=q[1],b=q[2],16,a),a.point(y,_)}function R(){A.point=C,a.lineEnd()}function z(){V(),A.point=B,A.lineEnd=X}function B(j,W){M(s=j,W),c=y,f=_,l=x,h=S,d=b,A.point=M}function X(){r(y,_,p,x,S,b,c,f,s,l,h,d,16,a),A.lineEnd=R,R()}return A}}(t,e):function j1(t){return $r({point:function(e,r){e=t(e,r),this.stream.point(e[0],e[1])}})}(t)}var J1=$r({point:function(t,e){this.stream.point(t*_t,e*_t)}});function ev(t,e,r,a,s){function c(f,l){return[e+t*(f*=a),r-t*(l*=s)]}return c.invert=function(f,l){return[(f-e)/t*a,(r-l)/t*s]},c}function qh(t,e,r,a,s,c){var f=ht(c),l=st(c),h=f*t,d=l*t,p=f/t,y=l/t,_=(l*r-f*e)/t,x=(l*e+f*r)/t;function S(b,A){return[h*(b*=a)-d*(A*=s)+e,r-d*b-h*A]}return S.invert=function(b,A){return[a*(p*b-y*A+_),s*(x-y*b-p*A)]},S}function Mn(t){return Bu(function(){return t})()}function Bu(t){var e,p,C,V,M,B,X,j,W,q,r=150,a=480,s=250,c=0,f=0,l=0,h=0,d=0,y=0,_=1,x=1,S=null,b=Au,A=null,R=Er,z=.5;function U(Y){return j(Y[0]*_t,Y[1]*_t)}function G(Y){return(Y=j.invert(Y[0],Y[1]))&&[Y[0]*te,Y[1]*te]}function H(){var Y=qh(r,0,0,_,x,y).apply(null,e(c,f)),K=(y?qh:ev)(r,a-Y[0],s-Y[1],_,x,y);return p=bu(l,h,d),X=vu(e,K),j=vu(p,X),B=Wh(X,z),J()}function J(){return W=q=null,U}return U.stream=function(Y){return W&&q===Y?W:W=J1(function tv(t){return $r({point:function(e,r){var a=t(e,r);return this.stream.point(a[0],a[1])}})}(p)(b(B(R(q=Y)))))},U.preclip=function(Y){return arguments.length?(b=Y,S=void 0,J()):b},U.postclip=function(Y){return arguments.length?(R=Y,A=C=V=M=null,J()):R},U.clipAngle=function(Y){return arguments.length?(b=+Y?mh(S=Y*_t):(S=null,Au),J()):S*te},U.clipExtent=function(Y){return arguments.length?(R=null==Y?(A=C=V=M=null,Er):yo(A=+Y[0][0],C=+Y[0][1],V=+Y[1][0],M=+Y[1][1]),J()):null==A?null:[[A,C],[V,M]]},U.scale=function(Y){return arguments.length?(r=+Y,H()):r},U.translate=function(Y){return arguments.length?(a=+Y[0],s=+Y[1],H()):[a,s]},U.center=function(Y){return arguments.length?(c=Y[0]%360*_t,f=Y[1]%360*_t,H()):[c*te,f*te]},U.rotate=function(Y){return arguments.length?(l=Y[0]%360*_t,h=Y[1]%360*_t,d=Y.length>2?Y[2]%360*_t:0,H()):[l*te,h*te,d*te]},U.angle=function(Y){return arguments.length?(y=Y%360*_t,H()):y*te},U.reflectX=function(Y){return arguments.length?(_=Y?-1:1,H()):_<0},U.reflectY=function(Y){return arguments.length?(x=Y?-1:1,H()):x<0},U.precision=function(Y){return arguments.length?(B=Wh(X,z=Y*Y),J()):he(z)},U.fitExtent=function(Y,K){return Lo(U,Y,K)},U.fitSize=function(Y,K){return zu(U,Y,K)},U.fitWidth=function(Y,K){return Xu(U,Y,K)},U.fitHeight=function(Y,K){return Yu(U,Y,K)},function(){return e=t.apply(this,arguments),U.invert=e.invert&&G,H()}}function Hu(t){var e=0,r=Vt/3,a=Bu(t),s=a(e,r);return s.parallels=function(c){return arguments.length?a(e=c[0]*_t,r=c[1]*_t):[e*te,r*te]},s}function Zh(t,e){var r=st(t),a=(r+st(e))/2;if(Dt(a)<pt)return function nv(t){var e=ht(t);function r(a,s){return[a*e,st(s)/e]}return r.invert=function(a,s){return[a/e,Ne(s*e)]},r}(t);var s=1+r*(2*a-r),c=he(s)/a;function f(l,h){var d=he(s-2*a*st(h))/a;return[d*st(l*=a),c-d*ht(l)]}return f.invert=function(l,h){var d=c-h,p=$e(l,Dt(d))*en(d);return d*a<0&&(p-=Vt*en(l)*en(d)),[p/a,Ne((s-(l*l+d*d)*a*a)/(2*a))]},f}function Mo(){return Hu(Zh).scale(155.424).center([0,33.6442])}function Qh(){return Mo().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function rv(){var t,e,a,c,l,h,r=Qh(),s=Mo().rotate([154,0]).center([-2,58.5]).parallels([55,65]),f=Mo().rotate([157,0]).center([-3,19.9]).parallels([8,18]),d={point:function(_,x){h=[_,x]}};function p(_){var x=_[0],S=_[1];return h=null,a.point(x,S),h||(c.point(x,S),h)||(l.point(x,S),h)}function y(){return t=e=null,p}return p.invert=function(_){var x=r.scale(),S=r.translate(),b=(_[0]-S[0])/x,A=(_[1]-S[1])/x;return(A>=.12&&A<.234&&b>=-.425&&b<-.214?s:A>=.166&&A<.234&&b>=-.214&&b<-.115?f:r).invert(_)},p.stream=function(_){return t&&e===_?t:t=function iv(t){var e=t.length;return{point:function(r,a){for(var s=-1;++s<e;)t[s].point(r,a)},sphere:function(){for(var r=-1;++r<e;)t[r].sphere()},lineStart:function(){for(var r=-1;++r<e;)t[r].lineStart()},lineEnd:function(){for(var r=-1;++r<e;)t[r].lineEnd()},polygonStart:function(){for(var r=-1;++r<e;)t[r].polygonStart()},polygonEnd:function(){for(var r=-1;++r<e;)t[r].polygonEnd()}}}([r.stream(e=_),s.stream(_),f.stream(_)])},p.precision=function(_){return arguments.length?(r.precision(_),s.precision(_),f.precision(_),y()):r.precision()},p.scale=function(_){return arguments.length?(r.scale(_),s.scale(.35*_),f.scale(_),p.translate(r.translate())):r.scale()},p.translate=function(_){if(!arguments.length)return r.translate();var x=r.scale(),S=+_[0],b=+_[1];return a=r.translate(_).clipExtent([[S-.455*x,b-.238*x],[S+.455*x,b+.238*x]]).stream(d),c=s.translate([S-.307*x,b+.201*x]).clipExtent([[S-.425*x+pt,b+.12*x+pt],[S-.214*x-pt,b+.234*x-pt]]).stream(d),l=f.translate([S-.205*x,b+.212*x]).clipExtent([[S-.214*x+pt,b+.166*x+pt],[S-.115*x-pt,b+.234*x-pt]]).stream(d),y()}
vendor: 4,077 bytes, line 1
1,p.fitExtent=function(_,x){return Lo(p,_,x)},p.fitSize=function(_,x){return zu(p,_,x)},p.fitWidth=function(_,x){return Xu(p,_,x)},p.fitHeight=function(_,x){return Yu(p,_,x)},p.scale(1070)}function jh(t){return function(e,r){var a=ht(e),s=ht(r),c=t(a*s);return[c*s*st(e),c*st(r)]}}function Nr(t){return function(e,r){var a=he(e*e+r*r),s=t(a),c=st(s),f=ht(s);return[$e(e*c,a*f),Ne(a&&r*c/a)]}}var Uu=jh(function(t){return he(2/(1+t))});function av(){return Mn(Uu).scale(124.75).clipAngle(179.999)}Uu.invert=Nr(function(t){return 2*Ne(t/2)});var Wu=jh(function(t){return(t=zl(t))&&t/st(t)});function ov(){return Mn(Wu).scale(79.4188).clipAngle(179.999)}function Dr(t,e){return[t,Ka(cu((ue+e)/2))]}function sv(){return Kh(Dr).scale(961/Oe)}function Kh(t){var l,h,d,e=Mn(t),r=e.center,a=e.scale,s=e.translate,c=e.clipExtent,f=null;function p(){var y=Vt*a(),_=e(fh(e.rotate()).invert([0,0]));return c(null==f?[[_[0]-y,_[1]-y],[_[0]+y,_[1]+y]]:t===Dr?[[Math.max(_[0]-y,f),l],[Math.min(_[0]+y,h),d]]:[[f,Math.max(_[1]-y,l)],[h,Math.min(_[1]+y,d)]])}return e.scale=function(y){return arguments.length?(a(y),p()):a()},e.translate=function(y){return arguments.length?(s(y),p()):s()},e.center=function(y){return arguments.length?(r(y),p()):r()},e.clipExtent=function(y){return arguments.length?(null==y?f=l=h=d=null:(f=+y[0][0],l=+y[0][1],h=+y[1][0],d=+y[1][1]),p()):null==f?null:[[f,l],[h,d]]},p()}function Eo(t){return cu((ue+t)/2)}function Jh(t,e){var r=ht(t),a=t===e?st(t):Ka(r/ht(e))/Ka(Eo(e)/Eo(t)),s=r*uu(Eo(t),a)/a;if(!a)return Dr;function c(f,l){s>0?l<-ue+pt&&(l=-ue+pt):l>ue-pt&&(l=ue-pt);var h=s/uu(Eo(l),a);return[h*st(a*f),s-h*ht(a*f)]}return c.invert=function(f,l){var h=s-l,d=en(a)*he(f*f+h*h),p=$e(f,Dt(h))*en(h);return h*a<0&&(p-=Vt*en(f)*en(h)),[p/a,2*Fi(uu(s/d,1/a))-ue]},c}function uv(){return Hu(Jh).scale(109.5).parallels([30,30])}function Ir(t,e){return[t,e]}function cv(){return Mn(Ir).scale(152.63)}function td(t,e){var r=ht(t),a=t===e?st(t):(r-ht(e))/(e-t),s=r/a+t;if(Dt(a)<pt)return Ir;function c(f,l){var h=s-l,d=a*f;return[h*st(d),s-h*ht(d)]}return c.invert=function(f,l){var h=s-l,d=$e(f,Dt(h))*en(h);return h*a<0&&(d-=Vt*en(f)*en(h)),[d/a,s-en(a)*he(f*f+h*h)]},c}function fv(){return Hu(td).scale(131.154).center([0,13.9389])}Wu.invert=Nr(function(t){return t}),Dr.invert=function(t,e){return[t,2*Fi(Fl(e))-ue]},Ir.invert=Ir;var Fr=1.340264,zr=-.081106,Xr=893e-6,Yr=.003796,ko=he(3)/2;function qu(t,e){var r=Ne(ko*st(e)),a=r*r,s=a*a*a;return[t*ht(r)/(ko*(Fr+3*zr*a+s*(7*Xr+9*Yr*a))),r*(Fr+zr*a+s*(Xr+Yr*a))]}function hv(){return Mn(qu).scale(177.158)}function Zu(t,e){var r=ht(e),a=ht(t)*r;return[r*st(t)/a,st(e)/a]}function dv(){return Mn(Zu).scale(144.049).clipAngle(60)}function gv(){var f,l,d,p,y,A,C,t=1,e=0,r=0,a=1,s=1,c=0,h=null,_=1,x=1,S=$r({point:function(R,z){var B=M([R,z]);this.stream.point(B[0],B[1])}}),b=Er;function V(){return _=t*a,x=t*s,A=C=null,M}function M(R){var z=R[0]*_,B=R[1]*x;if(c){var X=B*f-z*l;z=z*f+B*l,B=X}return[z+e,B+r]}return M.invert=function(R){var z=R[0]-e,B=R[1]-r;if(c){var X=B*f+z*l;z=z*f-B*l,B=X}return[z/_,B/x]},M.stream=function(R){return A&&C===R?A:A=S(b(C=R))},M.postclip=function(R){return arguments.length?(b=R,h=d=p=y=null,V()):b},M.clipExtent=function(R){return arguments.length?(b=null==R?(h=d=p=y=null,Er):yo(h=+R[0][0],d=+R[0][1],p=+R[1][0],y=+R[1][1]),V()):null==h?null:[[h,d],[p,y]]},M.scale=function(R){return arguments.length?(t=+R,V()):t},M.translate=function(R){return arguments.length?(e=+R[0],r=+R[1],V()):[e,r]},M.angle=function(R){return arguments.length?(l=st(c=R%360*_t),f=ht(c),V()):c*te},M.reflectX=function(R){return arguments.length?(a=R?-1:1,V()):a<0},M.reflectY=function(R){return arguments.length?(s=R?-1:1,V()):s<0},M.fitExtent=function(R,z){return Lo(M,R,z)},M.fitSize=function(R,z){return zu(M,R,z)},M.fitWidth=function(R,z){return Xu(M,R,z)},M.fitHeight=function(R,z){return Yu(M,R,z)},M}function Qu(t,e){var r=e*e,a=r*r;return[t*(.8707-.131979*r+a*(a*(.003971*r-.001529*a)-.013791)),e*(1.007226+r*(.015085+a*(.028874*r-.044475-.005916*a)))]}function pv(){return Mn(Qu).scale(175.295)}
1function ju(t,e){return[ht(e)*st(t),st(e)]}function _v(){return Mn(ju).scale(249.5).clipAngle(90+pt)}function Ku(t,e){var r=ht(e),a=1+ht(t)*r;return[r*st(t)/a,st(e)/a]}function yv(){return Mn(Ku).scale(250).clipAngle(142)}function Ju(t,e){return[Ka(cu((ue+e)/2)),-t]}function mv(){var t=Kh(Ju),e=t.center,r=t.rotate;return t.center=function(a){return arguments.length?e([-a[1],a[0]]):[(a=e())[1],-a[0]]},t.rotate=function(a){return arguments.length?r([a[0],a[1],a.length>2?a[2]+90:90]):[(a=r())[0],a[1],a[2]-90]},r([0,0,90]).scale(159.155)}function xv(t,e){return t.parent===e.parent?1:2}function wv(t,e){return t+e.x}function Sv(t,e){return Math.max(t,e.y)}function Pv(){var t=xv,e=1,r=1,a=!1;function s(c){var f,l=0;c.eachAfter(function(_){var x=_.children;x?(_.x=function vv(t){return t.reduce(wv,0)/t.length}(x),_.y=function bv(t){return 1+t.reduce(Sv,0)}(x)):(_.x=f?l+=t(_,f):0,_.y=0,f=_)});var h=function Tv(t){for(var e;e=t.children;)t=e[0];return t}(c),d=function Av(t){for(var e;e=t.children;)t=e[e.length-1];return t}(c),p=h.x-t(h,d)/2,y=d.x+t(d,h)/2;return c.eachAfter(a?function(_){_.x=(_.x-c.x)*e,_.y=(c.y-_.y)*r}:function(_){_.x=(_.x-p)/(y-p)*e,_.y=(1-(c.y?_.y/c.y:1))*r})}return s.separation=function(c){return arguments.length?(t=c,s):t},s.size=function(c){return arguments.length?(a=!1,e=+c[0],r=+c[1],s):a?null:[e,r]},s.nodeSize=function(c){return arguments.length?(a=!0,e=+c[0],r=+c[1],s):a?[e,r]:null},s}function Cv(t){var e=0,r=t.children,a=r&&r.length;if(a)for(;--a>=0;)e+=r[a].value;else e=1;t.value=e}function tc(t,e){var s,f,l,h,d,r=new Wi(t),a=+t.value&&(r.value=t.value),c=[r];for(null==e&&(e=zv);s=c.pop();)if(a&&(s.value=+s.data.value),(l=e(s.data))&&(d=l.length))for(s.children=new Array(d),h=d-1;h>=0;--h)c.push(f=s.children[h]=new Wi(l[h])),f.parent=s,f.depth=s.depth+1;return r.eachBefore(ed)}function zv(t){return t.children}function Xv(t){t.data=t.data.data}function ed(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Wi(t){this.data=t,this.depth=this.height=0,this.parent=null}qu.invert=function(t,e){for(var f,r=e,a=r*r,s=a*a*a,c=0;c<12&&(s=(a=(r-=f=(r*(Fr+zr*a+s*(Xr+Yr*a))-e)/(Fr+3*zr*a+s*(7*Xr+9*Yr*a)))*r)*a*a,!(Dt(f)<Za));++c);return[ko*t*(Fr+3*zr*a+s*(7*Xr+9*Yr*a))/ht(r),Ne(st(r)/ko)]},Zu.invert=Nr(Fi),Qu.invert=function(t,e){var s,r=e,a=25;do{var c=r*r,f=c*c;r-=s=(r*(1.007226+c*(.015085+f*(.028874*c-.044475-.005916*f)))-e)/(1.007226+c*(.045255+f*(.259866*c-.311325-.005916*11*f)))}while(Dt(s)>pt&&--a>0);return[t/(.8707+(c=r*r)*(c*(c*c*c*(.003971-.001529*c)-.013791)-.131979)),r]},ju.invert=Nr(Ne),Ku.invert=Nr(function(t){return 2*Fi(t)}),Ju.invert=function(t,e){return[-e,2*Fi(Fl(t))-ue]},Wi.prototype=tc.prototype={constructor:Wi,count:function Lv(){return this.eachAfter(Cv)},each:function Mv(t){var r,s,c,f,e=this,a=[e];do{for(r=a.reverse(),a=[];e=r.pop();)if(t(e),s=e.children)for(c=0,f=s.length;c<f;++c)a.push(s[c])}while(a.length);return this},eachAfter:function kv(t){for(var s,c,f,e=this,r=[e],a=[];e=r.pop();)if(a.push(e),s=e.children)for(c=0,f=s.length;c<f;++c)r.push(s[c]);for(;e=a.pop();)t(e);return this},eachBefore:function Ev(t){for(var a,s,e=this,r=[e];e=r.pop();)if(t(e),a=e.children)for(s=a.length-1;s>=0;--s)r.push(a[s]);return this},sum:function Rv(t){return this.eachAfter(function(e){for(var r=+t(e.data)||0,a=e.children,s=a&&a.length;--s>=0;)r+=a[s].value;e.value=r})},sort:function Vv(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function Gv(t){for(var e=this,r=function Ov(t,e){if(t===e)return t;var r=t.ancestors(),a=e.ancestors(),s=null;for(t=r.pop(),e=a.pop();t===e;)s=t,t=r.pop(),e=a.pop();return s}(e,t),a=[e];e!==r;)a.push(e=e.parent);for(var s=a.length;t!==r;)a.splice(s,0,t),t=t.parent;return a},ancestors:function $v(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function Nv(){var t=[];return this.each(function(e){t.push(e)}),t},leaves:function Dv(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function Iv(){var t=this,e=[];return t.each(function(r){r!==t&&e.push({source:r.parent,target:r})}),e},copy:function Fv(){return tc(this).eachBefore(Xv)}};var Yv=Array.prototype.slice;
vendor: 5,067 bytes, line 1
1function nd(t){for(var s,c,e=0,r=(t=function Bv(t){for(var r,a,e=t.length;e;)a=Math.random()*e--|0,r=t[e],t[e]=t[a],t[a]=r;return t}(Yv.call(t))).length,a=[];e<r;)s=t[e],c&&id(c,s)?++e:(c=Uv(a=Hv(a,s)),e=0);return c}function Hv(t,e){var r,a;if(ec(e,t))return[e];for(r=0;r<t.length;++r)if(Ro(e,t[r])&&ec(Br(t[r],e),t))return[t[r],e];for(r=0;r<t.length-1;++r)for(a=r+1;a<t.length;++a)if(Ro(Br(t[r],t[a]),e)&&Ro(Br(t[r],e),t[a])&&Ro(Br(t[a],e),t[r])&&ec(rd(t[r],t[a],e),t))return[t[r],t[a],e];throw new Error}function Ro(t,e){var r=t.r-e.r,a=e.x-t.x,s=e.y-t.y;return r<0||r*r<a*a+s*s}function id(t,e){var r=t.r-e.r+1e-6,a=e.x-t.x,s=e.y-t.y;return r>0&&r*r>a*a+s*s}function ec(t,e){for(var r=0;r<e.length;++r)if(!id(t,e[r]))return!1;return!0}function Uv(t){switch(t.length){case 1:return function Wv(t){return{x:t.x,y:t.y,r:t.r}}(t[0]);case 2:return Br(t[0],t[1]);case 3:return rd(t[0],t[1],t[2])}}function Br(t,e){var r=t.x,a=t.y,s=t.r,c=e.x,f=e.y,l=e.r,h=c-r,d=f-a,p=l-s,y=Math.sqrt(h*h+d*d);return{x:(r+c+h/y*p)/2,y:(a+f+d/y*p)/2,r:(y+s+l)/2}}function rd(t,e,r){var a=t.x,s=t.y,c=t.r,f=e.x,l=e.y,h=e.r,d=r.x,p=r.y,y=r.r,_=a-f,x=a-d,S=s-l,b=s-p,A=h-c,C=y-c,V=a*a+s*s-c*c,M=V-f*f-l*l+h*h,R=V-d*d-p*p+y*y,z=x*S-_*b,B=(S*R-b*M)/(2*z)-a,X=(b*A-S*C)/z,j=(x*M-_*R)/(2*z)-s,W=(_*C-x*A)/z,q=X*X+W*W-1,U=2*(c+B*X+j*W),G=B*B+j*j-c*c,H=-(q?(U+Math.sqrt(U*U-4*q*G))/(2*q):G/U);return{x:a+B+X*H,y:s+j+W*H,r:H}}function ad(t,e,r){var s,c,l,h,a=t.x-e.x,f=t.y-e.y,d=a*a+f*f;d?(c=e.r+r.r,h=t.r+r.r,(c*=c)>(h*=h)?(s=(d+h-c)/(2*d),l=Math.sqrt(Math.max(0,h/d-s*s)),r.x=t.x-s*a-l*f,r.y=t.y-s*f+l*a):(s=(d+c-h)/(2*d),l=Math.sqrt(Math.max(0,c/d-s*s)),r.x=e.x+s*a-l*f,r.y=e.y+s*f+l*a)):(r.x=e.x+r.r,r.y=e.y)}function od(t,e){var r=t.r+e.r-1e-6,a=e.x-t.x,s=e.y-t.y;return r>0&&r*r>a*a+s*s}function sd(t){var e=t._,r=t.next._,a=e.r+r.r,s=(e.x*r.r+r.x*e.r)/a,c=(e.y*r.r+r.y*e.r)/a;return s*s+c*c}function Vo(t){this._=t,this.next=null,this.previous=null}function ud(t){if(!(s=t.length))return 0;var e,r,a,s,c,f,l,h,d,p,y;if((e=t[0]).x=0,e.y=0,!(s>1))return e.r;if(e.x=-(r=t[1]).r,r.x=e.r,r.y=0,!(s>2))return e.r+r.r;ad(r,e,a=t[2]),e=new Vo(e),r=new Vo(r),a=new Vo(a),e.next=a.previous=r,r.next=e.previous=a,a.next=r.previous=e;t:for(l=3;l<s;++l){ad(e._,r._,a=t[l]),a=new Vo(a),h=r.next,d=e.previous,p=r._.r,y=e._.r;do{if(p<=y){if(od(h._,a._)){e.next=r=h,r.previous=e,--l;continue t}p+=h._.r,h=h.next}else{if(od(d._,a._)){(e=d).next=r,r.previous=e,--l;continue t}y+=d._.r,d=d.previous}}while(h!==d.next);for(a.previous=e,a.next=r,e.next=r.previous=r=a,c=sd(e);(a=a.next)!==r;)(f=sd(a))<c&&(e=a,c=f);r=e.next}for(e=[r._],a=r;(a=a.next)!==r;)e.push(a._);for(a=nd(e),l=0;l<s;++l)(e=t[l]).x-=a.x,e.y-=a.y;return a.r}function qv(t){return ud(t),t}function Zv(t){return null==t?null:Go(t)}function Go(t){if("function"!=typeof t)throw new Error;return t}function di(){return 0}function qi(t){return function(){return t}}function Qv(t){return Math.sqrt(t.value)}function jv(){var t=null,e=1,r=1,a=di;function s(c){return c.x=e/2,c.y=r/2,t?c.eachBefore(cd(t)).eachAfter(nc(a,.5)).eachBefore(fd(1)):c.eachBefore(cd(Qv)).eachAfter(nc(di,1)).eachAfter(nc(a,c.r/Math.min(e,r))).eachBefore(fd(Math.min(e,r)/(2*c.r))),c}return s.radius=function(c){return arguments.length?(t=Zv(c),s):t},s.size=function(c){return arguments.length?(e=+c[0],r=+c[1],s):[e,r]},s.padding=function(c){return arguments.length?(a="function"==typeof c?c:qi(+c),s):a},s}function cd(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function nc(t,e){return function(r){if(a=r.children){var a,s,l,c=a.length,f=t(r)*e||0;if(f)for(s=0;s<c;++s)a[s].r+=f;if(l=ud(a),f)for(s=0;s<c;++s)a[s].r-=f;r.r=l+f}}}function fd(t){return function(e){var r=e.parent;e.r*=t,r&&(e.x=r.x+t*e.x,e.y=r.y+t*e.y)}}function ld(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Hr(t,e,r,a,s){for(var f,c=t.children,l=-1,h=c.length,d=t.value&&(a-e)/t.value;++l<h;)(f=c[l]).y0=r,f.y1=s,f.x0=e,f.x1=e+=f.value*d}function Kv(){var t=1,e=1,r=0,a=!1;function s(f){var l=f.height+1;return f.x0=f.y0=r,f.x1=t,f.y1=e/l,f.eachBefore(function c(f,l){return function(h){h.children&&Hr(h,h.x0,f*(h.depth+1)/l,h.x1,f*(h.depth+2)/l);var d=h.x0,p=h.y0,y=h.x1-r,_=h.y1-r;y<d&&(d=y=(d+y)/2),_<p&&(p=_=(p+_)/2),h.x0=d,h.y0=p,h.x1=y,h.y1=_}}(e,l)),a&&f.eachBefore(ld),f}return s.round=function(f){return arguments.length?(a=!!f,s):a},s.size=function(f){return arguments.length?(t=+f[0],e=+f[1],s):[t,e]},s.padding=function(f){return arguments.length?(r=+f,s):r},s}var Jv={depth:-1},dd={};function tw(t){return t.id}function ew(t){return t.parentId}function nw(){var t=tw,e=ew;function r(a){var s,c,l,h,d,y,_,f=a.length,p=new Array(f),x={};for(c=0;c<f;++c)d=p[c]=new Wi(s=a[c]),null!=(y=t(s,c,a))&&(y+="")&&(x[_="$"+(d.id=y)]=_ in x?dd:d);for(c=0;c<f;++c)if(d=p[c],null!=(y=e(a[c],c,a))&&(y+="")){if(!(h=x["$"+y]))throw new Error("missing: "+y);if(h===dd)throw new Error("ambiguous: "+y);h.children?h.children.push(d):h.children=[d],d.parent=h}else{if(l)throw new Error("multiple roots");l=d}if(!l)throw new Error("no root");
vendor: 9,277 bytes, line 1
1if(l.parent=Jv,l.eachBefore(function(S){S.depth=S.parent.depth+1,--f}).eachBefore(ed),l.parent=null,f>0)throw new Error("cycle");return l}return r.id=function(a){return arguments.length?(t=Go(a),r):t},r.parentId=function(a){return arguments.length?(e=Go(a),r):e},r}function iw(t,e){return t.parent===e.parent?1:2}function ic(t){var e=t.children;return e?e[0]:t.t}function rc(t){var e=t.children;return e?e[e.length-1]:t.t}function rw(t,e,r){var a=r/(e.i-t.i);e.c-=a,e.s+=r,t.c+=a,e.z+=r,e.m+=r}function ow(t,e,r){return t.a.parent===e.parent?t.a:r}function Oo(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function uw(){var t=iw,e=1,r=1,a=null;function s(d){var p=function sw(t){for(var r,s,c,f,l,e=new Oo(t,0),a=[e];r=a.pop();)if(c=r._.children)for(r.children=new Array(l=c.length),f=l-1;f>=0;--f)a.push(s=r.children[f]=new Oo(c[f],f)),s.parent=r;return(e.parent=new Oo(null,0)).children=[e],e}(d);if(p.eachAfter(c),p.parent.m=-p.z,p.eachBefore(f),a)d.eachBefore(h);else{var y=d,_=d,x=d;d.eachBefore(function(V){V.x<y.x&&(y=V),V.x>_.x&&(_=V),V.depth>x.depth&&(x=V)});var S=y===_?1:t(y,_)/2,b=S-y.x,A=e/(_.x+S+b),C=r/(x.depth||1);d.eachBefore(function(V){V.x=(V.x+b)*A,V.y=V.depth*C})}return d}function c(d){var p=d.children,y=d.parent.children,_=d.i?y[d.i-1]:null;if(p){!function aw(t){for(var c,e=0,r=0,a=t.children,s=a.length;--s>=0;)(c=a[s]).z+=e,c.m+=e,e+=c.s+(r+=c.c)}(d);var x=(p[0].z+p[p.length-1].z)/2;_?(d.z=_.z+t(d._,_._),d.m=d.z-x):d.z=x}else _&&(d.z=_.z+t(d._,_._));d.parent.A=function l(d,p,y){if(p){for(var R,_=d,x=d,S=p,b=_.parent.children[0],A=_.m,C=x.m,V=S.m,M=b.m;S=rc(S),_=ic(_),S&&_;)b=ic(b),(x=rc(x)).a=d,(R=S.z+V-_.z-A+t(S._,_._))>0&&(rw(ow(S,d,y),d,R),A+=R,C+=R),V+=S.m,A+=_.m,M+=b.m,C+=x.m;S&&!rc(x)&&(x.t=S,x.m+=V-C),_&&!ic(b)&&(b.t=_,b.m+=A-M,y=d)}return y}(d,_,d.parent.A||y[0])}function f(d){d._.x=d.z+d.parent.m,d.m+=d.parent.m}function h(d){d.x*=e,d.y=d.depth*r}return s.separation=function(d){return arguments.length?(t=d,s):t},s.size=function(d){return arguments.length?(a=!1,e=+d[0],r=+d[1],s):a?null:[e,r]},s.nodeSize=function(d){return arguments.length?(a=!0,e=+d[0],r=+d[1],s):a?[e,r]:null},s}function $o(t,e,r,a,s){for(var f,c=t.children,l=-1,h=c.length,d=t.value&&(s-r)/t.value;++l<h;)(f=c[l]).x0=e,f.x1=a,f.y0=r,f.y1=r+=f.value*d}Oo.prototype=Object.create(Wi.prototype);var gd=(1+Math.sqrt(5))/2;function pd(t,e,r,a,s,c){for(var h,d,x,S,A,C,V,M,R,z,B,f=[],l=e.children,p=0,y=0,_=l.length,b=e.value;p<_;){x=s-r,S=c-a;do{A=l[y++].value}while(!A&&y<_);for(C=V=A,B=A*A*(z=Math.max(S/x,x/S)/(b*t)),R=Math.max(V/B,B/C);y<_;++y){if(A+=d=l[y].value,d<C&&(C=d),d>V&&(V=d),B=A*A*z,(M=Math.max(V/B,B/C))>R){A-=d;break}R=M}f.push(h={value:A,dice:x<S,children:l.slice(p,y)}),h.dice?Hr(h,r,a,s,b?a+=S*A/b:c):$o(h,r,a,b?r+=x*A/b:s,c),b-=A,p=y}return f}const _d=function t(e){function r(a,s,c,f,l){pd(e,a,s,c,f,l)}return r.ratio=function(a){return t((a=+a)>1?a:1)},r}(gd);function cw(){var t=_d,e=!1,r=1,a=1,s=[0],c=di,f=di,l=di,h=di,d=di;function p(_){return _.x0=_.y0=0,_.x1=r,_.y1=a,_.eachBefore(y),s=[0],e&&_.eachBefore(ld),_}function y(_){var x=s[_.depth],S=_.x0+x,b=_.y0+x,A=_.x1-x,C=_.y1-x;A<S&&(S=A=(S+A)/2),C<b&&(b=C=(b+C)/2),_.x0=S,_.y0=b,_.x1=A,_.y1=C,_.children&&(x=s[_.depth+1]=c(_)/2,S+=d(_)-x,b+=f(_)-x,(A-=l(_)-x)<S&&(S=A=(S+A)/2),(C-=h(_)-x)<b&&(b=C=(b+C)/2),t(_,S,b,A,C))}return p.round=function(_){return arguments.length?(e=!!_,p):e},p.size=function(_){return arguments.length?(r=+_[0],a=+_[1],p):[r,a]},p.tile=function(_){return arguments.length?(t=Go(_),p):t},p.padding=function(_){return arguments.length?p.paddingInner(_).paddingOuter(_):p.paddingInner()},p.paddingInner=function(_){return arguments.length?(c="function"==typeof _?_:qi(+_),p):c},p.paddingOuter=function(_){return arguments.length?p.paddingTop(_).paddingRight(_).paddingBottom(_).paddingLeft(_):p.paddingTop()},p.paddingTop=function(_){return arguments.length?(f="function"==typeof _?_:qi(+_),p):f},p.paddingRight=function(_){return arguments.length?(l="function"==typeof _?_:qi(+_),p):l},p.paddingBottom=function(_){return arguments.length?(h="function"==typeof _?_:qi(+_),p):h},p.paddingLeft=function(_){return arguments.length?(d="function"==typeof _?_:qi(+_),p):d},p}function fw(t,e,r,a,s){var f,h,c=t.children,l=c.length,d=new Array(l+1);for(d[0]=h=f=0;f<l;++f)d[f+1]=h+=c[f].value;!function p(y,_,x,S,b,A,C){if(y>=_-1){var V=c[y];return V.x0=S,V.y0=b,V.x1=A,void(V.y1=C)}for(var M=d[y],R=x/2+M,z=y+1,B=_-1;z<B;){var X=z+B>>>1;d[X]<R?z=X+1:B=X}R-d[z-1]<d[z]-R&&y+1<z&&--z;var j=d[z]-M,W=x-j;if(A-S>C-b){var q=(S*W+A*j)/x;p(y,z,j,S,b,q,C),p(z,_,W,q,b,A,C)}else{var U=(b*W+C*j)/x;p(y,z,j,S,b,A,U),p(z,_,W,S,U,A,C)}}(0,l,t.value,e,r,a,s)}function lw(t,e,r,a,s){(1&t.depth?$o:Hr)(t,e,r,a,s)}const hw=function t(e){function r(a,s,c,f,l){if((h=a._squarify)&&h.ratio===e)for(var h,d,p,y,x,_=-1,S=h.length,b=a.value;++_<S;){for(p=(d=h[_]).children,y=d.value=0,x=p.length;y<x;++y)d.value+=p[y].value;d.dice?Hr(d,s,c,f,c+=(l-c)*d.value/b):$o(d,s,c,s+=(f-s)*d.value/b,l),b-=d.value}else a._squarify=h=pd(e,a,s,c,f,l),h.ratio=e}return r.ratio=function(a){return t((a=+a)>1?a:1)},r}(gd);function dw(t){var e=t.length;return function(r){return t[Math.max(0,Math.min(e-1,Math.floor(r*e)))]}}function gw(t,e){var r=xa(+t,+e);return function(a){var s=r(a);return s-360*Math.floor(s/360)}}function yd(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}var Ur=Math.SQRT2;function xd(t){return((t=Math.exp(t))+1/t)/2}function vd(t,e){var y,_,r=t[0],a=t[1],s=t[2],l=e[2],h=e[0]-r,d=e[1]-a,p=h*h+d*d;if(p<1e-12)_=Math.log(l/s)/Ur,y=function(V){return[r+V*h,a+V*d,s*Math.exp(Ur*V*_)]};else{var x=Math.sqrt(p),S=(l*l-s*s+4*p)/(2*s*2*x),b=(l*l-s*s-4*p)/(2*l*2*x),A=Math.log(Math.sqrt(S*S+1)-S),C=Math.log(Math.sqrt(b*b+1)-b);_=(C-A)/Ur,y=function(V){var M=V*_,R=xd(A),z=s/(2*x)*(R*function yw(t){return((t=Math.exp(2*t))-1)/(t+1)}(Ur*M+A)-function _w(t){return((t=Math.exp(t))-1/t)/2}(A));return[r+z*h,a+z*d,s*R/xd(Ur*M+A)]}}return y.duration=1e3*_,y}function wd(t){return function(e,r){var a=t((e=ya(e)).h,(r=ya(r)).h),s=_e(e.s,r.s),c=_e(e.l,r.l),f=_e(e.opacity,r.opacity);return function(l){return e.h=a(l),e.s=s(l),e.l=c(l),e.opacity=f(l),e+""}}}const mw=wd(xa);var xw=wd(_e);function vw(t,e){var r=_e((t=Oa(t)).l,(e=Oa(e)).l),a=_e(t.a,e.a),s=_e(t.b,e.b),c=_e(t.opacity,e.opacity);return function(f){return t.l=r(f),t.a=a(f),t.b=s(f),t.opacity=c(f),t+""}}function bd(t){return function(e,r){var a=t((e=$a(e)).h,(r=$a(r)).h),s=_e(e.c,r.c),c=_e(e.l,r.l),f=_e(e.opacity,r.opacity);return function(l){return e.h=a(l),e.c=s(l),e.l=c(l),e.opacity=f(l),e+""}}}const ww=bd(xa);var bw=bd(_e);function Sd(t){return function e(r){function a(s,c){var f=t((s=fn(s)).h,(c=fn(c)).h),l=_e(s.s,c.s),h=_e(s.l,c.l),d=_e(s.opacity,c.opacity);return function(p){return s.h=f(p),s.s=l(p),s.l=h(Math.pow(p,r)),s.opacity=d(p),s+""}}return r=+r,a.gamma=e,a}(1)}const Sw=Sd(xa);var No=Sd(_e);function Tw(t,e){for(var r=0,a=e.length-1,s=e[0],c=new Array(a<0?0:a);r<a;)c[r]=t(s,s=e[++r]);return function(f){var l=Math.max(0,Math.min(a-1,Math.floor(f*=a)));return c[l](f-l)}}function Aw(t,e){for(var r=new Array(e),a=0;a<e;++a)r[a]=t(a/(e-1));return r}function Pw(t){for(var a,e=-1,r=t.length,s=t[r-1],c=0;++e<r;)c+=(a=s)[1]*(s=t[e])[0]-a[0]*s[1];return c/2}function Cw(t){for(var c,l,e=-1,r=t.length,a=0,s=0,f=t[r-1],h=0;++e<r;)h+=l=(c=f)[0]*(f=t[e])[1]-f[0]*c[1],a+=(c[0]+f[0])*l,s+=(c[1]+f[1])*l;return[a/(h*=3),s/h]}function Lw(t,e,r){return(e[0]-t[0])*(r[1]-t[1])-(e[1]-t[1])*(r[0]-t[0])}function Mw(t,e){return t[0]-e[0]||t[1]-e[1]}function Td(t){for(var e=t.length,r=[0,1],a=2,s=2;s<e;++s){for(;a>1&&Lw(t[r[a-2]],t[r[a-1]],t[s])<=0;)--a;r[a++]=s}return r.slice(0,a)}function Ew(t){if((r=t.length)<3)return null;var e,r,a=new Array(r),s=new Array(r);for(e=0;e<r;++e)a[e]=[+t[e][0],+t[e][1],e];for(a.sort(Mw),e=0;e<r;++e)s[e]=[a[e][0],-a[e][1]];var c=Td(a),f=Td(s),l=f[0]===c[0],h=f[f.length-1]===c[c.length-1],d=[];for(e=c.length-1;e>=0;--e)d.push(t[a[c[e]][2]]);for(e=+l;e<f.length-h;++e)d.push(t[a[f[e]][2]]);return d}function kw(t,e){for(var h,d,r=t.length,a=t[r-1],s=e[0],c=e[1],f=a[0],l=a[1],p=!1,y=0;y<r;++y)h=(a=t[y])[0],(d=a[1])>c!=l>c&&s<(f-h)*(c-d)/(l-d)+h&&(p=!p),f=h,l=d;return p}function Rw(t){for(var s,c,e=-1,r=t.length,a=t[r-1],f=a[0],l=a[1],h=0;++e<r;)s=f,c=l,s-=f=(a=t[e])[0],c-=l=a[1],h+=Math.sqrt(s*s+c*c);return h}function Zi(){return Math.random()}const Vw=function t(e){function r(a,s){return a=null==a?0:+a,s=null==s?1:+s,1===arguments.length?(s=a,a=0):s-=a,function(){return e()*s+a}}return r.source=t,r}(Zi),Ad=function t(e){function r(a,s){var c,f;return a=null==a?0:+a,s=null==s?1:+s,function(){var l;if(null!=c)l=c,c=null;else do{c=2*e()-1,l=2*e()-1,f=c*c+l*l}while(!f||f>1);return a+s*l*Math.sqrt(-2*Math.log(f)/f)}}return r.source=t,r}(Zi),Gw=function t(e){function r(){var a=Ad.source(e).apply(this,arguments);return function(){return Math.exp(a())}}return r.source=t,r}(Zi),Pd=function t(e){function r(a){return function(){for(var s=0,c=0;c<a;++c)s+=e();return s}}return r.source=t,r}(Zi),Ow=function t(e){function r(a){var s=Pd.source(e)(a);return function(){return s()/a}}return r.source=t,r}(Zi),$w=function t(e){function r(a){return function(){return-Math.log(1-e()
1)/a}}return r.source=t,r}(Zi);function gn(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Dn(t,e){switch(arguments.length){case 0:break;case 1:this.interpolator(t);break;default:this.interpolator(e).domain(t)}return this}var Cd=Array.prototype,Do=Cd.map,gi=Cd.slice,oc={name:"implicit"};function sc(){var t=Yn(),e=[],r=[],a=oc;function s(c){var f=c+"",l=t.get(f);if(!l){if(a!==oc)return a;t.set(f,l=e.push(c))}return r[(l-1)%r.length]}return s.domain=function(c){if(!arguments.length)return e.slice();e=[],t=Yn();for(var h,d,f=-1,l=c.length;++f<l;)t.has(d=(h=c[f])+"")||t.set(d,e.push(h));return s},s.range=function(c){return arguments.length?(r=gi.call(c),s):r.slice()},s.unknown=function(c){return arguments.length?(a=c,s):a},s.copy=function(){return sc(e,r).unknown(a)},gn.apply(s,arguments),s}function uc(){var s,c,t=sc().unknown(void 0),e=t.domain,r=t.range,a=[0,1],f=!1,l=0,h=0,d=.5;function p(){var y=e().length,_=a[1]<a[0],x=a[_-0],S=a[1-_];s=(S-x)/Math.max(1,y-l+2*h),f&&(s=Math.floor(s)),x+=(S-x-s*(y-l))*d,c=s*(1-l),f&&(x=Math.round(x),c=Math.round(c));var b=(0,Q.w6)(y).map(function(A){return x+s*A});return r(_?b.reverse():b)}return delete t.unknown,t.domain=function(y){return arguments.length?(e(y),p()):e()}
1,t.range=function(y){return arguments.length?(a=[+y[0],+y[1]],p()):a.slice()},t.rangeRound=function(y){return a=[+y[0],+y[1]],f=!0,p()},t.bandwidth=function(){return c},t.step=function(){return s},t.round=function(y){return arguments.length?(f=!!y,p()):f},t.padding=function(y){return arguments.length?(l=Math.min(1,h=+y),p()):l},t.paddingInner=function(y){return arguments.length?(l=Math.min(1,y),p()):l},t.paddingOuter=function(y){return arguments.length?(h=+y,p()):h},t.align=function(y){return arguments.length?(d=Math.max(0,Math.min(1,y)),p()):d},t.copy=function(){return uc(e(),a).round(f).paddingInner(l).paddingOuter(h).align(d)},gn.apply(p(),arguments)}function Ld(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Ld(e())},t}function Nw(){return Ld(uc.apply(null,arguments).paddingInner(1))}function cc(t){return+t}var Md=[0,1];function be(t){return t}function fc(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:function Dw(t){return function(){return t}}(isNaN(e)?NaN:.5)}function Ed(t){var a,e=t[0],r=t[t.length-1];return e>r&&(a=e,e=r,r=a),function(s){return Math.max(e,Math.min(r,s))}}function Iw(t,e,r){var a=t[0],s=t[1],c=e[0],f=e[1];return s<a?(a=fc(s,a),c=r(f,c)):(a=fc(a,s),c=r(c,f)),function(l){return c(a(l))}}function Fw(t,e,r){var a=Math.min(t.length,e.length)-1,s=new Array(a),c=new Array(a),f=-1;for(t[a]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++f<a;)s[f]=fc(t[f],t[f+1]),c[f]=r(e[f],e[f+1]);return function(l){var h=(0,Q.b4)(t,l,1,a)-1;return c[h](s[h](l))}}function Wr(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Io(){var a,s,c,l,h,d,t=Md,e=Md,r=dr,f=be;function p(){return l=Math.min(t.length,e.length)>2?Fw:Iw,h=d=null,y}function y(_){return isNaN(_=+_)?c:(h||(h=l(t.map(a),e,r)))(a(f(_)))}return y.invert=function(_){return f(s((d||(d=l(e,t.map(a),Je)))(_)))},y.domain=function(_){return arguments.length?(t=Do.call(_,cc),f===be||(f=Ed(t)),p()):t.slice()},y.range=function(_){return arguments.length?(e=gi.call(_),p()):e.slice()},y.rangeRound=function(_){return e=gi.call(_),r=yd,p()},y.clamp=function(_){return arguments.length?(f=_?Ed(t):be,y):f!==be},y.interpolate=function(_){return arguments.length?(r=_,p()):r},y.unknown=function(_){return arguments.length?(c=_,y):c},function(_,x){return a=_,s=x,p()}}function kd(t,e){return Io()(t,e)}function Rd(t,e,r,a){var c,s=(0,Q.ly)(t,e,r);switch((a=Ar(a??",f")).type){case"s":var f=Math.max(Math.abs(t),Math.abs(e));return null==a.precision&&!isNaN(c=Nl(s,f))&&(a.precision=c),su(a,f);case"":case"e":case"g":case"p":case"r":null==a.precision&&!isNaN(c=Dl(s,Math.max(Math.abs(t),Math.abs(e))))&&(a.precision=c-("e"===a.type));break;case"f":case"%":null==a.precision&&!isNaN(c=$l(s))&&(a.precision=c-2*("%"===a.type))}return Ua(a)}function pi(t){var e=t.domain;return t.ticks=function(r){var a=e();return(0,Q.sd)(a[0],a[a.length-1],r??10)},t.tickFormat=function(r,a){var s=e();return Rd(s[0],s[s.length-1],r??10,a)},t.nice=function(r){null==r&&(r=10);var h,a=e(),s=0,c=a.length-1,f=a[s],l=a[c];return l<f&&(h=f,f=l,l=h,h=s,s=c,c=h),(h=(0,Q.G9)(f,l,r))>0?(f=Math.floor(f/h)*h,l=Math.ceil(l/h)*h,h=(0,Q.G9)(f,l,r)):h<0&&(f=Math.ceil(f*h)/h,l=Math.floor(l*h)/h,h=(0,Q.G9)(f,l,r)),h>0?(a[s]=Math.floor(f/h)*h,a[c]=Math.ceil(l/h)*h,e(a)):h<0&&(a[s]=Math.ceil(f*h)/h,a[c]=Math.floor(l*h)/h,e(a)),t},t}function Vd(){var t=kd(be,be);return t.copy=function(){return Wr(t,Vd())},gn.apply(t,arguments),pi(t)}function Gd(t){var e;function r(a){return isNaN(a=+a)?e:a}return r.invert=r,r.domain=r.range=function(a){return arguments.length?(t=Do.call(a,cc),r):t.slice()},r.unknown=function(a){return arguments.length?(e=a,r):e},r.copy=function(){return Gd(t).unknown(e)},t=arguments.length?Do.call(t,cc):[0,1],pi(r)}function Od(t,e){var f,r=0,a=(t=t.slice()).length-1,s=t[r],c=t[a];return c<s&&(f=r,r=a,a=f,f=s,s=c,c=f),t[r]=e.floor(s),t[a]=e.ceil(c),t}function $d(t){return Math.log(t)}function Nd(t){return Math.exp(t)}function zw(t){return-Math.log(-t)}function Xw(t){return-Math.exp(-t)}function Yw(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Dd(t){return function(e){return-t(-e)}}function lc(t){var s,c,e=t($d,Nd),r=e.domain,a=10;function f(){return s=function Hw(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}(a),c=function Bw(t){return 10===t?Yw:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}(a),r()[0]<0?(s=Dd(s),c=Dd(c),t(zw,Xw)):t($d,Nd),e}return e.base=function(l){return arguments.length?(a=+l,f()):a},e.domain=function(l){return arguments.length?(r(l),f()):r()},e.ticks=function(l){var y,h=r(),d=h[0],p=h[h.length-1];(y=p<d)&&(_=d,d=p,p=_);var S,b,A,_=s(d),x=s(p),C=null==l?10:+l,V=[];if(!(a%1)&&x-_<C){if(_=Math.round(_)-1,x=Math.round(x)+1,d>0){for(;_<x;++_)for(b=1,S=c(_);b<a;++b)if(!((A=S*b)<d)){if(A>p)break;V.push(A)}}else for(;_<x;++_)for(b=a-1,S=c(_);b>=1;--b)if(!((A=S*b)<d)){if(A>p)break;V.push(A)}}else V=(0,Q.sd)(_,x,Math.min(x-_,C)).map(c);return y?V.reverse():V}
1,e.tickFormat=function(l,h){if(null==h&&(h=10===a?".0e":","),"function"!=typeof h&&(h=Ua(h)),l===1/0)return h;null==l&&(l=10);var d=Math.max(1,a*l/e.ticks().length);return function(p){var y=p/c(Math.round(s(p)));return y*a<a-.5&&(y*=a),y<=d?h(p):""}},e.nice=function(){return r(Od(r(),{floor:function(l){return c(Math.floor(s(l)))},ceil:function(l){return c(Math.ceil(s(l)))}}))},e}function Id(){var t=lc(Io()).domain([1,10]);return t.copy=function(){return Wr(t,Id()).base(t.base())},gn.apply(t,arguments),t}function Fd(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function zd(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function hc(t){var e=1,r=t(Fd(e),zd(e));return r.constant=function(a){return arguments.length?t(Fd(e=+a),zd(e)):e},pi(r)}function Xd(){var t=hc(Io());return t.copy=function(){return Wr(t,Xd()).constant(t.constant())},gn.apply(t,arguments)}function Yd(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Uw(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Ww(t){return t<0?-t*t:t*t}function dc(t){var e=t(be,be),r=1;function a(){return 1===r?t(be,be):.5===r?t(Uw,Ww):t(Yd(r),Yd(1/r))}return e.exponent=function(s){return arguments.length?(r=+s,a()):r},pi(e)}function gc(){var t=dc(Io());return t.copy=function(){return Wr(t,gc()).exponent(t.exponent())},gn.apply(t,arguments),t}function qw(){return gc.apply(null,arguments).exponent(.5)}function Bd(){var a,t=[],e=[],r=[];function s(){var f=0,l=Math.max(1,e.length);for(r=new Array(l-1);++f<l;)r[f-1]=(0,Q.VR)(t,f/l);return c}function c(f){return isNaN(f=+f)?a:e[(0,Q.b4)(r,f)]}return c.invertExtent=function(f){var l=e.indexOf(f);return l<0?[NaN,NaN]:[l>0?r[l-1]:t[0],l<r.length?r[l]:t[t.length-1]]},c.domain=function(f){if(!arguments.length)return t.slice();t=[];for(var d,l=0,h=f.length;l<h;++l)null!=(d=f[l])&&!isNaN(d=+d)&&t.push(d);return t.sort(Q.j2),s()},c.range=function(f){return arguments.length?(e=gi.call(f),s()):e.slice()},c.unknown=function(f){return arguments.length?(a=f,c):a},c.quantiles=function(){return r.slice()},c.copy=function(){return Bd().domain(t).range(e).unknown(a)},gn.apply(c,arguments)}function Hd(){var c,t=0,e=1,r=1,a=[.5],s=[0,1];function f(h){return h<=h?s[(0,Q.b4)(a,h,0,r)]:c}function l(){var h=-1;for(a=new Array(r);++h<r;)a[h]=((h+1)*e-(h-r)*t)/(r+1);return f}return f.domain=function(h){return arguments.length?(t=+h[0],e=+h[1],l()):[t,e]},f.range=function(h){return arguments.length?(r=(s=gi.call(h)).length-1,l()):s.slice()},f.invertExtent=function(h){var d=s.indexOf(h);return d<0?[NaN,NaN]:d<1?[t,a[0]]:d>=r?[a[r-1],e]:[a[d-1],a[d]]},f.unknown=function(h){return arguments.length&&(c=h),f},f.thresholds=function(){return a.slice()},f.copy=function(){return Hd().domain([t,e]).range(s).unknown(c)},gn.apply(pi(f),arguments)}function Ud(){var r,t=[.5],e=[0,1],a=1;function s(c){return c<=c?e[(0,Q.b4)(t,c,0,a)]:r}return s.domain=function(c){return arguments.length?(t=gi.call(c),a=Math.min(t.length,e.length-1),s):t.slice()},s.range=function(c){return arguments.length?(e=gi.call(c),a=Math.min(t.length,e.length-1),s):e.slice()},s.invertExtent=function(c){var f=e.indexOf(c);return[t[f-1],t[f]]},s.unknown=function(c){return arguments.length?(r=c,s):r},s.copy=function(){return Ud().domain(t).range(e).unknown(r)},gn.apply(s,arguments)}var pc=new Date,_c=new Date;function ge(t,e,r,a){function s(c){return t(c=0===arguments.length?new Date:new Date(+c)),c}return s.floor=function(c){return t(c=new Date(+c)),c},s.ceil=function(c){return t(c=new Date(c-1)),e(c,1),t(c),c},s.round=function(c){var f=s(c),l=s.ceil(c);return c-f<l-c?f:l},s.offset=function(c,f){return e(c=new Date(+c),null==f?1:Math.floor(f)),c},s.range=function(c,f,l){var d,h=[];if(c=s.ceil(c),l=null==l?1:Math.floor(l),!(c<f&&l>0))return h;do{h.push(d=new Date(+c)),e(c,l),t(c)}while(d<c&&c<f);return h},s.filter=function(c){return ge(function(f){if(f>=f)for(;t(f),!c(f);)f.setTime(f-1)},function(f,l){if(f>=f)if(l<0)for(;++l<=0;)for(;e(f,-1),!c(f););else for(;--l>=0;)for(;e(f,1),!c(f););})},r&&(s.count=function(c,f){return pc.setTime(+c),_c.setTime(+f),t(pc),t(_c),Math.floor(r(pc,_c))},s.every=function(c){return c=Math.floor(c),isFinite(c)&&c>0?c>1?s.filter(a?function(f){return a(f)%c==0}:function(f){return s.count(0,f)%c==0}):s:null}),s}var yc=ge(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});yc.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ge(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,r){e.setFullYear(e.getFullYear()+r*t)}):null};const _i=yc;var Zw=yc.range,Wd=ge(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()});const qd=Wd;var Qw=Wd.range,yi=6e4,zo=36e5,Qd=6048e5;function mi(t){return ge(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(e,r){e.setDate(e.getDate()+7*r)},function(e,r){return(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*yi)/Qd})}var qr=mi(0),Zr=mi(1),jd=mi(2),Kd=mi(3),xi=mi(4),Jd=mi(5),tg=mi(6),eg=qr.range,jw=Zr.range,Kw=jd.range,Jw=Kd.range,tb=xi.range,eb=Jd.range,nb=tg.range,ng=ge(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*yi)/864e5},function(t){return t.getDate()-1});const Xo=ng;var ib=ng.range,ig=ge(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-t.getMinutes()*yi)},function(t,e){t.setTime(+t+e*zo)},function(t,e){return(e-t)/zo},function(t){return t.getHours()});const rg=ig;var rb=ig.range,ag=ge(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,e){t.setTime(+t+e*yi)},function(t,e){return(e-t)/yi},function(t){return t.getMinutes()});const og=ag;var ab=ag.range,sg=ge(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()});const Yo=sg;var ug=sg.range,Bo=ge(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});Bo.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?ge(function(e){e.setTime(Math.floor(e/t)*t)},function(e,r){e.setTime(+e+r*t)},function(e,r){return(r-e)/t}):Bo:null};const Ho=Bo;var cg=Bo.range;function vi(t){return ge(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCDate(e.getUTCDate()+7*r)},function(e,r){return(r-e)/Qd})}var Qr=vi(0),jr=vi(1),fg=vi(2),lg=vi(3),wi=vi(4),hg=vi(5),dg=vi(6),gg=Qr.range,ob=jr.range,sb=fg.range,ub=lg.range,cb=wi.range,fb=hg.range,lb=dg.range,pg=ge(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1}
vendor: 10,927 bytes, line 1
1);const Uo=pg;var hb=pg.range,mc=ge(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});mc.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ge(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null};const bi=mc;var db=mc.range;function xc(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function vc(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Kr(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function _g(t){var e=t.dateTime,r=t.date,a=t.time,s=t.periods,c=t.days,f=t.shortDays,l=t.months,h=t.shortMonths,d=Jr(s),p=ta(s),y=Jr(c),_=ta(c),x=Jr(f),S=ta(f),b=Jr(l),A=ta(l),C=Jr(h),V=ta(h),M={a:function ct(rt){return f[rt.getDay()]},A:function ot(rt){return c[rt.getDay()]},b:function lt(rt){return h[rt.getMonth()]},B:function St(rt){return l[rt.getMonth()]},c:null,d:bg,e:bg,f:$b,g:Ub,G:qb,H:Vb,I:Gb,j:Ob,L:Sg,m:Nb,M:Db,p:function Tt(rt){return s[+(rt.getHours()>=12)]},q:function re(rt){return 1+~~(rt.getMonth()/3)},Q:Mg,s:Eg,S:Ib,u:Fb,U:zb,V:Xb,w:Yb,W:Bb,x:null,X:null,y:Hb,Y:Wb,Z:Zb,"%":Lg},R={a:function Kt(rt){return f[rt.getUTCDay()]},A:function zt(rt){return c[rt.getUTCDay()]},b:function fe(rt){return h[rt.getUTCMonth()]},B:function an(rt){return l[rt.getUTCMonth()]},c:null,d:Ag,e:Ag,f:Jb,g:c2,G:l2,H:Qb,I:jb,j:Kb,L:Pg,m:t2,M:e2,p:function pn(rt){return s[+(rt.getUTCHours()>=12)]},q:function _n(rt){return 1+~~(rt.getUTCMonth()/3)},Q:Mg,s:Eg,S:n2,u:i2,U:r2,V:a2,w:o2,W:s2,x:null,X:null,y:u2,Y:f2,Z:h2,"%":Lg},z={a:function q(rt,Pt,Ot){var tt=x.exec(Pt.slice(Ot));return tt?(rt.w=S[tt[0].toLowerCase()],Ot+tt[0].length):-1},A:function U(rt,Pt,Ot){var tt=y.exec(Pt.slice(Ot));return tt?(rt.w=_[tt[0].toLowerCase()],Ot+tt[0].length):-1},b:function G(rt,Pt,Ot){var tt=C.exec(Pt.slice(Ot));return tt?(rt.m=V[tt[0].toLowerCase()],Ot+tt[0].length):-1},B:function H(rt,Pt,Ot){var tt=b.exec(Pt.slice(Ot));return tt?(rt.m=A[tt[0].toLowerCase()],Ot+tt[0].length):-1},c:function J(rt,Pt,Ot){return j(rt,e,Pt,Ot)},d:vg,e:vg,f:Mb,g:xg,G:mg,H:wg,I:wg,j:Ab,L:Lb,m:Tb,M:Pb,p:function W(rt,Pt,Ot){var tt=d.exec(Pt.slice(Ot));return tt?(rt.p=p[tt[0].toLowerCase()],Ot+tt[0].length):-1},q:Sb,Q:kb,s:Rb,S:Cb,u:mb,U:xb,V:vb,w:yb,W:wb,x:function Y(rt,Pt,Ot){return j(rt,r,Pt,Ot)},X:function K(rt,Pt,Ot){return j(rt,a,Pt,Ot)},y:xg,Y:mg,Z:bb,"%":Eb};function B(rt,Pt){return function(Ot){var ze,Fn,Xe,tt=[],Se=-1,Xt=0,ke=rt.length;for(Ot instanceof Date||(Ot=new Date(+Ot));++Se<ke;)37===rt.charCodeAt(Se)&&(tt.push(rt.slice(Xt,Se)),null!=(Fn=yg[ze=rt.charAt(++Se)])?ze=rt.charAt(++Se):Fn="e"===ze?" ":"0",(Xe=Pt[ze])&&(ze=Xe(Ot,Fn)),tt.push(ze),Xt=Se+1);return tt.push(rt.slice(Xt,Se)),tt.join("")}}function X(rt,Pt){return function(Ot){var Xt,ke,tt=Kr(1900,void 0,1);if(j(tt,rt,Ot+="",0)!=Ot.length)return null;if("Q"in tt)return new Date(tt.Q);if("s"in tt)return new Date(1e3*tt.s+("L"in tt?tt.L:0));if(Pt&&!("Z"in tt)&&(tt.Z=0),"p"in tt&&(tt.H=tt.H%12+12*tt.p),void 0===tt.m&&(tt.m="q"in tt?tt.q:0),"V"in tt){if(tt.V<1||tt.V>53)return null;"w"in tt||(tt.w=1),"Z"in tt?(ke=(Xt=vc(Kr(tt.y,0,1))).getUTCDay(),Xt=ke>4||0===ke?jr.ceil(Xt):jr(Xt),Xt=Uo.offset(Xt,7*(tt.V-1)),tt.y=Xt.getUTCFullYear(),tt.m=Xt.getUTCMonth(),tt.d=Xt.getUTCDate()+(tt.w+6)%7):(ke=(Xt=xc(Kr(tt.y,0,1))).getDay(),Xt=ke>4||0===ke?Zr.ceil(Xt):Zr(Xt),Xt=Xo.offset(Xt,7*(tt.V-1)),tt.y=Xt.getFullYear(),tt.m=Xt.getMonth(),tt.d=Xt.getDate()+(tt.w+6)%7)}else("W"in tt||"U"in tt)&&("w"in tt||(tt.w="u"in tt?tt.u%7:"W"in tt?1:0),ke="Z"in tt?vc(Kr(tt.y,0,1)).getUTCDay():xc(Kr(tt.y,0,1)).getDay(),tt.m=0,tt.d="W"in tt?(tt.w+6)%7+7*tt.W-(ke+5)%7:tt.w+7*tt.U-(ke+6)%7);return"Z"in tt?(tt.H+=tt.Z/100|0,tt.M+=tt.Z%100,vc(tt)):xc(tt)}}function j(rt,Pt,Ot,tt){for(var ze,Fn,Se=0,Xt=Pt.length,ke=Ot.length;Se<Xt;){if(tt>=ke)return-1;if(37===(ze=Pt.charCodeAt(Se++))){if(ze=Pt.charAt(Se++),!(Fn=z[ze in yg?Pt.charAt(Se++):ze])||(tt=Fn(rt,Ot,tt))<0)return-1}else if(ze!=Ot.charCodeAt(tt++))return-1}return tt}return M.x=B(r,M),M.X=B(a,M),M.c=B(e,M),R.x=B(r,R),R.X=B(a,R),R.c=B(e,R),{format:function(rt){var Pt=B(rt+="",M);return Pt.toString=function(){return rt},Pt},parse:function(rt){var Pt=X(rt+="",!1);return Pt.toString=function(){return rt},Pt},utcFormat:function(rt){var Pt=B(rt+="",R);return Pt.toString=function(){return rt},Pt},utcParse:function(rt){var Pt=X(rt+="",!0);return Pt.toString=function(){return rt},Pt}}}var Qi,wc,kg,Wo,bc,yg={"-":"",_:" ",0:"0"},ye=/^\s*\d+/,gb=/^%/,pb=/[\\^$*+?|[\]().{}]/g;function Bt(t,e,r){var a=t<0?"-":"",s=(a?-t:t)+"",c=s.length;return a+(c<r?new Array(r-c+1).join(e)+s:s)}function _b(t){return t.replace(pb,"\\$&")}function Jr(t){return new RegExp("^(?:"+t.map(_b).join("|")+")","i")}function ta(t){for(var e={},r=-1,a=t.length;++r<a;)e[t[r].toLowerCase()]=r;return e}function yb(t,e,r){var a=ye.exec(e.slice(r,r+1));return a?(t.w=+a[0],r+a[0].length):-1}function mb(t,e,r){var a=ye.exec(e.slice(r,r+1));return a?(t.u=+a[0],r+a[0].length):-1}function xb(t,e,r){var a=ye.exec(e.slice(r,r+2));return a?(t.U=+a[0],r+a[0].length):-1}function vb(t,e,r){var a=ye.exec(e.slice(r,r+2));return a?(t.V=+a[0],r+a[0].length):-1}function wb(t,e,r){var a=ye.exec(e.slice(r,r+2));return a?(t.W=+a[0],r+a[0].length):-1}function mg(t,e,r){var a=ye.exec(e.slice(r,r+4));return a?(t.y=+a[0],r+a[0].length):-1}function xg(t,e,r){var a=ye.exec(e.slice(r,r+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2e3),r+a[0].length):-1}function bb(t,e,r){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return a?(t.Z=a[1]?0:-(a[2]+(a[3]||"00")),r+a[0].length):-1}function Sb(t,e,r){var a=ye.exec(e.slice(r,r+1));return a?(t.q=3*a[0]-3,r+a[0].length):-1}function Tb(t,e,r){var a=ye.exec(e.slice(r,r+2));return a?(t.m=a[0]-1,r+a[0].length):-1}function vg(t,e,r){var a=ye.exec(e.slice(r,r+2));return a?(t.d=+a[0],r+a[0].length):-1}function Ab(t,e,r){var a=ye.exec(e.slice(r,r+3));return a?(t.m=0,t.d=+a[0],r+a[0].length):-1}function wg(t,e,r){var a=ye.exec(e.slice(r,r+2));return a?(t.H=+a[0],r+a[0].length):-1}function Pb(t,e,r){var a=ye.exec(e.slice(r,r+2));return a?(t.M=+a[0],r+a[0].length):-1}function Cb(t,e,r){var a=ye.exec(e.slice(r,r+2));return a?(t.S=+a[0],r+a[0].length):-1}function Lb(t,e,r){var a=ye.exec(e.slice(r,r+3));return a?(t.L=+a[0],r+a[0].length):-1}function Mb(t,e,r){var a=ye.exec(e.slice(r,r+6));return a?(t.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function Eb(t,e,r){var a=gb.exec(e.slice(r,r+1));return a?r+a[0].length:-1}function kb(t,e,r){var a=ye.exec(e.slice(r));return a?(t.Q=+a[0],r+a[0].length):-1}function Rb(t,e,r){var a=ye.exec(e.slice(r));return a?(t.s=+a[0],r+a[0].length):-1}function bg(t,e){return Bt(t.getDate(),e,2)}function Vb(t,e){return Bt(t.getHours(),e,2)}function Gb(t,e){return Bt(t.getHours()%12||12,e,2)}function Ob(t,e){return Bt(1+Xo.count(_i(t),t),e,3)}function Sg(t,e){return Bt(t.getMilliseconds(),e,3)}function $b(t,e){return Sg(t,e)+"000"}function Nb(t,e){return Bt(t.getMonth()+1,e,2)}function Db(t,e){return Bt(t.getMinutes(),e,2)}function Ib(t,e){return Bt(t.getSeconds(),e,2)}function Fb(t){var e=t.getDay();return 0===e?7:e}function zb(t,e){return Bt(qr.count(_i(t)-1,t),e,2)}function Tg(t){var e=t.getDay();return e>=4||0===e?xi(t):xi.ceil(t)}function Xb(t,e){return t=Tg(t),Bt(xi.count(_i(t),t)+(4===_i(t).getDay()),e,2)}function Yb(t){return t.getDay()}function Bb(t,e){return Bt(Zr.count(_i(t)-1,t),e,2)}function Hb(t,e){return Bt(t.getFullYear()%100,e,2)}function Ub(t,e){return Bt((t=Tg(t)).getFullYear()%100,e,2)}function Wb(t,e){return Bt(t.getFullYear()%1e4,e,4)}function qb(t,e){var r=t.getDay();return Bt((t=r>=4||0===r?xi(t):xi.ceil(t)).getFullYear()%1e4,e,4)}function Zb(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Bt(e/60|0,"0",2)+Bt(e%60,"0",2)}function Ag(t,e){return Bt(t.getUTCDate(),e,2)}function Qb(t,e){return Bt(t.getUTCHours(),e,2)}function jb(t,e){return Bt(t.getUTCHours()%12||12,e,2)}function Kb(t,e){return Bt(1+Uo.count(bi(t),t),e,3)}function Pg(t,e){return Bt(t.getUTCMilliseconds(),e,3)}function Jb(t,e){return Pg(t,e)+"000"}function t2(t,e){return Bt(t.getUTCMonth()+1,e,2)}function e2(t,e){return Bt(t.getUTCMinutes(),e,2)}function n2(t,e){return Bt(t.getUTCSeconds(),e,2)}function i2(t){var e=t.getUTCDay();return 0===e?7:e}function r2(t,e){return Bt(Qr.count(bi(t)-1,t),e,2)}function Cg(t){var e=t.getUTCDay();return e>=4||0===e?wi(t):wi.ceil(t)}function a2(t,e){return t=Cg(t),Bt(wi.count(bi(t),t)+(4===bi(t).getUTCDay()),e,2)}function o2(t){return t.getUTCDay()}function s2(t,e){return Bt(jr.count(bi(t)-1,t),e,2)}function u2(t,e){return Bt(t.getUTCFullYear()%100,e,2)}function c2(t,e){return Bt((t=Cg(t)).getUTCFullYear()%100,e,2)}function f2(t,e){return Bt(t.getUTCFullYear()%1e4,e,4)}function l2(t,e){var r=t.getUTCDay();return Bt((t=r>=4||0===r?wi(t):wi.ceil(t)).getUTCFullYear()%1e4,e,4)}function h2(){return"+0000"}function Lg(){return"%"}function Mg(t){return+t}function Eg(t){return Math.floor(+t/1e3)}function Rg(t){return Qi=_g(t),wc=Qi.format,kg=Qi.parse,Wo=Qi.utcFormat,bc=Qi.utcParse,Qi}Rg({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var na=6e4,ia=60*na,ra=24*ia,Vg=30*ra,Sc=365*ra;function g2(t){return new Date(t)}function p2(t){return t instanceof Date?+t:+new Date(+t)}function Tc(t,e,r,a,s,c,f,l,h){var d=kd(be,be),p=d.invert,y=d.domain,_=h(".%L"),x=h(":%S"),S=h("%I:%M"),b=h("%I %p"),A=h("%a %d"),C=h("%b %d"),V=h("%B"),M=h("%Y"),R=[[f,1,1e3],[f,5,5e3],[f,15,15e3],[f,30,3e4],[c,1,na],[c,5,5*na],[c,15,15*na],[c,30,30*na],[s,1,ia],[s,3,3*ia],[s,6,6*ia],[s,12,12*ia],[a,1,ra],[a,2,2*ra],[r,1,6048e5],[e,1,Vg],[e,3,3*Vg],[t,1,Sc]];function z(X){return(f(X)<X?_:c(X)<X?x:s(X)<X?S:a(X)<X?b:e(X)<X?r(X)<X?A:C:t(X)<X?V:M)(X)}function B(X,j,W,q){if(null==X&&(X=10),"number"==typeof X){var U=Math.abs(W-j)/X,G=(0,Q.YF)(function(H){return H[2]}).right(R,U);G===R.length?(q=(0,Q.ly)(j/Sc,W/Sc,X),X=t):G?(q=(G=R[U/R[G-1][2]<R[G][2]/U?G-1:G])[1],X=G[0]):(q=Math.max((0,Q.ly)(j,W,X),1),X=l)}return null==q?X:X.every(q)}return d.invert=function(X){return new Date(p(X))},d.domain=function(X){return arguments.length?y(Do.call(X,p2)):y().map(g2)},d.ticks=function(X,j){var H,W=y(),q=W[0],U=W[W.length-1],G=U<q;return G&&(H=q,q=U,U=H),H=(H=B(X,q,U,j))?H.range(q,U+1):[],G?H.reverse():H}
1,d.tickFormat=function(X,j){return null==j?z:h(j)},d.nice=function(X,j){var W=y();return(X=B(X,W[0],W[W.length-1],j))?y(Od(W,X)):d},d.copy=function(){return Wr(d,Tc(t,e,r,a,s,c,f,l,h))},d}function _2(){return gn.apply(Tc(_i,qd,qr,Xo,rg,og,Yo,Ho,wc).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Gg=ge(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()});const Og=Gg;var y2=Gg.range,$g=ge(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*zo)},function(t,e){return(e-t)/zo},function(t){return t.getUTCHours()});const Ng=$g;var m2=$g.range,Dg=ge(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*yi)},function(t,e){return(e-t)/yi},function(t){return t.getUTCMinutes()});const Ig=Dg;var x2=Dg.range;function v2(){return gn.apply(Tc(bi,Og,Qr,Uo,Ng,Ig,Yo,Ho,Wo).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function qo(){var r,a,s,c,h,t=0,e=1,f=be,l=!1;function d(p){return isNaN(p=+p)?h:f(0===s?.5:(p=(c(p)-r)*s,l?Math.max(0,Math.min(1,p)):p))}return d.domain=function(p){return arguments.length?(r=c(t=+p[0]),a=c(e=+p[1]),s=r===a?0:1/(a-r),d):[t,e]},d.clamp=function(p){return arguments.length?(l=!!p,d):l},d.interpolator=function(p){return arguments.length?(f=p,d):f},d.unknown=function(p){return arguments.length?(h=p,d):h},function(p){return c=p,r=p(t),a=p(e),s=r===a?0:1/(a-r),d}}function Qn(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Fg(){var t=pi(qo()(be));return t.copy=function(){return Qn(t,Fg())},Dn.apply(t,arguments)}function zg(){var t=lc(qo()).domain([1,10]);return t.copy=function(){return Qn(t,zg()).base(t.base())},Dn.apply(t,arguments)}function Xg(){var t=hc(qo());return t.copy=function(){return Qn(t,Xg()).constant(t.constant())},Dn.apply(t,arguments)}function Ac(){var t=dc(qo());return t.copy=function(){return Qn(t,Ac()).exponent(t.exponent())},Dn.apply(t,arguments)}function w2(){return Ac.apply(null,arguments).exponent(.5)}function Yg(){var t=[],e=be;function r(a){if(!isNaN(a=+a))return e(((0,Q.b4)(t,a)-1)/(t.length-1))}return r.domain=function(a){if(!arguments.length)return t.slice();t=[];for(var f,s=0,c=a.length;s<c;++s)null!=(f=a[s])&&!isNaN(f=+f)&&t.push(f);return t.sort(Q.j2),r},r.interpolator=function(a){return arguments.length?(e=a,r):e},r.copy=function(){return Yg(e).domain(t)},Dn.apply(r,arguments)}function Zo(){var a,s,c,f,l,d,y,t=0,e=.5,r=1,h=be,p=!1;function _(x){return isNaN(x=+x)?y:(x=.5+((x=+d(x))-s)*(x<s?f:l),h(p?Math.max(0,Math.min(1,x)):x))}return _.domain=function(x){return arguments.length?(a=d(t=+x[0]),s=d(e=+x[1]),c=d(r=+x[2]),f=a===s?0:.5/(s-a),l=s===c?0:.5/(c-s),_):[t,e,r]},_.clamp=function(x){return arguments.length?(p=!!x,_):p},_.interpolator=function(x){return arguments.length?(h=x,_):h},_.unknown=function(x){return arguments.length?(y=x,_):y},function(x){return d=x,a=x(t),s=x(e),c=x(r),f=a===s?0:.5/(s-a),l=s===c?0:.5/(c-s),_}}function Bg(){var t=pi(Zo()(be));return t.copy=function(){return Qn(t,Bg())},Dn.apply(t,arguments)}function Hg(){var t=lc(Zo()).domain([.1,1,10]);return t.copy=function(){return Qn(t,Hg()).base(t.base())},Dn.apply(t,arguments)}function Ug(){var t=hc(Zo());return t.copy=function(){return Qn(t,Ug()).constant(t.constant())},Dn.apply(t,arguments)}function Pc(){var t=dc(Zo());return t.copy=function(){return Qn(t,Pc()).exponent(t.exponent())},Dn.apply(t,arguments)}function b2(){return Pc.apply(null,arguments).exponent(.5)}function Mt(t){for(var e=t.length/6|0,r=new Array(e),a=0;a<e;)r[a]="#"+t.slice(6*a,6*++a);return r}const S2=Mt("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),T2=Mt("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),A2=Mt("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),P2=Mt("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),C2=Mt("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),L2=Mt("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),M2=Mt("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),E2=Mt("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),k2=Mt("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),R2=Mt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function ee(t){return df(t[t.length-1])}var Wg=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Mt);const V2=ee(Wg);var qg=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Mt);const G2=ee(qg);var Zg=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Mt);const O2=ee(Zg);var Qg=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Mt);const $2=ee(Qg);var jg=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Mt);const N2=ee(jg);var Kg=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Mt);const D2=ee(Kg);var Jg=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Mt);const I2=ee(Jg);var tp=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d
17191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Mt);const F2=ee(tp);var ep=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Mt);const z2=ee(ep);var np=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Mt);const X2=ee(np);var ip=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Mt);const Y2=ee(ip);var rp=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Mt);const B2=ee(rp);var ap=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Mt);const H2=ee(ap);var op=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Mt);const U2=ee(op);var sp=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Mt);const W2=ee(sp);var up=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Mt);const q2=ee(up);var cp=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Mt);const Z2=ee(cp);var fp=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Mt);const Q2=ee(fp);var lp=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Mt);const j2=ee(lp);var hp=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Mt);const K2=ee(hp);var dp=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Mt);const J2=ee(dp);var gp=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ec
1ae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Mt);const tS=ee(gp);var pp=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Mt);const eS=ee(pp);var _p=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Mt);const nS=ee(_p);var yp=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Mt);const iS=ee(yp);var mp=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Mt);const rS=ee(mp);var xp=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Mt);const aS=ee(xp);function oS(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"}const sS=No(fn(300,.5,0),fn(-240,.5,1));var uS=No(fn(-100,.75,.35),fn(80,1.5,.8)),cS=No(fn(260,.75,.35),fn(80,1.5,.8)),Qo=fn();function fS(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return Qo.h=360*t-100,Qo.s=1.5-1.5*e,Qo.l=.8-.9*e,Qo+""}var jo=Ei(),lS=Math.PI/3,hS=2*Math.PI/3;function dS(t){var e;return t=(.5-t)*Math.PI,jo.r=255*(e=Math.sin(t))*e,jo.g=255*(e=Math.sin(t+lS))*e,jo.b=255*(e=Math.sin(t+hS))*e,jo+""}function gS(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"}function Ko(t){var e=t.length;return function(r){return t[Math.max(0,Math.min(e-1,Math.floor(r*e)))]}}const pS=Ko(Mt("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc
15c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var _S=Ko(Mt("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),yS=Ko(Mt("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),mS=Ko(Mt("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
vendor: 4,918 bytes, line 1
1function xS(t){return He(da(t).call(document.documentElement))}var vS=0;function vp(){return new Cc}function Cc(){this._="@"+(++vS).toString(36)}function wS(t){return"string"==typeof t?new Re([document.querySelectorAll(t)],[document.documentElement]):new Re([t??[]],gs)}function bS(t,e){null==e&&(e=Ss().touches);for(var r=0,a=e?e.length:0,s=new Array(a);r<a;++r)s[r]=va(t,e[r]);return s}Cc.prototype=vp.prototype={constructor:Cc,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var Nt=qt(21456),wp=Math.abs,Le=Math.atan2,Si=Math.cos,SS=Math.max,Lc=Math.min,En=Math.sin,ji=Math.sqrt,Me=1e-12,jn=Math.PI,Jo=jn/2,Kn=2*jn;function TS(t){return t>1?0:t<-1?jn:Math.acos(t)}function bp(t){return t>=1?Jo:t<=-1?-Jo:Math.asin(t)}function AS(t){return t.innerRadius}function PS(t){return t.outerRadius}function CS(t){return t.startAngle}function LS(t){return t.endAngle}function MS(t){return t&&t.padAngle}function ES(t,e,r,a,s,c,f,l){var h=r-t,d=a-e,p=f-s,y=l-c,_=y*h-p*d;if(!(_*_<Me))return[t+(_=(p*(e-c)-y*(t-s))/_)*h,e+_*d]}function ts(t,e,r,a,s,c,f){var l=t-r,h=e-a,d=(f?c:-c)/ji(l*l+h*h),p=d*h,y=-d*l,_=t+p,x=e+y,S=r+p,b=a+y,A=(_+S)/2,C=(x+b)/2,V=S-_,M=b-x,R=V*V+M*M,z=s-c,B=_*b-S*x,X=(M<0?-1:1)*ji(SS(0,z*z*R-B*B)),j=(B*M-V*X)/R,W=(-B*V-M*X)/R,q=(B*M+V*X)/R,U=(-B*V+M*X)/R,G=j-A,H=W-C,J=q-A,Y=U-C;return G*G+H*H>J*J+Y*Y&&(j=q,W=U),{cx:j,cy:W,x01:-p,y01:-y,x11:j*(s/z-1),y11:W*(s/z-1)}}function kS(){var t=AS,e=PS,r=(0,Nt.Z)(0),a=null,s=CS,c=LS,f=MS,l=null;function h(){var d,p,y=+t.apply(this,arguments),_=+e.apply(this,arguments),x=s.apply(this,arguments)-Jo,S=c.apply(this,arguments)-Jo,b=wp(S-x),A=S>x;if(l||(l=d=(0,$i.Z)()),_<y&&(p=_,_=y,y=p),_>Me)if(b>Kn-Me)l.moveTo(_*Si(x),_*En(x)),l.arc(0,0,_,x,S,!A),y>Me&&(l.moveTo(y*Si(S),y*En(S)),l.arc(0,0,y,S,x,A));else{var G,H,C=x,V=S,M=x,R=S,z=b,B=b,X=f.apply(this,arguments)/2,j=X>Me&&(a?+a.apply(this,arguments):ji(y*y+_*_)),W=Lc(wp(_-y)/2,+r.apply(this,arguments)),q=W,U=W;if(j>Me){var J=bp(j/y*En(X)),Y=bp(j/_*En(X));(z-=2*J)>Me?(M+=J*=A?1:-1,R-=J):(z=0,M=R=(x+S)/2),(B-=2*Y)>Me?(C+=Y*=A?1:-1,V-=Y):(B=0,C=V=(x+S)/2)}var K=_*Si(C),ct=_*En(C),ot=y*Si(R),lt=y*En(R);if(W>Me){var zt,St=_*Si(V),Tt=_*En(V),re=y*Si(M),Kt=y*En(M);if(b<jn&&(zt=ES(K,ct,re,Kt,St,Tt,ot,lt))){var fe=K-zt[0],an=ct-zt[1],pn=St-zt[0],_n=Tt-zt[1],rt=1/En(TS((fe*pn+an*_n)/(ji(fe*fe+an*an)*ji(pn*pn+_n*_n)))/2),Pt=ji(zt[0]*zt[0]+zt[1]*zt[1]);q=Lc(W,(y-Pt)/(rt-1)),U=Lc(W,(_-Pt)/(rt+1))}}B>Me?U>Me?(G=ts(re,Kt,K,ct,_,U,A),H=ts(St,Tt,ot,lt,_,U,A),l.moveTo(G.cx+G.x01,G.cy+G.y01),U<W?l.arc(G.cx,G.cy,U,Le(G.y01,G.x01),Le(H.y01,H.x01),!A):(l.arc(G.cx,G.cy,U,Le(G.y01,G.x01),Le(G.y11,G.x11),!A),l.arc(0,0,_,Le(G.cy+G.y11,G.cx+G.x11),Le(H.cy+H.y11,H.cx+H.x11),!A),l.arc(H.cx,H.cy,U,Le(H.y11,H.x11),Le(H.y01,H.x01),!A))):(l.moveTo(K,ct),l.arc(0,0,_,C,V,!A)):l.moveTo(K,ct),y>Me&&z>Me?q>Me?(G=ts(ot,lt,St,Tt,y,-q,A),H=ts(K,ct,re,Kt,y,-q,A),l.lineTo(G.cx+G.x01,G.cy+G.y01),q<W?l.arc(G.cx,G.cy,q,Le(G.y01,G.x01),Le(H.y01,H.x01),!A):(l.arc(G.cx,G.cy,q,Le(G.y01,G.x01),Le(G.y11,G.x11),!A),l.arc(0,0,y,Le(G.cy+G.y11,G.cx+G.x11),Le(H.cy+H.y11,H.cx+H.x11),A),l.arc(H.cx,H.cy,q,Le(H.y11,H.x11),Le(H.y01,H.x01),!A))):l.arc(0,0,y,R,M,A):l.lineTo(ot,lt)}else l.moveTo(0,0);if(l.closePath(),d)return l=null,d+""||null}return h.centroid=function(){var d=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,p=(+s.apply(this,arguments)+ +c.apply(this,arguments))/2-jn/2;return[Si(p)*d,En(p)*d]},h.innerRadius=function(d){return arguments.length?(t="function"==typeof d?d:(0,Nt.Z)(+d),h):t},h.outerRadius=function(d){return arguments.length?(e="function"==typeof d?d:(0,Nt.Z)(+d),h):e},h.cornerRadius=function(d){return arguments.length?(r="function"==typeof d?d:(0,Nt.Z)(+d),h):r},h.padRadius=function(d){return arguments.length?(a=null==d?null:"function"==typeof d?d:(0,Nt.Z)(+d),h):a},h.startAngle=function(d){return arguments.length?(s="function"==typeof d?d:(0,Nt.Z)(+d),h):s},h.endAngle=function(d){return arguments.length?(c="function"==typeof d?d:(0,Nt.Z)(+d),h):c},h.padAngle=function(d){return arguments.length?(f="function"==typeof d?d:(0,Nt.Z)(+d),h):f},h.context=function(d){return arguments.length?(l=d??null,h):l},h}function Sp(t){this._context=t}function es(t){return new Sp(t)}Sp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var ns=qt(86503);function Mc(){var t=ns.x,e=ns.y,r=(0,Nt.Z)(!0),a=null,s=es,c=null;function f(l){var h,p,_,d=l.length,y=!1;
1for(null==a&&(c=s(_=(0,$i.Z)())),h=0;h<=d;++h)!(h<d&&r(p=l[h],h,l))===y&&((y=!y)?c.lineStart():c.lineEnd()),y&&c.point(+t(p,h,l),+e(p,h,l));if(_)return c=null,_+""||null}return f.x=function(l){return arguments.length?(t="function"==typeof l?l:(0,Nt.Z)(+l),f):t},f.y=function(l){return arguments.length?(e="function"==typeof l?l:(0,Nt.Z)(+l),f):e},f.defined=function(l){return arguments.length?(r="function"==typeof l?l:(0,Nt.Z)(!!l),f):r},f.curve=function(l){return arguments.length?(s=l,null!=a&&(c=s(a)),f):s},f.context=function(l){return arguments.length?(null==l?a=c=null:c=s(a=l),f):a},f}function Tp(){var t=ns.x,e=null,r=(0,Nt.Z)(0),a=ns.y,s=(0,Nt.Z)(!0),c=null,f=es,l=null;function h(p){var y,_,x,b,C,S=p.length,A=!1,V=new Array(S),M=new Array(S);for(null==c&&(l=f(C=(0,$i.Z)())),y=0;y<=S;++y){if(!(y<S&&s(b=p[y],y,p))===A)if(A=!A)_=y,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),x=y-1;x>=_;--x)l.point(V[x],M[x]);l.lineEnd(),l.areaEnd()}A&&(V[y]=+t(b,y,p),M[y]=+r(b,y,p),l.point(e?+e(b,y,p):V[y],a?+a(b,y,p):M[y]))}if(C)return l=null,C+""||null}function d(){return Mc().defined(s).curve(f).context(c)}return h.x=function(p){return arguments.length?(t="function"==typeof p?p:(0,Nt.Z)(+p),e=null,h):t},h.x0=function(p){return arguments.length?(t="function"==typeof p?p:(0,Nt.Z)(+p),h):t},h.x1=function(p){return arguments.length?(e=null==p?null:"function"==typeof p?p:(0,Nt.Z)(+p),h):e},h.y=function(p){return arguments.length?(r="function"==typeof p?p:(0,Nt.Z)(+p),a=null,h):r},h.y0=function(p){return arguments.length?(r="function"==typeof p?p:(0,Nt.Z)(+p),h):r},h.y1=function(p){return arguments.length?(a=null==p?null:"function"==typeof p?p:(0,Nt.Z)(+p),h):a},h.lineX0=h.lineY0=function(){return d().x(t).y(r)},h.lineY1=function(){return d().x(t).y(a)},h.lineX1=function(){return d().x(e).y(r)},h.defined=function(p){return arguments.length?(s="function"==typeof p?p:(0,Nt.Z)(!!p),h):s},h.curve=function(p){return arguments.length?(f=p,null!=c&&(l=f(c)),h):f},h.context=function(p){return arguments.length?(null==p?c=l=null:l=f(c=p),h):c},h}function RS(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function VS(t){return t}function GS(){var t=VS,e=RS,r=null,a=(0,Nt.Z)(0),s=(0,Nt.Z)(Kn),c=(0,Nt.Z)(0);function f(l){var h,p,y,C,R,d=l.length,_=0,x=new Array(d),S=new Array(d),b=+a.apply(this,arguments),A=Math.min(Kn,Math.max(-Kn,s.apply(this,arguments)-b)),V=Math.min(Math.abs(A)/d,c.apply(this,arguments)),M=V*(A<0?-1:1);for(h=0;h<d;++h)(R=S[x[h]=h]=+t(l[h],h,l))>0&&(_+=R);for(null!=e?x.sort(function(z,B){return e(S[z],S[B])}):null!=r&&x.sort(function(z,B){return r(l[z],l[B])}),h=0,y=_?(A-d*M)/_:0;h<d;++h,b=C)S[p=x[h]]={data:l[p],index:h,value:R=S[p],startAngle:b,endAngle:C=b+(R>0?R*y:0)+M,padAngle:V};return S}return f.value=function(l){return arguments.length?(t="function"==typeof l?l:(0,Nt.Z)(+l),f):t},f.sortValues=function(l){return arguments.length?(e=l,r=null,f):e},f.sort=function(l){return arguments.length?(r=l,e=null,f):r},f.startAngle=function(l){return arguments.length?(a="function"==typeof l?l:(0,Nt.Z)(+l),f):a},f.endAngle=function(l){return arguments.length?(s="function"==typeof l?l:(0,Nt.Z)(+l),f):s},f.padAngle=function(l){return arguments.length?(c="function"==typeof l?l:(0,Nt.Z)(+l),f):c},f}var Ap=Ec(es);function Pp(t){this._curve=t}function Ec(t){function e(r){return new Pp(t(r))}return e._curve=t,e}function aa(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(r){return arguments.length?e(Ec(r)):e()._curve},t}function Cp(){return aa(Mc().curve(Ap))}function Lp(){var t=Tp().curve(Ap),e=t.curve,r=t.lineX0,a=t.lineX1,s=t.lineY0,c=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return aa(r())},delete t.lineX0,t.lineEndAngle=function(){return aa(a())},delete t.lineX1,t.lineInnerRadius=function(){return aa(s())},delete t.lineY0,t.lineOuterRadius=function(){return aa(c())},delete t.lineY1,t.curve=function(f){return arguments.length?e(Ec(f)):e()._curve},t}Pp.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var OS=qt(32222),kc=qt(18374);const Rc={draw:function(t,e){var r=Math.sqrt(e/jn);t.moveTo(r,0),t.arc(0,0,r,0,Kn)}},Mp={draw:function(t,e){var r=Math.sqrt(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}};var Ep=Math.sqrt(1/3),$S=2*Ep;const kp={draw:function(t,e){var r=Math.sqrt(e/$S),a=r*Ep;t.moveTo(0,-r),t.lineTo(a,0),t.lineTo(0,r),t.lineTo(-a,0),t.closePath()}};var Rp=Math.sin(jn/10)/Math.sin(7*jn/10),DS=Math.sin(Kn/10)*Rp,IS=-Math.cos(Kn/10)*Rp;const Vp={draw:function(t,e){var r=Math.sqrt(.8908130915292852*e),a=DS*r,s=IS*r;t.moveTo(0,-r),t.lineTo(a,s);for(var c=1;c<5;++c){var f=Kn*c/5,l=Math.cos(f),h=Math.sin(f);t.lineTo(h*r,-l*r),t.lineTo(l*a-h*s,h*a+l*s)}t.closePath()}},Gp={draw:function(t,e){var r=Math.sqrt(e),a=-r/2;t.rect(a,a,r,r)}};var Vc=Math.sqrt(3);const Op={draw:function(t,e){var r=-Math.sqrt(e/(3*Vc));t.moveTo(0,2*r),t.lineTo(-Vc*r,-r),t.lineTo(Vc*r,-r),t.closePath()}};var nn=-.5,rn=Math.sqrt(3)/2,Gc=1/Math.sqrt(12),FS=3*(Gc/2+1);const $p={draw:function(t,e){var r=Math.sqrt(e/FS),a=r/2,s=r*Gc,c=a,f=r*Gc+r,l=-c,h=f;t.moveTo(a,s),t.lineTo(c,f),t.lineTo(l,h),t.lineTo(nn*a-rn*s,rn*a+nn*s),t.lineTo(nn*c-rn*f,rn*c+nn*f),t.lineTo(nn*l-rn*h,rn*l+nn*h),t.lineTo(nn*a+rn*s,nn*s-rn*a),t.lineTo(nn*c+rn*f,nn*f-rn*c),t.lineTo(nn*l+rn*h,nn*h-rn
vendor: 15,967 bytes, line 1
1*l),t.closePath()}};var zS=[Rc,Mp,kp,Gp,Vp,Op,$p];function XS(){var t=(0,Nt.Z)(Rc),e=(0,Nt.Z)(64),r=null;function a(){var s;if(r||(r=s=(0,$i.Z)()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),s)return r=null,s+""||null}return a.type=function(s){return arguments.length?(t="function"==typeof s?s:(0,Nt.Z)(s),a):t},a.size=function(s){return arguments.length?(e="function"==typeof s?s:(0,Nt.Z)(+s),a):e},a.context=function(s){return arguments.length?(r=s??null,a):r},a}function Jn(){}function is(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function rs(t){this._context=t}function YS(t){return new rs(t)}function Np(t){this._context=t}function BS(t){return new Np(t)}function Dp(t){this._context=t}function HS(t){return new Dp(t)}function Ip(t,e){this._basis=new rs(t),this._beta=e}rs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:is(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:is(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Np.prototype={areaStart:Jn,areaEnd:Jn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:is(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Dp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,a=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break;case 3:this._point=4;default:is(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Ip.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var h,a=t[0],s=e[0],c=t[r]-a,f=e[r]-s,l=-1;++l<=r;)this._basis.point(this._beta*t[l]+(1-this._beta)*(a+(h=l/r)*c),this._beta*e[l]+(1-this._beta)*(s+h*f));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const US=function t(e){function r(a){return 1===e?new rs(a):new Ip(a,e)}return r.beta=function(a){return t(+a)},r}(.85);function as(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function Oc(t,e){this._context=t,this._k=(1-e)/6}Oc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:as(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:as(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const WS=function t(e){function r(a){return new Oc(a,e)}return r.tension=function(a){return t(+a)},r}(0);function $c(t,e){this._context=t,this._k=(1-e)/6}$c.prototype={areaStart:Jn,areaEnd:Jn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:as(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const qS=function t(e){function r(a){return new $c(a,e)}return r.tension=function(a){return t(+a)},r}(0);function Nc(t,e){this._context=t,this._k=(1-e)/6}Nc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:as(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ZS=function t(e){function r(a){return new Nc(a,e)}return r.tension=function(a){return t(+a)},r}(0);function Dc(t,e,r){var a=t._x1,s=t._y1,c=t._x2,f=t._y2;if(t._l01_a>Me){var l=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,h=3*t._l01_a*(t._l01_a+t._l12_a);a=(a*l-t._x0*t._l12_2a+t._x2*t._l01_2a)/h,s=(s*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/h}if(t._l23_a>Me){var d=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,p=3*t._l23_a*(t._l23_a+t._l12_a);c=(c*d+t._x1*t._l23_2a-e*t._l12_2a)/p,f=(f*d+t._y1*t._l23_2a-r*t._l12_2a)/p}t._context.bezierCurveTo(a,s,c,f,t._x2,t._y2)}function Fp(t,e){this._context=t,this._alpha=e}Fp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Dc(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const QS=function t(e){function r(a){return e?new Fp(a,e):new Oc(a,0)}return r.alpha=function(a){return t(+a)},r}(.5);function zp(t,e){this._context=t,this._alpha=e}zp.prototype={areaStart:Jn,areaEnd:Jn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Dc(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const jS=function t(e){function r(a){return e?new zp(a,e):new $c(a,0)}return r.alpha=function(a){return t(+a)},r}(.5);function Xp(t,e){this._context=t,this._alpha=e}Xp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+a*a,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Dc(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const KS=function t(e){function r(a){return e?new Xp(a,e):new Nc(a,0)}return r.alpha=function(a){return t(+a)},r}(.5);function Yp(t){this._context=t}function JS(t){return new Yp(t)}function Bp(t){return t<0?-1:1}function Hp(t,e,r){var a=t._x1-t._x0,s=e-t._x1,c=(t._y1-t._y0)/(a||s<0&&-0),f=(r-t._y1)/(s||a<0&&-0),l=(c*s+f*a)/(a+s);return(Bp(c)+Bp(f))*Math.min(Math.abs(c),Math.abs(f),.5*Math.abs(l))||0}function Up(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function Ic(t,e,r){var a=t._x0,c=t._x1,f=t._y1,l=(c-a)/3;t._context.bezierCurveTo(a+l,t._y0+l*e,c-l,f-l*r,c,f)}function os(t){this._context=t}function Wp(t){this._context=new qp(t)}function qp(t){this._context=t}function tT(t){return new os(t)}function eT(t){return new Wp(t)}function Zp(t){this._context=t}function Qp(t){var e,a,r=t.length-1,s=new Array(r),c=new Array(r),f=new Array(r);for(s[0]=0,c[0]=2,f[0]=t[0]+2*t[1],e=1;e<r-1;++e)s[e]=1,c[e]=4,f[e]=4*t[e]+2*t[e+1];for(s[r-1]=2,c[r-1]=7,f[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)c[e]-=a=s[e]/c[e-1],f[e]-=a*f[e-1];for(s[r-1]=f[r-1]/c[r-1],e=r-2;e>=0;--e)s[e]=(f[e]-s[e+1])/c[e];for(c[r-1]=(t[r]+s[r-1])/2,e=0;e<r-1;++e)c[e]=2*t[e+1]-s[e+1];return[s,c]}function nT(t){return new Zp(t)}function ss(t,e){this._context=t,this._t=e}function iT(t){return new ss(t,.5)}function rT(t){return new ss(t,0)}function aT(t){return new ss(t,1)}Yp.prototype={areaStart:Jn,areaEnd:Jn,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},os.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ic(this,this._t0,Up(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Ic(this,Up(this,r=Hp(this,t,e)),r);break;default:Ic(this,this._t0,r=Hp(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Wp.prototype=Object.create(os.prototype)).point=function(t,e){os.prototype.point.call(this,e,t)},qp.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,a,s,c){this._context.bezierCurveTo(e,t,a,r,c,s)}},Zp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var a=Qp(t),s=Qp(e),c=0,f=1;f<r;++c,++f)this._context.bezierCurveTo(a[0][c],s[0][c],a[1][c],s[1][c],t[f],e[f]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},ss.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var jp=qt(3668);function Ki(t,e){if((f=t.length)>1)for(var a,s,f,r=1,c=t[e[0]],l=c.length;r<f;++r)for(s=c,c=t[e[r]],a=0;a<l;++a)c[a][1]+=c[a][0]=isNaN(s[a][1])?s[a][0]:s[a][1]}function Ji(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function oT(t,e){return t[e]}function sT(){var t=(0,Nt.Z)([]),e=Ji,r=Ki,a=oT;function s(c){var l,y,f=t.apply(this,arguments),h=c.length,d=f.length,p=new Array(d);for(l=0;l<d;++l){for(var b,_=f[l],x=p[l]=new Array(h),S=0;S<h;++S)x[S]=b=[0,+a(c[S],_,S,c)],b.data=c[S];x.key=_}for(l=0,y=e(p);l<d;++l)p[y[l]].index=l;return r(p,y),p}return s.keys=function(c){return arguments.length?(t="function"==typeof c?c:(0,Nt.Z)(jp.t.call(c)),s):t},s.value=function(c){return arguments.length?(a="function"==typeof c?c:(0,Nt.Z)(+c),s):a},s.order=function(c){return arguments.length?(e=null==c?Ji:"function"==typeof c?c:(0,Nt.Z)(jp.t.call(c)),s):e},s.offset=function(c){return arguments.length?(r=c??Ki,s):r},s}function uT(t,e){if((a=t.length)>0){for(var r,a,f,s=0,c=t[0].length;s<c;++s){for(f=r=0;r<a;++r)f+=t[r][s][1]||0;if(f)for(r=0;r<a;++r)t[r][s][1]/=f}Ki(t,e)}}function cT(t,e){if((h=t.length)>0)for(var r,s,c,f,l,h,a=0,d=t[e[0]].length;a<d;++a)for(f=l=0,r=0;r<h;++r)(c=(s=t[e[r]][a])[1]-s[0])>0?(s[0]=f,s[1]=f+=c):c<0?(s[1]=l,s[0]=l+=c):(s[0]=0,s[1]=c)}function fT(t,e){if((s=t.length)>0){for(var s,r=0,a=t[e[0]],c=a.length;r<c;++r){for(var f=0,l=0;f<s;++f)l+=t[f][r][1]||0;a[r][1]+=a[r][0]=-l/2}Ki(t,e)}}function lT(t,e){if((f=t.length)>0&&(c=(s=t[e[0]]).length)>0){for(var s,c,f,r=0,a=1;a<c;++a){for(var l=0,h=0,d=0;l<f;
vendor: 6,014 bytes, line 1
1++l){for(var p=t[e[l]],y=p[a][1]||0,x=(y-(p[a-1][1]||0))/2,S=0;S<l;++S){var b=t[e[S]];x+=(b[a][1]||0)-(b[a-1][1]||0)}h+=y,d+=x*y}s[a-1][1]+=s[a-1][0]=r,h&&(r-=d/h)}s[a-1][1]+=s[a-1][0]=r,Ki(t,e)}}function Kp(t){var e=t.map(hT);return Ji(t).sort(function(r,a){return e[r]-e[a]})}function hT(t){for(var s,e=-1,r=0,a=t.length,c=-1/0;++e<a;)(s=+t[e][1])>c&&(c=s,r=e);return r}function Jp(t){var e=t.map(t0);return Ji(t).sort(function(r,a){return e[r]-e[a]})}function t0(t){for(var s,e=0,r=-1,a=t.length;++r<a;)(s=+t[r][1])&&(e+=s);return e}function dT(t){return Jp(t).reverse()}function gT(t){var r,a,e=t.length,s=t.map(t0),c=Kp(t),f=0,l=0,h=[],d=[];for(r=0;r<e;++r)a=c[r],f<l?(f+=s[a],h.push(a)):(l+=s[a],d.push(a));return d.reverse().concat(h)}function pT(t){return Ji(t).reverse()}var e0="%Y-%m-%dT%H:%M:%S.%LZ";const mT=Date.prototype.toISOString?function _T(t){return t.toISOString()}:Wo(e0),wT=+new Date("2000-01-01T00:00:00.000Z")?function xT(t){var e=new Date(t);return isNaN(e)?null:e}:bc(e0);function bT(t,e,r){var a=new xr,s=e;return null==e?(a.restart(t,e,r),a):(e=+e,r=null==r?Ri():+r,a.restart(function c(f){f+=s,a.restart(c,s+=e,r),t(f)},e,r),a)}function n0(t){return function(){return t}}function ST(t){return t[0]}function TT(t){return t[1]}function Fc(){this._=null}function us(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function oa(t,e){var r=e,a=e.R,s=r.U;s?s.L===r?s.L=a:s.R=a:t._=a,a.U=s,r.U=a,r.R=a.L,r.R&&(r.R.U=r),a.L=r}function sa(t,e){var r=e,a=e.L,s=r.U;s?s.L===r?s.L=a:s.R=a:t._=a,a.U=s,r.U=a,r.L=a.R,r.L&&(r.L.U=r),a.R=r}function i0(t){for(;t.L;)t=t.L;return t}Fc.prototype={constructor:Fc,insert:function(t,e){var r,a,s;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;r=t}else this._?(t=i0(this._),e.P=null,e.N=t,t.P=t.L=e,r=t):(e.P=e.N=null,this._=e,r=null);for(e.L=e.R=null,e.U=r,e.C=!0,t=e;r&&r.C;)r===(a=r.U).L?(s=a.R)&&s.C?(r.C=s.C=!1,a.C=!0,t=a):(t===r.R&&(oa(this,r),r=(t=r).U),r.C=!1,a.C=!0,sa(this,a)):(s=a.L)&&s.C?(r.C=s.C=!1,a.C=!0,t=a):(t===r.L&&(sa(this,r),r=(t=r).U),r.C=!1,a.C=!0,oa(this,a)),r=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var r,c,f,e=t.U,a=t.L,s=t.R;if(c=a?s?i0(s):a:s,e?e.L===t?e.L=c:e.R=c:this._=c,a&&s?(f=c.C,c.C=t.C,c.L=a,a.U=c,c!==s?(e=c.U,c.U=t.U,e.L=t=c.R,c.R=s,s.U=c):(c.U=e,e=c,t=c.R)):(f=t.C,t=c),t&&(t.U=e),!f){if(t&&t.C)return void(t.C=!1);do{if(t===this._)break;if(t===e.L){if((r=e.R).C&&(r.C=!1,e.C=!0,oa(this,e),r=e.R),r.L&&r.L.C||r.R&&r.R.C){(!r.R||!r.R.C)&&(r.L.C=!1,r.C=!0,sa(this,r),r=e.R),r.C=e.C,e.C=r.R.C=!1,oa(this,e),t=this._;break}}else if((r=e.L).C&&(r.C=!1,e.C=!0,sa(this,e),r=e.L),r.L&&r.L.C||r.R&&r.R.C){(!r.L||!r.L.C)&&(r.R.C=!1,r.C=!0,oa(this,r),r=e.L),r.C=e.C,e.C=r.L.C=!1,sa(this,e),t=this._;break}r.C=!0,t=e,e=e.U}while(!t.C);t&&(t.C=!1)}}};const r0=Fc;function ua(t,e,r,a){var s=[null,null],c=Ee.push(s)-1;return s.left=t,s.right=e,r&&cs(s,t,e,r),a&&cs(s,e,t,a),Qe[t.index].halfedges.push(c),Qe[e.index].halfedges.push(c),s}function ca(t,e,r){var a=[e,r];return a.left=t,a}function cs(t,e,r,a){t[0]||t[1]?t.left===r?t[1]=a:t[0]=a:(t[0]=a,t.left=e,t.right=r)}function AT(t,e,r,a,s){var b,c=t[0],f=t[1],l=c[0],h=c[1],y=0,_=1,x=f[0]-l,S=f[1]-h;if(b=e-l,x||!(b>0)){if(b/=x,x<0){if(b<y)return;b<_&&(_=b)}else if(x>0){if(b>_)return;b>y&&(y=b)}if(b=a-l,x||!(b<0)){if(b/=x,x<0){if(b>_)return;b>y&&(y=b)}else if(x>0){if(b<y)return;b<_&&(_=b)}if(b=r-h,S||!(b>0)){if(b/=S,S<0){if(b<y)return;b<_&&(_=b)}else if(S>0){if(b>_)return;b>y&&(y=b)}if(b=s-h,S||!(b<0)){if(b/=S,S<0){if(b>_)return;b>y&&(y=b)}else if(S>0){if(b<y)return;b<_&&(_=b)}return!(y>0)&&!(_<1)||(y>0&&(t[0]=[l+y*x,h+y*S]),_<1&&(t[1]=[l+_*x,h+_*S])),!0}}}}}function PT(t,e,r,a,s){var c=t[1];if(c)return!0;var b,A,f=t[0],l=t.left,h=t.right,d=l[0],p=l[1],y=h[0],_=h[1],x=(d+y)/2;if(_===p){if(x<e||x>=a)return;if(d>y){if(f){if(f[1]>=s)return}else f=[x,r];c=[x,s]}else{if(f){if(f[1]<r)return}else f=[x,s];c=[x,r]}}else if(A=(p+_)/2-(b=(d-y)/(_-p))*x,b<-1||b>1)if(d>y){if(f){if(f[1]>=s)return}else f=[(r-A)/b,r];c=[(s-A)/b,s]}else{if(f){if(f[1]<r)return}else f=[(s-A)/b,s];c=[(r-A)/b,r]}else if(p<_){if(f){if(f[0]>=a)return}else f=[e,b*e+A];c=[a,b*a+A]}else{if(f){if(f[0]<e)return}else f=[a,b*a+A];c=[e,b*e+A]}return t[0]=f,t[1]=c,!0}function MT(t,e){var r=t.site,a=e.left,s=e.right;return r===s&&(s=a,a=r),s?Math.atan2(s[1]-a[1],s[0]-a[0]):(r===a?(a=e[1],s=e[0]):(a=e[0],s=e[1]),Math.atan2(a[0]-s[0],s[1]-a[1]))}function a0(t,e){return e[+(e.left!==t.site)]}function ET(t,e){return e[+(e.left===t.site)]}var zc,o0=[];function VT(){us(this),this.x=this.y=this.arc=this.site=this.cy=null}function tr(t){var e=t.P,r=t.N;if(e&&r){var a=e.site,s=t.site,c=r.site;if(a!==c){var f=s[0],l=s[1],h=a[0]-f,d=a[1]-l,p=c[0]-f,y=c[1]-l,_=2*(h*y-d*p);if(!(_>=-DT)){var x=h*h+d*d,S=p*p+y*y,b=(y*x-d*S)/_,A=(h*S-p*x)/_,C=o0.pop()||new VT;C.arc=t,C.site=s,C.x=b+f,C.y=(C.cy=A+l)+Math.sqrt(b*b+A*A),t.circle=C;for(var V=null,M=fa._;M;)if(C.y<M.y||C.y===M.y&&C.x<=M.x){if(!M.L){V=M.P;break}M=M.L}else{if(!M.R){V=M;break}M=M.R}fa.insert(V,C),V||(zc=C)}}}}function er(t){var e=t.circle;e&&(e.P||(zc=e.N),fa.remove(e),o0.push(e),us(e),t.circle=null)}var s0=[];function GT(){us(this),this.edge=this.site=this.circle=null}function u0(t){var e=s0.pop()||new GT;return e.site=t,e}function Xc(t){er(t),nr.remove(t),s0.push(t),us(t)}function OT(t){var e=t.circle,r=e.x,a=e.cy,s=[r,a],c=t.P,f=t.N,l=[t];Xc(t);for(var h=c;h.circle&&Math.abs(r-h.circle.x)<jt&&Math.abs(a-h.circle.cy)<jt;)c=h.P,l.unshift(h),Xc(h),h=c;l.unshift(h),er(h);for(var d=f;d.circle&&Math.abs(r-d.circle.x)<jt&&Math.abs(a-d.circle.cy)<jt;)f=d.N,l.push(d),Xc(d),d=f;l.push(d),er(d);var y,p=l.length;for(y=1;y<p;++y)cs((d=l[y]).edge,(h=l[y-1]).site,d.site,s);(d=l[p-1]).edge=ua((h=l[0]).site,d.site,null,s),tr(h),tr(d)}function $T(t){for(var a,s,c,f,e=t[0],r=t[1],l=nr._;l;)if((c=c0(l,r)-e)>jt)l=l.L;else{if(!((f=e-NT(l,r))>jt)){c>-jt?(a=l.P,s=l):f>-jt?(a=l,s=l.N):a=s=l;break}if(!l.R){a=l;break}l=l.R}!function LT(t){Qe[t.index]={site:t,halfedges:[]}}(t);var h=u0(t);
vendor: 4,192 bytes, line 1
1if(nr.insert(a,h),a||s){if(a===s)return er(a),s=u0(a.site),nr.insert(h,s),h.edge=s.edge=ua(a.site,h.site),tr(a),void tr(s);if(!s)return void(h.edge=ua(a.site,h.site));er(a),er(s);var d=a.site,p=d[0],y=d[1],_=t[0]-p,x=t[1]-y,S=s.site,b=S[0]-p,A=S[1]-y,C=2*(_*A-x*b),V=_*_+x*x,M=b*b+A*A,R=[(A*V-x*M)/C+p,(_*M-b*V)/C+y];cs(s.edge,d,S,R),h.edge=ua(d,t,null,R),s.edge=ua(t,S,null,R),tr(a),tr(s)}}function c0(t,e){var r=t.site,a=r[0],s=r[1],c=s-e;if(!c)return a;var f=t.P;if(!f)return-1/0;var l=(r=f.site)[0],h=r[1],d=h-e;if(!d)return l;var p=l-a,y=1/c-1/d,_=p/d;return y?(-_+Math.sqrt(_*_-2*y*(p*p/(-2*d)-h+d/2+s-c/2)))/y+a:(a+l)/2}function NT(t,e){var r=t.N;if(r)return c0(r,e);var a=t.site;return a[1]===e?a[0]:1/0}var nr,Qe,fa,Ee,jt=1e-6,DT=1e-12;function IT(t,e,r){return(t[0]-r[0])*(e[1]-t[1])-(t[0]-e[0])*(r[1]-t[1])}function FT(t,e){return e[1]-t[1]||e[0]-t[0]}function Yc(t,e){var a,s,c,r=t.sort(FT).pop();for(Ee=[],Qe=new Array(t.length),nr=new r0,fa=new r0;;)if(c=zc,r&&(!c||r[1]<c.y||r[1]===c.y&&r[0]<c.x))(r[0]!==a||r[1]!==s)&&($T(r),a=r[0],s=r[1]),r=t.pop();else{if(!c)break;OT(c.arc)}if(function kT(){for(var r,a,s,c,t=0,e=Qe.length;t<e;++t)if((r=Qe[t])&&(c=(a=r.halfedges).length)){var f=new Array(c),l=new Array(c);for(s=0;s<c;++s)f[s]=s,l[s]=MT(r,Ee[a[s]]);for(f.sort(function(h,d){return l[d]-l[h]}),s=0;s<c;++s)l[s]=a[f[s]];for(s=0;s<c;++s)a[s]=l[s]}}(),e){var f=+e[0][0],l=+e[0][1],h=+e[1][0],d=+e[1][1];(function CT(t,e,r,a){for(var c,s=Ee.length;s--;)PT(c=Ee[s],t,e,r,a)&&AT(c,t,e,r,a)&&(Math.abs(c[0][0]-c[1][0])>jt||Math.abs(c[0][1]-c[1][1])>jt)||delete Ee[s]})(f,l,h,d),function RT(t,e,r,a){var c,f,l,h,d,p,y,_,x,S,b,A,s=Qe.length,C=!0;for(c=0;c<s;++c)if(f=Qe[c]){for(l=f.site,h=(d=f.halfedges).length;h--;)Ee[d[h]]||d.splice(h,1);for(h=0,p=d.length;h<p;)b=(S=ET(f,Ee[d[h]]))[0],A=S[1],_=(y=a0(f,Ee[d[++h%p]]))[0],x=y[1],(Math.abs(b-_)>jt||Math.abs(A-x)>jt)&&(d.splice(h,0,Ee.push(ca(l,S,Math.abs(b-t)<jt&&a-A>jt?[t,Math.abs(_-t)<jt?x:a]:Math.abs(A-a)<jt&&r-b>jt?[Math.abs(x-a)<jt?_:r,a]:Math.abs(b-r)<jt&&A-e>jt?[r,Math.abs(_-r)<jt?x:e]:Math.abs(A-e)<jt&&b-t>jt?[Math.abs(x-e)<jt?_:t,e]:null))-1),++p);p&&(C=!1)}if(C){var V,M,R,z=1/0;for(c=0,C=null;c<s;++c)(f=Qe[c])&&(R=(V=(l=f.site)[0]-t)*V+(M=l[1]-e)*M)<z&&(z=R,C=f);if(C){var B=[t,e],X=[t,a],j=[r,a],W=[r,e];C.halfedges.push(Ee.push(ca(l=C.site,B,X))-1,Ee.push(ca(l,X,j))-1,Ee.push(ca(l,j,W))-1,Ee.push(ca(l,W,B))-1)}}for(c=0;c<s;++c)(f=Qe[c])&&(f.halfedges.length||delete Qe[c])}(f,l,h,d)}this.edges=Ee,this.cells=Qe,nr=fa=Ee=Qe=null}function zT(){var t=ST,e=TT,r=null;function a(s){return new Yc(s.map(function(c,f){var l=[Math.round(t(c,f,s)/jt)*jt,Math.round(e(c,f,s)/jt)*jt];return l.index=f,l.data=c,l}),r)}return a.polygons=function(s){return a(s).polygons()},a.links=function(s){return a(s).links()},a.triangles=function(s){return a(s).triangles()},a.x=function(s){return arguments.length?(t="function"==typeof s?s:n0(+s),a):t},a.y=function(s){return arguments.length?(e="function"==typeof s?s:n0(+s),a):e},a.extent=function(s){return arguments.length?(r=null==s?null:[[+s[0][0],+s[0][1]],[+s[1][0],+s[1][1]]],a):r&&[[r[0][0],r[0][1]],[r[1][0],r[1][1]]]},a.size=function(s){return arguments.length?(r=null==s?null:[[0,0],[+s[0],+s[1]]],a):r&&[r[1][0]-r[0][0],r[1][1]-r[0][1]]},a}function fs(t){return function(){return t}}function XT(t,e,r){this.target=t,this.type=e,this.transform=r}function In(t,e,r){this.k=t,this.x=e,this.y=r}Yc.prototype={constructor:Yc,polygons:function(){var t=this.edges;return this.cells.map(function(e){var r=e.halfedges.map(function(a){return a0(e,t[a])});return r.data=e.site.data,r})},triangles:function(){var t=[],e=this.edges;return this.cells.forEach(function(r,a){if(l=(c=r.halfedges).length)for(var c,l,h,s=r.site,f=-1,d=e[c[l-1]],p=d.left===s?d.right:d.left;++f<l;)h=p,p=(d=e[c[f]]).left===s?d.right:d.left,h&&p&&a<h.index&&a<p.index&&IT(s,h,p)<0&&t.push([s.data,h.data,p.data])}),t},links:function(){return this.edges.filter(function(t){return t.right}).map(function(t){return{source:t.left.data,target:t.right.data}})},find:function(t,e,r){for(var s,l,a=this,c=a._found||0,f=a.cells.length;!(l=a.cells[c]);)if(++c>=f)return null;var h=t-l.site[0],d=e-l.site[1],p=h*h+d*d;
1do{l=a.cells[s=c],c=null,l.halfedges.forEach(function(y){var _=a.edges[y],x=_.left;if(x!==l.site&&x||(x=_.right)){var S=t-x[0],b=e-x[1],A=S*S+b*b;A<p&&(p=A,c=x.index)}})}while(null!==c);return a._found=s,null==r||p<=r*r?l.site:null}},In.prototype={constructor:In,scale:function(t){return 1===t?this:new In(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new In(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ls=new In(1,0,0);function f0(t){for(;!t.__zoom;)if(!(t=t.parentNode))return ls;return t.__zoom}function Bc(){at.stopImmediatePropagation()}function la(){at.preventDefault(),at.stopImmediatePropagation()}function YT(){return!at.ctrlKey&&!at.button}function BT(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function l0(){return this.__zoom||ls}function HT(){return-at.deltaY*(1===at.deltaMode?.05:at.deltaMode?1:.002)}function UT(){return navigator.maxTouchPoints||"ontouchstart"in this}function WT(t,e,r){var a=t.invertX(e[0][0])-r[0][0],s=t.invertX(e[1][0])-r[1][0],c=t.invertY(e[0][1])-r[0][1],f=t.invertY(e[1][1])-r[1][1];return t.translate(s>a?(a+s)/2:Math.min(0,a)||Math.max(0,s),f>c?(c+f)/2:Math.min(0,c)||Math.max(0,f))}function qT(){var p,y,t=YT,e=BT,r=WT,a=HT,s=UT,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],l=250,h=vd,d=T("start","zoom","end"),_=500,S=0;function b(G){G.property("__zoom",l0).on("wheel.zoom",B).on("mousedown.zoom",X).on("dblclick.zoom",j).filter(s).on("touchstart.zoom",W).on("touchmove.zoom",q).on("touchend.zoom touchcancel.zoom",U).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function A(G,H){return(H=Math.max(c[0],Math.min(c[1],H)))===G.k?G:new In(H,G.x,G.y)}function C(G,H,J){var Y=H[0]-J[0]*G.k,K=H[1]-J[1]*G.k;return Y===G.x&&K===G.y?G:new In(G.k,Y,K)}function V(G){return[(+G[0][0]+ +G[1][0])/2,(+G[0][1]+ +G[1][1])/2]}function M(G,H,J){G.on("start.zoom",function(){R(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){R(this,arguments).end()}).tween("zoom",function(){var Y=this,K=arguments,ct=R(Y,K),ot=e.apply(Y,K),lt=null==J?V(ot):"function"==typeof J?J.apply(Y,K):J,St=Math.max(ot[1][0]-ot[0][0],ot[1][1]-ot[0][1]),Tt=Y.__zoom,re="function"==typeof H?H.apply(Y,K):H,Kt=h(Tt.invert(lt).concat(St/Tt.k),re.invert(lt).concat(St/re.k));return function(zt){if(1===zt)zt=re;else{var fe=Kt(zt),an=St/fe[2];zt=new In(an,lt[0]-fe[0]*an,lt[1]-fe[1]*an)}ct.zoom(null,zt)}})}function R(G,H,J){return!J&&G.__zooming||new z(G,H)}function z(G,H){this.that=G,this.args=H,this.active=0,this.extent=e.apply(G,H),this.taps=0}function B(){if(t.apply(this,arguments)){var G=R(this,arguments),H=this.__zoom,J=Math.max(c[0],Math.min(c[1],H.k*Math.pow(2,a.apply(this,arguments)))),Y=ii(this);if(G.wheel)(G.mouse[0][0]!==Y[0]||G.mouse[0][1]!==Y[1])&&(G.mouse[1]=H.invert(G.mouse[0]=Y)),clearTimeout(G.wheel);else{if(H.k===J)return;G.mouse=[Y,H.invert(Y)],ai(this),G.start()}la(),G.wheel=setTimeout(K,150),G.zoom("mouse",r(C(A(H,J),G.mouse[0],G.mouse[1]),G.extent,f))}function K(){G.wheel=null,G.end()}}function X(){if(!y&&t.apply(this,arguments)){var G=R(this,arguments,!0),H=He(at.view).on("mousemove.zoom",ct,!0).on("mouseup.zoom",ot,!0),J=ii(this),Y=at.clientX,K=at.clientY;ga(at.view),Bc(),G.mouse=[J,this.__zoom.invert(J)],ai(this),G.start()}function ct(){if(la(),!G.moved){var lt=at.clientX-Y,St=at.clientY-K;G.moved=lt*lt+St*St>S}
1G.zoom("mouse",r(C(G.that.__zoom,G.mouse[0]=ii(G.that),G.mouse[1]),G.extent,f))}function ot(){H.on("mousemove.zoom mouseup.zoom",null),pa(at.view,G.moved),la(),G.end()}}function j(){if(t.apply(this,arguments)){var G=this.__zoom,H=ii(this),J=G.invert(H),Y=G.k*(at.shiftKey?.5:2),K=r(C(A(G,Y),H,J),e.apply(this,arguments),f);la(),l>0?He(this).transition().duration(l).call(M,K,H):He(this).call(b.transform,K)}}function W(){if(t.apply(this,arguments)){var Y,K,ct,ot,G=at.touches,H=G.length,J=R(this,arguments,at.changedTouches.length===H);for(Bc(),K=0;K<H;++K)ot=[ot=gr(this,G,(ct=G[K]).identifier),this.__zoom.invert(ot),ct.identifier],J.touch0?!J.touch1&&J.touch0[2]!==ot[2]&&(J.touch1=ot,J.taps=0):(J.touch0=ot,Y=!0,J.taps=1+!!p);p&&(p=clearTimeout(p)),Y&&(J.taps<2&&(p=setTimeout(function(){p=null},_)),ai(this),J.start())}}function q(){if(this.__zooming){var Y,K,ct,ot,G=R(this,arguments),H=at.changedTouches,J=H.length;for(la(),p&&(p=clearTimeout(p)),G.taps=0,Y=0;Y<J;++Y)ct=gr(this,H,(K=H[Y]).identifier),G.touch0&&G.touch0[2]===K.identifier?G.touch0[0]=ct:G.touch1&&G.touch1[2]===K.identifier&&(G.touch1[0]=ct);if(K=G.that.__zoom,G.touch1){var lt=G.touch0[0],St=G.touch0[1],Tt=G.touch1[0],re=G.touch1[1],Kt=(Kt=Tt[0]-lt[0])*Kt+(Kt=Tt[1]-lt[1])*Kt,zt=(zt=re[0]-St[0])*zt+(zt=re[1]-St[1])*zt;K=A(K,Math.sqrt(Kt/zt)),ct=[(lt[0]+Tt[0])/2,(lt[1]+Tt[1])/2],ot=[(St[0]+re[0])/2,(St[1]+re[1])/2]}else{if(!G.touch0)return;ct=G.touch0[0],ot=G.touch0[1]}G.zoom("touch",r(C(K,ct,ot),G.extent,f))}}function U(){if(this.__zooming){var Y,K,G=R(this,arguments),H=at.changedTouches,J=H.length;for(Bc(),y&&clearTimeout(y),y=setTimeout(function(){y=null},_),Y=0;Y<J;++Y)K=H[Y],G.touch0&&G.touch0[2]===K.identifier?delete G.touch0:G.touch1&&G.touch1[2]===K.identifier&&delete G.touch1;if(G.touch1&&!G.touch0&&(G.touch0=G.touch1,delete G.touch1),G.touch0)G.touch0[1]=this.__zoom.invert(G.touch0[0]);else if(G.end(),2===G.taps){var ct=He(this).on("dblclick.zoom");ct&&ct.apply(this,arguments)}}}return b.transform=function(G,H,J){var Y=G.selection?G.selection():G;Y.property("__zoom",l0),G!==Y?M(G,H,J):Y.interrupt().each(function(){R(this,arguments).start().zoom(null,"function"==typeof H?H.apply(this,arguments):H).end()})},b.scaleBy=function(G,H,J){b.scaleTo(G,function(){var Y=this.__zoom.k,K="function"==typeof H?H.apply(this,arguments):H;return Y*K},J)},b.scaleTo=function(G,H,J){b.transform(G,function(){var Y=e.apply(this,arguments),K=this.__zoom,ct=null==J?V(Y):"function"==typeof J?J.apply(this,arguments):J,ot=K.invert(ct),lt="function"==typeof H?H.apply(this,arguments):H;return r(C(A(K,lt),ct,ot),Y,f)},J)},b.translateBy=function(G,H,J){b.transform(G,function(){return r(this.__zoom.translate("function"==typeof H?H.apply(this,arguments):H,"function"==typeof J?J.apply(this,arguments):J),e.apply(this,arguments),f)})},b.translateTo=function(G,H,J,Y){b.transform(G,function(){var K=e.apply(this,arguments),ct=this.__zoom,ot=null==Y?V(K):"function"==typeof Y?Y.apply(this,arguments):Y;return r(ls.translate(ot[0],ot[1]).scale(ct.k).translate("function"==typeof H?-H.apply(this,arguments):-H,"function"==typeof J?-J.apply(this,arguments):-J),K,f)},Y)},z.prototype={start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(G,H){return this.mouse&&"mouse"!==G&&(this.mouse[1]=H.invert(this.mouse[0])),this.touch0&&"touch"!==G&&(this.touch0[1]=H.invert(this.touch0[0])),this.touch1&&"touch"!==G&&(this.touch1[1]=H.invert(this.touch1[0])),this.that.__zoom=H,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(G){cr(new XT(b,G,this.that.__zoom),d.apply,d,[G,this.that,this.args])}},b.wheelDelta=function(G){return arguments.length?(a="function"==typeof G?G:fs(+G),b):a},b.filter=function(G){return arguments.length?(t="function"==typeof G?G:fs(!!G),b):t},b.touchable=function(G){return arguments.length?(s="function"==typeof G?G:fs(!!G),b):s},b.extent=function(G){return arguments.length?(e="function"==typeof G?G:fs([[+G[0][0],+G[0][1]],[+G[1][0],+G[1][1]]]),b):e},b.scaleExtent=function(G){return arguments.length?(c[0]=+G[0],c[1]=+G[1],b):[c[0],c[
vendor: 526 bytes, line 1
11]]},b.translateExtent=function(G){return arguments.length?(f[0][0]=+G[0][0],f[1][0]=+G[1][0],f[0][1]=+G[0][1],f[1][1]=+G[1][1],b):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},b.constrain=function(G){return arguments.length?(r=G,b):r},b.duration=function(G){return arguments.length?(l=+G,b):l},b.interpolate=function(G){return arguments.length?(h=G,b):h},b.on=function(){var G=d.on.apply(d,arguments);return G===d?b:G},b.clickDistance=function(G){return arguments.length?(S=(G=+G)*G,b):Math.sqrt(S)},b}f0.prototype=In.prototype}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.