webapp.dist.worker.js Maven / Gradle / Ivy
(()=>{var t={1918:(t,e,n)=>{"use strict";n.d(e,{Tj:()=>a});var r="$";function i(){}function o(t,e){var n=new i;if(t instanceof i)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,o=-1,a=t.length;if(null==e)for(;++o{"use strict";n.d(e,{J:()=>c});var r={value:function(){}};function i(){for(var t,e=0,n=arguments.length,r={};e=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),c=-1,l=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++c0)for(var n,r,i=new Array(n),o=0;o{"use strict";n.d(e,{sw:()=>c,Nu:()=>s});var r={},i={};function o(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+"]"})).join(",")+"}")}function a(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function a(t,e){var o,a=[],u=t.length,c=0,l=0,s=u<=0,f=!1;function h(){if(s)return i;if(f)return f=!1,r;var e,o,a=c;if(34===t.charCodeAt(a)){for(;c++=u?s=!0:10===(o=t.charCodeAt(c++))?f=!0:13===o&&(f=!0,10===t.charCodeAt(c)&&++c),t.slice(a+1,e-1).replace(/""/g,'"')}for(;c{t.exports={graphlib:n(5653),dagre:n(8193),intersect:n(8070),render:n(2330),util:n(7998),version:n(5872)}},2744:(t,e,n)=>{var r=n(7998);function i(t,e,n,i){var o=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(o,n[i+"Style"]),n[i+"Class"]&&o.attr("class",n[i+"Class"])}t.exports={default:i,normal:i,vee:function(t,e,n,i){var o=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(o,n[i+"Style"]),n[i+"Class"]&&o.attr("class",n[i+"Class"])},undirected:function(t,e,n,i){var o=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(o,n[i+"Style"]),n[i+"Class"]&&o.attr("class",n[i+"Class"])}}},7076:(t,e,n)=>{var r=n(7998),i=n(4747),o=n(3965);t.exports=function(t,e){var n=e.nodes().filter((function(t){return r.isSubgraph(e,t)})),a=t.selectAll("g.cluster").data(n,(function(t){return t}));return a.selectAll("*").remove(),a.enter().append("g").attr("class","cluster").attr("id",(function(t){return e.node(t).id})).style("opacity",0),a=t.selectAll("g.cluster"),r.applyTransition(a,e).style("opacity",1),a.each((function(t){var n=e.node(t),r=i.select(this);i.select(this).append("rect");var a=r.append("g").attr("class","label");o(a,n,n.clusterLabelPos)})),a.selectAll("rect").each((function(t){var n=e.node(t),o=i.select(this);r.applyStyle(o,n.style)})),r.applyTransition(a.exit(),e).style("opacity",0).remove(),a}},3784:(t,e,n)=>{"use strict";var r=n(3451),i=n(3965),o=n(7998),a=n(4747);t.exports=function(t,e){var n=t.selectAll("g.edgeLabel").data(e.edges(),(function(t){return o.edgeToId(t)})).classed("update",!0);return n.selectAll("*").remove(),n.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(n=t.selectAll("g.edgeLabel")).each((function(t){var n=e.edge(t),o=i(a.select(this),e.edge(t),0,0).classed("label",!0),u=o.node().getBBox();n.labelId&&o.attr("id",n.labelId),r.has(n,"width")||(n.width=u.width),r.has(n,"height")||(n.height=u.height)})),o.applyTransition(n.exit(),e).style("opacity",0).remove(),n}},7863:(t,e,n)=>{"use strict";var r=n(3451),i=n(5408),o=n(7998),a=n(4747);function u(t,e){var n=a.line().x((function(t){return t.x})).y((function(t){return t.y}));return n.curve(t.curve),n(e)}t.exports=function(t,e,n){var c=t.selectAll("g.edgePath").data(e.edges(),(function(t){return o.edgeToId(t)})).classed("update",!0);return function(t,e){var n=t.enter().append("g").attr("class","edgePath").style("opacity",0);n.append("path").attr("class","path").attr("d",(function(t){var n=e.edge(t),i=e.node(t.v).elem;return u(n,r.range(n.points.length).map((function(){return e=(t=i).getBBox(),{x:(n=t.ownerSVGElement.getScreenCTM().inverse().multiply(t.getScreenCTM()).translate(e.width/2,e.height/2)).e,y:n.f};var t,e,n})))})),n.append("defs")}(c,e),function(t,e){var n=t.exit();o.applyTransition(n,e).style("opacity",0).remove(),o.applyTransition(n.select("path.path"),e).attr("d",(function(t){var n=e.node(t.v);return n?u({},r.range(this.getTotalLength()).map((function(){return n}))):a.select(this).attr("d")}))}(c,e),c=t.selectAll("g.edgePath"),o.applyTransition(c,e).style("opacity",1),c.each((function(t){var n=a.select(this),r=e.edge(t);r.elem=this,r.id&&n.attr("id",r.id),o.applyClass(n,r.class,(n.classed("update")?"update ":"")+"edgePath")})),c.selectAll("path.path").each((function(t){var n=e.edge(t);n.arrowheadId=r.uniqueId("arrowhead");var c=a.select(this).attr("marker-end",(function(){return"url("+(t=location.href,e=n.arrowheadId,t.split("#")[0]+"#"+e+")");var t,e})).style("fill","none");o.applyTransition(c,e).attr("d",(function(t){return function(t,e){var n=t.edge(e),r=t.node(e.v),o=t.node(e.w),a=n.points.slice(1,n.points.length-1);return a.unshift(i(r,a[0])),a.push(i(o,a[a.length-1])),u(n,a)}(e,t)})),o.applyStyle(c,n.style)})),c.selectAll("defs *").remove(),c.selectAll("defs").each((function(t){var r=e.edge(t);(0,n[r.arrowhead])(a.select(this),r.arrowheadId,r,"arrowhead")})),c}},2490:(t,e,n)=>{"use strict";var r=n(3451),i=n(3965),o=n(7998),a=n(4747);t.exports=function(t,e,n){var u=e.nodes().filter((function(t){return!o.isSubgraph(e,t)})),c=t.selectAll("g.node").data(u,(function(t){return t})).classed("update",!0);return c.selectAll("*").remove(),c.enter().append("g").attr("class","node").style("opacity",0),(c=t.selectAll("g.node")).each((function(t){var u=e.node(t),c=a.select(this);o.applyClass(c,u.class,(c.classed("update")?"update ":"")+"node");var l=c.append("g").attr("class","label"),s=i(l,u),f=n[u.shape],h=r.pick(s.node().getBBox(),"width","height");u.elem=this,u.id&&c.attr("id",u.id),u.labelId&&l.attr("id",u.labelId),r.has(u,"width")&&(h.width=u.width),r.has(u,"height")&&(h.height=u.height),h.width+=u.paddingLeft+u.paddingRight,h.height+=u.paddingTop+u.paddingBottom,l.attr("transform","translate("+(u.paddingLeft-u.paddingRight)/2+","+(u.paddingTop-u.paddingBottom)/2+")");var d=f(a.select(this),h,u);o.applyStyle(d,u.style);var p=d.node().getBBox();u.width=p.width,u.height=p.height})),o.applyTransition(c.exit(),e).style("opacity",0).remove(),c}},4747:(t,e,n)=>{var r;if(!r)try{r=n(2549)}catch(t){}r||(r=window.d3),t.exports=r},8193:(t,e,n)=>{var r;try{r=n(6246)}catch(t){}r||(r=window.dagre),t.exports=r},5653:(t,e,n)=>{var r;try{r=n(8362)}catch(t){}r||(r=window.graphlib),t.exports=r},8070:(t,e,n)=>{t.exports={node:n(5408),circle:n(7672),ellipse:n(1772),polygon:n(7536),rect:n(8782)}},7672:(t,e,n)=>{var r=n(1772);t.exports=function(t,e,n){return r(t,e,e,n)}},1772:t=>{t.exports=function(t,e,n,r){var i=t.x,o=t.y,a=i-r.x,u=o-r.y,c=Math.sqrt(e*e*u*u+n*n*a*a),l=Math.abs(e*n*a/c);r.x{function e(t,e){return t*e>0}t.exports=function(t,n,r,i){var o,a,u,c,l,s,f,h,d,p,v,g,y;if(o=n.y-t.y,u=t.x-n.x,l=n.x*t.y-t.x*n.y,d=o*r.x+u*r.y+l,p=o*i.x+u*i.y+l,0!==d&&0!==p&&e(d,p))return;if(a=i.y-r.y,c=r.x-i.x,s=i.x*r.y-r.x*i.y,f=a*t.x+c*t.y+s,h=a*n.x+c*n.y+s,0!==f&&0!==h&&e(f,h))return;if(0===(v=o*c-a*u))return;return g=Math.abs(v/2),{x:(y=u*s-c*l)<0?(y-g)/v:(y+g)/v,y:(y=a*l-o*s)<0?(y-g)/v:(y+g)/v}}},5408:t=>{t.exports=function(t,e){return t.intersect(e)}},7536:(t,e,n)=>{var r=n(7170);t.exports=function(t,e,n){var i=t.x,o=t.y,a=[],u=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY;e.forEach((function(t){u=Math.min(u,t.x),c=Math.min(c,t.y)}));for(var l=i-t.width/2-u,s=o-t.height/2-c,f=0;f1&&a.sort((function(t,e){var r=t.x-n.x,i=t.y-n.y,o=Math.sqrt(r*r+i*i),a=e.x-n.x,u=e.y-n.y,c=Math.sqrt(a*a+u*u);return o{t.exports=function(t,e){var n,r,i=t.x,o=t.y,a=e.x-i,u=e.y-o,c=t.width/2,l=t.height/2;Math.abs(u)*c>Math.abs(a)*l?(u<0&&(l=-l),n=0===u?0:l*a/u,r=l):(a<0&&(c=-c),n=c,r=0===a?0:c*u/a);return{x:i+n,y:o+r}}},517:(t,e,n)=>{var r=n(7998);t.exports=function(t,e){var n=t.append("foreignObject").attr("width","100000"),i=n.append("xhtml:div");i.attr("xmlns","http://www.w3.org/1999/xhtml");var o=e.label;switch(typeof o){case"function":i.insert(o);break;case"object":i.insert((function(){return o}));break;default:i.html(o)}r.applyStyle(i,e.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap");var a=i.node().getBoundingClientRect();return n.attr("width",a.width).attr("height",a.height),n}},3965:(t,e,n)=>{var r=n(399),i=n(517),o=n(2734);t.exports=function(t,e,n){var a=e.label,u=t.append("g");"svg"===e.labelType?o(u,e):"string"!=typeof a||"html"===e.labelType?i(u,e):r(u,e);var c,l=u.node().getBBox();switch(n){case"top":c=-e.height/2;break;case"bottom":c=e.height/2-l.height;break;default:c=-l.height/2}return u.attr("transform","translate("+-l.width/2+","+c+")"),u}},2734:(t,e,n)=>{var r=n(7998);t.exports=function(t,e){var n=t;return n.node().appendChild(e.label),r.applyStyle(n,e.labelStyle),n}},399:(t,e,n)=>{var r=n(7998);t.exports=function(t,e){for(var n=t.append("text"),i=function(t){for(var e,n="",r=!1,i=0;i{var r;try{r=n(2543)}catch(t){}r||(r=window._),t.exports=r},5593:(t,e,n)=>{"use strict";var r=n(7998),i=n(4747);t.exports=function(t,e){var n=t.filter((function(){return!i.select(this).classed("update")}));function o(t){var n=e.node(t);return"translate("+n.x+","+n.y+")"}n.attr("transform",o),r.applyTransition(t,e).style("opacity",1).attr("transform",o),r.applyTransition(n.selectAll("rect"),e).attr("width",(function(t){return e.node(t).width})).attr("height",(function(t){return e.node(t).height})).attr("x",(function(t){return-e.node(t).width/2})).attr("y",(function(t){return-e.node(t).height/2}))}},9283:(t,e,n)=>{"use strict";var r=n(7998),i=n(4747),o=n(3451);t.exports=function(t,e){function n(t){var n=e.edge(t);return o.has(n,"x")?"translate("+n.x+","+n.y+")":""}t.filter((function(){return!i.select(this).classed("update")})).attr("transform",n),r.applyTransition(t,e).style("opacity",1).attr("transform",n)}},3321:(t,e,n)=>{"use strict";var r=n(7998),i=n(4747);t.exports=function(t,e){function n(t){var n=e.node(t);return"translate("+n.x+","+n.y+")"}t.filter((function(){return!i.select(this).classed("update")})).attr("transform",n),r.applyTransition(t,e).style("opacity",1).attr("transform",n)}},2330:(t,e,n)=>{var r=n(3451),i=n(4747),o=n(8193).layout;t.exports=function(){var t=n(2490),e=n(7076),i=n(3784),l=n(7863),s=n(3321),f=n(9283),h=n(5593),d=n(3096),p=n(2744),v=function(n,v){!function(t){t.nodes().forEach((function(e){var n=t.node(e);r.has(n,"label")||t.children(e).length||(n.label=e),r.has(n,"paddingX")&&r.defaults(n,{paddingLeft:n.paddingX,paddingRight:n.paddingX}),r.has(n,"paddingY")&&r.defaults(n,{paddingTop:n.paddingY,paddingBottom:n.paddingY}),r.has(n,"padding")&&r.defaults(n,{paddingLeft:n.padding,paddingRight:n.padding,paddingTop:n.padding,paddingBottom:n.padding}),r.defaults(n,a),r.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],(function(t){n[t]=Number(n[t])})),r.has(n,"width")&&(n._prevWidth=n.width),r.has(n,"height")&&(n._prevHeight=n.height)})),t.edges().forEach((function(e){var n=t.edge(e);r.has(n,"label")||(n.label=""),r.defaults(n,u)}))}(v),n.selectAll("*").remove();var g=c(n,"output"),y=c(g,"clusters"),m=c(g,"edgePaths"),_=i(c(g,"edgeLabels"),v),b=t(c(g,"nodes"),v,d);o(v),s(b,v),f(_,v),l(m,v,p);var w=e(y,v);h(w,v),function(t){r.each(t.nodes(),(function(e){var n=t.node(e);r.has(n,"_prevWidth")?n.width=n._prevWidth:delete n.width,r.has(n,"_prevHeight")?n.height=n._prevHeight:delete n.height,delete n._prevWidth,delete n._prevHeight}))}(v)};return v.createNodes=function(e){return arguments.length?(t=e,v):t},v.createClusters=function(t){return arguments.length?(e=t,v):e},v.createEdgeLabels=function(t){return arguments.length?(i=t,v):i},v.createEdgePaths=function(t){return arguments.length?(l=t,v):l},v.shapes=function(t){return arguments.length?(d=t,v):d},v.arrows=function(t){return arguments.length?(p=t,v):p},v};var a={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},u={arrowhead:"normal",curve:i.curveLinear};function c(t,e){var n=t.select("g."+e);return n.empty()&&(n=t.append("g").attr("class",e)),n}},3096:(t,e,n)=>{"use strict";var r=n(8782),i=n(1772),o=n(7672),a=n(7536);t.exports={rect:function(t,e,n){var i=t.insert("rect",":first-child").attr("rx",n.rx).attr("ry",n.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return n.intersect=function(t){return r(n,t)},i},ellipse:function(t,e,n){var r=e.width/2,o=e.height/2,a=t.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",r).attr("ry",o);return n.intersect=function(t){return i(n,r,o,t)},a},circle:function(t,e,n){var r=Math.max(e.width,e.height)/2,i=t.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",r);return n.intersect=function(t){return o(n,r,t)},i},diamond:function(t,e,n){var r=e.width*Math.SQRT2/2,i=e.height*Math.SQRT2/2,o=[{x:0,y:-i},{x:-r,y:0},{x:0,y:i},{x:r,y:0}],u=t.insert("polygon",":first-child").attr("points",o.map((function(t){return t.x+","+t.y})).join(" "));return n.intersect=function(t){return a(n,o,t)},u}}},7998:(t,e,n)=>{var r=n(3451);t.exports={isSubgraph:function(t,e){return!!t.children(e).length},edgeToId:function(t){return o(t.v)+":"+o(t.w)+":"+o(t.name)},applyStyle:function(t,e){e&&t.attr("style",e)},applyClass:function(t,e,n){e&&t.attr("class",e).attr("class",n+" "+t.attr("class"))},applyTransition:function(t,e){var n=e.graph();if(r.isPlainObject(n)){var i=n.transition;if(r.isFunction(i))return i(t)}return t}};var i=/:/g;function o(t){return t?String(t).replace(i,"\\:"):""}},5872:t=>{t.exports="0.6.1"},2549:(t,e,n)=>{"use strict";n.r(e),n.d(e,{active:()=>Ho,arc:()=>e_,area:()=>u_,areaRadial:()=>g_,ascending:()=>i,axisBottom:()=>ct,axisLeft:()=>lt,axisRight:()=>ut,axisTop:()=>at,bisect:()=>l,bisectLeft:()=>c,bisectRight:()=>u,bisector:()=>o,brush:()=>pa,brushSelection:()=>fa,brushX:()=>ha,brushY:()=>da,chord:()=>xa,clientPoint:()=>Ie,cluster:()=>rd,color:()=>gn,create:()=>Pe,creator:()=>wt,cross:()=>h,csv:()=>Ip,csvFormat:()=>su,csvFormatRows:()=>fu,csvParse:()=>cu,csvParseRows:()=>lu,cubehelix:()=>Zn,curveBasis:()=>G_,curveBasisClosed:()=>Z_,curveBasisOpen:()=>tb,curveBundle:()=>nb,curveCardinal:()=>ob,curveCardinalClosed:()=>ub,curveCardinalOpen:()=>lb,curveCatmullRom:()=>hb,curveCatmullRomClosed:()=>pb,curveCatmullRomOpen:()=>gb,curveLinear:()=>r_,curveLinearClosed:()=>mb,curveMonotoneX:()=>Mb,curveMonotoneY:()=>Nb,curveNatural:()=>Ab,curveStep:()=>Lb,curveStepAfter:()=>zb,curveStepBefore:()=>Rb,customEvent:()=>xe,descending:()=>d,deviation:()=>g,dispatch:()=>vt,drag:()=>Ke,dragDisable:()=>He,dragEnable:()=>Ye,dsvFormat:()=>au,easeBack:()=>Oo,easeBackIn:()=>Ro,easeBackInOut:()=>Oo,easeBackOut:()=>zo,easeBounce:()=>Ao,easeBounceIn:()=>Co,easeBounceInOut:()=>Po,easeBounceOut:()=>Ao,easeCircle:()=>mo,easeCircleIn:()=>go,easeCircleInOut:()=>mo,easeCircleOut:()=>yo,easeCubic:()=>ro,easeCubicIn:()=>eo,easeCubicInOut:()=>ro,easeCubicOut:()=>no,easeElastic:()=>Do,easeElasticIn:()=>Uo,easeElasticInOut:()=>jo,easeElasticOut:()=>Do,easeExp:()=>vo,easeExpIn:()=>ho,easeExpInOut:()=>vo,easeExpOut:()=>po,easeLinear:()=>Ki,easePoly:()=>ao,easePolyIn:()=>io,easePolyInOut:()=>ao,easePolyOut:()=>oo,easeQuad:()=>to,easeQuadIn:()=>Zi,easeQuadInOut:()=>to,easeQuadOut:()=>Ji,easeSin:()=>fo,easeSinIn:()=>lo,easeSinInOut:()=>fo,easeSinOut:()=>so,entries:()=>Ja,event:()=>ye,extent:()=>y,forceCenter:()=>yu,forceCollide:()=>Au,forceLink:()=>Ru,forceManyBody:()=>Fu,forceRadial:()=>Bu,forceSimulation:()=>ju,forceX:()=>qu,forceY:()=>Hu,format:()=>Ju,formatDefaultLocale:()=>rc,formatLocale:()=>nc,formatPrefix:()=>tc,formatSpecifier:()=>Qu,geoAlbers:()=>kh,geoAlbersUsa:()=>Th,geoArea:()=>Jc,geoAzimuthalEqualArea:()=>Ch,geoAzimuthalEqualAreaRaw:()=>Sh,geoAzimuthalEquidistant:()=>Ph,geoAzimuthalEquidistantRaw:()=>Ah,geoBounds:()=>Wl,geoCentroid:()=>rs,geoCircle:()=>ps,geoClipAntimeridian:()=>Ts,geoClipCircle:()=>Ms,geoClipExtent:()=>As,geoClipRectangle:()=>Cs,geoConicConformal:()=>Uh,geoConicConformalRaw:()=>Ih,geoConicEqualArea:()=>Eh,geoConicEqualAreaRaw:()=>xh,geoConicEquidistant:()=>Bh,geoConicEquidistantRaw:()=>Fh,geoContains:()=>Ks,geoDistance:()=>qs,geoEquirectangular:()=>jh,geoEquirectangularRaw:()=>Dh,geoGnomonic:()=>Hh,geoGnomonicRaw:()=>qh,geoGraticule:()=>tf,geoGraticule10:()=>ef,geoIdentity:()=>Wh,geoInterpolate:()=>nf,geoLength:()=>js,geoMercator:()=>Rh,geoMercatorRaw:()=>Lh,geoNaturalEarth1:()=>$h,geoNaturalEarth1Raw:()=>Vh,geoOrthographic:()=>Qh,geoOrthographicRaw:()=>Xh,geoPath:()=>ah,geoProjection:()=>_h,geoProjectionMutator:()=>bh,geoRotation:()=>fs,geoStereographic:()=>Kh,geoStereographicRaw:()=>Gh,geoStream:()=>Fc,geoTransform:()=>uh,geoTransverseMercator:()=>Jh,geoTransverseMercatorRaw:()=>Zh,hcl:()=>qn,hierarchy:()=>od,histogram:()=>P,hsl:()=>En,html:()=>Ap,interpolate:()=>_r,interpolateArray:()=>hr,interpolateBasis:()=>er,interpolateBasisClosed:()=>nr,interpolateCool:()=>Nm,interpolateCubehelix:()=>Wr,interpolateCubehelixDefault:()=>Tm,interpolateCubehelixLong:()=>Vr,interpolateDate:()=>dr,interpolateHcl:()=>qr,interpolateHclLong:()=>Hr,interpolateHsl:()=>Dr,interpolateHslLong:()=>jr,interpolateInferno:()=>Rm,interpolateLab:()=>Fr,interpolateMagma:()=>Lm,interpolateNumber:()=>pr,interpolateObject:()=>vr,interpolatePlasma:()=>zm,interpolateRainbow:()=>Cm,interpolateRgb:()=>cr,interpolateRgbBasis:()=>sr,interpolateRgbBasisClosed:()=>fr,interpolateRound:()=>br,interpolateString:()=>mr,interpolateTransformCss:()=>Cr,interpolateTransformSvg:()=>Ar,interpolateViridis:()=>Pm,interpolateWarm:()=>Mm,interpolateZoom:()=>Ir,interrupt:()=>Si,interval:()=>pi,isoFormat:()=>om,isoParse:()=>um,json:()=>Pp,keys:()=>Ka,lab:()=>In,line:()=>a_,lineRadial:()=>v_,linkHorizontal:()=>T_,linkRadial:()=>N_,linkVertical:()=>M_,local:()=>Re,map:()=>Ba,matcher:()=>Ct,max:()=>O,mean:()=>I,median:()=>U,merge:()=>D,min:()=>j,mouse:()=>Ue,namespace:()=>mt,namespaces:()=>yt,nest:()=>qa,now:()=>oi,pack:()=>Cd,packEnclose:()=>fd,packSiblings:()=>kd,pairs:()=>s,partition:()=>Od,path:()=>Pa,permute:()=>F,pie:()=>s_,pointRadial:()=>y_,polygonArea:()=>rp,polygonCentroid:()=>ip,polygonContains:()=>lp,polygonHull:()=>cp,polygonLength:()=>sp,precisionFixed:()=>ic,precisionPrefix:()=>oc,precisionRound:()=>ac,quadtree:()=>ku,quantile:()=>L,quantize:()=>$r,queue:()=>mp,radialArea:()=>g_,radialLine:()=>v_,randomBates:()=>kp,randomExponential:()=>Tp,randomIrwinHall:()=>Ep,randomLogNormal:()=>xp,randomNormal:()=>wp,randomUniform:()=>bp,range:()=>E,request:()=>Sp,rgb:()=>bn,ribbon:()=>Ua,scaleBand:()=>Hp,scaleIdentity:()=>nv,scaleImplicit:()=>Bp,scaleLinear:()=>ev,scaleLog:()=>sv,scaleOrdinal:()=>qp,scalePoint:()=>Wp,scalePow:()=>hv,scaleQuantile:()=>pv,scaleQuantize:()=>vv,scaleSequential:()=>Om,scaleSqrt:()=>dv,scaleThreshold:()=>gv,scaleTime:()=>mm,scaleUtc:()=>_m,scan:()=>B,schemeCategory10:()=>wm,schemeCategory20:()=>km,schemeCategory20b:()=>xm,schemeCategory20c:()=>Em,select:()=>Ae,selectAll:()=>De,selection:()=>Ce,selector:()=>Et,selectorAll:()=>Tt,set:()=>Ga,shuffle:()=>q,stack:()=>Db,stackOffsetDiverging:()=>Fb,stackOffsetExpand:()=>jb,stackOffsetNone:()=>Ob,stackOffsetSilhouette:()=>Bb,stackOffsetWiggle:()=>qb,stackOrderAscending:()=>Hb,stackOrderDescending:()=>Wb,stackOrderInsideOut:()=>Vb,stackOrderNone:()=>Ib,stackOrderReverse:()=>$b,stratify:()=>Bd,style:()=>Vt,sum:()=>H,symbol:()=>V_,symbolCircle:()=>S_,symbolCross:()=>C_,symbolDiamond:()=>L_,symbolSquare:()=>U_,symbolStar:()=>I_,symbolTriangle:()=>j_,symbolWye:()=>Y_,symbols:()=>W_,text:()=>Lp,thresholdFreedmanDiaconis:()=>R,thresholdScott:()=>z,thresholdSturges:()=>A,tickIncrement:()=>S,tickStep:()=>C,ticks:()=>N,timeDay:()=>Dv,timeDays:()=>jv,timeFormat:()=>qg,timeFormatDefaultLocale:()=>nm,timeFormatLocale:()=>Fg,timeFriday:()=>Vv,timeFridays:()=>Jv,timeHour:()=>Ov,timeHours:()=>Iv,timeInterval:()=>_v,timeMillisecond:()=>wv,timeMilliseconds:()=>xv,timeMinute:()=>Lv,timeMinutes:()=>Rv,timeMonday:()=>qv,timeMondays:()=>Qv,timeMonth:()=>ng,timeMonths:()=>rg,timeParse:()=>Hg,timeSaturday:()=>$v,timeSaturdays:()=>tg,timeSecond:()=>Cv,timeSeconds:()=>Av,timeSunday:()=>Bv,timeSundays:()=>Xv,timeThursday:()=>Wv,timeThursdays:()=>Zv,timeTuesday:()=>Hv,timeTuesdays:()=>Gv,timeWednesday:()=>Yv,timeWednesdays:()=>Kv,timeWeek:()=>Bv,timeWeeks:()=>Xv,timeYear:()=>og,timeYears:()=>ag,timeout:()=>di,timer:()=>ci,timerFlush:()=>li,touch:()=>je,touches:()=>Fe,transition:()=>Xi,transpose:()=>Y,tree:()=>Xd,treemap:()=>Jd,treemapBinary:()=>tp,treemapDice:()=>zd,treemapResquarify:()=>np,treemapSlice:()=>Qd,treemapSliceDice:()=>ep,treemapSquarify:()=>Zd,tsv:()=>Up,tsvFormat:()=>vu,tsvFormatRows:()=>gu,tsvParse:()=>du,tsvParseRows:()=>pu,utcDay:()=>pg,utcDays:()=>vg,utcFormat:()=>Yg,utcFriday:()=>xg,utcFridays:()=>Cg,utcHour:()=>fg,utcHours:()=>hg,utcMillisecond:()=>wv,utcMilliseconds:()=>xv,utcMinute:()=>cg,utcMinutes:()=>lg,utcMonday:()=>mg,utcMondays:()=>Tg,utcMonth:()=>Lg,utcMonths:()=>Rg,utcParse:()=>Wg,utcSaturday:()=>Eg,utcSaturdays:()=>Ag,utcSecond:()=>Cv,utcSeconds:()=>Av,utcSunday:()=>yg,utcSundays:()=>kg,utcThursday:()=>wg,utcThursdays:()=>Sg,utcTuesday:()=>_g,utcTuesdays:()=>Mg,utcWednesday:()=>bg,utcWednesdays:()=>Ng,utcWeek:()=>yg,utcWeeks:()=>kg,utcYear:()=>Og,utcYears:()=>Ig,values:()=>Za,variance:()=>v,version:()=>r,voronoi:()=>Rw,window:()=>qt,xml:()=>Rp,zip:()=>V,zoom:()=>$w,zoomIdentity:()=>Uw,zoomTransform:()=>Dw});var r="4.13.0";function i(t,e){return te?1:t>=e?0:NaN}function o(t){var e;return 1===t.length&&(e=t,t=function(t,n){return i(e(t),n)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[o],n)>0?i=o:r=o+1}return r}}}var a=o(i),u=a.right,c=a.left;const l=u;function s(t,e){null==e&&(e=f);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);nt?1:e>=t?0:NaN}function p(t){return null===t?NaN:+t}function v(t,e){var n,r,i=t.length,o=0,a=-1,u=0,c=0;if(null==e)for(;++a1)return c/(o-1)}function g(t,e){var n=v(t,e);return n?Math.sqrt(n):n}function y(t,e){var n,r,i,o=t.length,a=-1;if(null==e){for(;++a=n)for(r=i=n;++an&&(r=n),i=n)for(r=i=n;++an&&(r=n),i0)return[t];if((r=e0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++u=0?(o>=k?10:o>=T?5:o>=M?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=k?10:o>=T?5:o>=M?2:1)}function C(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=k?i*=10:o>=T?i*=5:o>=M&&(i*=2),ef;)h.pop(),--d;var p,v=new Array(d+1);for(i=0;i<=d;++i)(p=v[i]=[]).x0=i>0?h[i-1]:s,p.x1=i=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}function R(t,e,n){return t=b.call(t,p).sort(i),Math.ceil((n-e)/(2*(L(t,.75)-L(t,.25))*Math.pow(t.length,-1/3)))}function z(t,e,n){return Math.ceil((n-e)/(3.5*g(t)*Math.pow(t.length,-1/3)))}function O(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o=n)for(r=n;++or&&(r=n)}else for(;++o=n)for(r=n;++or&&(r=n);return r}function I(t,e){var n,r=t.length,i=r,o=-1,a=0;if(null==e)for(;++o=0;)for(e=(r=t[i]).length;--e>=0;)n[--a]=r[e];return n}function j(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o=n)for(r=n;++on&&(r=n)}else for(;++o=n)for(r=n;++on&&(r=n);return r}function F(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r}function B(t,e){if(n=t.length){var n,r,o=0,a=0,u=t[a];for(null==e&&(e=i);++o=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),a=-1,u=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a0)for(var n,r,i=new Array(n),o=0;o=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),yt.hasOwnProperty(e)?{space:yt[e],local:t}:t}function _t(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===gt&&e.documentElement.namespaceURI===gt?e.createElement(t):e.createElementNS(n,t)}}function bt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function wt(t){var e=mt(t);return(e.local?bt:_t)(e)}function xt(){}function Et(t){return null==t?xt:function(){return this.querySelector(t)}}function kt(){return[]}function Tt(t){return null==t?kt:function(){return this.querySelectorAll(t)}}var Mt=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var Nt=document.documentElement;if(!Nt.matches){var St=Nt.webkitMatchesSelector||Nt.msMatchesSelector||Nt.mozMatchesSelector||Nt.oMatchesSelector;Mt=function(t){return function(){return St.call(this,t)}}}}const Ct=Mt;function At(t){return new Array(t.length)}function Pt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Pt.prototype={constructor:Pt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Lt="$";function Rt(t,e,n,r,i,o){for(var a,u=0,c=e.length,l=o.length;ue?1:t>=e?0:NaN}function It(t){return function(){this.removeAttribute(t)}}function Ut(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Dt(t,e){return function(){this.setAttribute(t,e)}}function jt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Ft(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Bt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function qt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Ht(t){return function(){this.style.removeProperty(t)}}function Yt(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Wt(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Vt(t,e){return t.style.getPropertyValue(e)||qt(t).getComputedStyle(t,null).getPropertyValue(e)}function $t(t){return function(){delete this[t]}}function Xt(t,e){return function(){this[t]=e}}function Qt(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Gt(t){return t.trim().split(/^|\s+/)}function Kt(t){return t.classList||new Zt(t)}function Zt(t){this._node=t,this._names=Gt(t.getAttribute("class")||"")}function Jt(t,e){for(var n=Kt(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ge={},ye=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(ge={mouseenter:"mouseover",mouseleave:"mouseout"}));function me(t,e,n){return t=_e(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function _e(t,e,n){return function(r){var i=ye;ye=r;try{t.call(this,this.__data__,e,n)}finally{ye=i}}}function be(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r=b&&(b=_+1);!(m=g[b])&&++b=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Ot);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?Ht:"function"==typeof e?Wt:Yt)(t,e,null==n?"":n)):Vt(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?$t:"function"==typeof e?Qt:Xt)(t,e)):this.node()[t]},classed:function(t,e){var n=Gt(t+"");if(arguments.length<2){for(var r=Kt(this.node()),i=-1,o=n.length;++i=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(u=e?we:be,null==n&&(n=!1),r=0;rf}c.mouse("drag")}function v(){Ae(ye.view).on("mousemove.drag mouseup.drag",null),Ye(ye.view,n),qe(),c.mouse("end")}function g(){if(i.apply(this,arguments)){var t,e,n=ye.changedTouches,r=o.apply(this,arguments),a=n.length;for(t=0;t>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=cn.exec(t))?yn(parseInt(e[1],16)):(e=ln.exec(t))?new wn(e[1],e[2],e[3],1):(e=sn.exec(t))?new wn(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=fn.exec(t))?mn(e[1],e[2],e[3],e[4]):(e=hn.exec(t))?mn(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=dn.exec(t))?xn(e[1],e[2]/100,e[3]/100,1):(e=pn.exec(t))?xn(e[1],e[2]/100,e[3]/100,e[4]):vn.hasOwnProperty(t)?yn(vn[t]):"transparent"===t?new wn(NaN,NaN,NaN,0):null}function yn(t){return new wn(t>>16&255,t>>8&255,255&t,1)}function mn(t,e,n,r){return r<=0&&(t=e=n=NaN),new wn(t,e,n,r)}function _n(t){return t instanceof tn||(t=gn(t)),t?new wn((t=t.rgb()).r,t.g,t.b,t.opacity):new wn}function bn(t,e,n,r){return 1===arguments.length?_n(t):new wn(t,e,n,null==r?1:r)}function wn(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function xn(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new kn(t,e,n,r)}function En(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof kn)return new kn(t.h,t.s,t.l,t.opacity);if(t instanceof tn||(t=gn(t)),!t)return new kn;if(t instanceof kn)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=e===o?(n-r)/u+6*(n0&&c<1?0:a,new kn(a,u,c,t.opacity)}(t):new kn(t,e,n,null==r?1:r)}function kn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Tn(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Ze(tn,gn,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Ze(wn,bn,Je(tn,{brighter:function(t){return t=null==t?nn:Math.pow(nn,t),new wn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?en:Math.pow(en,t),new wn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),Ze(kn,En,Je(tn,{brighter:function(t){return t=null==t?nn:Math.pow(nn,t),new kn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?en:Math.pow(en,t),new kn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new wn(Tn(t>=240?t-240:t+120,i,r),Tn(t,i,r),Tn(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var Mn=Math.PI/180,Nn=180/Math.PI,Sn=.95047,Cn=1,An=1.08883,Pn=4/29,Ln=6/29,Rn=3*Ln*Ln,zn=Ln*Ln*Ln;function On(t){if(t instanceof Un)return new Un(t.l,t.a,t.b,t.opacity);if(t instanceof Hn){var e=t.h*Mn;return new Un(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof wn||(t=_n(t));var n=Bn(t.r),r=Bn(t.g),i=Bn(t.b),o=Dn((.4124564*n+.3575761*r+.1804375*i)/Sn),a=Dn((.2126729*n+.7151522*r+.072175*i)/Cn);return new Un(116*a-16,500*(o-a),200*(a-Dn((.0193339*n+.119192*r+.9503041*i)/An)),t.opacity)}function In(t,e,n,r){return 1===arguments.length?On(t):new Un(t,e,n,null==r?1:r)}function Un(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Dn(t){return t>zn?Math.pow(t,1/3):t/Rn+Pn}function jn(t){return t>Ln?t*t*t:Rn*(t-Pn)}function Fn(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Bn(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function qn(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Hn)return new Hn(t.h,t.c,t.l,t.opacity);t instanceof Un||(t=On(t));var e=Math.atan2(t.b,t.a)*Nn;return new Hn(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new Hn(t,e,n,null==r?1:r)}function Hn(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}Ze(Un,In,Je(tn,{brighter:function(t){return new Un(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Un(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return t=Cn*jn(t),new wn(Fn(3.2404542*(e=Sn*jn(e))-1.5371385*t-.4985314*(n=An*jn(n))),Fn(-.969266*e+1.8760108*t+.041556*n),Fn(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),Ze(Hn,qn,Je(tn,{brighter:function(t){return new Hn(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Hn(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return On(this).rgb()}}));var Yn=-.14861,Wn=1.78277,Vn=-.29227,$n=-.90649,Xn=1.97294,Qn=Xn*$n,Gn=Xn*Wn,Kn=Wn*Vn-$n*Yn;function Zn(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Jn)return new Jn(t.h,t.s,t.l,t.opacity);t instanceof wn||(t=_n(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(Kn*r+Qn*e-Gn*n)/(Kn+Qn-Gn),o=r-i,a=(Xn*(n-i)-Vn*o)/$n,u=Math.sqrt(a*a+o*o)/(Xn*i*(1-i)),c=u?Math.atan2(a,o)*Nn-120:NaN;return new Jn(c<0?c+360:c,u,i,t.opacity)}(t):new Jn(t,e,n,null==r?1:r)}function Jn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function tr(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}function er(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=r180||n<-180?n-360*Math.round(n/360):n):rr(isNaN(t)?e:t)}function ar(t){return 1==(t=+t)?ur:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):rr(isNaN(e)?n:e)}}function ur(t,e){var n=e-t;return n?ir(t,n):rr(isNaN(t)?e:t)}Ze(Jn,Zn,Je(tn,{brighter:function(t){return t=null==t?nn:Math.pow(nn,t),new Jn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?en:Math.pow(en,t),new Jn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Mn,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new wn(255*(e+n*(Yn*r+Wn*i)),255*(e+n*(Vn*r+$n*i)),255*(e+n*(Xn*r)),this.opacity)}}));const cr=function t(e){var n=ar(e);function r(t,e){var r=n((t=bn(t)).r,(e=bn(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=ur(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function lr(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),u=new Array(i);for(n=0;no&&(i=e.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:pr(n,r)})),o=yr.lastIndex;return o180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:pr(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,u,c),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:pr(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,u,c),function(t,e,n,r,o,a){if(t!==n||e!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:pr(t,n)},{i:u-2,x:pr(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var e,n=-1,r=c.length;++n=0&&e._call.call(null,t),e=e._next;--Gr}function si(){ei=(ti=ri.now())+ni,Gr=Kr=0;try{li()}finally{Gr=0,function(){var t,e,n=Xr,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Xr=e);Qr=t,hi(r)}(),ei=0}}function fi(){var t=ri.now(),e=t-ti;e>Jr&&(ni-=e,ti=t)}function hi(t){Gr||(Kr&&(Kr=clearTimeout(Kr)),t-ei>24?(t<1/0&&(Kr=setTimeout(si,t-ri.now()-ni)),Zr&&(Zr=clearInterval(Zr))):(Zr||(ti=ri.now(),Zr=setInterval(fi,Jr)),Gr=1,ii(si)))}function di(t,e,n){var r=new ui;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r}function pi(t,e,n){var r=new ui,i=e;return null==e?(r.restart(t,e,n),r):(e=+e,n=null==n?oi():+n,r.restart((function o(a){a+=i,r.restart(o,i+=e,n),t(a)}),e,n),r)}ui.prototype=ci.prototype={constructor:ui,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?oi():+n)+(null==e?0:+e),this._next||Qr===this||(Qr?Qr._next=this:Xr=this,Qr=this),this._call=t,this._time=n,hi()},stop:function(){this._call&&(this._call=null,this._time=1/0,hi())}};var vi=vt("start","end","interrupt"),gi=[],yi=0,mi=1,_i=2,bi=3,wi=4,xi=5,Ei=6;function ki(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(t){n.state=mi,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}function a(o){var l,s,f,h;if(n.state!==mi)return c();for(l in i)if((h=i[l]).name===n.name){if(h.state===bi)return di(a);h.state===wi?(h.state=Ei,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[l]):+lyi)throw new Error("too late; already scheduled");return n}function Mi(t,e){var n=Ni(t,e);if(n.state>_i)throw new Error("too late; already started");return n}function Ni(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Si(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>_i&&n.state=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Ti:Mi;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(e,n),a.on=i}}(n,t,e))},attr:function(t,e){var n=mt(t),r="transform"===n?Ar:Li;return this.attrTween(t,"function"==typeof e?(n.local?Di:Ui)(n,r,Pi(this,"attr."+t,e)):null==e?(n.local?zi:Ri)(n):(n.local?Ii:Oi)(n,r,e+""))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=mt(t);return this.tween(n,(r.local?ji:Fi)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?Cr:Li;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var o=Vt(this,t),a=(this.style.removeProperty(t),Vt(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}(t,r)).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof e?function(t,e,n){var r,i,o;return function(){var a=Vt(this,t),u=n(this);return null==u&&(this.style.removeProperty(t),u=Vt(this,t)),a===u?null:a===r&&u===i?o:o=e(r=a,i=u)}}(t,r,Pi(this,"style."+t,e)):function(t,e,n){var r,i;return function(){var o=Vt(this,t);return o===n?null:o===r?i:i=e(r=o,n)}}(t,r,e+""),n)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){function r(){var r=this,i=e.apply(r,arguments);return i&&function(e){r.style.setProperty(t,i(e),n)}}return r._value=e,r}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Pi(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=Ni(this.node(),n).tween,o=0,a=i.length;omi&&n.name===e)return new $i([[t]],qo,e,+r);return null}function Yo(t){return function(){return t}}function Wo(t,e,n){this.target=t,this.type=e,this.selection=n}function Vo(){ye.stopImmediatePropagation()}function $o(){ye.preventDefault(),ye.stopImmediatePropagation()}var Xo={name:"drag"},Qo={name:"space"},Go={name:"handle"},Ko={name:"center"},Zo={name:"x",handles:["e","w"].map(aa),input:function(t,e){return t&&[[t[0],e[0][1]],[t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Jo={name:"y",handles:["n","s"].map(aa),input:function(t,e){return t&&[[e[0][0],t[0]],[e[1][0],t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},ta={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(aa),input:function(t){return t},output:function(t){return t}},ea={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"},na={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},ra={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},ia={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},oa={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function aa(t){return{type:t}}function ua(){return!ye.button}function ca(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function la(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function sa(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function fa(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function ha(){return va(Zo)}function da(){return va(Jo)}function pa(){return va(ta)}function va(t){var e,n=ca,r=ua,i=vt(a,"start","brush","end"),o=6;function a(e){var n=e.property("__brush",f).selectAll(".overlay").data([aa("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",ea.overlay).merge(n).each((function(){var t=la(this).extent;Ae(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([aa("selection")]).enter().append("rect").attr("class","selection").attr("cursor",ea.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return ea[t.type]})),e.each(u).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",s)}function u(){var t=Ae(this),e=la(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-o/2:e[0][0]-o/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-o/2:e[0][1]-o/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+o:o})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+o:o}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(t,e){return t.__brush.emitter||new l(t,e)}function l(t,e){this.that=t,this.args=e,this.state=t.__brush,this.active=0}function s(){if(ye.touches){if(ye.changedTouches.length0&&(n=i-d),x<0?f=h-p:x>0&&(o=a-p),b=Qo,O.attr("cursor",ea.selection),D());break;default:return}$o()}),!0).on("keyup.brush",(function(){switch(ye.keyCode){case 16:A&&(g=y=A=!1,D());break;case 18:b===Ko&&(w<0?l=s:w>0&&(n=i),x<0?f=h:x>0&&(o=a),b=Go,D());break;case 32:b===Qo&&(ye.altKey?(w&&(l=s-d*w,n=i+d*w),x&&(f=h-p*x,o=a+p*x),b=Ko):(w<0?l=s:w>0&&(n=i),x<0?f=h:x>0&&(o=a),b=Go),O.attr("cursor",ea[_]),D());break;default:return}$o()}),!0).on("mousemove.brush",U,!0).on("mouseup.brush",j,!0);He(ye.view)}Vo(),Si(m),u.call(m),R.start()}function U(){var t=Ue(m);!A||g||y||(Math.abs(t[0]-L[0])>Math.abs(t[1]-L[1])?y=!0:g=!0),L=t,v=!0,$o(),D()}function D(){var t;switch(d=L[0]-P[0],p=L[1]-P[1],b){case Qo:case Xo:w&&(d=Math.max(M-n,Math.min(S-l,d)),i=n+d,s=l+d),x&&(p=Math.max(N-o,Math.min(C-f,p)),a=o+p,h=f+p);break;case Go:w<0?(d=Math.max(M-n,Math.min(S-n,d)),i=n+d,s=l):w>0&&(d=Math.max(M-l,Math.min(S-l,d)),i=n,s=l+d),x<0?(p=Math.max(N-o,Math.min(C-o,p)),a=o+p,h=f):x>0&&(p=Math.max(N-f,Math.min(C-f,p)),a=o,h=f+p);break;case Ko:w&&(i=Math.max(M,Math.min(S,n-d*w)),s=Math.max(M,Math.min(S,l+d*w))),x&&(a=Math.max(N,Math.min(C,o-p*x)),h=Math.max(N,Math.min(C,f+p*x)))}sNa)if(Math.abs(s*u-c*l)>Na&&i){var h=n-o,d=r-a,p=u*u+c*c,v=h*h+d*d,g=Math.sqrt(p),y=Math.sqrt(f),m=i*Math.tan((Ta-Math.acos((p+f-v)/(2*g*y)))/2),_=m/y,b=m/g;Math.abs(_-1)>Na&&(this._+="L"+(t+_*l)+","+(e+_*s)),this._+="A"+i+","+i+",0,0,"+ +(s*h>l*d)+","+(this._x1=t+b*u)+","+(this._y1=e+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,o){t=+t,e=+e;var a=(n=+n)*Math.cos(r),u=n*Math.sin(r),c=t+a,l=e+u,s=1^o,f=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>Na||Math.abs(this._y1-l)>Na)&&(this._+="L"+c+","+l),n&&(f<0&&(f=f%Ma+Ma),f>Sa?this._+="A"+n+","+n+",0,1,"+s+","+(t-a)+","+(e-u)+"A"+n+","+n+",0,1,"+s+","+(this._x1=c)+","+(this._y1=l):f>Na&&(this._+="A"+n+","+n+",0,"+ +(f>=Ta)+","+s+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const Pa=Aa;function La(t){return t.source}function Ra(t){return t.target}function za(t){return t.radius}function Oa(t){return t.startAngle}function Ia(t){return t.endAngle}function Ua(){var t=La,e=Ra,n=za,r=Oa,i=Ia,o=null;function a(){var a,u=Ea.call(arguments),c=t.apply(this,u),l=e.apply(this,u),s=+n.apply(this,(u[0]=c,u)),f=r.apply(this,u)-_a,h=i.apply(this,u)-_a,d=s*ga(f),p=s*ya(f),v=+n.apply(this,(u[0]=l,u)),g=r.apply(this,u)-_a,y=i.apply(this,u)-_a;if(o||(o=a=Pa()),o.moveTo(d,p),o.arc(0,0,s,f,h),f===g&&h===y||(o.quadraticCurveTo(0,0,v*ga(g),v*ya(g)),o.arc(0,0,v,g,y)),o.quadraticCurveTo(0,0,d,p),o.closePath(),a)return o=null,a+""||null}return a.radius=function(t){return arguments.length?(n="function"==typeof t?t:ka(+t),a):n},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:ka(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:ka(+t),a):i},a.source=function(e){return arguments.length?(t=e,a):t},a.target=function(t){return arguments.length?(e=t,a):e},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}var Da="$";function ja(){}function Fa(t,e){var n=new ja;if(t instanceof ja)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==e)for(;++i=r.length)return null!=t&&n.sort(t),null!=e?e(n):n;for(var c,l,s,f=-1,h=n.length,d=r[i++],p=Ba(),v=a();++fr.length)return t;var o,u=i[n-1];return null!=e&&n>=r.length?o=t.entries():(o=[],t.each((function(t,e){o.push({key:e,values:a(t,n)})}))),null!=u?o.sort((function(t,e){return u(t.key,e.key)})):o}return n={object:function(t){return o(t,0,Ha,Ya)},map:function(t){return o(t,0,Wa,Va)},entries:function(t){return a(o(t,0,Wa,Va),0)},key:function(t){return r.push(t),n},sortKeys:function(t){return i[r.length-1]=t,n},sortValues:function(e){return t=e,n},rollup:function(t){return e=t,n}}}function Ha(){return{}}function Ya(t,e,n){t[e]=n}function Wa(){return Ba()}function Va(t,e,n){t.set(e,n)}function $a(){}var Xa=Ba.prototype;function Qa(t,e){var n=new $a;if(t instanceof $a)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)for(;++r=o?c=!0:(r=t.charCodeAt(a++))===ru?l=!0:r===iu&&(l=!0,t.charCodeAt(a)===ru&&++a),t.slice(i+1,e-1).replace(/""/g,'"')}for(;a=(o=(v+y)/2))?v=o:y=o,(s=n>=(a=(g+m)/2))?g=a:m=a,i=d,!(d=d[f=s<<1|l]))return i[f]=p,t;if(u=+t._x.call(null,d.data),c=+t._y.call(null,d.data),e===u&&n===c)return p.next=d,i?i[f]=p:t._root=p,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(l=e>=(o=(v+y)/2))?v=o:y=o,(s=n>=(a=(g+m)/2))?g=a:m=a}while((f=s<<1|l)==(h=(c>=a)<<1|u>=o));return i[h]=d,i[f]=p,t}function wu(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function xu(t){return t[0]}function Eu(t){return t[1]}function ku(t,e,n){var r=new Tu(null==e?xu:e,null==n?Eu:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Tu(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Mu(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Nu=ku.prototype=Tu.prototype;function Su(t){return t.x+t.vx}function Cu(t){return t.y+t.vy}function Au(t){var e,n,r=1,i=1;function o(){for(var t,o,u,c,l,s,f,h=e.length,d=0;dc+d||il+d||ou.index){var p=c-a.x-a.vx,v=l-a.y-a.vy,g=p*p+v*v;gt.r&&(t.r=t[e].r)}function u(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;rs&&(s=r),if&&(f=i));for(st||t>i||r>e||e>o))return this;var a,u,c=i-n,l=this._root;switch(u=(e<(r+o)/2)<<1|t<(n+i)/2){case 0:do{(a=new Array(4))[u]=l,l=a}while(o=r+(c*=2),t>(i=n+c)||e>o);break;case 1:do{(a=new Array(4))[u]=l,l=a}while(o=r+(c*=2),(n=i-c)>t||e>o);break;case 2:do{(a=new Array(4))[u]=l,l=a}while(r=o-(c*=2),t>(i=n+c)||r>e);break;case 3:do{(a=new Array(4))[u]=l,l=a}while(r=o-(c*=2),(n=i-c)>t||r>e)}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},Nu.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},Nu.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Nu.find=function(t,e,n){var r,i,o,a,u,c,l,s=this._x0,f=this._y0,h=this._x1,d=this._y1,p=[],v=this._root;for(v&&p.push(new wu(v,s,f,h,d)),null==n?n=1/0:(s=t-n,f=e-n,h=t+n,d=e+n,n*=n);c=p.pop();)if(!(!(v=c.node)||(i=c.x0)>h||(o=c.y0)>d||(a=c.x1)=y)<<1|t>=g)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-l],p[p.length-1-l]=c)}else{var m=t-+this._x.call(null,v.data),_=e-+this._y.call(null,v.data),b=m*m+_*_;if(b=(u=(p+g)/2))?p=u:g=u,(s=a>=(c=(v+y)/2))?v=c:y=c,e=d,!(d=d[f=s<<1|l]))return this;if(!d.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(n=e,h=f)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[f]=i:delete e[f],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[h]=d:this._root=d),this):(this._root=i,this)},Nu.removeAll=function(t){for(var e=0,n=t.length;e1?(null==n?u.remove(t):u.set(t,d(n)),e):u.get(t)},find:function(e,n,r){var i,o,a,u,c,l=0,s=t.length;for(null==r?r=1/0:r*=r,l=0;l1?(l.on(t,n),e):l.on(t)}}}function Fu(){var t,e,n,r,i=mu(-30),o=1,a=1/0,u=.81;function c(r){var i,o=t.length,a=ku(t,zu,Ou).visitAfter(s);for(n=r,i=0;i=a)){(t.data!==e||t.next)&&(0===s&&(d+=(s=_u())*s),0===f&&(d+=(f=_u())*f),d1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Wu(t){return(t=Yu(Math.abs(t)))?t[1]:NaN}function Vu(t,e){var n=Yu(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const $u={"":function(t,e){t:for(var n,r=(t=t.toPrecision(e)).length,i=1,o=-1;i0&&(o=0)}return o>0?t.slice(0,o)+t.slice(n+1):t},"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Vu(100*t,e)},r:Vu,s:function(t,e){var n=Yu(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(Iu=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Yu(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};var Xu=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function Qu(t){return new Gu(t)}function Gu(t){if(!(e=Xu.exec(t)))throw new Error("invalid format: "+t);var e,n=e[1]||" ",r=e[2]||">",i=e[3]||"-",o=e[4]||"",a=!!e[5],u=e[6]&&+e[6],c=!!e[7],l=e[8]&&+e[8].slice(1),s=e[9]||"";"n"===s?(c=!0,s="g"):$u[s]||(s=""),(a||"0"===n&&"="===r)&&(a=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=i,this.symbol=o,this.zero=a,this.width=u,this.comma=c,this.precision=l,this.type=s}function Ku(t){return t}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,tc,ec=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function nc(t){var e,n,r=t.grouping&&t.thousands?(e=t.grouping,n=t.thousands,function(t,r){for(var i=t.length,o=[],a=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),o.push(t.substring(i-=u,i+u)),!((c+=u+1)>r));)u=e[a=(a+1)%e.length];return o.reverse().join(n)}):Ku,i=t.currency,o=t.decimal,a=t.numerals?function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(t.numerals):Ku,u=t.percent||"%";function c(t){var e=(t=Qu(t)).fill,n=t.align,c=t.sign,l=t.symbol,s=t.zero,f=t.width,h=t.comma,d=t.precision,p=t.type,v="$"===l?i[0]:"#"===l&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",g="$"===l?i[1]:/[%p]/.test(p)?u:"",y=$u[p],m=!p||/[defgprs%]/.test(p);function _(t){var i,u,l,_=v,b=g;if("c"===p)b=y(t)+b,t="";else{var w=(t=+t)<0;if(t=y(Math.abs(t),d),w&&0==+t&&(w=!1),_=(w?"("===c?c:"-":"-"===c||"("===c?"":c)+_,b=("s"===p?ec[8+Iu/3]:"")+b+(w&&"("===c?")":""),m)for(i=-1,u=t.length;++i(l=t.charCodeAt(i))||l>57){b=(46===l?o+t.slice(i+1):t.slice(i))+b,t=t.slice(0,i);break}}h&&!s&&(t=r(t,1/0));var x=_.length+t.length+b.length,E=x>1)+_+t+b+E.slice(x);break;default:t=E+_+t+b}return a(t)}return d=null==d?p?6:12:/[gprs]/.test(p)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),_.toString=function(){return t+""},_}return{format:c,formatPrefix:function(t,e){var n=c(((t=Qu(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Wu(e)/3))),i=Math.pow(10,-r),o=ec[8+r/3];return function(t){return n(i*t)+o}}}}function rc(t){return Zu=nc(t),Ju=Zu.format,tc=Zu.formatPrefix,Zu}function ic(t){return Math.max(0,-Wu(Math.abs(t)))}function oc(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Wu(e)/3)))-Wu(Math.abs(t)))}function ac(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Wu(e)-Wu(t))+1}function uc(){return new cc}function cc(){this.reset()}rc({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),cc.prototype={constructor:cc,reset:function(){this.s=this.t=0},add:function(t){sc(lc,t,this.t),sc(this,lc.s,this.s),this.s?this.t+=lc.t:this.s=lc.t},valueOf:function(){return this.s}};var lc=new cc;function sc(t,e,n){var r=t.s=e+n,i=r-e,o=r-i;t.t=e-o+(n-i)}var fc=1e-6,hc=1e-12,dc=Math.PI,pc=dc/2,vc=dc/4,gc=2*dc,yc=180/dc,mc=dc/180,_c=Math.abs,bc=Math.atan,wc=Math.atan2,xc=Math.cos,Ec=Math.ceil,kc=Math.exp,Tc=(Math.floor,Math.log),Mc=Math.pow,Nc=Math.sin,Sc=Math.sign||function(t){return t>0?1:t<0?-1:0},Cc=Math.sqrt,Ac=Math.tan;function Pc(t){return t>1?0:t<-1?dc:Math.acos(t)}function Lc(t){return t>1?pc:t<-1?-pc:Math.asin(t)}function Rc(t){return(t=Nc(t/2))*t}function zc(){}function Oc(t,e){t&&Uc.hasOwnProperty(t.type)&&Uc[t.type](t,e)}var Ic={Feature:function(t,e){Oc(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r=0?1:-1,i=r*n,o=xc(e=(e*=mc)/2+vc),a=Nc(e),u=Wc*a,c=Yc*o+u*xc(i),l=u*r*Nc(i);Vc.add(wc(l,c)),Hc=t,Yc=o,Wc=a}function Jc(t){return $c.reset(),Fc(t,Xc),2*$c}function tl(t){return[wc(t[1],t[0]),Lc(t[2])]}function el(t){var e=t[0],n=t[1],r=xc(n);return[r*xc(e),r*Nc(e),Nc(n)]}function nl(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function rl(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function il(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function ol(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function al(t){var e=Cc(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var ul,cl,ll,sl,fl,hl,dl,pl,vl,gl,yl,ml,_l,bl,wl,xl,El,kl,Tl,Ml,Nl,Sl,Cl,Al,Pl,Ll,Rl=uc(),zl={point:Ol,lineStart:Ul,lineEnd:Dl,polygonStart:function(){zl.point=jl,zl.lineStart=Fl,zl.lineEnd=Bl,Rl.reset(),Xc.polygonStart()},polygonEnd:function(){Xc.polygonEnd(),zl.point=Ol,zl.lineStart=Ul,zl.lineEnd=Dl,Vc<0?(ul=-(ll=180),cl=-(sl=90)):Rl>fc?sl=90:Rl<-fc&&(cl=-90),gl[0]=ul,gl[1]=ll}};function Ol(t,e){vl.push(gl=[ul=t,ll=t]),esl&&(sl=e)}function Il(t,e){var n=el([t*mc,e*mc]);if(pl){var r=rl(pl,n),i=rl([r[1],-r[0],0],r);al(i),i=tl(i);var o,a=t-fl,u=a>0?1:-1,c=i[0]*yc*u,l=_c(a)>180;l^(u*flsl&&(sl=o):l^(u*fl<(c=(c+360)%360-180)&&csl&&(sl=e)),l?tql(ul,ll)&&(ll=t):ql(t,ll)>ql(ul,ll)&&(ul=t):ll>=ul?(tll&&(ll=t)):t>fl?ql(ul,t)>ql(ul,ll)&&(ll=t):ql(t,ll)>ql(ul,ll)&&(ul=t)}else vl.push(gl=[ul=t,ll=t]);esl&&(sl=e),pl=n,fl=t}function Ul(){zl.point=Il}function Dl(){gl[0]=ul,gl[1]=ll,zl.point=Ol,pl=null}function jl(t,e){if(pl){var n=t-fl;Rl.add(_c(n)>180?n+(n>0?360:-360):n)}else hl=t,dl=e;Xc.point(t,e),Il(t,e)}function Fl(){Xc.lineStart()}function Bl(){jl(hl,dl),Xc.lineEnd(),_c(Rl)>fc&&(ul=-(ll=180)),gl[0]=ul,gl[1]=ll,pl=null}function ql(t,e){return(e-=t)<0?e+360:e}function Hl(t,e){return t[0]-e[0]}function Yl(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:eql(r[0],r[1])&&(r[1]=i[1]),ql(i[0],r[1])>ql(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,e=0,r=o[n=o.length-1];e<=n;r=i,++e)i=o[e],(u=ql(r[1],i[0]))>a&&(a=u,ul=i[0],ll=r[1])}return vl=gl=null,ul===1/0||cl===1/0?[[NaN,NaN],[NaN,NaN]]:[[ul,cl],[ll,sl]]}var Vl={sphere:zc,point:$l,lineStart:Ql,lineEnd:Zl,polygonStart:function(){Vl.lineStart=Jl,Vl.lineEnd=ts},polygonEnd:function(){Vl.lineStart=Ql,Vl.lineEnd=Zl}};function $l(t,e){t*=mc;var n=xc(e*=mc);Xl(n*xc(t),n*Nc(t),Nc(e))}function Xl(t,e,n){++yl,_l+=(t-_l)/yl,bl+=(e-bl)/yl,wl+=(n-wl)/yl}function Ql(){Vl.point=Gl}function Gl(t,e){t*=mc;var n=xc(e*=mc);Al=n*xc(t),Pl=n*Nc(t),Ll=Nc(e),Vl.point=Kl,Xl(Al,Pl,Ll)}function Kl(t,e){t*=mc;var n=xc(e*=mc),r=n*xc(t),i=n*Nc(t),o=Nc(e),a=wc(Cc((a=Pl*o-Ll*i)*a+(a=Ll*r-Al*o)*a+(a=Al*i-Pl*r)*a),Al*r+Pl*i+Ll*o);ml+=a,xl+=a*(Al+(Al=r)),El+=a*(Pl+(Pl=i)),kl+=a*(Ll+(Ll=o)),Xl(Al,Pl,Ll)}function Zl(){Vl.point=$l}function Jl(){Vl.point=es}function ts(){ns(Sl,Cl),Vl.point=$l}function es(t,e){Sl=t,Cl=e,t*=mc,e*=mc,Vl.point=ns;var n=xc(e);Al=n*xc(t),Pl=n*Nc(t),Ll=Nc(e),Xl(Al,Pl,Ll)}function ns(t,e){t*=mc;var n=xc(e*=mc),r=n*xc(t),i=n*Nc(t),o=Nc(e),a=Pl*o-Ll*i,u=Ll*r-Al*o,c=Al*i-Pl*r,l=Cc(a*a+u*u+c*c),s=Lc(l),f=l&&-s/l;Tl+=f*a,Ml+=f*u,Nl+=f*c,ml+=s,xl+=s*(Al+(Al=r)),El+=s*(Pl+(Pl=i)),kl+=s*(Ll+(Ll=o)),Xl(Al,Pl,Ll)}function rs(t){yl=ml=_l=bl=wl=xl=El=kl=Tl=Ml=Nl=0,Fc(t,Vl);var e=Tl,n=Ml,r=Nl,i=e*e+n*n+r*r;return idc?t-gc:t<-dc?t+gc:t,e]}function us(t,e,n){return(t%=gc)?e||n?os(ls(t),ss(e,n)):ls(t):e||n?ss(e,n):as}function cs(t){return function(e,n){return[(e+=t)>dc?e-gc:e<-dc?e+gc:e,n]}}function ls(t){var e=cs(t);return e.invert=cs(-t),e}function ss(t,e){var n=xc(t),r=Nc(t),i=xc(e),o=Nc(e);function a(t,e){var a=xc(e),u=xc(t)*a,c=Nc(t)*a,l=Nc(e),s=l*n+u*r;return[wc(c*i-s*o,u*n-l*r),Lc(s*i+c*o)]}return a.invert=function(t,e){var a=xc(e),u=xc(t)*a,c=Nc(t)*a,l=Nc(e),s=l*i-c*o;return[wc(c*i+l*o,u*n+s*r),Lc(s*n-u*r)]},a}function fs(t){function e(e){return(e=t(e[0]*mc,e[1]*mc))[0]*=yc,e[1]*=yc,e}return t=us(t[0]*mc,t[1]*mc,t.length>2?t[2]*mc:0),e.invert=function(e){return(e=t.invert(e[0]*mc,e[1]*mc))[0]*=yc,e[1]*=yc,e},e}function hs(t,e,n,r,i,o){if(n){var a=xc(e),u=Nc(e),c=r*n;null==i?(i=e+r*gc,o=e-c/2):(i=ds(a,i),o=ds(a,o),(r>0?io)&&(i+=r*gc));for(var l,s=i;r>0?s>o:s1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function gs(t,e){return _c(t[0]-e[0])=0;--o)i.point((s=l[o])[0],s[1]);else r(h.x,h.p.x,-1,i);h=h.p}l=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}}function _s(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r=0?1:-1,k=E*x,T=k>dc,M=p*b;if(bs.add(wc(M*E*Nc(k),v*w+M*xc(k))),o+=T?x+E*gc:x,T^h>=n^m>=n){var N=rl(el(f),el(y));al(N);var S=rl(i,N);al(S);var C=(T^x>=0?-1:1)*Lc(S[2]);(r>C||r===C&&(N[0]||N[1]))&&(a+=T^x>=0?1:-1)}}return(o<-fc||o0){for(f||(i.polygonStart(),f=!0),i.lineStart(),t=0;t1&&2&c&&h.push(h.pop().concat(h.shift())),a.push(h.filter(Es))}return h}}function Es(t){return t.length>1}function ks(t,e){return((t=t.x)[0]<0?t[1]-pc-fc:pc-t[1])-((e=e.x)[0]<0?e[1]-pc-fc:pc-e[1])}const Ts=xs((function(){return!0}),(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,a){var u=o>0?dc:-dc,c=_c(o-n);_c(c-dc)0?pc:-pc),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(o,r),e=0):i!==u&&c>=dc&&(_c(n-i)fc?bc((Nc(e)*(o=xc(r))*Nc(n)-Nc(r)*(i=xc(e))*Nc(t))/(i*o*a)):(e+r)/2}(n,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),e=0),t.point(n=o,r=a),i=u},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*pc,r.point(-dc,i),r.point(0,i),r.point(dc,i),r.point(dc,0),r.point(dc,-i),r.point(0,-i),r.point(-dc,-i),r.point(-dc,0),r.point(-dc,i);else if(_c(t[0]-e[0])>fc){var o=t[0]0,i=_c(e)>fc;function o(t,n){return xc(t)*xc(n)>e}function a(t,n,r){var i=[1,0,0],o=rl(el(t),el(n)),a=nl(o,o),u=o[0],c=a-u*u;if(!c)return!r&&t;var l=e*a/c,s=-e*u/c,f=rl(i,o),h=ol(i,l);il(h,ol(o,s));var d=f,p=nl(h,d),v=nl(d,d),g=p*p-v*(nl(h,h)-1);if(!(g<0)){var y=Cc(g),m=ol(d,(-p-y)/v);if(il(m,h),m=tl(m),!r)return m;var _,b=t[0],w=n[0],x=t[1],E=n[1];w0^m[1]<(_c(m[0]-b)dc^(b<=m[0]&&m[0]<=w)){var M=ol(d,(-p+y)/v);return il(M,h),[m,tl(M)]}}}function u(e,n){var i=r?t:dc-t,o=0;return e<-i?o|=1:e>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return xs(o,(function(t){var e,n,c,l,s;return{lineStart:function(){l=c=!1,s=1},point:function(f,h){var d,p=[f,h],v=o(f,h),g=r?v?0:u(f,h):v?u(f+(f<0?dc:-dc),h):0;if(!e&&(l=c=v)&&t.lineStart(),v!==c&&(!(d=a(e,p))||gs(e,d)||gs(p,d))&&(p[0]+=fc,p[1]+=fc,v=o(p[0],p[1])),v!==c)s=0,v?(t.lineStart(),d=a(p,e),t.point(d[0],d[1])):(d=a(e,p),t.point(d[0],d[1]),t.lineEnd()),e=d;else if(i&&e&&r^v){var y;g&n||!(y=a(p,e,!0))||(s=0,r?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!v||e&&gs(e,p)||t.point(p[0],p[1]),e=p,c=v,n=g},lineEnd:function(){c&&t.lineEnd(),e=null},clean:function(){return s|(l&&c)<<1}}}),(function(e,r,i,o){hs(o,t,n,i,e,r)}),r?[0,-t]:[-dc,t-dc])}var Ns=1e9,Ss=-Ns;function Cs(t,e,n,r){function i(i,o){return t<=i&&i<=n&&e<=o&&o<=r}function o(i,o,u,l){var s=0,f=0;if(null==i||(s=a(i,u))!==(f=a(o,u))||c(i,o)<0^u>0)do{l.point(0===s||3===s?t:n,s>1?r:e)}while((s=(s+u+4)%4)!==f);else l.point(o[0],o[1])}function a(r,i){return _c(r[0]-t)0?0:3:_c(r[0]-n)0?2:1:_c(r[1]-e)0?1:0:i>0?3:2}function u(t,e){return c(t.x,e.x)}function c(t,e){var n=a(t,1),r=a(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(a){var c,l,s,f,h,d,p,v,g,y,m,_=a,b=vs(),w={point:x,lineStart:function(){w.point=E,l&&l.push(s=[]);y=!0,g=!1,p=v=NaN},lineEnd:function(){c&&(E(f,h),d&&g&&b.rejoin(),c.push(b.result()));w.point=x,g&&_.lineEnd()},polygonStart:function(){_=b,c=[],l=[],m=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=l.length;nr&&(h-o)*(r-a)>(d-a)*(t-o)&&++e:d<=r&&(h-o)*(r-a)<(d-a)*(t-o)&&--e;return e}(),n=m&&e,i=(c=D(c)).length;(n||i)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&ms(c,u,e,o,a),a.polygonEnd());_=a,c=l=s=null}};function x(t,e){i(t,e)&&_.point(t,e)}function E(o,a){var u=i(o,a);if(l&&s.push([o,a]),y)f=o,h=a,d=u,y=!1,u&&(_.lineStart(),_.point(o,a));else if(u&&g)_.point(o,a);else{var c=[p=Math.max(Ss,Math.min(Ns,p)),v=Math.max(Ss,Math.min(Ns,v))],b=[o=Math.max(Ss,Math.min(Ns,o)),a=Math.max(Ss,Math.min(Ns,a))];!function(t,e,n,r,i,o){var a,u=t[0],c=t[1],l=0,s=1,f=e[0]-u,h=e[1]-c;if(a=n-u,f||!(a>0)){if(a/=f,f<0){if(a0){if(a>s)return;a>l&&(l=a)}if(a=i-u,f||!(a<0)){if(a/=f,f<0){if(a>s)return;a>l&&(l=a)}else if(f>0){if(a0)){if(a/=h,h<0){if(a0){if(a>s)return;a>l&&(l=a)}if(a=o-c,h||!(a<0)){if(a/=h,h<0){if(a>s)return;a>l&&(l=a)}else if(h>0){if(a0&&(t[0]=u+l*f,t[1]=c+l*h),s<1&&(e[0]=u+s*f,e[1]=c+s*h),!0}}}}}(c,b,t,e,n,r)?u&&(_.lineStart(),_.point(o,a),m=!1):(g||(_.lineStart(),_.point(c[0],c[1])),_.point(b[0],b[1]),u||_.lineEnd(),m=!1)}p=o,v=a,g=u}return w}}function As(){var t,e,n,r=0,i=0,o=960,a=500;return n={stream:function(n){return t&&e===n?t:t=Cs(r,i,o,a)(e=n)},extent:function(u){return arguments.length?(r=+u[0][0],i=+u[0][1],o=+u[1][0],a=+u[1][1],t=e=null,n):[[r,i],[o,a]]}}}var Ps,Ls,Rs,zs=uc(),Os={sphere:zc,point:zc,lineStart:function(){Os.point=Us,Os.lineEnd=Is},lineEnd:zc,polygonStart:zc,polygonEnd:zc};function Is(){Os.point=Os.lineEnd=zc}function Us(t,e){Ps=t*=mc,Ls=Nc(e*=mc),Rs=xc(e),Os.point=Ds}function Ds(t,e){t*=mc;var n=Nc(e*=mc),r=xc(e),i=_c(t-Ps),o=xc(i),a=r*Nc(i),u=Rs*n-Ls*r*o,c=Ls*n+Rs*r*o;zs.add(wc(Cc(a*a+u*u),c)),Ps=t,Ls=n,Rs=r}function js(t){return zs.reset(),Fc(t,Os),+zs}var Fs=[null,null],Bs={type:"LineString",coordinates:Fs};function qs(t,e){return Fs[0]=t,Fs[1]=e,js(Bs)}var Hs={Feature:function(t,e){return Ws(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++rfc})).map(c)).concat(E(Ec(o/d)*d,i,d).filter((function(t){return _c(t%v)>fc})).map(l))}return y.lines=function(){return m().map((function(t){return{type:"LineString",coordinates:t}}))},y.outline=function(){return{type:"Polygon",coordinates:[s(r).concat(f(a).slice(1),s(n).reverse().slice(1),f(u).reverse().slice(1))]}},y.extent=function(t){return arguments.length?y.extentMajor(t).extentMinor(t):y.extentMinor()},y.extentMajor=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],u=+t[0][1],a=+t[1][1],r>n&&(t=r,r=n,n=t),u>a&&(t=u,u=a,a=t),y.precision(g)):[[r,u],[n,a]]},y.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],o=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),o>i&&(n=o,o=i,i=n),y.precision(g)):[[e,o],[t,i]]},y.step=function(t){return arguments.length?y.stepMajor(t).stepMinor(t):y.stepMinor()},y.stepMajor=function(t){return arguments.length?(p=+t[0],v=+t[1],y):[p,v]},y.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],y):[h,d]},y.precision=function(h){return arguments.length?(g=+h,c=Zs(o,i,90),l=Js(e,t,g),s=Zs(u,a,90),f=Js(r,n,g),y):g},y.extentMajor([[-180,-90+fc],[180,90-fc]]).extentMinor([[-180,-80-fc],[180,80+fc]])}function ef(){return tf()()}function nf(t,e){var n=t[0]*mc,r=t[1]*mc,i=e[0]*mc,o=e[1]*mc,a=xc(r),u=Nc(r),c=xc(o),l=Nc(o),s=a*xc(n),f=a*Nc(n),h=c*xc(i),d=c*Nc(i),p=2*Lc(Cc(Rc(o-r)+a*c*Rc(i-n))),v=Nc(p),g=p?function(t){var e=Nc(t*=p)/v,n=Nc(p-t)/v,r=n*s+e*h,i=n*f+e*d,o=n*u+e*l;return[wc(i,r)*yc,wc(o,Cc(r*r+i*i))*yc]}:function(){return[n*yc,r*yc]};return g.distance=p,g}function rf(t){return t}var of,af,uf,cf,lf=uc(),sf=uc(),ff={point:zc,lineStart:zc,lineEnd:zc,polygonStart:function(){ff.lineStart=hf,ff.lineEnd=vf},polygonEnd:function(){ff.lineStart=ff.lineEnd=ff.point=zc,lf.add(_c(sf)),sf.reset()},result:function(){var t=lf/2;return lf.reset(),t}};function hf(){ff.point=df}function df(t,e){ff.point=pf,of=uf=t,af=cf=e}function pf(t,e){sf.add(cf*t-uf*e),uf=t,cf=e}function vf(){pf(of,af)}const gf=ff;var yf=1/0,mf=yf,_f=-yf,bf=_f,wf={point:function(t,e){t_f&&(_f=t);ebf&&(bf=e)},lineStart:zc,lineEnd:zc,polygonStart:zc,polygonEnd:zc,result:function(){var t=[[yf,mf],[_f,bf]];return _f=bf=-(mf=yf=1/0),t}};const xf=wf;var Ef,kf,Tf,Mf,Nf=0,Sf=0,Cf=0,Af=0,Pf=0,Lf=0,Rf=0,zf=0,Of=0,If={point:Uf,lineStart:Df,lineEnd:Bf,polygonStart:function(){If.lineStart=qf,If.lineEnd=Hf},polygonEnd:function(){If.point=Uf,If.lineStart=Df,If.lineEnd=Bf},result:function(){var t=Of?[Rf/Of,zf/Of]:Lf?[Af/Lf,Pf/Lf]:Cf?[Nf/Cf,Sf/Cf]:[NaN,NaN];return Nf=Sf=Cf=Af=Pf=Lf=Rf=zf=Of=0,t}};function Uf(t,e){Nf+=t,Sf+=e,++Cf}function Df(){If.point=jf}function jf(t,e){If.point=Ff,Uf(Tf=t,Mf=e)}function Ff(t,e){var n=t-Tf,r=e-Mf,i=Cc(n*n+r*r);Af+=i*(Tf+t)/2,Pf+=i*(Mf+e)/2,Lf+=i,Uf(Tf=t,Mf=e)}function Bf(){If.point=Uf}function qf(){If.point=Yf}function Hf(){Wf(Ef,kf)}function Yf(t,e){If.point=Wf,Uf(Ef=Tf=t,kf=Mf=e)}function Wf(t,e){var n=t-Tf,r=e-Mf,i=Cc(n*n+r*r);Af+=i*(Tf+t)/2,Pf+=i*(Mf+e)/2,Lf+=i,Rf+=(i=Mf*t-Tf*e)*(Tf+t),zf+=i*(Mf+e),Of+=3*i,Uf(Tf=t,Mf=e)}const Vf=If;function $f(t){this._context=t}$f.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,gc)}},result:zc};var Xf,Qf,Gf,Kf,Zf,Jf=uc(),th={point:zc,lineStart:function(){th.point=eh},lineEnd:function(){Xf&&nh(Qf,Gf),th.point=zc},polygonStart:function(){Xf=!0},polygonEnd:function(){Xf=null},result:function(){var t=+Jf;return Jf.reset(),t}};function eh(t,e){th.point=nh,Qf=Kf=t,Gf=Zf=e}function nh(t,e){Kf-=t,Zf-=e,Jf.add(Cc(Kf*Kf+Zf*Zf)),Kf=t,Zf=e}const rh=th;function ih(){this._string=[]}function oh(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function ah(t,e){var n,r,i=4.5;function o(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),Fc(t,n(r))),r.result()}return o.area=function(t){return Fc(t,n(gf)),gf.result()},o.measure=function(t){return Fc(t,n(rh)),rh.result()},o.bounds=function(t){return Fc(t,n(xf)),xf.result()},o.centroid=function(t){return Fc(t,n(Vf)),Vf.result()},o.projection=function(e){return arguments.length?(n=null==e?(t=null,rf):(t=e).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(e=null,new ih):new $f(e=t),"function"!=typeof i&&r.pointRadius(i),o):e},o.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),o):i},o.projection(t).context(e)}function uh(t){return{stream:ch(t)}}function ch(t){return function(e){var n=new lh;for(var r in t)n[r]=t[r];return n.stream=e,n}}function lh(){}function sh(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),Fc(n,t.stream(xf)),e(xf.result()),null!=r&&t.clipExtent(r),t}function fh(t,e,n){return sh(t,(function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+e[0][0]+(r-o*(n[1][0]+n[0][0]))/2,u=+e[0][1]+(i-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([a,u])}),n)}function hh(t,e,n){return fh(t,[[0,0],e],n)}function dh(t,e,n){return sh(t,(function(n){var r=+e,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,a=-i*n[0][1];t.scale(150*i).translate([o,a])}),n)}function ph(t,e,n){return sh(t,(function(n){var r=+e,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],a=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([o,a])}),n)}ih.prototype={_radius:4.5,_circle:oh(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=oh(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},lh.prototype={constructor:lh,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var vh=16,gh=xc(30*mc);function yh(t,e){return+e?function(t,e){function n(r,i,o,a,u,c,l,s,f,h,d,p,v,g){var y=l-r,m=s-i,_=y*y+m*m;if(_>4*e&&v--){var b=a+h,w=u+d,x=c+p,E=Cc(b*b+w*w+x*x),k=Lc(x/=E),T=_c(_c(x)-1)e||_c((y*C+m*A)/_-.5)>.3||a*h+u*d+c*p2?t[2]%360*mc:0,S()):[g*yc,y*yc,m*yc]},T.precision=function(t){return arguments.length?(k=yh(N,E=t*t),C()):Cc(E)},T.fitExtent=function(t,e){return fh(T,t,e)},T.fitSize=function(t,e){return hh(T,t,e)},T.fitWidth=function(t,e){return dh(T,t,e)},T.fitHeight=function(t,e){return ph(T,t,e)},function(){return e=t.apply(this,arguments),T.invert=e.invert&&M,S()}}function wh(t){var e=0,n=dc/3,r=bh(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*mc,n=t[1]*mc):[e*yc,n*yc]},i}function xh(t,e){var n=Nc(t),r=(n+Nc(e))/2;if(_c(r)=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:a).invert(t)},s.stream=function(n){return t&&e===n?t:(r=[a.stream(e=n),u.stream(n),c.stream(n)],i=r.length,t={point:function(t,e){for(var n=-1;++n0?e<-pc+fc&&(e=-pc+fc):e>pc-fc&&(e=pc-fc);var n=i/Mc(Oh(e),r);return[n*Nc(r*t),i-n*xc(r*t)]}return o.invert=function(t,e){var n=i-e,o=Sc(r)*Cc(t*t+n*n);return[wc(t,_c(n))/r*Sc(n),2*bc(Mc(i/o,1/r))-pc]},o}function Uh(){return wh(Ih).scale(109.5).parallels([30,30])}function Dh(t,e){return[t,e]}function jh(){return _h(Dh).scale(152.63)}function Fh(t,e){var n=xc(t),r=t===e?Nc(t):(n-xc(e))/(e-t),i=n/r+t;if(_c(r)2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}function td(t,e){return t.parent===e.parent?1:2}function ed(t,e){return t+e.x}function nd(t,e){return Math.max(t,e.y)}function rd(){var t=td,e=1,n=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(e){var n=e.children;n?(e.x=function(t){return t.reduce(ed,0)/t.length}(n),e.y=function(t){return 1+t.reduce(nd,0)}(n)):(e.x=o?a+=t(e,o):0,e.y=0,o=e)}));var u=function(t){for(var e;e=t.children;)t=e[0];return t}(i),c=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),l=u.x-t(u,c)/2,s=c.x+t(c,u)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-l)/(s-l)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function id(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function od(t,e){var n,r,i,o,a,u=new ld(t),c=+t.value&&(u.value=t.value),l=[u];for(null==e&&(e=ad);n=l.pop();)if(c&&(n.value=+n.data.value),(i=e(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)l.push(r=n.children[o]=new ld(i[o])),r.parent=n,r.depth=n.depth+1;return u.eachBefore(cd)}function ad(t){return t.children}function ud(t){t.data=t.data.data}function cd(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function ld(t){this.data=t,this.depth=this.height=0,this.parent=null}Ah.invert=Nh((function(t){return t})),Lh.invert=function(t,e){return[t,2*bc(kc(e))-pc]},Dh.invert=Dh,qh.invert=Nh(bc),Vh.invert=function(t,e){var n,r=e,i=25;do{var o=r*r,a=o*o;r-=n=(r*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-e)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(_c(n)>fc&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},Xh.invert=Nh(Lc),Gh.invert=Nh((function(t){return 2*bc(t)})),Zh.invert=function(t,e){return[-e,2*bc(kc(t))-pc]},ld.prototype=od.prototype={constructor:ld,count:function(){return this.eachAfter(id)},each:function(t){var e,n,r,i,o=this,a=[o];do{for(e=a.reverse(),a=[];o=e.pop();)if(t(o),n=o.children)for(r=0,i=n.length;r=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();for(;t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return od(this).eachBefore(ud)}};var sd=Array.prototype.slice;function fd(t){for(var e,n,r=0,i=(t=function(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}(sd.call(t))).length,o=[];r0&&n*n>r*r+i*i}function vd(t,e){for(var n=0;nn*n+r*r}function wd(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function xd(t){this._=t,this.next=null,this.previous=null}function Ed(t){if(!(i=t.length))return 0;var e,n,r,i,o,a,u,c,l,s,f;if((e=t[0]).x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;_d(n,e,r=t[2]),e=new xd(e),n=new xd(n),r=new xd(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(u=3;u0)throw new Error("cycle");return o}return n.id=function(e){return arguments.length?(t=Td(e),n):t},n.parentId=function(t){return arguments.length?(e=Td(t),n):e},n}function qd(t,e){return t.parent===e.parent?1:2}function Hd(t){var e=t.children;return e?e[0]:t.t}function Yd(t){var e=t.children;return e?e[e.length-1]:t.t}function Wd(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Vd(t,e,n){return t.a.parent===e.parent?t.a:n}function $d(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function Xd(){var t=qd,e=1,n=1,r=null;function i(i){var c=function(t){for(var e,n,r,i,o,a=new $d(t,0),u=[a];e=u.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)u.push(n=e.children[i]=new $d(r[i],i)),n.parent=e;return(a.parent=new $d(null,0)).children=[a],a}(i);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)i.eachBefore(u);else{var l=i,s=i,f=i;i.eachBefore((function(t){t.xs.x&&(s=t),t.depth>f.depth&&(f=t)}));var h=l===s?1:t(l,s)/2,d=h-l.x,p=e/(s.x+h+d),v=n/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*v}))}return i}function o(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,o=e,a=e,u=n,c=o.parent.children[0],l=o.m,s=a.m,f=u.m,h=c.m;u=Yd(u),o=Hd(o),u&&o;)c=Hd(c),(a=Yd(a)).a=e,(i=u.z+f-o.z-l+t(u._,o._))>0&&(Wd(Vd(u,e,r),e,i),l+=i,s+=i),f+=u.m,l+=o.m,h+=c.m,s+=a.m;u&&!Yd(a)&&(a.t=u,a.m+=f-s),o&&!Hd(c)&&(c.t=o,c.m+=l-h,r=e)}return r}(e,i,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function Qd(t,e,n,r,i){for(var o,a=t.children,u=-1,c=a.length,l=t.value&&(i-n)/t.value;++uh&&(h=u),g=s*s*v,(d=Math.max(h/g,g/f))>p){s-=u;break}p=d}y.push(a={value:s,dice:c1?e:1)},n}(Gd);function Jd(){var t=Zd,e=!1,n=1,r=1,i=[0],o=Md,a=Md,u=Md,c=Md,l=Md;function s(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(f),i=[0],e&&t.eachBefore(Rd),t}function f(e){var n=i[e.depth],r=e.x0+n,s=e.y0+n,f=e.x1-n,h=e.y1-n;f=n-1){var s=u[e];return s.x0=i,s.y0=o,s.x1=a,void(s.y1=c)}var f=l[e],h=r/2+f,d=e+1,p=n-1;for(;d>>1;l[v]c-o){var m=(i*y+a*g)/r;t(e,d,g,i,o,m,c),t(d,n,y,m,o,a,c)}else{var _=(o*y+c*g)/r;t(e,d,g,i,o,a,_),t(d,n,y,i,_,a,c)}}(0,c,t.value,e,n,r,i)}function ep(t,e,n,r,i){(1&t.depth?Qd:zd)(t,e,n,r,i)}const np=function t(e){function n(t,n,r,i,o){if((a=t._squarify)&&a.ratio===e)for(var a,u,c,l,s,f=-1,h=a.length,d=t.value;++f1?e:1)},n}(Gd);function rp(t){for(var e,n=-1,r=t.length,i=t[r-1],o=0;++n1&&op(t[n[r-2]],t[n[r-1]],t[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function cp(t){if((n=t.length)<3)return null;var e,n,r=new Array(n),i=new Array(n);for(e=0;e=0;--e)l.push(t[r[o[e]][2]]);for(e=+u;eu!=l>u&&a<(c-n)*(u-r)/(l-r)+n&&(s=!s),c=n,l=r;return s}function sp(t){for(var e,n,r=-1,i=t.length,o=t[i-1],a=o[0],u=o[1],c=0;++r=0;)if((n=t._tasks[r])&&(t._tasks[r]=null,n.abort))try{n.abort()}catch(e){}t._active=NaN,yp(t)}function yp(t){if(!t._active&&t._call){var e=t._data;t._data=void 0,t._call(t._error,e)}}function mp(t){if(null==t)t=1/0;else if(!((t=+t)>=1))throw new Error("invalid concurrency");return new dp(t)}function _p(){return Math.random()}dp.prototype=mp.prototype={constructor:dp,defer:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var e=fp.call(arguments,1);return e.push(t),++this._waiting,this._tasks.push(e),pp(this),this},abort:function(){return null==this._error&&gp(this,new Error("abort")),this},await:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(e,n){t.apply(null,[e].concat(n))},yp(this),this},awaitAll:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=t,yp(this),this}};const bp=function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,1===arguments.length?(n=t,t=0):n-=t,function(){return e()*n+t}}return n.source=t,n}(_p),wp=function t(e){function n(t,n){var r,i;return t=null==t?0:+t,n=null==n?1:+n,function(){var o;if(null!=r)o=r,r=null;else do{r=2*e()-1,o=2*e()-1,i=r*r+o*o}while(!i||i>1);return t+n*o*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(_p),xp=function t(e){function n(){var t=wp.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(_p),Ep=function t(e){function n(t){return function(){for(var n=0,r=0;r=200&&r<300||304===r){if(i)try{e=i.call(n,c)}catch(t){return void a.call("error",n,t)}else e=c;a.call("load",n,e)}else a.call("error",n,t)}if("undefined"!=typeof XDomainRequest&&!("withCredentials"in c)&&/^(http(s)?:)?\/\//.test(t)&&(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=c.ontimeout=h:c.onreadystatechange=function(t){c.readyState>3&&h(t)},c.onprogress=function(t){a.call("progress",n,t)},n={header:function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?u.get(t):(null==e?u.remove(t):u.set(t,e+""),n)},mimeType:function(t){return arguments.length?(r=null==t?null:t+"",n):r},responseType:function(t){return arguments.length?(o=t,n):o},timeout:function(t){return arguments.length?(f=+t,n):f},user:function(t){return arguments.length<1?l:(l=null==t?null:t+"",n)},password:function(t){return arguments.length<1?s:(s=null==t?null:t+"",n)},response:function(t){return i=t,n},get:function(t,e){return n.send("GET",t,e)},post:function(t,e){return n.send("POST",t,e)},send:function(e,i,h){return c.open(e,t,!0,l,s),null==r||u.has("accept")||u.set("accept",r+",*/*"),c.setRequestHeader&&u.each((function(t,e){c.setRequestHeader(e,t)})),null!=r&&c.overrideMimeType&&c.overrideMimeType(r),null!=o&&(c.responseType=o),f>0&&(c.timeout=f),null==h&&"function"==typeof i&&(h=i,i=null),null!=h&&1===h.length&&(h=function(t){return function(e,n){t(null==e?n:null)}}(h)),null!=h&&n.on("error",h).on("load",(function(t){h(null,t)})),a.call("beforesend",n,c),c.send(null==i?null:i),n},abort:function(){return c.abort(),n},on:function(){var t=a.on.apply(a,arguments);return t===a?n:t}},null!=e){if("function"!=typeof e)throw new Error("invalid callback: "+e);return n.get(e)}return n}function Cp(t,e){return function(n,r){var i=Sp(n).mimeType(t).response(e);if(null!=r){if("function"!=typeof r)throw new Error("invalid callback: "+r);return i.get(r)}return i}}const Ap=Cp("text/html",(function(t){return document.createRange().createContextualFragment(t.responseText)})),Pp=Cp("application/json",(function(t){return JSON.parse(t.responseText)})),Lp=Cp("text/plain",(function(t){return t.responseText})),Rp=Cp("application/xml",(function(t){var e=t.responseXML;if(!e)throw new Error("parse error");return e}));var zp=n(72);function Op(t,e){return function(n,r,i){arguments.length<3&&(i=r,r=null);var o=Sp(n).mimeType(t);return o.row=function(t){return arguments.length?o.response(function(t,e){return function(n){return t(n.responseText,e)}}(e,r=t)):r},o.row(r),i?o.get(i):o}}const Ip=Op("text/csv",zp.sw),Up=Op("text/tab-separated-values",zp.Nu);var Dp=Array.prototype,jp=Dp.map,Fp=Dp.slice,Bp={name:"implicit"};function qp(t){var e=Ba(),n=[],r=Bp;function i(i){var o=i+"",a=e.get(o);if(!a){if(r!==Bp)return r;e.set(o,a=n.push(i))}return t[(a-1)%t.length]}return t=null==t?[]:Fp.call(t),i.domain=function(t){if(!arguments.length)return n.slice();n=[],e=Ba();for(var r,o,a=-1,u=t.length;++a2?Kp:Gp,r=i=null,s}function s(e){return(r||(r=n(o,a,c?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=e?0:t>=n?1:r(t)}}}(t):t,u)))(+e)}return s.invert=function(t){return(i||(i=n(a,o,Qp,c?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:r(t)}}}(e):e)))(+t)},s.domain=function(t){return arguments.length?(o=jp.call(t,$p),l()):o.slice()},s.range=function(t){return arguments.length?(a=Fp.call(t),l()):a.slice()},s.rangeRound=function(t){return a=Fp.call(t),u=br,l()},s.clamp=function(t){return arguments.length?(c=!!t,l()):c},s.interpolate=function(t){return arguments.length?(u=t,l()):u},l()}function tv(t){var e=t.domain;return t.ticks=function(t){var n=e();return N(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){return function(t,e,n){var r,i=t[0],o=t[t.length-1],a=C(i,o,null==e?10:e);switch((n=Qu(null==n?",f":n)).type){case"s":var u=Math.max(Math.abs(i),Math.abs(o));return null!=n.precision||isNaN(r=oc(a,u))||(n.precision=r),tc(n,u);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=ac(a,Math.max(Math.abs(i),Math.abs(o))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=ic(a))||(n.precision=r-2*("%"===n.type))}return Ju(n)}(e(),t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),o=0,a=i.length-1,u=i[o],c=i[a];return c0?r=S(u=Math.floor(u/r)*r,c=Math.ceil(c/r)*r,n):r<0&&(r=S(u=Math.ceil(u*r)/r,c=Math.floor(c*r)/r,n)),r>0?(i[o]=Math.floor(u/r)*r,i[a]=Math.ceil(c/r)*r,e(i)):r<0&&(i[o]=Math.ceil(u*r)/r,i[a]=Math.floor(c*r)/r,e(i)),t},t}function ev(){var t=Jp(Qp,pr);return t.copy=function(){return Zp(t,ev())},tv(t)}function nv(){var t=[0,1];function e(t){return+t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=jp.call(n,$p),e):t.slice()},e.copy=function(){return nv().domain(t)},tv(e)}function rv(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a0){for(;hc)break;v.push(f)}}else for(;h=1;--s)if(!((f=l*s)c)break;v.push(f)}}else v=N(h,d,Math.min(d-h,p)).map(i);return o?v.reverse():v},t.tickFormat=function(e,o){if(null==o&&(o=10===n?".0e":","),"function"!=typeof o&&(o=Ju(o)),e===1/0)return o;null==e&&(e=10);var a=Math.max(1,n*e/t.ticks().length);return function(t){var e=t/i(Math.round(r(t)));return e*n0?n[i-1]:t[0],i=n?[r[n-1],e]:[r[a-1],r[a]]},o.copy=function(){return vv().domain([t,e]).range(i)},tv(o)}function gv(){var t=[.5],e=[0,1],n=1;function r(r){if(r<=r)return e[l(t,r,0,n)]}return r.domain=function(i){return arguments.length?(t=Fp.call(i),n=Math.min(t.length,e.length-1),r):t.slice()},r.range=function(i){return arguments.length?(e=Fp.call(i),n=Math.min(t.length,e.length-1),r):e.slice()},r.invertExtent=function(n){var r=e.indexOf(n);return[t[r-1],t[r]]},r.copy=function(){return gv().domain(t).range(e)},r}var yv=new Date,mv=new Date;function _v(t,e,n,r){function i(e){return t(e=new Date(+e)),e}return i.floor=i,i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return u;do{u.push(a=new Date(+n)),e(n,o),t(n)}while(a=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return yv.setTime(+e),mv.setTime(+r),t(yv),t(mv),Math.floor(n(yv,mv))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var bv=_v((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));bv.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?_v((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):bv:null};const wv=bv;var xv=bv.range,Ev=1e3,kv=6e4,Tv=36e5,Mv=864e5,Nv=6048e5,Sv=_v((function(t){t.setTime(Math.floor(t/Ev)*Ev)}),(function(t,e){t.setTime(+t+e*Ev)}),(function(t,e){return(e-t)/Ev}),(function(t){return t.getUTCSeconds()}));const Cv=Sv;var Av=Sv.range,Pv=_v((function(t){t.setTime(Math.floor(t/kv)*kv)}),(function(t,e){t.setTime(+t+e*kv)}),(function(t,e){return(e-t)/kv}),(function(t){return t.getMinutes()}));const Lv=Pv;var Rv=Pv.range,zv=_v((function(t){var e=t.getTimezoneOffset()*kv%Tv;e<0&&(e+=Tv),t.setTime(Math.floor((+t-e)/Tv)*Tv+e)}),(function(t,e){t.setTime(+t+e*Tv)}),(function(t,e){return(e-t)/Tv}),(function(t){return t.getHours()}));const Ov=zv;var Iv=zv.range,Uv=_v((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*kv)/Mv}),(function(t){return t.getDate()-1}));const Dv=Uv;var jv=Uv.range;function Fv(t){return _v((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*kv)/Nv}))}var Bv=Fv(0),qv=Fv(1),Hv=Fv(2),Yv=Fv(3),Wv=Fv(4),Vv=Fv(5),$v=Fv(6),Xv=Bv.range,Qv=qv.range,Gv=Hv.range,Kv=Yv.range,Zv=Wv.range,Jv=Vv.range,tg=$v.range,eg=_v((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));const ng=eg;var rg=eg.range,ig=_v((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));ig.every=function(t){return isFinite(t=Math.floor(t))&&t>0?_v((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const og=ig;var ag=ig.range,ug=_v((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*kv)}),(function(t,e){return(e-t)/kv}),(function(t){return t.getUTCMinutes()}));const cg=ug;var lg=ug.range,sg=_v((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*Tv)}),(function(t,e){return(e-t)/Tv}),(function(t){return t.getUTCHours()}));const fg=sg;var hg=sg.range,dg=_v((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/Mv}),(function(t){return t.getUTCDate()-1}));const pg=dg;var vg=dg.range;function gg(t){return _v((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/Nv}))}var yg=gg(0),mg=gg(1),_g=gg(2),bg=gg(3),wg=gg(4),xg=gg(5),Eg=gg(6),kg=yg.range,Tg=mg.range,Mg=_g.range,Ng=bg.range,Sg=wg.range,Cg=xg.range,Ag=Eg.range,Pg=_v((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));const Lg=Pg;var Rg=Pg.range,zg=_v((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));zg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?_v((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const Og=zg;var Ig=zg.range;function Ug(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Dg(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function jg(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function Fg(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,l=Zg(i),s=Jg(i),f=Zg(o),h=Jg(o),d=Zg(a),p=Jg(a),v=Zg(u),g=Jg(u),y=Zg(c),m=Jg(c),_={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:_y,e:_y,f:ky,H:by,I:wy,j:xy,L:Ey,m:Ty,M:My,p:function(t){return i[+(t.getHours()>=12)]},Q:tm,s:em,S:Ny,u:Sy,U:Cy,V:Ay,w:Py,W:Ly,x:null,X:null,y:Ry,Y:zy,Z:Oy,"%":Jy},b={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:Iy,e:Iy,f:By,H:Uy,I:Dy,j:jy,L:Fy,m:qy,M:Hy,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:tm,s:em,S:Yy,u:Wy,U:Vy,V:$y,w:Xy,W:Qy,x:null,X:null,y:Gy,Y:Ky,Z:Zy,"%":Jy},w={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=m[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return k(t,e,n,r)},d:ly,e:ly,f:vy,H:fy,I:fy,j:sy,L:py,m:cy,M:hy,p:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=s[r[0].toLowerCase()],n+r[0].length):-1},Q:yy,s:my,S:dy,u:ey,U:ny,V:ry,w:ty,W:iy,x:function(t,e,r){return k(t,n,e,r)},X:function(t,e,n){return k(t,r,e,n)},y:ay,Y:oy,Z:uy,"%":gy};function x(t,e){return function(n){var r,i,o,a=[],u=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++u53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Dg(jg(o.y))).getUTCDay(),r=i>4||0===i?mg.ceil(r):mg(r),r=pg.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=e(jg(o.y))).getDay(),r=i>4||0===i?qv.ceil(r):qv(r),r=Dv.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Dg(jg(o.y)).getUTCDay():e(jg(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Dg(o)):e(o)}}function k(t,e,n,r){for(var i,o,a=0,u=e.length,c=n.length;a=c)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=w[i in Vg?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return _.x=x(n,_),_.X=x(r,_),_.c=x(e,_),b.x=x(n,b),b.X=x(r,b),b.c=x(e,b),{format:function(t){var e=x(t+="",_);return e.toString=function(){return t},e},parse:function(t){var e=E(t+="",Ug);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=E(t,Dg);return e.toString=function(){return t},e}}}var Bg,qg,Hg,Yg,Wg,Vg={"-":"",_:" ",0:"0"},$g=/^\s*\d+/,Xg=/^%/,Qg=/[\\^$*+?|[\]().{}]/g;function Gg(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3),n+r[0].length):-1}function uy(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function cy(t,e,n){var r=$g.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ly(t,e,n){var r=$g.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function sy(t,e,n){var r=$g.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function fy(t,e,n){var r=$g.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function hy(t,e,n){var r=$g.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function dy(t,e,n){var r=$g.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function py(t,e,n){var r=$g.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function vy(t,e,n){var r=$g.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function gy(t,e,n){var r=Xg.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function yy(t,e,n){var r=$g.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function my(t,e,n){var r=$g.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function _y(t,e){return Gg(t.getDate(),e,2)}function by(t,e){return Gg(t.getHours(),e,2)}function wy(t,e){return Gg(t.getHours()%12||12,e,2)}function xy(t,e){return Gg(1+Dv.count(og(t),t),e,3)}function Ey(t,e){return Gg(t.getMilliseconds(),e,3)}function ky(t,e){return Ey(t,e)+"000"}function Ty(t,e){return Gg(t.getMonth()+1,e,2)}function My(t,e){return Gg(t.getMinutes(),e,2)}function Ny(t,e){return Gg(t.getSeconds(),e,2)}function Sy(t){var e=t.getDay();return 0===e?7:e}function Cy(t,e){return Gg(Bv.count(og(t),t),e,2)}function Ay(t,e){var n=t.getDay();return t=n>=4||0===n?Wv(t):Wv.ceil(t),Gg(Wv.count(og(t),t)+(4===og(t).getDay()),e,2)}function Py(t){return t.getDay()}function Ly(t,e){return Gg(qv.count(og(t),t),e,2)}function Ry(t,e){return Gg(t.getFullYear()%100,e,2)}function zy(t,e){return Gg(t.getFullYear()%1e4,e,4)}function Oy(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Gg(e/60|0,"0",2)+Gg(e%60,"0",2)}function Iy(t,e){return Gg(t.getUTCDate(),e,2)}function Uy(t,e){return Gg(t.getUTCHours(),e,2)}function Dy(t,e){return Gg(t.getUTCHours()%12||12,e,2)}function jy(t,e){return Gg(1+pg.count(Og(t),t),e,3)}function Fy(t,e){return Gg(t.getUTCMilliseconds(),e,3)}function By(t,e){return Fy(t,e)+"000"}function qy(t,e){return Gg(t.getUTCMonth()+1,e,2)}function Hy(t,e){return Gg(t.getUTCMinutes(),e,2)}function Yy(t,e){return Gg(t.getUTCSeconds(),e,2)}function Wy(t){var e=t.getUTCDay();return 0===e?7:e}function Vy(t,e){return Gg(yg.count(Og(t),t),e,2)}function $y(t,e){var n=t.getUTCDay();return t=n>=4||0===n?wg(t):wg.ceil(t),Gg(wg.count(Og(t),t)+(4===Og(t).getUTCDay()),e,2)}function Xy(t){return t.getUTCDay()}function Qy(t,e){return Gg(mg.count(Og(t),t),e,2)}function Gy(t,e){return Gg(t.getUTCFullYear()%100,e,2)}function Ky(t,e){return Gg(t.getUTCFullYear()%1e4,e,4)}function Zy(){return"+0000"}function Jy(){return"%"}function tm(t){return+t}function em(t){return Math.floor(+t/1e3)}function nm(t){return Bg=Fg(t),qg=Bg.format,Hg=Bg.parse,Yg=Bg.utcFormat,Wg=Bg.utcParse,Bg}nm({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var rm="%Y-%m-%dT%H:%M:%S.%LZ";var im=Date.prototype.toISOString?function(t){return t.toISOString()}:Yg(rm);const om=im;var am=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:Wg(rm);const um=am;var cm=1e3,lm=60*cm,sm=60*lm,fm=24*sm,hm=7*fm,dm=30*fm,pm=365*fm;function vm(t){return new Date(t)}function gm(t){return t instanceof Date?+t:+new Date(+t)}function ym(t,e,n,r,i,a,u,c,l){var s=Jp(Qp,pr),f=s.invert,h=s.domain,d=l(".%L"),p=l(":%S"),v=l("%I:%M"),g=l("%I %p"),y=l("%a %d"),m=l("%b %d"),_=l("%B"),b=l("%Y"),w=[[u,1,cm],[u,5,5*cm],[u,15,15*cm],[u,30,30*cm],[a,1,lm],[a,5,5*lm],[a,15,15*lm],[a,30,30*lm],[i,1,sm],[i,3,3*sm],[i,6,6*sm],[i,12,12*sm],[r,1,fm],[r,2,2*fm],[n,1,hm],[e,1,dm],[e,3,3*dm],[t,1,pm]];function x(o){return(u(o)1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return Sm.h=360*t-100,Sm.s=1.5-1.5*e,Sm.l=.8-.9*e,Sm+""}function Am(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}const Pm=Am(bm("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var Lm=Am(bm("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Rm=Am(bm("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),zm=Am(bm("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Om(t){var e=0,n=1,r=!1;function i(i){var o=(i-e)/(n-e);return t(r?Math.max(0,Math.min(1,o)):o)}return i.domain=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.clamp=function(t){return arguments.length?(r=!!t,i):r},i.interpolator=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return Om(t).domain([e,n]).clamp(r)},tv(i)}function Im(t){return function(){return t}}var Um=Math.abs,Dm=Math.atan2,jm=Math.cos,Fm=Math.max,Bm=Math.min,qm=Math.sin,Hm=Math.sqrt,Ym=1e-12,Wm=Math.PI,Vm=Wm/2,$m=2*Wm;function Xm(t){return t>=1?Vm:t<=-1?-Vm:Math.asin(t)}function Qm(t){return t.innerRadius}function Gm(t){return t.outerRadius}function Km(t){return t.startAngle}function Zm(t){return t.endAngle}function Jm(t){return t&&t.padAngle}function t_(t,e,n,r,i,o,a){var u=t-n,c=e-r,l=(a?o:-o)/Hm(u*u+c*c),s=l*c,f=-l*u,h=t+s,d=e+f,p=n+s,v=r+f,g=(h+p)/2,y=(d+v)/2,m=p-h,_=v-d,b=m*m+_*_,w=i-o,x=h*v-p*d,E=(_<0?-1:1)*Hm(Fm(0,w*w*b-x*x)),k=(x*_-m*E)/b,T=(-x*m-_*E)/b,M=(x*_+m*E)/b,N=(-x*m+_*E)/b,S=k-g,C=T-y,A=M-g,P=N-y;return S*S+C*C>A*A+P*P&&(k=M,T=N),{cx:k,cy:T,x01:-s,y01:-f,x11:k*(i/w-1),y11:T*(i/w-1)}}function e_(){var t=Qm,e=Gm,n=Im(0),r=null,i=Km,o=Zm,a=Jm,u=null;function c(){var c,l,s=+t.apply(this,arguments),f=+e.apply(this,arguments),h=i.apply(this,arguments)-Vm,d=o.apply(this,arguments)-Vm,p=Um(d-h),v=d>h;if(u||(u=c=Pa()),fYm)if(p>$m-Ym)u.moveTo(f*jm(h),f*qm(h)),u.arc(0,0,f,h,d,!v),s>Ym&&(u.moveTo(s*jm(d),s*qm(d)),u.arc(0,0,s,d,h,v));else{var g,y,m=h,_=d,b=h,w=d,x=p,E=p,k=a.apply(this,arguments)/2,T=k>Ym&&(r?+r.apply(this,arguments):Hm(s*s+f*f)),M=Bm(Um(f-s)/2,+n.apply(this,arguments)),N=M,S=M;if(T>Ym){var C=Xm(T/s*qm(k)),A=Xm(T/f*qm(k));(x-=2*C)>Ym?(b+=C*=v?1:-1,w-=C):(x=0,b=w=(h+d)/2),(E-=2*A)>Ym?(m+=A*=v?1:-1,_-=A):(E=0,m=_=(h+d)/2)}var P=f*jm(m),L=f*qm(m),R=s*jm(w),z=s*qm(w);if(M>Ym){var O=f*jm(_),I=f*qm(_),U=s*jm(b),D=s*qm(b);if(pYm?function(t,e,n,r,i,o,a,u){var c=n-t,l=r-e,s=a-i,f=u-o,h=(s*(e-o)-f*(t-i))/(f*c-s*l);return[t+h*c,e+h*l]}(P,L,U,D,O,I,R,z):[R,z],F=P-j[0],B=L-j[1],q=O-j[0],H=I-j[1],Y=1/qm(function(t){return t>1?0:t<-1?Wm:Math.acos(t)}((F*q+B*H)/(Hm(F*F+B*B)*Hm(q*q+H*H)))/2),W=Hm(j[0]*j[0]+j[1]*j[1]);N=Bm(M,(s-W)/(Y-1)),S=Bm(M,(f-W)/(Y+1))}}E>Ym?S>Ym?(g=t_(U,D,P,L,f,S,v),y=t_(O,I,R,z,f,S,v),u.moveTo(g.cx+g.x01,g.cy+g.y01),SYm&&x>Ym?N>Ym?(g=t_(R,z,O,I,s,-N,v),y=t_(P,L,U,D,s,-N,v),u.lineTo(g.cx+g.x01,g.cy+g.y01),N=s;--f)u.point(g[f],y[f]);u.lineEnd(),u.areaEnd()}v&&(g[l]=+t(h,l,c),y[l]=+n(h,l,c),u.point(e?+e(h,l,c):g[l],r?+r(h,l,c):y[l]))}if(d)return u=null,d+""||null}function l(){return a_().defined(i).curve(a).context(o)}return c.x=function(n){return arguments.length?(t="function"==typeof n?n:Im(+n),e=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:Im(+e),c):t},c.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Im(+t),c):e},c.y=function(t){return arguments.length?(n="function"==typeof t?t:Im(+t),r=null,c):n},c.y0=function(t){return arguments.length?(n="function"==typeof t?t:Im(+t),c):n},c.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Im(+t),c):r},c.lineX0=c.lineY0=function(){return l().x(t).y(n)},c.lineY1=function(){return l().x(t).y(r)},c.lineX1=function(){return l().x(e).y(n)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:Im(!!t),c):i},c.curve=function(t){return arguments.length?(a=t,null!=o&&(u=a(o)),c):a},c.context=function(t){return arguments.length?(null==t?o=u=null:u=a(o=t),c):o},c}function c_(t,e){return et?1:e>=t?0:NaN}function l_(t){return t}function s_(){var t=l_,e=c_,n=null,r=Im(0),i=Im($m),o=Im(0);function a(a){var u,c,l,s,f,h=a.length,d=0,p=new Array(h),v=new Array(h),g=+r.apply(this,arguments),y=Math.min($m,Math.max(-$m,i.apply(this,arguments)-g)),m=Math.min(Math.abs(y)/h,o.apply(this,arguments)),_=m*(y<0?-1:1);for(u=0;u0&&(d+=f);for(null!=e?p.sort((function(t,n){return e(v[t],v[n])})):null!=n&&p.sort((function(t,e){return n(a[t],a[e])})),u=0,l=d?(y-h*_)/d:0;u0?f*l:0)+_,v[c]={data:a[c],index:u,value:f,startAngle:g,endAngle:s,padAngle:m};return v}return a.value=function(e){return arguments.length?(t="function"==typeof e?e:Im(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Im(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Im(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:Im(+t),a):o},a}n_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var f_=d_(r_);function h_(t){this._curve=t}function d_(t){function e(e){return new h_(t(e))}return e._curve=t,e}function p_(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(d_(t)):e()._curve},t}function v_(){return p_(a_().curve(f_))}function g_(){var t=u_().curve(f_),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return p_(n())},delete t.lineX0,t.lineEndAngle=function(){return p_(r())},delete t.lineX1,t.lineInnerRadius=function(){return p_(i())},delete t.lineY0,t.lineOuterRadius=function(){return p_(o())},delete t.lineY1,t.curve=function(t){return arguments.length?e(d_(t)):e()._curve},t}function y_(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}h_.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var m_=Array.prototype.slice;function __(t){return t.source}function b_(t){return t.target}function w_(t){var e=__,n=b_,r=i_,i=o_,o=null;function a(){var a,u=m_.call(arguments),c=e.apply(this,u),l=n.apply(this,u);if(o||(o=a=Pa()),t(o,+r.apply(this,(u[0]=c,u)),+i.apply(this,u),+r.apply(this,(u[0]=l,u)),+i.apply(this,u)),a)return o=null,a+""||null}return a.source=function(t){return arguments.length?(e=t,a):e},a.target=function(t){return arguments.length?(n=t,a):n},a.x=function(t){return arguments.length?(r="function"==typeof t?t:Im(+t),a):r},a.y=function(t){return arguments.length?(i="function"==typeof t?t:Im(+t),a):i},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}function x_(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function E_(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function k_(t,e,n,r,i){var o=y_(e,n),a=y_(e,n=(n+i)/2),u=y_(r,n),c=y_(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(a[0],a[1],u[0],u[1],c[0],c[1])}function T_(){return w_(x_)}function M_(){return w_(E_)}function N_(){var t=w_(k_);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const S_={draw:function(t,e){var n=Math.sqrt(e/Wm);t.moveTo(n,0),t.arc(0,0,n,0,$m)}},C_={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}};var A_=Math.sqrt(1/3),P_=2*A_;const L_={draw:function(t,e){var n=Math.sqrt(e/P_),r=n*A_;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}};var R_=Math.sin(Wm/10)/Math.sin(7*Wm/10),z_=Math.sin($m/10)*R_,O_=-Math.cos($m/10)*R_;const I_={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=z_*n,i=O_*n;t.moveTo(0,-n),t.lineTo(r,i);for(var o=1;o<5;++o){var a=$m*o/5,u=Math.cos(a),c=Math.sin(a);t.lineTo(c*n,-u*n),t.lineTo(u*r-c*i,c*r+u*i)}t.closePath()}},U_={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}};var D_=Math.sqrt(3);const j_={draw:function(t,e){var n=-Math.sqrt(e/(3*D_));t.moveTo(0,2*n),t.lineTo(-D_*n,-n),t.lineTo(D_*n,-n),t.closePath()}};var F_=-.5,B_=Math.sqrt(3)/2,q_=1/Math.sqrt(12),H_=3*(q_/2+1);const Y_={draw:function(t,e){var n=Math.sqrt(e/H_),r=n/2,i=n*q_,o=r,a=n*q_+n,u=-o,c=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(u,c),t.lineTo(F_*r-B_*i,B_*r+F_*i),t.lineTo(F_*o-B_*a,B_*o+F_*a),t.lineTo(F_*u-B_*c,B_*u+F_*c),t.lineTo(F_*r+B_*i,F_*i-B_*r),t.lineTo(F_*o+B_*a,F_*a-B_*o),t.lineTo(F_*u+B_*c,F_*c-B_*u),t.closePath()}};var W_=[S_,C_,L_,U_,I_,j_,Y_];function V_(){var t=Im(S_),e=Im(64),n=null;function r(){var r;if(n||(n=r=Pa()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(e){return arguments.length?(t="function"==typeof e?e:Im(e),r):t},r.size=function(t){return arguments.length?(e="function"==typeof t?t:Im(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r}function $_(){}function X_(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Q_(t){this._context=t}function G_(t){return new Q_(t)}function K_(t){this._context=t}function Z_(t){return new K_(t)}function J_(t){this._context=t}function tb(t){return new J_(t)}function eb(t,e){this._basis=new Q_(t),this._beta=e}Q_.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:X_(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:X_(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},K_.prototype={areaStart:$_,areaEnd:$_,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:X_(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},J_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:X_(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},eb.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],a=t[n]-i,u=e[n]-o,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*a),this._beta*e[c]+(1-this._beta)*(o+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const nb=function t(e){function n(t){return 1===e?new Q_(t):new eb(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function rb(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function ib(t,e){this._context=t,this._k=(1-e)/6}ib.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:rb(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:rb(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ob=function t(e){function n(t){return new ib(t,e)}return n.tension=function(e){return t(+e)},n}(0);function ab(t,e){this._context=t,this._k=(1-e)/6}ab.prototype={areaStart:$_,areaEnd:$_,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:rb(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ub=function t(e){function n(t){return new ab(t,e)}return n.tension=function(e){return t(+e)},n}(0);function cb(t,e){this._context=t,this._k=(1-e)/6}cb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:rb(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const lb=function t(e){function n(t){return new cb(t,e)}return n.tension=function(e){return t(+e)},n}(0);function sb(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>Ym){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>Ym){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,s=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*l+t._x1*t._l23_2a-e*t._l12_2a)/s,a=(a*l+t._y1*t._l23_2a-n*t._l12_2a)/s}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function fb(t,e){this._context=t,this._alpha=e}fb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:sb(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const hb=function t(e){function n(t){return e?new fb(t,e):new ib(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function db(t,e){this._context=t,this._alpha=e}db.prototype={areaStart:$_,areaEnd:$_,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:sb(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const pb=function t(e){function n(t){return e?new db(t,e):new ab(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function vb(t,e){this._context=t,this._alpha=e}vb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:sb(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const gb=function t(e){function n(t){return e?new vb(t,e):new cb(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function yb(t){this._context=t}function mb(t){return new yb(t)}function _b(t){return t<0?-1:1}function bb(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),u=(o*i+a*r)/(r+i);return(_b(o)+_b(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function wb(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function xb(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*e,o-u,a-u*n,o,a)}function Eb(t){this._context=t}function kb(t){this._context=new Tb(t)}function Tb(t){this._context=t}function Mb(t){return new Eb(t)}function Nb(t){return new kb(t)}function Sb(t){this._context=t}function Cb(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e1)for(var n,r,i,o=1,a=t[e[0]],u=a.length;o=0;)n[e]=e;return n}function Ub(t,e){return t[e]}function Db(){var t=Im([]),e=Ib,n=Ob,r=Ub;function i(i){var o,a,u=t.apply(this,arguments),c=i.length,l=u.length,s=new Array(l);for(o=0;o0){for(var n,r,i,o=0,a=t[0].length;o1)for(var n,r,i,o,a,u,c=0,l=t[e[0]].length;c=0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):r[0]=o}function Bb(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],o=i.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;a=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},Kb.prototype={constructor:Kb,insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=ew(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(Jb(this,n),n=(t=n).U),n.C=!1,r.C=!0,tw(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(tw(this,n),n=(t=n).U),n.C=!1,r.C=!0,Jb(this,r)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,i=t.U,o=t.L,a=t.R;if(n=o?a?ew(a):o:a,i?i.L===t?i.L=n:i.R=n:this._=n,o&&a?(r=n.C,n.C=t.C,n.L=o,o.U=n,n!==a?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=a,a.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,Jb(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,tw(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,Jb(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,tw(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,Jb(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,tw(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};const nw=Kb;function rw(t,e,n,r){var i=[null,null],o=Nw.push(i)-1;return i.left=t,i.right=e,n&&ow(i,t,e,n),r&&ow(i,e,t,r),Tw[t.index].halfedges.push(o),Tw[e.index].halfedges.push(o),i}function iw(t,e,n){var r=[e,n];return r.left=t,r}function ow(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function aw(t,e,n,r,i){var o,a=t[0],u=t[1],c=a[0],l=a[1],s=0,f=1,h=u[0]-c,d=u[1]-l;if(o=e-c,h||!(o>0)){if(o/=h,h<0){if(o0){if(o>f)return;o>s&&(s=o)}if(o=r-c,h||!(o<0)){if(o/=h,h<0){if(o>f)return;o>s&&(s=o)}else if(h>0){if(o0)){if(o/=d,d<0){if(o0){if(o>f)return;o>s&&(s=o)}if(o=i-l,d||!(o<0)){if(o/=d,d<0){if(o>f)return;o>s&&(s=o)}else if(d>0){if(o0||f<1)||(s>0&&(t[0]=[c+s*h,l+s*d]),f<1&&(t[1]=[c+f*h,l+f*d]),!0)}}}}}function uw(t,e,n,r,i){var o=t[1];if(o)return!0;var a,u,c=t[0],l=t.left,s=t.right,f=l[0],h=l[1],d=s[0],p=s[1],v=(f+d)/2,g=(h+p)/2;if(p===h){if(v=r)return;if(f>d){if(c){if(c[1]>=i)return}else c=[v,n];o=[v,i]}else{if(c){if(c[1]1)if(f>d){if(c){if(c[1]>=i)return}else c=[(n-u)/a,n];o=[(i-u)/a,i]}else{if(c){if(c[1]=r)return}else c=[e,a*e+u];o=[r,a*r+u]}else{if(c){if(c[0]=-Cw)){var d=c*c+l*l,p=s*s+f*f,v=(f*d-l*p)/h,g=(c*p-s*d)/h,y=hw.pop()||new dw;y.arc=t,y.site=i,y.x=v+a,y.y=(y.cy=g+u)+Math.sqrt(v*v+g*g),t.circle=y;for(var m=null,_=Mw._;_;)if(y.y<_.y||y.y===_.y&&y.x<=_.x){if(!_.L){m=_.P;break}_=_.L}else{if(!_.R){m=_;break}_=_.R}Mw.insert(m,y),m||(fw=y)}}}}function vw(t){var e=t.circle;e&&(e.P||(fw=e.N),Mw.remove(e),hw.push(e),Zb(e),t.circle=null)}var gw=[];function yw(){Zb(this),this.edge=this.site=this.circle=null}function mw(t){var e=gw.pop()||new yw;return e.site=t,e}function _w(t){vw(t),kw.remove(t),gw.push(t),Zb(t)}function bw(t){var e=t.circle,n=e.x,r=e.cy,i=[n,r],o=t.P,a=t.N,u=[t];_w(t);for(var c=o;c.circle&&Math.abs(n-c.circle.x)Sw)u=u.L;else{if(!((i=o-Ew(u,a))>Sw)){r>-Sw?(e=u.P,n=u):i>-Sw?(e=u,n=u.N):e=n=u;break}if(!u.R){e=u;break}u=u.R}!function(t){Tw[t.index]={site:t,halfedges:[]}}(t);var c=mw(t);if(kw.insert(e,c),e||n){if(e===n)return vw(e),n=mw(e.site),kw.insert(c,n),c.edge=n.edge=rw(e.site,c.site),pw(e),void pw(n);if(n){vw(e),vw(n);var l=e.site,s=l[0],f=l[1],h=t[0]-s,d=t[1]-f,p=n.site,v=p[0]-s,g=p[1]-f,y=2*(h*g-d*v),m=h*h+d*d,_=v*v+g*g,b=[(g*m-d*_)/y+s,(h*_-v*m)/y+f];ow(n.edge,l,p,b),c.edge=rw(l,t,null,b),n.edge=rw(t,p,null,b),pw(e),pw(n)}else c.edge=rw(e.site,c.site)}}function xw(t,e){var n=t.site,r=n[0],i=n[1],o=i-e;if(!o)return r;var a=t.P;if(!a)return-1/0;var u=(n=a.site)[0],c=n[1],l=c-e;if(!l)return u;var s=u-r,f=1/o-1/l,h=s/l;return f?(-h+Math.sqrt(h*h-2*f*(s*s/(-2*l)-c+l/2+i-o/2)))/f+r:(r+u)/2}function Ew(t,e){var n=t.N;if(n)return xw(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var kw,Tw,Mw,Nw,Sw=1e-6,Cw=1e-12;function Aw(t,e,n){return(t[0]-n[0])*(e[1]-t[1])-(t[0]-e[0])*(n[1]-t[1])}function Pw(t,e){return e[1]-t[1]||e[0]-t[0]}function Lw(t,e){var n,r,i,o=t.sort(Pw).pop();for(Nw=[],Tw=new Array(t.length),kw=new nw,Mw=new nw;;)if(i=fw,o&&(!i||o[1]Sw||Math.abs(i[0][1]-i[1][1])>Sw)||delete Nw[o]}(a,u,c,l),function(t,e,n,r){var i,o,a,u,c,l,s,f,h,d,p,v,g=Tw.length,y=!0;for(i=0;iSw||Math.abs(v-h)>Sw)&&(c.splice(u,0,Nw.push(iw(a,d,Math.abs(p-t)Sw?[t,Math.abs(f-t)Sw?[Math.abs(h-r)Sw?[n,Math.abs(f-n)Sw?[Math.abs(h-e)=u)return null;var c=t-i.site[0],l=e-i.site[1],s=c*c+l*l;do{i=o.cells[r=a],a=null,i.halfedges.forEach((function(n){var r=o.edges[n],u=r.left;if(u!==i.site&&u||(u=r.right)){var c=t-u[0],l=e-u[1],f=c*c+l*l;fr?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function $w(){var t,e,n=Bw,r=qw,i=Vw,o=Yw,a=Ww,u=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],l=250,s=Ir,f=[],h=vt("start","zoom","end"),d=500,p=150,v=0;function g(t){t.property("__zoom",Hw).on("wheel.zoom",E).on("mousedown.zoom",k).on("dblclick.zoom",T).filter(a).on("touchstart.zoom",M).on("touchmove.zoom",N).on("touchend.zoom touchcancel.zoom",S).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(t,e){return(e=Math.max(u[0],Math.min(u[1],e)))===t.k?t:new Iw(e,t.x,t.y)}function m(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new Iw(t.k,r,i)}function _(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function b(t,e,n){t.on("start.zoom",(function(){w(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){w(this,arguments).end()})).tween("zoom",(function(){var t=this,i=arguments,o=w(t,i),a=r.apply(t,i),u=n||_(a),c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),l=t.__zoom,f="function"==typeof e?e.apply(t,i):e,h=s(l.invert(u).concat(c/l.k),f.invert(u).concat(c/f.k));return function(t){if(1===t)t=f;else{var e=h(t),n=c/e[2];t=new Iw(n,u[0]-e[0]*n,u[1]-e[1]*n)}o.zoom(null,t)}}))}function w(t,e){for(var n,r=0,i=f.length;rv}t.zoom("mouse",i(m(t.that.__zoom,t.mouse[0]=Ue(t.that),t.mouse[1]),t.extent,c))}),!0).on("mouseup.zoom",(function(){r.on("mousemove.zoom mouseup.zoom",null),Ye(ye.view,t.moved),Fw(),t.end()}),!0),o=Ue(this),a=ye.clientX,u=ye.clientY;He(ye.view),jw(),t.mouse=[o,this.__zoom.invert(o)],Si(this),t.start()}}function T(){if(n.apply(this,arguments)){var t=this.__zoom,e=Ue(this),o=t.invert(e),a=t.k*(ye.shiftKey?.5:2),u=i(m(y(t,a),e,o),r.apply(this,arguments),c);Fw(),l>0?Ae(this).transition().duration(l).call(b,u,e):Ae(this).call(g.transform,u)}}function M(){if(n.apply(this,arguments)){var e,r,i,o,a=w(this,arguments),u=ye.changedTouches,c=u.length;for(jw(),r=0;r{t.exports={graphlib:n(8191),layout:n(8202),debug:n(8909),util:{time:n(3988).time,notime:n(3988).notime},version:n(7038)}},6822:(t,e,n)=>{"use strict";var r=n(6857),i=n(2031);t.exports={run:function(t){var e="greedy"===t.graph().acyclicer?i(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],n={},i={};function o(a){r.has(i,a)||(i[a]=!0,n[a]=!0,r.forEach(t.outEdges(a),(function(t){r.has(n,t.w)?e.push(t):o(t.w)})),delete n[a])}return r.forEach(t.nodes(),o),e}(t);r.forEach(e,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r.uniqueId("rev"))}))},undo:function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}}))}}},135:(t,e,n)=>{var r=n(6857),i=n(3988);function o(t,e,n,r,o,a){var u={width:0,height:0,rank:a,borderType:e},c=o[e][a-1],l=i.addDummyNode(t,"border",u,n);o[e][a]=l,t.setParent(l,r),c&&t.setEdge(c,l,{weight:1})}t.exports=function(t){r.forEach(t.children(),(function e(n){var i=t.children(n),a=t.node(n);if(i.length&&r.forEach(i,e),r.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var u=a.minRank,c=a.maxRank+1;u{"use strict";var r=n(6857);function i(t){r.forEach(t.nodes(),(function(e){o(t.node(e))})),r.forEach(t.edges(),(function(e){o(t.edge(e))}))}function o(t){var e=t.width;t.width=t.height,t.height=e}function a(t){t.y=-t.y}function u(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||i(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){r.forEach(t.nodes(),(function(e){a(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,a),r.has(n,"y")&&a(n)}))}(t);"lr"!==e&&"rl"!==e||(!function(t){r.forEach(t.nodes(),(function(e){u(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,u),r.has(n,"x")&&u(n)}))}(t),i(t))}}},9859:t=>{function e(){var t={};t._next=t._prev=t,this._sentinel=t}function n(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function r(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=e,e.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return n(e),e},e.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&n(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},e.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,r)),n=n._prev;return"["+t.join(", ")+"]"}},8909:(t,e,n)=>{var r=n(6857),i=n(3988),o=n(8191).Graph;t.exports={debugOrdering:function(t){var e=i.buildLayerMatrix(t),n=new o({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),(function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)})),r.forEach(t.edges(),(function(t){n.setEdge(t.v,t.w,{},t.name)})),r.forEach(e,(function(t,e){var i="layer"+e;n.setNode(i,{rank:"same"}),r.reduce(t,(function(t,e){return n.setEdge(t,e,{style:"invis"}),e}))})),n}}},8191:(t,e,n)=>{var r;try{r=n(8362)}catch(t){}r||(r=window.graphlib),t.exports=r},2031:(t,e,n)=>{var r=n(6857),i=n(8191).Graph,o=n(9859);t.exports=function(t,e){if(t.nodeCount()<=1)return[];var n=function(t,e){var n=new i,a=0,u=0;r.forEach(t.nodes(),(function(t){n.setNode(t,{v:t,in:0,out:0})})),r.forEach(t.edges(),(function(t){var r=n.edge(t.v,t.w)||0,i=e(t),o=r+i;n.setEdge(t.v,t.w,o),u=Math.max(u,n.node(t.v).out+=i),a=Math.max(a,n.node(t.w).in+=i)}));var l=r.range(u+a+3).map((function(){return new o})),s=a+1;return r.forEach(n.nodes(),(function(t){c(l,s,n.node(t))})),{graph:n,buckets:l,zeroIdx:s}}(t,e||a),l=function(t,e,n){var r,i=[],o=e[e.length-1],a=e[0];for(;t.nodeCount();){for(;r=a.dequeue();)u(t,e,n,r);for(;r=o.dequeue();)u(t,e,n,r);if(t.nodeCount())for(var c=e.length-2;c>0;--c)if(r=e[c].dequeue()){i=i.concat(u(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(l,(function(e){return t.outEdges(e.v,e.w)})),!0)};var a=r.constant(1);function u(t,e,n,i,o){var a=o?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),u=t.node(r.v);o&&a.push({v:r.v,w:r.w}),u.out-=i,c(e,n,u)})),r.forEach(t.outEdges(i.v),(function(r){var i=t.edge(r),o=r.w,a=t.node(o);a.in-=i,c(e,n,a)})),t.removeNode(i.v),a}function c(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},8202:(t,e,n)=>{"use strict";var r=n(6857),i=n(6822),o=n(8209),a=n(9361),u=n(3988).normalizeRanks,c=n(2948),l=n(3988).removeEmptyRanks,s=n(6353),f=n(135),h=n(4850),d=n(1453),p=n(3776),v=n(3988),g=n(8191).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?v.time:v.notime;n("layout",(function(){var e=n(" buildLayoutGraph",(function(){return function(t){var e=new g({multigraph:!0,compound:!0}),n=M(t.graph());return e.setGraph(r.merge({},m,T(n,y),r.pick(n,_))),r.forEach(t.nodes(),(function(n){var i=M(t.node(n));e.setNode(n,r.defaults(T(i,b),w)),e.setParent(n,t.parent(n))})),r.forEach(t.edges(),(function(n){var i=M(t.edge(n));e.setEdge(n,r.merge({},E,T(i,x),r.pick(i,k)))})),e}(t)}));n(" runLayout",(function(){!function(t,e){e(" makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),(function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(t)})),e(" removeSelfEdges",(function(){!function(t){r.forEach(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e(" acyclic",(function(){i.run(t)})),e(" nestingGraph.run",(function(){s.run(t)})),e(" rank",(function(){a(v.asNonCompoundGraph(t))})),e(" injectEdgeLabelProxies",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e};v.addDummyNode(t,"edge-proxy",i,"_ep")}}))}(t)})),e(" removeEmptyRanks",(function(){l(t)})),e(" nestingGraph.cleanup",(function(){s.cleanup(t)})),e(" normalizeRanks",(function(){u(t)})),e(" assignRankMinMax",(function(){!function(t){var e=0;r.forEach(t.nodes(),(function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))})),t.graph().maxRank=e}(t)})),e(" removeEdgeLabelProxies",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}(t)})),e(" normalize.run",(function(){o.run(t)})),e(" parentDummyChains",(function(){c(t)})),e(" addBorderSegments",(function(){f(t)})),e(" order",(function(){d(t)})),e(" insertSelfEdges",(function(){!function(t){var e=v.buildLayerMatrix(t);r.forEach(e,(function(e){var n=0;r.forEach(e,(function(e,i){var o=t.node(e);o.order=i+n,r.forEach(o.selfEdges,(function(e){v.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:i+ ++n,e:e.e,label:e.label},"_se")})),delete o.selfEdges}))}))}(t)})),e(" adjustCoordinateSystem",(function(){h.adjust(t)})),e(" position",(function(){p(t)})),e(" positionSelfEdges",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,u=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*a/3,y:o-u},{x:i+5*a/6,y:o-u},{x:i+a,y:o},{x:i+5*a/6,y:o+u},{x:i+2*a/3,y:o+u}],n.label.x=n.x,n.label.y=n.y}}))}(t)})),e(" removeBorderNodes",(function(){!function(t){r.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),o=t.node(n.borderBottom),a=t.node(r.last(n.borderLeft)),u=t.node(r.last(n.borderRight));n.width=Math.abs(u.x-a.x),n.height=Math.abs(o.y-i.y),n.x=a.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e(" normalize.undo",(function(){o.undo(t)})),e(" fixupEdgeLabelCoords",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(t)})),e(" undoCoordinateSystem",(function(){h.undo(t)})),e(" translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,a=t.graph(),u=a.marginx||0,c=a.marginy||0;function l(t){var r=t.x,a=t.y,u=t.width,c=t.height;e=Math.min(e,r-u/2),n=Math.max(n,r+u/2),i=Math.min(i,a-c/2),o=Math.max(o,a+c/2)}r.forEach(t.nodes(),(function(e){l(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.has(n,"x")&&l(n)})),e-=u,i-=c,r.forEach(t.nodes(),(function(n){var r=t.node(n);r.x-=e,r.y-=i})),r.forEach(t.edges(),(function(n){var o=t.edge(n);r.forEach(o.points,(function(t){t.x-=e,t.y-=i})),r.has(o,"x")&&(o.x-=e),r.has(o,"y")&&(o.y-=i)})),a.width=n-e+u,a.height=o-i+c}(t)})),e(" assignNodeIntersects",(function(){!function(t){r.forEach(t.edges(),(function(e){var n,r,i=t.edge(e),o=t.node(e.v),a=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(v.intersectRect(o,n)),i.points.push(v.intersectRect(a,r))}))}(t)})),e(" reversePoints",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}(t)})),e(" acyclic.undo",(function(){i.undo(t)}))}(e,n)})),n(" updateInputGraph",(function(){!function(t,e){r.forEach(t.nodes(),(function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))})),r.forEach(t.edges(),(function(n){var i=t.edge(n),o=e.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};var y=["nodesep","edgesep","ranksep","marginx","marginy"],m={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],b=["width","height"],w={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["labelpos"];function T(t,e){return r.mapValues(r.pick(t,e),Number)}function M(t){var e={};return r.forEach(t,(function(t,n){e[n.toLowerCase()]=t})),e}},6857:(t,e,n)=>{var r;try{r=n(2543)}catch(t){}r||(r=window._),t.exports=r},6353:(t,e,n)=>{var r=n(6857),i=n(3988);function o(t,e,n,a,u,c,l){var s=t.children(l);if(s.length){var f=i.addBorderNode(t,"_bt"),h=i.addBorderNode(t,"_bb"),d=t.node(l);t.setParent(f,l),d.borderTop=f,t.setParent(h,l),d.borderBottom=h,r.forEach(s,(function(r){o(t,e,n,a,u,c,r);var i=t.node(r),s=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?a:2*a,v=s!==d?1:u-c[l]+1;t.setEdge(f,s,{weight:p,minlen:v,nestingEdge:!0}),t.setEdge(d,h,{weight:p,minlen:v,nestingEdge:!0})})),t.parent(l)||t.setEdge(e,f,{weight:0,minlen:u+c[l]})}else l!==e&&t.setEdge(e,l,{weight:0,minlen:n})}t.exports={run:function(t){var e=i.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};function n(i,o){var a=t.children(i);a&&a.length&&r.forEach(a,(function(t){n(t,o+1)})),e[i]=o}return r.forEach(t.children(),(function(t){n(t,1)})),e}(t),a=r.max(r.values(n))-1,u=2*a+1;t.graph().nestingRoot=e,r.forEach(t.edges(),(function(e){t.edge(e).minlen*=u}));var c=function(t){return r.reduce(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}(t)+1;r.forEach(t.children(),(function(r){o(t,e,u,c,a,n,r)})),t.graph().nodeRankFactor=u},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),(function(e){t.edge(e).nestingEdge&&t.removeEdge(e)}))}}},8209:(t,e,n)=>{"use strict";var r=n(6857),i=n(3988);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(e){!function(t,e){var n,r,o,a=e.v,u=t.node(a).rank,c=e.w,l=t.node(c).rank,s=e.name,f=t.edge(e),h=f.labelRank;if(l===u+1)return;for(t.removeEdge(e),o=0,++u;u{var r=n(6857);t.exports=function(t,e,n){var i,o={};r.forEach(n,(function(n){for(var r,a,u=t.parent(n);u;){if((r=t.parent(u))?(a=o[r],o[r]=u):(a=i,i=u),a&&a!==u)return void e.setEdge(a,u);u=r}}))}},3860:(t,e,n)=>{var r=n(6857);t.exports=function(t,e){return r.map(e,(function(e){var n=t.inEdges(e);if(n.length){var i=r.reduce(n,(function(e,n){var r=t.edge(n),i=t.node(n.v);return{sum:e.sum+r.weight*i.order,weight:e.weight+r.weight}}),{sum:0,weight:0});return{v:e,barycenter:i.sum/i.weight,weight:i.weight}}return{v:e}}))}},7860:(t,e,n)=>{var r=n(6857),i=n(8191).Graph;t.exports=function(t,e,n){var o=function(t){var e;for(;t.hasNode(e=r.uniqueId("_root")););return e}(t),a=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(e){return t.node(e)}));return r.forEach(t.nodes(),(function(i){var u=t.node(i),c=t.parent(i);(u.rank===e||u.minRank<=e&&e<=u.maxRank)&&(a.setNode(i),a.setParent(i,c||o),r.forEach(t[n](i),(function(e){var n=e.v===i?e.w:e.v,o=a.edge(n,i),u=r.isUndefined(o)?0:o.weight;a.setEdge(n,i,{weight:t.edge(e).weight+u})})),r.has(u,"minRank")&&a.setNode(i,{borderLeft:u.borderLeft[e],borderRight:u.borderRight[e]}))})),a}},6639:(t,e,n)=>{"use strict";var r=n(6857);function i(t,e,n){for(var i=r.zipObject(n,r.map(n,(function(t,e){return e}))),o=r.flatten(r.map(e,(function(e){return r.chain(t.outEdges(e)).map((function(e){return{pos:i[e.w],weight:t.edge(e).weight}})).sortBy("pos").value()})),!0),a=1;a0;)e%2&&(n+=c[e+1]),c[e=e-1>>1]+=t.weight;l+=t.weight*n}))),l}t.exports=function(t,e){for(var n=0,r=1;r{"use strict";var r=n(6857),i=n(8918),o=n(6639),a=n(4520),u=n(7860),c=n(4384),l=n(8191).Graph,s=n(3988);function f(t,e,n){return r.map(e,(function(e){return u(t,e,n)}))}function h(t,e){var n=new l;r.forEach(t,(function(t){var i=t.graph().root,o=a(t,i,n,e);r.forEach(o.vs,(function(e,n){t.node(e).order=n})),c(t,n,o.vs)}))}function d(t,e){r.forEach(e,(function(e){r.forEach(e,(function(e,n){t.node(e).order=n}))}))}t.exports=function(t){var e=s.maxRank(t),n=f(t,r.range(1,e+1),"inEdges"),a=f(t,r.range(e-1,-1,-1),"outEdges"),u=i(t);d(t,u);for(var c,l=Number.POSITIVE_INFINITY,p=0,v=0;v<4;++p,++v){h(p%2?n:a,p%4>=2),u=s.buildLayerMatrix(t);var g=o(t,u);g{"use strict";var r=n(6857);t.exports=function(t){var e={},n=r.filter(t.nodes(),(function(e){return!t.children(e).length})),i=r.max(r.map(n,(function(e){return t.node(e).rank}))),o=r.map(r.range(i+1),(function(){return[]}));var a=r.sortBy(n,(function(e){return t.node(e).rank}));return r.forEach(a,(function n(i){if(r.has(e,i))return;e[i]=!0;var a=t.node(i);o[a.rank].push(i),r.forEach(t.successors(i),n)})),o}},4959:(t,e,n)=>{"use strict";var r=n(6857);t.exports=function(t,e){var n={};return r.forEach(t,(function(t,e){var i=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};r.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)})),r.forEach(e.edges(),(function(t){var e=n[t.v],i=n[t.w];r.isUndefined(e)||r.isUndefined(i)||(i.indegree++,e.out.push(n[t.w]))})),function(t){var e=[];function n(t){return function(e){e.merged||(r.isUndefined(e.barycenter)||r.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&function(t,e){var n=0,r=0;t.weight&&(n+=t.barycenter*t.weight,r+=t.weight);e.weight&&(n+=e.barycenter*e.weight,r+=e.weight);t.vs=e.vs.concat(t.vs),t.barycenter=n/r,t.weight=r,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var o=t.pop();e.push(o),r.forEach(o.in.reverse(),n(o)),r.forEach(o.out,i(o))}return r.chain(e).filter((function(t){return!t.merged})).map((function(t){return r.pick(t,["vs","i","barycenter","weight"])})).value()}(r.filter(n,(function(t){return!t.indegree})))}},4520:(t,e,n)=>{var r=n(6857),i=n(3860),o=n(4959),a=n(5169);t.exports=function t(e,n,u,c){var l=e.children(n),s=e.node(n),f=s?s.borderLeft:void 0,h=s?s.borderRight:void 0,d={};f&&(l=r.filter(l,(function(t){return t!==f&&t!==h})));var p=i(e,l);r.forEach(p,(function(n){if(e.children(n.v).length){var i=t(e,n.v,u,c);d[n.v]=i,r.has(i,"barycenter")&&(o=n,a=i,r.isUndefined(o.barycenter)?(o.barycenter=a.barycenter,o.weight=a.weight):(o.barycenter=(o.barycenter*o.weight+a.barycenter*a.weight)/(o.weight+a.weight),o.weight+=a.weight))}var o,a}));var v=o(p,u);!function(t,e){r.forEach(t,(function(t){t.vs=r.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}(v,d);var g=a(v,c);if(f&&(g.vs=r.flatten([f,g.vs,h],!0),e.predecessors(f).length)){var y=e.node(e.predecessors(f)[0]),m=e.node(e.predecessors(h)[0]);r.has(g,"barycenter")||(g.barycenter=0,g.weight=0),g.barycenter=(g.barycenter*g.weight+y.order+m.order)/(g.weight+2),g.weight+=2}return g}},5169:(t,e,n)=>{var r=n(6857),i=n(3988);function o(t,e,n){for(var i;e.length&&(i=r.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}t.exports=function(t,e){var n=i.partition(t,(function(t){return r.has(t,"barycenter")})),a=n.lhs,u=r.sortBy(n.rhs,(function(t){return-t.i})),c=[],l=0,s=0,f=0;a.sort((h=!!e,function(t,e){return t.barycentere.barycenter?1:h?e.i-t.i:t.i-e.i})),f=o(c,u,f),r.forEach(a,(function(t){f+=t.vs.length,c.push(t.vs),l+=t.barycenter*t.weight,s+=t.weight,f=o(c,u,f)}));var h;var d={vs:r.flatten(c,!0)};s&&(d.barycenter=l/s,d.weight=s);return d}},2948:(t,e,n)=>{var r=n(6857);t.exports=function(t){var e=function(t){var e={},n=0;function i(o){var a=n;r.forEach(t.children(o),i),e[o]={low:a,lim:n++}}return r.forEach(t.children(),i),e}(t);r.forEach(t.graph().dummyChains,(function(n){for(var r=t.node(n),i=r.edgeObj,o=function(t,e,n,r){var i,o,a=[],u=[],c=Math.min(e[n].low,e[r].low),l=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),a.push(i)}while(i&&(e[i].low>c||l>e[i].lim));o=i,i=r;for(;(i=t.parent(i))!==o;)u.push(i);return{path:a.concat(u.reverse()),lca:o}}(t,e,i.v,i.w),a=o.path,u=o.lca,c=0,l=a[c],s=!0;n!==i.w;){if(r=t.node(n),s){for(;(l=a[c])!==u&&t.node(l).maxRank{"use strict";var r=n(6857),i=n(8191).Graph,o=n(3988);function a(t,e){var n={};return r.reduce(e,(function(e,i){var o=0,a=0,u=e.length,l=r.last(i);return r.forEach(i,(function(e,s){var f=function(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),h=f?t.node(f).order:u;(f||e===l)&&(r.forEach(i.slice(a,s+1),(function(e){r.forEach(t.predecessors(e),(function(r){var i=t.node(r),a=i.order;!(au)&&c(n,e,l)}))}))}return r.reduce(e,(function(e,n){var o,a=-1,u=0;return r.forEach(n,(function(r,c){if("border"===t.node(r).dummy){var l=t.predecessors(r);l.length&&(o=t.node(l[0]).order,i(n,u,c,a,o),u=c,a=o)}i(n,u,n.length,o,e.length)})),n})),n}function c(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function l(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function s(t,e,n,i){var o={},a={},u={};return r.forEach(e,(function(t){r.forEach(t,(function(t,e){o[t]=t,a[t]=t,u[t]=e}))})),r.forEach(e,(function(t){var e=-1;r.forEach(t,(function(t){var c=i(t);if(c.length){c=r.sortBy(c,(function(t){return u[t]}));for(var s=(c.length-1)/2,f=Math.floor(s),h=Math.ceil(s);f<=h;++f){var d=c[f];a[t]===t&&e{"use strict";var r=n(6857),i=n(3988),o=n(9741).positionX;t.exports=function(t){(function(t){var e=i.buildLayerMatrix(t),n=t.graph().ranksep,o=0;r.forEach(e,(function(e){var i=r.max(r.map(e,(function(e){return t.node(e).height})));r.forEach(e,(function(e){t.node(e).y=o+i/2})),o+=i+n}))})(t=i.asNonCompoundGraph(t)),r.forEach(o(t),(function(e,n){t.node(n).x=e}))}},8481:(t,e,n)=>{"use strict";var r=n(6857),i=n(8191).Graph,o=n(8073).slack;function a(t,e){return r.forEach(t.nodes(),(function n(i){r.forEach(e.nodeEdges(i),(function(r){var a=r.v,u=i===a?r.w:a;t.hasNode(u)||o(e,r)||(t.setNode(u,{}),t.setEdge(i,u,{}),n(u))}))})),t.nodeCount()}function u(t,e){return r.minBy(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return o(e,n)}))}function c(t,e,n){r.forEach(t.nodes(),(function(t){e.node(t).rank+=n}))}t.exports=function(t){var e,n,r=new i({directed:!1}),l=t.nodes()[0],s=t.nodeCount();r.setNode(l,{});for(;a(r,t){"use strict";var r=n(8073).longestPath,i=n(8481),o=n(6860);t.exports=function(t){switch(t.graph().ranker){case"network-simplex":default:u(t);break;case"tight-tree":!function(t){r(t),i(t)}(t);break;case"longest-path":a(t)}};var a=r;function u(t){o(t)}},6860:(t,e,n)=>{"use strict";var r=n(6857),i=n(8481),o=n(8073).slack,a=n(8073).longestPath,u=n(8191).alg.preorder,c=n(8191).alg.postorder,l=n(3988).simplify;function s(t){t=l(t),a(t);var e,n=i(t);for(d(n),f(n,t);e=v(n);)y(n,t,e,g(n,t,e))}function f(t,e){var n=c(t,t.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){!function(t,e,n){var r=t.node(n),i=r.parent;t.edge(n,i).cutvalue=h(t,e,n)}(t,e,n)}))}function h(t,e,n){var i=t.node(n).parent,o=!0,a=e.edge(n,i),u=0;return a||(o=!1,a=e.edge(i,n)),u=a.weight,r.forEach(e.nodeEdges(n),(function(r){var a,c,l=r.v===n,s=l?r.w:r.v;if(s!==i){var f=l===o,h=e.edge(r).weight;if(u+=f?h:-h,a=n,c=s,t.hasEdge(a,c)){var d=t.edge(n,s).cutvalue;u+=f?-d:d}}})),u}function d(t,e){arguments.length<2&&(e=t.nodes()[0]),p(t,{},1,e)}function p(t,e,n,i,o){var a=n,u=t.node(i);return e[i]=!0,r.forEach(t.neighbors(i),(function(o){r.has(e,o)||(n=p(t,e,n,o,i))})),u.low=a,u.lim=n++,o?u.parent=o:delete u.parent,n}function v(t){return r.find(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function g(t,e,n){var i=n.v,a=n.w;e.hasEdge(i,a)||(i=n.w,a=n.v);var u=t.node(i),c=t.node(a),l=u,s=!1;u.lim>c.lim&&(l=c,s=!0);var f=r.filter(e.edges(),(function(e){return s===m(t,t.node(e.v),l)&&s!==m(t,t.node(e.w),l)}));return r.minBy(f,(function(t){return o(e,t)}))}function y(t,e,n,i){var o=n.v,a=n.w;t.removeEdge(o,a),t.setEdge(i.v,i.w,{}),d(t),f(t,e),function(t,e){var n=r.find(t.nodes(),(function(t){return!e.node(t).parent})),i=u(t,n);i=i.slice(1),r.forEach(i,(function(n){var r=t.node(n).parent,i=e.edge(n,r),o=!1;i||(i=e.edge(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen)}))}(t,e)}function m(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=s,s.initLowLimValues=d,s.initCutValues=f,s.calcCutValue=h,s.leaveEdge=v,s.enterEdge=g,s.exchangeEdges=y},8073:(t,e,n)=>{"use strict";var r=n(6857);t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),(function n(i){var o=t.node(i);if(r.has(e,i))return o.rank;e[i]=!0;var a=r.minBy(r.map(t.outEdges(i),(function(e){return n(e.w)-t.edge(e).minlen})));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),o.rank=a}))},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},3988:(t,e,n)=>{"use strict";var r=n(6857),i=n(8191).Graph;function o(t,e,n,i){var o;do{o=r.uniqueId(i)}while(t.hasNode(o));return n.dummy=e,t.setNode(o,n),o}function a(t){return r.max(r.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n})))}t.exports={addDummyNode:o,simplify:function(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),e},asNonCompoundGraph:function(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e},successorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,o=t.y,a=e.x-i,u=e.y-o,c=t.width/2,l=t.height/2;if(!a&&!u)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(u)*c>Math.abs(a)*l?(u<0&&(l=-l),n=l*a/u,r=l):(a<0&&(c=-c),n=c,r=c*u/a);return{x:i+n,y:o+r}},buildLayerMatrix:function(t){var e=r.map(r.range(a(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(n){var i=t.node(n),o=i.rank;r.isUndefined(o)||(e[o][i.order]=n)})),e},normalizeRanks:function(t){var e=r.minBy(r.map(t.nodes(),(function(e){return t.node(e).rank})));r.forEach(t.nodes(),(function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)}))},removeEmptyRanks:function(t){var e=r.minBy(r.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];r.forEach(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,o=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%o!=0?--i:i&&r.forEach(e,(function(e){t.node(e).rank+=i}))}))},addBorderNode:function(t,e,n,r){var i={width:0,height:0};arguments.length>=4&&(i.rank=n,i.order=r);return o(t,"border",i,e)},maxRank:a,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},7038:t=>{t.exports="0.8.2"},8362:(t,e,n)=>{var r=n(1166);t.exports={Graph:r.Graph,json:n(7494),alg:n(1667),version:r.version}},3619:(t,e,n)=>{var r=n(117);t.exports=function(t){var e,n={},i=[];function o(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}return r.each(t.nodes(),(function(t){e=[],o(t),e.length&&i.push(e)})),i}},9276:(t,e,n)=>{var r=n(117);function i(t,e,n,o,a,u){r.has(o,e)||(o[e]=!0,n||u.push(e),r.each(a(e),(function(e){i(t,e,n,o,a,u)})),n&&u.push(e))}t.exports=function(t,e,n){r.isArray(e)||(e=[e]);var o=(t.isDirected()?t.successors:t.neighbors).bind(t),a=[],u={};return r.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);i(t,e,"post"===n,u,o,a)})),a}},4919:(t,e,n)=>{var r=n(8905),i=n(117);t.exports=function(t,e,n){return i.transform(t.nodes(),(function(i,o){i[o]=r(t,o,e,n)}),{})}},8905:(t,e,n)=>{var r=n(117),i=n(1737);t.exports=function(t,e,n,r){return function(t,e,n,r){var o,a,u={},c=new i,l=function(t){var e=t.v!==o?t.v:t.w,r=u[e],i=n(t),l=a.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);l0&&(o=c.removeMin(),(a=u[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(l);return u}(t,String(e),n||o,r||function(e){return t.outEdges(e)})};var o=r.constant(1)},6678:(t,e,n)=>{var r=n(117),i=n(6291);t.exports=function(t){return r.filter(i(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}},3590:(t,e,n)=>{var r=n(117);t.exports=function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach((function(t){r[t]={},r[t][t]={distance:0},i.forEach((function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})})),n(t).forEach((function(n){var i=n.v===t?n.w:n.v,o=e(n);r[t][i]={distance:o,predecessor:t}}))})),i.forEach((function(t){var e=r[t];i.forEach((function(n){var o=r[n];i.forEach((function(n){var r=o[t],i=e[n],a=o[n],u=r.distance+i.distance;u{t.exports={components:n(3619),dijkstra:n(8905),dijkstraAll:n(4919),findCycles:n(6678),floydWarshall:n(3590),isAcyclic:n(498),postorder:n(1045),preorder:n(6016),prim:n(4423),tarjan:n(6291),topsort:n(9888)}},498:(t,e,n)=>{var r=n(9888);t.exports=function(t){try{r(t)}catch(t){if(t instanceof r.CycleException)return!1;throw t}return!0}},1045:(t,e,n)=>{var r=n(9276);t.exports=function(t,e){return r(t,e,"post")}},6016:(t,e,n)=>{var r=n(9276);t.exports=function(t,e){return r(t,e,"pre")}},4423:(t,e,n)=>{var r=n(117),i=n(6454),o=n(1737);t.exports=function(t,e){var n,a=new i,u={},c=new o;function l(t){var r=t.v===n?t.w:t.v,i=c.priority(r);if(void 0!==i){var o=e(t);o0;){if(n=c.removeMin(),r.has(u,n))a.setEdge(n,u[n]);else{if(s)throw new Error("Input graph is not connected: "+t);s=!0}t.nodeEdges(n).forEach(l)}return a}},6291:(t,e,n)=>{var r=n(117);t.exports=function(t){var e=0,n=[],i={},o=[];function a(u){var c=i[u]={onStack:!0,lowlink:e,index:e++};if(n.push(u),t.successors(u).forEach((function(t){r.has(i,t)?i[t].onStack&&(c.lowlink=Math.min(c.lowlink,i[t].index)):(a(t),c.lowlink=Math.min(c.lowlink,i[t].lowlink))})),c.lowlink===c.index){var l,s=[];do{l=n.pop(),i[l].onStack=!1,s.push(l)}while(u!==l);o.push(s)}}return t.nodes().forEach((function(t){r.has(i,t)||a(t)})),o}},9888:(t,e,n)=>{var r=n(117);function i(t){var e={},n={},i=[];if(r.each(t.sinks(),(function a(u){if(r.has(n,u))throw new o;r.has(e,u)||(n[u]=!0,e[u]=!0,r.each(t.predecessors(u),a),delete n[u],i.push(u))})),r.size(e)!==t.nodeCount())throw new o;return i}function o(){}t.exports=i,i.CycleException=o},1737:(t,e,n)=>{var r=n(117);function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,o=i.length;return n[t]=o,i.push({key:t,priority:e}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n>1].priority{"use strict";var r=n(117);t.exports=u;var i="\0",o="\0",a="";function u(t){this._isDirected=!r.has(t,"directed")||t.directed,this._isMultigraph=!!r.has(t,"multigraph")&&t.multigraph,this._isCompound=!!r.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[o]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function c(t,e){t[e]?t[e]++:t[e]=1}function l(t,e){--t[e]||delete t[e]}function s(t,e,n,o){var u=""+e,c=""+n;if(!t&&u>c){var l=u;u=c,c=l}return u+a+c+a+(r.isUndefined(o)?i:o)}function f(t,e){return s(t,e.v,e.w,e.name)}u.prototype._nodeCount=0,u.prototype._edgeCount=0,u.prototype.isDirected=function(){return this._isDirected},u.prototype.isMultigraph=function(){return this._isMultigraph},u.prototype.isCompound=function(){return this._isCompound},u.prototype.setGraph=function(t){return this._label=t,this},u.prototype.graph=function(){return this._label},u.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},u.prototype.nodeCount=function(){return this._nodeCount},u.prototype.nodes=function(){return r.keys(this._nodes)},u.prototype.sources=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._in[e])}))},u.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._out[e])}))},u.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,(function(t){n.length>1?i.setNode(t,e):i.setNode(t)})),this},u.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=o,this._children[t]={},this._children[o][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},u.prototype.node=function(t){return this._nodes[t]},u.prototype.hasNode=function(t){return r.has(this._nodes,t)},u.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},u.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e=o;else{for(var n=e+="";!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},u.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},u.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==o)return e}},u.prototype.children=function(t){if(r.isUndefined(t)&&(t=o),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if(t===o)return this.nodes();if(this.hasNode(t))return[]}},u.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},u.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},u.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},u.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},u.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){t(r)&&e.setNode(r,n)})),r.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var i={};function o(t){var r=n.parent(t);return void 0===r||e.hasNode(r)?(i[t]=r,r):r in i?i[r]:o(r)}return this._isCompound&&r.each(e.nodes(),(function(t){e.setParent(t,o(t))})),e},u.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},u.prototype.edgeCount=function(){return this._edgeCount},u.prototype.edges=function(){return r.values(this._edgeObjs)},u.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,(function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r})),this},u.prototype.setEdge=function(){var t,e,n,i,o=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(t=a.v,e=a.w,n=a.name,2===arguments.length&&(i=arguments[1],o=!0)):(t=a,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],o=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var u=s(this._isDirected,t,e,n);if(r.has(this._edgeLabels,u))return o&&(this._edgeLabels[u]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[u]=o?i:this._defaultEdgeLabelFn(t,e,n);var l=function(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var a=i;i=o,o=a}var u={v:i,w:o};r&&(u.name=r);return u}(this._isDirected,t,e,n);return t=l.v,e=l.w,Object.freeze(l),this._edgeObjs[u]=l,c(this._preds[e],t),c(this._sucs[t],e),this._in[e][u]=l,this._out[t][u]=l,this._edgeCount++,this},u.prototype.edge=function(t,e,n){var r=1===arguments.length?f(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return this._edgeLabels[r]},u.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?f(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},u.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?f(this._isDirected,arguments[0]):s(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],l(this._preds[e],t),l(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},u.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.v===e})):i}},u.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.w===e})):i}},u.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},1166:(t,e,n)=>{t.exports={Graph:n(6454),version:n(4458)}},7494:(t,e,n)=>{var r=n(117),i=n(6454);function o(t){return r.map(t.nodes(),(function(e){var n=t.node(e),i=t.parent(e),o={v:e};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o}))}function a(t){return r.map(t.edges(),(function(e){var n=t.edge(e),i={v:e.v,w:e.w};return r.isUndefined(e.name)||(i.name=e.name),r.isUndefined(n)||(i.value=n),i}))}t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:o(t),edges:a(t)};r.isUndefined(t.graph())||(e.value=r.clone(t.graph()));return e},read:function(t){var e=new i(t.options).setGraph(t.value);return r.each(t.nodes,(function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)})),r.each(t.edges,(function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),e}}},117:(t,e,n)=>{var r;try{r=n(2543)}catch(t){}r||(r=window._),t.exports=r},4458:t=>{t.exports="2.1.5"},2543:function(t,e,n){var r;t=n.nmd(t),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",u="__lodash_placeholder__",c=16,l=32,s=64,f=128,h=256,d=1/0,p=9007199254740991,v=NaN,g=4294967295,y=[["ary",f],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",l],["partialRight",s],["rearg",h]],m="[object Arguments]",_="[object Array]",b="[object Boolean]",w="[object Date]",x="[object Error]",E="[object Function]",k="[object GeneratorFunction]",T="[object Map]",M="[object Number]",N="[object Object]",S="[object Promise]",C="[object RegExp]",A="[object Set]",P="[object String]",L="[object Symbol]",R="[object WeakMap]",z="[object ArrayBuffer]",O="[object DataView]",I="[object Float32Array]",U="[object Float64Array]",D="[object Int8Array]",j="[object Int16Array]",F="[object Int32Array]",B="[object Uint8Array]",q="[object Uint8ClampedArray]",H="[object Uint16Array]",Y="[object Uint32Array]",W=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,$=/(__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,tt=/<%=([\s\S]+?)%>/g,et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nt=/^\w*$/,rt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,it=/[\\^$.*+?()[\]{}|]/g,ot=RegExp(it.source),at=/^\s+|\s+$/g,ut=/^\s+/,ct=/\s+$/,lt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,st=/\{\n\/\* \[wrapped with (.+)\] \*/,ft=/,? & /,ht=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,dt=/\\(\\)?/g,pt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vt=/\w*$/,gt=/^[-+]0x[0-9a-f]+$/i,yt=/^0b[01]+$/i,mt=/^\[object .+?Constructor\]$/,_t=/^0o[0-7]+$/i,bt=/^(?:0|[1-9]\d*)$/,wt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xt=/($^)/,Et=/['\n\r\u2028\u2029\\]/g,kt="\\ud800-\\udfff",Tt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Mt="\\u2700-\\u27bf",Nt="a-z\\xdf-\\xf6\\xf8-\\xff",St="A-Z\\xc0-\\xd6\\xd8-\\xde",Ct="\\ufe0e\\ufe0f",At="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pt="['’]",Lt="["+kt+"]",Rt="["+At+"]",zt="["+Tt+"]",Ot="\\d+",It="["+Mt+"]",Ut="["+Nt+"]",Dt="[^"+kt+At+Ot+Mt+Nt+St+"]",jt="\\ud83c[\\udffb-\\udfff]",Ft="[^"+kt+"]",Bt="(?:\\ud83c[\\udde6-\\uddff]){2}",qt="[\\ud800-\\udbff][\\udc00-\\udfff]",Ht="["+St+"]",Yt="\\u200d",Wt="(?:"+Ut+"|"+Dt+")",Vt="(?:"+Ht+"|"+Dt+")",$t="(?:['’](?:d|ll|m|re|s|t|ve))?",Xt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Qt="(?:"+zt+"|"+jt+")"+"?",Gt="["+Ct+"]?",Kt=Gt+Qt+("(?:"+Yt+"(?:"+[Ft,Bt,qt].join("|")+")"+Gt+Qt+")*"),Zt="(?:"+[It,Bt,qt].join("|")+")"+Kt,Jt="(?:"+[Ft+zt+"?",zt,Bt,qt,Lt].join("|")+")",te=RegExp(Pt,"g"),ee=RegExp(zt,"g"),ne=RegExp(jt+"(?="+jt+")|"+Jt+Kt,"g"),re=RegExp([Ht+"?"+Ut+"+"+$t+"(?="+[Rt,Ht,"$"].join("|")+")",Vt+"+"+Xt+"(?="+[Rt,Ht+Wt,"$"].join("|")+")",Ht+"?"+Wt+"+"+$t,Ht+"+"+Xt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ot,Zt].join("|"),"g"),ie=RegExp("["+Yt+kt+Tt+Ct+"]"),oe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ae=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ue=-1,ce={};ce[I]=ce[U]=ce[D]=ce[j]=ce[F]=ce[B]=ce[q]=ce[H]=ce[Y]=!0,ce[m]=ce[_]=ce[z]=ce[b]=ce[O]=ce[w]=ce[x]=ce[E]=ce[T]=ce[M]=ce[N]=ce[C]=ce[A]=ce[P]=ce[R]=!1;var le={};le[m]=le[_]=le[z]=le[O]=le[b]=le[w]=le[I]=le[U]=le[D]=le[j]=le[F]=le[T]=le[M]=le[N]=le[C]=le[A]=le[P]=le[L]=le[B]=le[q]=le[H]=le[Y]=!0,le[x]=le[E]=le[R]=!1;var se={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},fe=parseFloat,he=parseInt,de="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,pe="object"==typeof self&&self&&self.Object===Object&&self,ve=de||pe||Function("return this")(),ge=e&&!e.nodeType&&e,ye=ge&&t&&!t.nodeType&&t,me=ye&&ye.exports===ge,_e=me&&de.process,be=function(){try{var t=ye&&ye.require&&ye.require("util").types;return t||_e&&_e.binding&&_e.binding("util")}catch(t){}}(),we=be&&be.isArrayBuffer,xe=be&&be.isDate,Ee=be&&be.isMap,ke=be&&be.isRegExp,Te=be&&be.isSet,Me=be&&be.isTypedArray;function Ne(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Se(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i-1}function ze(t,e,n){for(var r=-1,i=null==t?0:t.length;++r-1;);return n}function nn(t,e){for(var n=t.length;n--&&He(e,t[n],0)>-1;);return n}var rn=Xe({À:"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"}),on=Xe({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(t){return"\\"+se[t]}function un(t){return ie.test(t)}function cn(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function ln(t,e){return function(n){return t(e(n))}}function sn(t,e){for(var n=-1,r=t.length,i=0,o=[];++n",""":'"',"'":"'"});var gn=function t(e){var n,r=(e=null==e?ve:gn.defaults(ve.Object(),e,gn.pick(ve,ae))).Array,kt=e.Date,Tt=e.Error,Mt=e.Function,Nt=e.Math,St=e.Object,Ct=e.RegExp,At=e.String,Pt=e.TypeError,Lt=r.prototype,Rt=Mt.prototype,zt=St.prototype,Ot=e["__core-js_shared__"],It=Rt.toString,Ut=zt.hasOwnProperty,Dt=0,jt=(n=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ft=zt.toString,Bt=It.call(St),qt=ve._,Ht=Ct("^"+It.call(Ut).replace(it,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Yt=me?e.Buffer:i,Wt=e.Symbol,Vt=e.Uint8Array,$t=Yt?Yt.allocUnsafe:i,Xt=ln(St.getPrototypeOf,St),Qt=St.create,Gt=zt.propertyIsEnumerable,Kt=Lt.splice,Zt=Wt?Wt.isConcatSpreadable:i,Jt=Wt?Wt.iterator:i,ne=Wt?Wt.toStringTag:i,ie=function(){try{var t=fo(St,"defineProperty");return t({},"",{}),t}catch(t){}}(),se=e.clearTimeout!==ve.clearTimeout&&e.clearTimeout,de=kt&&kt.now!==ve.Date.now&&kt.now,pe=e.setTimeout!==ve.setTimeout&&e.setTimeout,ge=Nt.ceil,ye=Nt.floor,_e=St.getOwnPropertySymbols,be=Yt?Yt.isBuffer:i,Fe=e.isFinite,Xe=Lt.join,yn=ln(St.keys,St),mn=Nt.max,_n=Nt.min,bn=kt.now,wn=e.parseInt,xn=Nt.random,En=Lt.reverse,kn=fo(e,"DataView"),Tn=fo(e,"Map"),Mn=fo(e,"Promise"),Nn=fo(e,"Set"),Sn=fo(e,"WeakMap"),Cn=fo(St,"create"),An=Sn&&new Sn,Pn={},Ln=Do(kn),Rn=Do(Tn),zn=Do(Mn),On=Do(Nn),In=Do(Sn),Un=Wt?Wt.prototype:i,Dn=Un?Un.valueOf:i,jn=Un?Un.toString:i;function Fn(t){if(eu(t)&&!Ya(t)&&!(t instanceof Yn)){if(t instanceof Hn)return t;if(Ut.call(t,"__wrapped__"))return jo(t)}return new Hn(t)}var Bn=function(){function t(){}return function(e){if(!tu(e))return{};if(Qt)return Qt(e);t.prototype=e;var n=new t;return t.prototype=i,n}}();function qn(){}function Hn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function Yn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Wn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function cr(t,e,n,r,o,a){var u,c=1&e,l=2&e,s=4&e;if(n&&(u=o?n(t,r,o,a):n(t)),u!==i)return u;if(!tu(t))return t;var f=Ya(t);if(f){if(u=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&Ut.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!c)return Ci(t,u)}else{var h=vo(t),d=h==E||h==k;if(Xa(t))return Ei(t,c);if(h==N||h==m||d&&!o){if(u=l||d?{}:yo(t),!c)return l?function(t,e){return Ai(t,po(t),e)}(t,function(t,e){return t&&Ai(e,Lu(e),t)}(u,t)):function(t,e){return Ai(t,ho(t),e)}(t,ir(u,t))}else{if(!le[h])return o?t:{};u=function(t,e,n){var r=t.constructor;switch(e){case z:return ki(t);case b:case w:return new r(+t);case O:return function(t,e){var n=e?ki(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case I:case U:case D:case j:case F:case B:case q:case H:case Y:return Ti(t,n);case T:return new r;case M:case P:return new r(t);case C:return function(t){var e=new t.constructor(t.source,vt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case A:return new r;case L:return i=t,Dn?St(Dn.call(i)):{}}var i}(t,h,c)}}a||(a=new Qn);var p=a.get(t);if(p)return p;a.set(t,u),au(t)?t.forEach((function(r){u.add(cr(r,e,n,r,t,a))})):nu(t)&&t.forEach((function(r,i){u.set(i,cr(r,e,n,i,t,a))}));var v=f?i:(s?l?io:ro:l?Lu:Pu)(t);return Ce(v||t,(function(r,i){v&&(r=t[i=r]),er(u,i,cr(r,e,n,i,t,a))})),u}function lr(t,e,n){var r=n.length;if(null==t)return!r;for(t=St(t);r--;){var o=n[r],a=e[o],u=t[o];if(u===i&&!(o in t)||!a(u))return!1}return!0}function sr(t,e,n){if("function"!=typeof t)throw new Pt(o);return Po((function(){t.apply(i,n)}),e)}function fr(t,e,n,r){var i=-1,o=Re,a=!0,u=t.length,c=[],l=e.length;if(!u)return c;n&&(e=Oe(e,Ze(n))),r?(o=ze,a=!1):e.length>=200&&(o=tn,a=!1,e=new Xn(e));t:for(;++i-1},Vn.prototype.set=function(t,e){var n=this.__data__,r=nr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},$n.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(Tn||Vn),string:new Wn}},$n.prototype.delete=function(t){var e=lo(this,t).delete(t);return this.size-=e?1:0,e},$n.prototype.get=function(t){return lo(this,t).get(t)},$n.prototype.has=function(t){return lo(this,t).has(t)},$n.prototype.set=function(t,e){var n=lo(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Xn.prototype.add=Xn.prototype.push=function(t){return this.__data__.set(t,a),this},Xn.prototype.has=function(t){return this.__data__.has(t)},Qn.prototype.clear=function(){this.__data__=new Vn,this.size=0},Qn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Qn.prototype.get=function(t){return this.__data__.get(t)},Qn.prototype.has=function(t){return this.__data__.has(t)},Qn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Vn){var r=n.__data__;if(!Tn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new $n(r)}return n.set(t,e),this.size=n.size,this};var hr=Ri(br),dr=Ri(wr,!0);function pr(t,e){var n=!0;return hr(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function vr(t,e,n){for(var r=-1,o=t.length;++r0&&n(u)?e>1?yr(u,e-1,n,r,i):Ie(i,u):r||(i[i.length]=u)}return i}var mr=zi(),_r=zi(!0);function br(t,e){return t&&mr(t,e,Pu)}function wr(t,e){return t&&_r(t,e,Pu)}function xr(t,e){return Le(e,(function(e){return Ka(t[e])}))}function Er(t,e){for(var n=0,r=(e=_i(e,t)).length;null!=t&&ne}function Nr(t,e){return null!=t&&Ut.call(t,e)}function Sr(t,e){return null!=t&&e in St(t)}function Cr(t,e,n){for(var o=n?ze:Re,a=t[0].length,u=t.length,c=u,l=r(u),s=1/0,f=[];c--;){var h=t[c];c&&e&&(h=Oe(h,Ze(e))),s=_n(h.length,s),l[c]=!n&&(e||a>=120&&h.length>=120)?new Xn(c&&h):i}h=t[0];var d=-1,p=l[0];t:for(;++d=u?c:c*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function Wr(t,e,n){for(var r=-1,i=e.length,o={};++r-1;)u!==t&&Kt.call(u,c,1),Kt.call(t,c,1);return t}function $r(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;_o(i)?Kt.call(t,i,1):fi(t,i)}}return t}function Xr(t,e){return t+ye(xn()*(e-t+1))}function Qr(t,e){var n="";if(!t||e<1||e>p)return n;do{e%2&&(n+=t),(e=ye(e/2))&&(t+=t)}while(e);return n}function Gr(t,e){return Lo(No(t,e,rc),t+"")}function Kr(t){return Kn(Fu(t))}function Zr(t,e){var n=Fu(t);return Oo(n,ur(e,0,n.length))}function Jr(t,e,n,r){if(!tu(t))return t;for(var o=-1,a=(e=_i(e,t)).length,u=a-1,c=t;null!=c&&++oo?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var a=r(o);++i>>1,a=t[o];null!==a&&!cu(a)&&(n?a<=e:a=200){var l=e?null:Qi(t);if(l)return fn(l);a=!1,i=tn,c=new Xn}else c=e?[]:u;t:for(;++r=r?t:ri(t,e,n)}var xi=se||function(t){return ve.clearTimeout(t)};function Ei(t,e){if(e)return t.slice();var n=t.length,r=$t?$t(n):new t.constructor(n);return t.copy(r),r}function ki(t){var e=new t.constructor(t.byteLength);return new Vt(e).set(new Vt(t)),e}function Ti(t,e){var n=e?ki(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Mi(t,e){if(t!==e){var n=t!==i,r=null===t,o=t==t,a=cu(t),u=e!==i,c=null===e,l=e==e,s=cu(e);if(!c&&!s&&!a&&t>e||a&&u&&l&&!c&&!s||r&&u&&l||!n&&l||!o)return 1;if(!r&&!a&&!s&&t1?n[o-1]:i,u=o>2?n[2]:i;for(a=t.length>3&&"function"==typeof a?(o--,a):i,u&&bo(n[0],n[1],u)&&(a=o<3?i:a,o=1),e=St(e);++r-1?o[a?e[u]:u]:i}}function ji(t){return no((function(e){var n=e.length,r=n,a=Hn.prototype.thru;for(t&&e.reverse();r--;){var u=e[r];if("function"!=typeof u)throw new Pt(o);if(a&&!c&&"wrapper"==ao(u))var c=new Hn([],!0)}for(r=c?r:n;++r1&&b.reverse(),d&&s<_&&(b.length=s),this&&this!==ve&&this instanceof f&&(M=m||Ui(M)),M.apply(T,b)}}function Bi(t,e){return function(n,r){return function(t,e,n,r){return br(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}function qi(t,e){return function(n,r){var o;if(n===i&&r===i)return e;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=li(n),r=li(r)):(n=ci(n),r=ci(r)),o=t(n,r)}return o}}function Hi(t){return no((function(e){return e=Oe(e,Ze(co())),Gr((function(n){var r=this;return t(e,(function(t){return Ne(t,r,n)}))}))}))}function Yi(t,e){var n=(e=e===i?" ":li(e)).length;if(n<2)return n?Qr(e,t):e;var r=Qr(e,ge(t/dn(e)));return un(e)?wi(pn(r),0,t).join(""):r.slice(0,t)}function Wi(t){return function(e,n,o){return o&&"number"!=typeof o&&bo(e,n,o)&&(n=o=i),e=du(e),n===i?(n=e,e=0):n=du(n),function(t,e,n,i){for(var o=-1,a=mn(ge((e-t)/(n||1)),0),u=r(a);a--;)u[i?a:++o]=t,t+=n;return u}(e,n,o=o===i?ec))return!1;var s=a.get(t);if(s&&a.get(e))return s==e;var f=-1,h=!0,d=2&n?new Xn:i;for(a.set(t,e),a.set(e,t);++f-1&&t%1==0&&t1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(lt,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Ce(y,(function(n){var r="_."+n[0];e&n[1]&&!Re(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(st);return e?e[1].split(ft):[]}(r),n)))}function zo(t){var e=0,n=0;return function(){var r=bn(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Oo(t,e){var n=-1,r=t.length,o=r-1;for(e=e===i?r:e;++n1?t[e-1]:i;return n="function"==typeof n?(t.pop(),n):i,oa(t,n)}));function ha(t){var e=Fn(t);return e.__chain__=!0,e}function da(t,e){return e(t)}var pa=no((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return ar(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Yn&&_o(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:da,args:[o],thisArg:i}),new Hn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(i),t}))):this.thru(o)}));var va=Pi((function(t,e,n){Ut.call(t,n)?++t[n]:or(t,n,1)}));var ga=Di(Ho),ya=Di(Yo);function ma(t,e){return(Ya(t)?Ce:hr)(t,co(e,3))}function _a(t,e){return(Ya(t)?Ae:dr)(t,co(e,3))}var ba=Pi((function(t,e,n){Ut.call(t,n)?t[n].push(e):or(t,n,[e])}));var wa=Gr((function(t,e,n){var i=-1,o="function"==typeof e,a=Va(t)?r(t.length):[];return hr(t,(function(t){a[++i]=o?Ne(e,t,n):Ar(t,e,n)})),a})),xa=Pi((function(t,e,n){or(t,n,e)}));function Ea(t,e){return(Ya(t)?Oe:jr)(t,co(e,3))}var ka=Pi((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var Ta=Gr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&bo(t,e[0],e[1])?e=[]:n>2&&bo(e[0],e[1],e[2])&&(e=[e[0]]),Yr(t,yr(e,1),[])})),Ma=de||function(){return ve.Date.now()};function Na(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,Ki(t,f,i,i,i,i,e)}function Sa(t,e){var n;if("function"!=typeof e)throw new Pt(o);return t=pu(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var Ca=Gr((function(t,e,n){var r=1;if(n.length){var i=sn(n,uo(Ca));r|=l}return Ki(t,r,e,n,i)})),Aa=Gr((function(t,e,n){var r=3;if(n.length){var i=sn(n,uo(Aa));r|=l}return Ki(e,r,t,n,i)}));function Pa(t,e,n){var r,a,u,c,l,s,f=0,h=!1,d=!1,p=!0;if("function"!=typeof t)throw new Pt(o);function v(e){var n=r,o=a;return r=a=i,f=e,c=t.apply(o,n)}function g(t){var n=t-s;return s===i||n>=e||n<0||d&&t-f>=u}function y(){var t=Ma();if(g(t))return m(t);l=Po(y,function(t){var n=e-(t-s);return d?_n(n,u-(t-f)):n}(t))}function m(t){return l=i,p&&r?v(t):(r=a=i,c)}function _(){var t=Ma(),n=g(t);if(r=arguments,a=this,s=t,n){if(l===i)return function(t){return f=t,l=Po(y,e),h?v(t):c}(s);if(d)return xi(l),l=Po(y,e),v(s)}return l===i&&(l=Po(y,e)),c}return e=gu(e)||0,tu(n)&&(h=!!n.leading,u=(d="maxWait"in n)?mn(gu(n.maxWait)||0,e):u,p="trailing"in n?!!n.trailing:p),_.cancel=function(){l!==i&&xi(l),f=0,r=s=a=l=i},_.flush=function(){return l===i?c:m(Ma())},_}var La=Gr((function(t,e){return sr(t,1,e)})),Ra=Gr((function(t,e,n){return sr(t,gu(e)||0,n)}));function za(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Pt(o);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(za.Cache||$n),n}function Oa(t){if("function"!=typeof t)throw new Pt(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}za.Cache=$n;var Ia=bi((function(t,e){var n=(e=1==e.length&&Ya(e[0])?Oe(e[0],Ze(co())):Oe(yr(e,1),Ze(co()))).length;return Gr((function(r){for(var i=-1,o=_n(r.length,n);++i=e})),Ha=Pr(function(){return arguments}())?Pr:function(t){return eu(t)&&Ut.call(t,"callee")&&!Gt.call(t,"callee")},Ya=r.isArray,Wa=we?Ze(we):function(t){return eu(t)&&Tr(t)==z};function Va(t){return null!=t&&Ja(t.length)&&!Ka(t)}function $a(t){return eu(t)&&Va(t)}var Xa=be||gc,Qa=xe?Ze(xe):function(t){return eu(t)&&Tr(t)==w};function Ga(t){if(!eu(t))return!1;var e=Tr(t);return e==x||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!iu(t)}function Ka(t){if(!tu(t))return!1;var e=Tr(t);return e==E||e==k||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Za(t){return"number"==typeof t&&t==pu(t)}function Ja(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=p}function tu(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function eu(t){return null!=t&&"object"==typeof t}var nu=Ee?Ze(Ee):function(t){return eu(t)&&vo(t)==T};function ru(t){return"number"==typeof t||eu(t)&&Tr(t)==M}function iu(t){if(!eu(t)||Tr(t)!=N)return!1;var e=Xt(t);if(null===e)return!0;var n=Ut.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&It.call(n)==Bt}var ou=ke?Ze(ke):function(t){return eu(t)&&Tr(t)==C};var au=Te?Ze(Te):function(t){return eu(t)&&vo(t)==A};function uu(t){return"string"==typeof t||!Ya(t)&&eu(t)&&Tr(t)==P}function cu(t){return"symbol"==typeof t||eu(t)&&Tr(t)==L}var lu=Me?Ze(Me):function(t){return eu(t)&&Ja(t.length)&&!!ce[Tr(t)]};var su=Vi(Dr),fu=Vi((function(t,e){return t<=e}));function hu(t){if(!t)return[];if(Va(t))return uu(t)?pn(t):Ci(t);if(Jt&&t[Jt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Jt]());var e=vo(t);return(e==T?cn:e==A?fn:Fu)(t)}function du(t){return t?(t=gu(t))===d||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function pu(t){var e=du(t),n=e%1;return e==e?n?e-n:e:0}function vu(t){return t?ur(pu(t),0,g):0}function gu(t){if("number"==typeof t)return t;if(cu(t))return v;if(tu(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=tu(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(at,"");var n=yt.test(t);return n||_t.test(t)?he(t.slice(2),n?2:8):gt.test(t)?v:+t}function yu(t){return Ai(t,Lu(t))}function mu(t){return null==t?"":li(t)}var _u=Li((function(t,e){if(ko(e)||Va(e))Ai(e,Pu(e),t);else for(var n in e)Ut.call(e,n)&&er(t,n,e[n])})),bu=Li((function(t,e){Ai(e,Lu(e),t)})),wu=Li((function(t,e,n,r){Ai(e,Lu(e),t,r)})),xu=Li((function(t,e,n,r){Ai(e,Pu(e),t,r)})),Eu=no(ar);var ku=Gr((function(t,e){t=St(t);var n=-1,r=e.length,o=r>2?e[2]:i;for(o&&bo(e[0],e[1],o)&&(r=1);++n1),e})),Ai(t,io(t),n),r&&(n=cr(n,7,to));for(var i=e.length;i--;)fi(n,e[i]);return n}));var Iu=no((function(t,e){return null==t?{}:function(t,e){return Wr(t,e,(function(e,n){return Nu(t,n)}))}(t,e)}));function Uu(t,e){if(null==t)return{};var n=Oe(io(t),(function(t){return[t]}));return e=co(e),Wr(t,n,(function(t,n){return e(t,n[0])}))}var Du=Gi(Pu),ju=Gi(Lu);function Fu(t){return null==t?[]:Je(t,Pu(t))}var Bu=Ii((function(t,e,n){return e=e.toLowerCase(),t+(n?qu(e):e)}));function qu(t){return Gu(mu(t).toLowerCase())}function Hu(t){return(t=mu(t))&&t.replace(wt,rn).replace(ee,"")}var Yu=Ii((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Wu=Ii((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Vu=Oi("toLowerCase");var $u=Ii((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Xu=Ii((function(t,e,n){return t+(n?" ":"")+Gu(e)}));var Qu=Ii((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Gu=Oi("toUpperCase");function Ku(t,e,n){return t=mu(t),(e=n?i:e)===i?function(t){return oe.test(t)}(t)?function(t){return t.match(re)||[]}(t):function(t){return t.match(ht)||[]}(t):t.match(e)||[]}var Zu=Gr((function(t,e){try{return Ne(t,i,e)}catch(t){return Ga(t)?t:new Tt(t)}})),Ju=no((function(t,e){return Ce(e,(function(e){e=Uo(e),or(t,e,Ca(t[e],t))})),t}));function tc(t){return function(){return t}}var ec=ji(),nc=ji(!0);function rc(t){return t}function ic(t){return Or("function"==typeof t?t:cr(t,1))}var oc=Gr((function(t,e){return function(n){return Ar(n,t,e)}})),ac=Gr((function(t,e){return function(n){return Ar(t,n,e)}}));function uc(t,e,n){var r=Pu(e),i=xr(e,r);null!=n||tu(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=xr(e,Pu(e)));var o=!(tu(n)&&"chain"in n&&!n.chain),a=Ka(t);return Ce(i,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=Ci(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Ie([this.value()],arguments))})})),t}function cc(){}var lc=Hi(Oe),sc=Hi(Pe),fc=Hi(je);function hc(t){return wo(t)?$e(Uo(t)):function(t){return function(e){return Er(e,t)}}(t)}var dc=Wi(),pc=Wi(!0);function vc(){return[]}function gc(){return!1}var yc=qi((function(t,e){return t+e}),0),mc=Xi("ceil"),_c=qi((function(t,e){return t/e}),1),bc=Xi("floor");var wc,xc=qi((function(t,e){return t*e}),1),Ec=Xi("round"),kc=qi((function(t,e){return t-e}),0);return Fn.after=function(t,e){if("function"!=typeof e)throw new Pt(o);return t=pu(t),function(){if(--t<1)return e.apply(this,arguments)}},Fn.ary=Na,Fn.assign=_u,Fn.assignIn=bu,Fn.assignInWith=wu,Fn.assignWith=xu,Fn.at=Eu,Fn.before=Sa,Fn.bind=Ca,Fn.bindAll=Ju,Fn.bindKey=Aa,Fn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ya(t)?t:[t]},Fn.chain=ha,Fn.chunk=function(t,e,n){e=(n?bo(t,e,n):e===i)?1:mn(pu(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var a=0,u=0,c=r(ge(o/e));ao?0:o+n),(r=r===i||r>o?o:pu(r))<0&&(r+=o),r=n>r?0:vu(r);n>>0)?(t=mu(t))&&("string"==typeof e||null!=e&&!ou(e))&&!(e=li(e))&&un(t)?wi(pn(t),0,n):t.split(e,n):[]},Fn.spread=function(t,e){if("function"!=typeof t)throw new Pt(o);return e=null==e?0:mn(pu(e),0),Gr((function(n){var r=n[e],i=wi(n,0,e);return r&&Ie(i,r),Ne(t,this,i)}))},Fn.tail=function(t){var e=null==t?0:t.length;return e?ri(t,1,e):[]},Fn.take=function(t,e,n){return t&&t.length?ri(t,0,(e=n||e===i?1:pu(e))<0?0:e):[]},Fn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?ri(t,(e=r-(e=n||e===i?1:pu(e)))<0?0:e,r):[]},Fn.takeRightWhile=function(t,e){return t&&t.length?di(t,co(e,3),!1,!0):[]},Fn.takeWhile=function(t,e){return t&&t.length?di(t,co(e,3)):[]},Fn.tap=function(t,e){return e(t),t},Fn.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new Pt(o);return tu(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Pa(t,e,{leading:r,maxWait:e,trailing:i})},Fn.thru=da,Fn.toArray=hu,Fn.toPairs=Du,Fn.toPairsIn=ju,Fn.toPath=function(t){return Ya(t)?Oe(t,Uo):cu(t)?[t]:Ci(Io(mu(t)))},Fn.toPlainObject=yu,Fn.transform=function(t,e,n){var r=Ya(t),i=r||Xa(t)||lu(t);if(e=co(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:tu(t)&&Ka(o)?Bn(Xt(t)):{}}return(i?Ce:br)(t,(function(t,r,i){return e(n,t,r,i)})),n},Fn.unary=function(t){return Na(t,1)},Fn.union=ea,Fn.unionBy=na,Fn.unionWith=ra,Fn.uniq=function(t){return t&&t.length?si(t):[]},Fn.uniqBy=function(t,e){return t&&t.length?si(t,co(e,2)):[]},Fn.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?si(t,i,e):[]},Fn.unset=function(t,e){return null==t||fi(t,e)},Fn.unzip=ia,Fn.unzipWith=oa,Fn.update=function(t,e,n){return null==t?t:hi(t,e,mi(n))},Fn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:hi(t,e,mi(n),r)},Fn.values=Fu,Fn.valuesIn=function(t){return null==t?[]:Je(t,Lu(t))},Fn.without=aa,Fn.words=Ku,Fn.wrap=function(t,e){return Ua(mi(e),t)},Fn.xor=ua,Fn.xorBy=ca,Fn.xorWith=la,Fn.zip=sa,Fn.zipObject=function(t,e){return gi(t||[],e||[],er)},Fn.zipObjectDeep=function(t,e){return gi(t||[],e||[],Jr)},Fn.zipWith=fa,Fn.entries=Du,Fn.entriesIn=ju,Fn.extend=bu,Fn.extendWith=wu,uc(Fn,Fn),Fn.add=yc,Fn.attempt=Zu,Fn.camelCase=Bu,Fn.capitalize=qu,Fn.ceil=mc,Fn.clamp=function(t,e,n){return n===i&&(n=e,e=i),n!==i&&(n=(n=gu(n))==n?n:0),e!==i&&(e=(e=gu(e))==e?e:0),ur(gu(t),e,n)},Fn.clone=function(t){return cr(t,4)},Fn.cloneDeep=function(t){return cr(t,5)},Fn.cloneDeepWith=function(t,e){return cr(t,5,e="function"==typeof e?e:i)},Fn.cloneWith=function(t,e){return cr(t,4,e="function"==typeof e?e:i)},Fn.conformsTo=function(t,e){return null==e||lr(t,e,Pu(e))},Fn.deburr=Hu,Fn.defaultTo=function(t,e){return null==t||t!=t?e:t},Fn.divide=_c,Fn.endsWith=function(t,e,n){t=mu(t),e=li(e);var r=t.length,o=n=n===i?r:ur(pu(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},Fn.eq=Fa,Fn.escape=function(t){return(t=mu(t))&&K.test(t)?t.replace(Q,on):t},Fn.escapeRegExp=function(t){return(t=mu(t))&&ot.test(t)?t.replace(it,"\\$&"):t},Fn.every=function(t,e,n){var r=Ya(t)?Pe:pr;return n&&bo(t,e,n)&&(e=i),r(t,co(e,3))},Fn.find=ga,Fn.findIndex=Ho,Fn.findKey=function(t,e){return Be(t,co(e,3),br)},Fn.findLast=ya,Fn.findLastIndex=Yo,Fn.findLastKey=function(t,e){return Be(t,co(e,3),wr)},Fn.floor=bc,Fn.forEach=ma,Fn.forEachRight=_a,Fn.forIn=function(t,e){return null==t?t:mr(t,co(e,3),Lu)},Fn.forInRight=function(t,e){return null==t?t:_r(t,co(e,3),Lu)},Fn.forOwn=function(t,e){return t&&br(t,co(e,3))},Fn.forOwnRight=function(t,e){return t&&wr(t,co(e,3))},Fn.get=Mu,Fn.gt=Ba,Fn.gte=qa,Fn.has=function(t,e){return null!=t&&go(t,e,Nr)},Fn.hasIn=Nu,Fn.head=Vo,Fn.identity=rc,Fn.includes=function(t,e,n,r){t=Va(t)?t:Fu(t),n=n&&!r?pu(n):0;var i=t.length;return n<0&&(n=mn(i+n,0)),uu(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&He(t,e,n)>-1},Fn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:pu(n);return i<0&&(i=mn(r+i,0)),He(t,e,i)},Fn.inRange=function(t,e,n){return e=du(e),n===i?(n=e,e=0):n=du(n),function(t,e,n){return t>=_n(e,n)&&t=-9007199254740991&&t<=p},Fn.isSet=au,Fn.isString=uu,Fn.isSymbol=cu,Fn.isTypedArray=lu,Fn.isUndefined=function(t){return t===i},Fn.isWeakMap=function(t){return eu(t)&&vo(t)==R},Fn.isWeakSet=function(t){return eu(t)&&"[object WeakSet]"==Tr(t)},Fn.join=function(t,e){return null==t?"":Xe.call(t,e)},Fn.kebabCase=Yu,Fn.last=Go,Fn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=pu(n))<0?mn(r+o,0):_n(o,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):qe(t,We,o,!0)},Fn.lowerCase=Wu,Fn.lowerFirst=Vu,Fn.lt=su,Fn.lte=fu,Fn.max=function(t){return t&&t.length?vr(t,rc,Mr):i},Fn.maxBy=function(t,e){return t&&t.length?vr(t,co(e,2),Mr):i},Fn.mean=function(t){return Ve(t,rc)},Fn.meanBy=function(t,e){return Ve(t,co(e,2))},Fn.min=function(t){return t&&t.length?vr(t,rc,Dr):i},Fn.minBy=function(t,e){return t&&t.length?vr(t,co(e,2),Dr):i},Fn.stubArray=vc,Fn.stubFalse=gc,Fn.stubObject=function(){return{}},Fn.stubString=function(){return""},Fn.stubTrue=function(){return!0},Fn.multiply=xc,Fn.nth=function(t,e){return t&&t.length?Hr(t,pu(e)):i},Fn.noConflict=function(){return ve._===this&&(ve._=qt),this},Fn.noop=cc,Fn.now=Ma,Fn.pad=function(t,e,n){t=mu(t);var r=(e=pu(e))?dn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Yi(ye(i),n)+t+Yi(ge(i),n)},Fn.padEnd=function(t,e,n){t=mu(t);var r=(e=pu(e))?dn(t):0;return e&&re){var r=t;t=e,e=r}if(n||t%1||e%1){var o=xn();return _n(t+o*(e-t+fe("1e-"+((o+"").length-1))),e)}return Xr(t,e)},Fn.reduce=function(t,e,n){var r=Ya(t)?Ue:Qe,i=arguments.length<3;return r(t,co(e,4),n,i,hr)},Fn.reduceRight=function(t,e,n){var r=Ya(t)?De:Qe,i=arguments.length<3;return r(t,co(e,4),n,i,dr)},Fn.repeat=function(t,e,n){return e=(n?bo(t,e,n):e===i)?1:pu(e),Qr(mu(t),e)},Fn.replace=function(){var t=arguments,e=mu(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Fn.result=function(t,e,n){var r=-1,o=(e=_i(e,t)).length;for(o||(o=1,t=i);++rp)return[];var n=g,r=_n(t,g);e=co(e),t-=g;for(var i=Ke(r,e);++n=a)return t;var c=n-dn(r);if(c<1)return r;var l=u?wi(u,0,c).join(""):t.slice(0,c);if(o===i)return l+r;if(u&&(c+=l.length-c),ou(o)){if(t.slice(c).search(o)){var s,f=l;for(o.global||(o=Ct(o.source,mu(vt.exec(o))+"g")),o.lastIndex=0;s=o.exec(f);)var h=s.index;l=l.slice(0,h===i?c:h)}}else if(t.indexOf(li(o),c)!=c){var d=l.lastIndexOf(o);d>-1&&(l=l.slice(0,d))}return l+r},Fn.unescape=function(t){return(t=mu(t))&&G.test(t)?t.replace(X,vn):t},Fn.uniqueId=function(t){var e=++Dt;return mu(t)+e},Fn.upperCase=Qu,Fn.upperFirst=Gu,Fn.each=ma,Fn.eachRight=_a,Fn.first=Vo,uc(Fn,(wc={},br(Fn,(function(t,e){Ut.call(Fn.prototype,e)||(wc[e]=t)})),wc),{chain:!1}),Fn.VERSION="4.17.14",Ce(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Fn[t].placeholder=Fn})),Ce(["drop","take"],(function(t,e){Yn.prototype[t]=function(n){n=n===i?1:mn(pu(n),0);var r=this.__filtered__&&!e?new Yn(this):this.clone();return r.__filtered__?r.__takeCount__=_n(n,r.__takeCount__):r.__views__.push({size:_n(n,g),type:t+(r.__dir__<0?"Right":"")}),r},Yn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Ce(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Yn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:co(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Ce(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Yn.prototype[t]=function(){return this[n](1).value()[0]}})),Ce(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Yn.prototype[t]=function(){return this.__filtered__?new Yn(this):this[n](1)}})),Yn.prototype.compact=function(){return this.filter(rc)},Yn.prototype.find=function(t){return this.filter(t).head()},Yn.prototype.findLast=function(t){return this.reverse().find(t)},Yn.prototype.invokeMap=Gr((function(t,e){return"function"==typeof t?new Yn(this):this.map((function(n){return Ar(n,t,e)}))})),Yn.prototype.reject=function(t){return this.filter(Oa(co(t)))},Yn.prototype.slice=function(t,e){t=pu(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Yn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==i&&(n=(e=pu(e))<0?n.dropRight(-e):n.take(e-t)),n)},Yn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Yn.prototype.toArray=function(){return this.take(g)},br(Yn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=Fn[r?"take"+("last"==e?"Right":""):e],a=r||/^find/.test(e);o&&(Fn.prototype[e]=function(){var e=this.__wrapped__,u=r?[1]:arguments,c=e instanceof Yn,l=u[0],s=c||Ya(e),f=function(t){var e=o.apply(Fn,Ie([t],u));return r&&h?e[0]:e};s&&n&&"function"==typeof l&&1!=l.length&&(c=s=!1);var h=this.__chain__,d=!!this.__actions__.length,p=a&&!h,v=c&&!d;if(!a&&s){e=v?e:new Yn(this);var g=t.apply(e,u);return g.__actions__.push({func:da,args:[f],thisArg:i}),new Hn(g,h)}return p&&v?t.apply(this,u):(g=this.thru(f),p?r?g.value()[0]:g.value():g)})})),Ce(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Lt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Fn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Ya(i)?i:[],t)}return this[n]((function(n){return e.apply(Ya(n)?n:[],t)}))}})),br(Yn.prototype,(function(t,e){var n=Fn[e];if(n){var r=n.name+"";Ut.call(Pn,r)||(Pn[r]=[]),Pn[r].push({name:e,func:n})}})),Pn[Fi(i,2).name]=[{name:"wrapper",func:i}],Yn.prototype.clone=function(){var t=new Yn(this.__wrapped__);return t.__actions__=Ci(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ci(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ci(this.__views__),t},Yn.prototype.reverse=function(){if(this.__filtered__){var t=new Yn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Yn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ya(t),r=e<0,i=n?t.length:0,o=function(t,e,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},Fn.prototype.plant=function(t){for(var e,n=this;n instanceof qn;){var r=jo(n);r.__index__=0,r.__values__=i,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e},Fn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Yn){var e=t;return this.__actions__.length&&(e=new Yn(this)),(e=e.reverse()).__actions__.push({func:da,args:[ta],thisArg:i}),new Hn(e,this.__chain__)}return this.thru(ta)},Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},Fn.prototype.first=Fn.prototype.head,Jt&&(Fn.prototype[Jt]=function(){return this}),Fn}();ve._=gn,(r=function(){return gn}.call(e,n,e,t))===i||(t.exports=r)}.call(this)},5228:t=>{"use strict";var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,i){for(var o,a,u=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),c=1;c{"use strict";var r=n(6540),i=n(5228),o=n(9982);function a(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;ne}return!1}(e,n,i,r)&&(n=null),r||null===i?function(t){return!!H.call(W,t)||!H.call(Y,t)&&(q.test(t)?W[t]=!0:(Y[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=null===n?3!==i.type&&"":n:(e=i.attributeName,r=i.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}G.hasOwnProperty("ReactCurrentDispatcher")||(G.ReactCurrentDispatcher={current:null}),G.hasOwnProperty("ReactCurrentBatchConfig")||(G.ReactCurrentBatchConfig={suspense:null});var Z=/^(.*)[\\\/]/,J="function"==typeof Symbol&&Symbol.for,tt=J?Symbol.for("react.element"):60103,et=J?Symbol.for("react.portal"):60106,nt=J?Symbol.for("react.fragment"):60107,rt=J?Symbol.for("react.strict_mode"):60108,it=J?Symbol.for("react.profiler"):60114,ot=J?Symbol.for("react.provider"):60109,at=J?Symbol.for("react.context"):60110,ut=J?Symbol.for("react.concurrent_mode"):60111,ct=J?Symbol.for("react.forward_ref"):60112,lt=J?Symbol.for("react.suspense"):60113,st=J?Symbol.for("react.suspense_list"):60120,ft=J?Symbol.for("react.memo"):60115,ht=J?Symbol.for("react.lazy"):60116,dt=J?Symbol.for("react.block"):60121,pt="function"==typeof Symbol&&Symbol.iterator;function vt(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=pt&&t[pt]||t["@@iterator"])?t:null}function gt(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case nt:return"Fragment";case et:return"Portal";case it:return"Profiler";case rt:return"StrictMode";case lt:return"Suspense";case st:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case at:return"Context.Consumer";case ot:return"Context.Provider";case ct:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case ft:return gt(t.type);case dt:return gt(t.render);case ht:if(t=1===t._status?t._result:null)return gt(t)}return null}function yt(t){var e="";do{t:switch(t.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break t;default:var r=t._debugOwner,i=t._debugSource,o=gt(t.type);n=null,r&&(n=gt(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(Z,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}e+=n,t=t.return}while(t);return e}function mt(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function _t(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function bt(t){t._valueTracker||(t._valueTracker=function(t){var e=_t(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(t){r=""+t,o.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function wt(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=_t(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}function xt(t,e){var n=e.checked;return i({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function Et(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=mt(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function kt(t,e){null!=(e=e.checked)&&K(t,"checked",e,!1)}function Tt(t,e){kt(t,e);var n=mt(e.value),r=e.type;if(null!=n)"number"===r?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===r||"reset"===r)return void t.removeAttribute("value");e.hasOwnProperty("value")?Nt(t,e.type,n):e.hasOwnProperty("defaultValue")&&Nt(t,e.type,mt(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function Mt(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function Nt(t,e,n){"number"===e&&t.ownerDocument.activeElement===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function St(t,e){return t=i({children:void 0},e),(e=function(t){var e="";return r.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(e.children))&&(t.children=e),t}function Ct(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i=n.length))throw Error(a(93));n=n[0]}e=n}null==e&&(e=""),n=e}t._wrapperState={initialValue:mt(n)}}function Lt(t,e){var n=mt(e.value),r=mt(e.defaultValue);null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&t.defaultValue!==n&&(t.defaultValue=n)),null!=r&&(t.defaultValue=""+r)}function Rt(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}var zt="http://www.w3.org/1999/xhtml",Ot="http://www.w3.org/2000/svg";function It(t){switch(t){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 Ut(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?It(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var Dt,jt,Ft=(jt=function(t,e){if(t.namespaceURI!==Ot||"innerHTML"in t)t.innerHTML=e;else{for((Dt=Dt||document.createElement("div")).innerHTML="",e=Dt.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,e,n,r){MSApp.execUnsafeLocalFunction((function(){return jt(t,e)}))}:jt);function Bt(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}function qt(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ht={animationend:qt("Animation","AnimationEnd"),animationiteration:qt("Animation","AnimationIteration"),animationstart:qt("Animation","AnimationStart"),transitionend:qt("Transition","TransitionEnd")},Yt={},Wt={};function Vt(t){if(Yt[t])return Yt[t];if(!Ht[t])return t;var e,n=Ht[t];for(e in n)if(n.hasOwnProperty(e)&&e in Wt)return Yt[t]=n[e];return t}N&&(Wt=document.createElement("div").style,"AnimationEvent"in window||(delete Ht.animationend.animation,delete Ht.animationiteration.animation,delete Ht.animationstart.animation),"TransitionEvent"in window||delete Ht.transitionend.transition);var $t=Vt("animationend"),Xt=Vt("animationiteration"),Qt=Vt("animationstart"),Gt=Vt("transitionend"),Kt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Zt=new("function"==typeof WeakMap?WeakMap:Map);function Jt(t){var e=Zt.get(t);return void 0===e&&(e=new Map,Zt.set(t,e)),e}function te(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do{!!(1026&(e=t).effectTag)&&(n=e.return),t=e.return}while(t)}return 3===e.tag?n:null}function ee(t){if(13===t.tag){var e=t.memoizedState;if(null===e&&(null!==(t=t.alternate)&&(e=t.memoizedState)),null!==e)return e.dehydrated}return null}function ne(t){if(te(t)!==t)throw Error(a(188))}function re(t){if(t=function(t){var e=t.alternate;if(!e){if(null===(e=te(t)))throw Error(a(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return ne(i),t;if(o===r)return ne(i),e;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var u=!1,c=i.child;c;){if(c===n){u=!0,n=i,r=o;break}if(c===r){u=!0,r=i,n=o;break}c=c.sibling}if(!u){for(c=o.child;c;){if(c===n){u=!0,n=o,r=i;break}if(c===r){u=!0,r=o,n=i;break}c=c.sibling}if(!u)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?t:e}(t),!t)return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function ie(t,e){if(null==e)throw Error(a(30));return null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}function oe(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}var ae=null;function ue(t){if(t){var e=t._dispatchListeners,n=t._dispatchInstances;if(Array.isArray(e))for(var r=0;rfe.length&&fe.push(t)}function de(t,e,n,r){if(fe.length){var i=fe.pop();return i.topLevelType=t,i.eventSystemFlags=r,i.nativeEvent=e,i.targetInst=n,i}return{topLevelType:t,eventSystemFlags:r,nativeEvent:e,targetInst:n,ancestors:[]}}function pe(t){var e=t.targetInst,n=e;do{if(!n){t.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!==(e=n.tag)&&6!==e||t.ancestors.push(n),n=Rn(r)}while(n);for(n=0;n=e)return{node:r,offset:e-t};t=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=hn(r)}}function pn(t,e){return!(!t||!e)&&(t===e||(!t||3!==t.nodeType)&&(e&&3===e.nodeType?pn(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}function vn(){for(var t=window,e=fn();e instanceof t.HTMLIFrameElement;){try{var n="string"==typeof e.contentWindow.location.href}catch(t){n=!1}if(!n)break;e=fn((t=e.contentWindow).document)}return e}function gn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}var yn="$",mn="/$",_n="$?",bn="$!",wn=null,xn=null;function En(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function kn(t,e){return"textarea"===t||"option"===t||"noscript"===t||"string"==typeof e.children||"number"==typeof e.children||"object"==typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var Tn="function"==typeof setTimeout?setTimeout:void 0,Mn="function"==typeof clearTimeout?clearTimeout:void 0;function Nn(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break}return t}function Sn(t){t=t.previousSibling;for(var e=0;t;){if(8===t.nodeType){var n=t.data;if(n===yn||n===bn||n===_n){if(0===e)return t;e--}else n===mn&&e++}t=t.previousSibling}return null}var Cn=Math.random().toString(36).slice(2),An="__reactInternalInstance$"+Cn,Pn="__reactEventHandlers$"+Cn,Ln="__reactContainere$"+Cn;function Rn(t){var e=t[An];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Ln]||n[An]){if(n=e.alternate,null!==e.child||null!==n&&null!==n.child)for(t=Sn(t);null!==t;){if(n=t[An])return n;t=Sn(t)}return e}n=(t=n).parentNode}return null}function zn(t){return!(t=t[An]||t[Ln])||5!==t.tag&&6!==t.tag&&13!==t.tag&&3!==t.tag?null:t}function On(t){if(5===t.tag||6===t.tag)return t.stateNode;throw Error(a(33))}function In(t){return t[Pn]||null}function Un(t){do{t=t.return}while(t&&5!==t.tag);return t||null}function Dn(t,e){var n=t.stateNode;if(!n)return null;var r=p(n);if(!r)return null;n=r[e];t:switch(e){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"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!r;break t;default:t=!1}if(t)return null;if(n&&"function"!=typeof n)throw Error(a(231,e,typeof n));return n}function jn(t,e,n){(e=Dn(t,n.dispatchConfig.phasedRegistrationNames[e]))&&(n._dispatchListeners=ie(n._dispatchListeners,e),n._dispatchInstances=ie(n._dispatchInstances,t))}function Fn(t){if(t&&t.dispatchConfig.phasedRegistrationNames){for(var e=t._targetInst,n=[];e;)n.push(e),e=Un(e);for(e=n.length;0this.eventPool.length&&this.eventPool.push(t)}function Jn(t){t.eventPool=[],t.getPooled=Kn,t.release=Zn}i(Gn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=Xn)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=Xn)},persist:function(){this.isPersistent=Xn},isPersistent:Qn,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=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(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Gn.extend=function(t){function e(){}function n(){return r.apply(this,arguments)}var r=this;e.prototype=r.prototype;var o=new e;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,t),n.extend=r.extend,Jn(n),n},Jn(Gn);var tr=Gn.extend({data:null}),er=Gn.extend({data:null}),nr=[9,13,27,32],rr=N&&"CompositionEvent"in window,ir=null;N&&"documentMode"in document&&(ir=document.documentMode);var or=N&&"TextEvent"in window&&!ir,ar=N&&(!rr||ir&&8=ir),ur=String.fromCharCode(32),cr={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(" ")}},lr=!1;function sr(t,e){switch(t){case"keyup":return-1!==nr.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function fr(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var hr=!1;var dr={eventTypes:cr,extractEvents:function(t,e,n,r){var i;if(rr)t:{switch(t){case"compositionstart":var o=cr.compositionStart;break t;case"compositionend":o=cr.compositionEnd;break t;case"compositionupdate":o=cr.compositionUpdate;break t}o=void 0}else hr?sr(t,n)&&(o=cr.compositionEnd):"keydown"===t&&229===n.keyCode&&(o=cr.compositionStart);return o?(ar&&"ko"!==n.locale&&(hr||o!==cr.compositionStart?o===cr.compositionEnd&&hr&&(i=$n()):(Wn="value"in(Yn=r)?Yn.value:Yn.textContent,hr=!0)),o=tr.getPooled(o,e,n,r),i?o.data=i:null!==(i=fr(n))&&(o.data=i),Hn(o),i=o):i=null,(t=or?function(t,e){switch(t){case"compositionend":return fr(e);case"keypress":return 32!==e.which?null:(lr=!0,ur);case"textInput":return(t=e.data)===ur&&lr?null:t;default:return null}}(t,n):function(t,e){if(hr)return"compositionend"===t||!rr&&sr(t,e)?(t=$n(),Vn=Wn=Yn=null,hr=!1,t):null;switch(t){case"paste":default:return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=document.documentMode,$r={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(t,e){var n=e.window===e?e.document:9===e.nodeType?e:e.ownerDocument;return Kr||null==Xr||Xr!==fn(n)?null:("selectionStart"in(n=Xr)&&gn(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&&Wr(Gr,n)?null:(Gr=n,(t=Gn.getPooled($r.select,Qr,t,e)).type="select",t.target=Xr,Hn(t),t))}var Jr={eventTypes:$r,extractEvents:function(t,e,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){t:{i=Jt(i),o=T.onSelect;for(var a=0;adi||(t.current=hi[di],hi[di]=null,di--)}function vi(t,e){di++,hi[di]=t.current,t.current=e}var gi={},yi={current:gi},mi={current:!1},_i=gi;function bi(t,e){var n=t.type.contextTypes;if(!n)return gi;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=e[i];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function wi(t){return null!=(t=t.childContextTypes)}function xi(){pi(mi),pi(yi)}function Ei(t,e,n){if(yi.current!==gi)throw Error(a(168));vi(yi,e),vi(mi,n)}function ki(t,e,n){var r=t.stateNode;if(t=e.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,gt(e)||"Unknown",o));return i({},n,{},r)}function Ti(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||gi,_i=yi.current,vi(yi,t),vi(mi,mi.current),!0}function Mi(t,e,n){var r=t.stateNode;if(!r)throw Error(a(169));n?(t=ki(t,e,_i),r.__reactInternalMemoizedMergedChildContext=t,pi(mi),pi(yi),vi(yi,t)):pi(mi),vi(mi,n)}var Ni=o.unstable_runWithPriority,Si=o.unstable_scheduleCallback,Ci=o.unstable_cancelCallback,Ai=o.unstable_requestPaint,Pi=o.unstable_now,Li=o.unstable_getCurrentPriorityLevel,Ri=o.unstable_ImmediatePriority,zi=o.unstable_UserBlockingPriority,Oi=o.unstable_NormalPriority,Ii=o.unstable_LowPriority,Ui=o.unstable_IdlePriority,Di={},ji=o.unstable_shouldYield,Fi=void 0!==Ai?Ai:function(){},Bi=null,qi=null,Hi=!1,Yi=Pi(),Wi=1e4>Yi?Pi:function(){return Pi()-Yi};function Vi(){switch(Li()){case Ri:return 99;case zi:return 98;case Oi:return 97;case Ii:return 96;case Ui:return 95;default:throw Error(a(332))}}function $i(t){switch(t){case 99:return Ri;case 98:return zi;case 97:return Oi;case 96:return Ii;case 95:return Ui;default:throw Error(a(332))}}function Xi(t,e){return t=$i(t),Ni(t,e)}function Qi(t,e,n){return t=$i(t),Si(t,e,n)}function Gi(t){return null===Bi?(Bi=[t],qi=Si(Ri,Zi)):Bi.push(t),Di}function Ki(){if(null!==qi){var t=qi;qi=null,Ci(t)}Zi()}function Zi(){if(!Hi&&null!==Bi){Hi=!0;var t=0;try{var e=Bi;Xi(99,(function(){for(;t=e&&(Ia=!0),t.firstContext=null)}function lo(t,e){if(io!==t&&!1!==e&&0!==e)if("number"==typeof e&&1073741823!==e||(io=t,e=1073741823),e={context:t,observedBits:e,next:null},null===ro){if(null===no)throw Error(a(308));ro=e,no.dependencies={expirationTime:0,firstContext:e,responders:null}}else ro=ro.next=e;return t._currentValue}var so=!1;function fo(t){t.updateQueue={baseState:t.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ho(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,baseQueue:t.baseQueue,shared:t.shared,effects:t.effects})}function po(t,e){return(t={expirationTime:t,suspenseConfig:e,tag:0,payload:null,callback:null,next:null}).next=t}function vo(t,e){if(null!==(t=t.updateQueue)){var n=(t=t.shared).pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}}function go(t,e){var n=t.alternate;null!==n&&ho(n,t),null===(n=(t=t.updateQueue).baseQueue)?(t.baseQueue=e.next=e,e.next=e):(e.next=n.next,n.next=e)}function yo(t,e,n,r){var o=t.updateQueue;so=!1;var a=o.baseQueue,u=o.shared.pending;if(null!==u){if(null!==a){var c=a.next;a.next=u.next,u.next=c}a=u,o.shared.pending=null,null!==(c=t.alternate)&&(null!==(c=c.updateQueue)&&(c.baseQueue=u))}if(null!==a){c=a.next;var l=o.baseState,s=0,f=null,h=null,d=null;if(null!==c)for(var p=c;;){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}),xc(u,p.suspenseConfig);t:{var g=t,y=p;switch(u=e,v=n,y.tag){case 1:if("function"==typeof(g=y.payload)){l=g.call(v,l,u);break t}l=g;break t;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null==(u="function"==typeof(g=y.payload)?g.call(v,l,u):g))break t;l=i({},l,u);break t;case 2:so=!0}}null!==p.callback&&(t.effectTag|=32,null===(u=o.effects)?o.effects=[p]:u.push(p))}if(null===(p=p.next)||p===c){if(null===(u=o.shared.pending))break;p=a.next=u.next,u.next=c,o.baseQueue=a=u,o.shared.pending=null}}null===d?f=l:d.next=h,o.baseState=f,o.baseQueue=d,Ec(s),t.expirationTime=s,t.memoizedState=l}}function mo(t,e,n){if(t=e.effects,e.effects=null,null!==t)for(e=0;ev?(g=f,f=null):g=f.sibling;var y=d(i,f,u[v],c);if(null===y){null===f&&(f=g);break}t&&f&&null===y.alternate&&e(i,f),a=o(y,a,v),null===s?l=y:s.sibling=y,s=y,f=g}if(v===u.length)return n(i,f),l;if(null===f){for(;vg?(y=v,v=null):y=v.sibling;var _=d(i,v,m.value,l);if(null===_){null===v&&(v=y);break}t&&v&&null===_.alternate&&e(i,v),u=o(_,u,g),null===f?s=_:f.sibling=_,f=_,v=y}if(m.done)return n(i,v),s;if(null===v){for(;!m.done;g++,m=c.next())null!==(m=h(i,m.value,l))&&(u=o(m,u,g),null===f?s=m:f.sibling=m,f=m);return s}for(v=r(i,v);!m.done;g++,m=c.next())null!==(m=p(v,i,g,m.value,l))&&(t&&null!==m.alternate&&v.delete(null===m.key?g:m.key),u=o(m,u,g),null===f?s=m:f.sibling=m,f=m);return t&&v.forEach((function(t){return e(i,t)})),s}return function(t,r,o,c){var l="object"==typeof o&&null!==o&&o.type===nt&&null===o.key;l&&(o=o.props.children);var s="object"==typeof o&&null!==o;if(s)switch(o.$$typeof){case tt:t:{for(s=o.key,l=r;null!==l;){if(l.key===s){if(7===l.tag){if(o.type===nt){n(t,l.sibling),(r=i(l,o.props.children)).return=t,t=r;break t}}else if(l.elementType===o.type){n(t,l.sibling),(r=i(l,o.props)).ref=So(t,l,o),r.return=t,t=r;break t}n(t,l);break}e(t,l),l=l.sibling}o.type===nt?((r=Wc(o.props.children,t.mode,c,o.key)).return=t,t=r):((c=Yc(o.type,o.key,o.props,null,t.mode,c)).ref=So(t,r,o),c.return=t,t=c)}return u(t);case et:t:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(t,r.sibling),(r=i(r,o.children||[])).return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}(r=$c(o,t.mode,c)).return=t,t=r}return u(t)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(t,r.sibling),(r=i(r,o)).return=t,t=r):(n(t,r),(r=Vc(o,t.mode,c)).return=t,t=r),u(t);if(No(o))return v(t,r,o,c);if(vt(o))return g(t,r,o,c);if(s&&Co(t,o),void 0===o&&!l)switch(t.tag){case 1:case 0:throw t=t.type,Error(a(152,t.displayName||t.name||"Component"))}return n(t,r)}}var Po=Ao(!0),Lo=Ao(!1),Ro={},zo={current:Ro},Oo={current:Ro},Io={current:Ro};function Uo(t){if(t===Ro)throw Error(a(174));return t}function Do(t,e){switch(vi(Io,e),vi(Oo,t),vi(zo,Ro),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Ut(null,"");break;default:e=Ut(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}pi(zo),vi(zo,e)}function jo(){pi(zo),pi(Oo),pi(Io)}function Fo(t){Uo(Io.current);var e=Uo(zo.current),n=Ut(e,t.type);e!==n&&(vi(Oo,t),vi(zo,n))}function Bo(t){Oo.current===t&&(pi(zo),pi(Oo))}var qo={current:0};function Ho(t){for(var e=t;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===_n||n.data===bn))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(64&e.effectTag)return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function Yo(t,e){return{responder:t,props:e}}var Wo=G.ReactCurrentDispatcher,Vo=G.ReactCurrentBatchConfig,$o=0,Xo=null,Qo=null,Go=null,Ko=!1;function Zo(){throw Error(a(321))}function Jo(t,e){if(null===e)return!1;for(var n=0;no))throw Error(a(301));o+=1,Go=Qo=null,e.updateQueue=null,Wo.current=Ta,t=n(r,i)}while(e.expirationTime===$o)}if(Wo.current=xa,e=null!==Qo&&null!==Qo.next,$o=0,Go=Qo=Xo=null,Ko=!1,e)throw Error(a(300));return t}function ea(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Go?Xo.memoizedState=Go=t:Go=Go.next=t,Go}function na(){if(null===Qo){var t=Xo.alternate;t=null!==t?t.memoizedState:null}else t=Qo.next;var e=null===Go?Xo.memoizedState:Go.next;if(null!==e)Go=e,Qo=t;else{if(null===t)throw Error(a(310));t={memoizedState:(Qo=t).memoizedState,baseState:Qo.baseState,baseQueue:Qo.baseQueue,queue:Qo.queue,next:null},null===Go?Xo.memoizedState=Go=t:Go=Go.next=t}return Go}function ra(t,e){return"function"==typeof e?e(t):e}function ia(t){var e=na(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var r=Qo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var u=i.next;i.next=o.next,o.next=u}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var c=u=o=null,l=i;do{var s=l.expirationTime;if(s<$o){var f={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===c?(u=c=f,o=r):c=c.next=f,s>Xo.expirationTime&&(Xo.expirationTime=s,Ec(s))}else null!==c&&(c=c.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),xc(s,l.suspenseConfig),r=l.eagerReducer===t?l.eagerState:t(r,l.action);l=l.next}while(null!==l&&l!==i);null===c?o=r:c.next=u,Hr(r,e.memoizedState)||(Ia=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=c,n.lastRenderedState=r}return[e.memoizedState,n.dispatch]}function oa(t){var e=na(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,o=e.memoizedState;if(null!==i){n.pending=null;var u=i=i.next;do{o=t(o,u.action),u=u.next}while(u!==i);Hr(o,e.memoizedState)||(Ia=!0),e.memoizedState=o,null===e.baseQueue&&(e.baseState=o),n.lastRenderedState=o}return[o,r]}function aa(t){var e=ea();return"function"==typeof t&&(t=t()),e.memoizedState=e.baseState=t,t=(t=e.queue={pending:null,dispatch:null,lastRenderedReducer:ra,lastRenderedState:t}).dispatch=wa.bind(null,Xo,t),[e.memoizedState,t]}function ua(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},null===(e=Xo.updateQueue)?(e={lastEffect:null},Xo.updateQueue=e,e.lastEffect=t.next=t):null===(n=e.lastEffect)?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t),t}function ca(){return na().memoizedState}function la(t,e,n,r){var i=ea();Xo.effectTag|=t,i.memoizedState=ua(1|e,n,void 0,void 0===r?null:r)}function sa(t,e,n,r){var i=na();r=void 0===r?null:r;var o=void 0;if(null!==Qo){var a=Qo.memoizedState;if(o=a.destroy,null!==r&&Jo(r,a.deps))return void ua(e,n,o,r)}Xo.effectTag|=t,i.memoizedState=ua(1|e,n,o,r)}function fa(t,e){return la(516,4,t,e)}function ha(t,e){return sa(516,4,t,e)}function da(t,e){return sa(4,2,t,e)}function pa(t,e){return"function"==typeof e?(t=t(),e(t),function(){e(null)}):null!=e?(t=t(),e.current=t,function(){e.current=null}):void 0}function va(t,e,n){return n=null!=n?n.concat([t]):null,sa(4,2,pa.bind(null,e,t),n)}function ga(){}function ya(t,e){return ea().memoizedState=[t,void 0===e?null:e],t}function ma(t,e){var n=na();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&Jo(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function _a(t,e){var n=na();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&Jo(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function ba(t,e,n){var r=Vi();Xi(98>r?98:r,(function(){t(!0)})),Xi(97<\/script>",t=t.removeChild(t.firstChild)):"string"==typeof r.is?t=c.createElement(o,{is:r.is}):(t=c.createElement(o),"select"===o&&(c=t,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):t=c.createElementNS(t,o),t[An]=e,t[Pn]=r,Va(t,e,!1,!1),e.stateNode=t,c=un(o,r),o){case"iframe":case"object":case"embed":Xe("load",t),l=r;break;case"video":case"audio":for(l=0;lr.tailExpiration&&1e)&&oc.set(t,e))}}function hc(t,e){t.expirationTime=(t=n>(t=t.nextKnownPendingLevel)?n:t)&&e!==t?0:t}function pc(t){if(0!==t.lastExpiredTime)t.callbackExpirationTime=1073741823,t.callbackPriority=99,t.callbackNode=Gi(gc.bind(null,t));else{var e=dc(t),n=t.callbackNode;if(0===e)null!==n&&(t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90);else{var r=lc();if(1073741823===e?r=99:1===e||2===e?r=95:r=0>=(r=10*(1073741821-e)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=t.callbackPriority;if(t.callbackExpirationTime===e&&i>=r)return;n!==Di&&Ci(n)}t.callbackExpirationTime=e,t.callbackPriority=r,e=1073741823===e?Gi(gc.bind(null,t)):Qi(r,vc.bind(null,t),{timeout:10*(1073741821-e)-Wi()}),t.callbackNode=e}}}function vc(t,e){if(cc=0,e)return Zc(t,e=lc()),pc(t),null;var n=dc(t);if(0!==n){if(e=t.callbackNode,(ju&(Pu|Lu))!==Cu)throw Error(a(327));if(Lc(),t===Fu&&n===qu||_c(t,n),null!==Bu){var r=ju;ju|=Pu;for(var i=wc();;)try{Tc();break}catch(e){bc(t,e)}if(oo(),ju=r,Nu.current=i,Hu===zu)throw e=Yu,_c(t,n),Gc(t,n),pc(t),e;if(null===Bu)switch(i=t.finishedWork=t.current.alternate,t.finishedExpirationTime=n,r=Hu,Fu=null,r){case Ru:case zu:throw Error(a(345));case Ou:Zc(t,2=n){t.lastPingedTime=n,_c(t,n);break}}if(0!==(o=dc(t))&&o!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}t.timeoutHandle=Tn(Cc.bind(null,t),i);break}Cc(t);break;case Uu:if(Gc(t,n),n===(r=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=Sc(i)),Qu&&(0===(i=t.lastPingedTime)||i>=n)){t.lastPingedTime=n,_c(t,n);break}if(0!==(i=dc(t))&&i!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}if(1073741823!==Vu?r=10*(1073741821-Vu)-Wi():1073741823===Wu?r=0:(r=10*(1073741821-Wu)-5e3,0>(r=(i=Wi())-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*Mu(r/1960))-r)&&(r=n)),10=(r=0|u.busyMinDurationMs)?r=0:(i=0|u.busyDelayMs,r=(o=Wi()-(10*(1073741821-o)-(0|u.timeoutMs||5e3)))<=i?0:i+r-o),10 component higher in the tree to provide a loading indicator or placeholder to display."+yt(a))}Hu!==Du&&(Hu=Ou),u=ou(u,a),f=o;do{switch(f.tag){case 3:c=u,f.effectTag|=4096,f.expirationTime=e,go(f,Eu(f,c,e));break t;case 1:c=u;var b=f.type,w=f.stateNode;if(!(64&f.effectTag||"function"!=typeof b.getDerivedStateFromError&&(null===w||"function"!=typeof w.componentDidCatch||null!==ec&&ec.has(w)))){f.effectTag|=4096,f.expirationTime=e,go(f,ku(f,c,e));break t}}f=f.return}while(null!==f)}Bu=Nc(Bu)}catch(t){e=t;continue}break}}function wc(){var t=Nu.current;return Nu.current=xa,null===t?xa:t}function xc(t,e){tXu&&(Xu=t)}function kc(){for(;null!==Bu;)Bu=Mc(Bu)}function Tc(){for(;null!==Bu&&!ji();)Bu=Mc(Bu)}function Mc(t){var e=Tu(t.alternate,t,qu);return t.memoizedProps=t.pendingProps,null===e&&(e=Nc(t)),Su.current=null,e}function Nc(t){Bu=t;do{var e=Bu.alternate;if(t=Bu.return,2048&Bu.effectTag){if(null!==(e=iu(Bu)))return e.effectTag&=2047,e;null!==t&&(t.firstEffect=t.lastEffect=null,t.effectTag|=2048)}else{if(e=ru(e,Bu,qu),1===qu||1!==Bu.childExpirationTime){for(var n=0,r=Bu.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}Bu.childExpirationTime=n}if(null!==e)return e;null!==t&&!(2048&t.effectTag)&&(null===t.firstEffect&&(t.firstEffect=Bu.firstEffect),null!==Bu.lastEffect&&(null!==t.lastEffect&&(t.lastEffect.nextEffect=Bu.firstEffect),t.lastEffect=Bu.lastEffect),1(t=t.childExpirationTime)?e:t}function Cc(t){var e=Vi();return Xi(99,Ac.bind(null,t,e)),null}function Ac(t,e){do{Lc()}while(null!==rc);if((ju&(Pu|Lu))!==Cu)throw Error(a(327));var n=t.finishedWork,r=t.finishedExpirationTime;if(null===n)return null;if(t.finishedWork=null,t.finishedExpirationTime=0,n===t.current)throw Error(a(177));t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90,t.nextKnownPendingLevel=0;var i=Sc(n);if(t.firstPendingTime=i,r<=t.lastSuspendedTime?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:r<=t.firstSuspendedTime&&(t.firstSuspendedTime=r-1),r<=t.lastPingedTime&&(t.lastPingedTime=0),r<=t.lastExpiredTime&&(t.lastExpiredTime=0),t===Fu&&(Bu=Fu=null,qu=0),1c&&(s=c,c=u,u=s),s=dn(b,u),f=dn(b,c),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>c?(x.addRange(w),x.extend(f.node,f.offset)):(w.setEnd(f.node,f.offset),x.addRange(w))))),w=[];for(x=b;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b=n?Ka(t,e,n):(vi(qo,1&qo.current),null!==(e=eu(t,e,n))?e.sibling:null);vi(qo,1&qo.current);break;case 19:if(r=e.childExpirationTime>=n,64&t.effectTag){if(r)return tu(t,e,n);e.effectTag|=64}if(null!==(i=e.memoizedState)&&(i.rendering=null,i.tail=null),vi(qo,qo.current),!r)return null}return eu(t,e,n)}Ia=!1}}else Ia=!1;switch(e.expirationTime=0,e.tag){case 2:if(r=e.type,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,i=bi(e,yi.current),co(e,n),i=ta(null,e,r,t,i,n),e.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,wi(r)){var o=!0;Ti(e)}else o=!1;e.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,fo(e);var u=r.getDerivedStateFromProps;"function"==typeof u&&wo(e,r,u,t),i.updater=xo,e.stateNode=i,i._reactInternalFiber=e,Mo(e,r,t,n),e=Ya(null,e,r,!0,o,n)}else e.tag=0,Ua(null,e,i,n),e=e.child;return e;case 16:t:{if(i=e.elementType,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,function(t){if(-1===t._status){t._status=0;var e=t._ctor;e=e(),t._result=e,e.then((function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)}),(function(e){0===t._status&&(t._status=2,t._result=e)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,e.type=i,o=e.tag=function(t){if("function"==typeof t)return qc(t)?1:0;if(null!=t){if((t=t.$$typeof)===ct)return 11;if(t===ft)return 14}return 2}(i),t=to(i,t),o){case 0:e=qa(null,e,i,t,n);break t;case 1:e=Ha(null,e,i,t,n);break t;case 11:e=Da(null,e,i,t,n);break t;case 14:e=ja(null,e,i,to(i.type,t),r,n);break t}throw Error(a(306,i,""))}return e;case 0:return r=e.type,i=e.pendingProps,qa(t,e,r,i=e.elementType===r?i:to(r,i),n);case 1:return r=e.type,i=e.pendingProps,Ha(t,e,r,i=e.elementType===r?i:to(r,i),n);case 3:if(Wa(e),r=e.updateQueue,null===t||null===r)throw Error(a(282));if(r=e.pendingProps,i=null!==(i=e.memoizedState)?i.element:null,ho(t,e),yo(e,r,null,n),(r=e.memoizedState.element)===i)za(),e=eu(t,e,n);else{if((i=e.stateNode.hydrate)&&(Na=Nn(e.stateNode.containerInfo.firstChild),Ma=e,i=Sa=!0),i)for(n=Lo(e,null,r,n),e.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ua(t,e,r,n),za();e=e.child}return e;case 5:return Fo(e),null===t&&Pa(e),r=e.type,i=e.pendingProps,o=null!==t?t.memoizedProps:null,u=i.children,kn(r,i)?u=null:null!==o&&kn(r,o)&&(e.effectTag|=16),Ba(t,e),4&e.mode&&1!==n&&i.hidden?(e.expirationTime=e.childExpirationTime=1,e=null):(Ua(t,e,u,n),e=e.child),e;case 6:return null===t&&Pa(e),null;case 13:return Ka(t,e,n);case 4:return Do(e,e.stateNode.containerInfo),r=e.pendingProps,null===t?e.child=Po(e,null,r,n):Ua(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,Da(t,e,r,i=e.elementType===r?i:to(r,i),n);case 7:return Ua(t,e,e.pendingProps,n),e.child;case 8:case 12:return Ua(t,e,e.pendingProps.children,n),e.child;case 10:t:{r=e.type._context,i=e.pendingProps,u=e.memoizedProps,o=i.value;var c=e.type._context;if(vi(eo,c._currentValue),c._currentValue=o,null!==u)if(c=u.value,0===(o=Hr(c,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(c,o):1073741823))){if(u.children===i.children&&!mi.current){e=eu(t,e,n);break t}}else for(null!==(c=e.child)&&(c.return=e);null!==c;){var l=c.dependencies;if(null!==l){u=c.child;for(var s=l.firstContext;null!==s;){if(s.context===r&&s.observedBits&o){1===c.tag&&((s=po(n,null)).tag=2,vo(c,s)),c.expirationTime=e&&t<=e}function Gc(t,e){var n=t.firstSuspendedTime,r=t.lastSuspendedTime;ne||0===n)&&(t.lastSuspendedTime=e),e<=t.lastPingedTime&&(t.lastPingedTime=0),e<=t.lastExpiredTime&&(t.lastExpiredTime=0)}function Kc(t,e){e>t.firstPendingTime&&(t.firstPendingTime=e);var n=t.firstSuspendedTime;0!==n&&(e>=n?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:e>=t.lastSuspendedTime&&(t.lastSuspendedTime=e+1),e>t.nextKnownPendingLevel&&(t.nextKnownPendingLevel=e))}function Zc(t,e){var n=t.lastExpiredTime;(0===n||n>e)&&(t.lastExpiredTime=e)}function Jc(t,e,n,r){var i=e.current,o=lc(),u=_o.suspense;o=sc(o,i,u);t:if(n){e:{if(te(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break e;case 1:if(wi(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break e}}c=c.return}while(null!==c);throw Error(a(171))}if(1===n.tag){var l=n.type;if(wi(l)){n=ki(n,l,c);break t}}n=c}else n=gi;return null===e.context?e.context=n:e.pendingContext=n,(e=po(o,u)).payload={element:t},null!==(r=void 0===r?null:r)&&(e.callback=r),vo(i,e),fc(i,o),o}function tl(t){return(t=t.current).child?(t.child.tag,t.child.stateNode):null}function el(t,e){null!==(t=t.memoizedState)&&null!==t.dehydrated&&t.retryTime{"use strict";!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}(),t.exports=n(2551)},5287:(t,e,n)=>{"use strict";var r=n(5228),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,u=i?Symbol.for("react.fragment"):60107,c=i?Symbol.for("react.strict_mode"):60108,l=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,v=i?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function y(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;nA.length&&A.push(t)}function R(t,e,n,r){var i=typeof t;"undefined"!==i&&"boolean"!==i||(t=null);var u=!1;if(null===t)u=!0;else switch(i){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case o:case a:u=!0}}if(u)return n(r,t,""===e?"."+O(t,0):e),1;if(u=0,e=""===e?".":e+":",Array.isArray(t))for(var c=0;c{"use strict";t.exports=n(5287)},7463:(t,e)=>{"use strict";var n,r,i,o,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,l=function(){if(null!==u)try{var t=e.unstable_now();u(!0,t),u=null}catch(t){throw setTimeout(l,0),t}},s=Date.now();e.unstable_now=function(){return Date.now()-s},n=function(t){null!==u?setTimeout(n,0,t):(u=t,setTimeout(l,0))},r=function(t,e){c=setTimeout(t,e)},i=function(){clearTimeout(c)},o=function(){return!1},a=e.unstable_forceFrameRate=function(){}}else{var f=window.performance,h=window.Date,d=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof f&&"function"==typeof f.now)e.unstable_now=function(){return f.now()};else{var g=h.now();e.unstable_now=function(){return h.now()-g}}var y=!1,m=null,_=-1,b=5,w=0;o=function(){return e.unstable_now()>=w},a=function(){},e.unstable_forceFrameRate=function(t){0>t||125>>1,i=t[r];if(!(void 0!==i&&0N(a,n))void 0!==c&&0>N(c,a)?(t[r]=c,t[u]=n,r=u):(t[r]=a,t[o]=n,r=o);else{if(!(void 0!==c&&0>N(c,n)))break t;t[r]=c,t[u]=n,r=u}}}return e}return null}function N(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}var S=[],C=[],A=1,P=null,L=3,R=!1,z=!1,O=!1;function I(t){for(var e=T(C);null!==e;){if(null===e.callback)M(C);else{if(!(e.startTime<=t))break;M(C),e.sortIndex=e.expirationTime,k(S,e)}e=T(C)}}function U(t){if(O=!1,I(t),!z)if(null!==T(S))z=!0,n(D);else{var e=T(C);null!==e&&r(U,e.startTime-t)}}function D(t,n){z=!1,O&&(O=!1,i()),R=!0;var a=L;try{for(I(n),P=T(S);null!==P&&(!(P.expirationTime>n)||t&&!o());){var u=P.callback;if(null!==u){P.callback=null,L=P.priorityLevel;var c=u(P.expirationTime<=n);n=e.unstable_now(),"function"==typeof c?P.callback=c:P===T(S)&&M(S),I(n)}else M(S);P=T(S)}if(null!==P)var l=!0;else{var s=T(C);null!==s&&r(U,s.startTime-n),l=!1}return l}finally{P=null,L=a,R=!1}}function j(t){switch(t){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var F=a;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){z||R||(z=!0,n(D))},e.unstable_getCurrentPriorityLevel=function(){return L},e.unstable_getFirstCallbackNode=function(){return T(S)},e.unstable_next=function(t){switch(L){case 1:case 2:case 3:var e=3;break;default:e=L}var n=L;L=e;try{return t()}finally{L=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=F,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=L;L=t;try{return e()}finally{L=n}},e.unstable_scheduleCallback=function(t,o,a){var u=e.unstable_now();if("object"==typeof a&&null!==a){var c=a.delay;c="number"==typeof c&&0u?(t.sortIndex=c,k(C,t),null===T(S)&&t===T(C)&&(O?i():O=!0,r(U,c-u))):(t.sortIndex=a,k(S,t),z||R||(z=!0,n(D))),t},e.unstable_shouldYield=function(){var t=e.unstable_now();I(t);var n=T(S);return n!==P&&null!==P&&null!==n&&null!==n.callback&&n.startTime<=t&&n.expirationTime