webapp.dist.query.js Maven / Gradle / Ivy
(()=>{var e={1918:(e,t,n)=>{"use strict";n.d(t,{Tj:()=>o});var r="$";function i(){}function a(e,t){var n=new i;if(e instanceof i)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,a=-1,o=e.length;if(null==t)for(;++a{"use strict";n.d(t,{J:()=>l});var r={value:function(){}};function i(){for(var e,t=0,n=arguments.length,r={};t=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}}))),l=-1,c=a.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++l0)for(var n,r,i=new Array(n),a=0;a{"use strict";n.d(t,{sw:()=>l,Nu:()=>s});var r={},i={};function a(e){return new Function("d","return {"+e.map((function(e,t){return JSON.stringify(e)+": d["+t+"]"})).join(",")+"}")}function o(e){var t=new RegExp('["'+e+"\n\r]"),n=e.charCodeAt(0);function o(e,t){var a,o=[],u=e.length,l=0,c=0,s=u<=0,f=!1;function h(){if(s)return i;if(f)return f=!1,r;var t,a,o=l;if(34===e.charCodeAt(o)){for(;l++=u?s=!0:10===(a=e.charCodeAt(l++))?f=!0:13===a&&(f=!0,10===e.charCodeAt(l)&&++l),e.slice(o+1,t-1).replace(/""/g,'"')}for(;l{e.exports={graphlib:n(5653),dagre:n(8193),intersect:n(8070),render:n(2330),util:n(7998),version:n(5872)}},2744:(e,t,n)=>{var r=n(7998);function i(e,t,n,i){var a=e.append("marker").attr("id",t).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"])}e.exports={default:i,normal:i,vee:function(e,t,n,i){var a=e.append("marker").attr("id",t).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(e,t,n,i){var a=e.append("marker").attr("id",t).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:(e,t,n)=>{var r=n(7998),i=n(4747),a=n(3965);e.exports=function(e,t){var n=t.nodes().filter((function(e){return r.isSubgraph(t,e)})),o=e.selectAll("g.cluster").data(n,(function(e){return e}));return o.selectAll("*").remove(),o.enter().append("g").attr("class","cluster").attr("id",(function(e){return t.node(e).id})).style("opacity",0),o=e.selectAll("g.cluster"),r.applyTransition(o,t).style("opacity",1),o.each((function(e){var n=t.node(e),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(e){var n=t.node(e),a=i.select(this);r.applyStyle(a,n.style)})),r.applyTransition(o.exit(),t).style("opacity",0).remove(),o}},3784:(e,t,n)=>{"use strict";var r=n(3451),i=n(3965),a=n(7998),o=n(4747);e.exports=function(e,t){var n=e.selectAll("g.edgeLabel").data(t.edges(),(function(e){return a.edgeToId(e)})).classed("update",!0);return n.selectAll("*").remove(),n.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(n=e.selectAll("g.edgeLabel")).each((function(e){var n=t.edge(e),a=i(o.select(this),t.edge(e),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(),t).style("opacity",0).remove(),n}},7863:(e,t,n)=>{"use strict";var r=n(3451),i=n(5408),a=n(7998),o=n(4747);function u(e,t){var n=o.line().x((function(e){return e.x})).y((function(e){return e.y}));return n.curve(e.curve),n(t)}e.exports=function(e,t,n){var l=e.selectAll("g.edgePath").data(t.edges(),(function(e){return a.edgeToId(e)})).classed("update",!0);return function(e,t){var n=e.enter().append("g").attr("class","edgePath").style("opacity",0);n.append("path").attr("class","path").attr("d",(function(e){var n=t.edge(e),i=t.node(e.v).elem;return u(n,r.range(n.points.length).map((function(){return t=(e=i).getBBox(),{x:(n=e.ownerSVGElement.getScreenCTM().inverse().multiply(e.getScreenCTM()).translate(t.width/2,t.height/2)).e,y:n.f};var e,t,n})))})),n.append("defs")}(l,t),function(e,t){var n=e.exit();a.applyTransition(n,t).style("opacity",0).remove(),a.applyTransition(n.select("path.path"),t).attr("d",(function(e){var n=t.node(e.v);return n?u({},r.range(this.getTotalLength()).map((function(){return n}))):o.select(this).attr("d")}))}(l,t),l=e.selectAll("g.edgePath"),a.applyTransition(l,t).style("opacity",1),l.each((function(e){var n=o.select(this),r=t.edge(e);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(e){var n=t.edge(e);n.arrowheadId=r.uniqueId("arrowhead");var l=o.select(this).attr("marker-end",(function(){return"url("+(e=location.href,t=n.arrowheadId,e.split("#")[0]+"#"+t+")");var e,t})).style("fill","none");a.applyTransition(l,t).attr("d",(function(e){return function(e,t){var n=e.edge(t),r=e.node(t.v),a=e.node(t.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)}(t,e)})),a.applyStyle(l,n.style)})),l.selectAll("defs *").remove(),l.selectAll("defs").each((function(e){var r=t.edge(e);(0,n[r.arrowhead])(o.select(this),r.arrowheadId,r,"arrowhead")})),l}},2490:(e,t,n)=>{"use strict";var r=n(3451),i=n(3965),a=n(7998),o=n(4747);e.exports=function(e,t,n){var u=t.nodes().filter((function(e){return!a.isSubgraph(t,e)})),l=e.selectAll("g.node").data(u,(function(e){return e})).classed("update",!0);return l.selectAll("*").remove(),l.enter().append("g").attr("class","node").style("opacity",0),(l=e.selectAll("g.node")).each((function(e){var u=t.node(e),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(),t).style("opacity",0).remove(),l}},4747:(e,t,n)=>{var r;if(!r)try{r=n(2549)}catch(e){}r||(r=window.d3),e.exports=r},8193:(e,t,n)=>{var r;try{r=n(6246)}catch(e){}r||(r=window.dagre),e.exports=r},5653:(e,t,n)=>{var r;try{r=n(8362)}catch(e){}r||(r=window.graphlib),e.exports=r},8070:(e,t,n)=>{e.exports={node:n(5408),circle:n(7672),ellipse:n(1772),polygon:n(7536),rect:n(8782)}},7672:(e,t,n)=>{var r=n(1772);e.exports=function(e,t,n){return r(e,t,t,n)}},1772:e=>{e.exports=function(e,t,n,r){var i=e.x,a=e.y,o=i-r.x,u=a-r.y,l=Math.sqrt(t*t*u*u+n*n*o*o),c=Math.abs(t*n*o/l);r.x{function t(e,t){return e*t>0}e.exports=function(e,n,r,i){var a,o,u,l,c,s,f,h,d,p,g,v,m;if(a=n.y-e.y,u=e.x-n.x,c=n.x*e.y-e.x*n.y,d=a*r.x+u*r.y+c,p=a*i.x+u*i.y+c,0!==d&&0!==p&&t(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*e.x+l*e.y+s,h=o*n.x+l*n.y+s,0!==f&&0!==h&&t(f,h))return;if(0===(g=a*l-o*u))return;return v=Math.abs(g/2),{x:(m=u*s-l*c)<0?(m-v)/g:(m+v)/g,y:(m=o*c-a*s)<0?(m-v)/g:(m+v)/g}}},5408:e=>{e.exports=function(e,t){return e.intersect(t)}},7536:(e,t,n)=>{var r=n(7170);e.exports=function(e,t,n){var i=e.x,a=e.y,o=[],u=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;t.forEach((function(e){u=Math.min(u,e.x),l=Math.min(l,e.y)}));for(var c=i-e.width/2-u,s=a-e.height/2-l,f=0;f1&&o.sort((function(e,t){var r=e.x-n.x,i=e.y-n.y,a=Math.sqrt(r*r+i*i),o=t.x-n.x,u=t.y-n.y,l=Math.sqrt(o*o+u*u);return a{e.exports=function(e,t){var n,r,i=e.x,a=e.y,o=t.x-i,u=t.y-a,l=e.width/2,c=e.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:(e,t,n)=>{var r=n(7998);e.exports=function(e,t){var n=e.append("foreignObject").attr("width","100000"),i=n.append("xhtml:div");i.attr("xmlns","http://www.w3.org/1999/xhtml");var a=t.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,t.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:(e,t,n)=>{var r=n(399),i=n(517),a=n(2734);e.exports=function(e,t,n){var o=t.label,u=e.append("g");"svg"===t.labelType?a(u,t):"string"!=typeof o||"html"===t.labelType?i(u,t):r(u,t);var l,c=u.node().getBBox();switch(n){case"top":l=-t.height/2;break;case"bottom":l=t.height/2-c.height;break;default:l=-c.height/2}return u.attr("transform","translate("+-c.width/2+","+l+")"),u}},2734:(e,t,n)=>{var r=n(7998);e.exports=function(e,t){var n=e;return n.node().appendChild(t.label),r.applyStyle(n,t.labelStyle),n}},399:(e,t,n)=>{var r=n(7998);e.exports=function(e,t){for(var n=e.append("text"),i=function(e){for(var t,n="",r=!1,i=0;i{var r;try{r=n(2543)}catch(e){}r||(r=window._),e.exports=r},5593:(e,t,n)=>{"use strict";var r=n(7998),i=n(4747);e.exports=function(e,t){var n=e.filter((function(){return!i.select(this).classed("update")}));function a(e){var n=t.node(e);return"translate("+n.x+","+n.y+")"}n.attr("transform",a),r.applyTransition(e,t).style("opacity",1).attr("transform",a),r.applyTransition(n.selectAll("rect"),t).attr("width",(function(e){return t.node(e).width})).attr("height",(function(e){return t.node(e).height})).attr("x",(function(e){return-t.node(e).width/2})).attr("y",(function(e){return-t.node(e).height/2}))}},9283:(e,t,n)=>{"use strict";var r=n(7998),i=n(4747),a=n(3451);e.exports=function(e,t){function n(e){var n=t.edge(e);return a.has(n,"x")?"translate("+n.x+","+n.y+")":""}e.filter((function(){return!i.select(this).classed("update")})).attr("transform",n),r.applyTransition(e,t).style("opacity",1).attr("transform",n)}},3321:(e,t,n)=>{"use strict";var r=n(7998),i=n(4747);e.exports=function(e,t){function n(e){var n=t.node(e);return"translate("+n.x+","+n.y+")"}e.filter((function(){return!i.select(this).classed("update")})).attr("transform",n),r.applyTransition(e,t).style("opacity",1).attr("transform",n)}},2330:(e,t,n)=>{var r=n(3451),i=n(4747),a=n(8193).layout;e.exports=function(){var e=n(2490),t=n(7076),i=n(3784),c=n(7863),s=n(3321),f=n(9283),h=n(5593),d=n(3096),p=n(2744),g=function(n,g){!function(e){e.nodes().forEach((function(t){var n=e.node(t);r.has(n,"label")||e.children(t).length||(n.label=t),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(e){n[e]=Number(n[e])})),r.has(n,"width")&&(n._prevWidth=n.width),r.has(n,"height")&&(n._prevHeight=n.height)})),e.edges().forEach((function(t){var n=e.edge(t);r.has(n,"label")||(n.label=""),r.defaults(n,u)}))}(g),n.selectAll("*").remove();var v=l(n,"output"),m=l(v,"clusters"),y=l(v,"edgePaths"),b=i(l(v,"edgeLabels"),g),_=e(l(v,"nodes"),g,d);a(g),s(_,g),f(b,g),c(y,g,p);var w=t(m,g);h(w,g),function(e){r.each(e.nodes(),(function(t){var n=e.node(t);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}))}(g)};return g.createNodes=function(t){return arguments.length?(e=t,g):e},g.createClusters=function(e){return arguments.length?(t=e,g):t},g.createEdgeLabels=function(e){return arguments.length?(i=e,g):i},g.createEdgePaths=function(e){return arguments.length?(c=e,g):c},g.shapes=function(e){return arguments.length?(d=e,g):d},g.arrows=function(e){return arguments.length?(p=e,g):p},g};var o={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},u={arrowhead:"normal",curve:i.curveLinear};function l(e,t){var n=e.select("g."+t);return n.empty()&&(n=e.append("g").attr("class",t)),n}},3096:(e,t,n)=>{"use strict";var r=n(8782),i=n(1772),a=n(7672),o=n(7536);e.exports={rect:function(e,t,n){var i=e.insert("rect",":first-child").attr("rx",n.rx).attr("ry",n.ry).attr("x",-t.width/2).attr("y",-t.height/2).attr("width",t.width).attr("height",t.height);return n.intersect=function(e){return r(n,e)},i},ellipse:function(e,t,n){var r=t.width/2,a=t.height/2,o=e.insert("ellipse",":first-child").attr("x",-t.width/2).attr("y",-t.height/2).attr("rx",r).attr("ry",a);return n.intersect=function(e){return i(n,r,a,e)},o},circle:function(e,t,n){var r=Math.max(t.width,t.height)/2,i=e.insert("circle",":first-child").attr("x",-t.width/2).attr("y",-t.height/2).attr("r",r);return n.intersect=function(e){return a(n,r,e)},i},diamond:function(e,t,n){var r=t.width*Math.SQRT2/2,i=t.height*Math.SQRT2/2,a=[{x:0,y:-i},{x:-r,y:0},{x:0,y:i},{x:r,y:0}],u=e.insert("polygon",":first-child").attr("points",a.map((function(e){return e.x+","+e.y})).join(" "));return n.intersect=function(e){return o(n,a,e)},u}}},7998:(e,t,n)=>{var r=n(3451);e.exports={isSubgraph:function(e,t){return!!e.children(t).length},edgeToId:function(e){return a(e.v)+":"+a(e.w)+":"+a(e.name)},applyStyle:function(e,t){t&&e.attr("style",t)},applyClass:function(e,t,n){t&&e.attr("class",t).attr("class",n+" "+e.attr("class"))},applyTransition:function(e,t){var n=t.graph();if(r.isPlainObject(n)){var i=n.transition;if(r.isFunction(i))return i(e)}return e}};var i=/:/g;function a(e){return e?String(e).replace(i,"\\:"):""}},5872:e=>{e.exports="0.6.1"},2549:(e,t,n)=>{"use strict";n.r(t),n.d(t,{active:()=>Ba,arc:()=>tb,area:()=>ub,areaRadial:()=>vb,ascending:()=>i,axisBottom:()=>le,axisLeft:()=>ce,axisRight:()=>ue,axisTop:()=>oe,bisect:()=>c,bisectLeft:()=>l,bisectRight:()=>u,bisector:()=>a,brush:()=>po,brushSelection:()=>so,brushX:()=>fo,brushY:()=>ho,chord:()=>xo,clientPoint:()=>Dt,cluster:()=>rd,color:()=>vn,create:()=>At,creator:()=>we,cross:()=>h,csv:()=>Dp,csvFormat:()=>su,csvFormatRows:()=>fu,csvParse:()=>lu,csvParseRows:()=>cu,cubehelix:()=>Zn,curveBasis:()=>Gb,curveBasisClosed:()=>Zb,curveBasisOpen:()=>e_,curveBundle:()=>n_,curveCardinal:()=>a_,curveCardinalClosed:()=>u_,curveCardinalOpen:()=>c_,curveCatmullRom:()=>h_,curveCatmullRomClosed:()=>p_,curveCatmullRomOpen:()=>v_,curveLinear:()=>rb,curveLinearClosed:()=>y_,curveMonotoneX:()=>T_,curveMonotoneY:()=>N_,curveNatural:()=>P_,curveStep:()=>O_,curveStepAfter:()=>I_,curveStepBefore:()=>R_,customEvent:()=>xt,descending:()=>d,deviation:()=>v,dispatch:()=>ge,drag:()=>Kt,dragDisable:()=>Ht,dragEnable:()=>Wt,dsvFormat:()=>ou,easeBack:()=>Ia,easeBackIn:()=>Oa,easeBackInOut:()=>Ia,easeBackOut:()=>Ra,easeBounce:()=>Ca,easeBounceIn:()=>Ma,easeBounceInOut:()=>Pa,easeBounceOut:()=>Ca,easeCircle:()=>ma,easeCircleIn:()=>ga,easeCircleInOut:()=>ma,easeCircleOut:()=>va,easeCubic:()=>ra,easeCubicIn:()=>ta,easeCubicInOut:()=>ra,easeCubicOut:()=>na,easeElastic:()=>ja,easeElasticIn:()=>Da,easeElasticInOut:()=>za,easeElasticOut:()=>ja,easeExp:()=>pa,easeExpIn:()=>ha,easeExpInOut:()=>pa,easeExpOut:()=>da,easeLinear:()=>Ki,easePoly:()=>oa,easePolyIn:()=>ia,easePolyInOut:()=>oa,easePolyOut:()=>aa,easeQuad:()=>ea,easeQuadIn:()=>Zi,easeQuadInOut:()=>ea,easeQuadOut:()=>Ji,easeSin:()=>fa,easeSinIn:()=>ca,easeSinInOut:()=>fa,easeSinOut:()=>sa,entries:()=>Jo,event:()=>mt,extent:()=>m,forceCenter:()=>mu,forceCollide:()=>Pu,forceLink:()=>Ru,forceManyBody:()=>Uu,forceRadial:()=>qu,forceSimulation:()=>Fu,forceX:()=>Bu,forceY:()=>Hu,format:()=>Ju,formatDefaultLocale:()=>rl,formatLocale:()=>nl,formatPrefix:()=>el,formatSpecifier:()=>Qu,geoAlbers:()=>kh,geoAlbersUsa:()=>Sh,geoArea:()=>Jl,geoAzimuthalEqualArea:()=>Ch,geoAzimuthalEqualAreaRaw:()=>Mh,geoAzimuthalEquidistant:()=>Ah,geoAzimuthalEquidistantRaw:()=>Ph,geoBounds:()=>$c,geoCentroid:()=>rs,geoCircle:()=>ps,geoClipAntimeridian:()=>Ss,geoClipCircle:()=>Ts,geoClipExtent:()=>Ps,geoClipRectangle:()=>Cs,geoConicConformal:()=>jh,geoConicConformalRaw:()=>Dh,geoConicEqualArea:()=>Eh,geoConicEqualAreaRaw:()=>xh,geoConicEquidistant:()=>qh,geoConicEquidistantRaw:()=>Uh,geoContains:()=>Ks,geoDistance:()=>Bs,geoEquirectangular:()=>Fh,geoEquirectangularRaw:()=>zh,geoGnomonic:()=>Hh,geoGnomonicRaw:()=>Bh,geoGraticule:()=>ef,geoGraticule10:()=>tf,geoIdentity:()=>$h,geoInterpolate:()=>nf,geoLength:()=>Fs,geoMercator:()=>Rh,geoMercatorRaw:()=>Oh,geoNaturalEarth1:()=>Vh,geoNaturalEarth1Raw:()=>Yh,geoOrthographic:()=>Qh,geoOrthographicRaw:()=>Xh,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:()=>tr,interpolateBasisClosed:()=>nr,interpolateCool:()=>Ny,interpolateCubehelix:()=>$r,interpolateCubehelixDefault:()=>Sy,interpolateCubehelixLong:()=>Yr,interpolateDate:()=>dr,interpolateHcl:()=>Br,interpolateHclLong:()=>Hr,interpolateHsl:()=>zr,interpolateHslLong:()=>Fr,interpolateInferno:()=>Ry,interpolateLab:()=>Ur,interpolateMagma:()=>Oy,interpolateNumber:()=>pr,interpolateObject:()=>gr,interpolatePlasma:()=>Iy,interpolateRainbow:()=>Cy,interpolateRgb:()=>lr,interpolateRgbBasis:()=>sr,interpolateRgbBasisClosed:()=>fr,interpolateRound:()=>_r,interpolateString:()=>yr,interpolateTransformCss:()=>Cr,interpolateTransformSvg:()=>Pr,interpolateViridis:()=>Ay,interpolateWarm:()=>Ty,interpolateZoom:()=>Dr,interrupt:()=>Mi,interval:()=>pi,isoFormat:()=>ay,isoParse:()=>uy,json:()=>Ap,keys:()=>Ko,lab:()=>Dn,line:()=>ob,lineRadial:()=>gb,linkHorizontal:()=>Sb,linkRadial:()=>Nb,linkVertical:()=>Tb,local:()=>Rt,map:()=>qo,matcher:()=>Ce,max:()=>L,mean:()=>D,median:()=>j,merge:()=>z,min:()=>F,mouse:()=>jt,namespace:()=>ye,namespaces:()=>me,nest:()=>Bo,now:()=>ai,pack:()=>Cd,packEnclose:()=>fd,packSiblings:()=>kd,pairs:()=>s,partition:()=>Ld,path:()=>Ao,permute:()=>U,pie:()=>sb,pointRadial:()=>mb,polygonArea:()=>rp,polygonCentroid:()=>ip,polygonContains:()=>cp,polygonHull:()=>lp,polygonLength:()=>sp,precisionFixed:()=>il,precisionPrefix:()=>al,precisionRound:()=>ol,quadtree:()=>ku,quantile:()=>O,quantize:()=>Vr,queue:()=>yp,radialArea:()=>vb,radialLine:()=>gb,randomBates:()=>kp,randomExponential:()=>Sp,randomIrwinHall:()=>Ep,randomLogNormal:()=>xp,randomNormal:()=>wp,randomUniform:()=>_p,range:()=>E,request:()=>Mp,rgb:()=>_n,ribbon:()=>jo,scaleBand:()=>Hp,scaleIdentity:()=>ng,scaleImplicit:()=>qp,scaleLinear:()=>tg,scaleLog:()=>sg,scaleOrdinal:()=>Bp,scalePoint:()=>$p,scalePow:()=>hg,scaleQuantile:()=>pg,scaleQuantize:()=>gg,scaleSequential:()=>Ly,scaleSqrt:()=>dg,scaleThreshold:()=>vg,scaleTime:()=>yy,scaleUtc:()=>by,scan:()=>q,schemeCategory10:()=>wy,schemeCategory20:()=>ky,schemeCategory20b:()=>xy,schemeCategory20c:()=>Ey,select:()=>Pt,selectAll:()=>zt,selection:()=>Ct,selector:()=>Ee,selectorAll:()=>Se,set:()=>Go,shuffle:()=>B,stack:()=>z_,stackOffsetDiverging:()=>U_,stackOffsetExpand:()=>F_,stackOffsetNone:()=>L_,stackOffsetSilhouette:()=>q_,stackOffsetWiggle:()=>B_,stackOrderAscending:()=>H_,stackOrderDescending:()=>$_,stackOrderInsideOut:()=>Y_,stackOrderNone:()=>D_,stackOrderReverse:()=>V_,stratify:()=>qd,style:()=>Ye,sum:()=>H,symbol:()=>Yb,symbolCircle:()=>Mb,symbolCross:()=>Cb,symbolDiamond:()=>Ob,symbolSquare:()=>jb,symbolStar:()=>Db,symbolTriangle:()=>Fb,symbolWye:()=>Wb,symbols:()=>$b,text:()=>Op,thresholdFreedmanDiaconis:()=>R,thresholdScott:()=>I,thresholdSturges:()=>P,tickIncrement:()=>M,tickStep:()=>C,ticks:()=>N,timeDay:()=>zg,timeDays:()=>Fg,timeFormat:()=>Bv,timeFormatDefaultLocale:()=>ny,timeFormatLocale:()=>Uv,timeFriday:()=>Yg,timeFridays:()=>Jg,timeHour:()=>Lg,timeHours:()=>Dg,timeInterval:()=>bg,timeMillisecond:()=>wg,timeMilliseconds:()=>xg,timeMinute:()=>Og,timeMinutes:()=>Rg,timeMonday:()=>Bg,timeMondays:()=>Qg,timeMonth:()=>nv,timeMonths:()=>rv,timeParse:()=>Hv,timeSaturday:()=>Vg,timeSaturdays:()=>ev,timeSecond:()=>Cg,timeSeconds:()=>Pg,timeSunday:()=>qg,timeSundays:()=>Xg,timeThursday:()=>$g,timeThursdays:()=>Zg,timeTuesday:()=>Hg,timeTuesdays:()=>Gg,timeWednesday:()=>Wg,timeWednesdays:()=>Kg,timeWeek:()=>qg,timeWeeks:()=>Xg,timeYear:()=>av,timeYears:()=>ov,timeout:()=>di,timer:()=>li,timerFlush:()=>ci,touch:()=>Ft,touches:()=>Ut,transition:()=>Xi,transpose:()=>W,tree:()=>Xd,treemap:()=>Jd,treemapBinary:()=>ep,treemapDice:()=>Id,treemapResquarify:()=>np,treemapSlice:()=>Qd,treemapSliceDice:()=>tp,treemapSquarify:()=>Zd,tsv:()=>jp,tsvFormat:()=>gu,tsvFormatRows:()=>vu,tsvParse:()=>du,tsvParseRows:()=>pu,utcDay:()=>pv,utcDays:()=>gv,utcFormat:()=>Wv,utcFriday:()=>xv,utcFridays:()=>Cv,utcHour:()=>fv,utcHours:()=>hv,utcMillisecond:()=>wg,utcMilliseconds:()=>xg,utcMinute:()=>lv,utcMinutes:()=>cv,utcMonday:()=>yv,utcMondays:()=>Sv,utcMonth:()=>Ov,utcMonths:()=>Rv,utcParse:()=>$v,utcSaturday:()=>Ev,utcSaturdays:()=>Pv,utcSecond:()=>Cg,utcSeconds:()=>Pg,utcSunday:()=>mv,utcSundays:()=>kv,utcThursday:()=>wv,utcThursdays:()=>Mv,utcTuesday:()=>bv,utcTuesdays:()=>Tv,utcWednesday:()=>_v,utcWednesdays:()=>Nv,utcWeek:()=>mv,utcWeeks:()=>kv,utcYear:()=>Lv,utcYears:()=>Dv,values:()=>Zo,variance:()=>g,version:()=>r,voronoi:()=>Rw,window:()=>Be,xml:()=>Rp,zip:()=>Y,zoom:()=>Vw,zoomIdentity:()=>jw,zoomTransform:()=>zw});var r="4.13.0";function i(e,t){return et?1:e>=t?0:NaN}function a(e){var t;return 1===e.length&&(t=e,e=function(e,n){return i(t(e),n)}),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;e(t[a],n)<0?r=a+1:i=a}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;e(t[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(e,t){null==t&&(t=f);for(var n=0,r=e.length-1,i=e[0],a=new Array(r<0?0:r);ne?1:t>=e?0:NaN}function p(e){return null===e?NaN:+e}function g(e,t){var n,r,i=e.length,a=0,o=-1,u=0,l=0;if(null==t)for(;++o1)return l/(a-1)}function v(e,t){var n=g(e,t);return n?Math.sqrt(n):n}function m(e,t){var n,r,i,a=e.length,o=-1;if(null==t){for(;++o=n)for(r=i=n;++on&&(r=n),i=n)for(r=i=n;++on&&(r=n),i0)return[e];if((r=t0)for(e=Math.ceil(e/o),t=Math.floor(t/o),a=new Array(i=Math.ceil(t-e+1));++u=0?(a>=k?10:a>=S?5:a>=T?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=k?10:a>=S?5:a>=T?2:1)}function C(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=k?i*=10:a>=S?i*=5:a>=T&&(i*=2),tf;)h.pop(),--d;var p,g=new Array(d+1);for(i=0;i<=d;++i)(p=g[i]=[]).x0=i>0?h[i-1]:s,p.x1=i=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e);return o+(+n(e[a+1],a+1,e)-o)*(i-a)}}function R(e,t,n){return e=_.call(e,p).sort(i),Math.ceil((n-t)/(2*(O(e,.75)-O(e,.25))*Math.pow(e.length,-1/3)))}function I(e,t,n){return Math.ceil((n-t)/(3.5*v(e)*Math.pow(e.length,-1/3)))}function L(e,t){var n,r,i=e.length,a=-1;if(null==t){for(;++a=n)for(r=n;++ar&&(r=n)}else for(;++a=n)for(r=n;++ar&&(r=n);return r}function D(e,t){var n,r=e.length,i=r,a=-1,o=0;if(null==t)for(;++a=0;)for(t=(r=e[i]).length;--t>=0;)n[--o]=r[t];return n}function F(e,t){var n,r,i=e.length,a=-1;if(null==t){for(;++a=n)for(r=n;++an&&(r=n)}else for(;++a=n)for(r=n;++an&&(r=n);return r}function U(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r}function q(e,t){if(n=e.length){var n,r,a=0,o=0,u=e[o];for(null==t&&(t=i);++a=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}}))),o=-1,u=a.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++o0)for(var n,r,i=new Array(n),a=0;a=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),me.hasOwnProperty(t)?{space:me[t],local:e}:e}function be(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===ve&&t.documentElement.namespaceURI===ve?t.createElement(e):t.createElementNS(n,e)}}function _e(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function we(e){var t=ye(e);return(t.local?_e:be)(t)}function xe(){}function Ee(e){return null==e?xe:function(){return this.querySelector(e)}}function ke(){return[]}function Se(e){return null==e?ke:function(){return this.querySelectorAll(e)}}var Te=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var Ne=document.documentElement;if(!Ne.matches){var Me=Ne.webkitMatchesSelector||Ne.msMatchesSelector||Ne.mozMatchesSelector||Ne.oMatchesSelector;Te=function(e){return function(){return Me.call(this,e)}}}}const Ce=Te;function Pe(e){return new Array(e.length)}function Ae(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Ae.prototype={constructor:Ae,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var Oe="$";function Re(e,t,n,r,i,a){for(var o,u=0,l=t.length,c=a.length;ut?1:e>=t?0:NaN}function De(e){return function(){this.removeAttribute(e)}}function je(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ze(e,t){return function(){this.setAttribute(e,t)}}function Fe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Ue(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function qe(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Be(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function He(e){return function(){this.style.removeProperty(e)}}function We(e,t,n){return function(){this.style.setProperty(e,t,n)}}function $e(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Ye(e,t){return e.style.getPropertyValue(t)||Be(e).getComputedStyle(e,null).getPropertyValue(t)}function Ve(e){return function(){delete this[e]}}function Xe(e,t){return function(){this[e]=t}}function Qe(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function Ge(e){return e.trim().split(/^|\s+/)}function Ke(e){return e.classList||new Ze(e)}function Ze(e){this._node=e,this._names=Ge(e.getAttribute("class")||"")}function Je(e,t){for(var n=Ke(e),r=-1,i=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var vt={},mt=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(vt={mouseenter:"mouseover",mouseleave:"mouseout"}));function yt(e,t,n){return e=bt(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function bt(e,t,n){return function(r){var i=mt;mt=r;try{e.call(this,this.__data__,t,n)}finally{mt=i}}}function _t(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,a=t.length;r=_&&(_=b+1);!(y=v[_])&&++_=0;)(r=i[a])&&(o&&o!==r.nextSibling&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Le);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a1?this.each((null==t?He:"function"==typeof t?$e:We)(e,t,null==n?"":n)):Ye(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Ve:"function"==typeof t?Qe:Xe)(e,t)):this.node()[e]},classed:function(e,t){var n=Ge(e+"");if(arguments.length<2){for(var r=Ke(this.node()),i=-1,a=n.length;++i=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),o=a.length;if(!(arguments.length<2)){for(u=t?wt:_t,null==n&&(n=!1),r=0;rf}l.mouse("drag")}function g(){Pt(mt.view).on("mousemove.drag mouseup.drag",null),Wt(mt.view,n),Bt(),l.mouse("end")}function v(){if(i.apply(this,arguments)){var e,t,n=mt.changedTouches,r=a.apply(this,arguments),o=n.length;for(e=0;e>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=ln.exec(e))?mn(parseInt(t[1],16)):(t=cn.exec(e))?new wn(t[1],t[2],t[3],1):(t=sn.exec(e))?new wn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=fn.exec(e))?yn(t[1],t[2],t[3],t[4]):(t=hn.exec(e))?yn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=dn.exec(e))?xn(t[1],t[2]/100,t[3]/100,1):(t=pn.exec(e))?xn(t[1],t[2]/100,t[3]/100,t[4]):gn.hasOwnProperty(e)?mn(gn[e]):"transparent"===e?new wn(NaN,NaN,NaN,0):null}function mn(e){return new wn(e>>16&255,e>>8&255,255&e,1)}function yn(e,t,n,r){return r<=0&&(e=t=n=NaN),new wn(e,t,n,r)}function bn(e){return e instanceof en||(e=vn(e)),e?new wn((e=e.rgb()).r,e.g,e.b,e.opacity):new wn}function _n(e,t,n,r){return 1===arguments.length?bn(e):new wn(e,t,n,null==r?1:r)}function wn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function xn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new kn(e,t,n,r)}function En(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof kn)return new kn(e.h,e.s,e.l,e.opacity);if(e instanceof en||(e=vn(e)),!e)return new kn;if(e instanceof kn)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,u=a-i,l=(a+i)/2;return u?(o=t===a?(n-r)/u+6*(n0&&l<1?0:o,new kn(o,u,l,e.opacity)}(e):new kn(e,t,n,null==r?1:r)}function kn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Sn(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Zt(en,vn,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Zt(wn,_n,Jt(en,{brighter:function(e){return e=null==e?nn:Math.pow(nn,e),new wn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?tn:Math.pow(tn,e),new wn(this.r*e,this.g*e,this.b*e,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 e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),Zt(kn,En,Jt(en,{brighter:function(e){return e=null==e?nn:Math.pow(nn,e),new kn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?tn:Math.pow(tn,e),new kn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new wn(Sn(e>=240?e-240:e+120,i,r),Sn(e,i,r),Sn(e<120?e+240:e-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 Tn=Math.PI/180,Nn=180/Math.PI,Mn=.95047,Cn=1,Pn=1.08883,An=4/29,On=6/29,Rn=3*On*On,In=On*On*On;function Ln(e){if(e instanceof jn)return new jn(e.l,e.a,e.b,e.opacity);if(e instanceof Hn){var t=e.h*Tn;return new jn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof wn||(e=bn(e));var n=qn(e.r),r=qn(e.g),i=qn(e.b),a=zn((.4124564*n+.3575761*r+.1804375*i)/Mn),o=zn((.2126729*n+.7151522*r+.072175*i)/Cn);return new jn(116*o-16,500*(a-o),200*(o-zn((.0193339*n+.119192*r+.9503041*i)/Pn)),e.opacity)}function Dn(e,t,n,r){return 1===arguments.length?Ln(e):new jn(e,t,n,null==r?1:r)}function jn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function zn(e){return e>In?Math.pow(e,1/3):e/Rn+An}function Fn(e){return e>On?e*e*e:Rn*(e-An)}function Un(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function qn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Bn(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Hn)return new Hn(e.h,e.c,e.l,e.opacity);e instanceof jn||(e=Ln(e));var t=Math.atan2(e.b,e.a)*Nn;return new Hn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Hn(e,t,n,null==r?1:r)}function Hn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}Zt(jn,Dn,Jt(en,{brighter:function(e){return new jn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new jn(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return e=Cn*Fn(e),new wn(Un(3.2404542*(t=Mn*Fn(t))-1.5371385*e-.4985314*(n=Pn*Fn(n))),Un(-.969266*t+1.8760108*e+.041556*n),Un(.0556434*t-.2040259*e+1.0572252*n),this.opacity)}})),Zt(Hn,Bn,Jt(en,{brighter:function(e){return new Hn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Hn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Ln(this).rgb()}}));var Wn=-.14861,$n=1.78277,Yn=-.29227,Vn=-.90649,Xn=1.97294,Qn=Xn*Vn,Gn=Xn*$n,Kn=$n*Yn-Vn*Wn;function Zn(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Jn)return new Jn(e.h,e.s,e.l,e.opacity);e instanceof wn||(e=bn(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(Kn*r+Qn*t-Gn*n)/(Kn+Qn-Gn),a=r-i,o=(Xn*(n-i)-Yn*a)/Vn,u=Math.sqrt(o*o+a*a)/(Xn*i*(1-i)),l=u?Math.atan2(o,a)*Nn-120:NaN;return new Jn(l<0?l+360:l,u,i,e.opacity)}(e):new Jn(e,t,n,null==r?1:r)}function Jn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function er(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}function tr(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,u=r180||n<-180?n-360*Math.round(n/360):n):rr(isNaN(e)?t:e)}function or(e){return 1==(e=+e)?ur:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):rr(isNaN(t)?n:t)}}function ur(e,t){var n=t-e;return n?ir(e,n):rr(isNaN(e)?t:e)}Zt(Jn,Zn,Jt(en,{brighter:function(e){return e=null==e?nn:Math.pow(nn,e),new Jn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?tn:Math.pow(tn,e),new Jn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*Tn,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new wn(255*(t+n*(Wn*r+$n*i)),255*(t+n*(Yn*r+Vn*i)),255*(t+n*(Xn*r)),this.opacity)}}));const lr=function e(t){var n=or(t);function r(e,t){var r=n((e=_n(e)).r,(t=_n(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=ur(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+""}}return r.gamma=e,r}(1);function cr(e){return function(t){var n,r,i=t.length,a=new Array(i),o=new Array(i),u=new Array(i);for(n=0;na&&(i=t.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=mr.lastIndex;return a180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:pr(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(a.rotate,o.rotate,u,l),function(e,t,n,a){e!==t?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:pr(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(a.skewX,o.skewX,u,l),function(e,t,n,r,a,o){if(e!==n||t!==r){var u=a.push(i(a)+"scale(",null,",",null,")");o.push({i:u-4,x:pr(e,n)},{i:u-2,x:pr(t,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(e){for(var t,n=-1,r=l.length;++n=0&&t._call.call(null,e),t=t._next;--Gr}function si(){ti=(ei=ri.now())+ni,Gr=Kr=0;try{ci()}finally{Gr=0,function(){var e,t,n=Xr,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Xr=t);Qr=e,hi(r)}(),ti=0}}function fi(){var e=ri.now(),t=e-ei;t>Jr&&(ni-=t,ei=e)}function hi(e){Gr||(Kr&&(Kr=clearTimeout(Kr)),e-ti>24?(e<1/0&&(Kr=setTimeout(si,e-ri.now()-ni)),Zr&&(Zr=clearInterval(Zr))):(Zr||(ei=ri.now(),Zr=setInterval(fi,Jr)),Gr=1,ii(si)))}function di(e,t,n){var r=new ui;return t=null==t?0:+t,r.restart((function(n){r.stop(),e(n+t)}),t,n),r}function pi(e,t,n){var r=new ui,i=t;return null==t?(r.restart(e,t,n),r):(t=+t,n=null==n?ai():+n,r.restart((function a(o){o+=i,r.restart(a,i+=t,n),e(o)}),t,n),r)}ui.prototype=li.prototype={constructor:ui,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?ai():+n)+(null==t?0:+t),this._next||Qr===this||(Qr?Qr._next=this:Xr=this,Qr=this),this._call=e,this._time=n,hi()},stop:function(){this._call&&(this._call=null,this._time=1/0,hi())}};var gi=ge("start","end","interrupt"),vi=[],mi=0,yi=1,bi=2,_i=3,wi=4,xi=5,Ei=6;function ki(e,t,n,r,i,a){var o=e.__transition;if(o){if(n in o)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function a(e){n.state=yi,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-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",e,e.__data__,h.index,h.group),delete i[c]):+cmi)throw new Error("too late; already scheduled");return n}function Ti(e,t){var n=Ni(e,t);if(n.state>bi)throw new Error("too late; already started");return n}function Ni(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Mi(e,t){var n,r,i,a=e.__transition,o=!0;if(a){for(i in t=null==t?null:t+"",a)(n=a[i]).name===t?(r=n.state>bi&&n.state=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?Si:Ti;return function(){var o=a(this,e),u=o.on;u!==r&&(i=(r=u).copy()).on(t,n),o.on=i}}(n,e,t))},attr:function(e,t){var n=ye(e),r="transform"===n?Pr:Oi;return this.attrTween(e,"function"==typeof t?(n.local?zi:ji)(n,r,Ai(this,"attr."+e,t)):null==t?(n.local?Ii:Ri)(n):(n.local?Di:Li)(n,r,t+""))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=ye(e);return this.tween(n,(r.local?Fi:Ui)(r,t))},style:function(e,t,n){var r="transform"==(e+="")?Cr:Oi;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var a=Ye(this,e),o=(this.style.removeProperty(e),Ye(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}(e,r)).on("end.style."+e,function(e){return function(){this.style.removeProperty(e)}}(e)):this.styleTween(e,"function"==typeof t?function(e,t,n){var r,i,a;return function(){var o=Ye(this,e),u=n(this);return null==u&&(this.style.removeProperty(e),u=Ye(this,e)),o===u?null:o===r&&u===i?a:a=t(r=o,i=u)}}(e,r,Ai(this,"style."+e,t)):function(e,t,n){var r,i;return function(){var a=Ye(this,e);return a===n?null:a===r?i:i=t(r=a,n)}}(e,r,t+""),n)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){function r(){var r=this,i=t.apply(r,arguments);return i&&function(t){r.style.setProperty(e,i(t),n)}}return r._value=t,r}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(Ai(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=Ni(this.node(),n).tween,a=0,o=i.length;ayi&&n.name===t)return new Vi([[e]],qa,t,+r);return null}function Ha(e){return function(){return e}}function Wa(e,t,n){this.target=e,this.type=t,this.selection=n}function $a(){mt.stopImmediatePropagation()}function Ya(){mt.preventDefault(),mt.stopImmediatePropagation()}var Va={name:"drag"},Xa={name:"space"},Qa={name:"handle"},Ga={name:"center"},Ka={name:"x",handles:["e","w"].map(ao),input:function(e,t){return e&&[[e[0],t[0][1]],[e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},Za={name:"y",handles:["n","s"].map(ao),input:function(e,t){return e&&[[t[0][0],e[0]],[t[1][0],e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},Ja={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(ao),input:function(e){return e},output:function(e){return e}},eo={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"},to={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(e){return{type:e}}function oo(){return!mt.button}function uo(){var e=this.ownerSVGElement||this;return[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function lo(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function co(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function so(e){var t=e.__brush;return t?t.dim.output(t.selection):null}function fo(){return go(Ka)}function ho(){return go(Za)}function po(){return go(Ja)}function go(e){var t,n=uo,r=oo,i=ge(o,"start","brush","end"),a=6;function o(t){var n=t.property("__brush",f).selectAll(".overlay").data([ao("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",eo.overlay).merge(n).each((function(){var e=lo(this).extent;Pt(this).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(".selection").data([ao("selection")]).enter().append("rect").attr("class","selection").attr("cursor",eo.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=t.selectAll(".handle").data(e.handles,(function(e){return e.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(e){return"handle handle--"+e.type})).attr("cursor",(function(e){return eo[e.type]})),t.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 e=Pt(this),t=lo(this).selection;t?(e.selectAll(".selection").style("display",null).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(".handle").style("display",null).attr("x",(function(e){return"e"===e.type[e.type.length-1]?t[1][0]-a/2:t[0][0]-a/2})).attr("y",(function(e){return"s"===e.type[0]?t[1][1]-a/2:t[0][1]-a/2})).attr("width",(function(e){return"n"===e.type||"s"===e.type?t[1][0]-t[0][0]+a:a})).attr("height",(function(e){return"e"===e.type||"w"===e.type?t[1][1]-t[0][1]+a:a}))):e.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function l(e,t){return e.__brush.emitter||new c(e,t)}function c(e,t){this.that=e,this.args=t,this.state=e.__brush,this.active=0}function s(){if(mt.touches){if(mt.changedTouches.length0&&(n=i-d),x<0?f=h-p:x>0&&(a=o-p),_=Xa,L.attr("cursor",eo.selection),z());break;default:return}Ya()}),!0).on("keyup.brush",(function(){switch(mt.keyCode){case 16:P&&(v=m=P=!1,z());break;case 18:_===Ga&&(w<0?c=s:w>0&&(n=i),x<0?f=h:x>0&&(a=o),_=Qa,z());break;case 32:_===Xa&&(mt.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),_=Qa),L.attr("cursor",eo[b]),z());break;default:return}Ya()}),!0).on("mousemove.brush",j,!0).on("mouseup.brush",F,!0);Ht(mt.view)}$a(),Mi(y),u.call(y),R.start()}function j(){var e=jt(y);!P||v||m||(Math.abs(e[0]-O[0])>Math.abs(e[1]-O[1])?m=!0:v=!0),O=e,g=!0,Ya(),z()}function z(){var e;switch(d=O[0]-A[0],p=O[1]-A[1],_){case Xa:case Va:w&&(d=Math.max(T-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 Qa:w<0?(d=Math.max(T-n,Math.min(M-n,d)),i=n+d,s=c):w>0&&(d=Math.max(T-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(T,Math.min(M,n-d*w)),s=Math.max(T,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,g=h*h+d*d,v=Math.sqrt(p),m=Math.sqrt(f),y=i*Math.tan((So-Math.acos((p+f-g)/(2*v*m)))/2),b=y/m,_=y/v;Math.abs(b-1)>No&&(this._+="L"+(e+b*c)+","+(t+b*s)),this._+="A"+i+","+i+",0,0,"+ +(s*h>c*d)+","+(this._x1=e+_*u)+","+(this._y1=t+_*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,i,a){e=+e,t=+t;var o=(n=+n)*Math.cos(r),u=n*Math.sin(r),l=e+o,c=t+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%To+To),f>Mo?this._+="A"+n+","+n+",0,1,"+s+","+(e-o)+","+(t-u)+"A"+n+","+n+",0,1,"+s+","+(this._x1=l)+","+(this._y1=c):f>No&&(this._+="A"+n+","+n+",0,"+ +(f>=So)+","+s+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const Ao=Po;function Oo(e){return e.source}function Ro(e){return e.target}function Io(e){return e.radius}function Lo(e){return e.startAngle}function Do(e){return e.endAngle}function jo(){var e=Oo,t=Ro,n=Io,r=Lo,i=Do,a=null;function o(){var o,u=Eo.call(arguments),l=e.apply(this,u),c=t.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*vo(f),p=s*mo(f),g=+n.apply(this,(u[0]=c,u)),v=r.apply(this,u)-bo,m=i.apply(this,u)-bo;if(a||(a=o=Ao()),a.moveTo(d,p),a.arc(0,0,s,f,h),f===v&&h===m||(a.quadraticCurveTo(0,0,g*vo(v),g*mo(v)),a.arc(0,0,g,v,m)),a.quadraticCurveTo(0,0,d,p),a.closePath(),o)return a=null,o+""||null}return o.radius=function(e){return arguments.length?(n="function"==typeof e?e:ko(+e),o):n},o.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:ko(+e),o):r},o.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:ko(+e),o):i},o.source=function(t){return arguments.length?(e=t,o):e},o.target=function(e){return arguments.length?(t=e,o):t},o.context=function(e){return arguments.length?(a=null==e?null:e,o):a},o}var zo="$";function Fo(){}function Uo(e,t){var n=new Fo;if(e instanceof Fo)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,i=-1,a=e.length;if(null==t)for(;++i=r.length)return null!=e&&n.sort(e),null!=t?t(n):n;for(var l,c,s,f=-1,h=n.length,d=r[i++],p=qo(),g=o();++fr.length)return e;var a,u=i[n-1];return null!=t&&n>=r.length?a=e.entries():(a=[],e.each((function(e,t){a.push({key:t,values:o(e,n)})}))),null!=u?a.sort((function(e,t){return u(e.key,t.key)})):a}return n={object:function(e){return a(e,0,Ho,Wo)},map:function(e){return a(e,0,$o,Yo)},entries:function(e){return o(a(e,0,$o,Yo),0)},key:function(e){return r.push(e),n},sortKeys:function(e){return i[r.length-1]=e,n},sortValues:function(t){return e=t,n},rollup:function(e){return t=e,n}}}function Ho(){return{}}function Wo(e,t,n){e[t]=n}function $o(){return qo()}function Yo(e,t,n){e.set(t,n)}function Vo(){}var Xo=qo.prototype;function Qo(e,t){var n=new Vo;if(e instanceof Vo)e.each((function(e){n.add(e)}));else if(e){var r=-1,i=e.length;if(null==t)for(;++r=a?l=!0:(r=e.charCodeAt(o++))===ru?c=!0:r===iu&&(c=!0,e.charCodeAt(o)===ru&&++o),e.slice(i+1,t-1).replace(/""/g,'"')}for(;o=(a=(g+m)/2))?g=a:m=a,(s=n>=(o=(v+y)/2))?v=o:y=o,i=d,!(d=d[f=s<<1|c]))return i[f]=p,e;if(u=+e._x.call(null,d.data),l=+e._y.call(null,d.data),t===u&&n===l)return p.next=d,i?i[f]=p:e._root=p,e;do{i=i?i[f]=new Array(4):e._root=new Array(4),(c=t>=(a=(g+m)/2))?g=a:m=a,(s=n>=(o=(v+y)/2))?v=o:y=o}while((f=s<<1|c)==(h=(l>=o)<<1|u>=a));return i[h]=d,i[f]=p,e}function wu(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function xu(e){return e[0]}function Eu(e){return e[1]}function ku(e,t,n){var r=new Su(null==t?xu:t,null==n?Eu:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function Su(e,t,n,r,i,a){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function Tu(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Nu=ku.prototype=Su.prototype;function Mu(e){return e.x+e.vx}function Cu(e){return e.y+e.vy}function Pu(e){var t,n,r=1,i=1;function a(){for(var e,a,u,l,c,s,f,h=t.length,d=0;dl+d||ic+d||au.index){var p=l-o.x-o.vx,g=c-o.y-o.vy,v=p*p+g*g;ve.r&&(e.r=e[t].r)}function u(){if(t){var r,i,a=t.length;for(n=new Array(a),r=0;rs&&(s=r),if&&(f=i));for(se||e>i||r>t||t>a))return this;var o,u,l=i-n,c=this._root;switch(u=(t<(r+a)/2)<<1|e<(n+i)/2){case 0:do{(o=new Array(4))[u]=c,c=o}while(a=r+(l*=2),e>(i=n+l)||t>a);break;case 1:do{(o=new Array(4))[u]=c,c=o}while(a=r+(l*=2),(n=i-l)>e||t>a);break;case 2:do{(o=new Array(4))[u]=c,c=o}while(r=a-(l*=2),e>(i=n+l)||r>t);break;case 3:do{(o=new Array(4))[u]=c,c=o}while(r=a-(l*=2),(n=i-l)>e||r>t)}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 e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e},Nu.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Nu.find=function(e,t,n){var r,i,a,o,u,l,c,s=this._x0,f=this._y0,h=this._x1,d=this._y1,p=[],g=this._root;for(g&&p.push(new wu(g,s,f,h,d)),null==n?n=1/0:(s=e-n,f=t-n,h=e+n,d=t+n,n*=n);l=p.pop();)if(!(!(g=l.node)||(i=l.x0)>h||(a=l.y0)>d||(o=l.x1)=m)<<1|e>=v)&&(l=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=l)}else{var y=e-+this._x.call(null,g.data),b=t-+this._y.call(null,g.data),_=y*y+b*b;if(_=(u=(p+v)/2))?p=u:v=u,(s=o>=(l=(g+m)/2))?g=l:m=l,t=d,!(d=d[f=s<<1|c]))return this;if(!d.length)break;(t[f+1&3]||t[f+2&3]||t[f+3&3])&&(n=t,h=f)}for(;d.data!==e;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):t?(i?t[f]=i:delete t[f],(d=t[0]||t[1]||t[2]||t[3])&&d===(t[3]||t[2]||t[1]||t[0])&&!d.length&&(n?n[h]=d:this._root=d),this):(this._root=i,this)},Nu.removeAll=function(e){for(var t=0,n=e.length;t1?(null==n?u.remove(e):u.set(e,d(n)),t):u.get(e)},find:function(t,n,r){var i,a,o,u,l,c=0,s=e.length;for(null==r?r=1/0:r*=r,c=0;c1?(c.on(e,n),t):c.on(e)}}}function Uu(){var e,t,n,r,i=yu(-30),a=1,o=1/0,u=.81;function l(r){var i,a=e.length,o=ku(e,Iu,Lu).visitAfter(s);for(n=r,i=0;i=o)){(e.data!==t||e.next)&&(0===s&&(d+=(s=bu())*s),0===f&&(d+=(f=bu())*f),d1?r[0]+r.slice(2):r,+e.slice(n+1)]}function $u(e){return(e=Wu(Math.abs(e)))?e[1]:NaN}function Yu(e,t){var n=Wu(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Vu={"":function(e,t){e:for(var n,r=(e=e.toPrecision(t)).length,i=1,a=-1;i0&&(a=0)}return a>0?e.slice(0,a)+e.slice(n+1):e},"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Yu(100*e,t)},r:Yu,s:function(e,t){var n=Wu(e,t);if(!n)return e+"";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(e,Math.max(0,t+a-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};var Xu=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function Qu(e){return new Gu(e)}function Gu(e){if(!(t=Xu.exec(e)))throw new Error("invalid format: "+e);var t,n=t[1]||" ",r=t[2]||">",i=t[3]||"-",a=t[4]||"",o=!!t[5],u=t[6]&&+t[6],l=!!t[7],c=t[8]&&+t[8].slice(1),s=t[9]||"";"n"===s?(l=!0,s="g"):Vu[s]||(s=""),(o||"0"===n&&"="===r)&&(o=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=i,this.symbol=a,this.zero=o,this.width=u,this.comma=l,this.precision=c,this.type=s}function Ku(e){return e}Qu.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,el,tl=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function nl(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var i=e.length,a=[],o=0,u=t[0],l=0;i>0&&u>0&&(l+u+1>r&&(u=Math.max(1,r-l)),a.push(e.substring(i-=u,i+u)),!((l+=u+1)>r));)u=t[o=(o+1)%t.length];return a.reverse().join(n)}):Ku,i=e.currency,a=e.decimal,o=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(e.numerals):Ku,u=e.percent||"%";function l(e){var t=(e=Qu(e)).fill,n=e.align,l=e.sign,c=e.symbol,s=e.zero,f=e.width,h=e.comma,d=e.precision,p=e.type,g="$"===c?i[0]:"#"===c&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",v="$"===c?i[1]:/[%p]/.test(p)?u:"",m=Vu[p],y=!p||/[defgprs%]/.test(p);function b(e){var i,u,c,b=g,_=v;if("c"===p)_=m(e)+_,e="";else{var w=(e=+e)<0;if(e=m(Math.abs(e),d),w&&0==+e&&(w=!1),b=(w?"("===l?l:"-":"-"===l||"("===l?"":l)+b,_=("s"===p?tl[8+Du/3]:"")+_+(w&&"("===l?")":""),y)for(i=-1,u=e.length;++i(c=e.charCodeAt(i))||c>57){_=(46===c?a+e.slice(i+1):e.slice(i))+_,e=e.slice(0,i);break}}h&&!s&&(e=r(e,1/0));var x=b.length+e.length+_.length,E=x>1)+b+e+_+E.slice(x);break;default:e=E+b+e+_}return o(e)}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 e+""},b}return{format:l,formatPrefix:function(e,t){var n=l(((e=Qu(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor($u(t)/3))),i=Math.pow(10,-r),a=tl[8+r/3];return function(e){return n(i*e)+a}}}}function rl(e){return Zu=nl(e),Ju=Zu.format,el=Zu.formatPrefix,Zu}function il(e){return Math.max(0,-$u(Math.abs(e)))}function al(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor($u(t)/3)))-$u(Math.abs(e)))}function ol(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,$u(t)-$u(e))+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(e){sl(cl,e,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(e,t,n){var r=e.s=t+n,i=r-t,a=r-i;e.t=t-a+(n-i)}var fl=1e-6,hl=1e-12,dl=Math.PI,pl=dl/2,gl=dl/4,vl=2*dl,ml=180/dl,yl=dl/180,bl=Math.abs,_l=Math.atan,wl=Math.atan2,xl=Math.cos,El=Math.ceil,kl=Math.exp,Sl=(Math.floor,Math.log),Tl=Math.pow,Nl=Math.sin,Ml=Math.sign||function(e){return e>0?1:e<0?-1:0},Cl=Math.sqrt,Pl=Math.tan;function Al(e){return e>1?0:e<-1?dl:Math.acos(e)}function Ol(e){return e>1?pl:e<-1?-pl:Math.asin(e)}function Rl(e){return(e=Nl(e/2))*e}function Il(){}function Ll(e,t){e&&jl.hasOwnProperty(e.type)&&jl[e.type](e,t)}var Dl={Feature:function(e,t){Ll(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r=0?1:-1,i=r*n,a=xl(t=(t*=yl)/2+gl),o=Nl(t),u=$l*o,l=Wl*a+u*xl(i),c=u*r*Nl(i);Yl.add(wl(c,l)),Hl=e,Wl=a,$l=o}function Jl(e){return Vl.reset(),Ul(e,Xl),2*Vl}function ec(e){return[wl(e[1],e[0]),Ol(e[2])]}function tc(e){var t=e[0],n=e[1],r=xl(n);return[r*xl(t),r*Nl(t),Nl(n)]}function nc(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function rc(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function ic(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function ac(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function oc(e){var t=Cl(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var uc,lc,cc,sc,fc,hc,dc,pc,gc,vc,mc,yc,bc,_c,wc,xc,Ec,kc,Sc,Tc,Nc,Mc,Cc,Pc,Ac,Oc,Rc=ul(),Ic={point:Lc,lineStart:jc,lineEnd:zc,polygonStart:function(){Ic.point=Fc,Ic.lineStart=Uc,Ic.lineEnd=qc,Rc.reset(),Xl.polygonStart()},polygonEnd:function(){Xl.polygonEnd(),Ic.point=Lc,Ic.lineStart=jc,Ic.lineEnd=zc,Yl<0?(uc=-(cc=180),lc=-(sc=90)):Rc>fl?sc=90:Rc<-fl&&(lc=-90),vc[0]=uc,vc[1]=cc}};function Lc(e,t){gc.push(vc=[uc=e,cc=e]),tsc&&(sc=t)}function Dc(e,t){var n=tc([e*yl,t*yl]);if(pc){var r=rc(pc,n),i=rc([r[1],-r[0],0],r);oc(i),i=ec(i);var a,o=e-fc,u=o>0?1:-1,l=i[0]*ml*u,c=bl(o)>180;c^(u*fcsc&&(sc=a):c^(u*fc<(l=(l+360)%360-180)&&lsc&&(sc=t)),c?eBc(uc,cc)&&(cc=e):Bc(e,cc)>Bc(uc,cc)&&(uc=e):cc>=uc?(ecc&&(cc=e)):e>fc?Bc(uc,e)>Bc(uc,cc)&&(cc=e):Bc(e,cc)>Bc(uc,cc)&&(uc=e)}else gc.push(vc=[uc=e,cc=e]);tsc&&(sc=t),pc=n,fc=e}function jc(){Ic.point=Dc}function zc(){vc[0]=uc,vc[1]=cc,Ic.point=Lc,pc=null}function Fc(e,t){if(pc){var n=e-fc;Rc.add(bl(n)>180?n+(n>0?360:-360):n)}else hc=e,dc=t;Xl.point(e,t),Dc(e,t)}function Uc(){Xl.lineStart()}function qc(){Fc(hc,dc),Xl.lineEnd(),bl(Rc)>fl&&(uc=-(cc=180)),vc[0]=uc,vc[1]=cc,pc=null}function Bc(e,t){return(t-=e)<0?t+360:t}function Hc(e,t){return e[0]-t[0]}function Wc(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:tBc(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,t=0,r=a[n=a.length-1];t<=n;r=i,++t)i=a[t],(u=Bc(r[1],i[0]))>o&&(o=u,uc=i[0],cc=r[1])}return gc=vc=null,uc===1/0||lc===1/0?[[NaN,NaN],[NaN,NaN]]:[[uc,lc],[cc,sc]]}var Yc={sphere:Il,point:Vc,lineStart:Qc,lineEnd:Zc,polygonStart:function(){Yc.lineStart=Jc,Yc.lineEnd=es},polygonEnd:function(){Yc.lineStart=Qc,Yc.lineEnd=Zc}};function Vc(e,t){e*=yl;var n=xl(t*=yl);Xc(n*xl(e),n*Nl(e),Nl(t))}function Xc(e,t,n){++mc,bc+=(e-bc)/mc,_c+=(t-_c)/mc,wc+=(n-wc)/mc}function Qc(){Yc.point=Gc}function Gc(e,t){e*=yl;var n=xl(t*=yl);Pc=n*xl(e),Ac=n*Nl(e),Oc=Nl(t),Yc.point=Kc,Xc(Pc,Ac,Oc)}function Kc(e,t){e*=yl;var n=xl(t*=yl),r=n*xl(e),i=n*Nl(e),a=Nl(t),o=wl(Cl((o=Ac*a-Oc*i)*o+(o=Oc*r-Pc*a)*o+(o=Pc*i-Ac*r)*o),Pc*r+Ac*i+Oc*a);yc+=o,xc+=o*(Pc+(Pc=r)),Ec+=o*(Ac+(Ac=i)),kc+=o*(Oc+(Oc=a)),Xc(Pc,Ac,Oc)}function Zc(){Yc.point=Vc}function Jc(){Yc.point=ts}function es(){ns(Mc,Cc),Yc.point=Vc}function ts(e,t){Mc=e,Cc=t,e*=yl,t*=yl,Yc.point=ns;var n=xl(t);Pc=n*xl(e),Ac=n*Nl(e),Oc=Nl(t),Xc(Pc,Ac,Oc)}function ns(e,t){e*=yl;var n=xl(t*=yl),r=n*xl(e),i=n*Nl(e),a=Nl(t),o=Ac*a-Oc*i,u=Oc*r-Pc*a,l=Pc*i-Ac*r,c=Cl(o*o+u*u+l*l),s=Ol(c),f=c&&-s/c;Sc+=f*o,Tc+=f*u,Nc+=f*l,yc+=s,xc+=s*(Pc+(Pc=r)),Ec+=s*(Ac+(Ac=i)),kc+=s*(Oc+(Oc=a)),Xc(Pc,Ac,Oc)}function rs(e){mc=yc=bc=_c=wc=xc=Ec=kc=Sc=Tc=Nc=0,Ul(e,Yc);var t=Sc,n=Tc,r=Nc,i=t*t+n*n+r*r;return idl?e-vl:e<-dl?e+vl:e,t]}function us(e,t,n){return(e%=vl)?t||n?as(cs(e),ss(t,n)):cs(e):t||n?ss(t,n):os}function ls(e){return function(t,n){return[(t+=e)>dl?t-vl:t<-dl?t+vl:t,n]}}function cs(e){var t=ls(e);return t.invert=ls(-e),t}function ss(e,t){var n=xl(e),r=Nl(e),i=xl(t),a=Nl(t);function o(e,t){var o=xl(t),u=xl(e)*o,l=Nl(e)*o,c=Nl(t),s=c*n+u*r;return[wl(l*i-s*a,u*n-c*r),Ol(s*i+l*a)]}return o.invert=function(e,t){var o=xl(t),u=xl(e)*o,l=Nl(e)*o,c=Nl(t),s=c*i-l*a;return[wl(l*i+c*a,u*n+s*r),Ol(s*n-u*r)]},o}function fs(e){function t(t){return(t=e(t[0]*yl,t[1]*yl))[0]*=ml,t[1]*=ml,t}return e=us(e[0]*yl,e[1]*yl,e.length>2?e[2]*yl:0),t.invert=function(t){return(t=e.invert(t[0]*yl,t[1]*yl))[0]*=ml,t[1]*=ml,t},t}function hs(e,t,n,r,i,a){if(n){var o=xl(t),u=Nl(t),l=r*n;null==i?(i=t+r*vl,a=t-l/2):(i=ds(o,i),a=ds(o,a),(r>0?ia)&&(i+=r*vl));for(var c,s=i;r>0?s>a:s1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}function vs(e,t){return bl(e[0]-t[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(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r=0?1:-1,k=E*x,S=k>dl,T=p*_;if(_s.add(wl(T*E*Nl(k),g*w+T*xl(k))),a+=S?x+E*vl:x,S^h>=n^y>=n){var N=rc(tc(f),tc(m));oc(N);var M=rc(i,N);oc(M);var C=(S^x>=0?-1:1)*Ol(M[2]);(r>C||r===C&&(N[0]||N[1]))&&(o+=S^x>=0?1:-1)}}return(a<-fl||a0){for(f||(i.polygonStart(),f=!0),i.lineStart(),e=0;e1&&2&l&&h.push(h.pop().concat(h.shift())),o.push(h.filter(Es))}return h}}function Es(e){return e.length>1}function ks(e,t){return((e=e.x)[0]<0?e[1]-pl-fl:pl-e[1])-((t=t.x)[0]<0?t[1]-pl-fl:pl-t[1])}const Ss=xs((function(){return!0}),(function(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(a,o){var u=a>0?dl:-dl,l=bl(a-n);bl(l-dl)0?pl:-pl),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(u,r),e.point(a,r),t=0):i!==u&&l>=dl&&(bl(n-i)fl?_l((Nl(t)*(a=xl(r))*Nl(n)-Nl(r)*(i=xl(t))*Nl(e))/(i*a*o)):(t+r)/2}(n,r,a,o),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(u,r),t=0),e.point(n=a,r=o),i=u},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}),(function(e,t,n,r){var i;if(null==e)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(e[0]-t[0])>fl){var a=e[0]0,i=bl(t)>fl;function a(e,n){return xl(e)*xl(n)>t}function o(e,n,r){var i=[1,0,0],a=rc(tc(e),tc(n)),o=nc(a,a),u=a[0],l=o-u*u;if(!l)return!r&&e;var c=t*o/l,s=-t*u/l,f=rc(i,a),h=ac(i,c);ic(h,ac(a,s));var d=f,p=nc(h,d),g=nc(d,d),v=p*p-g*(nc(h,h)-1);if(!(v<0)){var m=Cl(v),y=ac(d,(-p-m)/g);if(ic(y,h),y=ec(y),!r)return y;var b,_=e[0],w=n[0],x=e[1],E=n[1];w<_&&(b=_,_=w,w=b);var k=w-_,S=bl(k-dl)0^y[1]<(bl(y[0]-_)dl^(_<=y[0]&&y[0]<=w)){var T=ac(d,(-p+m)/g);return ic(T,h),[y,ec(T)]}}}function u(t,n){var i=r?e:dl-e,a=0;return t<-i?a|=1:t>i&&(a|=2),n<-i?a|=4:n>i&&(a|=8),a}return xs(a,(function(e){var t,n,l,c,s;return{lineStart:function(){c=l=!1,s=1},point:function(f,h){var d,p=[f,h],g=a(f,h),v=r?g?0:u(f,h):g?u(f+(f<0?dl:-dl),h):0;if(!t&&(c=l=g)&&e.lineStart(),g!==l&&(!(d=o(t,p))||vs(t,d)||vs(p,d))&&(p[0]+=fl,p[1]+=fl,g=a(p[0],p[1])),g!==l)s=0,g?(e.lineStart(),d=o(p,t),e.point(d[0],d[1])):(d=o(t,p),e.point(d[0],d[1]),e.lineEnd()),t=d;else if(i&&t&&r^g){var m;v&n||!(m=o(p,t,!0))||(s=0,r?(e.lineStart(),e.point(m[0][0],m[0][1]),e.point(m[1][0],m[1][1]),e.lineEnd()):(e.point(m[1][0],m[1][1]),e.lineEnd(),e.lineStart(),e.point(m[0][0],m[0][1])))}!g||t&&vs(t,p)||e.point(p[0],p[1]),t=p,l=g,n=v},lineEnd:function(){l&&e.lineEnd(),t=null},clean:function(){return s|(c&&l)<<1}}}),(function(t,r,i,a){hs(a,e,n,i,t,r)}),r?[0,-e]:[-dl,e-dl])}var Ns=1e9,Ms=-Ns;function Cs(e,t,n,r){function i(i,a){return e<=i&&i<=n&&t<=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?e:n,s>1?r:t)}while((s=(s+u+4)%4)!==f);else c.point(a[0],a[1])}function o(r,i){return bl(r[0]-e)0?0:3:bl(r[0]-n)0?2:1:bl(r[1]-t)0?1:0:i>0?3:2}function u(e,t){return l(e.x,t.x)}function l(e,t){var n=o(e,1),r=o(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(o){var l,c,s,f,h,d,p,g,v,m,y,b=o,_=gs(),w={point:x,lineStart:function(){w.point=E,c&&c.push(s=[]);m=!0,v=!1,p=g=NaN},lineEnd:function(){l&&(E(f,h),d&&v&&_.rejoin(),l.push(_.result()));w.point=x,v&&b.lineEnd()},polygonStart:function(){b=_,l=[],c=[],y=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,i=c.length;nr&&(h-a)*(r-o)>(d-o)*(e-a)&&++t:d<=r&&(h-a)*(r-o)<(d-o)*(e-a)&&--t;return t}(),n=y&&t,i=(l=z(l)).length;(n||i)&&(o.polygonStart(),n&&(o.lineStart(),a(null,null,1,o),o.lineEnd()),i&&ys(l,u,t,a,o),o.polygonEnd());b=o,l=c=s=null}};function x(e,t){i(e,t)&&b.point(e,t)}function E(a,o){var u=i(a,o);if(c&&s.push([a,o]),m)f=a,h=o,d=u,m=!1,u&&(b.lineStart(),b.point(a,o));else if(u&&v)b.point(a,o);else{var l=[p=Math.max(Ms,Math.min(Ns,p)),g=Math.max(Ms,Math.min(Ns,g))],_=[a=Math.max(Ms,Math.min(Ns,a)),o=Math.max(Ms,Math.min(Ns,o))];!function(e,t,n,r,i,a){var o,u=e[0],l=e[1],c=0,s=1,f=t[0]-u,h=t[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&&(e[0]=u+c*f,e[1]=l+c*h),s<1&&(t[0]=u+s*f,t[1]=l+s*h),!0}}}}}(l,_,e,t,n,r)?u&&(b.lineStart(),b.point(a,o),y=!1):(v||(b.lineStart(),b.point(l[0],l[1])),b.point(_[0],_[1]),u||b.lineEnd(),y=!1)}p=a,g=o,v=u}return w}}function Ps(){var e,t,n,r=0,i=0,a=960,o=500;return n={stream:function(n){return e&&t===n?e:e=Cs(r,i,a,o)(t=n)},extent:function(u){return arguments.length?(r=+u[0][0],i=+u[0][1],a=+u[1][0],o=+u[1][1],e=t=null,n):[[r,i],[a,o]]}}}var As,Os,Rs,Is=ul(),Ls={sphere:Il,point:Il,lineStart:function(){Ls.point=js,Ls.lineEnd=Ds},lineEnd:Il,polygonStart:Il,polygonEnd:Il};function Ds(){Ls.point=Ls.lineEnd=Il}function js(e,t){As=e*=yl,Os=Nl(t*=yl),Rs=xl(t),Ls.point=zs}function zs(e,t){e*=yl;var n=Nl(t*=yl),r=xl(t),i=bl(e-As),a=xl(i),o=r*Nl(i),u=Rs*n-Os*r*a,l=Os*n+Rs*r*a;Is.add(wl(Cl(o*o+u*u),l)),As=e,Os=n,Rs=r}function Fs(e){return Is.reset(),Ul(e,Ls),+Is}var Us=[null,null],qs={type:"LineString",coordinates:Us};function Bs(e,t){return Us[0]=e,Us[1]=t,Fs(qs)}var Hs={Feature:function(e,t){return $s(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++rfl})).map(l)).concat(E(El(a/d)*d,i,d).filter((function(e){return bl(e%g)>fl})).map(c))}return m.lines=function(){return y().map((function(e){return{type:"LineString",coordinates:e}}))},m.outline=function(){return{type:"Polygon",coordinates:[s(r).concat(f(o).slice(1),s(n).reverse().slice(1),f(u).reverse().slice(1))]}},m.extent=function(e){return arguments.length?m.extentMajor(e).extentMinor(e):m.extentMinor()},m.extentMajor=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],u=+e[0][1],o=+e[1][1],r>n&&(e=r,r=n,n=e),u>o&&(e=u,u=o,o=e),m.precision(v)):[[r,u],[n,o]]},m.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],a=+n[0][1],i=+n[1][1],t>e&&(n=t,t=e,e=n),a>i&&(n=a,a=i,i=n),m.precision(v)):[[t,a],[e,i]]},m.step=function(e){return arguments.length?m.stepMajor(e).stepMinor(e):m.stepMinor()},m.stepMajor=function(e){return arguments.length?(p=+e[0],g=+e[1],m):[p,g]},m.stepMinor=function(e){return arguments.length?(h=+e[0],d=+e[1],m):[h,d]},m.precision=function(h){return arguments.length?(v=+h,l=Zs(a,i,90),c=Js(t,e,v),s=Zs(u,o,90),f=Js(r,n,v),m):v},m.extentMajor([[-180,-90+fl],[180,90-fl]]).extentMinor([[-180,-80-fl],[180,80+fl]])}function tf(){return ef()()}function nf(e,t){var n=e[0]*yl,r=e[1]*yl,i=t[0]*yl,a=t[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*Ol(Cl(Rl(a-r)+o*l*Rl(i-n))),g=Nl(p),v=p?function(e){var t=Nl(e*=p)/g,n=Nl(p-e)/g,r=n*s+t*h,i=n*f+t*d,a=n*u+t*c;return[wl(i,r)*ml,wl(a,Cl(r*r+i*i))*ml]}:function(){return[n*ml,r*ml]};return v.distance=p,v}function rf(e){return e}var af,of,uf,lf,cf=ul(),sf=ul(),ff={point:Il,lineStart:Il,lineEnd:Il,polygonStart:function(){ff.lineStart=hf,ff.lineEnd=gf},polygonEnd:function(){ff.lineStart=ff.lineEnd=ff.point=Il,cf.add(bl(sf)),sf.reset()},result:function(){var e=cf/2;return cf.reset(),e}};function hf(){ff.point=df}function df(e,t){ff.point=pf,af=uf=e,of=lf=t}function pf(e,t){sf.add(lf*e-uf*t),uf=e,lf=t}function gf(){pf(af,of)}const vf=ff;var mf=1/0,yf=mf,bf=-mf,_f=bf,wf={point:function(e,t){ebf&&(bf=e);t_f&&(_f=t)},lineStart:Il,lineEnd:Il,polygonStart:Il,polygonEnd:Il,result:function(){var e=[[mf,yf],[bf,_f]];return bf=_f=-(yf=mf=1/0),e}};const xf=wf;var Ef,kf,Sf,Tf,Nf=0,Mf=0,Cf=0,Pf=0,Af=0,Of=0,Rf=0,If=0,Lf=0,Df={point:jf,lineStart:zf,lineEnd:qf,polygonStart:function(){Df.lineStart=Bf,Df.lineEnd=Hf},polygonEnd:function(){Df.point=jf,Df.lineStart=zf,Df.lineEnd=qf},result:function(){var e=Lf?[Rf/Lf,If/Lf]:Of?[Pf/Of,Af/Of]:Cf?[Nf/Cf,Mf/Cf]:[NaN,NaN];return Nf=Mf=Cf=Pf=Af=Of=Rf=If=Lf=0,e}};function jf(e,t){Nf+=e,Mf+=t,++Cf}function zf(){Df.point=Ff}function Ff(e,t){Df.point=Uf,jf(Sf=e,Tf=t)}function Uf(e,t){var n=e-Sf,r=t-Tf,i=Cl(n*n+r*r);Pf+=i*(Sf+e)/2,Af+=i*(Tf+t)/2,Of+=i,jf(Sf=e,Tf=t)}function qf(){Df.point=jf}function Bf(){Df.point=Wf}function Hf(){$f(Ef,kf)}function Wf(e,t){Df.point=$f,jf(Ef=Sf=e,kf=Tf=t)}function $f(e,t){var n=e-Sf,r=t-Tf,i=Cl(n*n+r*r);Pf+=i*(Sf+e)/2,Af+=i*(Tf+t)/2,Of+=i,Rf+=(i=Tf*e-Sf*t)*(Sf+e),If+=i*(Tf+t),Lf+=3*i,jf(Sf=e,Tf=t)}const Yf=Df;function Vf(e){this._context=e}Vf.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,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(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,vl)}},result:Il};var Xf,Qf,Gf,Kf,Zf,Jf=ul(),eh={point:Il,lineStart:function(){eh.point=th},lineEnd:function(){Xf&&nh(Qf,Gf),eh.point=Il},polygonStart:function(){Xf=!0},polygonEnd:function(){Xf=null},result:function(){var e=+Jf;return Jf.reset(),e}};function th(e,t){eh.point=nh,Qf=Kf=e,Gf=Zf=t}function nh(e,t){Kf-=e,Zf-=t,Jf.add(Cl(Kf*Kf+Zf*Zf)),Kf=e,Zf=t}const rh=eh;function ih(){this._string=[]}function ah(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function oh(e,t){var n,r,i=4.5;function a(e){return e&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),Ul(e,n(r))),r.result()}return a.area=function(e){return Ul(e,n(vf)),vf.result()},a.measure=function(e){return Ul(e,n(rh)),rh.result()},a.bounds=function(e){return Ul(e,n(xf)),xf.result()},a.centroid=function(e){return Ul(e,n(Yf)),Yf.result()},a.projection=function(t){return arguments.length?(n=null==t?(e=null,rf):(e=t).stream,a):e},a.context=function(e){return arguments.length?(r=null==e?(t=null,new ih):new Vf(t=e),"function"!=typeof i&&r.pointRadius(i),a):t},a.pointRadius=function(e){return arguments.length?(i="function"==typeof e?e:(r.pointRadius(+e),+e),a):i},a.projection(e).context(t)}function uh(e){return{stream:lh(e)}}function lh(e){return function(t){var n=new ch;for(var r in e)n[r]=e[r];return n.stream=t,n}}function ch(){}function sh(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=r&&e.clipExtent(null),Ul(n,e.stream(xf)),t(xf.result()),null!=r&&e.clipExtent(r),e}function fh(e,t,n){return sh(e,(function(n){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],a=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),o=+t[0][0]+(r-a*(n[1][0]+n[0][0]))/2,u=+t[0][1]+(i-a*(n[1][1]+n[0][1]))/2;e.scale(150*a).translate([o,u])}),n)}function hh(e,t,n){return fh(e,[[0,0],t],n)}function dh(e,t,n){return sh(e,(function(n){var r=+t,i=r/(n[1][0]-n[0][0]),a=(r-i*(n[1][0]+n[0][0]))/2,o=-i*n[0][1];e.scale(150*i).translate([a,o])}),n)}function ph(e,t,n){return sh(e,(function(n){var r=+t,i=r/(n[1][1]-n[0][1]),a=-i*n[0][0],o=(r-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([a,o])}),n)}ih.prototype={_radius:4.5,_circle:ah(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,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(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=ah(this._radius)),this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}return null}},ch.prototype={constructor:ch,point:function(e,t){this.stream.point(e,t)},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 gh=16,vh=xl(30*yl);function mh(e,t){return+t?function(e,t){function n(r,i,a,o,u,l,c,s,f,h,d,p,g,v){var m=c-r,y=s-i,b=m*m+y*y;if(b>4*t&&g--){var _=o+h,w=u+d,x=l+p,E=Cl(_*_+w*w+x*x),k=Ol(x/=E),S=bl(bl(x)-1)t||bl((m*C+y*P)/b-.5)>.3||o*h+u*d+l*p2?e[2]%360*yl:0,M()):[v*ml,m*ml,y*ml]},S.precision=function(e){return arguments.length?(k=mh(N,E=e*e),C()):Cl(E)},S.fitExtent=function(e,t){return fh(S,e,t)},S.fitSize=function(e,t){return hh(S,e,t)},S.fitWidth=function(e,t){return dh(S,e,t)},S.fitHeight=function(e,t){return ph(S,e,t)},function(){return t=e.apply(this,arguments),S.invert=t.invert&&T,M()}}function wh(e){var t=0,n=dl/3,r=_h(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*yl,n=e[1]*yl):[t*ml,n*ml]},i}function xh(e,t){var n=Nl(e),r=(n+Nl(t))/2;if(bl(r)=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?l:o).invert(e)},s.stream=function(n){return e&&t===n?e:(r=[o.stream(t=n),u.stream(n),l.stream(n)],i=r.length,e={point:function(e,t){for(var n=-1;++n0?t<-pl+fl&&(t=-pl+fl):t>pl-fl&&(t=pl-fl);var n=i/Tl(Lh(t),r);return[n*Nl(r*e),i-n*xl(r*e)]}return a.invert=function(e,t){var n=i-t,a=Ml(r)*Cl(e*e+n*n);return[wl(e,bl(n))/r*Ml(n),2*_l(Tl(i/a,1/r))-pl]},a}function jh(){return wh(Dh).scale(109.5).parallels([30,30])}function zh(e,t){return[e,t]}function Fh(){return bh(zh).scale(152.63)}function Uh(e,t){var n=xl(e),r=e===t?Nl(e):(n-xl(t))/(t-e),i=n/r+e;if(bl(r)2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)}function ed(e,t){return e.parent===t.parent?1:2}function td(e,t){return e+t.x}function nd(e,t){return Math.max(e,t.y)}function rd(){var e=ed,t=1,n=1,r=!1;function i(i){var a,o=0;i.eachAfter((function(t){var n=t.children;n?(t.x=function(e){return e.reduce(td,0)/e.length}(n),t.y=function(e){return 1+e.reduce(nd,0)}(n)):(t.x=a?o+=e(t,a):0,t.y=0,a=t)}));var u=function(e){for(var t;t=e.children;)e=t[0];return e}(i),l=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(i),c=u.x-e(u,l)/2,s=l.x+e(l,u)/2;return i.eachAfter(r?function(e){e.x=(e.x-i.x)*t,e.y=(i.y-e.y)*n}:function(e){e.x=(e.x-c)/(s-c)*t,e.y=(1-(i.y?e.y/i.y:1))*n})}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i}function id(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function ad(e,t){var n,r,i,a,o,u=new cd(e),l=+e.value&&(u.value=e.value),c=[u];for(null==t&&(t=od);n=c.pop();)if(l&&(n.value=+n.data.value),(i=t(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(e){return e.children}function ud(e){e.data=e.data.data}function ld(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function cd(e){this.data=e,this.depth=this.height=0,this.parent=null}Ph.invert=Nh((function(e){return e})),Oh.invert=function(e,t){return[e,2*_l(kl(t))-pl]},zh.invert=zh,Bh.invert=Nh(_l),Yh.invert=function(e,t){var n,r=t,i=25;do{var a=r*r,o=a*a;r-=n=(r*(1.007226+a*(.015085+o*(.028874*a-.044475-.005916*o)))-t)/(1.007226+a*(.045255+o*(.259866*a-.311325-.005916*11*o)))}while(bl(n)>fl&&--i>0);return[e/(.8707+(a=r*r)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),r]},Xh.invert=Nh(Ol),Gh.invert=Nh((function(e){return 2*_l(e)})),Zh.invert=function(e,t){return[-t,2*_l(kl(e))-pl]},cd.prototype=ad.prototype={constructor:cd,count:function(){return this.eachAfter(id)},each:function(e){var t,n,r,i,a=this,o=[a];do{for(t=o.reverse(),o=[];a=t.pop();)if(e(a),n=a.children)for(r=0,i=n.length;r=0;--n)i.push(t[n]);return this},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();for(;e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each((function(t){e.push(t)})),e},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return ad(this).eachBefore(ud)}};var sd=Array.prototype.slice;function fd(e){for(var t,n,r=0,i=(e=function(e){for(var t,n,r=e.length;r;)n=Math.random()*r--|0,t=e[r],e[r]=e[n],e[n]=t;return e}(sd.call(e))).length,a=[];r0&&n*n>r*r+i*i}function gd(e,t){for(var n=0;nn*n+r*r}function wd(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,a=(t.y*n.r+n.y*t.r)/r;return i*i+a*a}function xd(e){this._=e,this.next=null,this.previous=null}function Ed(e){if(!(i=e.length))return 0;var t,n,r,i,a,o,u,l,c,s,f;if((t=e[0]).x=0,t.y=0,!(i>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(i>2))return t.r+n.r;bd(n,t,r=e[2]),t=new xd(t),n=new xd(n),r=new xd(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(u=3;u0)throw new Error("cycle");return a}return n.id=function(t){return arguments.length?(e=Sd(t),n):e},n.parentId=function(e){return arguments.length?(t=Sd(e),n):t},n}function Bd(e,t){return e.parent===t.parent?1:2}function Hd(e){var t=e.children;return t?t[0]:e.t}function Wd(e){var t=e.children;return t?t[t.length-1]:e.t}function $d(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Yd(e,t,n){return e.a.parent===t.parent?e.a:n}function Vd(e,t){this._=e,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=t}function Xd(){var e=Bd,t=1,n=1,r=null;function i(i){var l=function(e){for(var t,n,r,i,a,o=new Vd(e,0),u=[o];t=u.pop();)if(r=t._.children)for(t.children=new Array(a=r.length),i=a-1;i>=0;--i)u.push(n=t.children[i]=new Vd(r[i],i)),n.parent=t;return(o.parent=new Vd(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(e){e.xs.x&&(s=e),e.depth>f.depth&&(f=e)}));var h=c===s?1:e(c,s)/2,d=h-c.x,p=t/(s.x+h+d),g=n/(f.depth||1);i.eachBefore((function(e){e.x=(e.x+d)*p,e.y=e.depth*g}))}return i}function a(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,i=e.children,a=i.length;--a>=0;)(t=i[a]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var a=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-a):t.z=a}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,n,r){if(n){for(var i,a=t,o=t,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=t,(i=u.z+f-a.z-c+e(u._,a._))>0&&($d(Yd(u,t,r),t,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=t)}return r}(t,i,t.parent.A||r[0])}function o(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function u(e){e.x*=t,e.y=e.depth*n}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i}function Qd(e,t,n,r,i){for(var a,o=e.children,u=-1,l=o.length,c=e.value&&(i-n)/e.value;++uh&&(h=u),v=s*s*g,(d=Math.max(h/v,v/f))>p){s-=u;break}p=d}m.push(o={value:s,dice:l1?t:1)},n}(Gd);function Jd(){var e=Zd,t=!1,n=1,r=1,i=[0],a=Td,o=Td,u=Td,l=Td,c=Td;function s(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(f),i=[0],t&&e.eachBefore(Rd),e}function f(t){var n=i[t.depth],r=t.x0+n,s=t.y0+n,f=t.x1-n,h=t.y1-n;f=n-1){var s=u[t];return s.x0=i,s.y0=a,s.x1=o,void(s.y1=l)}var f=c[t],h=r/2+f,d=t+1,p=n-1;for(;d>>1;c[g]l-a){var y=(i*m+o*v)/r;e(t,d,v,i,a,y,l),e(d,n,m,y,a,o,l)}else{var b=(a*m+l*v)/r;e(t,d,v,i,a,o,b),e(d,n,m,i,b,o,l)}}(0,l,e.value,t,n,r,i)}function tp(e,t,n,r,i){(1&e.depth?Qd:Id)(e,t,n,r,i)}const np=function e(t){function n(e,n,r,i,a){if((o=e._squarify)&&o.ratio===t)for(var o,u,l,c,s,f=-1,h=o.length,d=e.value;++f1?t:1)},n}(Gd);function rp(e){for(var t,n=-1,r=e.length,i=e[r-1],a=0;++n1&&ap(e[n[r-2]],e[n[r-1]],e[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function lp(e){if((n=e.length)<3)return null;var t,n,r=new Array(n),i=new Array(n);for(t=0;t=0;--t)c.push(e[r[a[t]][2]]);for(t=+u;tu!=c>u&&o<(l-n)*(u-r)/(c-r)+n&&(s=!s),l=n,c=r;return s}function sp(e){for(var t,n,r=-1,i=e.length,a=e[i-1],o=a[0],u=a[1],l=0;++r=0;)if((n=e._tasks[r])&&(e._tasks[r]=null,n.abort))try{n.abort()}catch(t){}e._active=NaN,mp(e)}function mp(e){if(!e._active&&e._call){var t=e._data;e._data=void 0,e._call(e._error,t)}}function yp(e){if(null==e)e=1/0;else if(!((e=+e)>=1))throw new Error("invalid concurrency");return new dp(e)}function bp(){return Math.random()}dp.prototype=yp.prototype={constructor:dp,defer:function(e){if("function"!=typeof e)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var t=fp.call(arguments,1);return t.push(e),++this._waiting,this._tasks.push(t),pp(this),this},abort:function(){return null==this._error&&vp(this,new Error("abort")),this},await:function(e){if("function"!=typeof e)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(t,n){e.apply(null,[t].concat(n))},mp(this),this},awaitAll:function(e){if("function"!=typeof e)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=e,mp(this),this}};const _p=function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,1===arguments.length?(n=e,e=0):n-=e,function(){return t()*n+e}}return n.source=e,n}(bp),wp=function e(t){function n(e,n){var r,i;return e=null==e?0:+e,n=null==n?1:+n,function(){var a;if(null!=r)a=r,r=null;else do{r=2*t()-1,a=2*t()-1,i=r*r+a*a}while(!i||i>1);return e+n*a*Math.sqrt(-2*Math.log(i)/i)}}return n.source=e,n}(bp),xp=function e(t){function n(){var e=wp.source(t).apply(this,arguments);return function(){return Math.exp(e())}}return n.source=e,n}(bp),Ep=function e(t){function n(e){return function(){for(var n=0,r=0;r=200&&r<300||304===r){if(i)try{t=i.call(n,l)}catch(e){return void o.call("error",n,e)}else t=l;o.call("load",n,t)}else o.call("error",n,e)}if("undefined"!=typeof XDomainRequest&&!("withCredentials"in l)&&/^(http(s)?:)?\/\//.test(e)&&(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=l.ontimeout=h:l.onreadystatechange=function(e){l.readyState>3&&h(e)},l.onprogress=function(e){o.call("progress",n,e)},n={header:function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?u.get(e):(null==t?u.remove(e):u.set(e,t+""),n)},mimeType:function(e){return arguments.length?(r=null==e?null:e+"",n):r},responseType:function(e){return arguments.length?(a=e,n):a},timeout:function(e){return arguments.length?(f=+e,n):f},user:function(e){return arguments.length<1?c:(c=null==e?null:e+"",n)},password:function(e){return arguments.length<1?s:(s=null==e?null:e+"",n)},response:function(e){return i=e,n},get:function(e,t){return n.send("GET",e,t)},post:function(e,t){return n.send("POST",e,t)},send:function(t,i,h){return l.open(t,e,!0,c,s),null==r||u.has("accept")||u.set("accept",r+",*/*"),l.setRequestHeader&&u.each((function(e,t){l.setRequestHeader(t,e)})),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(e){return function(t,n){e(null==t?n:null)}}(h)),null!=h&&n.on("error",h).on("load",(function(e){h(null,e)})),o.call("beforesend",n,l),l.send(null==i?null:i),n},abort:function(){return l.abort(),n},on:function(){var e=o.on.apply(o,arguments);return e===o?n:e}},null!=t){if("function"!=typeof t)throw new Error("invalid callback: "+t);return n.get(t)}return n}function Cp(e,t){return function(n,r){var i=Mp(n).mimeType(e).response(t);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(e){return document.createRange().createContextualFragment(e.responseText)})),Ap=Cp("application/json",(function(e){return JSON.parse(e.responseText)})),Op=Cp("text/plain",(function(e){return e.responseText})),Rp=Cp("application/xml",(function(e){var t=e.responseXML;if(!t)throw new Error("parse error");return t}));var Ip=n(72);function Lp(e,t){return function(n,r,i){arguments.length<3&&(i=r,r=null);var a=Mp(n).mimeType(e);return a.row=function(e){return arguments.length?a.response(function(e,t){return function(n){return e(n.responseText,t)}}(t,r=e)):r},a.row(r),i?a.get(i):a}}const Dp=Lp("text/csv",Ip.sw),jp=Lp("text/tab-separated-values",Ip.Nu);var zp=Array.prototype,Fp=zp.map,Up=zp.slice,qp={name:"implicit"};function Bp(e){var t=qo(),n=[],r=qp;function i(i){var a=i+"",o=t.get(a);if(!o){if(r!==qp)return r;t.set(a,o=n.push(i))}return e[(o-1)%e.length]}return e=null==e?[]:Up.call(e),i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=qo();for(var r,a,o=-1,u=e.length;++o2?Kp:Gp,r=i=null,s}function s(t){return(r||(r=n(a,o,l?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:r(e)}}}(e):e,u)))(+t)}return s.invert=function(e){return(i||(i=n(o,a,Qp,l?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:r(e)}}}(t):t)))(+e)},s.domain=function(e){return arguments.length?(a=Fp.call(e,Vp),c()):a.slice()},s.range=function(e){return arguments.length?(o=Up.call(e),c()):o.slice()},s.rangeRound=function(e){return o=Up.call(e),u=_r,c()},s.clamp=function(e){return arguments.length?(l=!!e,c()):l},s.interpolate=function(e){return arguments.length?(u=e,c()):u},c()}function eg(e){var t=e.domain;return e.ticks=function(e){var n=t();return N(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return function(e,t,n){var r,i=e[0],a=e[e.length-1],o=C(i,a,null==t?10:t);switch((n=Qu(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),el(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)}(t(),e,n)},e.nice=function(n){null==n&&(n=10);var r,i=t(),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,t(i)):r<0&&(i[a]=Math.ceil(u*r)/r,i[o]=Math.floor(l*r)/r,t(i)),e},e}function tg(){var e=Jp(Qp,pr);return e.copy=function(){return Zp(e,tg())},eg(e)}function ng(){var e=[0,1];function t(e){return+e}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=Fp.call(n,Vp),t):e.slice()},t.copy=function(){return ng().domain(e)},eg(t)}function rg(e,t){var n,r=0,i=(e=e.slice()).length-1,a=e[r],o=e[i];return o0){for(;hl)break;g.push(f)}}else for(;h=1;--s)if(!((f=c*s)l)break;g.push(f)}}else g=N(h,d,Math.min(d-h,p)).map(i);return a?g.reverse():g},e.tickFormat=function(t,a){if(null==a&&(a=10===n?".0e":","),"function"!=typeof a&&(a=Ju(a)),t===1/0)return a;null==t&&(t=10);var o=Math.max(1,n*t/e.ticks().length);return function(e){var t=e/i(Math.round(r(e)));return t*n0?n[i-1]:e[0],i=n?[r[n-1],t]:[r[o-1],r[o]]},a.copy=function(){return gg().domain([e,t]).range(i)},eg(a)}function vg(){var e=[.5],t=[0,1],n=1;function r(r){if(r<=r)return t[c(e,r,0,n)]}return r.domain=function(i){return arguments.length?(e=Up.call(i),n=Math.min(e.length,t.length-1),r):e.slice()},r.range=function(i){return arguments.length?(t=Up.call(i),n=Math.min(e.length,t.length-1),r):t.slice()},r.invertExtent=function(n){var r=t.indexOf(n);return[e[r-1],e[r]]},r.copy=function(){return vg().domain(e).range(t)},r}var mg=new Date,yg=new Date;function bg(e,t,n,r){function i(t){return e(t=new Date(+t)),t}return i.floor=i,i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t0))return u;do{u.push(o=new Date(+n)),t(n,a),e(n)}while(o=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return mg.setTime(+t),yg.setTime(+r),e(mg),e(yg),Math.floor(n(mg,yg))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var _g=bg((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));_g.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?bg((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):_g:null};const wg=_g;var xg=_g.range,Eg=1e3,kg=6e4,Sg=36e5,Tg=864e5,Ng=6048e5,Mg=bg((function(e){e.setTime(Math.floor(e/Eg)*Eg)}),(function(e,t){e.setTime(+e+t*Eg)}),(function(e,t){return(t-e)/Eg}),(function(e){return e.getUTCSeconds()}));const Cg=Mg;var Pg=Mg.range,Ag=bg((function(e){e.setTime(Math.floor(e/kg)*kg)}),(function(e,t){e.setTime(+e+t*kg)}),(function(e,t){return(t-e)/kg}),(function(e){return e.getMinutes()}));const Og=Ag;var Rg=Ag.range,Ig=bg((function(e){var t=e.getTimezoneOffset()*kg%Sg;t<0&&(t+=Sg),e.setTime(Math.floor((+e-t)/Sg)*Sg+t)}),(function(e,t){e.setTime(+e+t*Sg)}),(function(e,t){return(t-e)/Sg}),(function(e){return e.getHours()}));const Lg=Ig;var Dg=Ig.range,jg=bg((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*kg)/Tg}),(function(e){return e.getDate()-1}));const zg=jg;var Fg=jg.range;function Ug(e){return bg((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*kg)/Ng}))}var qg=Ug(0),Bg=Ug(1),Hg=Ug(2),Wg=Ug(3),$g=Ug(4),Yg=Ug(5),Vg=Ug(6),Xg=qg.range,Qg=Bg.range,Gg=Hg.range,Kg=Wg.range,Zg=$g.range,Jg=Yg.range,ev=Vg.range,tv=bg((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}));const nv=tv;var rv=tv.range,iv=bg((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));iv.every=function(e){return isFinite(e=Math.floor(e))&&e>0?bg((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};const av=iv;var ov=iv.range,uv=bg((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*kg)}),(function(e,t){return(t-e)/kg}),(function(e){return e.getUTCMinutes()}));const lv=uv;var cv=uv.range,sv=bg((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Sg)}),(function(e,t){return(t-e)/Sg}),(function(e){return e.getUTCHours()}));const fv=sv;var hv=sv.range,dv=bg((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Tg}),(function(e){return e.getUTCDate()-1}));const pv=dv;var gv=dv.range;function vv(e){return bg((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Ng}))}var mv=vv(0),yv=vv(1),bv=vv(2),_v=vv(3),wv=vv(4),xv=vv(5),Ev=vv(6),kv=mv.range,Sv=yv.range,Tv=bv.range,Nv=_v.range,Mv=wv.range,Cv=xv.range,Pv=Ev.range,Av=bg((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}));const Ov=Av;var Rv=Av.range,Iv=bg((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));Iv.every=function(e){return isFinite(e=Math.floor(e))&&e>0?bg((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};const Lv=Iv;var Dv=Iv.range;function jv(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function zv(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Fv(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function Uv(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,l=e.shortMonths,c=Zv(i),s=Jv(i),f=Zv(a),h=Jv(a),d=Zv(o),p=Jv(o),g=Zv(u),v=Jv(u),m=Zv(l),y=Jv(l),b={a:function(e){return o[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return u[e.getMonth()]},c:null,d:bm,e:bm,f:km,H:_m,I:wm,j:xm,L:Em,m:Sm,M:Tm,p:function(e){return i[+(e.getHours()>=12)]},Q:ey,s:ty,S:Nm,u:Mm,U:Cm,V:Pm,w:Am,W:Om,x:null,X:null,y:Rm,Y:Im,Z:Lm,"%":Jm},_={a:function(e){return o[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return u[e.getUTCMonth()]},c:null,d:Dm,e:Dm,f:qm,H:jm,I:zm,j:Fm,L:Um,m:Bm,M:Hm,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:ey,s:ty,S:Wm,u:$m,U:Ym,V:Vm,w:Xm,W:Qm,x:null,X:null,y:Gm,Y:Km,Z:Zm,"%":Jm},w={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:cm,e:cm,f:gm,H:fm,I:fm,j:sm,L:pm,m:lm,M:hm,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=s[r[0].toLowerCase()],n+r[0].length):-1},Q:mm,s:ym,S:dm,u:tm,U:nm,V:rm,w:em,W:im,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:om,Y:am,Z:um,"%":vm};function x(e,t){return function(n){var r,i,a,o=[],u=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++u53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=zv(Fv(a.y))).getUTCDay(),r=i>4||0===i?yv.ceil(r):yv(r),r=pv.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=t(Fv(a.y))).getDay(),r=i>4||0===i?Bg.ceil(r):Bg(r),r=zg.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?zv(Fv(a.y)).getUTCDay():t(Fv(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,zv(a)):t(a)}}function k(e,t,n,r){for(var i,a,o=0,u=t.length,l=n.length;o=l)return-1;if(37===(i=t.charCodeAt(o++))){if(i=t.charAt(o++),!(a=w[i in Yv?t.charAt(o++):i])||(r=a(e,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(t,b),_.x=x(n,_),_.X=x(r,_),_.c=x(t,_),{format:function(e){var t=x(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=E(e+="",jv);return t.toString=function(){return e},t},utcFormat:function(e){var t=x(e+="",_);return t.toString=function(){return e},t},utcParse:function(e){var t=E(e,zv);return t.toString=function(){return e},t}}}var qv,Bv,Hv,Wv,$v,Yv={"-":"",_:" ",0:"0"},Vv=/^\s*\d+/,Xv=/^%/,Qv=/[\\^$*+?|[\]().{}]/g;function Gv(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a68?1900:2e3),n+r[0].length):-1}function um(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function lm(e,t,n){var r=Vv.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function cm(e,t,n){var r=Vv.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function sm(e,t,n){var r=Vv.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function fm(e,t,n){var r=Vv.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function hm(e,t,n){var r=Vv.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function dm(e,t,n){var r=Vv.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function pm(e,t,n){var r=Vv.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function gm(e,t,n){var r=Vv.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function vm(e,t,n){var r=Xv.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function mm(e,t,n){var r=Vv.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ym(e,t,n){var r=Vv.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function bm(e,t){return Gv(e.getDate(),t,2)}function _m(e,t){return Gv(e.getHours(),t,2)}function wm(e,t){return Gv(e.getHours()%12||12,t,2)}function xm(e,t){return Gv(1+zg.count(av(e),e),t,3)}function Em(e,t){return Gv(e.getMilliseconds(),t,3)}function km(e,t){return Em(e,t)+"000"}function Sm(e,t){return Gv(e.getMonth()+1,t,2)}function Tm(e,t){return Gv(e.getMinutes(),t,2)}function Nm(e,t){return Gv(e.getSeconds(),t,2)}function Mm(e){var t=e.getDay();return 0===t?7:t}function Cm(e,t){return Gv(qg.count(av(e),e),t,2)}function Pm(e,t){var n=e.getDay();return e=n>=4||0===n?$g(e):$g.ceil(e),Gv($g.count(av(e),e)+(4===av(e).getDay()),t,2)}function Am(e){return e.getDay()}function Om(e,t){return Gv(Bg.count(av(e),e),t,2)}function Rm(e,t){return Gv(e.getFullYear()%100,t,2)}function Im(e,t){return Gv(e.getFullYear()%1e4,t,4)}function Lm(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Gv(t/60|0,"0",2)+Gv(t%60,"0",2)}function Dm(e,t){return Gv(e.getUTCDate(),t,2)}function jm(e,t){return Gv(e.getUTCHours(),t,2)}function zm(e,t){return Gv(e.getUTCHours()%12||12,t,2)}function Fm(e,t){return Gv(1+pv.count(Lv(e),e),t,3)}function Um(e,t){return Gv(e.getUTCMilliseconds(),t,3)}function qm(e,t){return Um(e,t)+"000"}function Bm(e,t){return Gv(e.getUTCMonth()+1,t,2)}function Hm(e,t){return Gv(e.getUTCMinutes(),t,2)}function Wm(e,t){return Gv(e.getUTCSeconds(),t,2)}function $m(e){var t=e.getUTCDay();return 0===t?7:t}function Ym(e,t){return Gv(mv.count(Lv(e),e),t,2)}function Vm(e,t){var n=e.getUTCDay();return e=n>=4||0===n?wv(e):wv.ceil(e),Gv(wv.count(Lv(e),e)+(4===Lv(e).getUTCDay()),t,2)}function Xm(e){return e.getUTCDay()}function Qm(e,t){return Gv(yv.count(Lv(e),e),t,2)}function Gm(e,t){return Gv(e.getUTCFullYear()%100,t,2)}function Km(e,t){return Gv(e.getUTCFullYear()%1e4,t,4)}function Zm(){return"+0000"}function Jm(){return"%"}function ey(e){return+e}function ty(e){return Math.floor(+e/1e3)}function ny(e){return qv=Uv(e),Bv=qv.format,Hv=qv.parse,Wv=qv.utcFormat,$v=qv.utcParse,qv}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(e){return e.toISOString()}:Wv(ry);const ay=iy;var oy=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:$v(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 gy(e){return new Date(e)}function vy(e){return e instanceof Date?+e:+new Date(+e)}function my(e,t,n,r,i,o,u,l,c){var s=Jp(Qp,pr),f=s.invert,h=s.domain,d=c(".%L"),p=c(":%S"),g=c("%I:%M"),v=c("%I %p"),m=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],[t,1,dy],[t,3,3*dy],[e,1,py]];function x(a){return(u(a)1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return My.h=360*e-100,My.s=1.5-1.5*t,My.l=.8-.9*t,My+""}function Py(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const Ay=Py(_y("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var Oy=Py(_y("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Ry=Py(_y("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Iy=Py(_y("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Ly(e){var t=0,n=1,r=!1;function i(i){var a=(i-t)/(n-t);return e(r?Math.max(0,Math.min(1,a)):a)}return i.domain=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]},i.clamp=function(e){return arguments.length?(r=!!e,i):r},i.interpolator=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return Ly(e).domain([t,n]).clamp(r)},eg(i)}function Dy(e){return function(){return e}}var jy=Math.abs,zy=Math.atan2,Fy=Math.cos,Uy=Math.max,qy=Math.min,By=Math.sin,Hy=Math.sqrt,Wy=1e-12,$y=Math.PI,Yy=$y/2,Vy=2*$y;function Xy(e){return e>=1?Yy:e<=-1?-Yy:Math.asin(e)}function Qy(e){return e.innerRadius}function Gy(e){return e.outerRadius}function Ky(e){return e.startAngle}function Zy(e){return e.endAngle}function Jy(e){return e&&e.padAngle}function eb(e,t,n,r,i,a,o){var u=e-n,l=t-r,c=(o?a:-a)/Hy(u*u+l*l),s=c*l,f=-c*u,h=e+s,d=t+f,p=n+s,g=r+f,v=(h+p)/2,m=(d+g)/2,y=p-h,b=g-d,_=y*y+b*b,w=i-a,x=h*g-p*d,E=(b<0?-1:1)*Hy(Uy(0,w*w*_-x*x)),k=(x*b-y*E)/_,S=(-x*y-b*E)/_,T=(x*b+y*E)/_,N=(-x*y+b*E)/_,M=k-v,C=S-m,P=T-v,A=N-m;return M*M+C*C>P*P+A*A&&(k=T,S=N),{cx:k,cy:S,x01:-s,y01:-f,x11:k*(i/w-1),y11:S*(i/w-1)}}function tb(){var e=Qy,t=Gy,n=Dy(0),r=null,i=Ky,a=Zy,o=Jy,u=null;function l(){var l,c,s=+e.apply(this,arguments),f=+t.apply(this,arguments),h=i.apply(this,arguments)-Yy,d=a.apply(this,arguments)-Yy,p=jy(d-h),g=d>h;if(u||(u=l=Ao()),fWy)if(p>Vy-Wy)u.moveTo(f*Fy(h),f*By(h)),u.arc(0,0,f,h,d,!g),s>Wy&&(u.moveTo(s*Fy(d),s*By(d)),u.arc(0,0,s,d,h,g));else{var v,m,y=h,b=d,_=h,w=d,x=p,E=p,k=o.apply(this,arguments)/2,S=k>Wy&&(r?+r.apply(this,arguments):Hy(s*s+f*f)),T=qy(jy(f-s)/2,+n.apply(this,arguments)),N=T,M=T;if(S>Wy){var C=Xy(S/s*By(k)),P=Xy(S/f*By(k));(x-=2*C)>Wy?(_+=C*=g?1:-1,w-=C):(x=0,_=w=(h+d)/2),(E-=2*P)>Wy?(y+=P*=g?1:-1,b-=P):(E=0,y=b=(h+d)/2)}var A=f*Fy(y),O=f*By(y),R=s*Fy(w),I=s*By(w);if(T>Wy){var L=f*Fy(b),D=f*By(b),j=s*Fy(_),z=s*By(_);if(p<$y){var F=x>Wy?function(e,t,n,r,i,a,o,u){var l=n-e,c=r-t,s=o-i,f=u-a,h=(s*(t-a)-f*(e-i))/(f*l-s*c);return[e+h*l,t+h*c]}(A,O,j,z,L,D,R,I):[R,I],U=A-F[0],q=O-F[1],B=L-F[0],H=D-F[1],W=1/By(function(e){return e>1?0:e<-1?$y:Math.acos(e)}((U*B+q*H)/(Hy(U*U+q*q)*Hy(B*B+H*H)))/2),$=Hy(F[0]*F[0]+F[1]*F[1]);N=qy(T,(s-$)/(W-1)),M=qy(T,(f-$)/(W+1))}}E>Wy?M>Wy?(v=eb(j,z,A,O,f,M,g),m=eb(L,D,R,I,f,M,g),u.moveTo(v.cx+v.x01,v.cy+v.y01),MWy&&x>Wy?N>Wy?(v=eb(R,I,L,D,s,-N,g),m=eb(A,O,j,z,s,-N,g),u.lineTo(v.cx+v.x01,v.cy+v.y01),N=s;--f)u.point(v[f],m[f]);u.lineEnd(),u.areaEnd()}g&&(v[c]=+e(h,c,l),m[c]=+n(h,c,l),u.point(t?+t(h,c,l):v[c],r?+r(h,c,l):m[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?(e="function"==typeof n?n:Dy(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:Dy(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:Dy(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:Dy(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:Dy(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Dy(+e),l):r},l.lineX0=l.lineY0=function(){return c().x(e).y(n)},l.lineY1=function(){return c().x(e).y(r)},l.lineX1=function(){return c().x(t).y(n)},l.defined=function(e){return arguments.length?(i="function"==typeof e?e:Dy(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,null!=a&&(u=o(a)),l):o},l.context=function(e){return arguments.length?(null==e?a=u=null:u=o(a=e),l):a},l}function lb(e,t){return te?1:t>=e?0:NaN}function cb(e){return e}function sb(){var e=cb,t=lb,n=null,r=Dy(0),i=Dy(Vy),a=Dy(0);function o(o){var u,l,c,s,f,h=o.length,d=0,p=new Array(h),g=new Array(h),v=+r.apply(this,arguments),m=Math.min(Vy,Math.max(-Vy,i.apply(this,arguments)-v)),y=Math.min(Math.abs(m)/h,a.apply(this,arguments)),b=y*(m<0?-1:1);for(u=0;u0&&(d+=f);for(null!=t?p.sort((function(e,n){return t(g[e],g[n])})):null!=n&&p.sort((function(e,t){return n(o[e],o[t])})),u=0,c=d?(m-h*b)/d:0;u0?f*c:0)+b,g[l]={data:o[l],index:u,value:f,startAngle:v,endAngle:s,padAngle:y};return g}return o.value=function(t){return arguments.length?(e="function"==typeof t?t:Dy(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:Dy(+e),o):r},o.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:Dy(+e),o):i},o.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:Dy(+e),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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var fb=db(rb);function hb(e){this._curve=e}function db(e){function t(t){return new hb(e(t))}return t._curve=e,t}function pb(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(db(e)):t()._curve},e}function gb(){return pb(ob().curve(fb))}function vb(){var e=ub().curve(fb),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,a=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return pb(n())},delete e.lineX0,e.lineEndAngle=function(){return pb(r())},delete e.lineX1,e.lineInnerRadius=function(){return pb(i())},delete e.lineY0,e.lineOuterRadius=function(){return pb(a())},delete e.lineY1,e.curve=function(e){return arguments.length?t(db(e)):t()._curve},e}function mb(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}hb.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var yb=Array.prototype.slice;function bb(e){return e.source}function _b(e){return e.target}function wb(e){var t=bb,n=_b,r=ib,i=ab,a=null;function o(){var o,u=yb.call(arguments),l=t.apply(this,u),c=n.apply(this,u);if(a||(a=o=Ao()),e(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(e){return arguments.length?(t=e,o):t},o.target=function(e){return arguments.length?(n=e,o):n},o.x=function(e){return arguments.length?(r="function"==typeof e?e:Dy(+e),o):r},o.y=function(e){return arguments.length?(i="function"==typeof e?e:Dy(+e),o):i},o.context=function(e){return arguments.length?(a=null==e?null:e,o):a},o}function xb(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function Eb(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function kb(e,t,n,r,i){var a=mb(t,n),o=mb(t,n=(n+i)/2),u=mb(r,n),l=mb(r,i);e.moveTo(a[0],a[1]),e.bezierCurveTo(o[0],o[1],u[0],u[1],l[0],l[1])}function Sb(){return wb(xb)}function Tb(){return wb(Eb)}function Nb(){var e=wb(kb);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}const Mb={draw:function(e,t){var n=Math.sqrt(t/$y);e.moveTo(n,0),e.arc(0,0,n,0,Vy)}},Cb={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}};var Pb=Math.sqrt(1/3),Ab=2*Pb;const Ob={draw:function(e,t){var n=Math.sqrt(t/Ab),r=n*Pb;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}};var Rb=Math.sin($y/10)/Math.sin(7*$y/10),Ib=Math.sin(Vy/10)*Rb,Lb=-Math.cos(Vy/10)*Rb;const Db={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=Ib*n,i=Lb*n;e.moveTo(0,-n),e.lineTo(r,i);for(var a=1;a<5;++a){var o=Vy*a/5,u=Math.cos(o),l=Math.sin(o);e.lineTo(l*n,-u*n),e.lineTo(u*r-l*i,l*r+u*i)}e.closePath()}},jb={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}};var zb=Math.sqrt(3);const Fb={draw:function(e,t){var n=-Math.sqrt(t/(3*zb));e.moveTo(0,2*n),e.lineTo(-zb*n,-n),e.lineTo(zb*n,-n),e.closePath()}};var Ub=-.5,qb=Math.sqrt(3)/2,Bb=1/Math.sqrt(12),Hb=3*(Bb/2+1);const Wb={draw:function(e,t){var n=Math.sqrt(t/Hb),r=n/2,i=n*Bb,a=r,o=n*Bb+n,u=-a,l=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(u,l),e.lineTo(Ub*r-qb*i,qb*r+Ub*i),e.lineTo(Ub*a-qb*o,qb*a+Ub*o),e.lineTo(Ub*u-qb*l,qb*u+Ub*l),e.lineTo(Ub*r+qb*i,Ub*i-qb*r),e.lineTo(Ub*a+qb*o,Ub*o-qb*a),e.lineTo(Ub*u+qb*l,Ub*l-qb*u),e.closePath()}};var $b=[Mb,Cb,Ob,jb,Db,Fb,Wb];function Yb(){var e=Dy(Mb),t=Dy(64),n=null;function r(){var r;if(n||(n=r=Ao()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"==typeof t?t:Dy(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:Dy(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r}function Vb(){}function Xb(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Qb(e){this._context=e}function Gb(e){return new Qb(e)}function Kb(e){this._context=e}function Zb(e){return new Kb(e)}function Jb(e){this._context=e}function e_(e){return new Jb(e)}function t_(e,t){this._basis=new Qb(e),this._beta=t}Qb.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:Xb(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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Xb(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Kb.prototype={areaStart:Vb,areaEnd:Vb,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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Xb(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},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(e,t){switch(e=+e,t=+t,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+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Xb(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},t_.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],a=t[0],o=e[n]-i,u=t[n]-a,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*o),this._beta*t[l]+(1-this._beta)*(a+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const n_=function e(t){function n(e){return 1===t?new Qb(e):new t_(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function r_(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function i_(e,t){this._context=e,this._k=(1-t)/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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:r_(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const a_=function e(t){function n(e){return new i_(e,t)}return n.tension=function(t){return e(+t)},n}(0);function o_(e,t){this._context=e,this._k=(1-t)/6}o_.prototype={areaStart:Vb,areaEnd:Vb,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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:r_(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const u_=function e(t){function n(e){return new o_(e,t)}return n.tension=function(t){return e(+t)},n}(0);function l_(e,t){this._context=e,this._k=(1-t)/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(e,t){switch(e=+e,t=+t,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,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const c_=function e(t){function n(e){return new l_(e,t)}return n.tension=function(t){return e(+t)},n}(0);function s_(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Wy){var u=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*u-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*u-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>Wy){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,s=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/s,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/s}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function f_(e,t){this._context=e,this._alpha=t}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(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;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(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:s_(this,e,t)}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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const h_=function e(t){function n(e){return t?new f_(e,t):new i_(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function d_(e,t){this._context=e,this._alpha=t}d_.prototype={areaStart:Vb,areaEnd:Vb,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(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;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=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:s_(this,e,t)}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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const p_=function e(t){function n(e){return t?new d_(e,t):new o_(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function g_(e,t){this._context=e,this._alpha=t}g_.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(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;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,e,t)}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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const v_=function e(t){function n(e){return t?new g_(e,t):new l_(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function m_(e){this._context=e}function y_(e){return new m_(e)}function b_(e){return e<0?-1:1}function __(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._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_(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function x_(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-r)/3;e._context.bezierCurveTo(r+u,i+u*t,a-u,o-u*n,a,o)}function E_(e){this._context=e}function k_(e){this._context=new S_(e)}function S_(e){this._context=e}function T_(e){return new E_(e)}function N_(e){return new k_(e)}function M_(e){this._context=e}function C_(e){var t,n,r=e.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t1)for(var n,r,i,a=1,o=e[t[0]],u=o.length;a=0;)n[t]=t;return n}function j_(e,t){return e[t]}function z_(){var e=Dy([]),t=D_,n=L_,r=j_;function i(i){var a,o,u=e.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=e[0].length;a1)for(var n,r,i,a,o,u,l=0,c=e[t[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_(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],a=i.length;r0&&(r=(n=e[t[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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}},K_.prototype={constructor:K_,insert:function(e,t){var n,r,i;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=tw(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.R&&(J_(this,n),n=(e=n).U),n.C=!1,r.C=!0,ew(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.L&&(ew(this,n),n=(e=n).U),n.C=!1,r.C=!0,J_(this,r)),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,r,i=e.U,a=e.L,o=e.R;if(n=a?o?tw(o):a:o,i?i.L===e?i.L=n:i.R=n:this._=n,a&&o?(r=n.C,n.C=e.C,n.L=a,a.U=n,n!==o?(i=n.U,n.U=e.U,e=n.R,i.L=e,n.R=o,o.U=n):(n.U=i,i=n,e=n.R)):(r=e.C,e=n),e&&(e.U=i),!r)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===i.L){if((t=i.R).C&&(t.C=!1,i.C=!0,J_(this,i),t=i.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,ew(this,t),t=i.R),t.C=i.C,i.C=t.R.C=!1,J_(this,i),e=this._;break}}else if((t=i.L).C&&(t.C=!1,i.C=!0,ew(this,i),t=i.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,J_(this,t),t=i.L),t.C=i.C,i.C=t.L.C=!1,ew(this,i),e=this._;break}t.C=!0,e=i,i=i.U}while(!e.C);e&&(e.C=!1)}}};const nw=K_;function rw(e,t,n,r){var i=[null,null],a=Nw.push(i)-1;return i.left=e,i.right=t,n&&aw(i,e,t,n),r&&aw(i,t,e,r),Sw[e.index].halfedges.push(a),Sw[t.index].halfedges.push(a),i}function iw(e,t,n){var r=[t,n];return r.left=e,r}function aw(e,t,n,r){e[0]||e[1]?e.left===n?e[1]=r:e[0]=r:(e[0]=r,e.left=t,e.right=n)}function ow(e,t,n,r,i){var a,o=e[0],u=e[1],l=o[0],c=o[1],s=0,f=1,h=u[0]-l,d=u[1]-c;if(a=t-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&&(e[0]=[l+s*h,c+s*d]),f<1&&(e[1]=[l+f*h,c+f*d]),!0)}}}}}function uw(e,t,n,r,i){var a=e[1];if(a)return!0;var o,u,l=e[0],c=e.left,s=e.right,f=c[0],h=c[1],d=s[0],p=s[1],g=(f+d)/2,v=(h+p)/2;if(p===h){if(g=r)return;if(f>d){if(l){if(l[1]>=i)return}else l=[g,n];a=[g,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=[t,o*t+u];a=[r,o*r+u]}else{if(l){if(l[0]=-Cw)){var d=l*l+c*c,p=s*s+f*f,g=(f*d-c*p)/h,v=(l*p-s*d)/h,m=hw.pop()||new dw;m.arc=e,m.site=i,m.x=g+o,m.y=(m.cy=v+u)+Math.sqrt(g*g+v*v),e.circle=m;for(var y=null,b=Tw._;b;)if(m.yMw)u=u.L;else{if(!((i=a-Ew(u,o))>Mw)){r>-Mw?(t=u.P,n=u):i>-Mw?(t=u,n=u.N):t=n=u;break}if(!u.R){t=u;break}u=u.R}!function(e){Sw[e.index]={site:e,halfedges:[]}}(e);var l=yw(e);if(kw.insert(t,l),t||n){if(t===n)return gw(t),n=yw(t.site),kw.insert(l,n),l.edge=n.edge=rw(t.site,l.site),pw(t),void pw(n);if(n){gw(t),gw(n);var c=t.site,s=c[0],f=c[1],h=e[0]-s,d=e[1]-f,p=n.site,g=p[0]-s,v=p[1]-f,m=2*(h*v-d*g),y=h*h+d*d,b=g*g+v*v,_=[(v*y-d*b)/m+s,(h*b-g*y)/m+f];aw(n.edge,c,p,_),l.edge=rw(c,e,null,_),n.edge=rw(e,p,null,_),pw(t),pw(n)}else l.edge=rw(t.site,l.site)}}function xw(e,t){var n=e.site,r=n[0],i=n[1],a=i-t;if(!a)return r;var o=e.P;if(!o)return-1/0;var u=(n=o.site)[0],l=n[1],c=l-t;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(e,t){var n=e.N;if(n)return xw(n,t);var r=e.site;return r[1]===t?r[0]:1/0}var kw,Sw,Tw,Nw,Mw=1e-6,Cw=1e-12;function Pw(e,t,n){return(e[0]-n[0])*(t[1]-e[1])-(e[0]-t[0])*(n[1]-e[1])}function Aw(e,t){return t[1]-e[1]||t[0]-e[0]}function Ow(e,t){var n,r,i,a=e.sort(Aw).pop();for(Nw=[],Sw=new Array(e.length),kw=new nw,Tw=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(e,t,n,r){var i,a,o,u,l,c,s,f,h,d,p,g,v=Sw.length,m=!0;for(i=0;iMw||Math.abs(g-h)>Mw)&&(l.splice(u,0,Nw.push(iw(o,d,Math.abs(p-e)Mw?[e,Math.abs(f-e)Mw?[Math.abs(h-r)Mw?[n,Math.abs(f-n)Mw?[Math.abs(h-t)=u)return null;var l=e-i.site[0],c=t-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=e-u[0],c=t-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 Vw(){var e,t,n=qw,r=Bw,i=Yw,a=Ww,o=$w,u=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],c=250,s=Dr,f=[],h=ge("start","zoom","end"),d=500,p=150,g=0;function v(e){e.property("__zoom",Hw).on("wheel.zoom",E).on("mousedown.zoom",k).on("dblclick.zoom",S).filter(o).on("touchstart.zoom",T).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 m(e,t){return(t=Math.max(u[0],Math.min(u[1],t)))===e.k?e:new Dw(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new Dw(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function _(e,t,n){e.on("start.zoom",(function(){w(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){w(this,arguments).end()})).tween("zoom",(function(){var e=this,i=arguments,a=w(e,i),o=r.apply(e,i),u=n||b(o),l=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),c=e.__zoom,f="function"==typeof t?t.apply(e,i):t,h=s(c.invert(u).concat(l/c.k),f.invert(u).concat(l/f.k));return function(e){if(1===e)e=f;else{var t=h(e),n=l/t[2];e=new Dw(n,u[0]-t[0]*n,u[1]-t[1]*n)}a.zoom(null,e)}}))}function w(e,t){for(var n,r=0,i=f.length;rg}e.zoom("mouse",i(y(e.that.__zoom,e.mouse[0]=jt(e.that),e.mouse[1]),e.extent,l))}),!0).on("mouseup.zoom",(function(){r.on("mousemove.zoom mouseup.zoom",null),Wt(mt.view,e.moved),Uw(),e.end()}),!0),a=jt(this),o=mt.clientX,u=mt.clientY;Ht(mt.view),Fw(),e.mouse=[a,this.__zoom.invert(a)],Mi(this),e.start()}}function S(){if(n.apply(this,arguments)){var e=this.__zoom,t=jt(this),a=e.invert(t),o=e.k*(mt.shiftKey?.5:2),u=i(y(m(e,o),t,a),r.apply(this,arguments),l);Uw(),c>0?Pt(this).transition().duration(c).call(_,u,t):Pt(this).call(v.transform,u)}}function T(){if(n.apply(this,arguments)){var t,r,i,a,o=w(this,arguments),u=mt.changedTouches,l=u.length;for(Fw(),r=0;r{e.exports={graphlib:n(8191),layout:n(8202),debug:n(8909),util:{time:n(3988).time,notime:n(3988).notime},version:n(7038)}},6822:(e,t,n)=>{"use strict";var r=n(6857),i=n(2031);e.exports={run:function(e){var t="greedy"===e.graph().acyclicer?i(e,function(e){return function(t){return e.edge(t).weight}}(e)):function(e){var t=[],n={},i={};function a(o){r.has(i,o)||(i[o]=!0,n[o]=!0,r.forEach(e.outEdges(o),(function(e){r.has(n,e.w)?t.push(e):a(e.w)})),delete n[o])}return r.forEach(e.nodes(),a),t}(e);r.forEach(t,(function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,r.uniqueId("rev"))}))},undo:function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}}))}}},135:(e,t,n)=>{var r=n(6857),i=n(3988);function a(e,t,n,r,a,o){var u={width:0,height:0,rank:o,borderType:t},l=a[t][o-1],c=i.addDummyNode(e,"border",u,n);a[t][o]=c,e.setParent(c,r),l&&e.setEdge(l,c,{weight:1})}e.exports=function(e){r.forEach(e.children(),(function t(n){var i=e.children(n),o=e.node(n);if(i.length&&r.forEach(i,t),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(e){r.forEach(e.nodes(),(function(t){a(e.node(t))})),r.forEach(e.edges(),(function(t){a(e.edge(t))}))}function a(e){var t=e.width;e.width=e.height,e.height=t}function o(e){e.y=-e.y}function u(e){var t=e.x;e.x=e.y,e.y=t}e.exports={adjust:function(e){var t=e.graph().rankdir.toLowerCase();"lr"!==t&&"rl"!==t||i(e)},undo:function(e){var t=e.graph().rankdir.toLowerCase();"bt"!==t&&"rl"!==t||function(e){r.forEach(e.nodes(),(function(t){o(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.forEach(n.points,o),r.has(n,"y")&&o(n)}))}(e);"lr"!==t&&"rl"!==t||(!function(e){r.forEach(e.nodes(),(function(t){u(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.forEach(n.points,u),r.has(n,"x")&&u(n)}))}(e),i(e))}}},9859:e=>{function t(){var e={};e._next=e._prev=e,this._sentinel=e}function n(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function r(e,t){if("_next"!==e&&"_prev"!==e)return t}e.exports=t,t.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return n(t),t},t.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&n(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t},t.prototype.toString=function(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,r)),n=n._prev;return"["+e.join(", ")+"]"}},8909:(e,t,n)=>{var r=n(6857),i=n(3988),a=n(8191).Graph;e.exports={debugOrdering:function(e){var t=i.buildLayerMatrix(e),n=new a({compound:!0,multigraph:!0}).setGraph({});return r.forEach(e.nodes(),(function(t){n.setNode(t,{label:t}),n.setParent(t,"layer"+e.node(t).rank)})),r.forEach(e.edges(),(function(e){n.setEdge(e.v,e.w,{},e.name)})),r.forEach(t,(function(e,t){var i="layer"+t;n.setNode(i,{rank:"same"}),r.reduce(e,(function(e,t){return n.setEdge(e,t,{style:"invis"}),t}))})),n}}},8191:(e,t,n)=>{var r;try{r=n(8362)}catch(e){}r||(r=window.graphlib),e.exports=r},2031:(e,t,n)=>{var r=n(6857),i=n(8191).Graph,a=n(9859);e.exports=function(e,t){if(e.nodeCount()<=1)return[];var n=function(e,t){var n=new i,o=0,u=0;r.forEach(e.nodes(),(function(e){n.setNode(e,{v:e,in:0,out:0})})),r.forEach(e.edges(),(function(e){var r=n.edge(e.v,e.w)||0,i=t(e),a=r+i;n.setEdge(e.v,e.w,a),u=Math.max(u,n.node(e.v).out+=i),o=Math.max(o,n.node(e.w).in+=i)}));var c=r.range(u+o+3).map((function(){return new a})),s=o+1;return r.forEach(n.nodes(),(function(e){l(c,s,n.node(e))})),{graph:n,buckets:c,zeroIdx:s}}(e,t||o),c=function(e,t,n){var r,i=[],a=t[t.length-1],o=t[0];for(;e.nodeCount();){for(;r=o.dequeue();)u(e,t,n,r);for(;r=a.dequeue();)u(e,t,n,r);if(e.nodeCount())for(var l=t.length-2;l>0;--l)if(r=t[l].dequeue()){i=i.concat(u(e,t,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(c,(function(t){return e.outEdges(t.v,t.w)})),!0)};var o=r.constant(1);function u(e,t,n,i,a){var o=a?[]:void 0;return r.forEach(e.inEdges(i.v),(function(r){var i=e.edge(r),u=e.node(r.v);a&&o.push({v:r.v,w:r.w}),u.out-=i,l(t,n,u)})),r.forEach(e.outEdges(i.v),(function(r){var i=e.edge(r),a=r.w,o=e.node(a);o.in-=i,l(t,n,o)})),e.removeNode(i.v),o}function l(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}},8202:(e,t,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),g=n(3988),v=n(8191).Graph;e.exports=function(e,t){var n=t&&t.debugTiming?g.time:g.notime;n("layout",(function(){var t=n(" buildLayoutGraph",(function(){return function(e){var t=new v({multigraph:!0,compound:!0}),n=T(e.graph());return t.setGraph(r.merge({},y,S(n,m),r.pick(n,b))),r.forEach(e.nodes(),(function(n){var i=T(e.node(n));t.setNode(n,r.defaults(S(i,_),w)),t.setParent(n,e.parent(n))})),r.forEach(e.edges(),(function(n){var i=T(e.edge(n));t.setEdge(n,r.merge({},E,S(i,x),r.pick(i,k)))})),t}(e)}));n(" runLayout",(function(){!function(e,t){t(" makeSpaceForEdgeLabels",(function(){!function(e){var t=e.graph();t.ranksep/=2,r.forEach(e.edges(),(function(n){var r=e.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(e)})),t(" removeSelfEdges",(function(){!function(e){r.forEach(e.edges(),(function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}}))}(e)})),t(" acyclic",(function(){i.run(e)})),t(" nestingGraph.run",(function(){s.run(e)})),t(" rank",(function(){o(g.asNonCompoundGraph(e))})),t(" injectEdgeLabelProxies",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),i={rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t};g.addDummyNode(e,"edge-proxy",i,"_ep")}}))}(e)})),t(" removeEmptyRanks",(function(){c(e)})),t(" nestingGraph.cleanup",(function(){s.cleanup(e)})),t(" normalizeRanks",(function(){u(e)})),t(" assignRankMinMax",(function(){!function(e){var t=0;r.forEach(e.nodes(),(function(n){var i=e.node(n);i.borderTop&&(i.minRank=e.node(i.borderTop).rank,i.maxRank=e.node(i.borderBottom).rank,t=r.max(t,i.maxRank))})),e.graph().maxRank=t}(e)})),t(" removeEdgeLabelProxies",(function(){!function(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))}))}(e)})),t(" normalize.run",(function(){a.run(e)})),t(" parentDummyChains",(function(){l(e)})),t(" addBorderSegments",(function(){f(e)})),t(" order",(function(){d(e)})),t(" insertSelfEdges",(function(){!function(e){var t=g.buildLayerMatrix(e);r.forEach(t,(function(t){var n=0;r.forEach(t,(function(t,i){var a=e.node(t);a.order=i+n,r.forEach(a.selfEdges,(function(t){g.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:a.rank,order:i+ ++n,e:t.e,label:t.label},"_se")})),delete a.selfEdges}))}))}(e)})),t(" adjustCoordinateSystem",(function(){h.adjust(e)})),t(" position",(function(){p(e)})),t(" positionSelfEdges",(function(){!function(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);if("selfedge"===n.dummy){var r=e.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,u=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),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}}))}(e)})),t(" removeBorderNodes",(function(){!function(e){r.forEach(e.nodes(),(function(t){if(e.children(t).length){var n=e.node(t),i=e.node(n.borderTop),a=e.node(n.borderBottom),o=e.node(r.last(n.borderLeft)),u=e.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(e.nodes(),(function(t){"border"===e.node(t).dummy&&e.removeNode(t)}))}(e)})),t(" normalize.undo",(function(){a.undo(e)})),t(" fixupEdgeLabelCoords",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);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}}))}(e)})),t(" undoCoordinateSystem",(function(){h.undo(e)})),t(" translateGraph",(function(){!function(e){var t=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,a=0,o=e.graph(),u=o.marginx||0,l=o.marginy||0;function c(e){var r=e.x,o=e.y,u=e.width,l=e.height;t=Math.min(t,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(e.nodes(),(function(t){c(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.has(n,"x")&&c(n)})),t-=u,i-=l,r.forEach(e.nodes(),(function(n){var r=e.node(n);r.x-=t,r.y-=i})),r.forEach(e.edges(),(function(n){var a=e.edge(n);r.forEach(a.points,(function(e){e.x-=t,e.y-=i})),r.has(a,"x")&&(a.x-=t),r.has(a,"y")&&(a.y-=i)})),o.width=n-t+u,o.height=a-i+l}(e)})),t(" assignNodeIntersects",(function(){!function(e){r.forEach(e.edges(),(function(t){var n,r,i=e.edge(t),a=e.node(t.v),o=e.node(t.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=o,r=a),i.points.unshift(g.intersectRect(a,n)),i.points.push(g.intersectRect(o,r))}))}(e)})),t(" reversePoints",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);n.reversed&&n.points.reverse()}))}(e)})),t(" acyclic.undo",(function(){i.undo(e)}))}(t,n)})),n(" updateInputGraph",(function(){!function(e,t){r.forEach(e.nodes(),(function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))})),r.forEach(e.edges(),(function(n){var i=e.edge(n),a=t.edge(n);i.points=a.points,r.has(a,"x")&&(i.x=a.x,i.y=a.y)})),e.graph().width=t.graph().width,e.graph().height=t.graph().height}(e,t)}))}))};var m=["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 S(e,t){return r.mapValues(r.pick(e,t),Number)}function T(e){var t={};return r.forEach(e,(function(e,n){t[n.toLowerCase()]=e})),t}},6857:(e,t,n)=>{var r;try{r=n(2543)}catch(e){}r||(r=window._),e.exports=r},6353:(e,t,n)=>{var r=n(6857),i=n(3988);function a(e,t,n,o,u,l,c){var s=e.children(c);if(s.length){var f=i.addBorderNode(e,"_bt"),h=i.addBorderNode(e,"_bb"),d=e.node(c);e.setParent(f,c),d.borderTop=f,e.setParent(h,c),d.borderBottom=h,r.forEach(s,(function(r){a(e,t,n,o,u,l,r);var i=e.node(r),s=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?o:2*o,g=s!==d?1:u-l[c]+1;e.setEdge(f,s,{weight:p,minlen:g,nestingEdge:!0}),e.setEdge(d,h,{weight:p,minlen:g,nestingEdge:!0})})),e.parent(c)||e.setEdge(t,f,{weight:0,minlen:u+l[c]})}else c!==t&&e.setEdge(t,c,{weight:0,minlen:n})}e.exports={run:function(e){var t=i.addDummyNode(e,"root",{},"_root"),n=function(e){var t={};function n(i,a){var o=e.children(i);o&&o.length&&r.forEach(o,(function(e){n(e,a+1)})),t[i]=a}return r.forEach(e.children(),(function(e){n(e,1)})),t}(e),o=r.max(r.values(n))-1,u=2*o+1;e.graph().nestingRoot=t,r.forEach(e.edges(),(function(t){e.edge(t).minlen*=u}));var l=function(e){return r.reduce(e.edges(),(function(t,n){return t+e.edge(n).weight}),0)}(e)+1;r.forEach(e.children(),(function(r){a(e,t,u,l,o,n,r)})),e.graph().nodeRankFactor=u},cleanup:function(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,r.forEach(e.edges(),(function(t){e.edge(t).nestingEdge&&e.removeEdge(t)}))}}},8209:(e,t,n)=>{"use strict";var r=n(6857),i=n(3988);e.exports={run:function(e){e.graph().dummyChains=[],r.forEach(e.edges(),(function(t){!function(e,t){var n,r,a,o=t.v,u=e.node(o).rank,l=t.w,c=e.node(l).rank,s=t.name,f=e.edge(t),h=f.labelRank;if(c===u+1)return;for(e.removeEdge(t),a=0,++u;u{var r=n(6857);e.exports=function(e,t,n){var i,a={};r.forEach(n,(function(n){for(var r,o,u=e.parent(n);u;){if((r=e.parent(u))?(o=a[r],a[r]=u):(o=i,i=u),o&&o!==u)return void t.setEdge(o,u);u=r}}))}},3860:(e,t,n)=>{var r=n(6857);e.exports=function(e,t){return r.map(t,(function(t){var n=e.inEdges(t);if(n.length){var i=r.reduce(n,(function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}}),{sum:0,weight:0});return{v:t,barycenter:i.sum/i.weight,weight:i.weight}}return{v:t}}))}},7860:(e,t,n)=>{var r=n(6857),i=n(8191).Graph;e.exports=function(e,t,n){var a=function(e){var t;for(;e.hasNode(t=r.uniqueId("_root")););return t}(e),o=new i({compound:!0}).setGraph({root:a}).setDefaultNodeLabel((function(t){return e.node(t)}));return r.forEach(e.nodes(),(function(i){var u=e.node(i),l=e.parent(i);(u.rank===t||u.minRank<=t&&t<=u.maxRank)&&(o.setNode(i),o.setParent(i,l||a),r.forEach(e[n](i),(function(t){var n=t.v===i?t.w:t.v,a=o.edge(n,i),u=r.isUndefined(a)?0:a.weight;o.setEdge(n,i,{weight:e.edge(t).weight+u})})),r.has(u,"minRank")&&o.setNode(i,{borderLeft:u.borderLeft[t],borderRight:u.borderRight[t]}))})),o}},6639:(e,t,n)=>{"use strict";var r=n(6857);function i(e,t,n){for(var i=r.zipObject(n,r.map(n,(function(e,t){return t}))),a=r.flatten(r.map(t,(function(t){return r.chain(e.outEdges(t)).map((function(t){return{pos:i[t.w],weight:e.edge(t).weight}})).sortBy("pos").value()})),!0),o=1;o0;)t%2&&(n+=l[t+1]),l[t=t-1>>1]+=e.weight;c+=e.weight*n}))),c}e.exports=function(e,t){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(e,t,n){return r.map(t,(function(t){return u(e,t,n)}))}function h(e,t){var n=new c;r.forEach(e,(function(e){var i=e.graph().root,a=o(e,i,n,t);r.forEach(a.vs,(function(t,n){e.node(t).order=n})),l(e,n,a.vs)}))}function d(e,t){r.forEach(t,(function(t){r.forEach(t,(function(t,n){e.node(t).order=n}))}))}e.exports=function(e){var t=s.maxRank(e),n=f(e,r.range(1,t+1),"inEdges"),o=f(e,r.range(t-1,-1,-1),"outEdges"),u=i(e);d(e,u);for(var l,c=Number.POSITIVE_INFINITY,p=0,g=0;g<4;++p,++g){h(p%2?n:o,p%4>=2),u=s.buildLayerMatrix(e);var v=a(e,u);v{"use strict";var r=n(6857);e.exports=function(e){var t={},n=r.filter(e.nodes(),(function(t){return!e.children(t).length})),i=r.max(r.map(n,(function(t){return e.node(t).rank}))),a=r.map(r.range(i+1),(function(){return[]}));var o=r.sortBy(n,(function(t){return e.node(t).rank}));return r.forEach(o,(function n(i){if(r.has(t,i))return;t[i]=!0;var o=e.node(i);a[o.rank].push(i),r.forEach(e.successors(i),n)})),a}},4959:(e,t,n)=>{"use strict";var r=n(6857);e.exports=function(e,t){var n={};return r.forEach(e,(function(e,t){var i=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};r.isUndefined(e.barycenter)||(i.barycenter=e.barycenter,i.weight=e.weight)})),r.forEach(t.edges(),(function(e){var t=n[e.v],i=n[e.w];r.isUndefined(t)||r.isUndefined(i)||(i.indegree++,t.out.push(n[e.w]))})),function(e){var t=[];function n(e){return function(t){t.merged||(r.isUndefined(t.barycenter)||r.isUndefined(e.barycenter)||t.barycenter>=e.barycenter)&&function(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight);t.weight&&(n+=t.barycenter*t.weight,r+=t.weight);e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}function i(t){return function(n){n.in.push(t),0==--n.indegree&&e.push(n)}}for(;e.length;){var a=e.pop();t.push(a),r.forEach(a.in.reverse(),n(a)),r.forEach(a.out,i(a))}return r.chain(t).filter((function(e){return!e.merged})).map((function(e){return r.pick(e,["vs","i","barycenter","weight"])})).value()}(r.filter(n,(function(e){return!e.indegree})))}},4520:(e,t,n)=>{var r=n(6857),i=n(3860),a=n(4959),o=n(5169);e.exports=function e(t,n,u,l){var c=t.children(n),s=t.node(n),f=s?s.borderLeft:void 0,h=s?s.borderRight:void 0,d={};f&&(c=r.filter(c,(function(e){return e!==f&&e!==h})));var p=i(t,c);r.forEach(p,(function(n){if(t.children(n.v).length){var i=e(t,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 g=a(p,u);!function(e,t){r.forEach(e,(function(e){e.vs=r.flatten(e.vs.map((function(e){return t[e]?t[e].vs:e})),!0)}))}(g,d);var v=o(g,l);if(f&&(v.vs=r.flatten([f,v.vs,h],!0),t.predecessors(f).length)){var m=t.node(t.predecessors(f)[0]),y=t.node(t.predecessors(h)[0]);r.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+m.order+y.order)/(v.weight+2),v.weight+=2}return v}},5169:(e,t,n)=>{var r=n(6857),i=n(3988);function a(e,t,n){for(var i;t.length&&(i=r.last(t)).i<=n;)t.pop(),e.push(i.vs),n++;return n}e.exports=function(e,t){var n=i.partition(e,(function(e){return r.has(e,"barycenter")})),o=n.lhs,u=r.sortBy(n.rhs,(function(e){return-e.i})),l=[],c=0,s=0,f=0;o.sort((h=!!t,function(e,t){return e.barycentert.barycenter?1:h?t.i-e.i:e.i-t.i})),f=a(l,u,f),r.forEach(o,(function(e){f+=e.vs.length,l.push(e.vs),c+=e.barycenter*e.weight,s+=e.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:(e,t,n)=>{var r=n(6857);e.exports=function(e){var t=function(e){var t={},n=0;function i(a){var o=n;r.forEach(e.children(a),i),t[a]={low:o,lim:n++}}return r.forEach(e.children(),i),t}(e);r.forEach(e.graph().dummyChains,(function(n){for(var r=e.node(n),i=r.edgeObj,a=function(e,t,n,r){var i,a,o=[],u=[],l=Math.min(t[n].low,t[r].low),c=Math.max(t[n].lim,t[r].lim);i=n;do{i=e.parent(i),o.push(i)}while(i&&(t[i].low>l||c>t[i].lim));a=i,i=r;for(;(i=e.parent(i))!==a;)u.push(i);return{path:o.concat(u.reverse()),lca:a}}(e,t,i.v,i.w),o=a.path,u=a.lca,l=0,c=o[l],s=!0;n!==i.w;){if(r=e.node(n),s){for(;(c=o[l])!==u&&e.node(c).maxRank{"use strict";var r=n(6857),i=n(8191).Graph,a=n(3988);function o(e,t){var n={};return r.reduce(t,(function(t,i){var a=0,o=0,u=t.length,c=r.last(i);return r.forEach(i,(function(t,s){var f=function(e,t){if(e.node(t).dummy)return r.find(e.predecessors(t),(function(t){return e.node(t).dummy}))}(e,t),h=f?e.node(f).order:u;(f||t===c)&&(r.forEach(i.slice(o,s+1),(function(t){r.forEach(e.predecessors(t),(function(r){var i=e.node(r),o=i.order;!(ou)&&l(n,t,c)}))}))}return r.reduce(t,(function(t,n){var a,o=-1,u=0;return r.forEach(n,(function(r,l){if("border"===e.node(r).dummy){var c=e.predecessors(r);c.length&&(a=e.node(c[0]).order,i(n,u,l,o,a),u=l,o=a)}i(n,u,n.length,a,t.length)})),n})),n}function l(e,t,n){if(t>n){var r=t;t=n,n=r}var i=e[t];i||(e[t]=i={}),i[n]=!0}function c(e,t,n){if(t>n){var i=t;t=n,n=i}return r.has(e[t],n)}function s(e,t,n,i){var a={},o={},u={};return r.forEach(t,(function(e){r.forEach(e,(function(e,t){a[e]=e,o[e]=e,u[e]=t}))})),r.forEach(t,(function(e){var t=-1;r.forEach(e,(function(e){var l=i(e);if(l.length){l=r.sortBy(l,(function(e){return u[e]}));for(var s=(l.length-1)/2,f=Math.floor(s),h=Math.ceil(s);f<=h;++f){var d=l[f];o[e]===e&&t{"use strict";var r=n(6857),i=n(3988),a=n(9741).positionX;e.exports=function(e){(function(e){var t=i.buildLayerMatrix(e),n=e.graph().ranksep,a=0;r.forEach(t,(function(t){var i=r.max(r.map(t,(function(t){return e.node(t).height})));r.forEach(t,(function(t){e.node(t).y=a+i/2})),a+=i+n}))})(e=i.asNonCompoundGraph(e)),r.forEach(a(e),(function(t,n){e.node(n).x=t}))}},8481:(e,t,n)=>{"use strict";var r=n(6857),i=n(8191).Graph,a=n(8073).slack;function o(e,t){return r.forEach(e.nodes(),(function n(i){r.forEach(t.nodeEdges(i),(function(r){var o=r.v,u=i===o?r.w:o;e.hasNode(u)||a(t,r)||(e.setNode(u,{}),e.setEdge(i,u,{}),n(u))}))})),e.nodeCount()}function u(e,t){return r.minBy(t.edges(),(function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return a(t,n)}))}function l(e,t,n){r.forEach(e.nodes(),(function(e){t.node(e).rank+=n}))}e.exports=function(e){var t,n,r=new i({directed:!1}),c=e.nodes()[0],s=e.nodeCount();r.setNode(c,{});for(;o(r,e){"use strict";var r=n(8073).longestPath,i=n(8481),a=n(6860);e.exports=function(e){switch(e.graph().ranker){case"network-simplex":default:u(e);break;case"tight-tree":!function(e){r(e),i(e)}(e);break;case"longest-path":o(e)}};var o=r;function u(e){a(e)}},6860:(e,t,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(e){e=c(e),o(e);var t,n=i(e);for(d(n),f(n,e);t=g(n);)m(n,e,t,v(n,e,t))}function f(e,t){var n=l(e,e.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){!function(e,t,n){var r=e.node(n),i=r.parent;e.edge(n,i).cutvalue=h(e,t,n)}(e,t,n)}))}function h(e,t,n){var i=e.node(n).parent,a=!0,o=t.edge(n,i),u=0;return o||(a=!1,o=t.edge(i,n)),u=o.weight,r.forEach(t.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=t.edge(r).weight;if(u+=f?h:-h,o=n,l=s,e.hasEdge(o,l)){var d=e.edge(n,s).cutvalue;u+=f?-d:d}}})),u}function d(e,t){arguments.length<2&&(t=e.nodes()[0]),p(e,{},1,t)}function p(e,t,n,i,a){var o=n,u=e.node(i);return t[i]=!0,r.forEach(e.neighbors(i),(function(a){r.has(t,a)||(n=p(e,t,n,a,i))})),u.low=o,u.lim=n++,a?u.parent=a:delete u.parent,n}function g(e){return r.find(e.edges(),(function(t){return e.edge(t).cutvalue<0}))}function v(e,t,n){var i=n.v,o=n.w;t.hasEdge(i,o)||(i=n.w,o=n.v);var u=e.node(i),l=e.node(o),c=u,s=!1;u.lim>l.lim&&(c=l,s=!0);var f=r.filter(t.edges(),(function(t){return s===y(e,e.node(t.v),c)&&s!==y(e,e.node(t.w),c)}));return r.minBy(f,(function(e){return a(t,e)}))}function m(e,t,n,i){var a=n.v,o=n.w;e.removeEdge(a,o),e.setEdge(i.v,i.w,{}),d(e),f(e,t),function(e,t){var n=r.find(e.nodes(),(function(e){return!t.node(e).parent})),i=u(e,n);i=i.slice(1),r.forEach(i,(function(n){var r=e.node(n).parent,i=t.edge(n,r),a=!1;i||(i=t.edge(r,n),a=!0),t.node(n).rank=t.node(r).rank+(a?i.minlen:-i.minlen)}))}(e,t)}function y(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}e.exports=s,s.initLowLimValues=d,s.initCutValues=f,s.calcCutValue=h,s.leaveEdge=g,s.enterEdge=v,s.exchangeEdges=m},8073:(e,t,n)=>{"use strict";var r=n(6857);e.exports={longestPath:function(e){var t={};r.forEach(e.sources(),(function n(i){var a=e.node(i);if(r.has(t,i))return a.rank;t[i]=!0;var o=r.minBy(r.map(e.outEdges(i),(function(t){return n(t.w)-e.edge(t).minlen})));return o!==Number.POSITIVE_INFINITY&&null!=o||(o=0),a.rank=o}))},slack:function(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}}},3988:(e,t,n)=>{"use strict";var r=n(6857),i=n(8191).Graph;function a(e,t,n,i){var a;do{a=r.uniqueId(i)}while(e.hasNode(a));return n.dummy=t,e.setNode(a,n),a}function o(e){return r.max(r.map(e.nodes(),(function(t){var n=e.node(t).rank;if(!r.isUndefined(n))return n})))}e.exports={addDummyNode:a,simplify:function(e){var t=(new i).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),t},asNonCompoundGraph:function(e){var t=new i({multigraph:e.isMultigraph()}).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){e.children(n).length||t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){t.setEdge(n,e.edge(n))})),t},successorWeights:function(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.outEdges(t),(function(t){n[t.w]=(n[t.w]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)},predecessorWeights:function(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.inEdges(t),(function(t){n[t.v]=(n[t.v]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)},intersectRect:function(e,t){var n,r,i=e.x,a=e.y,o=t.x-i,u=t.y-a,l=e.width/2,c=e.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(e){var t=r.map(r.range(o(e)+1),(function(){return[]}));return r.forEach(e.nodes(),(function(n){var i=e.node(n),a=i.rank;r.isUndefined(a)||(t[a][i.order]=n)})),t},normalizeRanks:function(e){var t=r.minBy(r.map(e.nodes(),(function(t){return e.node(t).rank})));r.forEach(e.nodes(),(function(n){var i=e.node(n);r.has(i,"rank")&&(i.rank-=t)}))},removeEmptyRanks:function(e){var t=r.minBy(r.map(e.nodes(),(function(t){return e.node(t).rank}))),n=[];r.forEach(e.nodes(),(function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,a=e.graph().nodeRankFactor;r.forEach(n,(function(t,n){r.isUndefined(t)&&n%a!=0?--i:i&&r.forEach(t,(function(t){e.node(t).rank+=i}))}))},addBorderNode:function(e,t,n,r){var i={width:0,height:0};arguments.length>=4&&(i.rank=n,i.order=r);return a(e,"border",i,t)},maxRank:o,partition:function(e,t){var n={lhs:[],rhs:[]};return r.forEach(e,(function(e){t(e)?n.lhs.push(e):n.rhs.push(e)})),n},time:function(e,t){var n=r.now();try{return t()}finally{console.log(e+" time: "+(r.now()-n)+"ms")}},notime:function(e,t){return t()}}},7038:e=>{e.exports="0.8.2"},8362:(e,t,n)=>{var r=n(1166);e.exports={Graph:r.Graph,json:n(7494),alg:n(1667),version:r.version}},3619:(e,t,n)=>{var r=n(117);e.exports=function(e){var t,n={},i=[];function a(i){r.has(n,i)||(n[i]=!0,t.push(i),r.each(e.successors(i),a),r.each(e.predecessors(i),a))}return r.each(e.nodes(),(function(e){t=[],a(e),t.length&&i.push(t)})),i}},9276:(e,t,n)=>{var r=n(117);function i(e,t,n,a,o,u){r.has(a,t)||(a[t]=!0,n||u.push(t),r.each(o(t),(function(t){i(e,t,n,a,o,u)})),n&&u.push(t))}e.exports=function(e,t,n){r.isArray(t)||(t=[t]);var a=(e.isDirected()?e.successors:e.neighbors).bind(e),o=[],u={};return r.each(t,(function(t){if(!e.hasNode(t))throw new Error("Graph does not have node: "+t);i(e,t,"post"===n,u,a,o)})),o}},4919:(e,t,n)=>{var r=n(8905),i=n(117);e.exports=function(e,t,n){return i.transform(e.nodes(),(function(i,a){i[a]=r(e,a,t,n)}),{})}},8905:(e,t,n)=>{var r=n(117),i=n(1737);e.exports=function(e,t,n,r){return function(e,t,n,r){var a,o,u={},l=new i,c=function(e){var t=e.v!==a?e.v:e.w,r=u[t],i=n(e),c=o.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+i);c0&&(a=l.removeMin(),(o=u[a]).distance!==Number.POSITIVE_INFINITY);)r(a).forEach(c);return u}(e,String(t),n||a,r||function(t){return e.outEdges(t)})};var a=r.constant(1)},6678:(e,t,n)=>{var r=n(117),i=n(6291);e.exports=function(e){return r.filter(i(e),(function(t){return t.length>1||1===t.length&&e.hasEdge(t[0],t[0])}))}},3590:(e,t,n)=>{var r=n(117);e.exports=function(e,t,n){return function(e,t,n){var r={},i=e.nodes();return i.forEach((function(e){r[e]={},r[e][e]={distance:0},i.forEach((function(t){e!==t&&(r[e][t]={distance:Number.POSITIVE_INFINITY})})),n(e).forEach((function(n){var i=n.v===e?n.w:n.v,a=t(n);r[e][i]={distance:a,predecessor:e}}))})),i.forEach((function(e){var t=r[e];i.forEach((function(n){var a=r[n];i.forEach((function(n){var r=a[e],i=t[n],o=a[n],u=r.distance+i.distance;u{e.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:(e,t,n)=>{var r=n(9888);e.exports=function(e){try{r(e)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}},1045:(e,t,n)=>{var r=n(9276);e.exports=function(e,t){return r(e,t,"post")}},6016:(e,t,n)=>{var r=n(9276);e.exports=function(e,t){return r(e,t,"pre")}},4423:(e,t,n)=>{var r=n(117),i=n(6454),a=n(1737);e.exports=function(e,t){var n,o=new i,u={},l=new a;function c(e){var r=e.v===n?e.w:e.v,i=l.priority(r);if(void 0!==i){var a=t(e);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: "+e);s=!0}e.nodeEdges(n).forEach(c)}return o}},6291:(e,t,n)=>{var r=n(117);e.exports=function(e){var t=0,n=[],i={},a=[];function o(u){var l=i[u]={onStack:!0,lowlink:t,index:t++};if(n.push(u),e.successors(u).forEach((function(e){r.has(i,e)?i[e].onStack&&(l.lowlink=Math.min(l.lowlink,i[e].index)):(o(e),l.lowlink=Math.min(l.lowlink,i[e].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 e.nodes().forEach((function(e){r.has(i,e)||o(e)})),a}},9888:(e,t,n)=>{var r=n(117);function i(e){var t={},n={},i=[];if(r.each(e.sinks(),(function o(u){if(r.has(n,u))throw new a;r.has(t,u)||(n[u]=!0,t[u]=!0,r.each(e.predecessors(u),o),delete n[u],i.push(u))})),r.size(t)!==e.nodeCount())throw new a;return i}function a(){}e.exports=i,i.CycleException=a},1737:(e,t,n)=>{var r=n(117);function i(){this._arr=[],this._keyIndices={}}e.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(e){return e.key}))},i.prototype.has=function(e){return r.has(this._keyIndices,e)},i.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var i=this._arr,a=i.length;return n[e]=a,i.push({key:e,priority:t}),this._decrease(a),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},i.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},i.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,i=e;n>1].priority{"use strict";var r=n(117);e.exports=u;var i="\0",a="\0",o="";function u(e){this._isDirected=!r.has(e,"directed")||e.directed,this._isMultigraph=!!r.has(e,"multigraph")&&e.multigraph,this._isCompound=!!r.has(e,"compound")&&e.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(e,t){e[t]?e[t]++:e[t]=1}function c(e,t){--e[t]||delete e[t]}function s(e,t,n,a){var u=""+t,l=""+n;if(!e&&u>l){var c=u;u=l,l=c}return u+o+l+o+(r.isUndefined(a)?i:a)}function f(e,t){return s(e,t.v,t.w,t.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(e){return this._label=e,this},u.prototype.graph=function(){return this._label},u.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},u.prototype.nodeCount=function(){return this._nodeCount},u.prototype.nodes=function(){return r.keys(this._nodes)},u.prototype.sources=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._in[t])}))},u.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._out[t])}))},u.prototype.setNodes=function(e,t){var n=arguments,i=this;return r.each(e,(function(e){n.length>1?i.setNode(e,t):i.setNode(e)})),this},u.prototype.setNode=function(e,t){return r.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=a,this._children[e]={},this._children[a][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},u.prototype.node=function(e){return this._nodes[e]},u.prototype.hasNode=function(e){return r.has(this._nodes,e)},u.prototype.removeNode=function(e){var t=this;if(r.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],r.each(this.children(e),(function(e){t.setParent(e)})),delete this._children[e]),r.each(r.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],r.each(r.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},u.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(t))t=a;else{for(var n=t+="";!r.isUndefined(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},u.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},u.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if(t!==a)return t}},u.prototype.children=function(e){if(r.isUndefined(e)&&(e=a),this._isCompound){var t=this._children[e];if(t)return r.keys(t)}else{if(e===a)return this.nodes();if(this.hasNode(e))return[]}},u.prototype.predecessors=function(e){var t=this._preds[e];if(t)return r.keys(t)},u.prototype.successors=function(e){var t=this._sucs[e];if(t)return r.keys(t)},u.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return r.union(t,this.successors(e))},u.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},u.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){e(r)&&t.setNode(r,n)})),r.each(this._edgeObjs,(function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))}));var i={};function a(e){var r=n.parent(e);return void 0===r||t.hasNode(r)?(i[e]=r,r):r in i?i[r]:a(r)}return this._isCompound&&r.each(t.nodes(),(function(e){t.setParent(e,a(e))})),t},u.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},u.prototype.edgeCount=function(){return this._edgeCount},u.prototype.edges=function(){return r.values(this._edgeObjs)},u.prototype.setPath=function(e,t){var n=this,i=arguments;return r.reduce(e,(function(e,r){return i.length>1?n.setEdge(e,r,t):n.setEdge(e,r),r})),this},u.prototype.setEdge=function(){var e,t,n,i,a=!1,o=arguments[0];"object"==typeof o&&null!==o&&"v"in o?(e=o.v,t=o.w,n=o.name,2===arguments.length&&(i=arguments[1],a=!0)):(e=o,t=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),e=""+e,t=""+t,r.isUndefined(n)||(n=""+n);var u=s(this._isDirected,e,t,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(e),this.setNode(t),this._edgeLabels[u]=a?i:this._defaultEdgeLabelFn(e,t,n);var c=function(e,t,n,r){var i=""+t,a=""+n;if(!e&&i>a){var o=i;i=a,a=o}var u={v:i,w:a};r&&(u.name=r);return u}(this._isDirected,e,t,n);return e=c.v,t=c.w,Object.freeze(c),this._edgeObjs[u]=c,l(this._preds[t],e),l(this._sucs[e],t),this._in[t][u]=c,this._out[e][u]=c,this._edgeCount++,this},u.prototype.edge=function(e,t,n){var r=1===arguments.length?f(this._isDirected,arguments[0]):s(this._isDirected,e,t,n);return this._edgeLabels[r]},u.prototype.hasEdge=function(e,t,n){var i=1===arguments.length?f(this._isDirected,arguments[0]):s(this._isDirected,e,t,n);return r.has(this._edgeLabels,i)},u.prototype.removeEdge=function(e,t,n){var r=1===arguments.length?f(this._isDirected,arguments[0]):s(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],c(this._preds[t],e),c(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},u.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var i=r.values(n);return t?r.filter(i,(function(e){return e.v===t})):i}},u.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var i=r.values(n);return t?r.filter(i,(function(e){return e.w===t})):i}},u.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},1166:(e,t,n)=>{e.exports={Graph:n(6454),version:n(4458)}},7494:(e,t,n)=>{var r=n(117),i=n(6454);function a(e){return r.map(e.nodes(),(function(t){var n=e.node(t),i=e.parent(t),a={v:t};return r.isUndefined(n)||(a.value=n),r.isUndefined(i)||(a.parent=i),a}))}function o(e){return r.map(e.edges(),(function(t){var n=e.edge(t),i={v:t.v,w:t.w};return r.isUndefined(t.name)||(i.name=t.name),r.isUndefined(n)||(i.value=n),i}))}e.exports={write:function(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:a(e),edges:o(e)};r.isUndefined(e.graph())||(t.value=r.clone(e.graph()));return t},read:function(e){var t=new i(e.options).setGraph(e.value);return r.each(e.nodes,(function(e){t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)})),r.each(e.edges,(function(e){t.setEdge({v:e.v,w:e.w,name:e.name},e.value)})),t}}},117:(e,t,n)=>{var r;try{r=n(2543)}catch(e){}r||(r=window._),e.exports=r},4458:e=>{e.exports="2.1.5"},2543:function(e,t,n){var r;e=n.nmd(e),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,g=NaN,v=4294967295,m=[["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]",S="[object Map]",T="[object Number]",N="[object Object]",M="[object Promise]",C="[object RegExp]",P="[object Set]",A="[object String]",O="[object Symbol]",R="[object WeakMap]",I="[object ArrayBuffer]",L="[object DataView]",D="[object Float32Array]",j="[object Float64Array]",z="[object Int8Array]",F="[object Int16Array]",U="[object Int32Array]",q="[object Uint8Array]",B="[object Uint8ClampedArray]",H="[object Uint16Array]",W="[object Uint32Array]",$=/\b__p \+= '';/g,Y=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,X=/&(?:amp|lt|gt|quot|#39);/g,Q=/[&<>"']/g,G=RegExp(X.source),K=RegExp(Q.source),Z=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,ae=RegExp(ie.source),oe=/^\s+|\s+$/g,ue=/^\s+/,le=/\s+$/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,fe=/,? & /,he=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ge=/\w*$/,ve=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,_e=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,Ee=/['\n\r\u2028\u2029\\]/g,ke="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Te="\\u2700-\\u27bf",Ne="a-z\\xdf-\\xf6\\xf8-\\xff",Me="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Pe="\\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",Ae="['’]",Oe="["+ke+"]",Re="["+Pe+"]",Ie="["+Se+"]",Le="\\d+",De="["+Te+"]",je="["+Ne+"]",ze="[^"+ke+Pe+Le+Te+Ne+Me+"]",Fe="\\ud83c[\\udffb-\\udfff]",Ue="[^"+ke+"]",qe="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+Me+"]",We="\\u200d",$e="(?:"+je+"|"+ze+")",Ye="(?:"+He+"|"+ze+")",Ve="(?:['’](?:d|ll|m|re|s|t|ve))?",Xe="(?:['’](?:D|LL|M|RE|S|T|VE))?",Qe="(?:"+Ie+"|"+Fe+")"+"?",Ge="["+Ce+"]?",Ke=Ge+Qe+("(?:"+We+"(?:"+[Ue,qe,Be].join("|")+")"+Ge+Qe+")*"),Ze="(?:"+[De,qe,Be].join("|")+")"+Ke,Je="(?:"+[Ue+Ie+"?",Ie,qe,Be,Oe].join("|")+")",et=RegExp(Ae,"g"),tt=RegExp(Ie,"g"),nt=RegExp(Fe+"(?="+Fe+")|"+Je+Ke,"g"),rt=RegExp([He+"?"+je+"+"+Ve+"(?="+[Re,He,"$"].join("|")+")",Ye+"+"+Xe+"(?="+[Re,He+$e,"$"].join("|")+")",He+"?"+$e+"+"+Ve,He+"+"+Xe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Le,Ze].join("|"),"g"),it=RegExp("["+We+ke+Se+Ce+"]"),at=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["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"],ut=-1,lt={};lt[D]=lt[j]=lt[z]=lt[F]=lt[U]=lt[q]=lt[B]=lt[H]=lt[W]=!0,lt[y]=lt[b]=lt[I]=lt[_]=lt[L]=lt[w]=lt[x]=lt[E]=lt[S]=lt[T]=lt[N]=lt[C]=lt[P]=lt[A]=lt[R]=!1;var ct={};ct[y]=ct[b]=ct[I]=ct[L]=ct[_]=ct[w]=ct[D]=ct[j]=ct[z]=ct[F]=ct[U]=ct[S]=ct[T]=ct[N]=ct[C]=ct[P]=ct[A]=ct[O]=ct[q]=ct[B]=ct[H]=ct[W]=!0,ct[x]=ct[E]=ct[R]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ft=parseFloat,ht=parseInt,dt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,pt="object"==typeof self&&self&&self.Object===Object&&self,gt=dt||pt||Function("return this")(),vt=t&&!t.nodeType&&t,mt=vt&&e&&!e.nodeType&&e,yt=mt&&mt.exports===vt,bt=yt&&dt.process,_t=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(e){}}(),wt=_t&&_t.isArrayBuffer,xt=_t&&_t.isDate,Et=_t&&_t.isMap,kt=_t&&_t.isRegExp,St=_t&&_t.isSet,Tt=_t&&_t.isTypedArray;function Nt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Mt(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i-1}function It(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function nn(e,t){for(var n=e.length;n--&&Ht(t,e[n],0)>-1;);return n}var rn=Xt({À:"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=Xt({"&":"&","<":"<",">":">",'"':""","'":"'"});function on(e){return"\\"+st[e]}function un(e){return it.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,i=0,a=[];++n",""":'"',"'":"'"});var vn=function e(t){var n,r=(t=null==t?gt:vn.defaults(gt.Object(),t,vn.pick(gt,ot))).Array,ke=t.Date,Se=t.Error,Te=t.Function,Ne=t.Math,Me=t.Object,Ce=t.RegExp,Pe=t.String,Ae=t.TypeError,Oe=r.prototype,Re=Te.prototype,Ie=Me.prototype,Le=t["__core-js_shared__"],De=Re.toString,je=Ie.hasOwnProperty,ze=0,Fe=(n=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ue=Ie.toString,qe=De.call(Me),Be=gt._,He=Ce("^"+De.call(je).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),We=yt?t.Buffer:i,$e=t.Symbol,Ye=t.Uint8Array,Ve=We?We.allocUnsafe:i,Xe=cn(Me.getPrototypeOf,Me),Qe=Me.create,Ge=Ie.propertyIsEnumerable,Ke=Oe.splice,Ze=$e?$e.isConcatSpreadable:i,Je=$e?$e.iterator:i,nt=$e?$e.toStringTag:i,it=function(){try{var e=fa(Me,"defineProperty");return e({},"",{}),e}catch(e){}}(),st=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,dt=ke&&ke.now!==gt.Date.now&&ke.now,pt=t.setTimeout!==gt.setTimeout&&t.setTimeout,vt=Ne.ceil,mt=Ne.floor,bt=Me.getOwnPropertySymbols,_t=We?We.isBuffer:i,Ut=t.isFinite,Xt=Oe.join,mn=cn(Me.keys,Me),yn=Ne.max,bn=Ne.min,_n=ke.now,wn=t.parseInt,xn=Ne.random,En=Oe.reverse,kn=fa(t,"DataView"),Sn=fa(t,"Map"),Tn=fa(t,"Promise"),Nn=fa(t,"Set"),Mn=fa(t,"WeakMap"),Cn=fa(Me,"create"),Pn=Mn&&new Mn,An={},On=ja(kn),Rn=ja(Sn),In=ja(Tn),Ln=ja(Nn),Dn=ja(Mn),jn=$e?$e.prototype:i,zn=jn?jn.valueOf:i,Fn=jn?jn.toString:i;function Un(e){if(tu(e)&&!Wo(e)&&!(e instanceof Wn)){if(e instanceof Hn)return e;if(je.call(e,"__wrapped__"))return za(e)}return new Hn(e)}var qn=function(){function e(){}return function(t){if(!eu(t))return{};if(Qe)return Qe(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Bn(){}function Hn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function lr(e,t,n,r,a,o){var u,l=1&t,c=2&t,s=4&t;if(n&&(u=a?n(e,r,a,o):n(e)),u!==i)return u;if(!eu(e))return e;var f=Wo(e);if(f){if(u=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&je.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Ci(e,u)}else{var h=pa(e),d=h==E||h==k;if(Xo(e))return Ei(e,l);if(h==N||h==y||d&&!a){if(u=c||d?{}:va(e),!l)return c?function(e,t){return Pi(e,da(e),t)}(e,function(e,t){return e&&Pi(t,Ou(t),e)}(u,e)):function(e,t){return Pi(e,ha(e),t)}(e,ir(u,e))}else{if(!ct[h])return a?e:{};u=function(e,t,n){var r=e.constructor;switch(t){case I:return ki(e);case _:case w:return new r(+e);case L:return function(e,t){var n=t?ki(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case D:case j:case z:case F:case U:case q:case B:case H:case W:return Si(e,n);case S:return new r;case T:case A:return new r(e);case C:return function(e){var t=new e.constructor(e.source,ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case P:return new r;case O:return i=e,zn?Me(zn.call(i)):{}}var i}(e,h,l)}}o||(o=new Qn);var p=o.get(e);if(p)return p;o.set(e,u),ou(e)?e.forEach((function(r){u.add(lr(r,t,n,r,e,o))})):nu(e)&&e.forEach((function(r,i){u.set(i,lr(r,t,n,i,e,o))}));var g=f?i:(s?c?ia:ra:c?Ou:Au)(e);return Ct(g||e,(function(r,i){g&&(r=e[i=r]),tr(u,i,lr(r,t,n,i,e,o))})),u}function cr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Me(e);r--;){var a=n[r],o=t[a],u=e[a];if(u===i&&!(a in e)||!o(u))return!1}return!0}function sr(e,t,n){if("function"!=typeof e)throw new Ae(a);return Pa((function(){e.apply(i,n)}),t)}function fr(e,t,n,r){var i=-1,a=Rt,o=!0,u=e.length,l=[],c=t.length;if(!u)return l;n&&(t=Lt(t,Zt(n))),r?(a=It,o=!1):t.length>=200&&(a=en,o=!1,t=new Xn(t));e:for(;++i-1},Yn.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Vn.prototype.clear=function(){this.size=0,this.__data__={hash:new $n,map:new(Sn||Yn),string:new $n}},Vn.prototype.delete=function(e){var t=ca(this,e).delete(e);return this.size-=t?1:0,t},Vn.prototype.get=function(e){return ca(this,e).get(e)},Vn.prototype.has=function(e){return ca(this,e).has(e)},Vn.prototype.set=function(e,t){var n=ca(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Xn.prototype.add=Xn.prototype.push=function(e){return this.__data__.set(e,o),this},Xn.prototype.has=function(e){return this.__data__.has(e)},Qn.prototype.clear=function(){this.__data__=new Yn,this.size=0},Qn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Qn.prototype.get=function(e){return this.__data__.get(e)},Qn.prototype.has=function(e){return this.__data__.has(e)},Qn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Yn){var r=n.__data__;if(!Sn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Vn(r)}return n.set(e,t),this.size=n.size,this};var hr=Ri(_r),dr=Ri(wr,!0);function pr(e,t){var n=!0;return hr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function gr(e,t,n){for(var r=-1,a=e.length;++r0&&n(u)?t>1?mr(u,t-1,n,r,i):Dt(i,u):r||(i[i.length]=u)}return i}var yr=Ii(),br=Ii(!0);function _r(e,t){return e&&yr(e,t,Au)}function wr(e,t){return e&&br(e,t,Au)}function xr(e,t){return Ot(t,(function(t){return Ko(e[t])}))}function Er(e,t){for(var n=0,r=(t=bi(t,e)).length;null!=e&&nt}function Nr(e,t){return null!=e&&je.call(e,t)}function Mr(e,t){return null!=e&&t in Me(e)}function Cr(e,t,n){for(var a=n?It:Rt,o=e[0].length,u=e.length,l=u,c=r(u),s=1/0,f=[];l--;){var h=e[l];l&&t&&(h=Lt(h,Zt(t))),s=bn(h.length,s),c[l]=!n&&(t||o>=120&&h.length>=120)?new Xn(l&&h):i}h=e[0];var d=-1,p=c[0];e:for(;++d=u?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function $r(e,t,n){for(var r=-1,i=t.length,a={};++r-1;)u!==e&&Ke.call(u,l,1),Ke.call(e,l,1);return e}function Vr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;ya(i)?Ke.call(e,i,1):fi(e,i)}}return e}function Xr(e,t){return e+mt(xn()*(t-e+1))}function Qr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Gr(e,t){return Aa(Ta(e,t,rl),e+"")}function Kr(e){return Kn(Uu(e))}function Zr(e,t){var n=Uu(e);return Ia(n,ur(t,0,n.length))}function Jr(e,t,n,r){if(!eu(e))return e;for(var a=-1,o=(t=bi(t,e)).length,u=o-1,l=e;null!=l&&++aa?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=r(a);++i>>1,o=e[a];null!==o&&!lu(o)&&(n?o<=t:o=200){var c=t?null:Qi(e);if(c)return fn(c);o=!1,i=en,l=new Xn}else l=t?[]:u;e:for(;++r=r?e:ri(e,t,n)}var xi=st||function(e){return gt.clearTimeout(e)};function Ei(e,t){if(t)return e.slice();var n=e.length,r=Ve?Ve(n):new e.constructor(n);return e.copy(r),r}function ki(e){var t=new e.constructor(e.byteLength);return new Ye(t).set(new Ye(e)),t}function Si(e,t){var n=t?ki(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ti(e,t){if(e!==t){var n=e!==i,r=null===e,a=e==e,o=lu(e),u=t!==i,l=null===t,c=t==t,s=lu(t);if(!l&&!s&&!o&&e>t||o&&u&&c&&!l&&!s||r&&u&&c||!n&&c||!a)return 1;if(!r&&!o&&!s&&e1?n[a-1]:i,u=a>2?n[2]:i;for(o=e.length>3&&"function"==typeof o?(a--,o):i,u&&ba(n[0],n[1],u)&&(o=a<3?i:o,a=1),t=Me(t);++r-1?a[o?t[u]:u]:i}}function Fi(e){return na((function(t){var n=t.length,r=n,o=Hn.prototype.thru;for(e&&t.reverse();r--;){var u=t[r];if("function"!=typeof u)throw new Ae(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(e);if(s&&o.get(t))return s==t;var f=-1,h=!0,d=2&n?new Xn:i;for(o.set(e,t),o.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ct(m,(function(n){var r="_."+n[0];t&n[1]&&!Rt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(fe):[]}(r),n)))}function Ra(e){var t=0,n=0;return function(){var r=_n(),a=16-(r-n);if(n=r,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Ia(e,t){var n=-1,r=e.length,a=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,io(e,n)}));function fo(e){var t=Un(e);return t.__chain__=!0,t}function ho(e,t){return t(e)}var po=na((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,a=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Wn&&ya(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ho,args:[a],thisArg:i}),new Hn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(a)}));var go=Ai((function(e,t,n){je.call(e,n)?++e[n]:ar(e,n,1)}));var vo=zi(Ba),mo=zi(Ha);function yo(e,t){return(Wo(e)?Ct:hr)(e,la(t,3))}function bo(e,t){return(Wo(e)?Pt:dr)(e,la(t,3))}var _o=Ai((function(e,t,n){je.call(e,n)?e[n].push(t):ar(e,n,[t])}));var wo=Gr((function(e,t,n){var i=-1,a="function"==typeof t,o=Yo(e)?r(e.length):[];return hr(e,(function(e){o[++i]=a?Nt(t,e,n):Pr(e,t,n)})),o})),xo=Ai((function(e,t,n){ar(e,n,t)}));function Eo(e,t){return(Wo(e)?Lt:Fr)(e,la(t,3))}var ko=Ai((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var So=Gr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ba(e,t[0],t[1])?t=[]:n>2&&ba(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,mr(t,1),[])})),To=dt||function(){return gt.Date.now()};function No(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ki(e,f,i,i,i,i,t)}function Mo(e,t){var n;if("function"!=typeof t)throw new Ae(a);return e=pu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Co=Gr((function(e,t,n){var r=1;if(n.length){var i=sn(n,ua(Co));r|=c}return Ki(e,r,t,n,i)})),Po=Gr((function(e,t,n){var r=3;if(n.length){var i=sn(n,ua(Po));r|=c}return Ki(t,r,e,n,i)}));function Ao(e,t,n){var r,o,u,l,c,s,f=0,h=!1,d=!1,p=!0;if("function"!=typeof e)throw new Ae(a);function g(t){var n=r,a=o;return r=o=i,f=t,l=e.apply(a,n)}function v(e){var n=e-s;return s===i||n>=t||n<0||d&&e-f>=u}function m(){var e=To();if(v(e))return y(e);c=Pa(m,function(e){var n=t-(e-s);return d?bn(n,u-(e-f)):n}(e))}function y(e){return c=i,p&&r?g(e):(r=o=i,l)}function b(){var e=To(),n=v(e);if(r=arguments,o=this,s=e,n){if(c===i)return function(e){return f=e,c=Pa(m,t),h?g(e):l}(s);if(d)return xi(c),c=Pa(m,t),g(s)}return c===i&&(c=Pa(m,t)),l}return t=vu(t)||0,eu(n)&&(h=!!n.leading,u=(d="maxWait"in n)?yn(vu(n.maxWait)||0,t):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(To())},b}var Oo=Gr((function(e,t){return sr(e,1,t)})),Ro=Gr((function(e,t,n){return sr(e,vu(t)||0,n)}));function Io(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ae(a);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Io.Cache||Vn),n}function Lo(e){if("function"!=typeof e)throw new Ae(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Io.Cache=Vn;var Do=_i((function(e,t){var n=(t=1==t.length&&Wo(t[0])?Lt(t[0],Zt(la())):Lt(mr(t,1),Zt(la()))).length;return Gr((function(r){for(var i=-1,a=bn(r.length,n);++i=t})),Ho=Ar(function(){return arguments}())?Ar:function(e){return tu(e)&&je.call(e,"callee")&&!Ge.call(e,"callee")},Wo=r.isArray,$o=wt?Zt(wt):function(e){return tu(e)&&Sr(e)==I};function Yo(e){return null!=e&&Jo(e.length)&&!Ko(e)}function Vo(e){return tu(e)&&Yo(e)}var Xo=_t||vl,Qo=xt?Zt(xt):function(e){return tu(e)&&Sr(e)==w};function Go(e){if(!tu(e))return!1;var t=Sr(e);return t==x||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!iu(e)}function Ko(e){if(!eu(e))return!1;var t=Sr(e);return t==E||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Zo(e){return"number"==typeof e&&e==pu(e)}function Jo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function eu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function tu(e){return null!=e&&"object"==typeof e}var nu=Et?Zt(Et):function(e){return tu(e)&&pa(e)==S};function ru(e){return"number"==typeof e||tu(e)&&Sr(e)==T}function iu(e){if(!tu(e)||Sr(e)!=N)return!1;var t=Xe(e);if(null===t)return!0;var n=je.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==qe}var au=kt?Zt(kt):function(e){return tu(e)&&Sr(e)==C};var ou=St?Zt(St):function(e){return tu(e)&&pa(e)==P};function uu(e){return"string"==typeof e||!Wo(e)&&tu(e)&&Sr(e)==A}function lu(e){return"symbol"==typeof e||tu(e)&&Sr(e)==O}var cu=Tt?Zt(Tt):function(e){return tu(e)&&Jo(e.length)&&!!lt[Sr(e)]};var su=Yi(zr),fu=Yi((function(e,t){return e<=t}));function hu(e){if(!e)return[];if(Yo(e))return uu(e)?pn(e):Ci(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=pa(e);return(t==S?ln:t==P?fn:Uu)(e)}function du(e){return e?(e=vu(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function pu(e){var t=du(e),n=t%1;return t==t?n?t-n:t:0}function gu(e){return e?ur(pu(e),0,v):0}function vu(e){if("number"==typeof e)return e;if(lu(e))return g;if(eu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=eu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(oe,"");var n=me.test(e);return n||be.test(e)?ht(e.slice(2),n?2:8):ve.test(e)?g:+e}function mu(e){return Pi(e,Ou(e))}function yu(e){return null==e?"":ci(e)}var bu=Oi((function(e,t){if(Ea(t)||Yo(t))Pi(t,Au(t),e);else for(var n in t)je.call(t,n)&&tr(e,n,t[n])})),_u=Oi((function(e,t){Pi(t,Ou(t),e)})),wu=Oi((function(e,t,n,r){Pi(t,Ou(t),e,r)})),xu=Oi((function(e,t,n,r){Pi(t,Au(t),e,r)})),Eu=na(or);var ku=Gr((function(e,t){e=Me(e);var n=-1,r=t.length,a=r>2?t[2]:i;for(a&&ba(t[0],t[1],a)&&(r=1);++n1),t})),Pi(e,ia(e),n),r&&(n=lr(n,7,ea));for(var i=t.length;i--;)fi(n,t[i]);return n}));var Du=na((function(e,t){return null==e?{}:function(e,t){return $r(e,t,(function(t,n){return Nu(e,n)}))}(e,t)}));function ju(e,t){if(null==e)return{};var n=Lt(ia(e),(function(e){return[e]}));return t=la(t),$r(e,n,(function(e,n){return t(e,n[0])}))}var zu=Gi(Au),Fu=Gi(Ou);function Uu(e){return null==e?[]:Jt(e,Au(e))}var qu=Di((function(e,t,n){return t=t.toLowerCase(),e+(n?Bu(t):t)}));function Bu(e){return Gu(yu(e).toLowerCase())}function Hu(e){return(e=yu(e))&&e.replace(we,rn).replace(tt,"")}var Wu=Di((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),$u=Di((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Yu=Li("toLowerCase");var Vu=Di((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Xu=Di((function(e,t,n){return e+(n?" ":"")+Gu(t)}));var Qu=Di((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Gu=Li("toUpperCase");function Ku(e,t,n){return e=yu(e),(t=n?i:t)===i?function(e){return at.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(he)||[]}(e):e.match(t)||[]}var Zu=Gr((function(e,t){try{return Nt(e,i,t)}catch(e){return Go(e)?e:new Se(e)}})),Ju=na((function(e,t){return Ct(t,(function(t){t=Da(t),ar(e,t,Co(e[t],e))})),e}));function el(e){return function(){return e}}var tl=Fi(),nl=Fi(!0);function rl(e){return e}function il(e){return Lr("function"==typeof e?e:lr(e,1))}var al=Gr((function(e,t){return function(n){return Pr(n,e,t)}})),ol=Gr((function(e,t){return function(n){return Pr(e,n,t)}}));function ul(e,t,n){var r=Au(t),i=xr(t,r);null!=n||eu(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=xr(t,Au(t)));var a=!(eu(n)&&"chain"in n&&!n.chain),o=Ko(e);return Ct(i,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Ci(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Dt([this.value()],arguments))})})),e}function ll(){}var cl=Hi(Lt),sl=Hi(At),fl=Hi(Ft);function hl(e){return _a(e)?Vt(Da(e)):function(e){return function(t){return Er(t,e)}}(e)}var dl=$i(),pl=$i(!0);function gl(){return[]}function vl(){return!1}var ml=Bi((function(e,t){return e+t}),0),yl=Xi("ceil"),bl=Bi((function(e,t){return e/t}),1),_l=Xi("floor");var wl,xl=Bi((function(e,t){return e*t}),1),El=Xi("round"),kl=Bi((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new Ae(a);return e=pu(e),function(){if(--e<1)return t.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 e=arguments[0];return Wo(e)?e:[e]},Un.chain=fo,Un.chunk=function(e,t,n){t=(n?ba(e,t,n):t===i)?1:yn(pu(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var o=0,u=0,l=r(vt(a/t));oa?0:a+n),(r=r===i||r>a?a:pu(r))<0&&(r+=a),r=n>r?0:gu(r);n>>0)?(e=yu(e))&&("string"==typeof t||null!=t&&!au(t))&&!(t=ci(t))&&un(e)?wi(pn(e),0,n):e.split(t,n):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new Ae(a);return t=null==t?0:yn(pu(t),0),Gr((function(n){var r=n[t],i=wi(n,0,t);return r&&Dt(i,r),Nt(e,this,i)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?ri(e,1,t):[]},Un.take=function(e,t,n){return e&&e.length?ri(e,0,(t=n||t===i?1:pu(t))<0?0:t):[]},Un.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ri(e,(t=r-(t=n||t===i?1:pu(t)))<0?0:t,r):[]},Un.takeRightWhile=function(e,t){return e&&e.length?di(e,la(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?di(e,la(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Ae(a);return eu(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ao(e,t,{leading:r,maxWait:t,trailing:i})},Un.thru=ho,Un.toArray=hu,Un.toPairs=zu,Un.toPairsIn=Fu,Un.toPath=function(e){return Wo(e)?Lt(e,Da):lu(e)?[e]:Ci(La(yu(e)))},Un.toPlainObject=mu,Un.transform=function(e,t,n){var r=Wo(e),i=r||Xo(e)||cu(e);if(t=la(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:eu(e)&&Ko(a)?qn(Xe(e)):{}}return(i?Ct:_r)(e,(function(e,r,i){return t(n,e,r,i)})),n},Un.unary=function(e){return No(e,1)},Un.union=eo,Un.unionBy=to,Un.unionWith=no,Un.uniq=function(e){return e&&e.length?si(e):[]},Un.uniqBy=function(e,t){return e&&e.length?si(e,la(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?si(e,i,t):[]},Un.unset=function(e,t){return null==e||fi(e,t)},Un.unzip=ro,Un.unzipWith=io,Un.update=function(e,t,n){return null==e?e:hi(e,t,yi(n))},Un.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:hi(e,t,yi(n),r)},Un.values=Uu,Un.valuesIn=function(e){return null==e?[]:Jt(e,Ou(e))},Un.without=ao,Un.words=Ku,Un.wrap=function(e,t){return jo(yi(t),e)},Un.xor=oo,Un.xorBy=uo,Un.xorWith=lo,Un.zip=co,Un.zipObject=function(e,t){return vi(e||[],t||[],tr)},Un.zipObjectDeep=function(e,t){return vi(e||[],t||[],Jr)},Un.zipWith=so,Un.entries=zu,Un.entriesIn=Fu,Un.extend=_u,Un.extendWith=wu,ul(Un,Un),Un.add=ml,Un.attempt=Zu,Un.camelCase=qu,Un.capitalize=Bu,Un.ceil=yl,Un.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=vu(n))==n?n:0),t!==i&&(t=(t=vu(t))==t?t:0),ur(vu(e),t,n)},Un.clone=function(e){return lr(e,4)},Un.cloneDeep=function(e){return lr(e,5)},Un.cloneDeepWith=function(e,t){return lr(e,5,t="function"==typeof t?t:i)},Un.cloneWith=function(e,t){return lr(e,4,t="function"==typeof t?t:i)},Un.conformsTo=function(e,t){return null==t||cr(e,t,Au(t))},Un.deburr=Hu,Un.defaultTo=function(e,t){return null==e||e!=e?t:e},Un.divide=bl,Un.endsWith=function(e,t,n){e=yu(e),t=ci(t);var r=e.length,a=n=n===i?r:ur(pu(n),0,r);return(n-=t.length)>=0&&e.slice(n,a)==t},Un.eq=Uo,Un.escape=function(e){return(e=yu(e))&&K.test(e)?e.replace(Q,an):e},Un.escapeRegExp=function(e){return(e=yu(e))&&ae.test(e)?e.replace(ie,"\\$&"):e},Un.every=function(e,t,n){var r=Wo(e)?At:pr;return n&&ba(e,t,n)&&(t=i),r(e,la(t,3))},Un.find=vo,Un.findIndex=Ba,Un.findKey=function(e,t){return qt(e,la(t,3),_r)},Un.findLast=mo,Un.findLastIndex=Ha,Un.findLastKey=function(e,t){return qt(e,la(t,3),wr)},Un.floor=_l,Un.forEach=yo,Un.forEachRight=bo,Un.forIn=function(e,t){return null==e?e:yr(e,la(t,3),Ou)},Un.forInRight=function(e,t){return null==e?e:br(e,la(t,3),Ou)},Un.forOwn=function(e,t){return e&&_r(e,la(t,3))},Un.forOwnRight=function(e,t){return e&&wr(e,la(t,3))},Un.get=Tu,Un.gt=qo,Un.gte=Bo,Un.has=function(e,t){return null!=e&&ga(e,t,Nr)},Un.hasIn=Nu,Un.head=$a,Un.identity=rl,Un.includes=function(e,t,n,r){e=Yo(e)?e:Uu(e),n=n&&!r?pu(n):0;var i=e.length;return n<0&&(n=yn(i+n,0)),uu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Ht(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:pu(n);return i<0&&(i=yn(r+i,0)),Ht(e,t,i)},Un.inRange=function(e,t,n){return t=du(t),n===i?(n=t,t=0):n=du(n),function(e,t,n){return e>=bn(t,n)&&e=-9007199254740991&&e<=p},Un.isSet=ou,Un.isString=uu,Un.isSymbol=lu,Un.isTypedArray=cu,Un.isUndefined=function(e){return e===i},Un.isWeakMap=function(e){return tu(e)&&pa(e)==R},Un.isWeakSet=function(e){return tu(e)&&"[object WeakSet]"==Sr(e)},Un.join=function(e,t){return null==e?"":Xt.call(e,t)},Un.kebabCase=Wu,Un.last=Qa,Un.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r;return n!==i&&(a=(a=pu(n))<0?yn(r+a,0):bn(a,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):Bt(e,$t,a,!0)},Un.lowerCase=$u,Un.lowerFirst=Yu,Un.lt=su,Un.lte=fu,Un.max=function(e){return e&&e.length?gr(e,rl,Tr):i},Un.maxBy=function(e,t){return e&&e.length?gr(e,la(t,2),Tr):i},Un.mean=function(e){return Yt(e,rl)},Un.meanBy=function(e,t){return Yt(e,la(t,2))},Un.min=function(e){return e&&e.length?gr(e,rl,zr):i},Un.minBy=function(e,t){return e&&e.length?gr(e,la(t,2),zr):i},Un.stubArray=gl,Un.stubFalse=vl,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=xl,Un.nth=function(e,t){return e&&e.length?Hr(e,pu(t)):i},Un.noConflict=function(){return gt._===this&&(gt._=Be),this},Un.noop=ll,Un.now=To,Un.pad=function(e,t,n){e=yu(e);var r=(t=pu(t))?dn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Wi(mt(i),n)+e+Wi(vt(i),n)},Un.padEnd=function(e,t,n){e=yu(e);var r=(t=pu(t))?dn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var a=xn();return bn(e+a*(t-e+ft("1e-"+((a+"").length-1))),t)}return Xr(e,t)},Un.reduce=function(e,t,n){var r=Wo(e)?jt:Qt,i=arguments.length<3;return r(e,la(t,4),n,i,hr)},Un.reduceRight=function(e,t,n){var r=Wo(e)?zt:Qt,i=arguments.length<3;return r(e,la(t,4),n,i,dr)},Un.repeat=function(e,t,n){return t=(n?ba(e,t,n):t===i)?1:pu(t),Qr(yu(e),t)},Un.replace=function(){var e=arguments,t=yu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var r=-1,a=(t=bi(t,e)).length;for(a||(a=1,e=i);++rp)return[];var n=v,r=bn(e,v);t=la(t),e-=v;for(var i=Kt(r,t);++n=o)return e;var l=n-dn(r);if(l<1)return r;var c=u?wi(u,0,l).join(""):e.slice(0,l);if(a===i)return c+r;if(u&&(l+=c.length-l),au(a)){if(e.slice(l).search(a)){var s,f=c;for(a.global||(a=Ce(a.source,yu(ge.exec(a))+"g")),a.lastIndex=0;s=a.exec(f);)var h=s.index;c=c.slice(0,h===i?l:h)}}else if(e.indexOf(ci(a),l)!=l){var d=c.lastIndexOf(a);d>-1&&(c=c.slice(0,d))}return c+r},Un.unescape=function(e){return(e=yu(e))&&G.test(e)?e.replace(X,gn):e},Un.uniqueId=function(e){var t=++ze;return yu(e)+t},Un.upperCase=Qu,Un.upperFirst=Gu,Un.each=yo,Un.eachRight=bo,Un.first=$a,ul(Un,(wl={},_r(Un,(function(e,t){je.call(Un.prototype,t)||(wl[t]=e)})),wl),{chain:!1}),Un.VERSION="4.17.14",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),Ct(["drop","take"],(function(e,t){Wn.prototype[e]=function(n){n=n===i?1:yn(pu(n),0);var r=this.__filtered__&&!t?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=bn(n,r.__takeCount__):r.__views__.push({size:bn(n,v),type:e+(r.__dir__<0?"Right":"")}),r},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:la(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ct(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(rl)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Gr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return Pr(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(Lo(la(e)))},Wn.prototype.slice=function(e,t){e=pu(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Wn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=pu(t))<0?n.dropRight(-t):n.take(t-e)),n)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(v)},_r(Wn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=Un[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);a&&(Un.prototype[t]=function(){var t=this.__wrapped__,u=r?[1]:arguments,l=t instanceof Wn,c=u[0],s=l||Wo(t),f=function(e){var t=a.apply(Un,Dt([e],u));return r&&h?t[0]:t};s&&n&&"function"==typeof c&&1!=c.length&&(l=s=!1);var h=this.__chain__,d=!!this.__actions__.length,p=o&&!h,g=l&&!d;if(!o&&s){t=g?t:new Wn(this);var v=e.apply(t,u);return v.__actions__.push({func:ho,args:[f],thisArg:i}),new Hn(v,h)}return p&&g?e.apply(this,u):(v=this.thru(f),p?r?v.value()[0]:v.value():v)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Oe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Wo(i)?i:[],e)}return this[n]((function(n){return t.apply(Wo(n)?n:[],e)}))}})),_r(Wn.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";je.call(An,r)||(An[r]=[]),An[r].push({name:t,func:n})}})),An[Ui(i,2).name]=[{name:"wrapper",func:i}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=Ci(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ci(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ci(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Wo(e),r=t<0,i=n?e.length:0,a=function(e,t,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,n=this;n instanceof Bn;){var r=za(n);r.__index__=0,r.__values__=i,t?a.__wrapped__=r:t=r;var a=r;n=n.__wrapped__}return a.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:ho,args:[Ja],thisArg:i}),new Hn(t,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,Je&&(Un.prototype[Je]=function(){return this}),Un}();gt._=vn,(r=function(){return vn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},5228:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,o,u=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l{"use strict";var r=n(6540),i=n(5228),a=n(9982);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!H.call($,e)||!H.call(W,e)&&(B.test(e)?$[e]=!0:(W[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}G.hasOwnProperty("ReactCurrentDispatcher")||(G.ReactCurrentDispatcher={current:null}),G.hasOwnProperty("ReactCurrentBatchConfig")||(G.ReactCurrentBatchConfig={suspense:null});var Z=/^(.*)[\\\/]/,J="function"==typeof Symbol&&Symbol.for,ee=J?Symbol.for("react.element"):60103,te=J?Symbol.for("react.portal"):60106,ne=J?Symbol.for("react.fragment"):60107,re=J?Symbol.for("react.strict_mode"):60108,ie=J?Symbol.for("react.profiler"):60114,ae=J?Symbol.for("react.provider"):60109,oe=J?Symbol.for("react.context"):60110,ue=J?Symbol.for("react.concurrent_mode"):60111,le=J?Symbol.for("react.forward_ref"):60112,ce=J?Symbol.for("react.suspense"):60113,se=J?Symbol.for("react.suspense_list"):60120,fe=J?Symbol.for("react.memo"):60115,he=J?Symbol.for("react.lazy"):60116,de=J?Symbol.for("react.block"):60121,pe="function"==typeof Symbol&&Symbol.iterator;function ge(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=pe&&e[pe]||e["@@iterator"])?e:null}function ve(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case ie:return"Profiler";case re:return"StrictMode";case ce:return"Suspense";case se:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case oe:return"Context.Consumer";case ae:return"Context.Provider";case le:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case fe:return ve(e.type);case de:return ve(e.render);case he:if(e=1===e._status?e._result:null)return ve(e)}return null}function me(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,a=ve(e.type);n=null,r&&(n=ve(r.type)),r=a,a="",i?a=" (at "+i.fileName.replace(Z,"")+":"+i.lineNumber+")":n&&(a=" (created by "+n+")"),n="\n in "+(r||"Unknown")+a}t+=n,e=e.return}while(e);return t}function ye(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function _e(e){e._valueTracker||(e._valueTracker=function(e){var t=be(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function we(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=be(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function xe(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ye(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ke(e,t){null!=(t=t.checked)&&K(e,"checked",t,!1)}function Se(e,t){ke(e,t);var n=ye(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Ne(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ne(e,t.type,ye(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Te(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Ne(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Me(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Ce(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ye(n)}}function Oe(e,t){var n=ye(t.value),r=ye(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Re(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Ie="http://www.w3.org/1999/xhtml",Le="http://www.w3.org/2000/svg";function De(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function je(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?De(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ze,Fe,Ue=(Fe=function(e,t){if(e.namespaceURI!==Le||"innerHTML"in e)e.innerHTML=t;else{for((ze=ze||document.createElement("div")).innerHTML="",t=ze.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return Fe(e,t)}))}:Fe);function qe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Be(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var He={animationend:Be("Animation","AnimationEnd"),animationiteration:Be("Animation","AnimationIteration"),animationstart:Be("Animation","AnimationStart"),transitionend:Be("Transition","TransitionEnd")},We={},$e={};function Ye(e){if(We[e])return We[e];if(!He[e])return e;var t,n=He[e];for(t in n)if(n.hasOwnProperty(t)&&t in $e)return We[e]=n[t];return e}N&&($e=document.createElement("div").style,"AnimationEvent"in window||(delete He.animationend.animation,delete He.animationiteration.animation,delete He.animationstart.animation),"TransitionEvent"in window||delete He.transitionend.transition);var Ve=Ye("animationend"),Xe=Ye("animationiteration"),Qe=Ye("animationstart"),Ge=Ye("transitionend"),Ke="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ze=new("function"==typeof WeakMap?WeakMap:Map);function Je(e){var t=Ze.get(e);return void 0===t&&(t=new Map,Ze.set(e,t)),t}function et(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function tt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function nt(e){if(et(e)!==e)throw Error(o(188))}function rt(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=et(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return nt(i),e;if(a===r)return nt(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var u=!1,l=i.child;l;){if(l===n){u=!0,n=i,r=a;break}if(l===r){u=!0,r=i,n=a;break}l=l.sibling}if(!u){for(l=a.child;l;){if(l===n){u=!0,n=a,r=i;break}if(l===r){u=!0,r=a,n=i;break}l=l.sibling}if(!u)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function it(e,t){if(null==t)throw Error(o(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function at(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var ot=null;function ut(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;rft.length&&ft.push(e)}function dt(e,t,n,r){if(ft.length){var i=ft.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function pt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Rn(r)}while(n);for(n=0;n=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=hn(r)}}function pn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function gn(){for(var e=window,t=fn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=fn((e=t.contentWindow).document)}return t}function vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mn="$",yn="/$",bn="$?",_n="$!",wn=null,xn=null;function En(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function kn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Sn="function"==typeof setTimeout?setTimeout:void 0,Tn="function"==typeof clearTimeout?clearTimeout:void 0;function Nn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Mn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===mn||n===_n||n===bn){if(0===t)return e;t--}else n===yn&&t++}e=e.previousSibling}return null}var Cn=Math.random().toString(36).slice(2),Pn="__reactInternalInstance$"+Cn,An="__reactEventHandlers$"+Cn,On="__reactContainere$"+Cn;function Rn(e){var t=e[Pn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[On]||n[Pn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Mn(e);null!==e;){if(n=e[Pn])return n;e=Mn(e)}return t}n=(e=n).parentNode}return null}function In(e){return!(e=e[Pn]||e[On])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Ln(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function Dn(e){return e[An]||null}function jn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function zn(e,t){var n=e.stateNode;if(!n)return null;var r=p(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}function Fn(e,t,n){(t=zn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=it(n._dispatchListeners,t),n._dispatchInstances=it(n._dispatchInstances,e))}function Un(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=jn(t);for(t=n.length;0this.eventPool.length&&this.eventPool.push(e)}function Jn(e){e.eventPool=[],e.getPooled=Kn,e.release=Zn}i(Gn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Xn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Xn)},persist:function(){this.isPersistent=Xn},isPersistent:Qn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Qn,this._dispatchInstances=this._dispatchListeners=null}}),Gn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Gn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var a=new t;return i(a,n.prototype),n.prototype=a,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,Jn(n),n},Jn(Gn);var er=Gn.extend({data:null}),tr=Gn.extend({data:null}),nr=[9,13,27,32],rr=N&&"CompositionEvent"in window,ir=null;N&&"documentMode"in document&&(ir=document.documentMode);var ar=N&&"TextEvent"in window&&!ir,or=N&&(!rr||ir&&8=ir),ur=String.fromCharCode(32),lr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},cr=!1;function sr(e,t){switch(e){case"keyup":return-1!==nr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function fr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var hr=!1;var dr={eventTypes:lr,extractEvents:function(e,t,n,r){var i;if(rr)e:{switch(e){case"compositionstart":var a=lr.compositionStart;break e;case"compositionend":a=lr.compositionEnd;break e;case"compositionupdate":a=lr.compositionUpdate;break e}a=void 0}else hr?sr(e,n)&&(a=lr.compositionEnd):"keydown"===e&&229===n.keyCode&&(a=lr.compositionStart);return a?(or&&"ko"!==n.locale&&(hr||a!==lr.compositionStart?a===lr.compositionEnd&&hr&&(i=Vn()):($n="value"in(Wn=r)?Wn.value:Wn.textContent,hr=!0)),a=er.getPooled(a,t,n,r),i?a.data=i:null!==(i=fr(n))&&(a.data=i),Hn(a),i=a):i=null,(e=ar?function(e,t){switch(e){case"compositionend":return fr(t);case"keypress":return 32!==t.which?null:(cr=!0,ur);case"textInput":return(e=t.data)===ur&&cr?null:e;default:return null}}(e,n):function(e,t){if(hr)return"compositionend"===e||!rr&&sr(e,t)?(e=Vn(),Yn=$n=Wn=null,hr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=document.documentMode,Vr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Xr=null,Qr=null,Gr=null,Kr=!1;function Zr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Kr||null==Xr||Xr!==fn(n)?null:("selectionStart"in(n=Xr)&&vn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Gr&&$r(Gr,n)?null:(Gr=n,(e=Gn.getPooled(Vr.select,Qr,e,t)).type="select",e.target=Xr,Hn(e),e))}var Jr={eventTypes:Vr,extractEvents:function(e,t,n,r,i,a){if(!(a=!(i=a||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{i=Je(i),a=S.onSelect;for(var o=0;odi||(e.current=hi[di],hi[di]=null,di--)}function gi(e,t){di++,hi[di]=e.current,e.current=t}var vi={},mi={current:vi},yi={current:!1},bi=vi;function _i(e,t){var n=e.type.contextTypes;if(!n)return vi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function wi(e){return null!=(e=e.childContextTypes)}function xi(){pi(yi),pi(mi)}function Ei(e,t,n){if(mi.current!==vi)throw Error(o(168));gi(mi,t),gi(yi,n)}function ki(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(o(108,ve(t)||"Unknown",a));return i({},n,{},r)}function Si(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vi,bi=mi.current,gi(mi,e),gi(yi,yi.current),!0}function Ti(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=ki(e,t,bi),r.__reactInternalMemoizedMergedChildContext=e,pi(yi),pi(mi),gi(mi,e)):pi(yi),gi(yi,n)}var Ni=a.unstable_runWithPriority,Mi=a.unstable_scheduleCallback,Ci=a.unstable_cancelCallback,Pi=a.unstable_requestPaint,Ai=a.unstable_now,Oi=a.unstable_getCurrentPriorityLevel,Ri=a.unstable_ImmediatePriority,Ii=a.unstable_UserBlockingPriority,Li=a.unstable_NormalPriority,Di=a.unstable_LowPriority,ji=a.unstable_IdlePriority,zi={},Fi=a.unstable_shouldYield,Ui=void 0!==Pi?Pi:function(){},qi=null,Bi=null,Hi=!1,Wi=Ai(),$i=1e4>Wi?Ai:function(){return Ai()-Wi};function Yi(){switch(Oi()){case Ri:return 99;case Ii:return 98;case Li:return 97;case Di:return 96;case ji:return 95;default:throw Error(o(332))}}function Vi(e){switch(e){case 99:return Ri;case 98:return Ii;case 97:return Li;case 96:return Di;case 95:return ji;default:throw Error(o(332))}}function Xi(e,t){return e=Vi(e),Ni(e,t)}function Qi(e,t,n){return e=Vi(e),Mi(e,t,n)}function Gi(e){return null===qi?(qi=[e],Bi=Mi(Ri,Zi)):qi.push(e),zi}function Ki(){if(null!==Bi){var e=Bi;Bi=null,Ci(e)}Zi()}function Zi(){if(!Hi&&null!==qi){Hi=!0;var e=0;try{var t=qi;Xi(99,(function(){for(;e=t&&(Do=!0),e.firstContext=null)}function ca(e,t){if(ia!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ia=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ra){if(null===na)throw Error(o(308));ra=t,na.dependencies={expirationTime:0,firstContext:t,responders:null}}else ra=ra.next=t;return e._currentValue}var sa=!1;function fa(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ha(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function da(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function pa(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ga(e,t){var n=e.alternate;null!==n&&ha(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function va(e,t,n,r){var a=e.updateQueue;sa=!1;var o=a.baseQueue,u=a.shared.pending;if(null!==u){if(null!==o){var l=o.next;o.next=u.next,u.next=l}o=u,a.shared.pending=null,null!==(l=e.alternate)&&(null!==(l=l.updateQueue)&&(l.baseQueue=u))}if(null!==o){l=o.next;var c=a.baseState,s=0,f=null,h=null,d=null;if(null!==l)for(var p=l;;){if((u=p.expirationTime)s&&(s=u)}else{null!==d&&(d=d.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),xl(u,p.suspenseConfig);e:{var v=e,m=p;switch(u=t,g=n,m.tag){case 1:if("function"==typeof(v=m.payload)){c=v.call(g,c,u);break e}c=v;break e;case 3:v.effectTag=-4097&v.effectTag|64;case 0:if(null==(u="function"==typeof(v=m.payload)?v.call(g,c,u):v))break e;c=i({},c,u);break e;case 2:sa=!0}}null!==p.callback&&(e.effectTag|=32,null===(u=a.effects)?a.effects=[p]:u.push(p))}if(null===(p=p.next)||p===l){if(null===(u=a.shared.pending))break;p=o.next=u.next,u.next=l,a.baseQueue=o=u,a.shared.pending=null}}null===d?f=c:d.next=h,a.baseState=f,a.baseQueue=d,El(s),e.expirationTime=s,e.memoizedState=c}}function ma(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;tg?(v=f,f=null):v=f.sibling;var m=d(i,f,u[g],l);if(null===m){null===f&&(f=v);break}e&&f&&null===m.alternate&&t(i,f),o=a(m,o,g),null===s?c=m:s.sibling=m,s=m,f=v}if(g===u.length)return n(i,f),c;if(null===f){for(;gv?(m=g,g=null):m=g.sibling;var b=d(i,g,y.value,c);if(null===b){null===g&&(g=m);break}e&&g&&null===b.alternate&&t(i,g),u=a(b,u,v),null===f?s=b:f.sibling=b,f=b,g=m}if(y.done)return n(i,g),s;if(null===g){for(;!y.done;v++,y=l.next())null!==(y=h(i,y.value,c))&&(u=a(y,u,v),null===f?s=y:f.sibling=y,f=y);return s}for(g=r(i,g);!y.done;v++,y=l.next())null!==(y=p(g,i,v,y.value,c))&&(e&&null!==y.alternate&&g.delete(null===y.key?v:y.key),u=a(y,u,v),null===f?s=y:f.sibling=y,f=y);return e&&g.forEach((function(e){return t(i,e)})),s}return function(e,r,a,l){var c="object"==typeof a&&null!==a&&a.type===ne&&null===a.key;c&&(a=a.props.children);var s="object"==typeof a&&null!==a;if(s)switch(a.$$typeof){case ee:e:{for(s=a.key,c=r;null!==c;){if(c.key===s){if(7===c.tag){if(a.type===ne){n(e,c.sibling),(r=i(c,a.props.children)).return=e,e=r;break e}}else if(c.elementType===a.type){n(e,c.sibling),(r=i(c,a.props)).ref=Na(e,c,a),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}a.type===ne?((r=$l(a.props.children,e.mode,l,a.key)).return=e,e=r):((l=Wl(a.type,a.key,a.props,null,e.mode,l)).ref=Na(e,r,a),l.return=e,e=l)}return u(e);case te:e:{for(c=a.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=i(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Vl(a,e.mode,l)).return=e,e=r}return u(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,a)).return=e,e=r):(n(e,r),(r=Yl(a,e.mode,l)).return=e,e=r),u(e);if(Ta(a))return g(e,r,a,l);if(ge(a))return v(e,r,a,l);if(s&&Ma(e,a),void 0===a&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(o(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Pa=Ca(!0),Aa=Ca(!1),Oa={},Ra={current:Oa},Ia={current:Oa},La={current:Oa};function Da(e){if(e===Oa)throw Error(o(174));return e}function ja(e,t){switch(gi(La,t),gi(Ia,e),gi(Ra,Oa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:je(null,"");break;default:t=je(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}pi(Ra),gi(Ra,t)}function za(){pi(Ra),pi(Ia),pi(La)}function Fa(e){Da(La.current);var t=Da(Ra.current),n=je(t,e.type);t!==n&&(gi(Ia,e),gi(Ra,n))}function Ua(e){Ia.current===e&&(pi(Ra),pi(Ia))}var qa={current:0};function Ba(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===bn||n.data===_n))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(64&t.effectTag)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Ha(e,t){return{responder:e,props:t}}var Wa=G.ReactCurrentDispatcher,$a=G.ReactCurrentBatchConfig,Ya=0,Va=null,Xa=null,Qa=null,Ga=!1;function Ka(){throw Error(o(321))}function Za(e,t){if(null===t)return!1;for(var n=0;na))throw Error(o(301));a+=1,Qa=Xa=null,t.updateQueue=null,Wa.current=So,e=n(r,i)}while(t.expirationTime===Ya)}if(Wa.current=xo,t=null!==Xa&&null!==Xa.next,Ya=0,Qa=Xa=Va=null,Ga=!1,t)throw Error(o(300));return e}function eo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Qa?Va.memoizedState=Qa=e:Qa=Qa.next=e,Qa}function to(){if(null===Xa){var e=Va.alternate;e=null!==e?e.memoizedState:null}else e=Xa.next;var t=null===Qa?Va.memoizedState:Qa.next;if(null!==t)Qa=t,Xa=e;else{if(null===e)throw Error(o(310));e={memoizedState:(Xa=e).memoizedState,baseState:Xa.baseState,baseQueue:Xa.baseQueue,queue:Xa.queue,next:null},null===Qa?Va.memoizedState=Qa=e:Qa=Qa.next=e}return Qa}function no(e,t){return"function"==typeof t?t(e):t}function ro(e){var t=to(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=Xa,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var u=i.next;i.next=a.next,a.next=u}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=u=a=null,c=i;do{var s=c.expirationTime;if(sVa.expirationTime&&(Va.expirationTime=s,El(s))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),xl(s,c.suspenseConfig),r=c.eagerReducer===e?c.eagerState:e(r,c.action);c=c.next}while(null!==c&&c!==i);null===l?a=r:l.next=u,Hr(r,t.memoizedState)||(Do=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function io(e){var t=to(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var u=i=i.next;do{a=e(a,u.action),u=u.next}while(u!==i);Hr(a,t.memoizedState)||(Do=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function ao(e){var t=eo();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:no,lastRenderedState:e}).dispatch=wo.bind(null,Va,e),[t.memoizedState,e]}function oo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Va.updateQueue)?(t={lastEffect:null},Va.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function uo(){return to().memoizedState}function lo(e,t,n,r){var i=eo();Va.effectTag|=e,i.memoizedState=oo(1|t,n,void 0,void 0===r?null:r)}function co(e,t,n,r){var i=to();r=void 0===r?null:r;var a=void 0;if(null!==Xa){var o=Xa.memoizedState;if(a=o.destroy,null!==r&&Za(r,o.deps))return void oo(t,n,a,r)}Va.effectTag|=e,i.memoizedState=oo(1|t,n,a,r)}function so(e,t){return lo(516,4,e,t)}function fo(e,t){return co(516,4,e,t)}function ho(e,t){return co(4,2,e,t)}function po(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function go(e,t,n){return n=null!=n?n.concat([e]):null,co(4,2,po.bind(null,t,e),n)}function vo(){}function mo(e,t){return eo().memoizedState=[e,void 0===t?null:t],e}function yo(e,t){var n=to();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Za(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function bo(e,t){var n=to();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Za(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function _o(e,t,n){var r=Yi();Xi(98>r?98:r,(function(){e(!0)})),Xi(97<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(a,{is:r.is}):(e=l.createElement(a),"select"===a&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,a),e[Pn]=t,e[An]=r,Yo(e,t,!1,!1),t.stateNode=e,l=un(a,r),a){case"iframe":case"object":case"embed":Xt("load",e),c=r;break;case"video":case"audio":for(c=0;cr.tailExpiration&&1t)&&al.set(e,t))}}function hl(e,t){e.expirationTime=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function pl(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Gi(vl.bind(null,e));else{var t=dl(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=cl();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==zi&&Ci(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Gi(vl.bind(null,e)):Qi(r,gl.bind(null,e),{timeout:10*(1073741821-t)-$i()}),e.callbackNode=t}}}function gl(e,t){if(ll=0,t)return Zl(e,t=cl()),pl(e),null;var n=dl(e);if(0!==n){if(t=e.callbackNode,(Fu&(Au|Ou))!==Cu)throw Error(o(327));if(Ol(),e===Uu&&n===Bu||bl(e,n),null!==qu){var r=Fu;Fu|=Au;for(var i=wl();;)try{Sl();break}catch(t){_l(e,t)}if(aa(),Fu=r,Nu.current=i,Hu===Iu)throw t=Wu,bl(e,n),Gl(e,n),pl(e),t;if(null===qu)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Hu,Uu=null,r){case Ru:case Iu:throw Error(o(345));case Lu:Zl(e,2=n){e.lastPingedTime=n,bl(e,n);break}}if(0!==(a=dl(e))&&a!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=Sn(Cl.bind(null,e),i);break}Cl(e);break;case ju:if(Gl(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Ml(i)),Qu&&(0===(i=e.lastPingedTime)||i>=n)){e.lastPingedTime=n,bl(e,n);break}if(0!==(i=dl(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Yu?r=10*(1073741821-Yu)-$i():1073741823===$u?r=0:(r=10*(1073741821-$u)-5e3,0>(r=(i=$i())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Tu(r/1960))-r)&&(r=n)),10=(r=0|u.busyMinDurationMs)?r=0:(i=0|u.busyDelayMs,r=(a=$i()-(10*(1073741821-a)-(0|u.timeoutMs||5e3)))<=i?0:i+r-a),10 component higher in the tree to provide a loading indicator or placeholder to display."+me(o))}Hu!==zu&&(Hu=Lu),u=au(u,o),f=a;do{switch(f.tag){case 3:l=u,f.effectTag|=4096,f.expirationTime=t,ga(f,Eu(f,l,t));break e;case 1:l=u;var _=f.type,w=f.stateNode;if(!(64&f.effectTag||"function"!=typeof _.getDerivedStateFromError&&(null===w||"function"!=typeof w.componentDidCatch||null!==tl&&tl.has(w)))){f.effectTag|=4096,f.expirationTime=t,ga(f,ku(f,l,t));break e}}f=f.return}while(null!==f)}qu=Nl(qu)}catch(e){t=e;continue}break}}function wl(){var e=Nu.current;return Nu.current=xo,null===e?xo:e}function xl(e,t){e<$u&&2Xu&&(Xu=e)}function kl(){for(;null!==qu;)qu=Tl(qu)}function Sl(){for(;null!==qu&&!Fi();)qu=Tl(qu)}function Tl(e){var t=Su(e.alternate,e,Bu);return e.memoizedProps=e.pendingProps,null===t&&(t=Nl(e)),Mu.current=null,t}function Nl(e){qu=e;do{var t=qu.alternate;if(e=qu.return,2048&qu.effectTag){if(null!==(t=iu(qu)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}else{if(t=ru(t,qu,Bu),1===Bu||1!==qu.childExpirationTime){for(var n=0,r=qu.child;null!==r;){var i=r.expirationTime,a=r.childExpirationTime;i>n&&(n=i),a>n&&(n=a),r=r.sibling}qu.childExpirationTime=n}if(null!==t)return t;null!==e&&!(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=qu.firstEffect),null!==qu.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=qu.firstEffect),e.lastEffect=qu.lastEffect),1(e=e.childExpirationTime)?t:e}function Cl(e){var t=Yi();return Xi(99,Pl.bind(null,e,t)),null}function Pl(e,t){do{Ol()}while(null!==rl);if((Fu&(Au|Ou))!==Cu)throw Error(o(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=Ml(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Uu&&(qu=Uu=null,Bu=0),1l&&(s=l,l=u,u=s),s=dn(_,u),f=dn(_,l),s&&f&&(1!==x.rangeCount||x.anchorNode!==s.node||x.anchorOffset!==s.offset||x.focusNode!==f.node||x.focusOffset!==f.offset)&&((w=w.createRange()).setStart(s.node,s.offset),x.removeAllRanges(),u>l?(x.addRange(w),x.extend(f.node,f.offset)):(w.setEnd(f.node,f.offset),x.addRange(w))))),w=[];for(x=_;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof _.focus&&_.focus(),_=0;_=n?Ko(e,t,n):(gi(qa,1&qa.current),null!==(t=tu(e,t,n))?t.sibling:null);gi(qa,1&qa.current);break;case 19:if(r=t.childExpirationTime>=n,64&e.effectTag){if(r)return eu(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),gi(qa,qa.current),!r)return null}return tu(e,t,n)}Do=!1}}else Do=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=_i(t,mi.current),la(t,n),i=Ja(null,t,r,e,i,n),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,wi(r)){var a=!0;Si(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,fa(t);var u=r.getDerivedStateFromProps;"function"==typeof u&&_a(t,r,u,e),i.updater=wa,t.stateNode=i,i._reactInternalFiber=t,Sa(t,r,e,n),t=Wo(null,t,r,!0,a,n)}else t.tag=0,jo(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,a=t.tag=function(e){if("function"==typeof e)return Bl(e)?1:0;if(null!=e){if((e=e.$$typeof)===le)return 11;if(e===fe)return 14}return 2}(i),e=ea(i,e),a){case 0:t=Bo(null,t,i,e,n);break e;case 1:t=Ho(null,t,i,e,n);break e;case 11:t=zo(null,t,i,e,n);break e;case 14:t=Fo(null,t,i,ea(i.type,e),r,n);break e}throw Error(o(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Bo(e,t,r,i=t.elementType===r?i:ea(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ho(e,t,r,i=t.elementType===r?i:ea(r,i),n);case 3:if($o(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,ha(e,t),va(t,r,null,n),(r=t.memoizedState.element)===i)Io(),t=tu(e,t,n);else{if((i=t.stateNode.hydrate)&&(No=Nn(t.stateNode.containerInfo.firstChild),To=t,i=Mo=!0),i)for(n=Aa(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else jo(e,t,r,n),Io();t=t.child}return t;case 5:return Fa(t),null===e&&Ao(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,u=i.children,kn(r,i)?u=null:null!==a&&kn(r,a)&&(t.effectTag|=16),qo(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(jo(e,t,u,n),t=t.child),t;case 6:return null===e&&Ao(t),null;case 13:return Ko(e,t,n);case 4:return ja(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Pa(t,null,r,n):jo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,zo(e,t,r,i=t.elementType===r?i:ea(r,i),n);case 7:return jo(e,t,t.pendingProps,n),t.child;case 8:case 12:return jo(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,u=t.memoizedProps,a=i.value;var l=t.type._context;if(gi(ta,l._currentValue),l._currentValue=a,null!==u)if(l=u.value,0===(a=Hr(l,a)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,a):1073741823))){if(u.children===i.children&&!yi.current){t=tu(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){u=l.child;for(var s=c.firstContext;null!==s;){if(s.context===r&&s.observedBits&a){1===l.tag&&((s=da(n,null)).tag=2,pa(l,s)),l.expirationTime=t&&e<=t}function Gl(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;nt||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Kl(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Zl(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Jl(e,t,n,r){var i=t.current,a=cl(),u=ya.suspense;a=sl(a,i,u);e:if(n){t:{if(et(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(o(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(wi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(o(171))}if(1===n.tag){var c=n.type;if(wi(c)){n=ki(n,c,l);break e}}n=l}else n=vi;return null===t.context?t.context=n:t.pendingContext=n,(t=da(a,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),pa(i,t),fl(i,a),a}function ec(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function tc(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},5287:(e,t,n)=>{"use strict";var r=n(5228),i="function"==typeof Symbol&&Symbol.for,a=i?Symbol.for("react.element"):60103,o=i?Symbol.for("react.portal"):60106,u=i?Symbol.for("react.fragment"):60107,l=i?Symbol.for("react.strict_mode"):60108,c=i?Symbol.for("react.profiler"):60114,s=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,h=i?Symbol.for("react.forward_ref"):60112,d=i?Symbol.for("react.suspense"):60113,p=i?Symbol.for("react.memo"):60115,g=i?Symbol.for("react.lazy"):60116,v="function"==typeof Symbol&&Symbol.iterator;function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nP.length&&P.push(e)}function R(e,t,n,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var u=!1;if(null===e)u=!0;else switch(i){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case a:case o:u=!0}}if(u)return n(r,e,""===t?"."+L(e,0):t),1;if(u=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l{"use strict";e.exports=n(5287)},5475:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(6540),a=(r=i)&&r.__esModule?r:{default:r},o=n(1864),u=n(6916),l=n(5090),c=n(166),s=n(412),f=n(1646),h=n(4822),d=n(7552);a.default.Children.children=function(e){return a.default.Children.map(e,(function(e){return e}))||[]},Array.prototype.find||Object.defineProperty(Array.prototype,"find",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,i=arguments[1],a=0;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractDataFrom=function(e,t){var n;n=null!=e&&!0===e.__reactableMeta?e.data[t]:e[t];null!=n&&!0===n.__reactableMeta&&(n=void 0!==n.props.value&&null!==n.props.value?n.props.value:n.value);return(0,r.stringable)(n)?n:""};var r=n(7551)},1964:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filterPropsFrom=function(e){e=e||{};var t={};for(var r in e)r in n||(t[r]=e[r]);return t};var n={hideTableHeader:!0,column:!0,columns:!0,sortable:!0,filterable:!0,filtering:!0,onFilter:!0,filterPlaceholder:!0,filterClassName:!0,currentFilter:!0,sort:!0,sortBy:!0,sortableColumns:!0,onSort:!0,defaultSort:!0,defaultSortDescending:!0,itemsPerPage:!0,filterBy:!0,hideFilterInput:!0,noDataText:!0,currentPage:!0,onPageChange:!0,previousPageLabel:!0,nextPageLabel:!0,pageButtonLimit:!0,childNode:!0,data:!0,children:!0}},4610:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isReactComponent=function(e){return null!==e&&"object"==typeof e&&void 0!==e.props}},7551:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringable=function(e){return null!=e&&typeof("function"===e.toString)}},717:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=function(e){var t=[];for(var n in e)t[n]=e;return t}},8491:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0)return o.default.createElement("a",{className:"reactable-previous-page",href:u(this.props.currentPage-1),onClick:this.handlePrevious.bind(this)},this.props.previousPageLabel||"Previous")}},{key:"renderNext",value:function(){if(this.props.currentPage0&&(n>r-i?e.splice(0,r-t):e.splice(0,n-t+i)),r-n>a&&e.splice(t,e.length-t),o.default.createElement("tbody",{className:"reactable-pagination"},o.default.createElement("tr",null,o.default.createElement("td",{colSpan:this.props.colSpan},this.renderPrevious(),e,this.renderNext())))}}]),t}(o.default.Component);t.Paginator=l},4822:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={Numeric:function(e,t){var n=parseFloat(e.toString().replace(/,/g,"")),r=parseFloat(t.toString().replace(/,/g,""));if(isNaN(n)&&isNaN(r))n=e,r=t;else{if(isNaN(n))return 1;if(isNaN(r))return-1}return nr?1:0},NumericInteger:function(e,t){return isNaN(e)||isNaN(t)?e>t?1:-1:e-t},Currency:function(e,n){return e=e.replace(/[^0-9\.\-\,]+/g,""),n=n.replace(/[^0-9\.\-\,]+/g,""),t.Sort.Numeric(e,n)},Date:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,n){var r=Date.parse(e),i=Date.parse(n);return isNaN(r)||isNaN(i)?t.Sort.Numeric(e,n):r>i?1:i>r?-1:0})),CaseInsensitive:function(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}};t.Sort=n},1864:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t