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

webapp.dist.query.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:()=>l});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}}))),l=-1,c=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++l0)for(var n,r,i=new Array(n),a=0;a{"use strict";n.d(e,{sw:()=>l,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,l=0,c=0,s=u<=0,f=!1;function h(){if(s)return i;if(f)return f=!1,r;var e,a,o=l;if(34===t.charCodeAt(o)){for(;l++=u?s=!0:10===(a=t.charCodeAt(l++))?f=!0:13===a&&(f=!0,10===t.charCodeAt(l)&&++l),t.slice(o+1,e-1).replace(/""/g,'"')}for(;l{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 l=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")}(l,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")}))}(l,e),l=t.selectAll("g.edgePath"),a.applyTransition(l,e).style("opacity",1),l.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")})),l.selectAll("path.path").each((function(t){var n=e.edge(t);n.arrowheadId=r.uniqueId("arrowhead");var l=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(l,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(l,n.style)})),l.selectAll("defs *").remove(),l.selectAll("defs").each((function(t){var r=e.edge(t);(0,n[r.arrowhead])(o.select(this),r.arrowheadId,r,"arrowhead")})),l}},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)})),l=t.selectAll("g.node").data(u,(function(t){return t})).classed("update",!0);return l.selectAll("*").remove(),l.enter().append("g").attr("class","node").style("opacity",0),(l=t.selectAll("g.node")).each((function(t){var u=e.node(t),l=o.select(this);a.applyClass(l,u.class,(l.classed("update")?"update ":"")+"node");var c=l.append("g").attr("class","label"),s=i(c,u),f=n[u.shape],h=r.pick(s.node().getBBox(),"width","height");u.elem=this,u.id&&l.attr("id",u.id),u.labelId&&c.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,c.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(l.exit(),e).style("opacity",0).remove(),l}},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,l=Math.sqrt(e*e*u*u+n*n*o*o),c=Math.abs(e*n*o/l);r.x{function e(t,e){return t*e>0}t.exports=function(t,n,r,i){var a,o,u,l,c,s,f,h,d,p,v,m,g;if(a=n.y-t.y,u=t.x-n.x,c=n.x*t.y-t.x*n.y,d=a*r.x+u*r.y+c,p=a*i.x+u*i.y+c,0!==d&&0!==p&&e(d,p))return;if(o=i.y-r.y,l=r.x-i.x,s=i.x*r.y-r.x*i.y,f=o*t.x+l*t.y+s,h=o*n.x+l*n.y+s,0!==f&&0!==h&&e(f,h))return;if(0===(v=a*l-o*u))return;return m=Math.abs(v/2),{x:(g=u*s-l*c)<0?(g-m)/v:(g+m)/v,y:(g=o*c-a*s)<0?(g-m)/v:(g+m)/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,l=Number.POSITIVE_INFINITY;e.forEach((function(t){u=Math.min(u,t.x),l=Math.min(l,t.y)}));for(var c=i-t.width/2-u,s=a-t.height/2-l,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,l=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,l=t.width/2,c=t.height/2;Math.abs(u)*l>Math.abs(o)*c?(u<0&&(c=-c),n=0===u?0:c*o/u,r=c):(o<0&&(l=-l),n=l,r=0===o?0:l*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 l,c=u.node().getBBox();switch(n){case"top":l=-e.height/2;break;case"bottom":l=e.height/2-c.height;break;default:l=-c.height/2}return u.attr("transform","translate("+-c.width/2+","+l+")"),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),c=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 m=l(n,"output"),g=l(m,"clusters"),y=l(m,"edgePaths"),b=i(l(m,"edgeLabels"),v),_=t(l(m,"nodes"),v,d);a(v),s(_,v),f(b,v),c(y,v,p);var w=e(g,v);h(w,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?(c=t,v):c},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 l(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:()=>eb,area:()=>ub,areaRadial:()=>mb,ascending:()=>i,axisBottom:()=>lt,axisLeft:()=>ct,axisRight:()=>ut,axisTop:()=>ot,bisect:()=>c,bisectLeft:()=>l,bisectRight:()=>u,bisector:()=>a,brush:()=>po,brushSelection:()=>so,brushX:()=>fo,brushY:()=>ho,chord:()=>xo,clientPoint:()=>De,cluster:()=>rd,color:()=>mn,create:()=>Ae,creator:()=>wt,cross:()=>h,csv:()=>Dp,csvFormat:()=>su,csvFormatRows:()=>fu,csvParse:()=>lu,csvParseRows:()=>cu,cubehelix:()=>Zn,curveBasis:()=>Gb,curveBasisClosed:()=>Zb,curveBasisOpen:()=>t_,curveBundle:()=>n_,curveCardinal:()=>a_,curveCardinalClosed:()=>u_,curveCardinalOpen:()=>c_,curveCatmullRom:()=>h_,curveCatmullRomClosed:()=>p_,curveCatmullRomOpen:()=>m_,curveLinear:()=>rb,curveLinearClosed:()=>y_,curveMonotoneX:()=>S_,curveMonotoneY:()=>N_,curveNatural:()=>P_,curveStep:()=>R_,curveStepAfter:()=>I_,curveStepBefore:()=>O_,customEvent:()=>xe,descending:()=>d,deviation:()=>m,dispatch:()=>vt,drag:()=>Ke,dragDisable:()=>He,dragEnable:()=>We,dsvFormat:()=>ou,easeBack:()=>Ia,easeBackIn:()=>Ra,easeBackInOut:()=>Ia,easeBackOut:()=>Oa,easeBounce:()=>Ca,easeBounceIn:()=>Ma,easeBounceInOut:()=>Pa,easeBounceOut:()=>Ca,easeCircle:()=>ga,easeCircleIn:()=>va,easeCircleInOut:()=>ga,easeCircleOut:()=>ma,easeCubic:()=>ra,easeCubicIn:()=>ea,easeCubicInOut:()=>ra,easeCubicOut:()=>na,easeElastic:()=>za,easeElasticIn:()=>Da,easeElasticInOut:()=>Fa,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:()=>ca,easeSinInOut:()=>fa,easeSinOut:()=>sa,entries:()=>Jo,event:()=>ge,extent:()=>g,forceCenter:()=>gu,forceCollide:()=>Pu,forceLink:()=>Ou,forceManyBody:()=>Uu,forceRadial:()=>qu,forceSimulation:()=>ju,forceX:()=>Bu,forceY:()=>Hu,format:()=>Ju,formatDefaultLocale:()=>rl,formatLocale:()=>nl,formatPrefix:()=>tl,formatSpecifier:()=>Xu,geoAlbers:()=>kh,geoAlbersUsa:()=>Th,geoArea:()=>Jl,geoAzimuthalEqualArea:()=>Ch,geoAzimuthalEqualAreaRaw:()=>Mh,geoAzimuthalEquidistant:()=>Ah,geoAzimuthalEquidistantRaw:()=>Ph,geoBounds:()=>Yc,geoCentroid:()=>rs,geoCircle:()=>ps,geoClipAntimeridian:()=>Ts,geoClipCircle:()=>Ss,geoClipExtent:()=>Ps,geoClipRectangle:()=>Cs,geoConicConformal:()=>zh,geoConicConformalRaw:()=>Dh,geoConicEqualArea:()=>Eh,geoConicEqualAreaRaw:()=>xh,geoConicEquidistant:()=>qh,geoConicEquidistantRaw:()=>Uh,geoContains:()=>Ks,geoDistance:()=>Bs,geoEquirectangular:()=>jh,geoEquirectangularRaw:()=>Fh,geoGnomonic:()=>Hh,geoGnomonicRaw:()=>Bh,geoGraticule:()=>tf,geoGraticule10:()=>ef,geoIdentity:()=>Yh,geoInterpolate:()=>nf,geoLength:()=>js,geoMercator:()=>Oh,geoMercatorRaw:()=>Rh,geoNaturalEarth1:()=>$h,geoNaturalEarth1Raw:()=>Vh,geoOrthographic:()=>Xh,geoOrthographicRaw:()=>Qh,geoPath:()=>oh,geoProjection:()=>bh,geoProjectionMutator:()=>_h,geoRotation:()=>fs,geoStereographic:()=>Kh,geoStereographicRaw:()=>Gh,geoStream:()=>Ul,geoTransform:()=>uh,geoTransverseMercator:()=>Jh,geoTransverseMercatorRaw:()=>Zh,hcl:()=>Bn,hierarchy:()=>ad,histogram:()=>A,hsl:()=>En,html:()=>Pp,interpolate:()=>br,interpolateArray:()=>hr,interpolateBasis:()=>er,interpolateBasisClosed:()=>nr,interpolateCool:()=>Ny,interpolateCubehelix:()=>Yr,interpolateCubehelixDefault:()=>Ty,interpolateCubehelixLong:()=>Vr,interpolateDate:()=>dr,interpolateHcl:()=>Br,interpolateHclLong:()=>Hr,interpolateHsl:()=>Fr,interpolateHslLong:()=>jr,interpolateInferno:()=>Oy,interpolateLab:()=>Ur,interpolateMagma:()=>Ry,interpolateNumber:()=>pr,interpolateObject:()=>vr,interpolatePlasma:()=>Iy,interpolateRainbow:()=>Cy,interpolateRgb:()=>lr,interpolateRgbBasis:()=>sr,interpolateRgbBasisClosed:()=>fr,interpolateRound:()=>_r,interpolateString:()=>yr,interpolateTransformCss:()=>Cr,interpolateTransformSvg:()=>Pr,interpolateViridis:()=>Ay,interpolateWarm:()=>Sy,interpolateZoom:()=>Dr,interrupt:()=>Mi,interval:()=>pi,isoFormat:()=>ay,isoParse:()=>uy,json:()=>Ap,keys:()=>Ko,lab:()=>Dn,line:()=>ob,lineRadial:()=>vb,linkHorizontal:()=>Tb,linkRadial:()=>Nb,linkVertical:()=>Sb,local:()=>Oe,map:()=>qo,matcher:()=>Ct,max:()=>L,mean:()=>D,median:()=>z,merge:()=>F,min:()=>j,mouse:()=>ze,namespace:()=>yt,namespaces:()=>gt,nest:()=>Bo,now:()=>ai,pack:()=>Cd,packEnclose:()=>fd,packSiblings:()=>kd,pairs:()=>s,partition:()=>Ld,path:()=>Ao,permute:()=>U,pie:()=>sb,pointRadial:()=>gb,polygonArea:()=>rp,polygonCentroid:()=>ip,polygonContains:()=>cp,polygonHull:()=>lp,polygonLength:()=>sp,precisionFixed:()=>il,precisionPrefix:()=>al,precisionRound:()=>ol,quadtree:()=>ku,quantile:()=>R,quantize:()=>$r,queue:()=>yp,radialArea:()=>mb,radialLine:()=>vb,randomBates:()=>kp,randomExponential:()=>Tp,randomIrwinHall:()=>Ep,randomLogNormal:()=>xp,randomNormal:()=>wp,randomUniform:()=>_p,range:()=>E,request:()=>Mp,rgb:()=>_n,ribbon:()=>zo,scaleBand:()=>Hp,scaleIdentity:()=>nv,scaleImplicit:()=>qp,scaleLinear:()=>ev,scaleLog:()=>sv,scaleOrdinal:()=>Bp,scalePoint:()=>Yp,scalePow:()=>hv,scaleQuantile:()=>pv,scaleQuantize:()=>vv,scaleSequential:()=>Ly,scaleSqrt:()=>dv,scaleThreshold:()=>mv,scaleTime:()=>yy,scaleUtc:()=>by,scan:()=>q,schemeCategory10:()=>wy,schemeCategory20:()=>ky,schemeCategory20b:()=>xy,schemeCategory20c:()=>Ey,select:()=>Pe,selectAll:()=>Fe,selection:()=>Ce,selector:()=>Et,selectorAll:()=>Tt,set:()=>Go,shuffle:()=>B,stack:()=>F_,stackOffsetDiverging:()=>U_,stackOffsetExpand:()=>j_,stackOffsetNone:()=>L_,stackOffsetSilhouette:()=>q_,stackOffsetWiggle:()=>B_,stackOrderAscending:()=>H_,stackOrderDescending:()=>Y_,stackOrderInsideOut:()=>V_,stackOrderNone:()=>D_,stackOrderReverse:()=>$_,stratify:()=>qd,style:()=>Vt,sum:()=>H,symbol:()=>Vb,symbolCircle:()=>Mb,symbolCross:()=>Cb,symbolDiamond:()=>Rb,symbolSquare:()=>zb,symbolStar:()=>Db,symbolTriangle:()=>jb,symbolWye:()=>Wb,symbols:()=>Yb,text:()=>Rp,thresholdFreedmanDiaconis:()=>O,thresholdScott:()=>I,thresholdSturges:()=>P,tickIncrement:()=>M,tickStep:()=>C,ticks:()=>N,timeDay:()=>Fv,timeDays:()=>jv,timeFormat:()=>Bm,timeFormatDefaultLocale:()=>ny,timeFormatLocale:()=>Um,timeFriday:()=>Vv,timeFridays:()=>Jv,timeHour:()=>Lv,timeHours:()=>Dv,timeInterval:()=>bv,timeMillisecond:()=>wv,timeMilliseconds:()=>xv,timeMinute:()=>Rv,timeMinutes:()=>Ov,timeMonday:()=>Bv,timeMondays:()=>Xv,timeMonth:()=>nm,timeMonths:()=>rm,timeParse:()=>Hm,timeSaturday:()=>$v,timeSaturdays:()=>tm,timeSecond:()=>Cv,timeSeconds:()=>Pv,timeSunday:()=>qv,timeSundays:()=>Qv,timeThursday:()=>Yv,timeThursdays:()=>Zv,timeTuesday:()=>Hv,timeTuesdays:()=>Gv,timeWednesday:()=>Wv,timeWednesdays:()=>Kv,timeWeek:()=>qv,timeWeeks:()=>Qv,timeYear:()=>am,timeYears:()=>om,timeout:()=>di,timer:()=>li,timerFlush:()=>ci,touch:()=>je,touches:()=>Ue,transition:()=>Qi,transpose:()=>W,tree:()=>Qd,treemap:()=>Jd,treemapBinary:()=>tp,treemapDice:()=>Id,treemapResquarify:()=>np,treemapSlice:()=>Xd,treemapSliceDice:()=>ep,treemapSquarify:()=>Zd,tsv:()=>zp,tsvFormat:()=>vu,tsvFormatRows:()=>mu,tsvParse:()=>du,tsvParseRows:()=>pu,utcDay:()=>pm,utcDays:()=>vm,utcFormat:()=>Wm,utcFriday:()=>xm,utcFridays:()=>Cm,utcHour:()=>fm,utcHours:()=>hm,utcMillisecond:()=>wv,utcMilliseconds:()=>xv,utcMinute:()=>lm,utcMinutes:()=>cm,utcMonday:()=>ym,utcMondays:()=>Tm,utcMonth:()=>Rm,utcMonths:()=>Om,utcParse:()=>Ym,utcSaturday:()=>Em,utcSaturdays:()=>Pm,utcSecond:()=>Cv,utcSeconds:()=>Pv,utcSunday:()=>gm,utcSundays:()=>km,utcThursday:()=>wm,utcThursdays:()=>Mm,utcTuesday:()=>bm,utcTuesdays:()=>Sm,utcWednesday:()=>_m,utcWednesdays:()=>Nm,utcWeek:()=>gm,utcWeeks:()=>km,utcYear:()=>Lm,utcYears:()=>Dm,values:()=>Zo,variance:()=>v,version:()=>r,voronoi:()=>Ow,window:()=>Bt,xml:()=>Op,zip:()=>V,zoom:()=>$w,zoomIdentity:()=>zw,zoomTransform:()=>Fw});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,l=o.left;const c=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,l=0;if(null==e)for(;++o1)return l/(a-1)}function m(t,e){var n=v(t,e);return n?Math.sqrt(n):n}function g(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>=S?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=k?10:a>=T?5:a>=S?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>=S&&(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 O(t,e,n){return t=_.call(t,p).sort(i),Math.ceil((n-e)/(2*(R(t,.75)-R(t,.25))*Math.pow(t.length,-1/3)))}function I(t,e,n){return Math.ceil((n-e)/(3.5*m(t)*Math.pow(t.length,-1/3)))}function L(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 j(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 U(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)),gt.hasOwnProperty(e)?{space:gt[e],local:t}:t}function bt(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===mt&&e.documentElement.namespaceURI===mt?e.createElement(t):e.createElementNS(n,t)}}function _t(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function wt(t){var e=yt(t);return(e.local?_t:bt)(e)}function xt(){}function Et(t){return null==t?xt:function(){return this.querySelector(t)}}function kt(){return[]}function Tt(t){return null==t?kt:function(){return this.querySelectorAll(t)}}var St=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var Nt=document.documentElement;if(!Nt.matches){var Mt=Nt.webkitMatchesSelector||Nt.msMatchesSelector||Nt.mozMatchesSelector||Nt.oMatchesSelector;St=function(t){return function(){return Mt.call(this,t)}}}}const Ct=St;function Pt(t){return new Array(t.length)}function At(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}At.prototype={constructor:At,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 Rt="$";function Ot(t,e,n,r,i,a){for(var o,u=0,l=e.length,c=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 Ft(t,e){return function(){this.setAttribute(t,e)}}function jt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Ut(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 Ht(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 Vt(t,e){return t.style.getPropertyValue(e)||Bt(t).getComputedStyle(t,null).getPropertyValue(e)}function $t(t){return function(){delete this[t]}}function Qt(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 me={},ge=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(me={mouseenter:"mouseover",mouseleave:"mouseout"}));function ye(t,e,n){return t=be(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function be(t,e,n){return function(r){var i=ge;ge=r;try{t.call(this,this.__data__,e,n)}finally{ge=i}}}function _e(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r=_&&(_=b+1);!(y=m[_])&&++_=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=Lt);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a1?this.each((null==e?Ht:"function"==typeof e?Yt:Wt)(t,e,null==n?"":n)):Vt(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?$t:"function"==typeof e?Xt:Qt)(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?we:_e,null==n&&(n=!1),r=0;rf}l.mouse("drag")}function v(){Pe(ge.view).on("mousemove.drag mouseup.drag",null),We(ge.view,n),Be(),l.mouse("end")}function m(){if(i.apply(this,arguments)){var t,e,n=ge.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=ln.exec(t))?gn(parseInt(e[1],16)):(e=cn.exec(t))?new wn(e[1],e[2],e[3],1):(e=sn.exec(t))?new wn(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=fn.exec(t))?yn(e[1],e[2],e[3],e[4]):(e=hn.exec(t))?yn(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=dn.exec(t))?xn(e[1],e[2]/100,e[3]/100,1):(e=pn.exec(t))?xn(e[1],e[2]/100,e[3]/100,e[4]):vn.hasOwnProperty(t)?gn(vn[t]):"transparent"===t?new wn(NaN,NaN,NaN,0):null}function gn(t){return new wn(t>>16&255,t>>8&255,255&t,1)}function yn(t,e,n,r){return r<=0&&(t=e=n=NaN),new wn(t,e,n,r)}function bn(t){return t instanceof tn||(t=mn(t)),t?new wn((t=t.rgb()).r,t.g,t.b,t.opacity):new wn}function _n(t,e,n,r){return 1===arguments.length?bn(t):new wn(t,e,n,null==r?1:r)}function wn(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function xn(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=mn(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,l=(a+i)/2;return u?(o=e===a?(n-r)/u+6*(n0&&l<1?0:o,new kn(o,u,l,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,mn,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Ze(wn,_n,Je(tn,{brighter:function(t){return t=null==t?nn:Math.pow(nn,t),new wn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?en:Math.pow(en,t),new wn(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 wn(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 Sn=Math.PI/180,Nn=180/Math.PI,Mn=.95047,Cn=1,Pn=1.08883,An=4/29,Rn=6/29,On=3*Rn*Rn,In=Rn*Rn*Rn;function Ln(t){if(t instanceof zn)return new zn(t.l,t.a,t.b,t.opacity);if(t instanceof Hn){var e=t.h*Sn;return new zn(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof wn||(t=bn(t));var n=qn(t.r),r=qn(t.g),i=qn(t.b),a=Fn((.4124564*n+.3575761*r+.1804375*i)/Mn),o=Fn((.2126729*n+.7151522*r+.072175*i)/Cn);return new zn(116*o-16,500*(a-o),200*(o-Fn((.0193339*n+.119192*r+.9503041*i)/Pn)),t.opacity)}function Dn(t,e,n,r){return 1===arguments.length?Ln(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 Fn(t){return t>In?Math.pow(t,1/3):t/On+An}function jn(t){return t>Rn?t*t*t:On*(t-An)}function Un(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 Hn)return new Hn(t.h,t.c,t.l,t.opacity);t instanceof zn||(t=Ln(t));var e=Math.atan2(t.b,t.a)*Nn;return new Hn(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new Hn(t,e,n,null==r?1:r)}function Hn(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*jn(t),new wn(Un(3.2404542*(e=Mn*jn(e))-1.5371385*t-.4985314*(n=Pn*jn(n))),Un(-.969266*e+1.8760108*t+.041556*n),Un(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),Ze(Hn,Bn,Je(tn,{brighter:function(t){return new Hn(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Hn(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return Ln(this).rgb()}}));var Wn=-.14861,Yn=1.78277,Vn=-.29227,$n=-.90649,Qn=1.97294,Xn=Qn*$n,Gn=Qn*Yn,Kn=Yn*Vn-$n*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 wn||(t=bn(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=(Qn*(n-i)-Vn*a)/$n,u=Math.sqrt(o*o+a*a)/(Qn*i*(1-i)),l=u?Math.atan2(o,a)*Nn-120:NaN;return new Jn(l<0?l+360:l,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)*Sn,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new wn(255*(e+n*(Wn*r+Yn*i)),255*(e+n*(Vn*r+$n*i)),255*(e+n*(Qn*r)),this.opacity)}}));const lr=function t(e){var n=or(e);function r(t,e){var r=n((t=_n(t)).r,(e=_n(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 cr(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,l.push({i:o,x:pr(n,r)})),a=gr.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,l),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,l),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,l),a=o=null,function(t){for(var e,n=-1,r=l.length;++n=0&&e._call.call(null,t),e=e._next;--Gr}function si(){ei=(ti=ri.now())+ni,Gr=Kr=0;try{ci()}finally{Gr=0,function(){var t,e,n=Qr,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:Qr=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=li.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:Qr=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"),mi=[],gi=0,yi=1,bi=2,_i=3,wi=4,xi=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=yi,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)}function o(a){var c,s,f,h;if(n.state!==yi)return l();for(c in i)if((h=i[c]).name===n.name){if(h.state===_i)return di(o);h.state===wi?(h.state=Ei,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[c]):+cgi)throw new Error("too late; already scheduled");return n}function Si(t,e){var n=Ni(t,e);if(n.state>bi)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 Mi(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>bi&&n.state=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Ti:Si;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=yt(t),r="transform"===n?Pr:Ri;return this.attrTween(t,"function"==typeof e?(n.local?Fi:zi)(n,r,Ai(this,"attr."+t,e)):null==e?(n.local?Ii:Oi)(n):(n.local?Di:Li)(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=yt(t);return this.tween(n,(r.local?ji:Ui)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?Cr:Ri;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var a=Vt(this,t),o=(this.style.removeProperty(t),Vt(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=Vt(this,t),u=n(this);return null==u&&(this.style.removeProperty(t),u=Vt(this,t)),o===u?null:o===r&&u===i?a:a=e(r=o,i=u)}}(t,r,Ai(this,"style."+t,e)):function(t,e,n){var r,i;return function(){var a=Vt(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}}(Ai(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;ayi&&n.name===e)return new $i([[t]],qa,e,+r);return null}function Ha(t){return function(){return t}}function Wa(t,e,n){this.target=t,this.type=e,this.selection=n}function Ya(){ge.stopImmediatePropagation()}function Va(){ge.preventDefault(),ge.stopImmediatePropagation()}var $a={name:"drag"},Qa={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!ge.button}function uo(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function lo(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function co(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=lo(this).extent;Pe(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=Pe(this),e=lo(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 l(t,e){return t.__brush.emitter||new c(t,e)}function c(t,e){this.that=t,this.args=e,this.state=t.__brush,this.active=0}function s(){if(ge.touches){if(ge.changedTouches.length0&&(n=i-d),x<0?f=h-p:x>0&&(a=o-p),_=Qa,L.attr("cursor",to.selection),F());break;default:return}Va()}),!0).on("keyup.brush",(function(){switch(ge.keyCode){case 16:P&&(m=g=P=!1,F());break;case 18:_===Ga&&(w<0?c=s:w>0&&(n=i),x<0?f=h:x>0&&(a=o),_=Xa,F());break;case 32:_===Qa&&(ge.altKey?(w&&(c=s-d*w,n=i+d*w),x&&(f=h-p*x,a=o+p*x),_=Ga):(w<0?c=s:w>0&&(n=i),x<0?f=h:x>0&&(a=o),_=Xa),L.attr("cursor",to[b]),F());break;default:return}Va()}),!0).on("mousemove.brush",z,!0).on("mouseup.brush",j,!0);He(ge.view)}Ya(),Mi(y),u.call(y),O.start()}function z(){var t=ze(y);!P||m||g||(Math.abs(t[0]-R[0])>Math.abs(t[1]-R[1])?g=!0:m=!0),R=t,v=!0,Va(),F()}function F(){var t;switch(d=R[0]-A[0],p=R[1]-A[1],_){case Qa:case $a:w&&(d=Math.max(S-n,Math.min(M-c,d)),i=n+d,s=c+d),x&&(p=Math.max(N-a,Math.min(C-f,p)),o=a+p,h=f+p);break;case Xa:w<0?(d=Math.max(S-n,Math.min(M-n,d)),i=n+d,s=c):w>0&&(d=Math.max(S-c,Math.min(M-c,d)),i=n,s=c+d),x<0?(p=Math.max(N-a,Math.min(C-a,p)),o=a+p,h=f):x>0&&(p=Math.max(N-f,Math.min(C-f,p)),o=a,h=f+p);break;case Ga:w&&(i=Math.max(S,Math.min(M,n-d*w)),s=Math.max(S,Math.min(M,c+d*w))),x&&(o=Math.max(N,Math.min(C,a-p*x)),h=Math.max(N,Math.min(C,f+p*x)))}sNo)if(Math.abs(s*u-l*c)>No&&i){var h=n-a,d=r-o,p=u*u+l*l,v=h*h+d*d,m=Math.sqrt(p),g=Math.sqrt(f),y=i*Math.tan((To-Math.acos((p+f-v)/(2*m*g)))/2),b=y/g,_=y/m;Math.abs(b-1)>No&&(this._+="L"+(t+b*c)+","+(e+b*s)),this._+="A"+i+","+i+",0,0,"+ +(s*h>c*d)+","+(this._x1=t+_*u)+","+(this._y1=e+_*l)}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),l=t+o,c=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"+l+","+c:(Math.abs(this._x1-l)>No||Math.abs(this._y1-c)>No)&&(this._+="L"+l+","+c),n&&(f<0&&(f=f%So+So),f>Mo?this._+="A"+n+","+n+",0,1,"+s+","+(t-o)+","+(e-u)+"A"+n+","+n+",0,1,"+s+","+(this._x1=l)+","+(this._y1=c):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 Ao=Po;function Ro(t){return t.source}function Oo(t){return t.target}function Io(t){return t.radius}function Lo(t){return t.startAngle}function Do(t){return t.endAngle}function zo(){var t=Ro,e=Oo,n=Io,r=Lo,i=Do,a=null;function o(){var o,u=Eo.call(arguments),l=t.apply(this,u),c=e.apply(this,u),s=+n.apply(this,(u[0]=l,u)),f=r.apply(this,u)-bo,h=i.apply(this,u)-bo,d=s*mo(f),p=s*go(f),v=+n.apply(this,(u[0]=c,u)),m=r.apply(this,u)-bo,g=i.apply(this,u)-bo;if(a||(a=o=Ao()),a.moveTo(d,p),a.arc(0,0,s,f,h),f===m&&h===g||(a.quadraticCurveTo(0,0,v*mo(m),v*go(m)),a.arc(0,0,v,m,g)),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 Fo="$";function jo(){}function Uo(t,e){var n=new jo;if(t instanceof jo)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 l,c,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,Ho,Wo)},map:function(t){return a(t,0,Yo,Vo)},entries:function(t){return o(a(t,0,Yo,Vo),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 Ho(){return{}}function Wo(t,e,n){t[e]=n}function Yo(){return qo()}function Vo(t,e,n){t.set(e,n)}function $o(){}var Qo=qo.prototype;function Xo(t,e){var n=new $o;if(t instanceof $o)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)for(;++r=a?l=!0:(r=t.charCodeAt(o++))===ru?c=!0:r===iu&&(c=!0,t.charCodeAt(o)===ru&&++o),t.slice(i+1,e-1).replace(/""/g,'"')}for(;o=(a=(v+g)/2))?v=a:g=a,(s=n>=(o=(m+y)/2))?m=o:y=o,i=d,!(d=d[f=s<<1|c]))return i[f]=p,t;if(u=+t._x.call(null,d.data),l=+t._y.call(null,d.data),e===u&&n===l)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),(c=e>=(a=(v+g)/2))?v=a:g=a,(s=n>=(o=(m+y)/2))?m=o:y=o}while((f=s<<1|c)==(h=(l>=o)<<1|u>=a));return i[h]=d,i[f]=p,t}function wu(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function xu(t){return t[0]}function Eu(t){return t[1]}function ku(t,e,n){var r=new Tu(null==e?xu: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 Su(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 Mu(t){return t.x+t.vx}function Cu(t){return t.y+t.vy}function Pu(t){var e,n,r=1,i=1;function a(){for(var t,a,u,l,c,s,f,h=e.length,d=0;dl+d||ic+d||au.index){var p=l-o.x-o.vx,v=c-o.y-o.vy,m=p*p+v*v;mt.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,l=i-n,c=this._root;switch(u=(e<(r+a)/2)<<1|t<(n+i)/2){case 0:do{(o=new Array(4))[u]=c,c=o}while(a=r+(l*=2),t>(i=n+l)||e>a);break;case 1:do{(o=new Array(4))[u]=c,c=o}while(a=r+(l*=2),(n=i-l)>t||e>a);break;case 2:do{(o=new Array(4))[u]=c,c=o}while(r=a-(l*=2),t>(i=n+l)||r>e);break;case 3:do{(o=new Array(4))[u]=c,c=o}while(r=a-(l*=2),(n=i-l)>t||r>e)}this._root&&this._root.length&&(this._root=c)}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,l,c,s=this._x0,f=this._y0,h=this._x1,d=this._y1,p=[],v=this._root;for(v&&p.push(new wu(v,s,f,h,d)),null==n?n=1/0:(s=t-n,f=e-n,h=t+n,d=e+n,n*=n);l=p.pop();)if(!(!(v=l.node)||(i=l.x0)>h||(a=l.y0)>d||(o=l.x1)=g)<<1|t>=m)&&(l=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=l)}else{var y=t-+this._x.call(null,v.data),b=e-+this._y.call(null,v.data),_=y*y+b*b;if(_=(u=(p+m)/2))?p=u:m=u,(s=o>=(l=(v+g)/2))?v=l:g=l,e=d,!(d=d[f=s<<1|c]))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,l,c=0,s=t.length;for(null==r?r=1/0:r*=r,c=0;c1?(c.on(t,n),e):c.on(t)}}}function Uu(){var t,e,n,r,i=yu(-30),a=1,o=1/0,u=.81;function l(r){var i,a=t.length,o=ku(t,Iu,Lu).visitAfter(s);for(n=r,i=0;i=o)){(t.data!==e||t.next)&&(0===s&&(d+=(s=bu())*s),0===f&&(d+=(f=bu())*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 Vu(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 $u={"":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 Vu(100*t,e)},r:Vu,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 Qu=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function Xu(t){return new Gu(t)}function Gu(t){if(!(e=Qu.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],l=!!e[7],c=e[8]&&+e[8].slice(1),s=e[9]||"";"n"===s?(l=!0,s="g"):$u[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=l,this.precision=c,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,tl,el=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function nl(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],l=0;i>0&&u>0&&(l+u+1>r&&(u=Math.max(1,r-l)),a.push(t.substring(i-=u,i+u)),!((l+=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 l(t){var e=(t=Xu(t)).fill,n=t.align,l=t.sign,c=t.symbol,s=t.zero,f=t.width,h=t.comma,d=t.precision,p=t.type,v="$"===c?i[0]:"#"===c&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",m="$"===c?i[1]:/[%p]/.test(p)?u:"",g=$u[p],y=!p||/[defgprs%]/.test(p);function b(t){var i,u,c,b=v,_=m;if("c"===p)_=g(t)+_,t="";else{var w=(t=+t)<0;if(t=g(Math.abs(t),d),w&&0==+t&&(w=!1),b=(w?"("===l?l:"-":"-"===l||"("===l?"":l)+b,_=("s"===p?el[8+Du/3]:"")+_+(w&&"("===l?")":""),y)for(i=-1,u=t.length;++i(c=t.charCodeAt(i))||c>57){_=(46===c?a+t.slice(i+1):t.slice(i))+_,t=t.slice(0,i);break}}h&&!s&&(t=r(t,1/0));var x=b.length+t.length+_.length,E=x>1)+b+t+_+E.slice(x);break;default:t=E+b+t+_}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)),b.toString=function(){return t+""},b}return{format:l,formatPrefix:function(t,e){var n=l(((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=el[8+r/3];return function(t){return n(i*t)+a}}}}function rl(t){return Zu=nl(t),Ju=Zu.format,tl=Zu.formatPrefix,Zu}function il(t){return Math.max(0,-Yu(Math.abs(t)))}function al(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Yu(e)/3)))-Yu(Math.abs(t)))}function ol(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Yu(e)-Yu(t))+1}function ul(){return new ll}function ll(){this.reset()}rl({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),ll.prototype={constructor:ll,reset:function(){this.s=this.t=0},add:function(t){sl(cl,t,this.t),sl(this,cl.s,this.s),this.s?this.t+=cl.t:this.s=cl.t},valueOf:function(){return this.s}};var cl=new ll;function sl(t,e,n){var r=t.s=e+n,i=r-e,a=r-i;t.t=e-a+(n-i)}var fl=1e-6,hl=1e-12,dl=Math.PI,pl=dl/2,vl=dl/4,ml=2*dl,gl=180/dl,yl=dl/180,bl=Math.abs,_l=Math.atan,wl=Math.atan2,xl=Math.cos,El=Math.ceil,kl=Math.exp,Tl=(Math.floor,Math.log),Sl=Math.pow,Nl=Math.sin,Ml=Math.sign||function(t){return t>0?1:t<0?-1:0},Cl=Math.sqrt,Pl=Math.tan;function Al(t){return t>1?0:t<-1?dl:Math.acos(t)}function Rl(t){return t>1?pl:t<-1?-pl:Math.asin(t)}function Ol(t){return(t=Nl(t/2))*t}function Il(){}function Ll(t,e){t&&zl.hasOwnProperty(t.type)&&zl[t.type](t,e)}var Dl={Feature:function(t,e){Ll(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=xl(e=(e*=yl)/2+vl),o=Nl(e),u=Yl*o,l=Wl*a+u*xl(i),c=u*r*Nl(i);Vl.add(wl(c,l)),Hl=t,Wl=a,Yl=o}function Jl(t){return $l.reset(),Ul(t,Ql),2*$l}function tc(t){return[wl(t[1],t[0]),Rl(t[2])]}function ec(t){var e=t[0],n=t[1],r=xl(n);return[r*xl(e),r*Nl(e),Nl(n)]}function nc(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function rc(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 ic(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function ac(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function oc(t){var e=Cl(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var uc,lc,cc,sc,fc,hc,dc,pc,vc,mc,gc,yc,bc,_c,wc,xc,Ec,kc,Tc,Sc,Nc,Mc,Cc,Pc,Ac,Rc,Oc=ul(),Ic={point:Lc,lineStart:zc,lineEnd:Fc,polygonStart:function(){Ic.point=jc,Ic.lineStart=Uc,Ic.lineEnd=qc,Oc.reset(),Ql.polygonStart()},polygonEnd:function(){Ql.polygonEnd(),Ic.point=Lc,Ic.lineStart=zc,Ic.lineEnd=Fc,Vl<0?(uc=-(cc=180),lc=-(sc=90)):Oc>fl?sc=90:Oc<-fl&&(lc=-90),mc[0]=uc,mc[1]=cc}};function Lc(t,e){vc.push(mc=[uc=t,cc=t]),esc&&(sc=e)}function Dc(t,e){var n=ec([t*yl,e*yl]);if(pc){var r=rc(pc,n),i=rc([r[1],-r[0],0],r);oc(i),i=tc(i);var a,o=t-fc,u=o>0?1:-1,l=i[0]*gl*u,c=bl(o)>180;c^(u*fcsc&&(sc=a):c^(u*fc<(l=(l+360)%360-180)&&lsc&&(sc=e)),c?tBc(uc,cc)&&(cc=t):Bc(t,cc)>Bc(uc,cc)&&(uc=t):cc>=uc?(tcc&&(cc=t)):t>fc?Bc(uc,t)>Bc(uc,cc)&&(cc=t):Bc(t,cc)>Bc(uc,cc)&&(uc=t)}else vc.push(mc=[uc=t,cc=t]);esc&&(sc=e),pc=n,fc=t}function zc(){Ic.point=Dc}function Fc(){mc[0]=uc,mc[1]=cc,Ic.point=Lc,pc=null}function jc(t,e){if(pc){var n=t-fc;Oc.add(bl(n)>180?n+(n>0?360:-360):n)}else hc=t,dc=e;Ql.point(t,e),Dc(t,e)}function Uc(){Ql.lineStart()}function qc(){jc(hc,dc),Ql.lineEnd(),bl(Oc)>fl&&(uc=-(cc=180)),mc[0]=uc,mc[1]=cc,pc=null}function Bc(t,e){return(e-=t)<0?e+360:e}function Hc(t,e){return t[0]-e[0]}function Wc(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:eBc(r[0],r[1])&&(r[1]=i[1]),Bc(i[0],r[1])>Bc(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=Bc(r[1],i[0]))>o&&(o=u,uc=i[0],cc=r[1])}return vc=mc=null,uc===1/0||lc===1/0?[[NaN,NaN],[NaN,NaN]]:[[uc,lc],[cc,sc]]}var Vc={sphere:Il,point:$c,lineStart:Xc,lineEnd:Zc,polygonStart:function(){Vc.lineStart=Jc,Vc.lineEnd=ts},polygonEnd:function(){Vc.lineStart=Xc,Vc.lineEnd=Zc}};function $c(t,e){t*=yl;var n=xl(e*=yl);Qc(n*xl(t),n*Nl(t),Nl(e))}function Qc(t,e,n){++gc,bc+=(t-bc)/gc,_c+=(e-_c)/gc,wc+=(n-wc)/gc}function Xc(){Vc.point=Gc}function Gc(t,e){t*=yl;var n=xl(e*=yl);Pc=n*xl(t),Ac=n*Nl(t),Rc=Nl(e),Vc.point=Kc,Qc(Pc,Ac,Rc)}function Kc(t,e){t*=yl;var n=xl(e*=yl),r=n*xl(t),i=n*Nl(t),a=Nl(e),o=wl(Cl((o=Ac*a-Rc*i)*o+(o=Rc*r-Pc*a)*o+(o=Pc*i-Ac*r)*o),Pc*r+Ac*i+Rc*a);yc+=o,xc+=o*(Pc+(Pc=r)),Ec+=o*(Ac+(Ac=i)),kc+=o*(Rc+(Rc=a)),Qc(Pc,Ac,Rc)}function Zc(){Vc.point=$c}function Jc(){Vc.point=es}function ts(){ns(Mc,Cc),Vc.point=$c}function es(t,e){Mc=t,Cc=e,t*=yl,e*=yl,Vc.point=ns;var n=xl(e);Pc=n*xl(t),Ac=n*Nl(t),Rc=Nl(e),Qc(Pc,Ac,Rc)}function ns(t,e){t*=yl;var n=xl(e*=yl),r=n*xl(t),i=n*Nl(t),a=Nl(e),o=Ac*a-Rc*i,u=Rc*r-Pc*a,l=Pc*i-Ac*r,c=Cl(o*o+u*u+l*l),s=Rl(c),f=c&&-s/c;Tc+=f*o,Sc+=f*u,Nc+=f*l,yc+=s,xc+=s*(Pc+(Pc=r)),Ec+=s*(Ac+(Ac=i)),kc+=s*(Rc+(Rc=a)),Qc(Pc,Ac,Rc)}function rs(t){gc=yc=bc=_c=wc=xc=Ec=kc=Tc=Sc=Nc=0,Ul(t,Vc);var e=Tc,n=Sc,r=Nc,i=e*e+n*n+r*r;return idl?t-ml:t<-dl?t+ml:t,e]}function us(t,e,n){return(t%=ml)?e||n?as(cs(t),ss(e,n)):cs(t):e||n?ss(e,n):os}function ls(t){return function(e,n){return[(e+=t)>dl?e-ml:e<-dl?e+ml:e,n]}}function cs(t){var e=ls(t);return e.invert=ls(-t),e}function ss(t,e){var n=xl(t),r=Nl(t),i=xl(e),a=Nl(e);function o(t,e){var o=xl(e),u=xl(t)*o,l=Nl(t)*o,c=Nl(e),s=c*n+u*r;return[wl(l*i-s*a,u*n-c*r),Rl(s*i+l*a)]}return o.invert=function(t,e){var o=xl(e),u=xl(t)*o,l=Nl(t)*o,c=Nl(e),s=c*i-l*a;return[wl(l*i+c*a,u*n+s*r),Rl(s*n-u*r)]},o}function fs(t){function e(e){return(e=t(e[0]*yl,e[1]*yl))[0]*=gl,e[1]*=gl,e}return t=us(t[0]*yl,t[1]*yl,t.length>2?t[2]*yl:0),e.invert=function(e){return(e=t.invert(e[0]*yl,e[1]*yl))[0]*=gl,e[1]*=gl,e},e}function hs(t,e,n,r,i,a){if(n){var o=xl(e),u=Nl(e),l=r*n;null==i?(i=e+r*ml,a=e-l/2):(i=ds(o,i),a=ds(o,a),(r>0?ia)&&(i+=r*ml));for(var c,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 ms(t,e){return bl(t[0]-e[0])=0;--a)i.point((s=c[a])[0],s[1]);else r(h.x,h.p.x,-1,i);h=h.p}c=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}}function bs(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r=0?1:-1,k=E*x,T=k>dl,S=p*_;if(_s.add(wl(S*E*Nl(k),v*w+S*xl(k))),a+=T?x+E*ml:x,T^h>=n^y>=n){var N=rc(ec(f),ec(g));oc(N);var M=rc(i,N);oc(M);var C=(T^x>=0?-1:1)*Rl(M[2]);(r>C||r===C&&(N[0]||N[1]))&&(o+=T^x>=0?1:-1)}}return(a<-fl||a0){for(f||(i.polygonStart(),f=!0),i.lineStart(),t=0;t1&&2&l&&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]-pl-fl:pl-t[1])-((e=e.x)[0]<0?e[1]-pl-fl:pl-e[1])}const Ts=xs((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?dl:-dl,l=bl(a-n);bl(l-dl)0?pl:-pl),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(a,r),e=0):i!==u&&l>=dl&&(bl(n-i)fl?_l((Nl(e)*(a=xl(r))*Nl(n)-Nl(r)*(i=xl(e))*Nl(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*pl,r.point(-dl,i),r.point(0,i),r.point(dl,i),r.point(dl,0),r.point(dl,-i),r.point(0,-i),r.point(-dl,-i),r.point(-dl,0),r.point(-dl,i);else if(bl(t[0]-e[0])>fl){var a=t[0]0,i=bl(e)>fl;function a(t,n){return xl(t)*xl(n)>e}function o(t,n,r){var i=[1,0,0],a=rc(ec(t),ec(n)),o=nc(a,a),u=a[0],l=o-u*u;if(!l)return!r&&t;var c=e*o/l,s=-e*u/l,f=rc(i,a),h=ac(i,c);ic(h,ac(a,s));var d=f,p=nc(h,d),v=nc(d,d),m=p*p-v*(nc(h,h)-1);if(!(m<0)){var g=Cl(m),y=ac(d,(-p-g)/v);if(ic(y,h),y=tc(y),!r)return y;var b,_=t[0],w=n[0],x=t[1],E=n[1];w<_&&(b=_,_=w,w=b);var k=w-_,T=bl(k-dl)0^y[1]<(bl(y[0]-_)dl^(_<=y[0]&&y[0]<=w)){var S=ac(d,(-p+g)/v);return ic(S,h),[y,tc(S)]}}}function u(e,n){var i=r?t:dl-t,a=0;return e<-i?a|=1:e>i&&(a|=2),n<-i?a|=4:n>i&&(a|=8),a}return xs(a,(function(t){var e,n,l,c,s;return{lineStart:function(){c=l=!1,s=1},point:function(f,h){var d,p=[f,h],v=a(f,h),m=r?v?0:u(f,h):v?u(f+(f<0?dl:-dl),h):0;if(!e&&(c=l=v)&&t.lineStart(),v!==l&&(!(d=o(e,p))||ms(e,d)||ms(p,d))&&(p[0]+=fl,p[1]+=fl,v=a(p[0],p[1])),v!==l)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 g;m&n||!(g=o(p,e,!0))||(s=0,r?(t.lineStart(),t.point(g[0][0],g[0][1]),t.point(g[1][0],g[1][1]),t.lineEnd()):(t.point(g[1][0],g[1][1]),t.lineEnd(),t.lineStart(),t.point(g[0][0],g[0][1])))}!v||e&&ms(e,p)||t.point(p[0],p[1]),e=p,l=v,n=m},lineEnd:function(){l&&t.lineEnd(),e=null},clean:function(){return s|(c&&l)<<1}}}),(function(e,r,i,a){hs(a,t,n,i,e,r)}),r?[0,-t]:[-dl,t-dl])}var Ns=1e9,Ms=-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,c){var s=0,f=0;if(null==i||(s=o(i,u))!==(f=o(a,u))||l(i,a)<0^u>0)do{c.point(0===s||3===s?t:n,s>1?r:e)}while((s=(s+u+4)%4)!==f);else c.point(a[0],a[1])}function o(r,i){return bl(r[0]-t)0?0:3:bl(r[0]-n)0?2:1:bl(r[1]-e)0?1:0:i>0?3:2}function u(t,e){return l(t.x,e.x)}function l(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 l,c,s,f,h,d,p,v,m,g,y,b=o,_=vs(),w={point:x,lineStart:function(){w.point=E,c&&c.push(s=[]);g=!0,m=!1,p=v=NaN},lineEnd:function(){l&&(E(f,h),d&&m&&_.rejoin(),l.push(_.result()));w.point=x,m&&b.lineEnd()},polygonStart:function(){b=_,l=[],c=[],y=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=c.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=y&&e,i=(l=F(l)).length;(n||i)&&(o.polygonStart(),n&&(o.lineStart(),a(null,null,1,o),o.lineEnd()),i&&ys(l,u,e,a,o),o.polygonEnd());b=o,l=c=s=null}};function x(t,e){i(t,e)&&b.point(t,e)}function E(a,o){var u=i(a,o);if(c&&s.push([a,o]),g)f=a,h=o,d=u,g=!1,u&&(b.lineStart(),b.point(a,o));else if(u&&m)b.point(a,o);else{var l=[p=Math.max(Ms,Math.min(Ns,p)),v=Math.max(Ms,Math.min(Ns,v))],_=[a=Math.max(Ms,Math.min(Ns,a)),o=Math.max(Ms,Math.min(Ns,o))];!function(t,e,n,r,i,a){var o,u=t[0],l=t[1],c=0,s=1,f=e[0]-u,h=e[1]-l;if(o=n-u,f||!(o>0)){if(o/=f,f<0){if(o0){if(o>s)return;o>c&&(c=o)}if(o=i-u,f||!(o<0)){if(o/=f,f<0){if(o>s)return;o>c&&(c=o)}else if(f>0){if(o0)){if(o/=h,h<0){if(o0){if(o>s)return;o>c&&(c=o)}if(o=a-l,h||!(o<0)){if(o/=h,h<0){if(o>s)return;o>c&&(c=o)}else if(h>0){if(o0&&(t[0]=u+c*f,t[1]=l+c*h),s<1&&(e[0]=u+s*f,e[1]=l+s*h),!0}}}}}(l,_,t,e,n,r)?u&&(b.lineStart(),b.point(a,o),y=!1):(m||(b.lineStart(),b.point(l[0],l[1])),b.point(_[0],_[1]),u||b.lineEnd(),y=!1)}p=a,v=o,m=u}return w}}function Ps(){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 As,Rs,Os,Is=ul(),Ls={sphere:Il,point:Il,lineStart:function(){Ls.point=zs,Ls.lineEnd=Ds},lineEnd:Il,polygonStart:Il,polygonEnd:Il};function Ds(){Ls.point=Ls.lineEnd=Il}function zs(t,e){As=t*=yl,Rs=Nl(e*=yl),Os=xl(e),Ls.point=Fs}function Fs(t,e){t*=yl;var n=Nl(e*=yl),r=xl(e),i=bl(t-As),a=xl(i),o=r*Nl(i),u=Os*n-Rs*r*a,l=Rs*n+Os*r*a;Is.add(wl(Cl(o*o+u*u),l)),As=t,Rs=n,Os=r}function js(t){return Is.reset(),Ul(t,Ls),+Is}var Us=[null,null],qs={type:"LineString",coordinates:Us};function Bs(t,e){return Us[0]=t,Us[1]=e,js(qs)}var Hs={Feature:function(t,e){return Ys(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++rfl})).map(l)).concat(E(El(a/d)*d,i,d).filter((function(t){return bl(t%v)>fl})).map(c))}return g.lines=function(){return y().map((function(t){return{type:"LineString",coordinates:t}}))},g.outline=function(){return{type:"Polygon",coordinates:[s(r).concat(f(o).slice(1),s(n).reverse().slice(1),f(u).reverse().slice(1))]}},g.extent=function(t){return arguments.length?g.extentMajor(t).extentMinor(t):g.extentMinor()},g.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),g.precision(m)):[[r,u],[n,o]]},g.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),g.precision(m)):[[e,a],[t,i]]},g.step=function(t){return arguments.length?g.stepMajor(t).stepMinor(t):g.stepMinor()},g.stepMajor=function(t){return arguments.length?(p=+t[0],v=+t[1],g):[p,v]},g.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],g):[h,d]},g.precision=function(h){return arguments.length?(m=+h,l=Zs(a,i,90),c=Js(e,t,m),s=Zs(u,o,90),f=Js(r,n,m),g):m},g.extentMajor([[-180,-90+fl],[180,90-fl]]).extentMinor([[-180,-80-fl],[180,80+fl]])}function ef(){return tf()()}function nf(t,e){var n=t[0]*yl,r=t[1]*yl,i=e[0]*yl,a=e[1]*yl,o=xl(r),u=Nl(r),l=xl(a),c=Nl(a),s=o*xl(n),f=o*Nl(n),h=l*xl(i),d=l*Nl(i),p=2*Rl(Cl(Ol(a-r)+o*l*Ol(i-n))),v=Nl(p),m=p?function(t){var e=Nl(t*=p)/v,n=Nl(p-t)/v,r=n*s+e*h,i=n*f+e*d,a=n*u+e*c;return[wl(i,r)*gl,wl(a,Cl(r*r+i*i))*gl]}:function(){return[n*gl,r*gl]};return m.distance=p,m}function rf(t){return t}var af,of,uf,lf,cf=ul(),sf=ul(),ff={point:Il,lineStart:Il,lineEnd:Il,polygonStart:function(){ff.lineStart=hf,ff.lineEnd=vf},polygonEnd:function(){ff.lineStart=ff.lineEnd=ff.point=Il,cf.add(bl(sf)),sf.reset()},result:function(){var t=cf/2;return cf.reset(),t}};function hf(){ff.point=df}function df(t,e){ff.point=pf,af=uf=t,of=lf=e}function pf(t,e){sf.add(lf*t-uf*e),uf=t,lf=e}function vf(){pf(af,of)}const mf=ff;var gf=1/0,yf=gf,bf=-gf,_f=bf,wf={point:function(t,e){tbf&&(bf=t);e_f&&(_f=e)},lineStart:Il,lineEnd:Il,polygonStart:Il,polygonEnd:Il,result:function(){var t=[[gf,yf],[bf,_f]];return bf=_f=-(yf=gf=1/0),t}};const xf=wf;var Ef,kf,Tf,Sf,Nf=0,Mf=0,Cf=0,Pf=0,Af=0,Rf=0,Of=0,If=0,Lf=0,Df={point:zf,lineStart:Ff,lineEnd:qf,polygonStart:function(){Df.lineStart=Bf,Df.lineEnd=Hf},polygonEnd:function(){Df.point=zf,Df.lineStart=Ff,Df.lineEnd=qf},result:function(){var t=Lf?[Of/Lf,If/Lf]:Rf?[Pf/Rf,Af/Rf]:Cf?[Nf/Cf,Mf/Cf]:[NaN,NaN];return Nf=Mf=Cf=Pf=Af=Rf=Of=If=Lf=0,t}};function zf(t,e){Nf+=t,Mf+=e,++Cf}function Ff(){Df.point=jf}function jf(t,e){Df.point=Uf,zf(Tf=t,Sf=e)}function Uf(t,e){var n=t-Tf,r=e-Sf,i=Cl(n*n+r*r);Pf+=i*(Tf+t)/2,Af+=i*(Sf+e)/2,Rf+=i,zf(Tf=t,Sf=e)}function qf(){Df.point=zf}function Bf(){Df.point=Wf}function Hf(){Yf(Ef,kf)}function Wf(t,e){Df.point=Yf,zf(Ef=Tf=t,kf=Sf=e)}function Yf(t,e){var n=t-Tf,r=e-Sf,i=Cl(n*n+r*r);Pf+=i*(Tf+t)/2,Af+=i*(Sf+e)/2,Rf+=i,Of+=(i=Sf*t-Tf*e)*(Tf+t),If+=i*(Sf+e),Lf+=3*i,zf(Tf=t,Sf=e)}const Vf=Df;function $f(t){this._context=t}$f.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,ml)}},result:Il};var Qf,Xf,Gf,Kf,Zf,Jf=ul(),th={point:Il,lineStart:function(){th.point=eh},lineEnd:function(){Qf&&nh(Xf,Gf),th.point=Il},polygonStart:function(){Qf=!0},polygonEnd:function(){Qf=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(Cl(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)),Ul(t,n(r))),r.result()}return a.area=function(t){return Ul(t,n(mf)),mf.result()},a.measure=function(t){return Ul(t,n(rh)),rh.result()},a.bounds=function(t){return Ul(t,n(xf)),xf.result()},a.centroid=function(t){return Ul(t,n(Vf)),Vf.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 $f(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:lh(t)}}function lh(t){return function(e){var n=new ch;for(var r in t)n[r]=t[r];return n.stream=e,n}}function ch(){}function sh(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),Ul(n,t.stream(xf)),e(xf.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}},ch.prototype={constructor:ch,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,mh=xl(30*yl);function gh(t,e){return+e?function(t,e){function n(r,i,a,o,u,l,c,s,f,h,d,p,v,m){var g=c-r,y=s-i,b=g*g+y*y;if(b>4*e&&v--){var _=o+h,w=u+d,x=l+p,E=Cl(_*_+w*w+x*x),k=Rl(x/=E),T=bl(bl(x)-1)e||bl((g*C+y*P)/b-.5)>.3||o*h+u*d+l*p2?t[2]%360*yl:0,M()):[m*gl,g*gl,y*gl]},T.precision=function(t){return arguments.length?(k=gh(N,E=t*t),C()):Cl(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&&S,M()}}function wh(t){var e=0,n=dl/3,r=_h(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*yl,n=t[1]*yl):[e*gl,n*gl]},i}function xh(t,e){var n=Nl(t),r=(n+Nl(e))/2;if(bl(r)=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?l:o).invert(t)},s.stream=function(n){return t&&e===n?t:(r=[o.stream(e=n),u.stream(n),l.stream(n)],i=r.length,t={point:function(t,e){for(var n=-1;++n0?e<-pl+fl&&(e=-pl+fl):e>pl-fl&&(e=pl-fl);var n=i/Sl(Lh(e),r);return[n*Nl(r*t),i-n*xl(r*t)]}return a.invert=function(t,e){var n=i-e,a=Ml(r)*Cl(t*t+n*n);return[wl(t,bl(n))/r*Ml(n),2*_l(Sl(i/a,1/r))-pl]},a}function zh(){return wh(Dh).scale(109.5).parallels([30,30])}function Fh(t,e){return[t,e]}function jh(){return bh(Fh).scale(152.63)}function Uh(t,e){var n=xl(t),r=t===e?Nl(t):(n-xl(e))/(e-t),i=n/r+t;if(bl(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),l=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),c=u.x-t(u,l)/2,s=l.x+t(l,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-c)/(s-c)*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 cd(t),l=+t.value&&(u.value=t.value),c=[u];for(null==e&&(e=od);n=c.pop();)if(l&&(n.value=+n.data.value),(i=e(n.data))&&(o=i.length))for(n.children=new Array(o),a=o-1;a>=0;--a)c.push(r=n.children[a]=new cd(i[a])),r.parent=n,r.depth=n.depth+1;return u.eachBefore(ld)}function od(t){return t.children}function ud(t){t.data=t.data.data}function ld(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function cd(t){this.data=t,this.depth=this.height=0,this.parent=null}Ph.invert=Nh((function(t){return t})),Rh.invert=function(t,e){return[t,2*_l(kl(e))-pl]},Fh.invert=Fh,Bh.invert=Nh(_l),Vh.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(bl(n)>fl&&--i>0);return[t/(.8707+(a=r*r)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),r]},Qh.invert=Nh(Rl),Gh.invert=Nh((function(t){return 2*_l(t)})),Zh.invert=function(t,e){return[-e,2*_l(kl(t))-pl]},cd.prototype=ad.prototype={constructor:cd,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 wd(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 xd(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,l,c,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;bd(n,e,r=t[2]),e=new xd(e),n=new xd(n),r=new xd(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 Hd(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 Vd(t,e,n){return t.a.parent===e.parent?t.a:n}function $d(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 Qd(){var t=Bd,e=1,n=1,r=null;function i(i){var l=function(t){for(var e,n,r,i,a,o=new $d(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 $d(r[i],i)),n.parent=e;return(o.parent=new $d(null,0)).children=[o],o}(i);if(l.eachAfter(a),l.parent.m=-l.z,l.eachBefore(o),r)i.eachBefore(u);else{var c=i,s=i,f=i;i.eachBefore((function(t){t.xs.x&&(s=t),t.depth>f.depth&&(f=t)}));var h=c===s?1:t(c,s)/2,d=h-c.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,l=a.parent.children[0],c=a.m,s=o.m,f=u.m,h=l.m;u=Wd(u),a=Hd(a),u&&a;)l=Hd(l),(o=Wd(o)).a=e,(i=u.z+f-a.z-c+t(u._,a._))>0&&(Yd(Vd(u,e,r),e,i),c+=i,s+=i),f+=u.m,c+=a.m,h+=l.m,s+=o.m;u&&!Wd(o)&&(o.t=u,o.m+=f-s),a&&!Hd(l)&&(l.t=a,l.m+=c-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,l=o.length,c=t.value&&(i-n)/t.value;++uh&&(h=u),m=s*s*v,(d=Math.max(h/m,m/f))>p){s-=u;break}p=d}g.push(o={value:s,dice:l1?e:1)},n}(Gd);function Jd(){var t=Zd,e=!1,n=1,r=1,i=[0],a=Sd,o=Sd,u=Sd,l=Sd,c=Sd;function s(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(f),i=[0],e&&t.eachBefore(Od),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=l)}var f=c[e],h=r/2+f,d=e+1,p=n-1;for(;d>>1;c[v]l-a){var y=(i*g+o*m)/r;t(e,d,m,i,a,y,l),t(d,n,g,y,a,o,l)}else{var b=(a*g+l*m)/r;t(e,d,m,i,a,o,b),t(d,n,g,i,b,o,l)}}(0,l,t.value,e,n,r,i)}function ep(t,e,n,r,i){(1&t.depth?Xd:Id)(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,l,c,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 lp(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)c.push(t[r[a[e]][2]]);for(e=+u;eu!=c>u&&o<(l-n)*(u-r)/(c-r)+n&&(s=!s),l=n,c=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],l=0;++r=0;)if((n=t._tasks[r])&&(t._tasks[r]=null,n.abort))try{n.abort()}catch(e){}t._active=NaN,gp(t)}function gp(t){if(!t._active&&t._call){var e=t._data;t._data=void 0,t._call(t._error,e)}}function yp(t){if(null==t)t=1/0;else if(!((t=+t)>=1))throw new Error("invalid concurrency");return new dp(t)}function bp(){return Math.random()}dp.prototype=yp.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&&mp(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))},gp(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,gp(this),this}};const _p=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}(bp),wp=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}(bp),xp=function t(e){function n(){var t=wp.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(bp),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,l)}catch(t){return void o.call("error",n,t)}else e=l;o.call("load",n,e)}else o.call("error",n,t)}if("undefined"!=typeof XDomainRequest&&!("withCredentials"in l)&&/^(http(s)?:)?\/\//.test(t)&&(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=l.ontimeout=h:l.onreadystatechange=function(t){l.readyState>3&&h(t)},l.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?c:(c=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 l.open(e,t,!0,c,s),null==r||u.has("accept")||u.set("accept",r+",*/*"),l.setRequestHeader&&u.each((function(t,e){l.setRequestHeader(e,t)})),null!=r&&l.overrideMimeType&&l.overrideMimeType(r),null!=a&&(l.responseType=a),f>0&&(l.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,l),l.send(null==i?null:i),n},abort:function(){return l.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=Mp(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 Pp=Cp("text/html",(function(t){return document.createRange().createContextualFragment(t.responseText)})),Ap=Cp("application/json",(function(t){return JSON.parse(t.responseText)})),Rp=Cp("text/plain",(function(t){return t.responseText})),Op=Cp("application/xml",(function(t){var e=t.responseXML;if(!e)throw new Error("parse error");return e}));var Ip=n(72);function Lp(t,e){return function(n,r,i){arguments.length<3&&(i=r,r=null);var a=Mp(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=Lp("text/csv",Ip.sw),zp=Lp("text/tab-separated-values",Ip.Nu);var Fp=Array.prototype,jp=Fp.map,Up=Fp.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?[]:Up.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,l?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,l?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=jp.call(t,$p),c()):a.slice()},s.range=function(t){return arguments.length?(o=Up.call(t),c()):o.slice()},s.rangeRound=function(t){return o=Up.call(t),u=_r,c()},s.clamp=function(t){return arguments.length?(l=!!t,c()):l},s.interpolate=function(t){return arguments.length?(u=t,c()):u},c()}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=al(o,u))||(n.precision=r),tl(n,u);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=ol(o,Math.max(Math.abs(i),Math.abs(a))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=il(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],l=i[o];return l0?r=M(u=Math.floor(u/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=M(u=Math.ceil(u*r)/r,l=Math.floor(l*r)/r,n)),r>0?(i[a]=Math.floor(u/r)*r,i[o]=Math.ceil(l/r)*r,e(i)):r<0&&(i[a]=Math.ceil(u*r)/r,i[o]=Math.floor(l*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=jp.call(n,$p),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(;hl)break;v.push(f)}}else for(;h=1;--s)if(!((f=c*s)l)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 mv(){var t=[.5],e=[0,1],n=1;function r(r){if(r<=r)return e[c(t,r,0,n)]}return r.domain=function(i){return arguments.length?(t=Up.call(i),n=Math.min(t.length,e.length-1),r):t.slice()},r.range=function(i){return arguments.length?(e=Up.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 mv().domain(t).range(e)},r}var gv=new Date,yv=new Date;function bv(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 gv.setTime(+e),yv.setTime(+r),t(gv),t(yv),Math.floor(n(gv,yv))},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 _v=bv((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));_v.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?bv((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):_v:null};const wv=_v;var xv=_v.range,Ev=1e3,kv=6e4,Tv=36e5,Sv=864e5,Nv=6048e5,Mv=bv((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=Mv;var Pv=Mv.range,Av=bv((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 Rv=Av;var Ov=Av.range,Iv=bv((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 Lv=Iv;var Dv=Iv.range,zv=bv((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)/Sv}),(function(t){return t.getDate()-1}));const Fv=zv;var jv=zv.range;function Uv(t){return bv((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=Uv(0),Bv=Uv(1),Hv=Uv(2),Wv=Uv(3),Yv=Uv(4),Vv=Uv(5),$v=Uv(6),Qv=qv.range,Xv=Bv.range,Gv=Hv.range,Kv=Wv.range,Zv=Yv.range,Jv=Vv.range,tm=$v.range,em=bv((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 nm=em;var rm=em.range,im=bv((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()}));im.every=function(t){return isFinite(t=Math.floor(t))&&t>0?bv((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 am=im;var om=im.range,um=bv((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 lm=um;var cm=um.range,sm=bv((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 fm=sm;var hm=sm.range,dm=bv((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/Sv}),(function(t){return t.getUTCDate()-1}));const pm=dm;var vm=dm.range;function mm(t){return bv((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 gm=mm(0),ym=mm(1),bm=mm(2),_m=mm(3),wm=mm(4),xm=mm(5),Em=mm(6),km=gm.range,Tm=ym.range,Sm=bm.range,Nm=_m.range,Mm=wm.range,Cm=xm.range,Pm=Em.range,Am=bv((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 Rm=Am;var Om=Am.range,Im=bv((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()}));Im.every=function(t){return isFinite(t=Math.floor(t))&&t>0?bv((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 Lm=Im;var Dm=Im.range;function zm(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 Fm(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 jm(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function Um(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,u=t.months,l=t.shortMonths,c=Zm(i),s=Jm(i),f=Zm(a),h=Jm(a),d=Zm(o),p=Jm(o),v=Zm(u),m=Jm(u),g=Zm(l),y=Jm(l),b={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:bg,e:bg,f:kg,H:_g,I:wg,j:xg,L:Eg,m:Tg,M:Sg,p:function(t){return i[+(t.getHours()>=12)]},Q:ty,s:ey,S:Ng,u:Mg,U:Cg,V:Pg,w:Ag,W:Rg,x:null,X:null,y:Og,Y:Ig,Z:Lg,"%":Jg},_={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:Dg,e:Dg,f:qg,H:zg,I:Fg,j:jg,L:Ug,m:Bg,M:Hg,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:ty,s:ey,S:Wg,u:Yg,U:Vg,V:$g,w:Qg,W:Xg,x:null,X:null,y:Gg,Y:Kg,Z:Zg,"%":Jg},w={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=g.exec(e.slice(n));return r?(t.m=y[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return k(t,e,n,r)},d:cg,e:cg,f:vg,H:fg,I:fg,j:sg,L:pg,m:lg,M:hg,p:function(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=s[r[0].toLowerCase()],n+r[0].length):-1},Q:gg,s:yg,S:dg,u:eg,U:ng,V:rg,w:tg,W:ig,x:function(t,e,r){return k(t,n,e,r)},X:function(t,e,n){return k(t,r,e,n)},y:og,Y:ag,Z:ug,"%":mg};function x(t,e){return function(n){var r,i,a,o=[],u=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++u53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=Fm(jm(a.y))).getUTCDay(),r=i>4||0===i?ym.ceil(r):ym(r),r=pm.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(jm(a.y))).getDay(),r=i>4||0===i?Bv.ceil(r):Bv(r),r=Fv.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?Fm(jm(a.y)).getUTCDay():e(jm(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,Fm(a)):e(a)}}function k(t,e,n,r){for(var i,a,o=0,u=e.length,l=n.length;o=l)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=w[i in Vm?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=x(n,b),b.X=x(r,b),b.c=x(e,b),_.x=x(n,_),_.X=x(r,_),_.c=x(e,_),{format:function(t){var e=x(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=E(t+="",zm);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",_);return e.toString=function(){return t},e},utcParse:function(t){var e=E(t,Fm);return e.toString=function(){return t},e}}}var qm,Bm,Hm,Wm,Ym,Vm={"-":"",_:" ",0:"0"},$m=/^\s*\d+/,Qm=/^%/,Xm=/[\\^$*+?|[\]().{}]/g;function Gm(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 ug(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 lg(t,e,n){var r=$m.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function cg(t,e,n){var r=$m.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function sg(t,e,n){var r=$m.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function fg(t,e,n){var r=$m.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function hg(t,e,n){var r=$m.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function dg(t,e,n){var r=$m.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function pg(t,e,n){var r=$m.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function vg(t,e,n){var r=$m.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function mg(t,e,n){var r=Qm.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function gg(t,e,n){var r=$m.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function yg(t,e,n){var r=$m.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function bg(t,e){return Gm(t.getDate(),e,2)}function _g(t,e){return Gm(t.getHours(),e,2)}function wg(t,e){return Gm(t.getHours()%12||12,e,2)}function xg(t,e){return Gm(1+Fv.count(am(t),t),e,3)}function Eg(t,e){return Gm(t.getMilliseconds(),e,3)}function kg(t,e){return Eg(t,e)+"000"}function Tg(t,e){return Gm(t.getMonth()+1,e,2)}function Sg(t,e){return Gm(t.getMinutes(),e,2)}function Ng(t,e){return Gm(t.getSeconds(),e,2)}function Mg(t){var e=t.getDay();return 0===e?7:e}function Cg(t,e){return Gm(qv.count(am(t),t),e,2)}function Pg(t,e){var n=t.getDay();return t=n>=4||0===n?Yv(t):Yv.ceil(t),Gm(Yv.count(am(t),t)+(4===am(t).getDay()),e,2)}function Ag(t){return t.getDay()}function Rg(t,e){return Gm(Bv.count(am(t),t),e,2)}function Og(t,e){return Gm(t.getFullYear()%100,e,2)}function Ig(t,e){return Gm(t.getFullYear()%1e4,e,4)}function Lg(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Gm(e/60|0,"0",2)+Gm(e%60,"0",2)}function Dg(t,e){return Gm(t.getUTCDate(),e,2)}function zg(t,e){return Gm(t.getUTCHours(),e,2)}function Fg(t,e){return Gm(t.getUTCHours()%12||12,e,2)}function jg(t,e){return Gm(1+pm.count(Lm(t),t),e,3)}function Ug(t,e){return Gm(t.getUTCMilliseconds(),e,3)}function qg(t,e){return Ug(t,e)+"000"}function Bg(t,e){return Gm(t.getUTCMonth()+1,e,2)}function Hg(t,e){return Gm(t.getUTCMinutes(),e,2)}function Wg(t,e){return Gm(t.getUTCSeconds(),e,2)}function Yg(t){var e=t.getUTCDay();return 0===e?7:e}function Vg(t,e){return Gm(gm.count(Lm(t),t),e,2)}function $g(t,e){var n=t.getUTCDay();return t=n>=4||0===n?wm(t):wm.ceil(t),Gm(wm.count(Lm(t),t)+(4===Lm(t).getUTCDay()),e,2)}function Qg(t){return t.getUTCDay()}function Xg(t,e){return Gm(ym.count(Lm(t),t),e,2)}function Gg(t,e){return Gm(t.getUTCFullYear()%100,e,2)}function Kg(t,e){return Gm(t.getUTCFullYear()%1e4,e,4)}function Zg(){return"+0000"}function Jg(){return"%"}function ty(t){return+t}function ey(t){return Math.floor(+t/1e3)}function ny(t){return qm=Um(t),Bm=qm.format,Hm=qm.parse,Wm=qm.utcFormat,Ym=qm.utcParse,qm}ny({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 ry="%Y-%m-%dT%H:%M:%S.%LZ";var iy=Date.prototype.toISOString?function(t){return t.toISOString()}:Wm(ry);const ay=iy;var oy=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:Ym(ry);const uy=oy;var ly=1e3,cy=60*ly,sy=60*cy,fy=24*sy,hy=7*fy,dy=30*fy,py=365*fy;function vy(t){return new Date(t)}function my(t){return t instanceof Date?+t:+new Date(+t)}function gy(t,e,n,r,i,o,u,l,c){var s=Jp(Xp,pr),f=s.invert,h=s.domain,d=c(".%L"),p=c(":%S"),v=c("%I:%M"),m=c("%I %p"),g=c("%a %d"),y=c("%b %d"),b=c("%B"),_=c("%Y"),w=[[u,1,ly],[u,5,5*ly],[u,15,15*ly],[u,30,30*ly],[o,1,cy],[o,5,5*cy],[o,15,15*cy],[o,30,30*cy],[i,1,sy],[i,3,3*sy],[i,6,6*sy],[i,12,12*sy],[r,1,fy],[r,2,2*fy],[n,1,hy],[e,1,dy],[e,3,3*dy],[t,1,py]];function x(a){return(u(a)1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return My.h=360*t-100,My.s=1.5-1.5*e,My.l=.8-.9*e,My+""}function Py(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}const Ay=Py(_y("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var Ry=Py(_y("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Oy=Py(_y("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Iy=Py(_y("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Ly(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 Ly(t).domain([e,n]).clamp(r)},tv(i)}function Dy(t){return function(){return t}}var zy=Math.abs,Fy=Math.atan2,jy=Math.cos,Uy=Math.max,qy=Math.min,By=Math.sin,Hy=Math.sqrt,Wy=1e-12,Yy=Math.PI,Vy=Yy/2,$y=2*Yy;function Qy(t){return t>=1?Vy:t<=-1?-Vy:Math.asin(t)}function Xy(t){return t.innerRadius}function Gy(t){return t.outerRadius}function Ky(t){return t.startAngle}function Zy(t){return t.endAngle}function Jy(t){return t&&t.padAngle}function tb(t,e,n,r,i,a,o){var u=t-n,l=e-r,c=(o?a:-a)/Hy(u*u+l*l),s=c*l,f=-c*u,h=t+s,d=e+f,p=n+s,v=r+f,m=(h+p)/2,g=(d+v)/2,y=p-h,b=v-d,_=y*y+b*b,w=i-a,x=h*v-p*d,E=(b<0?-1:1)*Hy(Uy(0,w*w*_-x*x)),k=(x*b-y*E)/_,T=(-x*y-b*E)/_,S=(x*b+y*E)/_,N=(-x*y+b*E)/_,M=k-m,C=T-g,P=S-m,A=N-g;return M*M+C*C>P*P+A*A&&(k=S,T=N),{cx:k,cy:T,x01:-s,y01:-f,x11:k*(i/w-1),y11:T*(i/w-1)}}function eb(){var t=Xy,e=Gy,n=Dy(0),r=null,i=Ky,a=Zy,o=Jy,u=null;function l(){var l,c,s=+t.apply(this,arguments),f=+e.apply(this,arguments),h=i.apply(this,arguments)-Vy,d=a.apply(this,arguments)-Vy,p=zy(d-h),v=d>h;if(u||(u=l=Ao()),fWy)if(p>$y-Wy)u.moveTo(f*jy(h),f*By(h)),u.arc(0,0,f,h,d,!v),s>Wy&&(u.moveTo(s*jy(d),s*By(d)),u.arc(0,0,s,d,h,v));else{var m,g,y=h,b=d,_=h,w=d,x=p,E=p,k=o.apply(this,arguments)/2,T=k>Wy&&(r?+r.apply(this,arguments):Hy(s*s+f*f)),S=qy(zy(f-s)/2,+n.apply(this,arguments)),N=S,M=S;if(T>Wy){var C=Qy(T/s*By(k)),P=Qy(T/f*By(k));(x-=2*C)>Wy?(_+=C*=v?1:-1,w-=C):(x=0,_=w=(h+d)/2),(E-=2*P)>Wy?(y+=P*=v?1:-1,b-=P):(E=0,y=b=(h+d)/2)}var A=f*jy(y),R=f*By(y),O=s*jy(w),I=s*By(w);if(S>Wy){var L=f*jy(b),D=f*By(b),z=s*jy(_),F=s*By(_);if(pWy?function(t,e,n,r,i,a,o,u){var l=n-t,c=r-e,s=o-i,f=u-a,h=(s*(e-a)-f*(t-i))/(f*l-s*c);return[t+h*l,e+h*c]}(A,R,z,F,L,D,O,I):[O,I],U=A-j[0],q=R-j[1],B=L-j[0],H=D-j[1],W=1/By(function(t){return t>1?0:t<-1?Yy:Math.acos(t)}((U*B+q*H)/(Hy(U*U+q*q)*Hy(B*B+H*H)))/2),Y=Hy(j[0]*j[0]+j[1]*j[1]);N=qy(S,(s-Y)/(W-1)),M=qy(S,(f-Y)/(W+1))}}E>Wy?M>Wy?(m=tb(z,F,A,R,f,M,v),g=tb(L,D,O,I,f,M,v),u.moveTo(m.cx+m.x01,m.cy+m.y01),MWy&&x>Wy?N>Wy?(m=tb(O,I,L,D,s,-N,v),g=tb(A,R,z,F,s,-N,v),u.lineTo(m.cx+m.x01,m.cy+m.y01),N=s;--f)u.point(m[f],g[f]);u.lineEnd(),u.areaEnd()}v&&(m[c]=+t(h,c,l),g[c]=+n(h,c,l),u.point(e?+e(h,c,l):m[c],r?+r(h,c,l):g[c]))}if(d)return u=null,d+""||null}function c(){return ob().defined(i).curve(o).context(a)}return l.x=function(n){return arguments.length?(t="function"==typeof n?n:Dy(+n),e=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:Dy(+e),l):t},l.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Dy(+t),l):e},l.y=function(t){return arguments.length?(n="function"==typeof t?t:Dy(+t),r=null,l):n},l.y0=function(t){return arguments.length?(n="function"==typeof t?t:Dy(+t),l):n},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Dy(+t),l):r},l.lineX0=l.lineY0=function(){return c().x(t).y(n)},l.lineY1=function(){return c().x(t).y(r)},l.lineX1=function(){return c().x(e).y(n)},l.defined=function(t){return arguments.length?(i="function"==typeof t?t:Dy(!!t),l):i},l.curve=function(t){return arguments.length?(o=t,null!=a&&(u=o(a)),l):o},l.context=function(t){return arguments.length?(null==t?a=u=null:u=o(a=t),l):a},l}function lb(t,e){return et?1:e>=t?0:NaN}function cb(t){return t}function sb(){var t=cb,e=lb,n=null,r=Dy(0),i=Dy($y),a=Dy(0);function o(o){var u,l,c,s,f,h=o.length,d=0,p=new Array(h),v=new Array(h),m=+r.apply(this,arguments),g=Math.min($y,Math.max(-$y,i.apply(this,arguments)-m)),y=Math.min(Math.abs(g)/h,a.apply(this,arguments)),b=y*(g<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,c=d?(g-h*b)/d:0;u0?f*c:0)+b,v[l]={data:o[l],index:u,value:f,startAngle:m,endAngle:s,padAngle:y};return v}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:Dy(+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:Dy(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Dy(+t),o):i},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:Dy(+t),o):a},o}nb.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 fb=db(rb);function hb(t){this._curve=t}function db(t){function e(e){return new hb(t(e))}return e._curve=t,e}function pb(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(db(t)):e()._curve},t}function vb(){return pb(ob().curve(fb))}function mb(){var t=ub().curve(fb),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 pb(n())},delete t.lineX0,t.lineEndAngle=function(){return pb(r())},delete t.lineX1,t.lineInnerRadius=function(){return pb(i())},delete t.lineY0,t.lineOuterRadius=function(){return pb(a())},delete t.lineY1,t.curve=function(t){return arguments.length?e(db(t)):e()._curve},t}function gb(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}hb.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 yb=Array.prototype.slice;function bb(t){return t.source}function _b(t){return t.target}function wb(t){var e=bb,n=_b,r=ib,i=ab,a=null;function o(){var o,u=yb.call(arguments),l=e.apply(this,u),c=n.apply(this,u);if(a||(a=o=Ao()),t(a,+r.apply(this,(u[0]=l,u)),+i.apply(this,u),+r.apply(this,(u[0]=c,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:Dy(+t),o):r},o.y=function(t){return arguments.length?(i="function"==typeof t?t:Dy(+t),o):i},o.context=function(t){return arguments.length?(a=null==t?null:t,o):a},o}function xb(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function Eb(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function kb(t,e,n,r,i){var a=gb(e,n),o=gb(e,n=(n+i)/2),u=gb(r,n),l=gb(r,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(o[0],o[1],u[0],u[1],l[0],l[1])}function Tb(){return wb(xb)}function Sb(){return wb(Eb)}function Nb(){var t=wb(kb);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const Mb={draw:function(t,e){var n=Math.sqrt(e/Yy);t.moveTo(n,0),t.arc(0,0,n,0,$y)}},Cb={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 Pb=Math.sqrt(1/3),Ab=2*Pb;const Rb={draw:function(t,e){var n=Math.sqrt(e/Ab),r=n*Pb;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}};var Ob=Math.sin(Yy/10)/Math.sin(7*Yy/10),Ib=Math.sin($y/10)*Ob,Lb=-Math.cos($y/10)*Ob;const Db={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=Ib*n,i=Lb*n;t.moveTo(0,-n),t.lineTo(r,i);for(var a=1;a<5;++a){var o=$y*a/5,u=Math.cos(o),l=Math.sin(o);t.lineTo(l*n,-u*n),t.lineTo(u*r-l*i,l*r+u*i)}t.closePath()}},zb={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}};var Fb=Math.sqrt(3);const jb={draw:function(t,e){var n=-Math.sqrt(e/(3*Fb));t.moveTo(0,2*n),t.lineTo(-Fb*n,-n),t.lineTo(Fb*n,-n),t.closePath()}};var Ub=-.5,qb=Math.sqrt(3)/2,Bb=1/Math.sqrt(12),Hb=3*(Bb/2+1);const Wb={draw:function(t,e){var n=Math.sqrt(e/Hb),r=n/2,i=n*Bb,a=r,o=n*Bb+n,u=-a,l=o;t.moveTo(r,i),t.lineTo(a,o),t.lineTo(u,l),t.lineTo(Ub*r-qb*i,qb*r+Ub*i),t.lineTo(Ub*a-qb*o,qb*a+Ub*o),t.lineTo(Ub*u-qb*l,qb*u+Ub*l),t.lineTo(Ub*r+qb*i,Ub*i-qb*r),t.lineTo(Ub*a+qb*o,Ub*o-qb*a),t.lineTo(Ub*u+qb*l,Ub*l-qb*u),t.closePath()}};var Yb=[Mb,Cb,Rb,zb,Db,jb,Wb];function Vb(){var t=Dy(Mb),e=Dy(64),n=null;function r(){var r;if(n||(n=r=Ao()),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:Dy(e),r):t},r.size=function(t){return arguments.length?(e="function"==typeof t?t:Dy(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r}function $b(){}function Qb(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 Xb(t){this._context=t}function Gb(t){return new Xb(t)}function Kb(t){this._context=t}function Zb(t){return new Kb(t)}function Jb(t){this._context=t}function t_(t){return new Jb(t)}function e_(t,e){this._basis=new Xb(t),this._beta=e}Xb.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:Qb(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:Qb(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Kb.prototype={areaStart:$b,areaEnd:$b,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:Qb(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Jb.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:Qb(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},e_.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,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+r*o),this._beta*e[l]+(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 n_=function t(e){function n(t){return 1===e?new Xb(t):new e_(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function r_(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 i_(t,e){this._context=t,this._k=(1-e)/6}i_.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:r_(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:r_(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 a_=function t(e){function n(t){return new i_(t,e)}return n.tension=function(e){return t(+e)},n}(0);function o_(t,e){this._context=t,this._k=(1-e)/6}o_.prototype={areaStart:$b,areaEnd:$b,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:r_(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 u_=function t(e){function n(t){return new o_(t,e)}return n.tension=function(e){return t(+e)},n}(0);function l_(t,e){this._context=t,this._k=(1-e)/6}l_.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:r_(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 c_=function t(e){function n(t){return new l_(t,e)}return n.tension=function(e){return t(+e)},n}(0);function s_(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>Wy){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>Wy){var c=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*c+t._x1*t._l23_2a-e*t._l12_2a)/s,o=(o*c+t._y1*t._l23_2a-n*t._l12_2a)/s}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function f_(t,e){this._context=t,this._alpha=e}f_.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:s_(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 h_=function t(e){function n(t){return e?new f_(t,e):new i_(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function d_(t,e){this._context=t,this._alpha=e}d_.prototype={areaStart:$b,areaEnd:$b,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:s_(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 p_=function t(e){function n(t){return e?new d_(t,e):new o_(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function v_(t,e){this._context=t,this._alpha=e}v_.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:s_(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 m_=function t(e){function n(t){return e?new v_(t,e):new l_(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function g_(t){this._context=t}function y_(t){return new g_(t)}function b_(t){return t<0?-1:1}function __(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 w_(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function x_(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 E_(t){this._context=t}function k_(t){this._context=new T_(t)}function T_(t){this._context=t}function S_(t){return new E_(t)}function N_(t){return new k_(t)}function M_(t){this._context=t}function C_(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 z_(t,e){return t[e]}function F_(){var t=Dy([]),e=D_,n=L_,r=z_;function i(i){var a,o,u=t.apply(this,arguments),l=i.length,c=u.length,s=new Array(c);for(a=0;a0){for(var n,r,i,a=0,o=t[0].length;a1)for(var n,r,i,a,o,u,l=0,c=t[e[0]].length;l=0?(r[0]=a,r[1]=a+=i):i<0?(r[1]=o,r[0]=o+=i):r[0]=a}function q_(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}},K_.prototype={constructor:K_,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=ew(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&&(J_(this,n),n=(t=n).U),n.C=!1,r.C=!0,tw(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(tw(this,n),n=(t=n).U),n.C=!1,r.C=!0,J_(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?ew(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,J_(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,tw(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,J_(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,tw(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,J_(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,tw(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};const nw=K_;function rw(t,e,n,r){var i=[null,null],a=Nw.push(i)-1;return i.left=t,i.right=e,n&&aw(i,t,e,n),r&&aw(i,e,t,r),Tw[t.index].halfedges.push(a),Tw[e.index].halfedges.push(a),i}function iw(t,e,n){var r=[e,n];return r.left=t,r}function aw(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 ow(t,e,n,r,i){var a,o=t[0],u=t[1],l=o[0],c=o[1],s=0,f=1,h=u[0]-l,d=u[1]-c;if(a=e-l,h||!(a>0)){if(a/=h,h<0){if(a0){if(a>f)return;a>s&&(s=a)}if(a=r-l,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-c,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]=[l+s*h,c+s*d]),f<1&&(t[1]=[l+f*h,c+f*d]),!0)}}}}}function uw(t,e,n,r,i){var a=t[1];if(a)return!0;var o,u,l=t[0],c=t.left,s=t.right,f=c[0],h=c[1],d=s[0],p=s[1],v=(f+d)/2,m=(h+p)/2;if(p===h){if(v=r)return;if(f>d){if(l){if(l[1]>=i)return}else l=[v,n];a=[v,i]}else{if(l){if(l[1]1)if(f>d){if(l){if(l[1]>=i)return}else l=[(n-u)/o,n];a=[(i-u)/o,i]}else{if(l){if(l[1]=r)return}else l=[e,o*e+u];a=[r,o*r+u]}else{if(l){if(l[0]=-Cw)){var d=l*l+c*c,p=s*s+f*f,v=(f*d-c*p)/h,m=(l*p-s*d)/h,g=hw.pop()||new dw;g.arc=t,g.site=i,g.x=v+o,g.y=(g.cy=m+u)+Math.sqrt(v*v+m*m),t.circle=g;for(var y=null,b=Sw._;b;)if(g.yMw)u=u.L;else{if(!((i=a-Ew(u,o))>Mw)){r>-Mw?(e=u.P,n=u):i>-Mw?(e=u,n=u.N):e=n=u;break}if(!u.R){e=u;break}u=u.R}!function(t){Tw[t.index]={site:t,halfedges:[]}}(t);var l=yw(t);if(kw.insert(e,l),e||n){if(e===n)return vw(e),n=yw(e.site),kw.insert(l,n),l.edge=n.edge=rw(e.site,l.site),pw(e),void pw(n);if(n){vw(e),vw(n);var c=e.site,s=c[0],f=c[1],h=t[0]-s,d=t[1]-f,p=n.site,v=p[0]-s,m=p[1]-f,g=2*(h*m-d*v),y=h*h+d*d,b=v*v+m*m,_=[(m*y-d*b)/g+s,(h*b-v*y)/g+f];aw(n.edge,c,p,_),l.edge=rw(c,t,null,_),n.edge=rw(t,p,null,_),pw(e),pw(n)}else l.edge=rw(e.site,l.site)}}function xw(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],l=n[1],c=l-e;if(!c)return u;var s=u-r,f=1/a-1/c,h=s/c;return f?(-h+Math.sqrt(h*h-2*f*(s*s/(-2*c)-l+c/2+i-a/2)))/f+r:(r+u)/2}function Ew(t,e){var n=t.N;if(n)return xw(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var kw,Tw,Sw,Nw,Mw=1e-6,Cw=1e-12;function Pw(t,e,n){return(t[0]-n[0])*(e[1]-t[1])-(t[0]-e[0])*(n[1]-t[1])}function Aw(t,e){return e[1]-t[1]||e[0]-t[0]}function Rw(t,e){var n,r,i,a=t.sort(Aw).pop();for(Nw=[],Tw=new Array(t.length),kw=new nw,Sw=new nw;;)if(i=fw,a&&(!i||a[1]Mw||Math.abs(i[0][1]-i[1][1])>Mw)||delete Nw[a]}(o,u,l,c),function(t,e,n,r){var i,a,o,u,l,c,s,f,h,d,p,v,m=Tw.length,g=!0;for(i=0;iMw||Math.abs(v-h)>Mw)&&(l.splice(u,0,Nw.push(iw(o,d,Math.abs(p-t)Mw?[t,Math.abs(f-t)Mw?[Math.abs(h-r)Mw?[n,Math.abs(f-n)Mw?[Math.abs(h-e)=u)return null;var l=t-i.site[0],c=e-i.site[1],s=l*l+c*c;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 l=t-u[0],c=e-u[1],f=l*l+c*c;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 $w(){var t,e,n=qw,r=Bw,i=Vw,a=Ww,o=Yw,u=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],c=250,s=Dr,f=[],h=vt("start","zoom","end"),d=500,p=150,v=0;function m(t){t.property("__zoom",Hw).on("wheel.zoom",E).on("mousedown.zoom",k).on("dblclick.zoom",T).filter(o).on("touchstart.zoom",S).on("touchmove.zoom",N).on("touchend.zoom touchcancel.zoom",M).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(t,e){return(e=Math.max(u[0],Math.min(u[1],e)))===t.k?t:new Dw(e,t.x,t.y)}function y(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 Dw(t.k,r,i)}function b(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function _(t,e,n){t.on("start.zoom",(function(){w(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){w(this,arguments).end()})).tween("zoom",(function(){var t=this,i=arguments,a=w(t,i),o=r.apply(t,i),u=n||b(o),l=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),c=t.__zoom,f="function"==typeof e?e.apply(t,i):e,h=s(c.invert(u).concat(l/c.k),f.invert(u).concat(l/f.k));return function(t){if(1===t)t=f;else{var e=h(t),n=l/e[2];t=new Dw(n,u[0]-e[0]*n,u[1]-e[1]*n)}a.zoom(null,t)}}))}function w(t,e){for(var n,r=0,i=f.length;rv}t.zoom("mouse",i(y(t.that.__zoom,t.mouse[0]=ze(t.that),t.mouse[1]),t.extent,l))}),!0).on("mouseup.zoom",(function(){r.on("mousemove.zoom mouseup.zoom",null),We(ge.view,t.moved),Uw(),t.end()}),!0),a=ze(this),o=ge.clientX,u=ge.clientY;He(ge.view),jw(),t.mouse=[a,this.__zoom.invert(a)],Mi(this),t.start()}}function T(){if(n.apply(this,arguments)){var t=this.__zoom,e=ze(this),a=t.invert(e),o=t.k*(ge.shiftKey?.5:2),u=i(y(g(t,o),e,a),r.apply(this,arguments),l);Uw(),c>0?Pe(this).transition().duration(c).call(_,u,e):Pe(this).call(m.transform,u)}}function S(){if(n.apply(this,arguments)){var e,r,i,a,o=w(this,arguments),u=ge.changedTouches,l=u.length;for(jw(),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},l=a[e][o-1],c=i.addDummyNode(t,"border",u,n);a[e][o]=c,t.setParent(c,r),l&&t.setEdge(l,c,{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,l=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 c=r.range(u+o+3).map((function(){return new a})),s=o+1;return r.forEach(n.nodes(),(function(t){l(c,s,n.node(t))})),{graph:n,buckets:c,zeroIdx:s}}(t,e||o),c=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 l=e.length-2;l>0;--l)if(r=e[l].dequeue()){i=i.concat(u(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(c,(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,l(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,l(e,n,o)})),t.removeNode(i.v),o}function l(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,l=n(2948),c=n(3988).removeEmptyRanks,s=n(6353),f=n(135),h=n(4850),d=n(1453),p=n(3776),v=n(3988),m=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 m({multigraph:!0,compound:!0}),n=S(t.graph());return e.setGraph(r.merge({},y,T(n,g),r.pick(n,b))),r.forEach(t.nodes(),(function(n){var i=S(t.node(n));e.setNode(n,r.defaults(T(i,_),w)),e.setParent(n,t.parent(n))})),r.forEach(t.edges(),(function(n){var i=S(t.edge(n));e.setEdge(n,r.merge({},E,T(i,x),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(){c(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(){l(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,l=o.marginy||0;function c(t){var r=t.x,o=t.y,u=t.width,l=t.height;e=Math.min(e,r-u/2),n=Math.max(n,r+u/2),i=Math.min(i,o-l/2),a=Math.max(a,o+l/2)}r.forEach(t.nodes(),(function(e){c(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.has(n,"x")&&c(n)})),e-=u,i-=l,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+l}(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 g=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b=["acyclicer","ranker","rankdir","align"],_=["width","height"],w={width:0,height:0},x=["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 S(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,l,c){var s=t.children(c);if(s.length){var f=i.addBorderNode(t,"_bt"),h=i.addBorderNode(t,"_bb"),d=t.node(c);t.setParent(f,c),d.borderTop=f,t.setParent(h,c),d.borderBottom=h,r.forEach(s,(function(r){a(t,e,n,o,u,l,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-l[c]+1;t.setEdge(f,s,{weight:p,minlen:v,nestingEdge:!0}),t.setEdge(d,h,{weight:p,minlen:v,nestingEdge:!0})})),t.parent(c)||t.setEdge(e,f,{weight:0,minlen:u+l[c]})}else c!==e&&t.setEdge(e,c,{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 l=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,l,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,l=e.w,c=t.node(l).rank,s=e.name,f=t.edge(e),h=f.labelRank;if(c===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),l=t.parent(i);(u.rank===e||u.minRank<=e&&e<=u.maxRank)&&(o.setNode(i),o.setParent(i,l||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+=l[e+1]),l[e=e-1>>1]+=t.weight;c+=t.weight*n}))),c}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),l=n(4384),c=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 c;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})),l(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 l,c=Number.POSITIVE_INFINITY,p=0,v=0;v<4;++p,++v){h(p%2?n:o,p%4>=2),u=s.buildLayerMatrix(t);var m=a(t,u);m{"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,l){var c=e.children(n),s=e.node(n),f=s?s.borderLeft:void 0,h=s?s.borderRight:void 0,d={};f&&(c=r.filter(c,(function(t){return t!==f&&t!==h})));var p=i(e,c);r.forEach(p,(function(n){if(e.children(n.v).length){var i=t(e,n.v,u,l);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 m=o(v,l);if(f&&(m.vs=r.flatten([f,m.vs,h],!0),e.predecessors(f).length)){var g=e.node(e.predecessors(f)[0]),y=e.node(e.predecessors(h)[0]);r.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+g.order+y.order)/(m.weight+2),m.weight+=2}return m}},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})),l=[],c=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(l,u,f),r.forEach(o,(function(t){f+=t.vs.length,l.push(t.vs),c+=t.barycenter*t.weight,s+=t.weight,f=a(l,u,f)}));var h;var d={vs:r.flatten(l,!0)};s&&(d.barycenter=c/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=[],l=Math.min(e[n].low,e[r].low),c=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),o.push(i)}while(i&&(e[i].low>l||c>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,l=0,c=o[l],s=!0;n!==i.w;){if(r=t.node(n),s){for(;(c=o[l])!==u&&t.node(c).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,c=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===c)&&(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)&&l(n,e,c)}))}))}return r.reduce(e,(function(e,n){var a,o=-1,u=0;return r.forEach(n,(function(r,l){if("border"===t.node(r).dummy){var c=t.predecessors(r);c.length&&(a=t.node(c[0]).order,i(n,u,l,o,a),u=l,o=a)}i(n,u,n.length,a,e.length)})),n})),n}function l(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 c(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 l=i(t);if(l.length){l=r.sortBy(l,(function(t){return u[t]}));for(var s=(l.length-1)/2,f=Math.floor(s),h=Math.ceil(s);f<=h;++f){var d=l[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 l(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}),c=t.nodes()[0],s=t.nodeCount();r.setNode(c,{});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,l=n(8191).alg.postorder,c=n(3988).simplify;function s(t){t=c(t),o(t);var e,n=i(t);for(d(n),f(n,t);e=v(n);)g(n,t,e,m(n,t,e))}function f(t,e){var n=l(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,l,c=r.v===n,s=c?r.w:r.v;if(s!==i){var f=c===a,h=e.edge(r).weight;if(u+=f?h:-h,o=n,l=s,t.hasEdge(o,l)){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 m(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),l=t.node(o),c=u,s=!1;u.lim>l.lim&&(c=l,s=!0);var f=r.filter(e.edges(),(function(e){return s===y(t,t.node(e.v),c)&&s!==y(t,t.node(e.w),c)}));return r.minBy(f,(function(t){return a(e,t)}))}function g(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 y(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=m,s.exchangeEdges=g},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,l=t.width/2,c=t.height/2;if(!o&&!u)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(u)*l>Math.abs(o)*c?(u<0&&(c=-c),n=c*o/u,r=c):(o<0&&(l=-l),n=l,r=l*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={},l=new i,c=function(t){var e=t.v!==a?t.v:t.w,r=u[e],i=n(t),c=o.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);c0&&(a=l.removeMin(),(o=u[a]).distance!==Number.POSITIVE_INFINITY);)r(a).forEach(c);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={},l=new a;function c(t){var r=t.v===n?t.w:t.v,i=l.priority(r);if(void 0!==i){var a=e(t);a0;){if(n=l.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(c)}return o}},6291:(t,e,n)=>{var r=n(117);t.exports=function(t){var e=0,n=[],i={},a=[];function o(u){var l=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&&(l.lowlink=Math.min(l.lowlink,i[t].index)):(o(t),l.lowlink=Math.min(l.lowlink,i[t].lowlink))})),l.lowlink===l.index){var c,s=[];do{c=n.pop(),i[c].onStack=!1,s.push(c)}while(u!==c);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 l(t,e){t[e]?t[e]++:t[e]=1}function c(t,e){--t[e]||delete t[e]}function s(t,e,n,a){var u=""+e,l=""+n;if(!t&&u>l){var c=u;u=l,l=c}return u+o+l+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 c=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=c.v,e=c.w,Object.freeze(c),this._edgeObjs[u]=c,l(this._preds[e],t),l(this._sucs[t],e),this._in[e][u]=c,this._out[t][u]=c,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],c(this._preds[e],t),c(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__",l=16,c=32,s=64,f=128,h=256,d=1/0,p=9007199254740991,v=NaN,m=4294967295,g=[["ary",f],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",s],["rearg",h]],y="[object Arguments]",b="[object Array]",_="[object Boolean]",w="[object Date]",x="[object Error]",E="[object Function]",k="[object GeneratorFunction]",T="[object Map]",S="[object Number]",N="[object Object]",M="[object Promise]",C="[object RegExp]",P="[object Set]",A="[object String]",R="[object Symbol]",O="[object WeakMap]",I="[object ArrayBuffer]",L="[object DataView]",D="[object Float32Array]",z="[object Float64Array]",F="[object Int8Array]",j="[object Int16Array]",U="[object Int32Array]",q="[object Uint8Array]",B="[object Uint8ClampedArray]",H="[object Uint16Array]",W="[object Uint32Array]",Y=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Q=/&(?:amp|lt|gt|quot|#39);/g,X=/[&<>"']/g,G=RegExp(Q.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+/,lt=/\s+$/,ct=/\{(?:\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*$/,mt=/^[-+]0x[0-9a-f]+$/i,gt=/^0b[01]+$/i,yt=/^\[object .+?Constructor\]$/,bt=/^0o[0-7]+$/i,_t=/^(?:0|[1-9]\d*)$/,wt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xt=/($^)/,Et=/['\n\r\u2028\u2029\\]/g,kt="\\ud800-\\udfff",Tt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",St="\\u2700-\\u27bf",Nt="a-z\\xdf-\\xf6\\xf8-\\xff",Mt="A-Z\\xc0-\\xd6\\xd8-\\xde",Ct="\\ufe0e\\ufe0f",Pt="\\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",At="['’]",Rt="["+kt+"]",Ot="["+Pt+"]",It="["+Tt+"]",Lt="\\d+",Dt="["+St+"]",zt="["+Nt+"]",Ft="[^"+kt+Pt+Lt+St+Nt+Mt+"]",jt="\\ud83c[\\udffb-\\udfff]",Ut="[^"+kt+"]",qt="(?:\\ud83c[\\udde6-\\uddff]){2}",Bt="[\\ud800-\\udbff][\\udc00-\\udfff]",Ht="["+Mt+"]",Wt="\\u200d",Yt="(?:"+zt+"|"+Ft+")",Vt="(?:"+Ht+"|"+Ft+")",$t="(?:['’](?:d|ll|m|re|s|t|ve))?",Qt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Xt="(?:"+It+"|"+jt+")"+"?",Gt="["+Ct+"]?",Kt=Gt+Xt+("(?:"+Wt+"(?:"+[Ut,qt,Bt].join("|")+")"+Gt+Xt+")*"),Zt="(?:"+[Dt,qt,Bt].join("|")+")"+Kt,Jt="(?:"+[Ut+It+"?",It,qt,Bt,Rt].join("|")+")",te=RegExp(At,"g"),ee=RegExp(It,"g"),ne=RegExp(jt+"(?="+jt+")|"+Jt+Kt,"g"),re=RegExp([Ht+"?"+zt+"+"+$t+"(?="+[Ot,Ht,"$"].join("|")+")",Vt+"+"+Qt+"(?="+[Ot,Ht+Yt,"$"].join("|")+")",Ht+"?"+Yt+"+"+$t,Ht+"+"+Qt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Lt,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,le={};le[D]=le[z]=le[F]=le[j]=le[U]=le[q]=le[B]=le[H]=le[W]=!0,le[y]=le[b]=le[I]=le[_]=le[L]=le[w]=le[x]=le[E]=le[T]=le[S]=le[N]=le[C]=le[P]=le[A]=le[O]=!1;var ce={};ce[y]=ce[b]=ce[I]=ce[L]=ce[_]=ce[w]=ce[D]=ce[z]=ce[F]=ce[j]=ce[U]=ce[T]=ce[S]=ce[N]=ce[C]=ce[P]=ce[A]=ce[R]=ce[q]=ce[B]=ce[H]=ce[W]=!0,ce[x]=ce[E]=ce[O]=!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")(),me=e&&!e.nodeType&&e,ge=me&&t&&!t.nodeType&&t,ye=ge&&ge.exports===me,be=ye&&de.process,_e=function(){try{var t=ge&&ge.require&&ge.require("util").types;return t||be&&be.binding&&be.binding("util")}catch(t){}}(),we=_e&&_e.isArrayBuffer,xe=_e&&_e.isDate,Ee=_e&&_e.isMap,ke=_e&&_e.isRegExp,Te=_e&&_e.isSet,Se=_e&&_e.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 Me(t,e,n,r){for(var i=-1,a=null==t?0:t.length;++i-1}function Ie(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--&&He(e,t[n],0)>-1;);return n}var rn=Qe({À:"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=Qe({"&":"&","<":"<",">":">",'"':""","'":"'"});function on(t){return"\\"+se[t]}function un(t){return ie.test(t)}function ln(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function cn(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 mn=function t(e){var n,r=(e=null==e?ve:mn.defaults(ve.Object(),e,mn.pick(ve,oe))).Array,kt=e.Date,Tt=e.Error,St=e.Function,Nt=e.Math,Mt=e.Object,Ct=e.RegExp,Pt=e.String,At=e.TypeError,Rt=r.prototype,Ot=St.prototype,It=Mt.prototype,Lt=e["__core-js_shared__"],Dt=Ot.toString,zt=It.hasOwnProperty,Ft=0,jt=(n=/[^.]+$/.exec(Lt&&Lt.keys&&Lt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ut=It.toString,qt=Dt.call(Mt),Bt=ve._,Ht=Ct("^"+Dt.call(zt).replace(it,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wt=ye?e.Buffer:i,Yt=e.Symbol,Vt=e.Uint8Array,$t=Wt?Wt.allocUnsafe:i,Qt=cn(Mt.getPrototypeOf,Mt),Xt=Mt.create,Gt=It.propertyIsEnumerable,Kt=Rt.splice,Zt=Yt?Yt.isConcatSpreadable:i,Jt=Yt?Yt.iterator:i,ne=Yt?Yt.toStringTag:i,ie=function(){try{var t=fa(Mt,"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,me=Nt.ceil,ge=Nt.floor,be=Mt.getOwnPropertySymbols,_e=Wt?Wt.isBuffer:i,Ue=e.isFinite,Qe=Rt.join,gn=cn(Mt.keys,Mt),yn=Nt.max,bn=Nt.min,_n=kt.now,wn=e.parseInt,xn=Nt.random,En=Rt.reverse,kn=fa(e,"DataView"),Tn=fa(e,"Map"),Sn=fa(e,"Promise"),Nn=fa(e,"Set"),Mn=fa(e,"WeakMap"),Cn=fa(Mt,"create"),Pn=Mn&&new Mn,An={},Rn=za(kn),On=za(Tn),In=za(Sn),Ln=za(Nn),Dn=za(Mn),zn=Yt?Yt.prototype:i,Fn=zn?zn.valueOf:i,jn=zn?zn.toString:i;function Un(t){if(eu(t)&&!Wo(t)&&!(t instanceof Wn)){if(t instanceof Hn)return t;if(zt.call(t,"__wrapped__"))return Fa(t)}return new Hn(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 Hn(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__=m,this.__views__=[]}function Yn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function lr(t,e,n,r,a,o){var u,l=1&e,c=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),!l)return Ci(t,u)}else{var h=pa(t),d=h==E||h==k;if(Qo(t))return Ei(t,l);if(h==N||h==y||d&&!a){if(u=c||d?{}:ma(t),!l)return c?function(t,e){return Pi(t,da(t),e)}(t,function(t,e){return t&&Pi(e,Ru(e),t)}(u,t)):function(t,e){return Pi(t,ha(t),e)}(t,ir(u,t))}else{if(!ce[h])return a?t:{};u=function(t,e,n){var r=t.constructor;switch(e){case I:return ki(t);case _:case w:return new r(+t);case L: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 F:case j:case U:case q:case B:case H:case W:return Ti(t,n);case T:return new r;case S:case A: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 P:return new r;case R:return i=t,Fn?Mt(Fn.call(i)):{}}var i}(t,h,l)}}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(lr(r,e,n,r,t,o))})):nu(t)&&t.forEach((function(r,i){u.set(i,lr(r,e,n,i,t,o))}));var v=f?i:(s?c?ia:ra:c?Ru:Au)(t);return Ce(v||t,(function(r,i){v&&(r=t[i=r]),er(u,i,lr(r,e,n,i,t,o))})),u}function cr(t,e,n){var r=n.length;if(null==t)return!r;for(t=Mt(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 At(a);return Pa((function(){t.apply(i,n)}),e)}function fr(t,e,n,r){var i=-1,a=Oe,o=!0,u=t.length,l=[],c=e.length;if(!u)return l;n&&(e=Le(e,Ze(n))),r?(a=Ie,o=!1):e.length>=200&&(a=tn,o=!1,e=new Qn(e));t:for(;++i-1},Vn.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},$n.prototype.clear=function(){this.size=0,this.__data__={hash:new Yn,map:new(Tn||Vn),string:new Yn}},$n.prototype.delete=function(t){var e=ca(this,t).delete(t);return this.size-=e?1:0,e},$n.prototype.get=function(t){return ca(this,t).get(t)},$n.prototype.has=function(t){return ca(this,t).has(t)},$n.prototype.set=function(t,e){var n=ca(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Qn.prototype.add=Qn.prototype.push=function(t){return this.__data__.set(t,o),this},Qn.prototype.has=function(t){return this.__data__.has(t)},Xn.prototype.clear=function(){this.__data__=new Vn,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 Vn){var r=n.__data__;if(!Tn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new $n(r)}return n.set(t,e),this.size=n.size,this};var hr=Oi(_r),dr=Oi(wr,!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?gr(u,e-1,n,r,i):De(i,u):r||(i[i.length]=u)}return i}var yr=Ii(),br=Ii(!0);function _r(t,e){return t&&yr(t,e,Au)}function wr(t,e){return t&&br(t,e,Au)}function xr(t,e){return Re(e,(function(e){return Ko(t[e])}))}function Er(t,e){for(var n=0,r=(e=bi(e,t)).length;null!=t&&ne}function Nr(t,e){return null!=t&&zt.call(t,e)}function Mr(t,e){return null!=t&&e in Mt(t)}function Cr(t,e,n){for(var a=n?Ie:Oe,o=t[0].length,u=t.length,l=u,c=r(u),s=1/0,f=[];l--;){var h=t[l];l&&e&&(h=Le(h,Ze(e))),s=bn(h.length,s),c[l]=!n&&(e||o>=120&&h.length>=120)?new Qn(l&&h):i}h=t[0];var d=-1,p=c[0];t:for(;++d=u?l:l*("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,l,1),Kt.call(t,l,1);return t}function $r(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;ya(i)?Kt.call(t,i,1):fi(t,i)}}return t}function Qr(t,e){return t+ge(xn()*(e-t+1))}function Xr(t,e){var n="";if(!t||e<1||e>p)return n;do{e%2&&(n+=t),(e=ge(e/2))&&(t+=t)}while(e);return n}function Gr(t,e){return Aa(Sa(t,e,rl),t+"")}function Kr(t){return Kn(Uu(t))}function Zr(t,e){var n=Uu(t);return Ia(n,ur(e,0,n.length))}function Jr(t,e,n,r){if(!tu(t))return t;for(var a=-1,o=(e=bi(e,t)).length,u=o-1,l=t;null!=l&&++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&&!lu(o)&&(n?o<=e:o=200){var c=e?null:Xi(t);if(c)return fn(c);o=!1,i=tn,l=new Qn}else l=e?[]:u;t:for(;++r=r?t:ri(t,e,n)}var xi=se||function(t){return ve.clearTimeout(t)};function Ei(t,e){if(e)return t.slice();var n=t.length,r=$t?$t(n):new t.constructor(n);return t.copy(r),r}function ki(t){var e=new t.constructor(t.byteLength);return new Vt(e).set(new Vt(t)),e}function Ti(t,e){var n=e?ki(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Si(t,e){if(t!==e){var n=t!==i,r=null===t,a=t==t,o=lu(t),u=e!==i,l=null===e,c=e==e,s=lu(e);if(!l&&!s&&!o&&t>e||o&&u&&c&&!l&&!s||r&&u&&c||!n&&c||!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&&ba(n[0],n[1],u)&&(o=a<3?i:o,a=1),e=Mt(e);++r-1?a[o?e[u]:u]:i}}function ji(t){return na((function(e){var n=e.length,r=n,o=Hn.prototype.thru;for(t&&e.reverse();r--;){var u=e[r];if("function"!=typeof u)throw new At(a);if(o&&!l&&"wrapper"==oa(u))var l=new Hn([],!0)}for(r=l?r:n;++r1&&_.reverse(),d&&sl))return!1;var s=o.get(t);if(s&&o.get(e))return s==e;var f=-1,h=!0,d=2&n?new Qn: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(ct,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Ce(g,(function(n){var r="_."+n[0];e&n[1]&&!Oe(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(st);return e?e[1].split(ft):[]}(r),n)))}function Oa(t){var e=0,n=0;return function(){var r=_n(),a=16-(r-n);if(n=r,a>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Ia(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=Un(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&&ya(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:ho,args:[a],thisArg:i}),new Hn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(i),t}))):this.thru(a)}));var vo=Ai((function(t,e,n){zt.call(t,n)?++t[n]:ar(t,n,1)}));var mo=Fi(Ba),go=Fi(Ha);function yo(t,e){return(Wo(t)?Ce:hr)(t,la(e,3))}function bo(t,e){return(Wo(t)?Pe:dr)(t,la(e,3))}var _o=Ai((function(t,e,n){zt.call(t,n)?t[n].push(e):ar(t,n,[e])}));var wo=Gr((function(t,e,n){var i=-1,a="function"==typeof e,o=Vo(t)?r(t.length):[];return hr(t,(function(t){o[++i]=a?Ne(e,t,n):Pr(t,e,n)})),o})),xo=Ai((function(t,e,n){ar(t,n,e)}));function Eo(t,e){return(Wo(t)?Le:jr)(t,la(e,3))}var ko=Ai((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&&ba(t,e[0],e[1])?e=[]:n>2&&ba(e[0],e[1],e[2])&&(e=[e[0]]),Wr(t,gr(e,1),[])})),So=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 Mo(t,e){var n;if("function"!=typeof e)throw new At(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|=c}return Ki(t,r,e,n,i)})),Po=Gr((function(t,e,n){var r=3;if(n.length){var i=sn(n,ua(Po));r|=c}return Ki(e,r,t,n,i)}));function Ao(t,e,n){var r,o,u,l,c,s,f=0,h=!1,d=!1,p=!0;if("function"!=typeof t)throw new At(a);function v(e){var n=r,a=o;return r=o=i,f=e,l=t.apply(a,n)}function m(t){var n=t-s;return s===i||n>=e||n<0||d&&t-f>=u}function g(){var t=So();if(m(t))return y(t);c=Pa(g,function(t){var n=e-(t-s);return d?bn(n,u-(t-f)):n}(t))}function y(t){return c=i,p&&r?v(t):(r=o=i,l)}function b(){var t=So(),n=m(t);if(r=arguments,o=this,s=t,n){if(c===i)return function(t){return f=t,c=Pa(g,e),h?v(t):l}(s);if(d)return xi(c),c=Pa(g,e),v(s)}return c===i&&(c=Pa(g,e)),l}return e=mu(e)||0,tu(n)&&(h=!!n.leading,u=(d="maxWait"in n)?yn(mu(n.maxWait)||0,e):u,p="trailing"in n?!!n.trailing:p),b.cancel=function(){c!==i&&xi(c),f=0,r=s=o=c=i},b.flush=function(){return c===i?l:y(So())},b}var Ro=Gr((function(t,e){return sr(t,1,e)})),Oo=Gr((function(t,e,n){return sr(t,mu(e)||0,n)}));function Io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new At(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(Io.Cache||$n),n}function Lo(t){if("function"!=typeof t)throw new At(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)}}Io.Cache=$n;var Do=_i((function(t,e){var n=(e=1==e.length&&Wo(e[0])?Le(e[0],Ze(la())):Le(gr(e,1),Ze(la()))).length;return Gr((function(r){for(var i=-1,a=bn(r.length,n);++i=e})),Ho=Ar(function(){return arguments}())?Ar:function(t){return eu(t)&&zt.call(t,"callee")&&!Gt.call(t,"callee")},Wo=r.isArray,Yo=we?Ze(we):function(t){return eu(t)&&Tr(t)==I};function Vo(t){return null!=t&&Jo(t.length)&&!Ko(t)}function $o(t){return eu(t)&&Vo(t)}var Qo=_e||ml,Xo=xe?Ze(xe):function(t){return eu(t)&&Tr(t)==w};function Go(t){if(!eu(t))return!1;var e=Tr(t);return e==x||"[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)==S}function iu(t){if(!eu(t)||Tr(t)!=N)return!1;var e=Qt(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)==P};function uu(t){return"string"==typeof t||!Wo(t)&&eu(t)&&Tr(t)==A}function lu(t){return"symbol"==typeof t||eu(t)&&Tr(t)==R}var cu=Se?Ze(Se):function(t){return eu(t)&&Jo(t.length)&&!!le[Tr(t)]};var su=Vi(Fr),fu=Vi((function(t,e){return t<=e}));function hu(t){if(!t)return[];if(Vo(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?ln:e==P?fn:Uu)(t)}function du(t){return t?(t=mu(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,m):0}function mu(t){if("number"==typeof t)return t;if(lu(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=gt.test(t);return n||bt.test(t)?he(t.slice(2),n?2:8):mt.test(t)?v:+t}function gu(t){return Pi(t,Ru(t))}function yu(t){return null==t?"":ci(t)}var bu=Ri((function(t,e){if(Ea(e)||Vo(e))Pi(e,Au(e),t);else for(var n in e)zt.call(e,n)&&er(t,n,e[n])})),_u=Ri((function(t,e){Pi(e,Ru(e),t)})),wu=Ri((function(t,e,n,r){Pi(e,Ru(e),t,r)})),xu=Ri((function(t,e,n,r){Pi(e,Au(e),t,r)})),Eu=na(or);var ku=Gr((function(t,e){t=Mt(t);var n=-1,r=e.length,a=r>2?e[2]:i;for(a&&ba(e[0],e[1],a)&&(r=1);++n1),e})),Pi(t,ia(t),n),r&&(n=lr(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=Le(ia(t),(function(t){return[t]}));return e=la(e),Yr(t,n,(function(t,n){return e(t,n[0])}))}var Fu=Gi(Au),ju=Gi(Ru);function Uu(t){return null==t?[]:Je(t,Au(t))}var qu=Di((function(t,e,n){return e=e.toLowerCase(),t+(n?Bu(e):e)}));function Bu(t){return Gu(yu(t).toLowerCase())}function Hu(t){return(t=yu(t))&&t.replace(wt,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()})),Vu=Li("toLowerCase");var $u=Di((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Qu=Di((function(t,e,n){return t+(n?" ":"")+Gu(e)}));var Xu=Di((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Gu=Li("toUpperCase");function Ku(t,e,n){return t=yu(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 tl(t){return function(){return t}}var el=ji(),nl=ji(!0);function rl(t){return t}function il(t){return Lr("function"==typeof t?t:lr(t,1))}var al=Gr((function(t,e){return function(n){return Pr(n,t,e)}})),ol=Gr((function(t,e){return function(n){return Pr(t,n,e)}}));function ul(t,e,n){var r=Au(e),i=xr(e,r);null!=n||tu(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=xr(e,Au(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 ll(){}var cl=Hi(Le),sl=Hi(Ae),fl=Hi(je);function hl(t){return _a(t)?$e(Da(t)):function(t){return function(e){return Er(e,t)}}(t)}var dl=Yi(),pl=Yi(!0);function vl(){return[]}function ml(){return!1}var gl=Bi((function(t,e){return t+e}),0),yl=Qi("ceil"),bl=Bi((function(t,e){return t/e}),1),_l=Qi("floor");var wl,xl=Bi((function(t,e){return t*e}),1),El=Qi("round"),kl=Bi((function(t,e){return t-e}),0);return Un.after=function(t,e){if("function"!=typeof e)throw new At(a);return t=pu(t),function(){if(--t<1)return e.apply(this,arguments)}},Un.ary=No,Un.assign=bu,Un.assignIn=_u,Un.assignInWith=wu,Un.assignWith=xu,Un.at=Eu,Un.before=Mo,Un.bind=Co,Un.bindAll=Ju,Un.bindKey=Po,Un.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Wo(t)?t:[t]},Un.chain=fo,Un.chunk=function(t,e,n){e=(n?ba(t,e,n):e===i)?1:yn(pu(e),0);var a=null==t?0:t.length;if(!a||e<1)return[];for(var o=0,u=0,l=r(me(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=yu(t))&&("string"==typeof e||null!=e&&!au(e))&&!(e=ci(e))&&un(t)?wi(pn(t),0,n):t.split(e,n):[]},Un.spread=function(t,e){if("function"!=typeof t)throw new At(a);return e=null==e?0:yn(pu(e),0),Gr((function(n){var r=n[e],i=wi(n,0,e);return r&&De(i,r),Ne(t,this,i)}))},Un.tail=function(t){var e=null==t?0:t.length;return e?ri(t,1,e):[]},Un.take=function(t,e,n){return t&&t.length?ri(t,0,(e=n||e===i?1:pu(e))<0?0:e):[]},Un.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):[]},Un.takeRightWhile=function(t,e){return t&&t.length?di(t,la(e,3),!1,!0):[]},Un.takeWhile=function(t,e){return t&&t.length?di(t,la(e,3)):[]},Un.tap=function(t,e){return e(t),t},Un.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new At(a);return tu(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ao(t,e,{leading:r,maxWait:e,trailing:i})},Un.thru=ho,Un.toArray=hu,Un.toPairs=Fu,Un.toPairsIn=ju,Un.toPath=function(t){return Wo(t)?Le(t,Da):lu(t)?[t]:Ci(La(yu(t)))},Un.toPlainObject=gu,Un.transform=function(t,e,n){var r=Wo(t),i=r||Qo(t)||cu(t);if(e=la(e,4),null==n){var a=t&&t.constructor;n=i?r?new a:[]:tu(t)&&Ko(a)?qn(Qt(t)):{}}return(i?Ce:_r)(t,(function(t,r,i){return e(n,t,r,i)})),n},Un.unary=function(t){return No(t,1)},Un.union=to,Un.unionBy=eo,Un.unionWith=no,Un.uniq=function(t){return t&&t.length?si(t):[]},Un.uniqBy=function(t,e){return t&&t.length?si(t,la(e,2)):[]},Un.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?si(t,i,e):[]},Un.unset=function(t,e){return null==t||fi(t,e)},Un.unzip=ro,Un.unzipWith=io,Un.update=function(t,e,n){return null==t?t:hi(t,e,yi(n))},Un.updateWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:hi(t,e,yi(n),r)},Un.values=Uu,Un.valuesIn=function(t){return null==t?[]:Je(t,Ru(t))},Un.without=ao,Un.words=Ku,Un.wrap=function(t,e){return zo(yi(e),t)},Un.xor=oo,Un.xorBy=uo,Un.xorWith=lo,Un.zip=co,Un.zipObject=function(t,e){return mi(t||[],e||[],er)},Un.zipObjectDeep=function(t,e){return mi(t||[],e||[],Jr)},Un.zipWith=so,Un.entries=Fu,Un.entriesIn=ju,Un.extend=_u,Un.extendWith=wu,ul(Un,Un),Un.add=gl,Un.attempt=Zu,Un.camelCase=qu,Un.capitalize=Bu,Un.ceil=yl,Un.clamp=function(t,e,n){return n===i&&(n=e,e=i),n!==i&&(n=(n=mu(n))==n?n:0),e!==i&&(e=(e=mu(e))==e?e:0),ur(mu(t),e,n)},Un.clone=function(t){return lr(t,4)},Un.cloneDeep=function(t){return lr(t,5)},Un.cloneDeepWith=function(t,e){return lr(t,5,e="function"==typeof e?e:i)},Un.cloneWith=function(t,e){return lr(t,4,e="function"==typeof e?e:i)},Un.conformsTo=function(t,e){return null==e||cr(t,e,Au(e))},Un.deburr=Hu,Un.defaultTo=function(t,e){return null==t||t!=t?e:t},Un.divide=bl,Un.endsWith=function(t,e,n){t=yu(t),e=ci(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},Un.eq=Uo,Un.escape=function(t){return(t=yu(t))&&K.test(t)?t.replace(X,an):t},Un.escapeRegExp=function(t){return(t=yu(t))&&at.test(t)?t.replace(it,"\\$&"):t},Un.every=function(t,e,n){var r=Wo(t)?Ae:pr;return n&&ba(t,e,n)&&(e=i),r(t,la(e,3))},Un.find=mo,Un.findIndex=Ba,Un.findKey=function(t,e){return qe(t,la(e,3),_r)},Un.findLast=go,Un.findLastIndex=Ha,Un.findLastKey=function(t,e){return qe(t,la(e,3),wr)},Un.floor=_l,Un.forEach=yo,Un.forEachRight=bo,Un.forIn=function(t,e){return null==t?t:yr(t,la(e,3),Ru)},Un.forInRight=function(t,e){return null==t?t:br(t,la(e,3),Ru)},Un.forOwn=function(t,e){return t&&_r(t,la(e,3))},Un.forOwnRight=function(t,e){return t&&wr(t,la(e,3))},Un.get=Su,Un.gt=qo,Un.gte=Bo,Un.has=function(t,e){return null!=t&&va(t,e,Nr)},Un.hasIn=Nu,Un.head=Ya,Un.identity=rl,Un.includes=function(t,e,n,r){t=Vo(t)?t:Uu(t),n=n&&!r?pu(n):0;var i=t.length;return n<0&&(n=yn(i+n,0)),uu(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&He(t,e,n)>-1},Un.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=yn(r+i,0)),He(t,e,i)},Un.inRange=function(t,e,n){return e=du(e),n===i?(n=e,e=0):n=du(n),function(t,e,n){return t>=bn(e,n)&&t=-9007199254740991&&t<=p},Un.isSet=ou,Un.isString=uu,Un.isSymbol=lu,Un.isTypedArray=cu,Un.isUndefined=function(t){return t===i},Un.isWeakMap=function(t){return eu(t)&&pa(t)==O},Un.isWeakSet=function(t){return eu(t)&&"[object WeakSet]"==Tr(t)},Un.join=function(t,e){return null==t?"":Qe.call(t,e)},Un.kebabCase=Wu,Un.last=Xa,Un.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?yn(r+a,0):bn(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)},Un.lowerCase=Yu,Un.lowerFirst=Vu,Un.lt=su,Un.lte=fu,Un.max=function(t){return t&&t.length?vr(t,rl,Sr):i},Un.maxBy=function(t,e){return t&&t.length?vr(t,la(e,2),Sr):i},Un.mean=function(t){return Ve(t,rl)},Un.meanBy=function(t,e){return Ve(t,la(e,2))},Un.min=function(t){return t&&t.length?vr(t,rl,Fr):i},Un.minBy=function(t,e){return t&&t.length?vr(t,la(e,2),Fr):i},Un.stubArray=vl,Un.stubFalse=ml,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=xl,Un.nth=function(t,e){return t&&t.length?Hr(t,pu(e)):i},Un.noConflict=function(){return ve._===this&&(ve._=Bt),this},Un.noop=ll,Un.now=So,Un.pad=function(t,e,n){t=yu(t);var r=(e=pu(e))?dn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Wi(ge(i),n)+t+Wi(me(i),n)},Un.padEnd=function(t,e,n){t=yu(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=xn();return bn(t+a*(e-t+fe("1e-"+((a+"").length-1))),e)}return Qr(t,e)},Un.reduce=function(t,e,n){var r=Wo(t)?ze:Xe,i=arguments.length<3;return r(t,la(e,4),n,i,hr)},Un.reduceRight=function(t,e,n){var r=Wo(t)?Fe:Xe,i=arguments.length<3;return r(t,la(e,4),n,i,dr)},Un.repeat=function(t,e,n){return e=(n?ba(t,e,n):e===i)?1:pu(e),Xr(yu(t),e)},Un.replace=function(){var t=arguments,e=yu(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Un.result=function(t,e,n){var r=-1,a=(e=bi(e,t)).length;for(a||(a=1,t=i);++rp)return[];var n=m,r=bn(t,m);e=la(e),t-=m;for(var i=Ke(r,e);++n=o)return t;var l=n-dn(r);if(l<1)return r;var c=u?wi(u,0,l).join(""):t.slice(0,l);if(a===i)return c+r;if(u&&(l+=c.length-l),au(a)){if(t.slice(l).search(a)){var s,f=c;for(a.global||(a=Ct(a.source,yu(vt.exec(a))+"g")),a.lastIndex=0;s=a.exec(f);)var h=s.index;c=c.slice(0,h===i?l:h)}}else if(t.indexOf(ci(a),l)!=l){var d=c.lastIndexOf(a);d>-1&&(c=c.slice(0,d))}return c+r},Un.unescape=function(t){return(t=yu(t))&&G.test(t)?t.replace(Q,vn):t},Un.uniqueId=function(t){var e=++Ft;return yu(t)+e},Un.upperCase=Xu,Un.upperFirst=Gu,Un.each=yo,Un.eachRight=bo,Un.first=Ya,ul(Un,(wl={},_r(Un,(function(t,e){zt.call(Un.prototype,e)||(wl[e]=t)})),wl),{chain:!1}),Un.VERSION="4.17.14",Ce(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Un[t].placeholder=Un})),Ce(["drop","take"],(function(t,e){Wn.prototype[t]=function(n){n=n===i?1:yn(pu(n),0);var r=this.__filtered__&&!e?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=bn(n,r.__takeCount__):r.__views__.push({size:bn(n,m),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:la(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(rl)},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 Pr(n,t,e)}))})),Wn.prototype.reject=function(t){return this.filter(Lo(la(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(m)},_r(Wn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),a=Un[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);a&&(Un.prototype[e]=function(){var e=this.__wrapped__,u=r?[1]:arguments,l=e instanceof Wn,c=u[0],s=l||Wo(e),f=function(t){var e=a.apply(Un,De([t],u));return r&&h?e[0]:e};s&&n&&"function"==typeof c&&1!=c.length&&(l=s=!1);var h=this.__chain__,d=!!this.__actions__.length,p=o&&!h,v=l&&!d;if(!o&&s){e=v?e:new Wn(this);var m=t.apply(e,u);return m.__actions__.push({func:ho,args:[f],thisArg:i}),new Hn(m,h)}return p&&v?t.apply(this,u):(m=this.thru(f),p?r?m.value()[0]:m.value():m)})})),Ce(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Rt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Un.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)}))}})),_r(Wn.prototype,(function(t,e){var n=Un[e];if(n){var r=n.name+"";zt.call(An,r)||(An[r]=[]),An[r].push({name:e,func:n})}})),An[Ui(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__++]}},Un.prototype.plant=function(t){for(var e,n=this;n instanceof Bn;){var r=Fa(n);r.__index__=0,r.__values__=i,e?a.__wrapped__=r:e=r;var a=r;n=n.__wrapped__}return a.__wrapped__=t,e},Un.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 Hn(e,this.__chain__)}return this.thru(Ja)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,Jt&&(Un.prototype[Jt]=function(){return this}),Un}();ve._=mn,(r=function(){return mn}.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),l=1;l{"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