All Downloads are FREE. Search and download functionalities are using the official Maven repository.

webapp.dist.index.js Maven / Gradle / Ivy

There is a newer version: 464
Show newest version
(()=>{var t={1918:(t,e,n)=>{"use strict";n.d(e,{Tj:()=>o});var r="$";function i(){}function a(t,e){var n=new i;if(t instanceof i)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,a=-1,o=t.length;if(null==e)for(;++a{"use strict";n.d(e,{J:()=>c});var r={value:function(){}};function i(){for(var t,e=0,n=arguments.length,r={};e=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),c=-1,l=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++c0)for(var n,r,i=new Array(n),a=0;a{"use strict";n.d(e,{sw:()=>c,Nu:()=>s});var r={},i={};function a(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+"]"})).join(",")+"}")}function o(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function o(t,e){var a,o=[],u=t.length,c=0,l=0,s=u<=0,f=!1;function h(){if(s)return i;if(f)return f=!1,r;var e,a,o=c;if(34===t.charCodeAt(o)){for(;c++=u?s=!0:10===(a=t.charCodeAt(c++))?f=!0:13===a&&(f=!0,10===t.charCodeAt(c)&&++c),t.slice(o+1,e-1).replace(/""/g,'"')}for(;c{t.exports={graphlib:n(5653),dagre:n(8193),intersect:n(8070),render:n(2330),util:n(7998),version:n(5872)}},2744:(t,e,n)=>{var r=n(7998);function i(t,e,n,i){var a=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(a,n[i+"Style"]),n[i+"Class"]&&a.attr("class",n[i+"Class"])}t.exports={default:i,normal:i,vee:function(t,e,n,i){var a=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(a,n[i+"Style"]),n[i+"Class"]&&a.attr("class",n[i+"Class"])},undirected:function(t,e,n,i){var a=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(a,n[i+"Style"]),n[i+"Class"]&&a.attr("class",n[i+"Class"])}}},7076:(t,e,n)=>{var r=n(7998),i=n(4747),a=n(3965);t.exports=function(t,e){var n=e.nodes().filter((function(t){return r.isSubgraph(e,t)})),o=t.selectAll("g.cluster").data(n,(function(t){return t}));return o.selectAll("*").remove(),o.enter().append("g").attr("class","cluster").attr("id",(function(t){return e.node(t).id})).style("opacity",0),o=t.selectAll("g.cluster"),r.applyTransition(o,e).style("opacity",1),o.each((function(t){var n=e.node(t),r=i.select(this);i.select(this).append("rect");var o=r.append("g").attr("class","label");a(o,n,n.clusterLabelPos)})),o.selectAll("rect").each((function(t){var n=e.node(t),a=i.select(this);r.applyStyle(a,n.style)})),r.applyTransition(o.exit(),e).style("opacity",0).remove(),o}},3784:(t,e,n)=>{"use strict";var r=n(3451),i=n(3965),a=n(7998),o=n(4747);t.exports=function(t,e){var n=t.selectAll("g.edgeLabel").data(e.edges(),(function(t){return a.edgeToId(t)})).classed("update",!0);return n.selectAll("*").remove(),n.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(n=t.selectAll("g.edgeLabel")).each((function(t){var n=e.edge(t),a=i(o.select(this),e.edge(t),0,0).classed("label",!0),u=a.node().getBBox();n.labelId&&a.attr("id",n.labelId),r.has(n,"width")||(n.width=u.width),r.has(n,"height")||(n.height=u.height)})),a.applyTransition(n.exit(),e).style("opacity",0).remove(),n}},7863:(t,e,n)=>{"use strict";var r=n(3451),i=n(5408),a=n(7998),o=n(4747);function u(t,e){var n=o.line().x((function(t){return t.x})).y((function(t){return t.y}));return n.curve(t.curve),n(e)}t.exports=function(t,e,n){var c=t.selectAll("g.edgePath").data(e.edges(),(function(t){return a.edgeToId(t)})).classed("update",!0);return function(t,e){var n=t.enter().append("g").attr("class","edgePath").style("opacity",0);n.append("path").attr("class","path").attr("d",(function(t){var n=e.edge(t),i=e.node(t.v).elem;return u(n,r.range(n.points.length).map((function(){return e=(t=i).getBBox(),{x:(n=t.ownerSVGElement.getScreenCTM().inverse().multiply(t.getScreenCTM()).translate(e.width/2,e.height/2)).e,y:n.f};var t,e,n})))})),n.append("defs")}(c,e),function(t,e){var n=t.exit();a.applyTransition(n,e).style("opacity",0).remove(),a.applyTransition(n.select("path.path"),e).attr("d",(function(t){var n=e.node(t.v);return n?u({},r.range(this.getTotalLength()).map((function(){return n}))):o.select(this).attr("d")}))}(c,e),c=t.selectAll("g.edgePath"),a.applyTransition(c,e).style("opacity",1),c.each((function(t){var n=o.select(this),r=e.edge(t);r.elem=this,r.id&&n.attr("id",r.id),a.applyClass(n,r.class,(n.classed("update")?"update ":"")+"edgePath")})),c.selectAll("path.path").each((function(t){var n=e.edge(t);n.arrowheadId=r.uniqueId("arrowhead");var c=o.select(this).attr("marker-end",(function(){return"url("+(t=location.href,e=n.arrowheadId,t.split("#")[0]+"#"+e+")");var t,e})).style("fill","none");a.applyTransition(c,e).attr("d",(function(t){return function(t,e){var n=t.edge(e),r=t.node(e.v),a=t.node(e.w),o=n.points.slice(1,n.points.length-1);return o.unshift(i(r,o[0])),o.push(i(a,o[o.length-1])),u(n,o)}(e,t)})),a.applyStyle(c,n.style)})),c.selectAll("defs *").remove(),c.selectAll("defs").each((function(t){var r=e.edge(t);(0,n[r.arrowhead])(o.select(this),r.arrowheadId,r,"arrowhead")})),c}},2490:(t,e,n)=>{"use strict";var r=n(3451),i=n(3965),a=n(7998),o=n(4747);t.exports=function(t,e,n){var u=e.nodes().filter((function(t){return!a.isSubgraph(e,t)})),c=t.selectAll("g.node").data(u,(function(t){return t})).classed("update",!0);return c.selectAll("*").remove(),c.enter().append("g").attr("class","node").style("opacity",0),(c=t.selectAll("g.node")).each((function(t){var u=e.node(t),c=o.select(this);a.applyClass(c,u.class,(c.classed("update")?"update ":"")+"node");var l=c.append("g").attr("class","label"),s=i(l,u),f=n[u.shape],h=r.pick(s.node().getBBox(),"width","height");u.elem=this,u.id&&c.attr("id",u.id),u.labelId&&l.attr("id",u.labelId),r.has(u,"width")&&(h.width=u.width),r.has(u,"height")&&(h.height=u.height),h.width+=u.paddingLeft+u.paddingRight,h.height+=u.paddingTop+u.paddingBottom,l.attr("transform","translate("+(u.paddingLeft-u.paddingRight)/2+","+(u.paddingTop-u.paddingBottom)/2+")");var d=f(o.select(this),h,u);a.applyStyle(d,u.style);var p=d.node().getBBox();u.width=p.width,u.height=p.height})),a.applyTransition(c.exit(),e).style("opacity",0).remove(),c}},4747:(t,e,n)=>{var r;if(!r)try{r=n(2549)}catch(t){}r||(r=window.d3),t.exports=r},8193:(t,e,n)=>{var r;try{r=n(6246)}catch(t){}r||(r=window.dagre),t.exports=r},5653:(t,e,n)=>{var r;try{r=n(8362)}catch(t){}r||(r=window.graphlib),t.exports=r},8070:(t,e,n)=>{t.exports={node:n(5408),circle:n(7672),ellipse:n(1772),polygon:n(7536),rect:n(8782)}},7672:(t,e,n)=>{var r=n(1772);t.exports=function(t,e,n){return r(t,e,e,n)}},1772:t=>{t.exports=function(t,e,n,r){var i=t.x,a=t.y,o=i-r.x,u=a-r.y,c=Math.sqrt(e*e*u*u+n*n*o*o),l=Math.abs(e*n*o/c);r.x{function e(t,e){return t*e>0}t.exports=function(t,n,r,i){var a,o,u,c,l,s,f,h,d,p,v,g,y;if(a=n.y-t.y,u=t.x-n.x,l=n.x*t.y-t.x*n.y,d=a*r.x+u*r.y+l,p=a*i.x+u*i.y+l,0!==d&&0!==p&&e(d,p))return;if(o=i.y-r.y,c=r.x-i.x,s=i.x*r.y-r.x*i.y,f=o*t.x+c*t.y+s,h=o*n.x+c*n.y+s,0!==f&&0!==h&&e(f,h))return;if(0===(v=a*c-o*u))return;return g=Math.abs(v/2),{x:(y=u*s-c*l)<0?(y-g)/v:(y+g)/v,y:(y=o*l-a*s)<0?(y-g)/v:(y+g)/v}}},5408:t=>{t.exports=function(t,e){return t.intersect(e)}},7536:(t,e,n)=>{var r=n(7170);t.exports=function(t,e,n){var i=t.x,a=t.y,o=[],u=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY;e.forEach((function(t){u=Math.min(u,t.x),c=Math.min(c,t.y)}));for(var l=i-t.width/2-u,s=a-t.height/2-c,f=0;f1&&o.sort((function(t,e){var r=t.x-n.x,i=t.y-n.y,a=Math.sqrt(r*r+i*i),o=e.x-n.x,u=e.y-n.y,c=Math.sqrt(o*o+u*u);return a{t.exports=function(t,e){var n,r,i=t.x,a=t.y,o=e.x-i,u=e.y-a,c=t.width/2,l=t.height/2;Math.abs(u)*c>Math.abs(o)*l?(u<0&&(l=-l),n=0===u?0:l*o/u,r=l):(o<0&&(c=-c),n=c,r=0===o?0:c*u/o);return{x:i+n,y:a+r}}},517:(t,e,n)=>{var r=n(7998);t.exports=function(t,e){var n=t.append("foreignObject").attr("width","100000"),i=n.append("xhtml:div");i.attr("xmlns","http://www.w3.org/1999/xhtml");var a=e.label;switch(typeof a){case"function":i.insert(a);break;case"object":i.insert((function(){return a}));break;default:i.html(a)}r.applyStyle(i,e.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap");var o=i.node().getBoundingClientRect();return n.attr("width",o.width).attr("height",o.height),n}},3965:(t,e,n)=>{var r=n(399),i=n(517),a=n(2734);t.exports=function(t,e,n){var o=e.label,u=t.append("g");"svg"===e.labelType?a(u,e):"string"!=typeof o||"html"===e.labelType?i(u,e):r(u,e);var c,l=u.node().getBBox();switch(n){case"top":c=-e.height/2;break;case"bottom":c=e.height/2-l.height;break;default:c=-l.height/2}return u.attr("transform","translate("+-l.width/2+","+c+")"),u}},2734:(t,e,n)=>{var r=n(7998);t.exports=function(t,e){var n=t;return n.node().appendChild(e.label),r.applyStyle(n,e.labelStyle),n}},399:(t,e,n)=>{var r=n(7998);t.exports=function(t,e){for(var n=t.append("text"),i=function(t){for(var e,n="",r=!1,i=0;i{var r;try{r=n(2543)}catch(t){}r||(r=window._),t.exports=r},5593:(t,e,n)=>{"use strict";var r=n(7998),i=n(4747);t.exports=function(t,e){var n=t.filter((function(){return!i.select(this).classed("update")}));function a(t){var n=e.node(t);return"translate("+n.x+","+n.y+")"}n.attr("transform",a),r.applyTransition(t,e).style("opacity",1).attr("transform",a),r.applyTransition(n.selectAll("rect"),e).attr("width",(function(t){return e.node(t).width})).attr("height",(function(t){return e.node(t).height})).attr("x",(function(t){return-e.node(t).width/2})).attr("y",(function(t){return-e.node(t).height/2}))}},9283:(t,e,n)=>{"use strict";var r=n(7998),i=n(4747),a=n(3451);t.exports=function(t,e){function n(t){var n=e.edge(t);return a.has(n,"x")?"translate("+n.x+","+n.y+")":""}t.filter((function(){return!i.select(this).classed("update")})).attr("transform",n),r.applyTransition(t,e).style("opacity",1).attr("transform",n)}},3321:(t,e,n)=>{"use strict";var r=n(7998),i=n(4747);t.exports=function(t,e){function n(t){var n=e.node(t);return"translate("+n.x+","+n.y+")"}t.filter((function(){return!i.select(this).classed("update")})).attr("transform",n),r.applyTransition(t,e).style("opacity",1).attr("transform",n)}},2330:(t,e,n)=>{var r=n(3451),i=n(4747),a=n(8193).layout;t.exports=function(){var t=n(2490),e=n(7076),i=n(3784),l=n(7863),s=n(3321),f=n(9283),h=n(5593),d=n(3096),p=n(2744),v=function(n,v){!function(t){t.nodes().forEach((function(e){var n=t.node(e);r.has(n,"label")||t.children(e).length||(n.label=e),r.has(n,"paddingX")&&r.defaults(n,{paddingLeft:n.paddingX,paddingRight:n.paddingX}),r.has(n,"paddingY")&&r.defaults(n,{paddingTop:n.paddingY,paddingBottom:n.paddingY}),r.has(n,"padding")&&r.defaults(n,{paddingLeft:n.padding,paddingRight:n.padding,paddingTop:n.padding,paddingBottom:n.padding}),r.defaults(n,o),r.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],(function(t){n[t]=Number(n[t])})),r.has(n,"width")&&(n._prevWidth=n.width),r.has(n,"height")&&(n._prevHeight=n.height)})),t.edges().forEach((function(e){var n=t.edge(e);r.has(n,"label")||(n.label=""),r.defaults(n,u)}))}(v),n.selectAll("*").remove();var g=c(n,"output"),y=c(g,"clusters"),m=c(g,"edgePaths"),_=i(c(g,"edgeLabels"),v),b=t(c(g,"nodes"),v,d);a(v),s(b,v),f(_,v),l(m,v,p);var x=e(y,v);h(x,v),function(t){r.each(t.nodes(),(function(e){var n=t.node(e);r.has(n,"_prevWidth")?n.width=n._prevWidth:delete n.width,r.has(n,"_prevHeight")?n.height=n._prevHeight:delete n.height,delete n._prevWidth,delete n._prevHeight}))}(v)};return v.createNodes=function(e){return arguments.length?(t=e,v):t},v.createClusters=function(t){return arguments.length?(e=t,v):e},v.createEdgeLabels=function(t){return arguments.length?(i=t,v):i},v.createEdgePaths=function(t){return arguments.length?(l=t,v):l},v.shapes=function(t){return arguments.length?(d=t,v):d},v.arrows=function(t){return arguments.length?(p=t,v):p},v};var o={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},u={arrowhead:"normal",curve:i.curveLinear};function c(t,e){var n=t.select("g."+e);return n.empty()&&(n=t.append("g").attr("class",e)),n}},3096:(t,e,n)=>{"use strict";var r=n(8782),i=n(1772),a=n(7672),o=n(7536);t.exports={rect:function(t,e,n){var i=t.insert("rect",":first-child").attr("rx",n.rx).attr("ry",n.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return n.intersect=function(t){return r(n,t)},i},ellipse:function(t,e,n){var r=e.width/2,a=e.height/2,o=t.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",r).attr("ry",a);return n.intersect=function(t){return i(n,r,a,t)},o},circle:function(t,e,n){var r=Math.max(e.width,e.height)/2,i=t.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",r);return n.intersect=function(t){return a(n,r,t)},i},diamond:function(t,e,n){var r=e.width*Math.SQRT2/2,i=e.height*Math.SQRT2/2,a=[{x:0,y:-i},{x:-r,y:0},{x:0,y:i},{x:r,y:0}],u=t.insert("polygon",":first-child").attr("points",a.map((function(t){return t.x+","+t.y})).join(" "));return n.intersect=function(t){return o(n,a,t)},u}}},7998:(t,e,n)=>{var r=n(3451);t.exports={isSubgraph:function(t,e){return!!t.children(e).length},edgeToId:function(t){return a(t.v)+":"+a(t.w)+":"+a(t.name)},applyStyle:function(t,e){e&&t.attr("style",e)},applyClass:function(t,e,n){e&&t.attr("class",e).attr("class",n+" "+t.attr("class"))},applyTransition:function(t,e){var n=e.graph();if(r.isPlainObject(n)){var i=n.transition;if(r.isFunction(i))return i(t)}return t}};var i=/:/g;function a(t){return t?String(t).replace(i,"\\:"):""}},5872:t=>{t.exports="0.6.1"},2549:(t,e,n)=>{"use strict";n.r(e),n.d(e,{active:()=>Ba,arc:()=>e_,area:()=>u_,areaRadial:()=>g_,ascending:()=>i,axisBottom:()=>ct,axisLeft:()=>lt,axisRight:()=>ut,axisTop:()=>ot,bisect:()=>l,bisectLeft:()=>c,bisectRight:()=>u,bisector:()=>a,brush:()=>po,brushSelection:()=>so,brushX:()=>fo,brushY:()=>ho,chord:()=>wo,clientPoint:()=>De,cluster:()=>rd,color:()=>gn,create:()=>Re,creator:()=>xt,cross:()=>h,csv:()=>Dp,csvFormat:()=>su,csvFormatRows:()=>fu,csvParse:()=>cu,csvParseRows:()=>lu,cubehelix:()=>Zn,curveBasis:()=>G_,curveBasisClosed:()=>Z_,curveBasisOpen:()=>tb,curveBundle:()=>nb,curveCardinal:()=>ab,curveCardinalClosed:()=>ub,curveCardinalOpen:()=>lb,curveCatmullRom:()=>hb,curveCatmullRomClosed:()=>pb,curveCatmullRomOpen:()=>gb,curveLinear:()=>r_,curveLinearClosed:()=>mb,curveMonotoneX:()=>Mb,curveMonotoneY:()=>Nb,curveNatural:()=>Ab,curveStep:()=>Pb,curveStepAfter:()=>Lb,curveStepBefore:()=>Ib,customEvent:()=>we,descending:()=>d,deviation:()=>g,dispatch:()=>vt,drag:()=>Ke,dragDisable:()=>Qe,dragEnable:()=>We,dsvFormat:()=>ou,easeBack:()=>La,easeBackIn:()=>Pa,easeBackInOut:()=>La,easeBackOut:()=>Ia,easeBounce:()=>Ca,easeBounceIn:()=>Sa,easeBounceInOut:()=>Aa,easeBounceOut:()=>Ca,easeCircle:()=>ya,easeCircleIn:()=>va,easeCircleInOut:()=>ya,easeCircleOut:()=>ga,easeCubic:()=>ra,easeCubicIn:()=>ea,easeCubicInOut:()=>ra,easeCubicOut:()=>na,easeElastic:()=>za,easeElasticIn:()=>Da,easeElasticInOut:()=>Ua,easeElasticOut:()=>za,easeExp:()=>pa,easeExpIn:()=>ha,easeExpInOut:()=>pa,easeExpOut:()=>da,easeLinear:()=>Ki,easePoly:()=>oa,easePolyIn:()=>ia,easePolyInOut:()=>oa,easePolyOut:()=>aa,easeQuad:()=>ta,easeQuadIn:()=>Zi,easeQuadInOut:()=>ta,easeQuadOut:()=>Ji,easeSin:()=>fa,easeSinIn:()=>la,easeSinInOut:()=>fa,easeSinOut:()=>sa,entries:()=>Jo,event:()=>ye,extent:()=>y,forceCenter:()=>yu,forceCollide:()=>Au,forceLink:()=>Iu,forceManyBody:()=>ju,forceRadial:()=>qu,forceSimulation:()=>Fu,forceX:()=>Bu,forceY:()=>Qu,format:()=>Ju,formatDefaultLocale:()=>rc,formatLocale:()=>nc,formatPrefix:()=>tc,formatSpecifier:()=>Xu,geoAlbers:()=>kh,geoAlbersUsa:()=>Th,geoArea:()=>Jc,geoAzimuthalEqualArea:()=>Ch,geoAzimuthalEqualAreaRaw:()=>Sh,geoAzimuthalEquidistant:()=>Rh,geoAzimuthalEquidistantRaw:()=>Ah,geoBounds:()=>Yl,geoCentroid:()=>rs,geoCircle:()=>ps,geoClipAntimeridian:()=>Ts,geoClipCircle:()=>Ms,geoClipExtent:()=>As,geoClipRectangle:()=>Cs,geoConicConformal:()=>zh,geoConicConformalRaw:()=>Dh,geoConicEqualArea:()=>Eh,geoConicEqualAreaRaw:()=>wh,geoConicEquidistant:()=>qh,geoConicEquidistantRaw:()=>jh,geoContains:()=>Ks,geoDistance:()=>Bs,geoEquirectangular:()=>Fh,geoEquirectangularRaw:()=>Uh,geoGnomonic:()=>Qh,geoGnomonicRaw:()=>Bh,geoGraticule:()=>tf,geoGraticule10:()=>ef,geoIdentity:()=>Yh,geoInterpolate:()=>nf,geoLength:()=>Fs,geoMercator:()=>Ih,geoMercatorRaw:()=>Ph,geoNaturalEarth1:()=>Vh,geoNaturalEarth1Raw:()=>Hh,geoOrthographic:()=>Xh,geoOrthographicRaw:()=>$h,geoPath:()=>oh,geoProjection:()=>_h,geoProjectionMutator:()=>bh,geoRotation:()=>fs,geoStereographic:()=>Kh,geoStereographicRaw:()=>Gh,geoStream:()=>jc,geoTransform:()=>uh,geoTransverseMercator:()=>Jh,geoTransverseMercatorRaw:()=>Zh,hcl:()=>Bn,hierarchy:()=>ad,histogram:()=>R,hsl:()=>En,html:()=>Ap,interpolate:()=>_r,interpolateArray:()=>hr,interpolateBasis:()=>er,interpolateBasisClosed:()=>nr,interpolateCool:()=>Nm,interpolateCubehelix:()=>Yr,interpolateCubehelixDefault:()=>Tm,interpolateCubehelixLong:()=>Hr,interpolateDate:()=>dr,interpolateHcl:()=>Br,interpolateHclLong:()=>Qr,interpolateHsl:()=>Ur,interpolateHslLong:()=>Fr,interpolateInferno:()=>Im,interpolateLab:()=>jr,interpolateMagma:()=>Pm,interpolateNumber:()=>pr,interpolateObject:()=>vr,interpolatePlasma:()=>Lm,interpolateRainbow:()=>Cm,interpolateRgb:()=>cr,interpolateRgbBasis:()=>sr,interpolateRgbBasisClosed:()=>fr,interpolateRound:()=>br,interpolateString:()=>mr,interpolateTransformCss:()=>Cr,interpolateTransformSvg:()=>Ar,interpolateViridis:()=>Rm,interpolateWarm:()=>Mm,interpolateZoom:()=>Dr,interrupt:()=>Si,interval:()=>pi,isoFormat:()=>am,isoParse:()=>um,json:()=>Rp,keys:()=>Ko,lab:()=>Dn,line:()=>o_,lineRadial:()=>v_,linkHorizontal:()=>T_,linkRadial:()=>N_,linkVertical:()=>M_,local:()=>Ie,map:()=>qo,matcher:()=>Ct,max:()=>O,mean:()=>D,median:()=>z,merge:()=>U,min:()=>F,mouse:()=>ze,namespace:()=>mt,namespaces:()=>yt,nest:()=>Bo,now:()=>ai,pack:()=>Cd,packEnclose:()=>fd,packSiblings:()=>kd,pairs:()=>s,partition:()=>Od,path:()=>Ro,permute:()=>j,pie:()=>s_,pointRadial:()=>y_,polygonArea:()=>rp,polygonCentroid:()=>ip,polygonContains:()=>lp,polygonHull:()=>cp,polygonLength:()=>sp,precisionFixed:()=>ic,precisionPrefix:()=>ac,precisionRound:()=>oc,quadtree:()=>ku,quantile:()=>P,quantize:()=>Vr,queue:()=>mp,radialArea:()=>g_,radialLine:()=>v_,randomBates:()=>kp,randomExponential:()=>Tp,randomIrwinHall:()=>Ep,randomLogNormal:()=>wp,randomNormal:()=>xp,randomUniform:()=>bp,range:()=>E,request:()=>Sp,rgb:()=>bn,ribbon:()=>zo,scaleBand:()=>Qp,scaleIdentity:()=>nv,scaleImplicit:()=>qp,scaleLinear:()=>ev,scaleLog:()=>sv,scaleOrdinal:()=>Bp,scalePoint:()=>Yp,scalePow:()=>hv,scaleQuantile:()=>pv,scaleQuantize:()=>vv,scaleSequential:()=>Om,scaleSqrt:()=>dv,scaleThreshold:()=>gv,scaleTime:()=>mm,scaleUtc:()=>_m,scan:()=>q,schemeCategory10:()=>xm,schemeCategory20:()=>km,schemeCategory20b:()=>wm,schemeCategory20c:()=>Em,select:()=>Ae,selectAll:()=>Ue,selection:()=>Ce,selector:()=>Et,selectorAll:()=>Tt,set:()=>Go,shuffle:()=>B,stack:()=>Ub,stackOffsetDiverging:()=>jb,stackOffsetExpand:()=>Fb,stackOffsetNone:()=>Ob,stackOffsetSilhouette:()=>qb,stackOffsetWiggle:()=>Bb,stackOrderAscending:()=>Qb,stackOrderDescending:()=>Yb,stackOrderInsideOut:()=>Hb,stackOrderNone:()=>Db,stackOrderReverse:()=>Vb,stratify:()=>qd,style:()=>Ht,sum:()=>Q,symbol:()=>H_,symbolCircle:()=>S_,symbolCross:()=>C_,symbolDiamond:()=>P_,symbolSquare:()=>z_,symbolStar:()=>D_,symbolTriangle:()=>F_,symbolWye:()=>W_,symbols:()=>Y_,text:()=>Pp,thresholdFreedmanDiaconis:()=>I,thresholdScott:()=>L,thresholdSturges:()=>A,tickIncrement:()=>S,tickStep:()=>C,ticks:()=>N,timeDay:()=>Uv,timeDays:()=>Fv,timeFormat:()=>Bg,timeFormatDefaultLocale:()=>nm,timeFormatLocale:()=>jg,timeFriday:()=>Hv,timeFridays:()=>Jv,timeHour:()=>Ov,timeHours:()=>Dv,timeInterval:()=>_v,timeMillisecond:()=>xv,timeMilliseconds:()=>wv,timeMinute:()=>Pv,timeMinutes:()=>Iv,timeMonday:()=>Bv,timeMondays:()=>Xv,timeMonth:()=>ng,timeMonths:()=>rg,timeParse:()=>Qg,timeSaturday:()=>Vv,timeSaturdays:()=>tg,timeSecond:()=>Cv,timeSeconds:()=>Av,timeSunday:()=>qv,timeSundays:()=>$v,timeThursday:()=>Yv,timeThursdays:()=>Zv,timeTuesday:()=>Qv,timeTuesdays:()=>Gv,timeWednesday:()=>Wv,timeWednesdays:()=>Kv,timeWeek:()=>qv,timeWeeks:()=>$v,timeYear:()=>ag,timeYears:()=>og,timeout:()=>di,timer:()=>ci,timerFlush:()=>li,touch:()=>Fe,touches:()=>je,transition:()=>$i,transpose:()=>W,tree:()=>$d,treemap:()=>Jd,treemapBinary:()=>tp,treemapDice:()=>Ld,treemapResquarify:()=>np,treemapSlice:()=>Xd,treemapSliceDice:()=>ep,treemapSquarify:()=>Zd,tsv:()=>zp,tsvFormat:()=>vu,tsvFormatRows:()=>gu,tsvParse:()=>du,tsvParseRows:()=>pu,utcDay:()=>pg,utcDays:()=>vg,utcFormat:()=>Wg,utcFriday:()=>wg,utcFridays:()=>Cg,utcHour:()=>fg,utcHours:()=>hg,utcMillisecond:()=>xv,utcMilliseconds:()=>wv,utcMinute:()=>cg,utcMinutes:()=>lg,utcMonday:()=>mg,utcMondays:()=>Tg,utcMonth:()=>Pg,utcMonths:()=>Ig,utcParse:()=>Yg,utcSaturday:()=>Eg,utcSaturdays:()=>Ag,utcSecond:()=>Cv,utcSeconds:()=>Av,utcSunday:()=>yg,utcSundays:()=>kg,utcThursday:()=>xg,utcThursdays:()=>Sg,utcTuesday:()=>_g,utcTuesdays:()=>Mg,utcWednesday:()=>bg,utcWednesdays:()=>Ng,utcWeek:()=>yg,utcWeeks:()=>kg,utcYear:()=>Og,utcYears:()=>Dg,values:()=>Zo,variance:()=>v,version:()=>r,voronoi:()=>Ix,window:()=>Bt,xml:()=>Ip,zip:()=>H,zoom:()=>Vx,zoomIdentity:()=>zx,zoomTransform:()=>Ux});var r="4.13.0";function i(t,e){return te?1:t>=e?0:NaN}function a(t){var e;return 1===t.length&&(e=t,t=function(t,n){return i(e(t),n)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)>0?i=a:r=a+1}return r}}}var o=a(i),u=o.right,c=o.left;const l=u;function s(t,e){null==e&&(e=f);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);nt?1:e>=t?0:NaN}function p(t){return null===t?NaN:+t}function v(t,e){var n,r,i=t.length,a=0,o=-1,u=0,c=0;if(null==e)for(;++o1)return c/(a-1)}function g(t,e){var n=v(t,e);return n?Math.sqrt(n):n}function y(t,e){var n,r,i,a=t.length,o=-1;if(null==e){for(;++o=n)for(r=i=n;++on&&(r=n),i=n)for(r=i=n;++on&&(r=n),i0)return[t];if((r=e0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++u=0?(a>=k?10:a>=T?5:a>=M?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=k?10:a>=T?5:a>=M?2:1)}function C(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=k?i*=10:a>=T?i*=5:a>=M&&(i*=2),ef;)h.pop(),--d;var p,v=new Array(d+1);for(i=0;i<=d;++i)(p=v[i]=[]).x0=i>0?h[i-1]:s,p.x1=i=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,a=Math.floor(i),o=+n(t[a],a,t);return o+(+n(t[a+1],a+1,t)-o)*(i-a)}}function I(t,e,n){return t=b.call(t,p).sort(i),Math.ceil((n-e)/(2*(P(t,.75)-P(t,.25))*Math.pow(t.length,-1/3)))}function L(t,e,n){return Math.ceil((n-e)/(3.5*g(t)*Math.pow(t.length,-1/3)))}function O(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a=n)for(r=n;++ar&&(r=n)}else for(;++a=n)for(r=n;++ar&&(r=n);return r}function D(t,e){var n,r=t.length,i=r,a=-1,o=0;if(null==e)for(;++a=0;)for(e=(r=t[i]).length;--e>=0;)n[--o]=r[e];return n}function F(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a=n)for(r=n;++an&&(r=n)}else for(;++a=n)for(r=n;++an&&(r=n);return r}function j(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r}function q(t,e){if(n=t.length){var n,r,a=0,o=0,u=t[o];for(null==e&&(e=i);++a=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),o=-1,u=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o0)for(var n,r,i=new Array(n),a=0;a=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),yt.hasOwnProperty(e)?{space:yt[e],local:t}:t}function _t(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===gt&&e.documentElement.namespaceURI===gt?e.createElement(t):e.createElementNS(n,t)}}function bt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function xt(t){var e=mt(t);return(e.local?bt:_t)(e)}function wt(){}function Et(t){return null==t?wt:function(){return this.querySelector(t)}}function kt(){return[]}function Tt(t){return null==t?kt:function(){return this.querySelectorAll(t)}}var Mt=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var Nt=document.documentElement;if(!Nt.matches){var St=Nt.webkitMatchesSelector||Nt.msMatchesSelector||Nt.mozMatchesSelector||Nt.oMatchesSelector;Mt=function(t){return function(){return St.call(this,t)}}}}const Ct=Mt;function At(t){return new Array(t.length)}function Rt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Rt.prototype={constructor:Rt,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 Pt="$";function It(t,e,n,r,i,a){for(var o,u=0,c=e.length,l=a.length;ue?1:t>=e?0:NaN}function Dt(t){return function(){this.removeAttribute(t)}}function zt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ut(t,e){return function(){this.setAttribute(t,e)}}function Ft(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function jt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function qt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Bt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Qt(t){return function(){this.style.removeProperty(t)}}function Wt(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Yt(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Ht(t,e){return t.style.getPropertyValue(e)||Bt(t).getComputedStyle(t,null).getPropertyValue(e)}function Vt(t){return function(){delete this[t]}}function $t(t,e){return function(){this[t]=e}}function Xt(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Gt(t){return t.trim().split(/^|\s+/)}function Kt(t){return t.classList||new Zt(t)}function Zt(t){this._node=t,this._names=Gt(t.getAttribute("class")||"")}function Jt(t,e){for(var n=Kt(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ge={},ye=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(ge={mouseenter:"mouseover",mouseleave:"mouseout"}));function me(t,e,n){return t=_e(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function _e(t,e,n){return function(r){var i=ye;ye=r;try{t.call(this,this.__data__,e,n)}finally{ye=i}}}function be(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r=b&&(b=_+1);!(m=g[b])&&++b=0;)(r=i[a])&&(o&&o!==r.nextSibling&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Ot);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a1?this.each((null==e?Qt:"function"==typeof e?Yt:Wt)(t,e,null==n?"":n)):Ht(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Vt:"function"==typeof e?Xt:$t)(t,e)):this.node()[t]},classed:function(t,e){var n=Gt(t+"");if(arguments.length<2){for(var r=Kt(this.node()),i=-1,a=n.length;++i=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),o=a.length;if(!(arguments.length<2)){for(u=e?xe:be,null==n&&(n=!1),r=0;rf}c.mouse("drag")}function v(){Ae(ye.view).on("mousemove.drag mouseup.drag",null),We(ye.view,n),Be(),c.mouse("end")}function g(){if(i.apply(this,arguments)){var t,e,n=ye.changedTouches,r=a.apply(this,arguments),o=n.length;for(t=0;t>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=cn.exec(t))?yn(parseInt(e[1],16)):(e=ln.exec(t))?new xn(e[1],e[2],e[3],1):(e=sn.exec(t))?new xn(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=fn.exec(t))?mn(e[1],e[2],e[3],e[4]):(e=hn.exec(t))?mn(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=dn.exec(t))?wn(e[1],e[2]/100,e[3]/100,1):(e=pn.exec(t))?wn(e[1],e[2]/100,e[3]/100,e[4]):vn.hasOwnProperty(t)?yn(vn[t]):"transparent"===t?new xn(NaN,NaN,NaN,0):null}function yn(t){return new xn(t>>16&255,t>>8&255,255&t,1)}function mn(t,e,n,r){return r<=0&&(t=e=n=NaN),new xn(t,e,n,r)}function _n(t){return t instanceof tn||(t=gn(t)),t?new xn((t=t.rgb()).r,t.g,t.b,t.opacity):new xn}function bn(t,e,n,r){return 1===arguments.length?_n(t):new xn(t,e,n,null==r?1:r)}function xn(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function wn(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new kn(t,e,n,r)}function En(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof kn)return new kn(t.h,t.s,t.l,t.opacity);if(t instanceof tn||(t=gn(t)),!t)return new kn;if(t instanceof kn)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,u=a-i,c=(a+i)/2;return u?(o=e===a?(n-r)/u+6*(n0&&c<1?0:o,new kn(o,u,c,t.opacity)}(t):new kn(t,e,n,null==r?1:r)}function kn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Tn(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Ze(tn,gn,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Ze(xn,bn,Je(tn,{brighter:function(t){return t=null==t?nn:Math.pow(nn,t),new xn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?en:Math.pow(en,t),new xn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),Ze(kn,En,Je(tn,{brighter:function(t){return t=null==t?nn:Math.pow(nn,t),new kn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?en:Math.pow(en,t),new kn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new xn(Tn(t>=240?t-240:t+120,i,r),Tn(t,i,r),Tn(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var Mn=Math.PI/180,Nn=180/Math.PI,Sn=.95047,Cn=1,An=1.08883,Rn=4/29,Pn=6/29,In=3*Pn*Pn,Ln=Pn*Pn*Pn;function On(t){if(t instanceof zn)return new zn(t.l,t.a,t.b,t.opacity);if(t instanceof Qn){var e=t.h*Mn;return new zn(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof xn||(t=_n(t));var n=qn(t.r),r=qn(t.g),i=qn(t.b),a=Un((.4124564*n+.3575761*r+.1804375*i)/Sn),o=Un((.2126729*n+.7151522*r+.072175*i)/Cn);return new zn(116*o-16,500*(a-o),200*(o-Un((.0193339*n+.119192*r+.9503041*i)/An)),t.opacity)}function Dn(t,e,n,r){return 1===arguments.length?On(t):new zn(t,e,n,null==r?1:r)}function zn(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Un(t){return t>Ln?Math.pow(t,1/3):t/In+Rn}function Fn(t){return t>Pn?t*t*t:In*(t-Rn)}function jn(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function qn(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Bn(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Qn)return new Qn(t.h,t.c,t.l,t.opacity);t instanceof zn||(t=On(t));var e=Math.atan2(t.b,t.a)*Nn;return new Qn(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new Qn(t,e,n,null==r?1:r)}function Qn(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}Ze(zn,Dn,Je(tn,{brighter:function(t){return new zn(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new zn(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return t=Cn*Fn(t),new xn(jn(3.2404542*(e=Sn*Fn(e))-1.5371385*t-.4985314*(n=An*Fn(n))),jn(-.969266*e+1.8760108*t+.041556*n),jn(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),Ze(Qn,Bn,Je(tn,{brighter:function(t){return new Qn(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Qn(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return On(this).rgb()}}));var Wn=-.14861,Yn=1.78277,Hn=-.29227,Vn=-.90649,$n=1.97294,Xn=$n*Vn,Gn=$n*Yn,Kn=Yn*Hn-Vn*Wn;function Zn(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Jn)return new Jn(t.h,t.s,t.l,t.opacity);t instanceof xn||(t=_n(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(Kn*r+Xn*e-Gn*n)/(Kn+Xn-Gn),a=r-i,o=($n*(n-i)-Hn*a)/Vn,u=Math.sqrt(o*o+a*a)/($n*i*(1-i)),c=u?Math.atan2(o,a)*Nn-120:NaN;return new Jn(c<0?c+360:c,u,i,t.opacity)}(t):new Jn(t,e,n,null==r?1:r)}function Jn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function tr(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}function er(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,u=r180||n<-180?n-360*Math.round(n/360):n):rr(isNaN(t)?e:t)}function or(t){return 1==(t=+t)?ur:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):rr(isNaN(e)?n:e)}}function ur(t,e){var n=e-t;return n?ir(t,n):rr(isNaN(t)?e:t)}Ze(Jn,Zn,Je(tn,{brighter:function(t){return t=null==t?nn:Math.pow(nn,t),new Jn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?en:Math.pow(en,t),new Jn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Mn,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new xn(255*(e+n*(Wn*r+Yn*i)),255*(e+n*(Hn*r+Vn*i)),255*(e+n*($n*r)),this.opacity)}}));const cr=function t(e){var n=or(e);function r(t,e){var r=n((t=bn(t)).r,(e=bn(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=ur(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function lr(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),u=new Array(i);for(n=0;na&&(i=e.slice(a,i),u[o]?u[o]+=i:u[++o]=i),(n=n[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,c.push({i:o,x:pr(n,r)})),a=yr.lastIndex;return a180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:pr(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,u,c),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:pr(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,u,c),function(t,e,n,r,a,o){if(t!==n||e!==r){var u=a.push(i(a)+"scale(",null,",",null,")");o.push({i:u-4,x:pr(t,n)},{i:u-2,x:pr(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,u,c),a=o=null,function(t){for(var e,n=-1,r=c.length;++n=0&&e._call.call(null,t),e=e._next;--Gr}function si(){ei=(ti=ri.now())+ni,Gr=Kr=0;try{li()}finally{Gr=0,function(){var t,e,n=$r,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:$r=e);Xr=t,hi(r)}(),ei=0}}function fi(){var t=ri.now(),e=t-ti;e>Jr&&(ni-=e,ti=t)}function hi(t){Gr||(Kr&&(Kr=clearTimeout(Kr)),t-ei>24?(t<1/0&&(Kr=setTimeout(si,t-ri.now()-ni)),Zr&&(Zr=clearInterval(Zr))):(Zr||(ti=ri.now(),Zr=setInterval(fi,Jr)),Gr=1,ii(si)))}function di(t,e,n){var r=new ui;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r}function pi(t,e,n){var r=new ui,i=e;return null==e?(r.restart(t,e,n),r):(e=+e,n=null==n?ai():+n,r.restart((function a(o){o+=i,r.restart(a,i+=e,n),t(o)}),e,n),r)}ui.prototype=ci.prototype={constructor:ui,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?ai():+n)+(null==e?0:+e),this._next||Xr===this||(Xr?Xr._next=this:$r=this,Xr=this),this._call=t,this._time=n,hi()},stop:function(){this._call&&(this._call=null,this._time=1/0,hi())}};var vi=vt("start","end","interrupt"),gi=[],yi=0,mi=1,_i=2,bi=3,xi=4,wi=5,Ei=6;function ki(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(t){n.state=mi,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)}function o(a){var l,s,f,h;if(n.state!==mi)return c();for(l in i)if((h=i[l]).name===n.name){if(h.state===bi)return di(o);h.state===xi?(h.state=Ei,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[l]):+lyi)throw new Error("too late; already scheduled");return n}function Mi(t,e){var n=Ni(t,e);if(n.state>_i)throw new Error("too late; already started");return n}function Ni(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Si(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>_i&&n.state=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Ti:Mi;return function(){var o=a(this,t),u=o.on;u!==r&&(i=(r=u).copy()).on(e,n),o.on=i}}(n,t,e))},attr:function(t,e){var n=mt(t),r="transform"===n?Ar:Pi;return this.attrTween(t,"function"==typeof e?(n.local?Ui:zi)(n,r,Ri(this,"attr."+t,e)):null==e?(n.local?Li:Ii)(n):(n.local?Di:Oi)(n,r,e+""))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=mt(t);return this.tween(n,(r.local?Fi:ji)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?Cr:Pi;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var a=Ht(this,t),o=(this.style.removeProperty(t),Ht(this,t));return a===o?null:a===n&&o===r?i:i=e(n=a,r=o)}}(t,r)).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof e?function(t,e,n){var r,i,a;return function(){var o=Ht(this,t),u=n(this);return null==u&&(this.style.removeProperty(t),u=Ht(this,t)),o===u?null:o===r&&u===i?a:a=e(r=o,i=u)}}(t,r,Ri(this,"style."+t,e)):function(t,e,n){var r,i;return function(){var a=Ht(this,t);return a===n?null:a===r?i:i=e(r=a,n)}}(t,r,e+""),n)},styleTween:function(t,e,n){var r="style."+(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;return this.tween(r,function(t,e,n){function r(){var r=this,i=e.apply(r,arguments);return i&&function(e){r.style.setProperty(t,i(e),n)}}return r._value=e,r}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Ri(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=Ni(this.node(),n).tween,a=0,o=i.length;ami&&n.name===e)return new Vi([[t]],qa,e,+r);return null}function Qa(t){return function(){return t}}function Wa(t,e,n){this.target=t,this.type=e,this.selection=n}function Ya(){ye.stopImmediatePropagation()}function Ha(){ye.preventDefault(),ye.stopImmediatePropagation()}var Va={name:"drag"},$a={name:"space"},Xa={name:"handle"},Ga={name:"center"},Ka={name:"x",handles:["e","w"].map(ao),input:function(t,e){return t&&[[t[0],e[0][1]],[t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Za={name:"y",handles:["n","s"].map(ao),input:function(t,e){return t&&[[e[0][0],t[0]],[e[1][0],t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},Ja={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(ao),input:function(t){return t},output:function(t){return t}},to={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"},eo={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},no={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},ro={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},io={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function ao(t){return{type:t}}function oo(){return!ye.button}function uo(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function co(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function lo(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function so(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function fo(){return vo(Ka)}function ho(){return vo(Za)}function po(){return vo(Ja)}function vo(t){var e,n=uo,r=oo,i=vt(o,"start","brush","end"),a=6;function o(e){var n=e.property("__brush",f).selectAll(".overlay").data([ao("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",to.overlay).merge(n).each((function(){var t=co(this).extent;Ae(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([ao("selection")]).enter().append("rect").attr("class","selection").attr("cursor",to.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return to[t.type]})),e.each(u).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",s)}function u(){var t=Ae(this),e=co(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-a/2:e[0][0]-a/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-a/2:e[0][1]-a/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+a:a})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+a:a}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(t,e){return t.__brush.emitter||new l(t,e)}function l(t,e){this.that=t,this.args=e,this.state=t.__brush,this.active=0}function s(){if(ye.touches){if(ye.changedTouches.length0&&(n=i-d),w<0?f=h-p:w>0&&(a=o-p),b=$a,O.attr("cursor",to.selection),U());break;default:return}Ha()}),!0).on("keyup.brush",(function(){switch(ye.keyCode){case 16:A&&(g=y=A=!1,U());break;case 18:b===Ga&&(x<0?l=s:x>0&&(n=i),w<0?f=h:w>0&&(a=o),b=Xa,U());break;case 32:b===$a&&(ye.altKey?(x&&(l=s-d*x,n=i+d*x),w&&(f=h-p*w,a=o+p*w),b=Ga):(x<0?l=s:x>0&&(n=i),w<0?f=h:w>0&&(a=o),b=Xa),O.attr("cursor",to[_]),U());break;default:return}Ha()}),!0).on("mousemove.brush",z,!0).on("mouseup.brush",F,!0);Qe(ye.view)}Ya(),Si(m),u.call(m),I.start()}function z(){var t=ze(m);!A||g||y||(Math.abs(t[0]-P[0])>Math.abs(t[1]-P[1])?y=!0:g=!0),P=t,v=!0,Ha(),U()}function U(){var t;switch(d=P[0]-R[0],p=P[1]-R[1],b){case $a:case Va:x&&(d=Math.max(M-n,Math.min(S-l,d)),i=n+d,s=l+d),w&&(p=Math.max(N-a,Math.min(C-f,p)),o=a+p,h=f+p);break;case Xa:x<0?(d=Math.max(M-n,Math.min(S-n,d)),i=n+d,s=l):x>0&&(d=Math.max(M-l,Math.min(S-l,d)),i=n,s=l+d),w<0?(p=Math.max(N-a,Math.min(C-a,p)),o=a+p,h=f):w>0&&(p=Math.max(N-f,Math.min(C-f,p)),o=a,h=f+p);break;case Ga:x&&(i=Math.max(M,Math.min(S,n-d*x)),s=Math.max(M,Math.min(S,l+d*x))),w&&(o=Math.max(N,Math.min(C,a-p*w)),h=Math.max(N,Math.min(C,f+p*w)))}sNo)if(Math.abs(s*u-c*l)>No&&i){var h=n-a,d=r-o,p=u*u+c*c,v=h*h+d*d,g=Math.sqrt(p),y=Math.sqrt(f),m=i*Math.tan((To-Math.acos((p+f-v)/(2*g*y)))/2),_=m/y,b=m/g;Math.abs(_-1)>No&&(this._+="L"+(t+_*l)+","+(e+_*s)),this._+="A"+i+","+i+",0,0,"+ +(s*h>l*d)+","+(this._x1=t+b*u)+","+(this._y1=e+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,a){t=+t,e=+e;var o=(n=+n)*Math.cos(r),u=n*Math.sin(r),c=t+o,l=e+u,s=1^a,f=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>No||Math.abs(this._y1-l)>No)&&(this._+="L"+c+","+l),n&&(f<0&&(f=f%Mo+Mo),f>So?this._+="A"+n+","+n+",0,1,"+s+","+(t-o)+","+(e-u)+"A"+n+","+n+",0,1,"+s+","+(this._x1=c)+","+(this._y1=l):f>No&&(this._+="A"+n+","+n+",0,"+ +(f>=To)+","+s+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const Ro=Ao;function Po(t){return t.source}function Io(t){return t.target}function Lo(t){return t.radius}function Oo(t){return t.startAngle}function Do(t){return t.endAngle}function zo(){var t=Po,e=Io,n=Lo,r=Oo,i=Do,a=null;function o(){var o,u=Eo.call(arguments),c=t.apply(this,u),l=e.apply(this,u),s=+n.apply(this,(u[0]=c,u)),f=r.apply(this,u)-_o,h=i.apply(this,u)-_o,d=s*go(f),p=s*yo(f),v=+n.apply(this,(u[0]=l,u)),g=r.apply(this,u)-_o,y=i.apply(this,u)-_o;if(a||(a=o=Ro()),a.moveTo(d,p),a.arc(0,0,s,f,h),f===g&&h===y||(a.quadraticCurveTo(0,0,v*go(g),v*yo(g)),a.arc(0,0,v,g,y)),a.quadraticCurveTo(0,0,d,p),a.closePath(),o)return a=null,o+""||null}return o.radius=function(t){return arguments.length?(n="function"==typeof t?t:ko(+t),o):n},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:ko(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:ko(+t),o):i},o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(t){return arguments.length?(e=t,o):e},o.context=function(t){return arguments.length?(a=null==t?null:t,o):a},o}var Uo="$";function Fo(){}function jo(t,e){var n=new Fo;if(t instanceof Fo)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,a=t.length;if(null==e)for(;++i=r.length)return null!=t&&n.sort(t),null!=e?e(n):n;for(var c,l,s,f=-1,h=n.length,d=r[i++],p=qo(),v=o();++fr.length)return t;var a,u=i[n-1];return null!=e&&n>=r.length?a=t.entries():(a=[],t.each((function(t,e){a.push({key:e,values:o(t,n)})}))),null!=u?a.sort((function(t,e){return u(t.key,e.key)})):a}return n={object:function(t){return a(t,0,Qo,Wo)},map:function(t){return a(t,0,Yo,Ho)},entries:function(t){return o(a(t,0,Yo,Ho),0)},key:function(t){return r.push(t),n},sortKeys:function(t){return i[r.length-1]=t,n},sortValues:function(e){return t=e,n},rollup:function(t){return e=t,n}}}function Qo(){return{}}function Wo(t,e,n){t[e]=n}function Yo(){return qo()}function Ho(t,e,n){t.set(e,n)}function Vo(){}var $o=qo.prototype;function Xo(t,e){var n=new Vo;if(t instanceof Vo)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)for(;++r=a?c=!0:(r=t.charCodeAt(o++))===ru?l=!0:r===iu&&(l=!0,t.charCodeAt(o)===ru&&++o),t.slice(i+1,e-1).replace(/""/g,'"')}for(;o=(a=(v+y)/2))?v=a:y=a,(s=n>=(o=(g+m)/2))?g=o:m=o,i=d,!(d=d[f=s<<1|l]))return i[f]=p,t;if(u=+t._x.call(null,d.data),c=+t._y.call(null,d.data),e===u&&n===c)return p.next=d,i?i[f]=p:t._root=p,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(l=e>=(a=(v+y)/2))?v=a:y=a,(s=n>=(o=(g+m)/2))?g=o:m=o}while((f=s<<1|l)==(h=(c>=o)<<1|u>=a));return i[h]=d,i[f]=p,t}function xu(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function wu(t){return t[0]}function Eu(t){return t[1]}function ku(t,e,n){var r=new Tu(null==e?wu:e,null==n?Eu:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Tu(t,e,n,r,i,a){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function Mu(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Nu=ku.prototype=Tu.prototype;function Su(t){return t.x+t.vx}function Cu(t){return t.y+t.vy}function Au(t){var e,n,r=1,i=1;function a(){for(var t,a,u,c,l,s,f,h=e.length,d=0;dc+d||il+d||au.index){var p=c-o.x-o.vx,v=l-o.y-o.vy,g=p*p+v*v;gt.r&&(t.r=t[e].r)}function u(){if(e){var r,i,a=e.length;for(n=new Array(a),r=0;rs&&(s=r),if&&(f=i));for(st||t>i||r>e||e>a))return this;var o,u,c=i-n,l=this._root;switch(u=(e<(r+a)/2)<<1|t<(n+i)/2){case 0:do{(o=new Array(4))[u]=l,l=o}while(a=r+(c*=2),t>(i=n+c)||e>a);break;case 1:do{(o=new Array(4))[u]=l,l=o}while(a=r+(c*=2),(n=i-c)>t||e>a);break;case 2:do{(o=new Array(4))[u]=l,l=o}while(r=a-(c*=2),t>(i=n+c)||r>e);break;case 3:do{(o=new Array(4))[u]=l,l=o}while(r=a-(c*=2),(n=i-c)>t||r>e)}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=r,this._x1=i,this._y1=a,this},Nu.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},Nu.extent=function(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]]},Nu.find=function(t,e,n){var r,i,a,o,u,c,l,s=this._x0,f=this._y0,h=this._x1,d=this._y1,p=[],v=this._root;for(v&&p.push(new xu(v,s,f,h,d)),null==n?n=1/0:(s=t-n,f=e-n,h=t+n,d=e+n,n*=n);c=p.pop();)if(!(!(v=c.node)||(i=c.x0)>h||(a=c.y0)>d||(o=c.x1)=y)<<1|t>=g)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-l],p[p.length-1-l]=c)}else{var m=t-+this._x.call(null,v.data),_=e-+this._y.call(null,v.data),b=m*m+_*_;if(b=(u=(p+g)/2))?p=u:g=u,(s=o>=(c=(v+y)/2))?v=c:y=c,e=d,!(d=d[f=s<<1|l]))return this;if(!d.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(n=e,h=f)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[f]=i:delete e[f],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[h]=d:this._root=d),this):(this._root=i,this)},Nu.removeAll=function(t){for(var e=0,n=t.length;e1?(null==n?u.remove(t):u.set(t,d(n)),e):u.get(t)},find:function(e,n,r){var i,a,o,u,c,l=0,s=t.length;for(null==r?r=1/0:r*=r,l=0;l1?(l.on(t,n),e):l.on(t)}}}function ju(){var t,e,n,r,i=mu(-30),a=1,o=1/0,u=.81;function c(r){var i,a=t.length,o=ku(t,Lu,Ou).visitAfter(s);for(n=r,i=0;i=o)){(t.data!==e||t.next)&&(0===s&&(d+=(s=_u())*s),0===f&&(d+=(f=_u())*f),d1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Yu(t){return(t=Wu(Math.abs(t)))?t[1]:NaN}function Hu(t,e){var n=Wu(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Vu={"":function(t,e){t:for(var n,r=(t=t.toPrecision(e)).length,i=1,a=-1;i0&&(a=0)}return a>0?t.slice(0,a)+t.slice(n+1):t},"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(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 Hu(100*t,e)},r:Hu,s:function(t,e){var n=Wu(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(Du=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Wu(t,Math.max(0,e+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};var $u=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function Xu(t){return new Gu(t)}function Gu(t){if(!(e=$u.exec(t)))throw new Error("invalid format: "+t);var e,n=e[1]||" ",r=e[2]||">",i=e[3]||"-",a=e[4]||"",o=!!e[5],u=e[6]&&+e[6],c=!!e[7],l=e[8]&&+e[8].slice(1),s=e[9]||"";"n"===s?(c=!0,s="g"):Vu[s]||(s=""),(o||"0"===n&&"="===r)&&(o=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=i,this.symbol=a,this.zero=o,this.width=u,this.comma=c,this.precision=l,this.type=s}function Ku(t){return t}Xu.prototype=Gu.prototype,Gu.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var Zu,Ju,tc,ec=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function nc(t){var e,n,r=t.grouping&&t.thousands?(e=t.grouping,n=t.thousands,function(t,r){for(var i=t.length,a=[],o=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),a.push(t.substring(i-=u,i+u)),!((c+=u+1)>r));)u=e[o=(o+1)%e.length];return a.reverse().join(n)}):Ku,i=t.currency,a=t.decimal,o=t.numerals?function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(t.numerals):Ku,u=t.percent||"%";function c(t){var e=(t=Xu(t)).fill,n=t.align,c=t.sign,l=t.symbol,s=t.zero,f=t.width,h=t.comma,d=t.precision,p=t.type,v="$"===l?i[0]:"#"===l&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",g="$"===l?i[1]:/[%p]/.test(p)?u:"",y=Vu[p],m=!p||/[defgprs%]/.test(p);function _(t){var i,u,l,_=v,b=g;if("c"===p)b=y(t)+b,t="";else{var x=(t=+t)<0;if(t=y(Math.abs(t),d),x&&0==+t&&(x=!1),_=(x?"("===c?c:"-":"-"===c||"("===c?"":c)+_,b=("s"===p?ec[8+Du/3]:"")+b+(x&&"("===c?")":""),m)for(i=-1,u=t.length;++i(l=t.charCodeAt(i))||l>57){b=(46===l?a+t.slice(i+1):t.slice(i))+b,t=t.slice(0,i);break}}h&&!s&&(t=r(t,1/0));var w=_.length+t.length+b.length,E=w>1)+_+t+b+E.slice(w);break;default:t=E+_+t+b}return o(t)}return d=null==d?p?6:12:/[gprs]/.test(p)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),_.toString=function(){return t+""},_}return{format:c,formatPrefix:function(t,e){var n=c(((t=Xu(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Yu(e)/3))),i=Math.pow(10,-r),a=ec[8+r/3];return function(t){return n(i*t)+a}}}}function rc(t){return Zu=nc(t),Ju=Zu.format,tc=Zu.formatPrefix,Zu}function ic(t){return Math.max(0,-Yu(Math.abs(t)))}function ac(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Yu(e)/3)))-Yu(Math.abs(t)))}function oc(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Yu(e)-Yu(t))+1}function uc(){return new cc}function cc(){this.reset()}rc({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),cc.prototype={constructor:cc,reset:function(){this.s=this.t=0},add:function(t){sc(lc,t,this.t),sc(this,lc.s,this.s),this.s?this.t+=lc.t:this.s=lc.t},valueOf:function(){return this.s}};var lc=new cc;function sc(t,e,n){var r=t.s=e+n,i=r-e,a=r-i;t.t=e-a+(n-i)}var fc=1e-6,hc=1e-12,dc=Math.PI,pc=dc/2,vc=dc/4,gc=2*dc,yc=180/dc,mc=dc/180,_c=Math.abs,bc=Math.atan,xc=Math.atan2,wc=Math.cos,Ec=Math.ceil,kc=Math.exp,Tc=(Math.floor,Math.log),Mc=Math.pow,Nc=Math.sin,Sc=Math.sign||function(t){return t>0?1:t<0?-1:0},Cc=Math.sqrt,Ac=Math.tan;function Rc(t){return t>1?0:t<-1?dc:Math.acos(t)}function Pc(t){return t>1?pc:t<-1?-pc:Math.asin(t)}function Ic(t){return(t=Nc(t/2))*t}function Lc(){}function Oc(t,e){t&&zc.hasOwnProperty(t.type)&&zc[t.type](t,e)}var Dc={Feature:function(t,e){Oc(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r=0?1:-1,i=r*n,a=wc(e=(e*=mc)/2+vc),o=Nc(e),u=Yc*o,c=Wc*a+u*wc(i),l=u*r*Nc(i);Hc.add(xc(l,c)),Qc=t,Wc=a,Yc=o}function Jc(t){return Vc.reset(),jc(t,$c),2*Vc}function tl(t){return[xc(t[1],t[0]),Pc(t[2])]}function el(t){var e=t[0],n=t[1],r=wc(n);return[r*wc(e),r*Nc(e),Nc(n)]}function nl(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function rl(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 il(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function al(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function ol(t){var e=Cc(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var ul,cl,ll,sl,fl,hl,dl,pl,vl,gl,yl,ml,_l,bl,xl,wl,El,kl,Tl,Ml,Nl,Sl,Cl,Al,Rl,Pl,Il=uc(),Ll={point:Ol,lineStart:zl,lineEnd:Ul,polygonStart:function(){Ll.point=Fl,Ll.lineStart=jl,Ll.lineEnd=ql,Il.reset(),$c.polygonStart()},polygonEnd:function(){$c.polygonEnd(),Ll.point=Ol,Ll.lineStart=zl,Ll.lineEnd=Ul,Hc<0?(ul=-(ll=180),cl=-(sl=90)):Il>fc?sl=90:Il<-fc&&(cl=-90),gl[0]=ul,gl[1]=ll}};function Ol(t,e){vl.push(gl=[ul=t,ll=t]),esl&&(sl=e)}function Dl(t,e){var n=el([t*mc,e*mc]);if(pl){var r=rl(pl,n),i=rl([r[1],-r[0],0],r);ol(i),i=tl(i);var a,o=t-fl,u=o>0?1:-1,c=i[0]*yc*u,l=_c(o)>180;l^(u*flsl&&(sl=a):l^(u*fl<(c=(c+360)%360-180)&&csl&&(sl=e)),l?tBl(ul,ll)&&(ll=t):Bl(t,ll)>Bl(ul,ll)&&(ul=t):ll>=ul?(tll&&(ll=t)):t>fl?Bl(ul,t)>Bl(ul,ll)&&(ll=t):Bl(t,ll)>Bl(ul,ll)&&(ul=t)}else vl.push(gl=[ul=t,ll=t]);esl&&(sl=e),pl=n,fl=t}function zl(){Ll.point=Dl}function Ul(){gl[0]=ul,gl[1]=ll,Ll.point=Ol,pl=null}function Fl(t,e){if(pl){var n=t-fl;Il.add(_c(n)>180?n+(n>0?360:-360):n)}else hl=t,dl=e;$c.point(t,e),Dl(t,e)}function jl(){$c.lineStart()}function ql(){Fl(hl,dl),$c.lineEnd(),_c(Il)>fc&&(ul=-(ll=180)),gl[0]=ul,gl[1]=ll,pl=null}function Bl(t,e){return(e-=t)<0?e+360:e}function Ql(t,e){return t[0]-e[0]}function Wl(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:eBl(r[0],r[1])&&(r[1]=i[1]),Bl(i[0],r[1])>Bl(r[0],r[1])&&(r[0]=i[0])):a.push(r=i);for(o=-1/0,e=0,r=a[n=a.length-1];e<=n;r=i,++e)i=a[e],(u=Bl(r[1],i[0]))>o&&(o=u,ul=i[0],ll=r[1])}return vl=gl=null,ul===1/0||cl===1/0?[[NaN,NaN],[NaN,NaN]]:[[ul,cl],[ll,sl]]}var Hl={sphere:Lc,point:Vl,lineStart:Xl,lineEnd:Zl,polygonStart:function(){Hl.lineStart=Jl,Hl.lineEnd=ts},polygonEnd:function(){Hl.lineStart=Xl,Hl.lineEnd=Zl}};function Vl(t,e){t*=mc;var n=wc(e*=mc);$l(n*wc(t),n*Nc(t),Nc(e))}function $l(t,e,n){++yl,_l+=(t-_l)/yl,bl+=(e-bl)/yl,xl+=(n-xl)/yl}function Xl(){Hl.point=Gl}function Gl(t,e){t*=mc;var n=wc(e*=mc);Al=n*wc(t),Rl=n*Nc(t),Pl=Nc(e),Hl.point=Kl,$l(Al,Rl,Pl)}function Kl(t,e){t*=mc;var n=wc(e*=mc),r=n*wc(t),i=n*Nc(t),a=Nc(e),o=xc(Cc((o=Rl*a-Pl*i)*o+(o=Pl*r-Al*a)*o+(o=Al*i-Rl*r)*o),Al*r+Rl*i+Pl*a);ml+=o,wl+=o*(Al+(Al=r)),El+=o*(Rl+(Rl=i)),kl+=o*(Pl+(Pl=a)),$l(Al,Rl,Pl)}function Zl(){Hl.point=Vl}function Jl(){Hl.point=es}function ts(){ns(Sl,Cl),Hl.point=Vl}function es(t,e){Sl=t,Cl=e,t*=mc,e*=mc,Hl.point=ns;var n=wc(e);Al=n*wc(t),Rl=n*Nc(t),Pl=Nc(e),$l(Al,Rl,Pl)}function ns(t,e){t*=mc;var n=wc(e*=mc),r=n*wc(t),i=n*Nc(t),a=Nc(e),o=Rl*a-Pl*i,u=Pl*r-Al*a,c=Al*i-Rl*r,l=Cc(o*o+u*u+c*c),s=Pc(l),f=l&&-s/l;Tl+=f*o,Ml+=f*u,Nl+=f*c,ml+=s,wl+=s*(Al+(Al=r)),El+=s*(Rl+(Rl=i)),kl+=s*(Pl+(Pl=a)),$l(Al,Rl,Pl)}function rs(t){yl=ml=_l=bl=xl=wl=El=kl=Tl=Ml=Nl=0,jc(t,Hl);var e=Tl,n=Ml,r=Nl,i=e*e+n*n+r*r;return idc?t-gc:t<-dc?t+gc:t,e]}function us(t,e,n){return(t%=gc)?e||n?as(ls(t),ss(e,n)):ls(t):e||n?ss(e,n):os}function cs(t){return function(e,n){return[(e+=t)>dc?e-gc:e<-dc?e+gc:e,n]}}function ls(t){var e=cs(t);return e.invert=cs(-t),e}function ss(t,e){var n=wc(t),r=Nc(t),i=wc(e),a=Nc(e);function o(t,e){var o=wc(e),u=wc(t)*o,c=Nc(t)*o,l=Nc(e),s=l*n+u*r;return[xc(c*i-s*a,u*n-l*r),Pc(s*i+c*a)]}return o.invert=function(t,e){var o=wc(e),u=wc(t)*o,c=Nc(t)*o,l=Nc(e),s=l*i-c*a;return[xc(c*i+l*a,u*n+s*r),Pc(s*n-u*r)]},o}function fs(t){function e(e){return(e=t(e[0]*mc,e[1]*mc))[0]*=yc,e[1]*=yc,e}return t=us(t[0]*mc,t[1]*mc,t.length>2?t[2]*mc:0),e.invert=function(e){return(e=t.invert(e[0]*mc,e[1]*mc))[0]*=yc,e[1]*=yc,e},e}function hs(t,e,n,r,i,a){if(n){var o=wc(e),u=Nc(e),c=r*n;null==i?(i=e+r*gc,a=e-c/2):(i=ds(o,i),a=ds(o,a),(r>0?ia)&&(i+=r*gc));for(var l,s=i;r>0?s>a:s1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function gs(t,e){return _c(t[0]-e[0])=0;--a)i.point((s=l[a])[0],s[1]);else r(h.x,h.p.x,-1,i);h=h.p}l=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}}function _s(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r=0?1:-1,k=E*w,T=k>dc,M=p*b;if(bs.add(xc(M*E*Nc(k),v*x+M*wc(k))),a+=T?w+E*gc:w,T^h>=n^m>=n){var N=rl(el(f),el(y));ol(N);var S=rl(i,N);ol(S);var C=(T^w>=0?-1:1)*Pc(S[2]);(r>C||r===C&&(N[0]||N[1]))&&(o+=T^w>=0?1:-1)}}return(a<-fc||a0){for(f||(i.polygonStart(),f=!0),i.lineStart(),t=0;t1&&2&c&&h.push(h.pop().concat(h.shift())),o.push(h.filter(Es))}return h}}function Es(t){return t.length>1}function ks(t,e){return((t=t.x)[0]<0?t[1]-pc-fc:pc-t[1])-((e=e.x)[0]<0?e[1]-pc-fc:pc-e[1])}const Ts=ws((function(){return!0}),(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var u=a>0?dc:-dc,c=_c(a-n);_c(c-dc)0?pc:-pc),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(a,r),e=0):i!==u&&c>=dc&&(_c(n-i)fc?bc((Nc(e)*(a=wc(r))*Nc(n)-Nc(r)*(i=wc(e))*Nc(t))/(i*a*o)):(e+r)/2}(n,r,a,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),e=0),t.point(n=a,r=o),i=u},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*pc,r.point(-dc,i),r.point(0,i),r.point(dc,i),r.point(dc,0),r.point(dc,-i),r.point(0,-i),r.point(-dc,-i),r.point(-dc,0),r.point(-dc,i);else if(_c(t[0]-e[0])>fc){var a=t[0]0,i=_c(e)>fc;function a(t,n){return wc(t)*wc(n)>e}function o(t,n,r){var i=[1,0,0],a=rl(el(t),el(n)),o=nl(a,a),u=a[0],c=o-u*u;if(!c)return!r&&t;var l=e*o/c,s=-e*u/c,f=rl(i,a),h=al(i,l);il(h,al(a,s));var d=f,p=nl(h,d),v=nl(d,d),g=p*p-v*(nl(h,h)-1);if(!(g<0)){var y=Cc(g),m=al(d,(-p-y)/v);if(il(m,h),m=tl(m),!r)return m;var _,b=t[0],x=n[0],w=t[1],E=n[1];x0^m[1]<(_c(m[0]-b)dc^(b<=m[0]&&m[0]<=x)){var M=al(d,(-p+y)/v);return il(M,h),[m,tl(M)]}}}function u(e,n){var i=r?t:dc-t,a=0;return e<-i?a|=1:e>i&&(a|=2),n<-i?a|=4:n>i&&(a|=8),a}return ws(a,(function(t){var e,n,c,l,s;return{lineStart:function(){l=c=!1,s=1},point:function(f,h){var d,p=[f,h],v=a(f,h),g=r?v?0:u(f,h):v?u(f+(f<0?dc:-dc),h):0;if(!e&&(l=c=v)&&t.lineStart(),v!==c&&(!(d=o(e,p))||gs(e,d)||gs(p,d))&&(p[0]+=fc,p[1]+=fc,v=a(p[0],p[1])),v!==c)s=0,v?(t.lineStart(),d=o(p,e),t.point(d[0],d[1])):(d=o(e,p),t.point(d[0],d[1]),t.lineEnd()),e=d;else if(i&&e&&r^v){var y;g&n||!(y=o(p,e,!0))||(s=0,r?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!v||e&&gs(e,p)||t.point(p[0],p[1]),e=p,c=v,n=g},lineEnd:function(){c&&t.lineEnd(),e=null},clean:function(){return s|(l&&c)<<1}}}),(function(e,r,i,a){hs(a,t,n,i,e,r)}),r?[0,-t]:[-dc,t-dc])}var Ns=1e9,Ss=-Ns;function Cs(t,e,n,r){function i(i,a){return t<=i&&i<=n&&e<=a&&a<=r}function a(i,a,u,l){var s=0,f=0;if(null==i||(s=o(i,u))!==(f=o(a,u))||c(i,a)<0^u>0)do{l.point(0===s||3===s?t:n,s>1?r:e)}while((s=(s+u+4)%4)!==f);else l.point(a[0],a[1])}function o(r,i){return _c(r[0]-t)0?0:3:_c(r[0]-n)0?2:1:_c(r[1]-e)0?1:0:i>0?3:2}function u(t,e){return c(t.x,e.x)}function c(t,e){var n=o(t,1),r=o(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(o){var c,l,s,f,h,d,p,v,g,y,m,_=o,b=vs(),x={point:w,lineStart:function(){x.point=E,l&&l.push(s=[]);y=!0,g=!1,p=v=NaN},lineEnd:function(){c&&(E(f,h),d&&g&&b.rejoin(),c.push(b.result()));x.point=w,g&&_.lineEnd()},polygonStart:function(){_=b,c=[],l=[],m=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=l.length;nr&&(h-a)*(r-o)>(d-o)*(t-a)&&++e:d<=r&&(h-a)*(r-o)<(d-o)*(t-a)&&--e;return e}(),n=m&&e,i=(c=U(c)).length;(n||i)&&(o.polygonStart(),n&&(o.lineStart(),a(null,null,1,o),o.lineEnd()),i&&ms(c,u,e,a,o),o.polygonEnd());_=o,c=l=s=null}};function w(t,e){i(t,e)&&_.point(t,e)}function E(a,o){var u=i(a,o);if(l&&s.push([a,o]),y)f=a,h=o,d=u,y=!1,u&&(_.lineStart(),_.point(a,o));else if(u&&g)_.point(a,o);else{var c=[p=Math.max(Ss,Math.min(Ns,p)),v=Math.max(Ss,Math.min(Ns,v))],b=[a=Math.max(Ss,Math.min(Ns,a)),o=Math.max(Ss,Math.min(Ns,o))];!function(t,e,n,r,i,a){var o,u=t[0],c=t[1],l=0,s=1,f=e[0]-u,h=e[1]-c;if(o=n-u,f||!(o>0)){if(o/=f,f<0){if(o0){if(o>s)return;o>l&&(l=o)}if(o=i-u,f||!(o<0)){if(o/=f,f<0){if(o>s)return;o>l&&(l=o)}else if(f>0){if(o0)){if(o/=h,h<0){if(o0){if(o>s)return;o>l&&(l=o)}if(o=a-c,h||!(o<0)){if(o/=h,h<0){if(o>s)return;o>l&&(l=o)}else if(h>0){if(o0&&(t[0]=u+l*f,t[1]=c+l*h),s<1&&(e[0]=u+s*f,e[1]=c+s*h),!0}}}}}(c,b,t,e,n,r)?u&&(_.lineStart(),_.point(a,o),m=!1):(g||(_.lineStart(),_.point(c[0],c[1])),_.point(b[0],b[1]),u||_.lineEnd(),m=!1)}p=a,v=o,g=u}return x}}function As(){var t,e,n,r=0,i=0,a=960,o=500;return n={stream:function(n){return t&&e===n?t:t=Cs(r,i,a,o)(e=n)},extent:function(u){return arguments.length?(r=+u[0][0],i=+u[0][1],a=+u[1][0],o=+u[1][1],t=e=null,n):[[r,i],[a,o]]}}}var Rs,Ps,Is,Ls=uc(),Os={sphere:Lc,point:Lc,lineStart:function(){Os.point=zs,Os.lineEnd=Ds},lineEnd:Lc,polygonStart:Lc,polygonEnd:Lc};function Ds(){Os.point=Os.lineEnd=Lc}function zs(t,e){Rs=t*=mc,Ps=Nc(e*=mc),Is=wc(e),Os.point=Us}function Us(t,e){t*=mc;var n=Nc(e*=mc),r=wc(e),i=_c(t-Rs),a=wc(i),o=r*Nc(i),u=Is*n-Ps*r*a,c=Ps*n+Is*r*a;Ls.add(xc(Cc(o*o+u*u),c)),Rs=t,Ps=n,Is=r}function Fs(t){return Ls.reset(),jc(t,Os),+Ls}var js=[null,null],qs={type:"LineString",coordinates:js};function Bs(t,e){return js[0]=t,js[1]=e,Fs(qs)}var Qs={Feature:function(t,e){return Ys(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++rfc})).map(c)).concat(E(Ec(a/d)*d,i,d).filter((function(t){return _c(t%v)>fc})).map(l))}return y.lines=function(){return m().map((function(t){return{type:"LineString",coordinates:t}}))},y.outline=function(){return{type:"Polygon",coordinates:[s(r).concat(f(o).slice(1),s(n).reverse().slice(1),f(u).reverse().slice(1))]}},y.extent=function(t){return arguments.length?y.extentMajor(t).extentMinor(t):y.extentMinor()},y.extentMajor=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],u=+t[0][1],o=+t[1][1],r>n&&(t=r,r=n,n=t),u>o&&(t=u,u=o,o=t),y.precision(g)):[[r,u],[n,o]]},y.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],a=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),a>i&&(n=a,a=i,i=n),y.precision(g)):[[e,a],[t,i]]},y.step=function(t){return arguments.length?y.stepMajor(t).stepMinor(t):y.stepMinor()},y.stepMajor=function(t){return arguments.length?(p=+t[0],v=+t[1],y):[p,v]},y.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],y):[h,d]},y.precision=function(h){return arguments.length?(g=+h,c=Zs(a,i,90),l=Js(e,t,g),s=Zs(u,o,90),f=Js(r,n,g),y):g},y.extentMajor([[-180,-90+fc],[180,90-fc]]).extentMinor([[-180,-80-fc],[180,80+fc]])}function ef(){return tf()()}function nf(t,e){var n=t[0]*mc,r=t[1]*mc,i=e[0]*mc,a=e[1]*mc,o=wc(r),u=Nc(r),c=wc(a),l=Nc(a),s=o*wc(n),f=o*Nc(n),h=c*wc(i),d=c*Nc(i),p=2*Pc(Cc(Ic(a-r)+o*c*Ic(i-n))),v=Nc(p),g=p?function(t){var e=Nc(t*=p)/v,n=Nc(p-t)/v,r=n*s+e*h,i=n*f+e*d,a=n*u+e*l;return[xc(i,r)*yc,xc(a,Cc(r*r+i*i))*yc]}:function(){return[n*yc,r*yc]};return g.distance=p,g}function rf(t){return t}var af,of,uf,cf,lf=uc(),sf=uc(),ff={point:Lc,lineStart:Lc,lineEnd:Lc,polygonStart:function(){ff.lineStart=hf,ff.lineEnd=vf},polygonEnd:function(){ff.lineStart=ff.lineEnd=ff.point=Lc,lf.add(_c(sf)),sf.reset()},result:function(){var t=lf/2;return lf.reset(),t}};function hf(){ff.point=df}function df(t,e){ff.point=pf,af=uf=t,of=cf=e}function pf(t,e){sf.add(cf*t-uf*e),uf=t,cf=e}function vf(){pf(af,of)}const gf=ff;var yf=1/0,mf=yf,_f=-yf,bf=_f,xf={point:function(t,e){t_f&&(_f=t);ebf&&(bf=e)},lineStart:Lc,lineEnd:Lc,polygonStart:Lc,polygonEnd:Lc,result:function(){var t=[[yf,mf],[_f,bf]];return _f=bf=-(mf=yf=1/0),t}};const wf=xf;var Ef,kf,Tf,Mf,Nf=0,Sf=0,Cf=0,Af=0,Rf=0,Pf=0,If=0,Lf=0,Of=0,Df={point:zf,lineStart:Uf,lineEnd:qf,polygonStart:function(){Df.lineStart=Bf,Df.lineEnd=Qf},polygonEnd:function(){Df.point=zf,Df.lineStart=Uf,Df.lineEnd=qf},result:function(){var t=Of?[If/Of,Lf/Of]:Pf?[Af/Pf,Rf/Pf]:Cf?[Nf/Cf,Sf/Cf]:[NaN,NaN];return Nf=Sf=Cf=Af=Rf=Pf=If=Lf=Of=0,t}};function zf(t,e){Nf+=t,Sf+=e,++Cf}function Uf(){Df.point=Ff}function Ff(t,e){Df.point=jf,zf(Tf=t,Mf=e)}function jf(t,e){var n=t-Tf,r=e-Mf,i=Cc(n*n+r*r);Af+=i*(Tf+t)/2,Rf+=i*(Mf+e)/2,Pf+=i,zf(Tf=t,Mf=e)}function qf(){Df.point=zf}function Bf(){Df.point=Wf}function Qf(){Yf(Ef,kf)}function Wf(t,e){Df.point=Yf,zf(Ef=Tf=t,kf=Mf=e)}function Yf(t,e){var n=t-Tf,r=e-Mf,i=Cc(n*n+r*r);Af+=i*(Tf+t)/2,Rf+=i*(Mf+e)/2,Pf+=i,If+=(i=Mf*t-Tf*e)*(Tf+t),Lf+=i*(Mf+e),Of+=3*i,zf(Tf=t,Mf=e)}const Hf=Df;function Vf(t){this._context=t}Vf.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,gc)}},result:Lc};var $f,Xf,Gf,Kf,Zf,Jf=uc(),th={point:Lc,lineStart:function(){th.point=eh},lineEnd:function(){$f&&nh(Xf,Gf),th.point=Lc},polygonStart:function(){$f=!0},polygonEnd:function(){$f=null},result:function(){var t=+Jf;return Jf.reset(),t}};function eh(t,e){th.point=nh,Xf=Kf=t,Gf=Zf=e}function nh(t,e){Kf-=t,Zf-=e,Jf.add(Cc(Kf*Kf+Zf*Zf)),Kf=t,Zf=e}const rh=th;function ih(){this._string=[]}function ah(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function oh(t,e){var n,r,i=4.5;function a(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),jc(t,n(r))),r.result()}return a.area=function(t){return jc(t,n(gf)),gf.result()},a.measure=function(t){return jc(t,n(rh)),rh.result()},a.bounds=function(t){return jc(t,n(wf)),wf.result()},a.centroid=function(t){return jc(t,n(Hf)),Hf.result()},a.projection=function(e){return arguments.length?(n=null==e?(t=null,rf):(t=e).stream,a):t},a.context=function(t){return arguments.length?(r=null==t?(e=null,new ih):new Vf(e=t),"function"!=typeof i&&r.pointRadius(i),a):e},a.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),a):i},a.projection(t).context(e)}function uh(t){return{stream:ch(t)}}function ch(t){return function(e){var n=new lh;for(var r in t)n[r]=t[r];return n.stream=e,n}}function lh(){}function sh(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),jc(n,t.stream(wf)),e(wf.result()),null!=r&&t.clipExtent(r),t}function fh(t,e,n){return sh(t,(function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),o=+e[0][0]+(r-a*(n[1][0]+n[0][0]))/2,u=+e[0][1]+(i-a*(n[1][1]+n[0][1]))/2;t.scale(150*a).translate([o,u])}),n)}function hh(t,e,n){return fh(t,[[0,0],e],n)}function dh(t,e,n){return sh(t,(function(n){var r=+e,i=r/(n[1][0]-n[0][0]),a=(r-i*(n[1][0]+n[0][0]))/2,o=-i*n[0][1];t.scale(150*i).translate([a,o])}),n)}function ph(t,e,n){return sh(t,(function(n){var r=+e,i=r/(n[1][1]-n[0][1]),a=-i*n[0][0],o=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([a,o])}),n)}ih.prototype={_radius:4.5,_circle:ah(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=ah(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}},lh.prototype={constructor:lh,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 vh=16,gh=wc(30*mc);function yh(t,e){return+e?function(t,e){function n(r,i,a,o,u,c,l,s,f,h,d,p,v,g){var y=l-r,m=s-i,_=y*y+m*m;if(_>4*e&&v--){var b=o+h,x=u+d,w=c+p,E=Cc(b*b+x*x+w*w),k=Pc(w/=E),T=_c(_c(w)-1)e||_c((y*C+m*A)/_-.5)>.3||o*h+u*d+c*p2?t[2]%360*mc:0,S()):[g*yc,y*yc,m*yc]},T.precision=function(t){return arguments.length?(k=yh(N,E=t*t),C()):Cc(E)},T.fitExtent=function(t,e){return fh(T,t,e)},T.fitSize=function(t,e){return hh(T,t,e)},T.fitWidth=function(t,e){return dh(T,t,e)},T.fitHeight=function(t,e){return ph(T,t,e)},function(){return e=t.apply(this,arguments),T.invert=e.invert&&M,S()}}function xh(t){var e=0,n=dc/3,r=bh(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*mc,n=t[1]*mc):[e*yc,n*yc]},i}function wh(t,e){var n=Nc(t),r=(n+Nc(e))/2;if(_c(r)=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:o).invert(t)},s.stream=function(n){return t&&e===n?t:(r=[o.stream(e=n),u.stream(n),c.stream(n)],i=r.length,t={point:function(t,e){for(var n=-1;++n0?e<-pc+fc&&(e=-pc+fc):e>pc-fc&&(e=pc-fc);var n=i/Mc(Oh(e),r);return[n*Nc(r*t),i-n*wc(r*t)]}return a.invert=function(t,e){var n=i-e,a=Sc(r)*Cc(t*t+n*n);return[xc(t,_c(n))/r*Sc(n),2*bc(Mc(i/a,1/r))-pc]},a}function zh(){return xh(Dh).scale(109.5).parallels([30,30])}function Uh(t,e){return[t,e]}function Fh(){return _h(Uh).scale(152.63)}function jh(t,e){var n=wc(t),r=t===e?Nc(t):(n-wc(e))/(e-t),i=n/r+t;if(_c(r)2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}function td(t,e){return t.parent===e.parent?1:2}function ed(t,e){return t+e.x}function nd(t,e){return Math.max(t,e.y)}function rd(){var t=td,e=1,n=1,r=!1;function i(i){var a,o=0;i.eachAfter((function(e){var n=e.children;n?(e.x=function(t){return t.reduce(ed,0)/t.length}(n),e.y=function(t){return 1+t.reduce(nd,0)}(n)):(e.x=a?o+=t(e,a):0,e.y=0,a=e)}));var u=function(t){for(var e;e=t.children;)t=e[0];return t}(i),c=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),l=u.x-t(u,c)/2,s=c.x+t(c,u)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-l)/(s-l)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function id(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function ad(t,e){var n,r,i,a,o,u=new ld(t),c=+t.value&&(u.value=t.value),l=[u];for(null==e&&(e=od);n=l.pop();)if(c&&(n.value=+n.data.value),(i=e(n.data))&&(o=i.length))for(n.children=new Array(o),a=o-1;a>=0;--a)l.push(r=n.children[a]=new ld(i[a])),r.parent=n,r.depth=n.depth+1;return u.eachBefore(cd)}function od(t){return t.children}function ud(t){t.data=t.data.data}function cd(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function ld(t){this.data=t,this.depth=this.height=0,this.parent=null}Ah.invert=Nh((function(t){return t})),Ph.invert=function(t,e){return[t,2*bc(kc(e))-pc]},Uh.invert=Uh,Bh.invert=Nh(bc),Hh.invert=function(t,e){var n,r=e,i=25;do{var a=r*r,o=a*a;r-=n=(r*(1.007226+a*(.015085+o*(.028874*a-.044475-.005916*o)))-e)/(1.007226+a*(.045255+o*(.259866*a-.311325-.005916*11*o)))}while(_c(n)>fc&&--i>0);return[t/(.8707+(a=r*r)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),r]},$h.invert=Nh(Pc),Gh.invert=Nh((function(t){return 2*bc(t)})),Zh.invert=function(t,e){return[-e,2*bc(kc(t))-pc]},ld.prototype=ad.prototype={constructor:ld,count:function(){return this.eachAfter(id)},each:function(t){var e,n,r,i,a=this,o=[a];do{for(e=o.reverse(),o=[];a=e.pop();)if(t(a),n=a.children)for(r=0,i=n.length;r=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();for(;t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return ad(this).eachBefore(ud)}};var sd=Array.prototype.slice;function fd(t){for(var e,n,r=0,i=(t=function(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}(sd.call(t))).length,a=[];r0&&n*n>r*r+i*i}function vd(t,e){for(var n=0;nn*n+r*r}function xd(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,a=(e.y*n.r+n.y*e.r)/r;return i*i+a*a}function wd(t){this._=t,this.next=null,this.previous=null}function Ed(t){if(!(i=t.length))return 0;var e,n,r,i,a,o,u,c,l,s,f;if((e=t[0]).x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;_d(n,e,r=t[2]),e=new wd(e),n=new wd(n),r=new wd(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(u=3;u0)throw new Error("cycle");return a}return n.id=function(e){return arguments.length?(t=Td(e),n):t},n.parentId=function(t){return arguments.length?(e=Td(t),n):e},n}function Bd(t,e){return t.parent===e.parent?1:2}function Qd(t){var e=t.children;return e?e[0]:t.t}function Wd(t){var e=t.children;return e?e[e.length-1]:t.t}function Yd(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Hd(t,e,n){return t.a.parent===e.parent?t.a:n}function Vd(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 $d(){var t=Bd,e=1,n=1,r=null;function i(i){var c=function(t){for(var e,n,r,i,a,o=new Vd(t,0),u=[o];e=u.pop();)if(r=e._.children)for(e.children=new Array(a=r.length),i=a-1;i>=0;--i)u.push(n=e.children[i]=new Vd(r[i],i)),n.parent=e;return(o.parent=new Vd(null,0)).children=[o],o}(i);if(c.eachAfter(a),c.parent.m=-c.z,c.eachBefore(o),r)i.eachBefore(u);else{var l=i,s=i,f=i;i.eachBefore((function(t){t.xs.x&&(s=t),t.depth>f.depth&&(f=t)}));var h=l===s?1:t(l,s)/2,d=h-l.x,p=e/(s.x+h+d),v=n/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*v}))}return i}function a(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,a=i.length;--a>=0;)(e=i[a]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var a=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,a=e,o=e,u=n,c=a.parent.children[0],l=a.m,s=o.m,f=u.m,h=c.m;u=Wd(u),a=Qd(a),u&&a;)c=Qd(c),(o=Wd(o)).a=e,(i=u.z+f-a.z-l+t(u._,a._))>0&&(Yd(Hd(u,e,r),e,i),l+=i,s+=i),f+=u.m,l+=a.m,h+=c.m,s+=o.m;u&&!Wd(o)&&(o.t=u,o.m+=f-s),a&&!Qd(c)&&(c.t=a,c.m+=l-h,r=e)}return r}(e,i,e.parent.A||r[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function Xd(t,e,n,r,i){for(var a,o=t.children,u=-1,c=o.length,l=t.value&&(i-n)/t.value;++uh&&(h=u),g=s*s*v,(d=Math.max(h/g,g/f))>p){s-=u;break}p=d}y.push(o={value:s,dice:c1?e:1)},n}(Gd);function Jd(){var t=Zd,e=!1,n=1,r=1,i=[0],a=Md,o=Md,u=Md,c=Md,l=Md;function s(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(f),i=[0],e&&t.eachBefore(Id),t}function f(e){var n=i[e.depth],r=e.x0+n,s=e.y0+n,f=e.x1-n,h=e.y1-n;f=n-1){var s=u[e];return s.x0=i,s.y0=a,s.x1=o,void(s.y1=c)}var f=l[e],h=r/2+f,d=e+1,p=n-1;for(;d>>1;l[v]c-a){var m=(i*y+o*g)/r;t(e,d,g,i,a,m,c),t(d,n,y,m,a,o,c)}else{var _=(a*y+c*g)/r;t(e,d,g,i,a,o,_),t(d,n,y,i,_,o,c)}}(0,c,t.value,e,n,r,i)}function ep(t,e,n,r,i){(1&t.depth?Xd:Ld)(t,e,n,r,i)}const np=function t(e){function n(t,n,r,i,a){if((o=t._squarify)&&o.ratio===e)for(var o,u,c,l,s,f=-1,h=o.length,d=t.value;++f1?e:1)},n}(Gd);function rp(t){for(var e,n=-1,r=t.length,i=t[r-1],a=0;++n1&&ap(t[n[r-2]],t[n[r-1]],t[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function cp(t){if((n=t.length)<3)return null;var e,n,r=new Array(n),i=new Array(n);for(e=0;e=0;--e)l.push(t[r[a[e]][2]]);for(e=+u;eu!=l>u&&o<(c-n)*(u-r)/(l-r)+n&&(s=!s),c=n,l=r;return s}function sp(t){for(var e,n,r=-1,i=t.length,a=t[i-1],o=a[0],u=a[1],c=0;++r=0;)if((n=t._tasks[r])&&(t._tasks[r]=null,n.abort))try{n.abort()}catch(e){}t._active=NaN,yp(t)}function yp(t){if(!t._active&&t._call){var e=t._data;t._data=void 0,t._call(t._error,e)}}function mp(t){if(null==t)t=1/0;else if(!((t=+t)>=1))throw new Error("invalid concurrency");return new dp(t)}function _p(){return Math.random()}dp.prototype=mp.prototype={constructor:dp,defer:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var e=fp.call(arguments,1);return e.push(t),++this._waiting,this._tasks.push(e),pp(this),this},abort:function(){return null==this._error&&gp(this,new Error("abort")),this},await:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(e,n){t.apply(null,[e].concat(n))},yp(this),this},awaitAll:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=t,yp(this),this}};const bp=function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,1===arguments.length?(n=t,t=0):n-=t,function(){return e()*n+t}}return n.source=t,n}(_p),xp=function t(e){function n(t,n){var r,i;return t=null==t?0:+t,n=null==n?1:+n,function(){var a;if(null!=r)a=r,r=null;else do{r=2*e()-1,a=2*e()-1,i=r*r+a*a}while(!i||i>1);return t+n*a*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(_p),wp=function t(e){function n(){var t=xp.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(_p),Ep=function t(e){function n(t){return function(){for(var n=0,r=0;r=200&&r<300||304===r){if(i)try{e=i.call(n,c)}catch(t){return void o.call("error",n,t)}else e=c;o.call("load",n,e)}else o.call("error",n,t)}if("undefined"!=typeof XDomainRequest&&!("withCredentials"in c)&&/^(http(s)?:)?\/\//.test(t)&&(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=c.ontimeout=h:c.onreadystatechange=function(t){c.readyState>3&&h(t)},c.onprogress=function(t){o.call("progress",n,t)},n={header:function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?u.get(t):(null==e?u.remove(t):u.set(t,e+""),n)},mimeType:function(t){return arguments.length?(r=null==t?null:t+"",n):r},responseType:function(t){return arguments.length?(a=t,n):a},timeout:function(t){return arguments.length?(f=+t,n):f},user:function(t){return arguments.length<1?l:(l=null==t?null:t+"",n)},password:function(t){return arguments.length<1?s:(s=null==t?null:t+"",n)},response:function(t){return i=t,n},get:function(t,e){return n.send("GET",t,e)},post:function(t,e){return n.send("POST",t,e)},send:function(e,i,h){return c.open(e,t,!0,l,s),null==r||u.has("accept")||u.set("accept",r+",*/*"),c.setRequestHeader&&u.each((function(t,e){c.setRequestHeader(e,t)})),null!=r&&c.overrideMimeType&&c.overrideMimeType(r),null!=a&&(c.responseType=a),f>0&&(c.timeout=f),null==h&&"function"==typeof i&&(h=i,i=null),null!=h&&1===h.length&&(h=function(t){return function(e,n){t(null==e?n:null)}}(h)),null!=h&&n.on("error",h).on("load",(function(t){h(null,t)})),o.call("beforesend",n,c),c.send(null==i?null:i),n},abort:function(){return c.abort(),n},on:function(){var t=o.on.apply(o,arguments);return t===o?n:t}},null!=e){if("function"!=typeof e)throw new Error("invalid callback: "+e);return n.get(e)}return n}function Cp(t,e){return function(n,r){var i=Sp(n).mimeType(t).response(e);if(null!=r){if("function"!=typeof r)throw new Error("invalid callback: "+r);return i.get(r)}return i}}const Ap=Cp("text/html",(function(t){return document.createRange().createContextualFragment(t.responseText)})),Rp=Cp("application/json",(function(t){return JSON.parse(t.responseText)})),Pp=Cp("text/plain",(function(t){return t.responseText})),Ip=Cp("application/xml",(function(t){var e=t.responseXML;if(!e)throw new Error("parse error");return e}));var Lp=n(72);function Op(t,e){return function(n,r,i){arguments.length<3&&(i=r,r=null);var a=Sp(n).mimeType(t);return a.row=function(t){return arguments.length?a.response(function(t,e){return function(n){return t(n.responseText,e)}}(e,r=t)):r},a.row(r),i?a.get(i):a}}const Dp=Op("text/csv",Lp.sw),zp=Op("text/tab-separated-values",Lp.Nu);var Up=Array.prototype,Fp=Up.map,jp=Up.slice,qp={name:"implicit"};function Bp(t){var e=qo(),n=[],r=qp;function i(i){var a=i+"",o=e.get(a);if(!o){if(r!==qp)return r;e.set(a,o=n.push(i))}return t[(o-1)%t.length]}return t=null==t?[]:jp.call(t),i.domain=function(t){if(!arguments.length)return n.slice();n=[],e=qo();for(var r,a,o=-1,u=t.length;++o2?Kp:Gp,r=i=null,s}function s(e){return(r||(r=n(a,o,c?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=e?0:t>=n?1:r(t)}}}(t):t,u)))(+e)}return s.invert=function(t){return(i||(i=n(o,a,Xp,c?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:r(t)}}}(e):e)))(+t)},s.domain=function(t){return arguments.length?(a=Fp.call(t,Vp),l()):a.slice()},s.range=function(t){return arguments.length?(o=jp.call(t),l()):o.slice()},s.rangeRound=function(t){return o=jp.call(t),u=br,l()},s.clamp=function(t){return arguments.length?(c=!!t,l()):c},s.interpolate=function(t){return arguments.length?(u=t,l()):u},l()}function tv(t){var e=t.domain;return t.ticks=function(t){var n=e();return N(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){return function(t,e,n){var r,i=t[0],a=t[t.length-1],o=C(i,a,null==e?10:e);switch((n=Xu(null==n?",f":n)).type){case"s":var u=Math.max(Math.abs(i),Math.abs(a));return null!=n.precision||isNaN(r=ac(o,u))||(n.precision=r),tc(n,u);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=oc(o,Math.max(Math.abs(i),Math.abs(a))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=ic(o))||(n.precision=r-2*("%"===n.type))}return Ju(n)}(e(),t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),a=0,o=i.length-1,u=i[a],c=i[o];return c0?r=S(u=Math.floor(u/r)*r,c=Math.ceil(c/r)*r,n):r<0&&(r=S(u=Math.ceil(u*r)/r,c=Math.floor(c*r)/r,n)),r>0?(i[a]=Math.floor(u/r)*r,i[o]=Math.ceil(c/r)*r,e(i)):r<0&&(i[a]=Math.ceil(u*r)/r,i[o]=Math.floor(c*r)/r,e(i)),t},t}function ev(){var t=Jp(Xp,pr);return t.copy=function(){return Zp(t,ev())},tv(t)}function nv(){var t=[0,1];function e(t){return+t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=Fp.call(n,Vp),e):t.slice()},e.copy=function(){return nv().domain(t)},tv(e)}function rv(t,e){var n,r=0,i=(t=t.slice()).length-1,a=t[r],o=t[i];return o0){for(;hc)break;v.push(f)}}else for(;h=1;--s)if(!((f=l*s)c)break;v.push(f)}}else v=N(h,d,Math.min(d-h,p)).map(i);return a?v.reverse():v},t.tickFormat=function(e,a){if(null==a&&(a=10===n?".0e":","),"function"!=typeof a&&(a=Ju(a)),e===1/0)return a;null==e&&(e=10);var o=Math.max(1,n*e/t.ticks().length);return function(t){var e=t/i(Math.round(r(t)));return e*n0?n[i-1]:t[0],i=n?[r[n-1],e]:[r[o-1],r[o]]},a.copy=function(){return vv().domain([t,e]).range(i)},tv(a)}function gv(){var t=[.5],e=[0,1],n=1;function r(r){if(r<=r)return e[l(t,r,0,n)]}return r.domain=function(i){return arguments.length?(t=jp.call(i),n=Math.min(t.length,e.length-1),r):t.slice()},r.range=function(i){return arguments.length?(e=jp.call(i),n=Math.min(t.length,e.length-1),r):e.slice()},r.invertExtent=function(n){var r=e.indexOf(n);return[t[r-1],t[r]]},r.copy=function(){return gv().domain(t).range(e)},r}var yv=new Date,mv=new Date;function _v(t,e,n,r){function i(e){return t(e=new Date(+e)),e}return i.floor=i,i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return u;do{u.push(o=new Date(+n)),e(n,a),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return yv.setTime(+e),mv.setTime(+r),t(yv),t(mv),Math.floor(n(yv,mv))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var bv=_v((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));bv.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?_v((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):bv:null};const xv=bv;var wv=bv.range,Ev=1e3,kv=6e4,Tv=36e5,Mv=864e5,Nv=6048e5,Sv=_v((function(t){t.setTime(Math.floor(t/Ev)*Ev)}),(function(t,e){t.setTime(+t+e*Ev)}),(function(t,e){return(e-t)/Ev}),(function(t){return t.getUTCSeconds()}));const Cv=Sv;var Av=Sv.range,Rv=_v((function(t){t.setTime(Math.floor(t/kv)*kv)}),(function(t,e){t.setTime(+t+e*kv)}),(function(t,e){return(e-t)/kv}),(function(t){return t.getMinutes()}));const Pv=Rv;var Iv=Rv.range,Lv=_v((function(t){var e=t.getTimezoneOffset()*kv%Tv;e<0&&(e+=Tv),t.setTime(Math.floor((+t-e)/Tv)*Tv+e)}),(function(t,e){t.setTime(+t+e*Tv)}),(function(t,e){return(e-t)/Tv}),(function(t){return t.getHours()}));const Ov=Lv;var Dv=Lv.range,zv=_v((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())*kv)/Mv}),(function(t){return t.getDate()-1}));const Uv=zv;var Fv=zv.range;function jv(t){return _v((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*kv)/Nv}))}var qv=jv(0),Bv=jv(1),Qv=jv(2),Wv=jv(3),Yv=jv(4),Hv=jv(5),Vv=jv(6),$v=qv.range,Xv=Bv.range,Gv=Qv.range,Kv=Wv.range,Zv=Yv.range,Jv=Hv.range,tg=Vv.range,eg=_v((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 ng=eg;var rg=eg.range,ig=_v((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()}));ig.every=function(t){return isFinite(t=Math.floor(t))&&t>0?_v((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const ag=ig;var og=ig.range,ug=_v((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*kv)}),(function(t,e){return(e-t)/kv}),(function(t){return t.getUTCMinutes()}));const cg=ug;var lg=ug.range,sg=_v((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*Tv)}),(function(t,e){return(e-t)/Tv}),(function(t){return t.getUTCHours()}));const fg=sg;var hg=sg.range,dg=_v((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/Mv}),(function(t){return t.getUTCDate()-1}));const pg=dg;var vg=dg.range;function gg(t){return _v((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/Nv}))}var yg=gg(0),mg=gg(1),_g=gg(2),bg=gg(3),xg=gg(4),wg=gg(5),Eg=gg(6),kg=yg.range,Tg=mg.range,Mg=_g.range,Ng=bg.range,Sg=xg.range,Cg=wg.range,Ag=Eg.range,Rg=_v((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 Pg=Rg;var Ig=Rg.range,Lg=_v((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()}));Lg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?_v((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const Og=Lg;var Dg=Lg.range;function zg(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 Ug(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 Fg(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function jg(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,u=t.months,c=t.shortMonths,l=Zg(i),s=Jg(i),f=Zg(a),h=Jg(a),d=Zg(o),p=Jg(o),v=Zg(u),g=Jg(u),y=Zg(c),m=Jg(c),_={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:_y,e:_y,f:ky,H:by,I:xy,j:wy,L:Ey,m:Ty,M:My,p:function(t){return i[+(t.getHours()>=12)]},Q:tm,s:em,S:Ny,u:Sy,U:Cy,V:Ay,w:Ry,W:Py,x:null,X:null,y:Iy,Y:Ly,Z:Oy,"%":Jy},b={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:Dy,e:Dy,f:qy,H:zy,I:Uy,j:Fy,L:jy,m:By,M:Qy,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:tm,s:em,S:Wy,u:Yy,U:Hy,V:Vy,w:$y,W:Xy,x:null,X:null,y:Gy,Y:Ky,Z:Zy,"%":Jy},x={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=m[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return k(t,e,n,r)},d:ly,e:ly,f:vy,H:fy,I:fy,j:sy,L:py,m:cy,M:hy,p:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=s[r[0].toLowerCase()],n+r[0].length):-1},Q:yy,s:my,S:dy,u:ey,U:ny,V:ry,w:ty,W:iy,x:function(t,e,r){return k(t,n,e,r)},X:function(t,e,n){return k(t,r,e,n)},y:oy,Y:ay,Z:uy,"%":gy};function w(t,e){return function(n){var r,i,a,o=[],u=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++u53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=Ug(Fg(a.y))).getUTCDay(),r=i>4||0===i?mg.ceil(r):mg(r),r=pg.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=e(Fg(a.y))).getDay(),r=i>4||0===i?Bv.ceil(r):Bv(r),r=Uv.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?Ug(Fg(a.y)).getUTCDay():e(Fg(a.y)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Ug(a)):e(a)}}function k(t,e,n,r){for(var i,a,o=0,u=e.length,c=n.length;o=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=x[i in Hg?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return _.x=w(n,_),_.X=w(r,_),_.c=w(e,_),b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),{format:function(t){var e=w(t+="",_);return e.toString=function(){return t},e},parse:function(t){var e=E(t+="",zg);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=E(t,Ug);return e.toString=function(){return t},e}}}var qg,Bg,Qg,Wg,Yg,Hg={"-":"",_:" ",0:"0"},Vg=/^\s*\d+/,$g=/^%/,Xg=/[\\^$*+?|[\]().{}]/g;function Gg(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a68?1900:2e3),n+r[0].length):-1}function uy(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function cy(t,e,n){var r=Vg.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ly(t,e,n){var r=Vg.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function sy(t,e,n){var r=Vg.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function fy(t,e,n){var r=Vg.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function hy(t,e,n){var r=Vg.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function dy(t,e,n){var r=Vg.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function py(t,e,n){var r=Vg.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function vy(t,e,n){var r=Vg.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function gy(t,e,n){var r=$g.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function yy(t,e,n){var r=Vg.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function my(t,e,n){var r=Vg.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function _y(t,e){return Gg(t.getDate(),e,2)}function by(t,e){return Gg(t.getHours(),e,2)}function xy(t,e){return Gg(t.getHours()%12||12,e,2)}function wy(t,e){return Gg(1+Uv.count(ag(t),t),e,3)}function Ey(t,e){return Gg(t.getMilliseconds(),e,3)}function ky(t,e){return Ey(t,e)+"000"}function Ty(t,e){return Gg(t.getMonth()+1,e,2)}function My(t,e){return Gg(t.getMinutes(),e,2)}function Ny(t,e){return Gg(t.getSeconds(),e,2)}function Sy(t){var e=t.getDay();return 0===e?7:e}function Cy(t,e){return Gg(qv.count(ag(t),t),e,2)}function Ay(t,e){var n=t.getDay();return t=n>=4||0===n?Yv(t):Yv.ceil(t),Gg(Yv.count(ag(t),t)+(4===ag(t).getDay()),e,2)}function Ry(t){return t.getDay()}function Py(t,e){return Gg(Bv.count(ag(t),t),e,2)}function Iy(t,e){return Gg(t.getFullYear()%100,e,2)}function Ly(t,e){return Gg(t.getFullYear()%1e4,e,4)}function Oy(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Gg(e/60|0,"0",2)+Gg(e%60,"0",2)}function Dy(t,e){return Gg(t.getUTCDate(),e,2)}function zy(t,e){return Gg(t.getUTCHours(),e,2)}function Uy(t,e){return Gg(t.getUTCHours()%12||12,e,2)}function Fy(t,e){return Gg(1+pg.count(Og(t),t),e,3)}function jy(t,e){return Gg(t.getUTCMilliseconds(),e,3)}function qy(t,e){return jy(t,e)+"000"}function By(t,e){return Gg(t.getUTCMonth()+1,e,2)}function Qy(t,e){return Gg(t.getUTCMinutes(),e,2)}function Wy(t,e){return Gg(t.getUTCSeconds(),e,2)}function Yy(t){var e=t.getUTCDay();return 0===e?7:e}function Hy(t,e){return Gg(yg.count(Og(t),t),e,2)}function Vy(t,e){var n=t.getUTCDay();return t=n>=4||0===n?xg(t):xg.ceil(t),Gg(xg.count(Og(t),t)+(4===Og(t).getUTCDay()),e,2)}function $y(t){return t.getUTCDay()}function Xy(t,e){return Gg(mg.count(Og(t),t),e,2)}function Gy(t,e){return Gg(t.getUTCFullYear()%100,e,2)}function Ky(t,e){return Gg(t.getUTCFullYear()%1e4,e,4)}function Zy(){return"+0000"}function Jy(){return"%"}function tm(t){return+t}function em(t){return Math.floor(+t/1e3)}function nm(t){return qg=jg(t),Bg=qg.format,Qg=qg.parse,Wg=qg.utcFormat,Yg=qg.utcParse,qg}nm({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 rm="%Y-%m-%dT%H:%M:%S.%LZ";var im=Date.prototype.toISOString?function(t){return t.toISOString()}:Wg(rm);const am=im;var om=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:Yg(rm);const um=om;var cm=1e3,lm=60*cm,sm=60*lm,fm=24*sm,hm=7*fm,dm=30*fm,pm=365*fm;function vm(t){return new Date(t)}function gm(t){return t instanceof Date?+t:+new Date(+t)}function ym(t,e,n,r,i,o,u,c,l){var s=Jp(Xp,pr),f=s.invert,h=s.domain,d=l(".%L"),p=l(":%S"),v=l("%I:%M"),g=l("%I %p"),y=l("%a %d"),m=l("%b %d"),_=l("%B"),b=l("%Y"),x=[[u,1,cm],[u,5,5*cm],[u,15,15*cm],[u,30,30*cm],[o,1,lm],[o,5,5*lm],[o,15,15*lm],[o,30,30*lm],[i,1,sm],[i,3,3*sm],[i,6,6*sm],[i,12,12*sm],[r,1,fm],[r,2,2*fm],[n,1,hm],[e,1,dm],[e,3,3*dm],[t,1,pm]];function w(a){return(u(a)1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return Sm.h=360*t-100,Sm.s=1.5-1.5*e,Sm.l=.8-.9*e,Sm+""}function Am(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}const Rm=Am(bm("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var Pm=Am(bm("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Im=Am(bm("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Lm=Am(bm("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Om(t){var e=0,n=1,r=!1;function i(i){var a=(i-e)/(n-e);return t(r?Math.max(0,Math.min(1,a)):a)}return i.domain=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.clamp=function(t){return arguments.length?(r=!!t,i):r},i.interpolator=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return Om(t).domain([e,n]).clamp(r)},tv(i)}function Dm(t){return function(){return t}}var zm=Math.abs,Um=Math.atan2,Fm=Math.cos,jm=Math.max,qm=Math.min,Bm=Math.sin,Qm=Math.sqrt,Wm=1e-12,Ym=Math.PI,Hm=Ym/2,Vm=2*Ym;function $m(t){return t>=1?Hm:t<=-1?-Hm:Math.asin(t)}function Xm(t){return t.innerRadius}function Gm(t){return t.outerRadius}function Km(t){return t.startAngle}function Zm(t){return t.endAngle}function Jm(t){return t&&t.padAngle}function t_(t,e,n,r,i,a,o){var u=t-n,c=e-r,l=(o?a:-a)/Qm(u*u+c*c),s=l*c,f=-l*u,h=t+s,d=e+f,p=n+s,v=r+f,g=(h+p)/2,y=(d+v)/2,m=p-h,_=v-d,b=m*m+_*_,x=i-a,w=h*v-p*d,E=(_<0?-1:1)*Qm(jm(0,x*x*b-w*w)),k=(w*_-m*E)/b,T=(-w*m-_*E)/b,M=(w*_+m*E)/b,N=(-w*m+_*E)/b,S=k-g,C=T-y,A=M-g,R=N-y;return S*S+C*C>A*A+R*R&&(k=M,T=N),{cx:k,cy:T,x01:-s,y01:-f,x11:k*(i/x-1),y11:T*(i/x-1)}}function e_(){var t=Xm,e=Gm,n=Dm(0),r=null,i=Km,a=Zm,o=Jm,u=null;function c(){var c,l,s=+t.apply(this,arguments),f=+e.apply(this,arguments),h=i.apply(this,arguments)-Hm,d=a.apply(this,arguments)-Hm,p=zm(d-h),v=d>h;if(u||(u=c=Ro()),fWm)if(p>Vm-Wm)u.moveTo(f*Fm(h),f*Bm(h)),u.arc(0,0,f,h,d,!v),s>Wm&&(u.moveTo(s*Fm(d),s*Bm(d)),u.arc(0,0,s,d,h,v));else{var g,y,m=h,_=d,b=h,x=d,w=p,E=p,k=o.apply(this,arguments)/2,T=k>Wm&&(r?+r.apply(this,arguments):Qm(s*s+f*f)),M=qm(zm(f-s)/2,+n.apply(this,arguments)),N=M,S=M;if(T>Wm){var C=$m(T/s*Bm(k)),A=$m(T/f*Bm(k));(w-=2*C)>Wm?(b+=C*=v?1:-1,x-=C):(w=0,b=x=(h+d)/2),(E-=2*A)>Wm?(m+=A*=v?1:-1,_-=A):(E=0,m=_=(h+d)/2)}var R=f*Fm(m),P=f*Bm(m),I=s*Fm(x),L=s*Bm(x);if(M>Wm){var O=f*Fm(_),D=f*Bm(_),z=s*Fm(b),U=s*Bm(b);if(pWm?function(t,e,n,r,i,a,o,u){var c=n-t,l=r-e,s=o-i,f=u-a,h=(s*(e-a)-f*(t-i))/(f*c-s*l);return[t+h*c,e+h*l]}(R,P,z,U,O,D,I,L):[I,L],j=R-F[0],q=P-F[1],B=O-F[0],Q=D-F[1],W=1/Bm(function(t){return t>1?0:t<-1?Ym:Math.acos(t)}((j*B+q*Q)/(Qm(j*j+q*q)*Qm(B*B+Q*Q)))/2),Y=Qm(F[0]*F[0]+F[1]*F[1]);N=qm(M,(s-Y)/(W-1)),S=qm(M,(f-Y)/(W+1))}}E>Wm?S>Wm?(g=t_(z,U,R,P,f,S,v),y=t_(O,D,I,L,f,S,v),u.moveTo(g.cx+g.x01,g.cy+g.y01),SWm&&w>Wm?N>Wm?(g=t_(I,L,O,D,s,-N,v),y=t_(R,P,z,U,s,-N,v),u.lineTo(g.cx+g.x01,g.cy+g.y01),N=s;--f)u.point(g[f],y[f]);u.lineEnd(),u.areaEnd()}v&&(g[l]=+t(h,l,c),y[l]=+n(h,l,c),u.point(e?+e(h,l,c):g[l],r?+r(h,l,c):y[l]))}if(d)return u=null,d+""||null}function l(){return o_().defined(i).curve(o).context(a)}return c.x=function(n){return arguments.length?(t="function"==typeof n?n:Dm(+n),e=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:Dm(+e),c):t},c.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Dm(+t),c):e},c.y=function(t){return arguments.length?(n="function"==typeof t?t:Dm(+t),r=null,c):n},c.y0=function(t){return arguments.length?(n="function"==typeof t?t:Dm(+t),c):n},c.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Dm(+t),c):r},c.lineX0=c.lineY0=function(){return l().x(t).y(n)},c.lineY1=function(){return l().x(t).y(r)},c.lineX1=function(){return l().x(e).y(n)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:Dm(!!t),c):i},c.curve=function(t){return arguments.length?(o=t,null!=a&&(u=o(a)),c):o},c.context=function(t){return arguments.length?(null==t?a=u=null:u=o(a=t),c):a},c}function c_(t,e){return et?1:e>=t?0:NaN}function l_(t){return t}function s_(){var t=l_,e=c_,n=null,r=Dm(0),i=Dm(Vm),a=Dm(0);function o(o){var u,c,l,s,f,h=o.length,d=0,p=new Array(h),v=new Array(h),g=+r.apply(this,arguments),y=Math.min(Vm,Math.max(-Vm,i.apply(this,arguments)-g)),m=Math.min(Math.abs(y)/h,a.apply(this,arguments)),_=m*(y<0?-1:1);for(u=0;u0&&(d+=f);for(null!=e?p.sort((function(t,n){return e(v[t],v[n])})):null!=n&&p.sort((function(t,e){return n(o[t],o[e])})),u=0,l=d?(y-h*_)/d:0;u0?f*l:0)+_,v[c]={data:o[c],index:u,value:f,startAngle:g,endAngle:s,padAngle:m};return v}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:Dm(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,n=null,o):e},o.sort=function(t){return arguments.length?(n=t,e=null,o):n},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Dm(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Dm(+t),o):i},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:Dm(+t),o):a},o}n_.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 f_=d_(r_);function h_(t){this._curve=t}function d_(t){function e(e){return new h_(t(e))}return e._curve=t,e}function p_(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(d_(t)):e()._curve},t}function v_(){return p_(o_().curve(f_))}function g_(){var t=u_().curve(f_),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,a=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 p_(n())},delete t.lineX0,t.lineEndAngle=function(){return p_(r())},delete t.lineX1,t.lineInnerRadius=function(){return p_(i())},delete t.lineY0,t.lineOuterRadius=function(){return p_(a())},delete t.lineY1,t.curve=function(t){return arguments.length?e(d_(t)):e()._curve},t}function y_(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}h_.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 m_=Array.prototype.slice;function __(t){return t.source}function b_(t){return t.target}function x_(t){var e=__,n=b_,r=i_,i=a_,a=null;function o(){var o,u=m_.call(arguments),c=e.apply(this,u),l=n.apply(this,u);if(a||(a=o=Ro()),t(a,+r.apply(this,(u[0]=c,u)),+i.apply(this,u),+r.apply(this,(u[0]=l,u)),+i.apply(this,u)),o)return a=null,o+""||null}return o.source=function(t){return arguments.length?(e=t,o):e},o.target=function(t){return arguments.length?(n=t,o):n},o.x=function(t){return arguments.length?(r="function"==typeof t?t:Dm(+t),o):r},o.y=function(t){return arguments.length?(i="function"==typeof t?t:Dm(+t),o):i},o.context=function(t){return arguments.length?(a=null==t?null:t,o):a},o}function w_(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function E_(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function k_(t,e,n,r,i){var a=y_(e,n),o=y_(e,n=(n+i)/2),u=y_(r,n),c=y_(r,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(o[0],o[1],u[0],u[1],c[0],c[1])}function T_(){return x_(w_)}function M_(){return x_(E_)}function N_(){var t=x_(k_);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const S_={draw:function(t,e){var n=Math.sqrt(e/Ym);t.moveTo(n,0),t.arc(0,0,n,0,Vm)}},C_={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}};var A_=Math.sqrt(1/3),R_=2*A_;const P_={draw:function(t,e){var n=Math.sqrt(e/R_),r=n*A_;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}};var I_=Math.sin(Ym/10)/Math.sin(7*Ym/10),L_=Math.sin(Vm/10)*I_,O_=-Math.cos(Vm/10)*I_;const D_={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=L_*n,i=O_*n;t.moveTo(0,-n),t.lineTo(r,i);for(var a=1;a<5;++a){var o=Vm*a/5,u=Math.cos(o),c=Math.sin(o);t.lineTo(c*n,-u*n),t.lineTo(u*r-c*i,c*r+u*i)}t.closePath()}},z_={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}};var U_=Math.sqrt(3);const F_={draw:function(t,e){var n=-Math.sqrt(e/(3*U_));t.moveTo(0,2*n),t.lineTo(-U_*n,-n),t.lineTo(U_*n,-n),t.closePath()}};var j_=-.5,q_=Math.sqrt(3)/2,B_=1/Math.sqrt(12),Q_=3*(B_/2+1);const W_={draw:function(t,e){var n=Math.sqrt(e/Q_),r=n/2,i=n*B_,a=r,o=n*B_+n,u=-a,c=o;t.moveTo(r,i),t.lineTo(a,o),t.lineTo(u,c),t.lineTo(j_*r-q_*i,q_*r+j_*i),t.lineTo(j_*a-q_*o,q_*a+j_*o),t.lineTo(j_*u-q_*c,q_*u+j_*c),t.lineTo(j_*r+q_*i,j_*i-q_*r),t.lineTo(j_*a+q_*o,j_*o-q_*a),t.lineTo(j_*u+q_*c,j_*c-q_*u),t.closePath()}};var Y_=[S_,C_,P_,z_,D_,F_,W_];function H_(){var t=Dm(S_),e=Dm(64),n=null;function r(){var r;if(n||(n=r=Ro()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(e){return arguments.length?(t="function"==typeof e?e:Dm(e),r):t},r.size=function(t){return arguments.length?(e="function"==typeof t?t:Dm(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r}function V_(){}function $_(t,e,n){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+n)/6)}function X_(t){this._context=t}function G_(t){return new X_(t)}function K_(t){this._context=t}function Z_(t){return new K_(t)}function J_(t){this._context=t}function tb(t){return new J_(t)}function eb(t,e){this._basis=new X_(t),this._beta=e}X_.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:$_(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:$_(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},K_.prototype={areaStart:V_,areaEnd:V_,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:$_(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},J_.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 n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:$_(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},eb.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],a=e[0],o=t[n]-i,u=e[n]-a,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*o),this._beta*e[c]+(1-this._beta)*(a+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const nb=function t(e){function n(t){return 1===e?new X_(t):new eb(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function rb(t,e,n){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-n),t._x2,t._y2)}function ib(t,e){this._context=t,this._k=(1-e)/6}ib.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:rb(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:rb(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 ab=function t(e){function n(t){return new ib(t,e)}return n.tension=function(e){return t(+e)},n}(0);function ob(t,e){this._context=t,this._k=(1-e)/6}ob.prototype={areaStart:V_,areaEnd:V_,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:rb(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 ub=function t(e){function n(t){return new ob(t,e)}return n.tension=function(e){return t(+e)},n}(0);function cb(t,e){this._context=t,this._k=(1-e)/6}cb.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:rb(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 lb=function t(e){function n(t){return new cb(t,e)}return n.tension=function(e){return t(+e)},n}(0);function sb(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>Wm){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>Wm){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,s=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/s,o=(o*l+t._y1*t._l23_2a-n*t._l12_2a)/s}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function fb(t,e){this._context=t,this._alpha=e}fb.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 n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:sb(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 hb=function t(e){function n(t){return e?new fb(t,e):new ib(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function db(t,e){this._context=t,this._alpha=e}db.prototype={areaStart:V_,areaEnd:V_,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 n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:sb(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 pb=function t(e){function n(t){return e?new db(t,e):new ob(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function vb(t,e){this._context=t,this._alpha=e}vb.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 n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:sb(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 gb=function t(e){function n(t){return e?new vb(t,e):new cb(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function yb(t){this._context=t}function mb(t){return new yb(t)}function _b(t){return t<0?-1:1}function bb(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),u=(a*i+o*r)/(r+i);return(_b(a)+_b(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function xb(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function wb(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,u=(a-r)/3;t._context.bezierCurveTo(r+u,i+u*e,a-u,o-u*n,a,o)}function Eb(t){this._context=t}function kb(t){this._context=new Tb(t)}function Tb(t){this._context=t}function Mb(t){return new Eb(t)}function Nb(t){return new kb(t)}function Sb(t){this._context=t}function Cb(t){var e,n,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e1)for(var n,r,i,a=1,o=t[e[0]],u=o.length;a=0;)n[e]=e;return n}function zb(t,e){return t[e]}function Ub(){var t=Dm([]),e=Db,n=Ob,r=zb;function i(i){var a,o,u=t.apply(this,arguments),c=i.length,l=u.length,s=new Array(l);for(a=0;a0){for(var n,r,i,a=0,o=t[0].length;a1)for(var n,r,i,a,o,u,c=0,l=t[e[0]].length;c=0?(r[0]=a,r[1]=a+=i):i<0?(r[1]=o,r[0]=o+=i):r[0]=a}function qb(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],a=i.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,a=0,o=1;o=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 n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},Kb.prototype={constructor:Kb,insert:function(t,e){var n,r,i;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;n=t}else this._?(t=ex(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(Jb(this,n),n=(t=n).U),n.C=!1,r.C=!0,tx(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(tx(this,n),n=(t=n).U),n.C=!1,r.C=!0,Jb(this,r)),n=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 e,n,r,i=t.U,a=t.L,o=t.R;if(n=a?o?ex(o):a:o,i?i.L===t?i.L=n:i.R=n:this._=n,a&&o?(r=n.C,n.C=t.C,n.L=a,a.U=n,n!==o?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=o,o.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,Jb(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,tx(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,Jb(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,tx(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,Jb(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,tx(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};const nx=Kb;function rx(t,e,n,r){var i=[null,null],a=Nx.push(i)-1;return i.left=t,i.right=e,n&&ax(i,t,e,n),r&&ax(i,e,t,r),Tx[t.index].halfedges.push(a),Tx[e.index].halfedges.push(a),i}function ix(t,e,n){var r=[e,n];return r.left=t,r}function ax(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function ox(t,e,n,r,i){var a,o=t[0],u=t[1],c=o[0],l=o[1],s=0,f=1,h=u[0]-c,d=u[1]-l;if(a=e-c,h||!(a>0)){if(a/=h,h<0){if(a0){if(a>f)return;a>s&&(s=a)}if(a=r-c,h||!(a<0)){if(a/=h,h<0){if(a>f)return;a>s&&(s=a)}else if(h>0){if(a0)){if(a/=d,d<0){if(a0){if(a>f)return;a>s&&(s=a)}if(a=i-l,d||!(a<0)){if(a/=d,d<0){if(a>f)return;a>s&&(s=a)}else if(d>0){if(a0||f<1)||(s>0&&(t[0]=[c+s*h,l+s*d]),f<1&&(t[1]=[c+f*h,l+f*d]),!0)}}}}}function ux(t,e,n,r,i){var a=t[1];if(a)return!0;var o,u,c=t[0],l=t.left,s=t.right,f=l[0],h=l[1],d=s[0],p=s[1],v=(f+d)/2,g=(h+p)/2;if(p===h){if(v=r)return;if(f>d){if(c){if(c[1]>=i)return}else c=[v,n];a=[v,i]}else{if(c){if(c[1]1)if(f>d){if(c){if(c[1]>=i)return}else c=[(n-u)/o,n];a=[(i-u)/o,i]}else{if(c){if(c[1]=r)return}else c=[e,o*e+u];a=[r,o*r+u]}else{if(c){if(c[0]=-Cx)){var d=c*c+l*l,p=s*s+f*f,v=(f*d-l*p)/h,g=(c*p-s*d)/h,y=hx.pop()||new dx;y.arc=t,y.site=i,y.x=v+o,y.y=(y.cy=g+u)+Math.sqrt(v*v+g*g),t.circle=y;for(var m=null,_=Mx._;_;)if(y.y<_.y||y.y===_.y&&y.x<=_.x){if(!_.L){m=_.P;break}_=_.L}else{if(!_.R){m=_;break}_=_.R}Mx.insert(m,y),m||(fx=y)}}}}function vx(t){var e=t.circle;e&&(e.P||(fx=e.N),Mx.remove(e),hx.push(e),Zb(e),t.circle=null)}var gx=[];function yx(){Zb(this),this.edge=this.site=this.circle=null}function mx(t){var e=gx.pop()||new yx;return e.site=t,e}function _x(t){vx(t),kx.remove(t),gx.push(t),Zb(t)}function bx(t){var e=t.circle,n=e.x,r=e.cy,i=[n,r],a=t.P,o=t.N,u=[t];_x(t);for(var c=a;c.circle&&Math.abs(n-c.circle.x)Sx)u=u.L;else{if(!((i=a-Ex(u,o))>Sx)){r>-Sx?(e=u.P,n=u):i>-Sx?(e=u,n=u.N):e=n=u;break}if(!u.R){e=u;break}u=u.R}!function(t){Tx[t.index]={site:t,halfedges:[]}}(t);var c=mx(t);if(kx.insert(e,c),e||n){if(e===n)return vx(e),n=mx(e.site),kx.insert(c,n),c.edge=n.edge=rx(e.site,c.site),px(e),void px(n);if(n){vx(e),vx(n);var l=e.site,s=l[0],f=l[1],h=t[0]-s,d=t[1]-f,p=n.site,v=p[0]-s,g=p[1]-f,y=2*(h*g-d*v),m=h*h+d*d,_=v*v+g*g,b=[(g*m-d*_)/y+s,(h*_-v*m)/y+f];ax(n.edge,l,p,b),c.edge=rx(l,t,null,b),n.edge=rx(t,p,null,b),px(e),px(n)}else c.edge=rx(e.site,c.site)}}function wx(t,e){var n=t.site,r=n[0],i=n[1],a=i-e;if(!a)return r;var o=t.P;if(!o)return-1/0;var u=(n=o.site)[0],c=n[1],l=c-e;if(!l)return u;var s=u-r,f=1/a-1/l,h=s/l;return f?(-h+Math.sqrt(h*h-2*f*(s*s/(-2*l)-c+l/2+i-a/2)))/f+r:(r+u)/2}function Ex(t,e){var n=t.N;if(n)return wx(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var kx,Tx,Mx,Nx,Sx=1e-6,Cx=1e-12;function Ax(t,e,n){return(t[0]-n[0])*(e[1]-t[1])-(t[0]-e[0])*(n[1]-t[1])}function Rx(t,e){return e[1]-t[1]||e[0]-t[0]}function Px(t,e){var n,r,i,a=t.sort(Rx).pop();for(Nx=[],Tx=new Array(t.length),kx=new nx,Mx=new nx;;)if(i=fx,a&&(!i||a[1]Sx||Math.abs(i[0][1]-i[1][1])>Sx)||delete Nx[a]}(o,u,c,l),function(t,e,n,r){var i,a,o,u,c,l,s,f,h,d,p,v,g=Tx.length,y=!0;for(i=0;iSx||Math.abs(v-h)>Sx)&&(c.splice(u,0,Nx.push(ix(o,d,Math.abs(p-t)Sx?[t,Math.abs(f-t)Sx?[Math.abs(h-r)Sx?[n,Math.abs(f-n)Sx?[Math.abs(h-e)=u)return null;var c=t-i.site[0],l=e-i.site[1],s=c*c+l*l;do{i=a.cells[r=o],o=null,i.halfedges.forEach((function(n){var r=a.edges[n],u=r.left;if(u!==i.site&&u||(u=r.right)){var c=t-u[0],l=e-u[1],f=c*c+l*l;fr?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function Vx(){var t,e,n=qx,r=Bx,i=Hx,a=Wx,o=Yx,u=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],l=250,s=Dr,f=[],h=vt("start","zoom","end"),d=500,p=150,v=0;function g(t){t.property("__zoom",Qx).on("wheel.zoom",E).on("mousedown.zoom",k).on("dblclick.zoom",T).filter(o).on("touchstart.zoom",M).on("touchmove.zoom",N).on("touchend.zoom touchcancel.zoom",S).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(t,e){return(e=Math.max(u[0],Math.min(u[1],e)))===t.k?t:new Dx(e,t.x,t.y)}function m(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new Dx(t.k,r,i)}function _(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function b(t,e,n){t.on("start.zoom",(function(){x(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){x(this,arguments).end()})).tween("zoom",(function(){var t=this,i=arguments,a=x(t,i),o=r.apply(t,i),u=n||_(o),c=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),l=t.__zoom,f="function"==typeof e?e.apply(t,i):e,h=s(l.invert(u).concat(c/l.k),f.invert(u).concat(c/f.k));return function(t){if(1===t)t=f;else{var e=h(t),n=c/e[2];t=new Dx(n,u[0]-e[0]*n,u[1]-e[1]*n)}a.zoom(null,t)}}))}function x(t,e){for(var n,r=0,i=f.length;rv}t.zoom("mouse",i(m(t.that.__zoom,t.mouse[0]=ze(t.that),t.mouse[1]),t.extent,c))}),!0).on("mouseup.zoom",(function(){r.on("mousemove.zoom mouseup.zoom",null),We(ye.view,t.moved),jx(),t.end()}),!0),a=ze(this),o=ye.clientX,u=ye.clientY;Qe(ye.view),Fx(),t.mouse=[a,this.__zoom.invert(a)],Si(this),t.start()}}function T(){if(n.apply(this,arguments)){var t=this.__zoom,e=ze(this),a=t.invert(e),o=t.k*(ye.shiftKey?.5:2),u=i(m(y(t,o),e,a),r.apply(this,arguments),c);jx(),l>0?Ae(this).transition().duration(l).call(b,u,e):Ae(this).call(g.transform,u)}}function M(){if(n.apply(this,arguments)){var e,r,i,a,o=x(this,arguments),u=ye.changedTouches,c=u.length;for(Fx(),r=0;r{t.exports={graphlib:n(8191),layout:n(8202),debug:n(8909),util:{time:n(3988).time,notime:n(3988).notime},version:n(7038)}},6822:(t,e,n)=>{"use strict";var r=n(6857),i=n(2031);t.exports={run:function(t){var e="greedy"===t.graph().acyclicer?i(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],n={},i={};function a(o){r.has(i,o)||(i[o]=!0,n[o]=!0,r.forEach(t.outEdges(o),(function(t){r.has(n,t.w)?e.push(t):a(t.w)})),delete n[o])}return r.forEach(t.nodes(),a),e}(t);r.forEach(e,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r.uniqueId("rev"))}))},undo:function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}}))}}},135:(t,e,n)=>{var r=n(6857),i=n(3988);function a(t,e,n,r,a,o){var u={width:0,height:0,rank:o,borderType:e},c=a[e][o-1],l=i.addDummyNode(t,"border",u,n);a[e][o]=l,t.setParent(l,r),c&&t.setEdge(c,l,{weight:1})}t.exports=function(t){r.forEach(t.children(),(function e(n){var i=t.children(n),o=t.node(n);if(i.length&&r.forEach(i,e),r.has(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var u=o.minRank,c=o.maxRank+1;u{"use strict";var r=n(6857);function i(t){r.forEach(t.nodes(),(function(e){a(t.node(e))})),r.forEach(t.edges(),(function(e){a(t.edge(e))}))}function a(t){var e=t.width;t.width=t.height,t.height=e}function o(t){t.y=-t.y}function u(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||i(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){r.forEach(t.nodes(),(function(e){o(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,o),r.has(n,"y")&&o(n)}))}(t);"lr"!==e&&"rl"!==e||(!function(t){r.forEach(t.nodes(),(function(e){u(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,u),r.has(n,"x")&&u(n)}))}(t),i(t))}}},9859:t=>{function e(){var t={};t._next=t._prev=t,this._sentinel=t}function n(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function r(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=e,e.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return n(e),e},e.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&n(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},e.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,r)),n=n._prev;return"["+t.join(", ")+"]"}},8909:(t,e,n)=>{var r=n(6857),i=n(3988),a=n(8191).Graph;t.exports={debugOrdering:function(t){var e=i.buildLayerMatrix(t),n=new a({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),(function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)})),r.forEach(t.edges(),(function(t){n.setEdge(t.v,t.w,{},t.name)})),r.forEach(e,(function(t,e){var i="layer"+e;n.setNode(i,{rank:"same"}),r.reduce(t,(function(t,e){return n.setEdge(t,e,{style:"invis"}),e}))})),n}}},8191:(t,e,n)=>{var r;try{r=n(8362)}catch(t){}r||(r=window.graphlib),t.exports=r},2031:(t,e,n)=>{var r=n(6857),i=n(8191).Graph,a=n(9859);t.exports=function(t,e){if(t.nodeCount()<=1)return[];var n=function(t,e){var n=new i,o=0,u=0;r.forEach(t.nodes(),(function(t){n.setNode(t,{v:t,in:0,out:0})})),r.forEach(t.edges(),(function(t){var r=n.edge(t.v,t.w)||0,i=e(t),a=r+i;n.setEdge(t.v,t.w,a),u=Math.max(u,n.node(t.v).out+=i),o=Math.max(o,n.node(t.w).in+=i)}));var l=r.range(u+o+3).map((function(){return new a})),s=o+1;return r.forEach(n.nodes(),(function(t){c(l,s,n.node(t))})),{graph:n,buckets:l,zeroIdx:s}}(t,e||o),l=function(t,e,n){var r,i=[],a=e[e.length-1],o=e[0];for(;t.nodeCount();){for(;r=o.dequeue();)u(t,e,n,r);for(;r=a.dequeue();)u(t,e,n,r);if(t.nodeCount())for(var c=e.length-2;c>0;--c)if(r=e[c].dequeue()){i=i.concat(u(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(l,(function(e){return t.outEdges(e.v,e.w)})),!0)};var o=r.constant(1);function u(t,e,n,i,a){var o=a?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),u=t.node(r.v);a&&o.push({v:r.v,w:r.w}),u.out-=i,c(e,n,u)})),r.forEach(t.outEdges(i.v),(function(r){var i=t.edge(r),a=r.w,o=t.node(a);o.in-=i,c(e,n,o)})),t.removeNode(i.v),o}function c(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},8202:(t,e,n)=>{"use strict";var r=n(6857),i=n(6822),a=n(8209),o=n(9361),u=n(3988).normalizeRanks,c=n(2948),l=n(3988).removeEmptyRanks,s=n(6353),f=n(135),h=n(4850),d=n(1453),p=n(3776),v=n(3988),g=n(8191).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?v.time:v.notime;n("layout",(function(){var e=n("  buildLayoutGraph",(function(){return function(t){var e=new g({multigraph:!0,compound:!0}),n=M(t.graph());return e.setGraph(r.merge({},m,T(n,y),r.pick(n,_))),r.forEach(t.nodes(),(function(n){var i=M(t.node(n));e.setNode(n,r.defaults(T(i,b),x)),e.setParent(n,t.parent(n))})),r.forEach(t.edges(),(function(n){var i=M(t.edge(n));e.setEdge(n,r.merge({},E,T(i,w),r.pick(i,k)))})),e}(t)}));n("  runLayout",(function(){!function(t,e){e("    makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),(function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(t)})),e("    removeSelfEdges",(function(){!function(t){r.forEach(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e("    acyclic",(function(){i.run(t)})),e("    nestingGraph.run",(function(){s.run(t)})),e("    rank",(function(){o(v.asNonCompoundGraph(t))})),e("    injectEdgeLabelProxies",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e};v.addDummyNode(t,"edge-proxy",i,"_ep")}}))}(t)})),e("    removeEmptyRanks",(function(){l(t)})),e("    nestingGraph.cleanup",(function(){s.cleanup(t)})),e("    normalizeRanks",(function(){u(t)})),e("    assignRankMinMax",(function(){!function(t){var e=0;r.forEach(t.nodes(),(function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))})),t.graph().maxRank=e}(t)})),e("    removeEdgeLabelProxies",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}(t)})),e("    normalize.run",(function(){a.run(t)})),e("    parentDummyChains",(function(){c(t)})),e("    addBorderSegments",(function(){f(t)})),e("    order",(function(){d(t)})),e("    insertSelfEdges",(function(){!function(t){var e=v.buildLayerMatrix(t);r.forEach(e,(function(e){var n=0;r.forEach(e,(function(e,i){var a=t.node(e);a.order=i+n,r.forEach(a.selfEdges,(function(e){v.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:a.rank,order:i+ ++n,e:e.e,label:e.label},"_se")})),delete a.selfEdges}))}))}(t)})),e("    adjustCoordinateSystem",(function(){h.adjust(t)})),e("    position",(function(){p(t)})),e("    positionSelfEdges",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,u=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*o/3,y:a-u},{x:i+5*o/6,y:a-u},{x:i+o,y:a},{x:i+5*o/6,y:a+u},{x:i+2*o/3,y:a+u}],n.label.x=n.x,n.label.y=n.y}}))}(t)})),e("    removeBorderNodes",(function(){!function(t){r.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),a=t.node(n.borderBottom),o=t.node(r.last(n.borderLeft)),u=t.node(r.last(n.borderRight));n.width=Math.abs(u.x-o.x),n.height=Math.abs(a.y-i.y),n.x=o.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e("    normalize.undo",(function(){a.undo(t)})),e("    fixupEdgeLabelCoords",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(t)})),e("    undoCoordinateSystem",(function(){h.undo(t)})),e("    translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,a=0,o=t.graph(),u=o.marginx||0,c=o.marginy||0;function l(t){var r=t.x,o=t.y,u=t.width,c=t.height;e=Math.min(e,r-u/2),n=Math.max(n,r+u/2),i=Math.min(i,o-c/2),a=Math.max(a,o+c/2)}r.forEach(t.nodes(),(function(e){l(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.has(n,"x")&&l(n)})),e-=u,i-=c,r.forEach(t.nodes(),(function(n){var r=t.node(n);r.x-=e,r.y-=i})),r.forEach(t.edges(),(function(n){var a=t.edge(n);r.forEach(a.points,(function(t){t.x-=e,t.y-=i})),r.has(a,"x")&&(a.x-=e),r.has(a,"y")&&(a.y-=i)})),o.width=n-e+u,o.height=a-i+c}(t)})),e("    assignNodeIntersects",(function(){!function(t){r.forEach(t.edges(),(function(e){var n,r,i=t.edge(e),a=t.node(e.v),o=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=o,r=a),i.points.unshift(v.intersectRect(a,n)),i.points.push(v.intersectRect(o,r))}))}(t)})),e("    reversePoints",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}(t)})),e("    acyclic.undo",(function(){i.undo(t)}))}(e,n)})),n("  updateInputGraph",(function(){!function(t,e){r.forEach(t.nodes(),(function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))})),r.forEach(t.edges(),(function(n){var i=t.edge(n),a=e.edge(n);i.points=a.points,r.has(a,"x")&&(i.x=a.x,i.y=a.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};var y=["nodesep","edgesep","ranksep","marginx","marginy"],m={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],b=["width","height"],x={width:0,height:0},w=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["labelpos"];function T(t,e){return r.mapValues(r.pick(t,e),Number)}function M(t){var e={};return r.forEach(t,(function(t,n){e[n.toLowerCase()]=t})),e}},6857:(t,e,n)=>{var r;try{r=n(2543)}catch(t){}r||(r=window._),t.exports=r},6353:(t,e,n)=>{var r=n(6857),i=n(3988);function a(t,e,n,o,u,c,l){var s=t.children(l);if(s.length){var f=i.addBorderNode(t,"_bt"),h=i.addBorderNode(t,"_bb"),d=t.node(l);t.setParent(f,l),d.borderTop=f,t.setParent(h,l),d.borderBottom=h,r.forEach(s,(function(r){a(t,e,n,o,u,c,r);var i=t.node(r),s=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?o:2*o,v=s!==d?1:u-c[l]+1;t.setEdge(f,s,{weight:p,minlen:v,nestingEdge:!0}),t.setEdge(d,h,{weight:p,minlen:v,nestingEdge:!0})})),t.parent(l)||t.setEdge(e,f,{weight:0,minlen:u+c[l]})}else l!==e&&t.setEdge(e,l,{weight:0,minlen:n})}t.exports={run:function(t){var e=i.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};function n(i,a){var o=t.children(i);o&&o.length&&r.forEach(o,(function(t){n(t,a+1)})),e[i]=a}return r.forEach(t.children(),(function(t){n(t,1)})),e}(t),o=r.max(r.values(n))-1,u=2*o+1;t.graph().nestingRoot=e,r.forEach(t.edges(),(function(e){t.edge(e).minlen*=u}));var c=function(t){return r.reduce(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}(t)+1;r.forEach(t.children(),(function(r){a(t,e,u,c,o,n,r)})),t.graph().nodeRankFactor=u},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),(function(e){t.edge(e).nestingEdge&&t.removeEdge(e)}))}}},8209:(t,e,n)=>{"use strict";var r=n(6857),i=n(3988);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(e){!function(t,e){var n,r,a,o=e.v,u=t.node(o).rank,c=e.w,l=t.node(c).rank,s=e.name,f=t.edge(e),h=f.labelRank;if(l===u+1)return;for(t.removeEdge(e),a=0,++u;u{var r=n(6857);t.exports=function(t,e,n){var i,a={};r.forEach(n,(function(n){for(var r,o,u=t.parent(n);u;){if((r=t.parent(u))?(o=a[r],a[r]=u):(o=i,i=u),o&&o!==u)return void e.setEdge(o,u);u=r}}))}},3860:(t,e,n)=>{var r=n(6857);t.exports=function(t,e){return r.map(e,(function(e){var n=t.inEdges(e);if(n.length){var i=r.reduce(n,(function(e,n){var r=t.edge(n),i=t.node(n.v);return{sum:e.sum+r.weight*i.order,weight:e.weight+r.weight}}),{sum:0,weight:0});return{v:e,barycenter:i.sum/i.weight,weight:i.weight}}return{v:e}}))}},7860:(t,e,n)=>{var r=n(6857),i=n(8191).Graph;t.exports=function(t,e,n){var a=function(t){var e;for(;t.hasNode(e=r.uniqueId("_root")););return e}(t),o=new i({compound:!0}).setGraph({root:a}).setDefaultNodeLabel((function(e){return t.node(e)}));return r.forEach(t.nodes(),(function(i){var u=t.node(i),c=t.parent(i);(u.rank===e||u.minRank<=e&&e<=u.maxRank)&&(o.setNode(i),o.setParent(i,c||a),r.forEach(t[n](i),(function(e){var n=e.v===i?e.w:e.v,a=o.edge(n,i),u=r.isUndefined(a)?0:a.weight;o.setEdge(n,i,{weight:t.edge(e).weight+u})})),r.has(u,"minRank")&&o.setNode(i,{borderLeft:u.borderLeft[e],borderRight:u.borderRight[e]}))})),o}},6639:(t,e,n)=>{"use strict";var r=n(6857);function i(t,e,n){for(var i=r.zipObject(n,r.map(n,(function(t,e){return e}))),a=r.flatten(r.map(e,(function(e){return r.chain(t.outEdges(e)).map((function(e){return{pos:i[e.w],weight:t.edge(e).weight}})).sortBy("pos").value()})),!0),o=1;o0;)e%2&&(n+=c[e+1]),c[e=e-1>>1]+=t.weight;l+=t.weight*n}))),l}t.exports=function(t,e){for(var n=0,r=1;r{"use strict";var r=n(6857),i=n(8918),a=n(6639),o=n(4520),u=n(7860),c=n(4384),l=n(8191).Graph,s=n(3988);function f(t,e,n){return r.map(e,(function(e){return u(t,e,n)}))}function h(t,e){var n=new l;r.forEach(t,(function(t){var i=t.graph().root,a=o(t,i,n,e);r.forEach(a.vs,(function(e,n){t.node(e).order=n})),c(t,n,a.vs)}))}function d(t,e){r.forEach(e,(function(e){r.forEach(e,(function(e,n){t.node(e).order=n}))}))}t.exports=function(t){var e=s.maxRank(t),n=f(t,r.range(1,e+1),"inEdges"),o=f(t,r.range(e-1,-1,-1),"outEdges"),u=i(t);d(t,u);for(var c,l=Number.POSITIVE_INFINITY,p=0,v=0;v<4;++p,++v){h(p%2?n:o,p%4>=2),u=s.buildLayerMatrix(t);var g=a(t,u);g{"use strict";var r=n(6857);t.exports=function(t){var e={},n=r.filter(t.nodes(),(function(e){return!t.children(e).length})),i=r.max(r.map(n,(function(e){return t.node(e).rank}))),a=r.map(r.range(i+1),(function(){return[]}));var o=r.sortBy(n,(function(e){return t.node(e).rank}));return r.forEach(o,(function n(i){if(r.has(e,i))return;e[i]=!0;var o=t.node(i);a[o.rank].push(i),r.forEach(t.successors(i),n)})),a}},4959:(t,e,n)=>{"use strict";var r=n(6857);t.exports=function(t,e){var n={};return r.forEach(t,(function(t,e){var i=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};r.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)})),r.forEach(e.edges(),(function(t){var e=n[t.v],i=n[t.w];r.isUndefined(e)||r.isUndefined(i)||(i.indegree++,e.out.push(n[t.w]))})),function(t){var e=[];function n(t){return function(e){e.merged||(r.isUndefined(e.barycenter)||r.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&function(t,e){var n=0,r=0;t.weight&&(n+=t.barycenter*t.weight,r+=t.weight);e.weight&&(n+=e.barycenter*e.weight,r+=e.weight);t.vs=e.vs.concat(t.vs),t.barycenter=n/r,t.weight=r,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var a=t.pop();e.push(a),r.forEach(a.in.reverse(),n(a)),r.forEach(a.out,i(a))}return r.chain(e).filter((function(t){return!t.merged})).map((function(t){return r.pick(t,["vs","i","barycenter","weight"])})).value()}(r.filter(n,(function(t){return!t.indegree})))}},4520:(t,e,n)=>{var r=n(6857),i=n(3860),a=n(4959),o=n(5169);t.exports=function t(e,n,u,c){var l=e.children(n),s=e.node(n),f=s?s.borderLeft:void 0,h=s?s.borderRight:void 0,d={};f&&(l=r.filter(l,(function(t){return t!==f&&t!==h})));var p=i(e,l);r.forEach(p,(function(n){if(e.children(n.v).length){var i=t(e,n.v,u,c);d[n.v]=i,r.has(i,"barycenter")&&(a=n,o=i,r.isUndefined(a.barycenter)?(a.barycenter=o.barycenter,a.weight=o.weight):(a.barycenter=(a.barycenter*a.weight+o.barycenter*o.weight)/(a.weight+o.weight),a.weight+=o.weight))}var a,o}));var v=a(p,u);!function(t,e){r.forEach(t,(function(t){t.vs=r.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}(v,d);var g=o(v,c);if(f&&(g.vs=r.flatten([f,g.vs,h],!0),e.predecessors(f).length)){var y=e.node(e.predecessors(f)[0]),m=e.node(e.predecessors(h)[0]);r.has(g,"barycenter")||(g.barycenter=0,g.weight=0),g.barycenter=(g.barycenter*g.weight+y.order+m.order)/(g.weight+2),g.weight+=2}return g}},5169:(t,e,n)=>{var r=n(6857),i=n(3988);function a(t,e,n){for(var i;e.length&&(i=r.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}t.exports=function(t,e){var n=i.partition(t,(function(t){return r.has(t,"barycenter")})),o=n.lhs,u=r.sortBy(n.rhs,(function(t){return-t.i})),c=[],l=0,s=0,f=0;o.sort((h=!!e,function(t,e){return t.barycentere.barycenter?1:h?e.i-t.i:t.i-e.i})),f=a(c,u,f),r.forEach(o,(function(t){f+=t.vs.length,c.push(t.vs),l+=t.barycenter*t.weight,s+=t.weight,f=a(c,u,f)}));var h;var d={vs:r.flatten(c,!0)};s&&(d.barycenter=l/s,d.weight=s);return d}},2948:(t,e,n)=>{var r=n(6857);t.exports=function(t){var e=function(t){var e={},n=0;function i(a){var o=n;r.forEach(t.children(a),i),e[a]={low:o,lim:n++}}return r.forEach(t.children(),i),e}(t);r.forEach(t.graph().dummyChains,(function(n){for(var r=t.node(n),i=r.edgeObj,a=function(t,e,n,r){var i,a,o=[],u=[],c=Math.min(e[n].low,e[r].low),l=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),o.push(i)}while(i&&(e[i].low>c||l>e[i].lim));a=i,i=r;for(;(i=t.parent(i))!==a;)u.push(i);return{path:o.concat(u.reverse()),lca:a}}(t,e,i.v,i.w),o=a.path,u=a.lca,c=0,l=o[c],s=!0;n!==i.w;){if(r=t.node(n),s){for(;(l=o[c])!==u&&t.node(l).maxRank{"use strict";var r=n(6857),i=n(8191).Graph,a=n(3988);function o(t,e){var n={};return r.reduce(e,(function(e,i){var a=0,o=0,u=e.length,l=r.last(i);return r.forEach(i,(function(e,s){var f=function(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),h=f?t.node(f).order:u;(f||e===l)&&(r.forEach(i.slice(o,s+1),(function(e){r.forEach(t.predecessors(e),(function(r){var i=t.node(r),o=i.order;!(ou)&&c(n,e,l)}))}))}return r.reduce(e,(function(e,n){var a,o=-1,u=0;return r.forEach(n,(function(r,c){if("border"===t.node(r).dummy){var l=t.predecessors(r);l.length&&(a=t.node(l[0]).order,i(n,u,c,o,a),u=c,o=a)}i(n,u,n.length,a,e.length)})),n})),n}function c(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function l(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function s(t,e,n,i){var a={},o={},u={};return r.forEach(e,(function(t){r.forEach(t,(function(t,e){a[t]=t,o[t]=t,u[t]=e}))})),r.forEach(e,(function(t){var e=-1;r.forEach(t,(function(t){var c=i(t);if(c.length){c=r.sortBy(c,(function(t){return u[t]}));for(var s=(c.length-1)/2,f=Math.floor(s),h=Math.ceil(s);f<=h;++f){var d=c[f];o[t]===t&&e{"use strict";var r=n(6857),i=n(3988),a=n(9741).positionX;t.exports=function(t){(function(t){var e=i.buildLayerMatrix(t),n=t.graph().ranksep,a=0;r.forEach(e,(function(e){var i=r.max(r.map(e,(function(e){return t.node(e).height})));r.forEach(e,(function(e){t.node(e).y=a+i/2})),a+=i+n}))})(t=i.asNonCompoundGraph(t)),r.forEach(a(t),(function(e,n){t.node(n).x=e}))}},8481:(t,e,n)=>{"use strict";var r=n(6857),i=n(8191).Graph,a=n(8073).slack;function o(t,e){return r.forEach(t.nodes(),(function n(i){r.forEach(e.nodeEdges(i),(function(r){var o=r.v,u=i===o?r.w:o;t.hasNode(u)||a(e,r)||(t.setNode(u,{}),t.setEdge(i,u,{}),n(u))}))})),t.nodeCount()}function u(t,e){return r.minBy(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return a(e,n)}))}function c(t,e,n){r.forEach(t.nodes(),(function(t){e.node(t).rank+=n}))}t.exports=function(t){var e,n,r=new i({directed:!1}),l=t.nodes()[0],s=t.nodeCount();r.setNode(l,{});for(;o(r,t){"use strict";var r=n(8073).longestPath,i=n(8481),a=n(6860);t.exports=function(t){switch(t.graph().ranker){case"network-simplex":default:u(t);break;case"tight-tree":!function(t){r(t),i(t)}(t);break;case"longest-path":o(t)}};var o=r;function u(t){a(t)}},6860:(t,e,n)=>{"use strict";var r=n(6857),i=n(8481),a=n(8073).slack,o=n(8073).longestPath,u=n(8191).alg.preorder,c=n(8191).alg.postorder,l=n(3988).simplify;function s(t){t=l(t),o(t);var e,n=i(t);for(d(n),f(n,t);e=v(n);)y(n,t,e,g(n,t,e))}function f(t,e){var n=c(t,t.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){!function(t,e,n){var r=t.node(n),i=r.parent;t.edge(n,i).cutvalue=h(t,e,n)}(t,e,n)}))}function h(t,e,n){var i=t.node(n).parent,a=!0,o=e.edge(n,i),u=0;return o||(a=!1,o=e.edge(i,n)),u=o.weight,r.forEach(e.nodeEdges(n),(function(r){var o,c,l=r.v===n,s=l?r.w:r.v;if(s!==i){var f=l===a,h=e.edge(r).weight;if(u+=f?h:-h,o=n,c=s,t.hasEdge(o,c)){var d=t.edge(n,s).cutvalue;u+=f?-d:d}}})),u}function d(t,e){arguments.length<2&&(e=t.nodes()[0]),p(t,{},1,e)}function p(t,e,n,i,a){var o=n,u=t.node(i);return e[i]=!0,r.forEach(t.neighbors(i),(function(a){r.has(e,a)||(n=p(t,e,n,a,i))})),u.low=o,u.lim=n++,a?u.parent=a:delete u.parent,n}function v(t){return r.find(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function g(t,e,n){var i=n.v,o=n.w;e.hasEdge(i,o)||(i=n.w,o=n.v);var u=t.node(i),c=t.node(o),l=u,s=!1;u.lim>c.lim&&(l=c,s=!0);var f=r.filter(e.edges(),(function(e){return s===m(t,t.node(e.v),l)&&s!==m(t,t.node(e.w),l)}));return r.minBy(f,(function(t){return a(e,t)}))}function y(t,e,n,i){var a=n.v,o=n.w;t.removeEdge(a,o),t.setEdge(i.v,i.w,{}),d(t),f(t,e),function(t,e){var n=r.find(t.nodes(),(function(t){return!e.node(t).parent})),i=u(t,n);i=i.slice(1),r.forEach(i,(function(n){var r=t.node(n).parent,i=e.edge(n,r),a=!1;i||(i=e.edge(r,n),a=!0),e.node(n).rank=e.node(r).rank+(a?i.minlen:-i.minlen)}))}(t,e)}function m(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=s,s.initLowLimValues=d,s.initCutValues=f,s.calcCutValue=h,s.leaveEdge=v,s.enterEdge=g,s.exchangeEdges=y},8073:(t,e,n)=>{"use strict";var r=n(6857);t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),(function n(i){var a=t.node(i);if(r.has(e,i))return a.rank;e[i]=!0;var o=r.minBy(r.map(t.outEdges(i),(function(e){return n(e.w)-t.edge(e).minlen})));return o!==Number.POSITIVE_INFINITY&&null!=o||(o=0),a.rank=o}))},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},3988:(t,e,n)=>{"use strict";var r=n(6857),i=n(8191).Graph;function a(t,e,n,i){var a;do{a=r.uniqueId(i)}while(t.hasNode(a));return n.dummy=e,t.setNode(a,n),a}function o(t){return r.max(r.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n})))}t.exports={addDummyNode:a,simplify:function(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),e},asNonCompoundGraph:function(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e},successorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,a=t.y,o=e.x-i,u=e.y-a,c=t.width/2,l=t.height/2;if(!o&&!u)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(u)*c>Math.abs(o)*l?(u<0&&(l=-l),n=l*o/u,r=l):(o<0&&(c=-c),n=c,r=c*u/o);return{x:i+n,y:a+r}},buildLayerMatrix:function(t){var e=r.map(r.range(o(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(n){var i=t.node(n),a=i.rank;r.isUndefined(a)||(e[a][i.order]=n)})),e},normalizeRanks:function(t){var e=r.minBy(r.map(t.nodes(),(function(e){return t.node(e).rank})));r.forEach(t.nodes(),(function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)}))},removeEmptyRanks:function(t){var e=r.minBy(r.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];r.forEach(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,a=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%a!=0?--i:i&&r.forEach(e,(function(e){t.node(e).rank+=i}))}))},addBorderNode:function(t,e,n,r){var i={width:0,height:0};arguments.length>=4&&(i.rank=n,i.order=r);return a(t,"border",i,e)},maxRank:o,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},7038:t=>{t.exports="0.8.2"},8362:(t,e,n)=>{var r=n(1166);t.exports={Graph:r.Graph,json:n(7494),alg:n(1667),version:r.version}},3619:(t,e,n)=>{var r=n(117);t.exports=function(t){var e,n={},i=[];function a(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),a),r.each(t.predecessors(i),a))}return r.each(t.nodes(),(function(t){e=[],a(t),e.length&&i.push(e)})),i}},9276:(t,e,n)=>{var r=n(117);function i(t,e,n,a,o,u){r.has(a,e)||(a[e]=!0,n||u.push(e),r.each(o(e),(function(e){i(t,e,n,a,o,u)})),n&&u.push(e))}t.exports=function(t,e,n){r.isArray(e)||(e=[e]);var a=(t.isDirected()?t.successors:t.neighbors).bind(t),o=[],u={};return r.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);i(t,e,"post"===n,u,a,o)})),o}},4919:(t,e,n)=>{var r=n(8905),i=n(117);t.exports=function(t,e,n){return i.transform(t.nodes(),(function(i,a){i[a]=r(t,a,e,n)}),{})}},8905:(t,e,n)=>{var r=n(117),i=n(1737);t.exports=function(t,e,n,r){return function(t,e,n,r){var a,o,u={},c=new i,l=function(t){var e=t.v!==a?t.v:t.w,r=u[e],i=n(t),l=o.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);l0&&(a=c.removeMin(),(o=u[a]).distance!==Number.POSITIVE_INFINITY);)r(a).forEach(l);return u}(t,String(e),n||a,r||function(e){return t.outEdges(e)})};var a=r.constant(1)},6678:(t,e,n)=>{var r=n(117),i=n(6291);t.exports=function(t){return r.filter(i(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}},3590:(t,e,n)=>{var r=n(117);t.exports=function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach((function(t){r[t]={},r[t][t]={distance:0},i.forEach((function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})})),n(t).forEach((function(n){var i=n.v===t?n.w:n.v,a=e(n);r[t][i]={distance:a,predecessor:t}}))})),i.forEach((function(t){var e=r[t];i.forEach((function(n){var a=r[n];i.forEach((function(n){var r=a[t],i=e[n],o=a[n],u=r.distance+i.distance;u{t.exports={components:n(3619),dijkstra:n(8905),dijkstraAll:n(4919),findCycles:n(6678),floydWarshall:n(3590),isAcyclic:n(498),postorder:n(1045),preorder:n(6016),prim:n(4423),tarjan:n(6291),topsort:n(9888)}},498:(t,e,n)=>{var r=n(9888);t.exports=function(t){try{r(t)}catch(t){if(t instanceof r.CycleException)return!1;throw t}return!0}},1045:(t,e,n)=>{var r=n(9276);t.exports=function(t,e){return r(t,e,"post")}},6016:(t,e,n)=>{var r=n(9276);t.exports=function(t,e){return r(t,e,"pre")}},4423:(t,e,n)=>{var r=n(117),i=n(6454),a=n(1737);t.exports=function(t,e){var n,o=new i,u={},c=new a;function l(t){var r=t.v===n?t.w:t.v,i=c.priority(r);if(void 0!==i){var a=e(t);a0;){if(n=c.removeMin(),r.has(u,n))o.setEdge(n,u[n]);else{if(s)throw new Error("Input graph is not connected: "+t);s=!0}t.nodeEdges(n).forEach(l)}return o}},6291:(t,e,n)=>{var r=n(117);t.exports=function(t){var e=0,n=[],i={},a=[];function o(u){var c=i[u]={onStack:!0,lowlink:e,index:e++};if(n.push(u),t.successors(u).forEach((function(t){r.has(i,t)?i[t].onStack&&(c.lowlink=Math.min(c.lowlink,i[t].index)):(o(t),c.lowlink=Math.min(c.lowlink,i[t].lowlink))})),c.lowlink===c.index){var l,s=[];do{l=n.pop(),i[l].onStack=!1,s.push(l)}while(u!==l);a.push(s)}}return t.nodes().forEach((function(t){r.has(i,t)||o(t)})),a}},9888:(t,e,n)=>{var r=n(117);function i(t){var e={},n={},i=[];if(r.each(t.sinks(),(function o(u){if(r.has(n,u))throw new a;r.has(e,u)||(n[u]=!0,e[u]=!0,r.each(t.predecessors(u),o),delete n[u],i.push(u))})),r.size(e)!==t.nodeCount())throw new a;return i}function a(){}t.exports=i,i.CycleException=a},1737:(t,e,n)=>{var r=n(117);function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,a=i.length;return n[t]=a,i.push({key:t,priority:e}),this._decrease(a),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n>1].priority{"use strict";var r=n(117);t.exports=u;var i="\0",a="\0",o="";function u(t){this._isDirected=!r.has(t,"directed")||t.directed,this._isMultigraph=!!r.has(t,"multigraph")&&t.multigraph,this._isCompound=!!r.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[a]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function c(t,e){t[e]?t[e]++:t[e]=1}function l(t,e){--t[e]||delete t[e]}function s(t,e,n,a){var u=""+e,c=""+n;if(!t&&u>c){var l=u;u=c,c=l}return u+o+c+o+(r.isUndefined(a)?i:a)}function f(t,e){return s(t,e.v,e.w,e.name)}u.prototype._nodeCount=0,u.prototype._edgeCount=0,u.prototype.isDirected=function(){return this._isDirected},u.prototype.isMultigraph=function(){return this._isMultigraph},u.prototype.isCompound=function(){return this._isCompound},u.prototype.setGraph=function(t){return this._label=t,this},u.prototype.graph=function(){return this._label},u.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},u.prototype.nodeCount=function(){return this._nodeCount},u.prototype.nodes=function(){return r.keys(this._nodes)},u.prototype.sources=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._in[e])}))},u.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._out[e])}))},u.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,(function(t){n.length>1?i.setNode(t,e):i.setNode(t)})),this},u.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=a,this._children[t]={},this._children[a][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},u.prototype.node=function(t){return this._nodes[t]},u.prototype.hasNode=function(t){return r.has(this._nodes,t)},u.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},u.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e=a;else{for(var n=e+="";!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},u.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},u.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==a)return e}},u.prototype.children=function(t){if(r.isUndefined(t)&&(t=a),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if(t===a)return this.nodes();if(this.hasNode(t))return[]}},u.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},u.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},u.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},u.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},u.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){t(r)&&e.setNode(r,n)})),r.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var i={};function a(t){var r=n.parent(t);return void 0===r||e.hasNode(r)?(i[t]=r,r):r in i?i[r]:a(r)}return this._isCompound&&r.each(e.nodes(),(function(t){e.setParent(t,a(t))})),e},u.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},u.prototype.edgeCount=function(){return this._edgeCount},u.prototype.edges=function(){return r.values(this._edgeObjs)},u.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,(function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r})),this},u.prototype.setEdge=function(){var t,e,n,i,a=!1,o=arguments[0];"object"==typeof o&&null!==o&&"v"in o?(t=o.v,e=o.w,n=o.name,2===arguments.length&&(i=arguments[1],a=!0)):(t=o,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var u=s(this._isDirected,t,e,n);if(r.has(this._edgeLabels,u))return a&&(this._edgeLabels[u]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[u]=a?i:this._defaultEdgeLabelFn(t,e,n);var l=function(t,e,n,r){var i=""+e,a=""+n;if(!t&&i>a){var o=i;i=a,a=o}var u={v:i,w:a};r&&(u.name=r);return u}(this._isDirected,t,e,n);return t=l.v,e=l.w,Object.freeze(l),this._edgeObjs[u]=l,c(this._preds[e],t),c(this._sucs[t],e),this._in[e][u]=l,this._out[t][u]=l,this._edgeCount++,this},u.prototype.edge=function(t,e,n){var r=1===arguments.length?f(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return this._edgeLabels[r]},u.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?f(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},u.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?f(this._isDirected,arguments[0]):s(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],l(this._preds[e],t),l(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},u.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.v===e})):i}},u.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.w===e})):i}},u.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},1166:(t,e,n)=>{t.exports={Graph:n(6454),version:n(4458)}},7494:(t,e,n)=>{var r=n(117),i=n(6454);function a(t){return r.map(t.nodes(),(function(e){var n=t.node(e),i=t.parent(e),a={v:e};return r.isUndefined(n)||(a.value=n),r.isUndefined(i)||(a.parent=i),a}))}function o(t){return r.map(t.edges(),(function(e){var n=t.edge(e),i={v:e.v,w:e.w};return r.isUndefined(e.name)||(i.name=e.name),r.isUndefined(n)||(i.value=n),i}))}t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:a(t),edges:o(t)};r.isUndefined(t.graph())||(e.value=r.clone(t.graph()));return e},read:function(t){var e=new i(t.options).setGraph(t.value);return r.each(t.nodes,(function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)})),r.each(t.edges,(function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),e}}},117:(t,e,n)=>{var r;try{r=n(2543)}catch(t){}r||(r=window._),t.exports=r},4458:t=>{t.exports="2.1.5"},2543:function(t,e,n){var r;t=n.nmd(t),function(){var i,a="Expected a function",o="__lodash_hash_undefined__",u="__lodash_placeholder__",c=16,l=32,s=64,f=128,h=256,d=1/0,p=9007199254740991,v=NaN,g=4294967295,y=[["ary",f],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",l],["partialRight",s],["rearg",h]],m="[object Arguments]",_="[object Array]",b="[object Boolean]",x="[object Date]",w="[object Error]",E="[object Function]",k="[object GeneratorFunction]",T="[object Map]",M="[object Number]",N="[object Object]",S="[object Promise]",C="[object RegExp]",A="[object Set]",R="[object String]",P="[object Symbol]",I="[object WeakMap]",L="[object ArrayBuffer]",O="[object DataView]",D="[object Float32Array]",z="[object Float64Array]",U="[object Int8Array]",F="[object Int16Array]",j="[object Int32Array]",q="[object Uint8Array]",B="[object Uint8ClampedArray]",Q="[object Uint16Array]",W="[object Uint32Array]",Y=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,X=/[&<>"']/g,G=RegExp($.source),K=RegExp(X.source),Z=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,tt=/<%=([\s\S]+?)%>/g,et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nt=/^\w*$/,rt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,it=/[\\^$.*+?()[\]{}|]/g,at=RegExp(it.source),ot=/^\s+|\s+$/g,ut=/^\s+/,ct=/\s+$/,lt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,st=/\{\n\/\* \[wrapped with (.+)\] \*/,ft=/,? & /,ht=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,dt=/\\(\\)?/g,pt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vt=/\w*$/,gt=/^[-+]0x[0-9a-f]+$/i,yt=/^0b[01]+$/i,mt=/^\[object .+?Constructor\]$/,_t=/^0o[0-7]+$/i,bt=/^(?:0|[1-9]\d*)$/,xt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wt=/($^)/,Et=/['\n\r\u2028\u2029\\]/g,kt="\\ud800-\\udfff",Tt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Mt="\\u2700-\\u27bf",Nt="a-z\\xdf-\\xf6\\xf8-\\xff",St="A-Z\\xc0-\\xd6\\xd8-\\xde",Ct="\\ufe0e\\ufe0f",At="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Rt="['’]",Pt="["+kt+"]",It="["+At+"]",Lt="["+Tt+"]",Ot="\\d+",Dt="["+Mt+"]",zt="["+Nt+"]",Ut="[^"+kt+At+Ot+Mt+Nt+St+"]",Ft="\\ud83c[\\udffb-\\udfff]",jt="[^"+kt+"]",qt="(?:\\ud83c[\\udde6-\\uddff]){2}",Bt="[\\ud800-\\udbff][\\udc00-\\udfff]",Qt="["+St+"]",Wt="\\u200d",Yt="(?:"+zt+"|"+Ut+")",Ht="(?:"+Qt+"|"+Ut+")",Vt="(?:['’](?:d|ll|m|re|s|t|ve))?",$t="(?:['’](?:D|LL|M|RE|S|T|VE))?",Xt="(?:"+Lt+"|"+Ft+")"+"?",Gt="["+Ct+"]?",Kt=Gt+Xt+("(?:"+Wt+"(?:"+[jt,qt,Bt].join("|")+")"+Gt+Xt+")*"),Zt="(?:"+[Dt,qt,Bt].join("|")+")"+Kt,Jt="(?:"+[jt+Lt+"?",Lt,qt,Bt,Pt].join("|")+")",te=RegExp(Rt,"g"),ee=RegExp(Lt,"g"),ne=RegExp(Ft+"(?="+Ft+")|"+Jt+Kt,"g"),re=RegExp([Qt+"?"+zt+"+"+Vt+"(?="+[It,Qt,"$"].join("|")+")",Ht+"+"+$t+"(?="+[It,Qt+Yt,"$"].join("|")+")",Qt+"?"+Yt+"+"+Vt,Qt+"+"+$t,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ot,Zt].join("|"),"g"),ie=RegExp("["+Wt+kt+Tt+Ct+"]"),ae=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,oe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ue=-1,ce={};ce[D]=ce[z]=ce[U]=ce[F]=ce[j]=ce[q]=ce[B]=ce[Q]=ce[W]=!0,ce[m]=ce[_]=ce[L]=ce[b]=ce[O]=ce[x]=ce[w]=ce[E]=ce[T]=ce[M]=ce[N]=ce[C]=ce[A]=ce[R]=ce[I]=!1;var le={};le[m]=le[_]=le[L]=le[O]=le[b]=le[x]=le[D]=le[z]=le[U]=le[F]=le[j]=le[T]=le[M]=le[N]=le[C]=le[A]=le[R]=le[P]=le[q]=le[B]=le[Q]=le[W]=!0,le[w]=le[E]=le[I]=!1;var se={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},fe=parseFloat,he=parseInt,de="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,pe="object"==typeof self&&self&&self.Object===Object&&self,ve=de||pe||Function("return this")(),ge=e&&!e.nodeType&&e,ye=ge&&t&&!t.nodeType&&t,me=ye&&ye.exports===ge,_e=me&&de.process,be=function(){try{var t=ye&&ye.require&&ye.require("util").types;return t||_e&&_e.binding&&_e.binding("util")}catch(t){}}(),xe=be&&be.isArrayBuffer,we=be&&be.isDate,Ee=be&&be.isMap,ke=be&&be.isRegExp,Te=be&&be.isSet,Me=be&&be.isTypedArray;function Ne(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Se(t,e,n,r){for(var i=-1,a=null==t?0:t.length;++i-1}function Le(t,e,n){for(var r=-1,i=null==t?0:t.length;++r-1;);return n}function nn(t,e){for(var n=t.length;n--&&Qe(e,t[n],0)>-1;);return n}var rn=$e({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),an=$e({"&":"&","<":"<",">":">",'"':""","'":"'"});function on(t){return"\\"+se[t]}function un(t){return ie.test(t)}function cn(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function ln(t,e){return function(n){return t(e(n))}}function sn(t,e){for(var n=-1,r=t.length,i=0,a=[];++n",""":'"',"'":"'"});var gn=function t(e){var n,r=(e=null==e?ve:gn.defaults(ve.Object(),e,gn.pick(ve,oe))).Array,kt=e.Date,Tt=e.Error,Mt=e.Function,Nt=e.Math,St=e.Object,Ct=e.RegExp,At=e.String,Rt=e.TypeError,Pt=r.prototype,It=Mt.prototype,Lt=St.prototype,Ot=e["__core-js_shared__"],Dt=It.toString,zt=Lt.hasOwnProperty,Ut=0,Ft=(n=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",jt=Lt.toString,qt=Dt.call(St),Bt=ve._,Qt=Ct("^"+Dt.call(zt).replace(it,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wt=me?e.Buffer:i,Yt=e.Symbol,Ht=e.Uint8Array,Vt=Wt?Wt.allocUnsafe:i,$t=ln(St.getPrototypeOf,St),Xt=St.create,Gt=Lt.propertyIsEnumerable,Kt=Pt.splice,Zt=Yt?Yt.isConcatSpreadable:i,Jt=Yt?Yt.iterator:i,ne=Yt?Yt.toStringTag:i,ie=function(){try{var t=fa(St,"defineProperty");return t({},"",{}),t}catch(t){}}(),se=e.clearTimeout!==ve.clearTimeout&&e.clearTimeout,de=kt&&kt.now!==ve.Date.now&&kt.now,pe=e.setTimeout!==ve.setTimeout&&e.setTimeout,ge=Nt.ceil,ye=Nt.floor,_e=St.getOwnPropertySymbols,be=Wt?Wt.isBuffer:i,je=e.isFinite,$e=Pt.join,yn=ln(St.keys,St),mn=Nt.max,_n=Nt.min,bn=kt.now,xn=e.parseInt,wn=Nt.random,En=Pt.reverse,kn=fa(e,"DataView"),Tn=fa(e,"Map"),Mn=fa(e,"Promise"),Nn=fa(e,"Set"),Sn=fa(e,"WeakMap"),Cn=fa(St,"create"),An=Sn&&new Sn,Rn={},Pn=za(kn),In=za(Tn),Ln=za(Mn),On=za(Nn),Dn=za(Sn),zn=Yt?Yt.prototype:i,Un=zn?zn.valueOf:i,Fn=zn?zn.toString:i;function jn(t){if(eu(t)&&!Wo(t)&&!(t instanceof Wn)){if(t instanceof Qn)return t;if(zt.call(t,"__wrapped__"))return Ua(t)}return new Qn(t)}var qn=function(){function t(){}return function(e){if(!tu(e))return{};if(Xt)return Xt(e);t.prototype=e;var n=new t;return t.prototype=i,n}}();function Bn(){}function Qn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function Wn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Yn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function cr(t,e,n,r,a,o){var u,c=1&e,l=2&e,s=4&e;if(n&&(u=a?n(t,r,a,o):n(t)),u!==i)return u;if(!tu(t))return t;var f=Wo(t);if(f){if(u=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&zt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!c)return Ci(t,u)}else{var h=pa(t),d=h==E||h==k;if($o(t))return Ei(t,c);if(h==N||h==m||d&&!a){if(u=l||d?{}:ga(t),!c)return l?function(t,e){return Ai(t,da(t),e)}(t,function(t,e){return t&&Ai(e,Pu(e),t)}(u,t)):function(t,e){return Ai(t,ha(t),e)}(t,ir(u,t))}else{if(!le[h])return a?t:{};u=function(t,e,n){var r=t.constructor;switch(e){case L:return ki(t);case b:case x:return new r(+t);case O:return function(t,e){var n=e?ki(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case D:case z:case U:case F:case j:case q:case B:case Q:case W:return Ti(t,n);case T:return new r;case M:case R:return new r(t);case C:return function(t){var e=new t.constructor(t.source,vt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case A:return new r;case P:return i=t,Un?St(Un.call(i)):{}}var i}(t,h,c)}}o||(o=new Xn);var p=o.get(t);if(p)return p;o.set(t,u),ou(t)?t.forEach((function(r){u.add(cr(r,e,n,r,t,o))})):nu(t)&&t.forEach((function(r,i){u.set(i,cr(r,e,n,i,t,o))}));var v=f?i:(s?l?ia:ra:l?Pu:Ru)(t);return Ce(v||t,(function(r,i){v&&(r=t[i=r]),er(u,i,cr(r,e,n,i,t,o))})),u}function lr(t,e,n){var r=n.length;if(null==t)return!r;for(t=St(t);r--;){var a=n[r],o=e[a],u=t[a];if(u===i&&!(a in t)||!o(u))return!1}return!0}function sr(t,e,n){if("function"!=typeof t)throw new Rt(a);return Aa((function(){t.apply(i,n)}),e)}function fr(t,e,n,r){var i=-1,a=Ie,o=!0,u=t.length,c=[],l=e.length;if(!u)return c;n&&(e=Oe(e,Ze(n))),r?(a=Le,o=!1):e.length>=200&&(a=tn,o=!1,e=new $n(e));t:for(;++i-1},Hn.prototype.set=function(t,e){var n=this.__data__,r=nr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Vn.prototype.clear=function(){this.size=0,this.__data__={hash:new Yn,map:new(Tn||Hn),string:new Yn}},Vn.prototype.delete=function(t){var e=la(this,t).delete(t);return this.size-=e?1:0,e},Vn.prototype.get=function(t){return la(this,t).get(t)},Vn.prototype.has=function(t){return la(this,t).has(t)},Vn.prototype.set=function(t,e){var n=la(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},$n.prototype.add=$n.prototype.push=function(t){return this.__data__.set(t,o),this},$n.prototype.has=function(t){return this.__data__.has(t)},Xn.prototype.clear=function(){this.__data__=new Hn,this.size=0},Xn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Xn.prototype.get=function(t){return this.__data__.get(t)},Xn.prototype.has=function(t){return this.__data__.has(t)},Xn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Hn){var r=n.__data__;if(!Tn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Vn(r)}return n.set(t,e),this.size=n.size,this};var hr=Ii(br),dr=Ii(xr,!0);function pr(t,e){var n=!0;return hr(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function vr(t,e,n){for(var r=-1,a=t.length;++r0&&n(u)?e>1?yr(u,e-1,n,r,i):De(i,u):r||(i[i.length]=u)}return i}var mr=Li(),_r=Li(!0);function br(t,e){return t&&mr(t,e,Ru)}function xr(t,e){return t&&_r(t,e,Ru)}function wr(t,e){return Pe(e,(function(e){return Ko(t[e])}))}function Er(t,e){for(var n=0,r=(e=_i(e,t)).length;null!=t&&ne}function Nr(t,e){return null!=t&&zt.call(t,e)}function Sr(t,e){return null!=t&&e in St(t)}function Cr(t,e,n){for(var a=n?Le:Ie,o=t[0].length,u=t.length,c=u,l=r(u),s=1/0,f=[];c--;){var h=t[c];c&&e&&(h=Oe(h,Ze(e))),s=_n(h.length,s),l[c]=!n&&(e||o>=120&&h.length>=120)?new $n(c&&h):i}h=t[0];var d=-1,p=l[0];t:for(;++d=u?c:c*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function Yr(t,e,n){for(var r=-1,i=e.length,a={};++r-1;)u!==t&&Kt.call(u,c,1),Kt.call(t,c,1);return t}function Vr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==a){var a=i;ma(i)?Kt.call(t,i,1):fi(t,i)}}return t}function $r(t,e){return t+ye(wn()*(e-t+1))}function Xr(t,e){var n="";if(!t||e<1||e>p)return n;do{e%2&&(n+=t),(e=ye(e/2))&&(t+=t)}while(e);return n}function Gr(t,e){return Ra(Ma(t,e,rc),t+"")}function Kr(t){return Kn(ju(t))}function Zr(t,e){var n=ju(t);return La(n,ur(e,0,n.length))}function Jr(t,e,n,r){if(!tu(t))return t;for(var a=-1,o=(e=_i(e,t)).length,u=o-1,c=t;null!=c&&++aa?0:a+e),(n=n>a?a:n)<0&&(n+=a),a=e>n?0:n-e>>>0,e>>>=0;for(var o=r(a);++i>>1,o=t[a];null!==o&&!cu(o)&&(n?o<=e:o=200){var l=e?null:Xi(t);if(l)return fn(l);o=!1,i=tn,c=new $n}else c=e?[]:u;t:for(;++r=r?t:ri(t,e,n)}var wi=se||function(t){return ve.clearTimeout(t)};function Ei(t,e){if(e)return t.slice();var n=t.length,r=Vt?Vt(n):new t.constructor(n);return t.copy(r),r}function ki(t){var e=new t.constructor(t.byteLength);return new Ht(e).set(new Ht(t)),e}function Ti(t,e){var n=e?ki(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Mi(t,e){if(t!==e){var n=t!==i,r=null===t,a=t==t,o=cu(t),u=e!==i,c=null===e,l=e==e,s=cu(e);if(!c&&!s&&!o&&t>e||o&&u&&l&&!c&&!s||r&&u&&l||!n&&l||!a)return 1;if(!r&&!o&&!s&&t1?n[a-1]:i,u=a>2?n[2]:i;for(o=t.length>3&&"function"==typeof o?(a--,o):i,u&&_a(n[0],n[1],u)&&(o=a<3?i:o,a=1),e=St(e);++r-1?a[o?e[u]:u]:i}}function Fi(t){return na((function(e){var n=e.length,r=n,o=Qn.prototype.thru;for(t&&e.reverse();r--;){var u=e[r];if("function"!=typeof u)throw new Rt(a);if(o&&!c&&"wrapper"==oa(u))var c=new Qn([],!0)}for(r=c?r:n;++r1&&b.reverse(),d&&s<_&&(b.length=s),this&&this!==ve&&this instanceof f&&(M=m||zi(M)),M.apply(T,b)}}function qi(t,e){return function(n,r){return function(t,e,n,r){return br(t,(function(t,i,a){e(r,n(t),i,a)})),r}(n,t,e(r),{})}}function Bi(t,e){return function(n,r){var a;if(n===i&&r===i)return e;if(n!==i&&(a=n),r!==i){if(a===i)return r;"string"==typeof n||"string"==typeof r?(n=li(n),r=li(r)):(n=ci(n),r=ci(r)),a=t(n,r)}return a}}function Qi(t){return na((function(e){return e=Oe(e,Ze(ca())),Gr((function(n){var r=this;return t(e,(function(t){return Ne(t,r,n)}))}))}))}function Wi(t,e){var n=(e=e===i?" ":li(e)).length;if(n<2)return n?Xr(e,t):e;var r=Xr(e,ge(t/dn(e)));return un(e)?xi(pn(r),0,t).join(""):r.slice(0,t)}function Yi(t){return function(e,n,a){return a&&"number"!=typeof a&&_a(e,n,a)&&(n=a=i),e=du(e),n===i?(n=e,e=0):n=du(n),function(t,e,n,i){for(var a=-1,o=mn(ge((e-t)/(n||1)),0),u=r(o);o--;)u[i?o:++a]=t,t+=n;return u}(e,n,a=a===i?ec))return!1;var s=o.get(t);if(s&&o.get(e))return s==e;var f=-1,h=!0,d=2&n?new $n:i;for(o.set(t,e),o.set(e,t);++f-1&&t%1==0&&t1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(lt,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Ce(y,(function(n){var r="_."+n[0];e&n[1]&&!Ie(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(st);return e?e[1].split(ft):[]}(r),n)))}function Ia(t){var e=0,n=0;return function(){var r=bn(),a=16-(r-n);if(n=r,a>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function La(t,e){var n=-1,r=t.length,a=r-1;for(e=e===i?r:e;++n1?t[e-1]:i;return n="function"==typeof n?(t.pop(),n):i,io(t,n)}));function fo(t){var e=jn(t);return e.__chain__=!0,e}function ho(t,e){return e(t)}var po=na((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,a=function(e){return or(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Wn&&ma(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:ho,args:[a],thisArg:i}),new Qn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(i),t}))):this.thru(a)}));var vo=Ri((function(t,e,n){zt.call(t,n)?++t[n]:ar(t,n,1)}));var go=Ui(Ba),yo=Ui(Qa);function mo(t,e){return(Wo(t)?Ce:hr)(t,ca(e,3))}function _o(t,e){return(Wo(t)?Ae:dr)(t,ca(e,3))}var bo=Ri((function(t,e,n){zt.call(t,n)?t[n].push(e):ar(t,n,[e])}));var xo=Gr((function(t,e,n){var i=-1,a="function"==typeof e,o=Ho(t)?r(t.length):[];return hr(t,(function(t){o[++i]=a?Ne(e,t,n):Ar(t,e,n)})),o})),wo=Ri((function(t,e,n){ar(t,n,e)}));function Eo(t,e){return(Wo(t)?Oe:Fr)(t,ca(e,3))}var ko=Ri((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var To=Gr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&_a(t,e[0],e[1])?e=[]:n>2&&_a(e[0],e[1],e[2])&&(e=[e[0]]),Wr(t,yr(e,1),[])})),Mo=de||function(){return ve.Date.now()};function No(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,Ki(t,f,i,i,i,i,e)}function So(t,e){var n;if("function"!=typeof e)throw new Rt(a);return t=pu(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var Co=Gr((function(t,e,n){var r=1;if(n.length){var i=sn(n,ua(Co));r|=l}return Ki(t,r,e,n,i)})),Ao=Gr((function(t,e,n){var r=3;if(n.length){var i=sn(n,ua(Ao));r|=l}return Ki(e,r,t,n,i)}));function Ro(t,e,n){var r,o,u,c,l,s,f=0,h=!1,d=!1,p=!0;if("function"!=typeof t)throw new Rt(a);function v(e){var n=r,a=o;return r=o=i,f=e,c=t.apply(a,n)}function g(t){var n=t-s;return s===i||n>=e||n<0||d&&t-f>=u}function y(){var t=Mo();if(g(t))return m(t);l=Aa(y,function(t){var n=e-(t-s);return d?_n(n,u-(t-f)):n}(t))}function m(t){return l=i,p&&r?v(t):(r=o=i,c)}function _(){var t=Mo(),n=g(t);if(r=arguments,o=this,s=t,n){if(l===i)return function(t){return f=t,l=Aa(y,e),h?v(t):c}(s);if(d)return wi(l),l=Aa(y,e),v(s)}return l===i&&(l=Aa(y,e)),c}return e=gu(e)||0,tu(n)&&(h=!!n.leading,u=(d="maxWait"in n)?mn(gu(n.maxWait)||0,e):u,p="trailing"in n?!!n.trailing:p),_.cancel=function(){l!==i&&wi(l),f=0,r=s=o=l=i},_.flush=function(){return l===i?c:m(Mo())},_}var Po=Gr((function(t,e){return sr(t,1,e)})),Io=Gr((function(t,e,n){return sr(t,gu(e)||0,n)}));function Lo(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Rt(a);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Lo.Cache||Vn),n}function Oo(t){if("function"!=typeof t)throw new Rt(a);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Lo.Cache=Vn;var Do=bi((function(t,e){var n=(e=1==e.length&&Wo(e[0])?Oe(e[0],Ze(ca())):Oe(yr(e,1),Ze(ca()))).length;return Gr((function(r){for(var i=-1,a=_n(r.length,n);++i=e})),Qo=Rr(function(){return arguments}())?Rr:function(t){return eu(t)&&zt.call(t,"callee")&&!Gt.call(t,"callee")},Wo=r.isArray,Yo=xe?Ze(xe):function(t){return eu(t)&&Tr(t)==L};function Ho(t){return null!=t&&Jo(t.length)&&!Ko(t)}function Vo(t){return eu(t)&&Ho(t)}var $o=be||gc,Xo=we?Ze(we):function(t){return eu(t)&&Tr(t)==x};function Go(t){if(!eu(t))return!1;var e=Tr(t);return e==w||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!iu(t)}function Ko(t){if(!tu(t))return!1;var e=Tr(t);return e==E||e==k||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Zo(t){return"number"==typeof t&&t==pu(t)}function Jo(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=p}function tu(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function eu(t){return null!=t&&"object"==typeof t}var nu=Ee?Ze(Ee):function(t){return eu(t)&&pa(t)==T};function ru(t){return"number"==typeof t||eu(t)&&Tr(t)==M}function iu(t){if(!eu(t)||Tr(t)!=N)return!1;var e=$t(t);if(null===e)return!0;var n=zt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Dt.call(n)==qt}var au=ke?Ze(ke):function(t){return eu(t)&&Tr(t)==C};var ou=Te?Ze(Te):function(t){return eu(t)&&pa(t)==A};function uu(t){return"string"==typeof t||!Wo(t)&&eu(t)&&Tr(t)==R}function cu(t){return"symbol"==typeof t||eu(t)&&Tr(t)==P}var lu=Me?Ze(Me):function(t){return eu(t)&&Jo(t.length)&&!!ce[Tr(t)]};var su=Hi(Ur),fu=Hi((function(t,e){return t<=e}));function hu(t){if(!t)return[];if(Ho(t))return uu(t)?pn(t):Ci(t);if(Jt&&t[Jt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Jt]());var e=pa(t);return(e==T?cn:e==A?fn:ju)(t)}function du(t){return t?(t=gu(t))===d||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function pu(t){var e=du(t),n=e%1;return e==e?n?e-n:e:0}function vu(t){return t?ur(pu(t),0,g):0}function gu(t){if("number"==typeof t)return t;if(cu(t))return v;if(tu(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=tu(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(ot,"");var n=yt.test(t);return n||_t.test(t)?he(t.slice(2),n?2:8):gt.test(t)?v:+t}function yu(t){return Ai(t,Pu(t))}function mu(t){return null==t?"":li(t)}var _u=Pi((function(t,e){if(Ea(e)||Ho(e))Ai(e,Ru(e),t);else for(var n in e)zt.call(e,n)&&er(t,n,e[n])})),bu=Pi((function(t,e){Ai(e,Pu(e),t)})),xu=Pi((function(t,e,n,r){Ai(e,Pu(e),t,r)})),wu=Pi((function(t,e,n,r){Ai(e,Ru(e),t,r)})),Eu=na(or);var ku=Gr((function(t,e){t=St(t);var n=-1,r=e.length,a=r>2?e[2]:i;for(a&&_a(e[0],e[1],a)&&(r=1);++n1),e})),Ai(t,ia(t),n),r&&(n=cr(n,7,ta));for(var i=e.length;i--;)fi(n,e[i]);return n}));var Du=na((function(t,e){return null==t?{}:function(t,e){return Yr(t,e,(function(e,n){return Nu(t,n)}))}(t,e)}));function zu(t,e){if(null==t)return{};var n=Oe(ia(t),(function(t){return[t]}));return e=ca(e),Yr(t,n,(function(t,n){return e(t,n[0])}))}var Uu=Gi(Ru),Fu=Gi(Pu);function ju(t){return null==t?[]:Je(t,Ru(t))}var qu=Di((function(t,e,n){return e=e.toLowerCase(),t+(n?Bu(e):e)}));function Bu(t){return Gu(mu(t).toLowerCase())}function Qu(t){return(t=mu(t))&&t.replace(xt,rn).replace(ee,"")}var Wu=Di((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Yu=Di((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Hu=Oi("toLowerCase");var Vu=Di((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var $u=Di((function(t,e,n){return t+(n?" ":"")+Gu(e)}));var Xu=Di((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Gu=Oi("toUpperCase");function Ku(t,e,n){return t=mu(t),(e=n?i:e)===i?function(t){return ae.test(t)}(t)?function(t){return t.match(re)||[]}(t):function(t){return t.match(ht)||[]}(t):t.match(e)||[]}var Zu=Gr((function(t,e){try{return Ne(t,i,e)}catch(t){return Go(t)?t:new Tt(t)}})),Ju=na((function(t,e){return Ce(e,(function(e){e=Da(e),ar(t,e,Co(t[e],t))})),t}));function tc(t){return function(){return t}}var ec=Fi(),nc=Fi(!0);function rc(t){return t}function ic(t){return Or("function"==typeof t?t:cr(t,1))}var ac=Gr((function(t,e){return function(n){return Ar(n,t,e)}})),oc=Gr((function(t,e){return function(n){return Ar(t,n,e)}}));function uc(t,e,n){var r=Ru(e),i=wr(e,r);null!=n||tu(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=wr(e,Ru(e)));var a=!(tu(n)&&"chain"in n&&!n.chain),o=Ko(t);return Ce(i,(function(n){var r=e[n];t[n]=r,o&&(t.prototype[n]=function(){var e=this.__chain__;if(a||e){var n=t(this.__wrapped__);return(n.__actions__=Ci(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,De([this.value()],arguments))})})),t}function cc(){}var lc=Qi(Oe),sc=Qi(Re),fc=Qi(Fe);function hc(t){return ba(t)?Ve(Da(t)):function(t){return function(e){return Er(e,t)}}(t)}var dc=Yi(),pc=Yi(!0);function vc(){return[]}function gc(){return!1}var yc=Bi((function(t,e){return t+e}),0),mc=$i("ceil"),_c=Bi((function(t,e){return t/e}),1),bc=$i("floor");var xc,wc=Bi((function(t,e){return t*e}),1),Ec=$i("round"),kc=Bi((function(t,e){return t-e}),0);return jn.after=function(t,e){if("function"!=typeof e)throw new Rt(a);return t=pu(t),function(){if(--t<1)return e.apply(this,arguments)}},jn.ary=No,jn.assign=_u,jn.assignIn=bu,jn.assignInWith=xu,jn.assignWith=wu,jn.at=Eu,jn.before=So,jn.bind=Co,jn.bindAll=Ju,jn.bindKey=Ao,jn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Wo(t)?t:[t]},jn.chain=fo,jn.chunk=function(t,e,n){e=(n?_a(t,e,n):e===i)?1:mn(pu(e),0);var a=null==t?0:t.length;if(!a||e<1)return[];for(var o=0,u=0,c=r(ge(a/e));oa?0:a+n),(r=r===i||r>a?a:pu(r))<0&&(r+=a),r=n>r?0:vu(r);n>>0)?(t=mu(t))&&("string"==typeof e||null!=e&&!au(e))&&!(e=li(e))&&un(t)?xi(pn(t),0,n):t.split(e,n):[]},jn.spread=function(t,e){if("function"!=typeof t)throw new Rt(a);return e=null==e?0:mn(pu(e),0),Gr((function(n){var r=n[e],i=xi(n,0,e);return r&&De(i,r),Ne(t,this,i)}))},jn.tail=function(t){var e=null==t?0:t.length;return e?ri(t,1,e):[]},jn.take=function(t,e,n){return t&&t.length?ri(t,0,(e=n||e===i?1:pu(e))<0?0:e):[]},jn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?ri(t,(e=r-(e=n||e===i?1:pu(e)))<0?0:e,r):[]},jn.takeRightWhile=function(t,e){return t&&t.length?di(t,ca(e,3),!1,!0):[]},jn.takeWhile=function(t,e){return t&&t.length?di(t,ca(e,3)):[]},jn.tap=function(t,e){return e(t),t},jn.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new Rt(a);return tu(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ro(t,e,{leading:r,maxWait:e,trailing:i})},jn.thru=ho,jn.toArray=hu,jn.toPairs=Uu,jn.toPairsIn=Fu,jn.toPath=function(t){return Wo(t)?Oe(t,Da):cu(t)?[t]:Ci(Oa(mu(t)))},jn.toPlainObject=yu,jn.transform=function(t,e,n){var r=Wo(t),i=r||$o(t)||lu(t);if(e=ca(e,4),null==n){var a=t&&t.constructor;n=i?r?new a:[]:tu(t)&&Ko(a)?qn($t(t)):{}}return(i?Ce:br)(t,(function(t,r,i){return e(n,t,r,i)})),n},jn.unary=function(t){return No(t,1)},jn.union=to,jn.unionBy=eo,jn.unionWith=no,jn.uniq=function(t){return t&&t.length?si(t):[]},jn.uniqBy=function(t,e){return t&&t.length?si(t,ca(e,2)):[]},jn.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?si(t,i,e):[]},jn.unset=function(t,e){return null==t||fi(t,e)},jn.unzip=ro,jn.unzipWith=io,jn.update=function(t,e,n){return null==t?t:hi(t,e,mi(n))},jn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:hi(t,e,mi(n),r)},jn.values=ju,jn.valuesIn=function(t){return null==t?[]:Je(t,Pu(t))},jn.without=ao,jn.words=Ku,jn.wrap=function(t,e){return zo(mi(e),t)},jn.xor=oo,jn.xorBy=uo,jn.xorWith=co,jn.zip=lo,jn.zipObject=function(t,e){return gi(t||[],e||[],er)},jn.zipObjectDeep=function(t,e){return gi(t||[],e||[],Jr)},jn.zipWith=so,jn.entries=Uu,jn.entriesIn=Fu,jn.extend=bu,jn.extendWith=xu,uc(jn,jn),jn.add=yc,jn.attempt=Zu,jn.camelCase=qu,jn.capitalize=Bu,jn.ceil=mc,jn.clamp=function(t,e,n){return n===i&&(n=e,e=i),n!==i&&(n=(n=gu(n))==n?n:0),e!==i&&(e=(e=gu(e))==e?e:0),ur(gu(t),e,n)},jn.clone=function(t){return cr(t,4)},jn.cloneDeep=function(t){return cr(t,5)},jn.cloneDeepWith=function(t,e){return cr(t,5,e="function"==typeof e?e:i)},jn.cloneWith=function(t,e){return cr(t,4,e="function"==typeof e?e:i)},jn.conformsTo=function(t,e){return null==e||lr(t,e,Ru(e))},jn.deburr=Qu,jn.defaultTo=function(t,e){return null==t||t!=t?e:t},jn.divide=_c,jn.endsWith=function(t,e,n){t=mu(t),e=li(e);var r=t.length,a=n=n===i?r:ur(pu(n),0,r);return(n-=e.length)>=0&&t.slice(n,a)==e},jn.eq=jo,jn.escape=function(t){return(t=mu(t))&&K.test(t)?t.replace(X,an):t},jn.escapeRegExp=function(t){return(t=mu(t))&&at.test(t)?t.replace(it,"\\$&"):t},jn.every=function(t,e,n){var r=Wo(t)?Re:pr;return n&&_a(t,e,n)&&(e=i),r(t,ca(e,3))},jn.find=go,jn.findIndex=Ba,jn.findKey=function(t,e){return qe(t,ca(e,3),br)},jn.findLast=yo,jn.findLastIndex=Qa,jn.findLastKey=function(t,e){return qe(t,ca(e,3),xr)},jn.floor=bc,jn.forEach=mo,jn.forEachRight=_o,jn.forIn=function(t,e){return null==t?t:mr(t,ca(e,3),Pu)},jn.forInRight=function(t,e){return null==t?t:_r(t,ca(e,3),Pu)},jn.forOwn=function(t,e){return t&&br(t,ca(e,3))},jn.forOwnRight=function(t,e){return t&&xr(t,ca(e,3))},jn.get=Mu,jn.gt=qo,jn.gte=Bo,jn.has=function(t,e){return null!=t&&va(t,e,Nr)},jn.hasIn=Nu,jn.head=Ya,jn.identity=rc,jn.includes=function(t,e,n,r){t=Ho(t)?t:ju(t),n=n&&!r?pu(n):0;var i=t.length;return n<0&&(n=mn(i+n,0)),uu(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Qe(t,e,n)>-1},jn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:pu(n);return i<0&&(i=mn(r+i,0)),Qe(t,e,i)},jn.inRange=function(t,e,n){return e=du(e),n===i?(n=e,e=0):n=du(n),function(t,e,n){return t>=_n(e,n)&&t=-9007199254740991&&t<=p},jn.isSet=ou,jn.isString=uu,jn.isSymbol=cu,jn.isTypedArray=lu,jn.isUndefined=function(t){return t===i},jn.isWeakMap=function(t){return eu(t)&&pa(t)==I},jn.isWeakSet=function(t){return eu(t)&&"[object WeakSet]"==Tr(t)},jn.join=function(t,e){return null==t?"":$e.call(t,e)},jn.kebabCase=Wu,jn.last=Xa,jn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var a=r;return n!==i&&(a=(a=pu(n))<0?mn(r+a,0):_n(a,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,a):Be(t,Ye,a,!0)},jn.lowerCase=Yu,jn.lowerFirst=Hu,jn.lt=su,jn.lte=fu,jn.max=function(t){return t&&t.length?vr(t,rc,Mr):i},jn.maxBy=function(t,e){return t&&t.length?vr(t,ca(e,2),Mr):i},jn.mean=function(t){return He(t,rc)},jn.meanBy=function(t,e){return He(t,ca(e,2))},jn.min=function(t){return t&&t.length?vr(t,rc,Ur):i},jn.minBy=function(t,e){return t&&t.length?vr(t,ca(e,2),Ur):i},jn.stubArray=vc,jn.stubFalse=gc,jn.stubObject=function(){return{}},jn.stubString=function(){return""},jn.stubTrue=function(){return!0},jn.multiply=wc,jn.nth=function(t,e){return t&&t.length?Qr(t,pu(e)):i},jn.noConflict=function(){return ve._===this&&(ve._=Bt),this},jn.noop=cc,jn.now=Mo,jn.pad=function(t,e,n){t=mu(t);var r=(e=pu(e))?dn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Wi(ye(i),n)+t+Wi(ge(i),n)},jn.padEnd=function(t,e,n){t=mu(t);var r=(e=pu(e))?dn(t):0;return e&&re){var r=t;t=e,e=r}if(n||t%1||e%1){var a=wn();return _n(t+a*(e-t+fe("1e-"+((a+"").length-1))),e)}return $r(t,e)},jn.reduce=function(t,e,n){var r=Wo(t)?ze:Xe,i=arguments.length<3;return r(t,ca(e,4),n,i,hr)},jn.reduceRight=function(t,e,n){var r=Wo(t)?Ue:Xe,i=arguments.length<3;return r(t,ca(e,4),n,i,dr)},jn.repeat=function(t,e,n){return e=(n?_a(t,e,n):e===i)?1:pu(e),Xr(mu(t),e)},jn.replace=function(){var t=arguments,e=mu(t[0]);return t.length<3?e:e.replace(t[1],t[2])},jn.result=function(t,e,n){var r=-1,a=(e=_i(e,t)).length;for(a||(a=1,t=i);++rp)return[];var n=g,r=_n(t,g);e=ca(e),t-=g;for(var i=Ke(r,e);++n=o)return t;var c=n-dn(r);if(c<1)return r;var l=u?xi(u,0,c).join(""):t.slice(0,c);if(a===i)return l+r;if(u&&(c+=l.length-c),au(a)){if(t.slice(c).search(a)){var s,f=l;for(a.global||(a=Ct(a.source,mu(vt.exec(a))+"g")),a.lastIndex=0;s=a.exec(f);)var h=s.index;l=l.slice(0,h===i?c:h)}}else if(t.indexOf(li(a),c)!=c){var d=l.lastIndexOf(a);d>-1&&(l=l.slice(0,d))}return l+r},jn.unescape=function(t){return(t=mu(t))&&G.test(t)?t.replace($,vn):t},jn.uniqueId=function(t){var e=++Ut;return mu(t)+e},jn.upperCase=Xu,jn.upperFirst=Gu,jn.each=mo,jn.eachRight=_o,jn.first=Ya,uc(jn,(xc={},br(jn,(function(t,e){zt.call(jn.prototype,e)||(xc[e]=t)})),xc),{chain:!1}),jn.VERSION="4.17.14",Ce(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){jn[t].placeholder=jn})),Ce(["drop","take"],(function(t,e){Wn.prototype[t]=function(n){n=n===i?1:mn(pu(n),0);var r=this.__filtered__&&!e?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=_n(n,r.__takeCount__):r.__views__.push({size:_n(n,g),type:t+(r.__dir__<0?"Right":"")}),r},Wn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Ce(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Wn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ca(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Ce(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Wn.prototype[t]=function(){return this[n](1).value()[0]}})),Ce(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Wn.prototype[t]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(rc)},Wn.prototype.find=function(t){return this.filter(t).head()},Wn.prototype.findLast=function(t){return this.reverse().find(t)},Wn.prototype.invokeMap=Gr((function(t,e){return"function"==typeof t?new Wn(this):this.map((function(n){return Ar(n,t,e)}))})),Wn.prototype.reject=function(t){return this.filter(Oo(ca(t)))},Wn.prototype.slice=function(t,e){t=pu(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Wn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==i&&(n=(e=pu(e))<0?n.dropRight(-e):n.take(e-t)),n)},Wn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Wn.prototype.toArray=function(){return this.take(g)},br(Wn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),a=jn[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);a&&(jn.prototype[e]=function(){var e=this.__wrapped__,u=r?[1]:arguments,c=e instanceof Wn,l=u[0],s=c||Wo(e),f=function(t){var e=a.apply(jn,De([t],u));return r&&h?e[0]:e};s&&n&&"function"==typeof l&&1!=l.length&&(c=s=!1);var h=this.__chain__,d=!!this.__actions__.length,p=o&&!h,v=c&&!d;if(!o&&s){e=v?e:new Wn(this);var g=t.apply(e,u);return g.__actions__.push({func:ho,args:[f],thisArg:i}),new Qn(g,h)}return p&&v?t.apply(this,u):(g=this.thru(f),p?r?g.value()[0]:g.value():g)})})),Ce(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Pt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);jn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Wo(i)?i:[],t)}return this[n]((function(n){return e.apply(Wo(n)?n:[],t)}))}})),br(Wn.prototype,(function(t,e){var n=jn[e];if(n){var r=n.name+"";zt.call(Rn,r)||(Rn[r]=[]),Rn[r].push({name:e,func:n})}})),Rn[ji(i,2).name]=[{name:"wrapper",func:i}],Wn.prototype.clone=function(){var t=new Wn(this.__wrapped__);return t.__actions__=Ci(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ci(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ci(this.__views__),t},Wn.prototype.reverse=function(){if(this.__filtered__){var t=new Wn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Wn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Wo(t),r=e<0,i=n?t.length:0,a=function(t,e,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},jn.prototype.plant=function(t){for(var e,n=this;n instanceof Bn;){var r=Ua(n);r.__index__=0,r.__values__=i,e?a.__wrapped__=r:e=r;var a=r;n=n.__wrapped__}return a.__wrapped__=t,e},jn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Wn){var e=t;return this.__actions__.length&&(e=new Wn(this)),(e=e.reverse()).__actions__.push({func:ho,args:[Ja],thisArg:i}),new Qn(e,this.__chain__)}return this.thru(Ja)},jn.prototype.toJSON=jn.prototype.valueOf=jn.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},jn.prototype.first=jn.prototype.head,Jt&&(jn.prototype[Jt]=function(){return this}),jn}();ve._=gn,(r=function(){return gn}.call(e,n,e,t))===i||(t.exports=r)}.call(this)},5228:t=>{"use strict";var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,i){for(var a,o,u=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),c=1;c{"use strict";var r=n(6540),i=n(5228),a=n(9982);function o(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n




© 2015 - 2024 Weber Informatics LLC | Privacy Policy