diff --git a/package.json b/package.json index 5ffbd8d..a439495 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "toonflow-app", - "version": "1.0.7", + "version": "1.0.7-patch2", "description": "Toonflow 是一款 AI 短剧漫剧工具,能够利用 AI 技术将小说自动转化为剧本,并结合 AI 生成的图片和视频,实现高效的短剧创作。", "author": "HBAI-Ltd ", "homepage": "https://github.com/HBAI-Ltd/Toonflow-app#readme", @@ -37,7 +37,7 @@ "@ai-sdk/anthropic": "^3.0.35", "@ai-sdk/deepseek": "^2.0.17", "@ai-sdk/devtools": "^0.0.11", - "@ai-sdk/google": "^3.0.20", + "@ai-sdk/google": "^3.0.43", "@ai-sdk/openai": "^3.0.25", "@ai-sdk/openai-compatible": "^2.0.27", "@ai-sdk/xai": "^3.0.47", diff --git a/scripts/web/index.html b/scripts/web/index.html index 9d58ef3..6d86b3f 100644 --- a/scripts/web/index.html +++ b/scripts/web/index.html @@ -5,750 +5,750 @@ Toonflow - - +`),c=0;c{var o;try{o={defaults:n(1747),each:n(6073),isFunction:n(3560),isPlainObject:n(8630),pick:n(9722),has:n(8721),range:n(6026),uniqueId:n(3955)}}catch{}o||(o=window._),e.exports=o},6381:(e,t,n)=>{var o=n(8355),r=n(4322);e.exports=function(l,a){var s=l.filter(function(){return!r.select(this).classed("update")});function c(u){var d=a.node(u);return"translate("+d.x+","+d.y+")"}s.attr("transform",c),o.applyTransition(l,a).style("opacity",1).attr("transform",c),o.applyTransition(s.selectAll("rect"),a).attr("width",function(u){return a.node(u).width}).attr("height",function(u){return a.node(u).height}).attr("x",function(u){return-a.node(u).width/2}).attr("y",function(u){return-a.node(u).height/2})}},4577:(e,t,n)=>{var o=n(8355),r=n(4322),l=n(1034);e.exports=function(a,s){function c(u){var d=s.edge(u);return l.has(d,"x")?"translate("+d.x+","+d.y+")":""}a.filter(function(){return!r.select(this).classed("update")}).attr("transform",c),o.applyTransition(a,s).style("opacity",1).attr("transform",c)}},4849:(e,t,n)=>{var o=n(8355),r=n(4322);e.exports=function(l,a){function s(c){var u=a.node(c);return"translate("+u.x+","+u.y+")"}l.filter(function(){return!r.select(this).classed("update")}).attr("transform",s),o.applyTransition(l,a).style("opacity",1).attr("transform",s)}},5787:(e,t,n)=>{var o=n(1034),r=n(4322),l=n(1463).layout;e.exports=function(){var u=n(607),d=n(5632),f=n(6315),h=n(940),k=n(4849),v=n(4577),g=n(6381),b=n(4418),A=n(9144),w=function(y,x){(function(W){W.nodes().forEach(function(p){var H=W.node(p);o.has(H,"label")||W.children(p).length||(H.label=p),o.has(H,"paddingX")&&o.defaults(H,{paddingLeft:H.paddingX,paddingRight:H.paddingX}),o.has(H,"paddingY")&&o.defaults(H,{paddingTop:H.paddingY,paddingBottom:H.paddingY}),o.has(H,"padding")&&o.defaults(H,{paddingLeft:H.padding,paddingRight:H.padding,paddingTop:H.padding,paddingBottom:H.padding}),o.defaults(H,a),o.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(I){H[I]=Number(H[I])}),o.has(H,"width")&&(H._prevWidth=H.width),o.has(H,"height")&&(H._prevHeight=H.height)}),W.edges().forEach(function(p){var H=W.edge(p);o.has(H,"label")||(H.label=""),o.defaults(H,s)})})(x);var E=c(y,"output"),S=c(E,"clusters"),M=c(E,"edgePaths"),T=f(c(E,"edgeLabels"),x),D=u(c(E,"nodes"),x,b);l(x),k(D,x),v(T,x),h(M,x,A);var O=d(S,x);g(O,x),function(W){o.each(W.nodes(),function(p){var H=W.node(p);o.has(H,"_prevWidth")?H.width=H._prevWidth:delete H.width,o.has(H,"_prevHeight")?H.height=H._prevHeight:delete H.height,delete H._prevWidth,delete H._prevHeight})}(x)};return w.createNodes=function(y){return arguments.length?(u=y,w):u},w.createClusters=function(y){return arguments.length?(d=y,w):d},w.createEdgeLabels=function(y){return arguments.length?(f=y,w):f},w.createEdgePaths=function(y){return arguments.length?(h=y,w):h},w.shapes=function(y){return arguments.length?(b=y,w):b},w.arrows=function(y){return arguments.length?(A=y,w):A},w};var a={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},s={arrowhead:"normal",curve:r.curveLinear};function c(u,d){var f=u.select("g."+d);return f.empty()&&(f=u.append("g").attr("class",d)),f}},4418:(e,t,n)=>{var o=n(8049),r=n(3260),l=n(6587),a=n(5337);e.exports={rect:function(s,c,u){var d=s.insert("rect",":first-child").attr("rx",u.rx).attr("ry",u.ry).attr("x",-c.width/2).attr("y",-c.height/2).attr("width",c.width).attr("height",c.height);return u.intersect=function(f){return o(u,f)},d},ellipse:function(s,c,u){var d=c.width/2,f=c.height/2,h=s.insert("ellipse",":first-child").attr("x",-c.width/2).attr("y",-c.height/2).attr("rx",d).attr("ry",f);return u.intersect=function(k){return r(u,d,f,k)},h},circle:function(s,c,u){var d=Math.max(c.width,c.height)/2,f=s.insert("circle",":first-child").attr("x",-c.width/2).attr("y",-c.height/2).attr("r",d);return u.intersect=function(h){return l(u,d,h)},f},diamond:function(s,c,u){var d=c.width*Math.SQRT2/2,f=c.height*Math.SQRT2/2,h=[{x:0,y:-f},{x:-d,y:0},{x:0,y:f},{x:d,y:0}],k=s.insert("polygon",":first-child").attr("points",h.map(function(v){return v.x+","+v.y}).join(" "));return u.intersect=function(v){return a(u,h,v)},k}}},8355:(e,t,n)=>{var o=n(1034);e.exports={isSubgraph:function(a,s){return!!a.children(s).length},edgeToId:function(a){return l(a.v)+":"+l(a.w)+":"+l(a.name)},applyStyle:function(a,s){s&&a.attr("style",s)},applyClass:function(a,s,c){s&&a.attr("class",s).attr("class",c+" "+a.attr("class"))},applyTransition:function(a,s){var c=s.graph();if(o.isPlainObject(c)){var u=c.transition;if(o.isFunction(u))return u(a)}return a}};var r=/:/g;function l(a){return a?String(a).replace(r,"\\:"):""}},5689:e=>{e.exports="0.6.4"},7188:(e,t,n)=>{n.r(t),n.d(t,{FormatSpecifier:()=>pk,active:()=>A7,arc:()=>Om,area:()=>yx,areaRadial:()=>hO,ascending:()=>r,autoType:()=>h$,axisBottom:()=>Ne,axisLeft:()=>Fe,axisRight:()=>Be,axisTop:()=>Ie,bisect:()=>u,bisectLeft:()=>c,bisectRight:()=>s,bisector:()=>l,blob:()=>T$,brush:()=>Kv,brushSelection:()=>Kb,brushX:()=>e3,brushY:()=>zf,buffer:()=>j$,chord:()=>at,clientPoint:()=>Ek,cluster:()=>Pee,color:()=>Gc,contourDensity:()=>fD,contours:()=>L7,create:()=>Qte,creator:()=>Wt,cross:()=>h,csv:()=>P$,csvFormat:()=>pR,csvFormatBody:()=>PR,csvFormatRow:()=>l$,csvFormatRows:()=>r$,csvFormatValue:()=>a$,csvParse:()=>OR,csvParseRows:()=>o$,cubehelix:()=>Ws,curveBasis:()=>AO,curveBasisClosed:()=>EC,curveBasisOpen:()=>CO,curveBundle:()=>wO,curveCardinal:()=>Ix,curveCardinalClosed:()=>yO,curveCardinalOpen:()=>Tz,curveCatmullRom:()=>LO,curveCatmullRomClosed:()=>jz,curveCatmullRomOpen:()=>S5,curveLinear:()=>f1,curveLinearClosed:()=>Oz,curveMonotoneX:()=>m1,curveMonotoneY:()=>rne,curveNatural:()=>Pz,curveStep:()=>Hx,curveStepAfter:()=>b1,curveStepBefore:()=>lne,customEvent:()=>Lo,descending:()=>k,deviation:()=>b,dispatch:()=>et,drag:()=>i$,dragDisable:()=>wa,dragEnable:()=>vl,dsv:()=>p$,dsvFormat:()=>x7,easeBack:()=>YR,easeBackIn:()=>GR,easeBackInOut:()=>YR,easeBackOut:()=>E$,easeBounce:()=>Jb,easeBounceIn:()=>UR,easeBounceInOut:()=>x$,easeBounceOut:()=>Jb,easeCircle:()=>VR,easeCircleIn:()=>y$,easeCircleInOut:()=>VR,easeCircleOut:()=>L$,easeCubic:()=>e4,easeCubicIn:()=>M9,easeCubicInOut:()=>e4,easeCubicOut:()=>T9,easeElastic:()=>XR,easeElasticIn:()=>S$,easeElasticInOut:()=>M$,easeElasticOut:()=>XR,easeExp:()=>_R,easeExpIn:()=>C$,easeExpInOut:()=>_R,easeExpOut:()=>w$,easeLinear:()=>NR,easePoly:()=>WR,easePolyIn:()=>HR,easePolyInOut:()=>WR,easePolyOut:()=>m$,easeQuad:()=>RR,easeQuadIn:()=>g$,easeQuadInOut:()=>RR,easeQuadOut:()=>v$,easeSin:()=>kD,easeSinIn:()=>b$,easeSinInOut:()=>kD,easeSinOut:()=>A$,entries:()=>Wr,event:()=>Yn,extent:()=>A,forceCenter:()=>eH,forceCollide:()=>z$,forceLink:()=>_$,forceManyBody:()=>U$,forceRadial:()=>G$,forceSimulation:()=>V$,forceX:()=>Y$,forceY:()=>X$,format:()=>F9,formatDefaultLocale:()=>sH,formatLocale:()=>aH,formatPrefix:()=>j7,formatSpecifier:()=>$b,geoAlbers:()=>HH,geoAlbersUsa:()=>wee,geoArea:()=>q$,geoAzimuthalEqualArea:()=>yee,geoAzimuthalEqualAreaRaw:()=>tj,geoAzimuthalEquidistant:()=>Lee,geoAzimuthalEquidistantRaw:()=>nj,geoBounds:()=>vH,geoCentroid:()=>PD,geoCircle:()=>oee,geoClipAntimeridian:()=>Z7,geoClipCircle:()=>yH,geoClipExtent:()=>lee,geoClipRectangle:()=>mA,geoConicConformal:()=>Eee,geoConicConformalRaw:()=>FH,geoConicEqualArea:()=>AL,geoConicEqualAreaRaw:()=>RH,geoConicEquidistant:()=>Mee,geoConicEquidistantRaw:()=>_H,geoContains:()=>fee,geoDistance:()=>eL,geoEqualEarth:()=>Tee,geoEqualEarthRaw:()=>ij,geoEquirectangular:()=>See,geoEquirectangularRaw:()=>o5,geoGnomonic:()=>rj,geoGnomonicRaw:()=>oj,geoGraticule:()=>DH,geoGraticule10:()=>hee,geoIdentity:()=>Dee,geoInterpolate:()=>kee,geoLength:()=>HD,geoMercator:()=>xee,geoMercatorRaw:()=>pA,geoNaturalEarth1:()=>VH,geoNaturalEarth1Raw:()=>lj,geoOrthographic:()=>UH,geoOrthographicRaw:()=>wL,geoPath:()=>f3,geoProjection:()=>a4,geoProjectionMutator:()=>bL,geoRotation:()=>X7,geoStereographic:()=>jee,geoStereographicRaw:()=>aj,geoStream:()=>K1,geoTransform:()=>kL,geoTransverseMercator:()=>Oee,geoTransverseMercatorRaw:()=>sj,gray:()=>pl,hcl:()=>ou,hierarchy:()=>cj,histogram:()=>V,hsl:()=>Zn,html:()=>B$,image:()=>KR,interpolate:()=>V1,interpolateArray:()=>Ic,interpolateBasis:()=>to,interpolateBasisClosed:()=>bo,interpolateBlues:()=>Fte,interpolateBrBG:()=>dC,interpolateBuGn:()=>Nte,interpolateBuPu:()=>Rte,interpolateCividis:()=>Gte,interpolateCool:()=>Vk,interpolateCubehelix:()=>mm,interpolateCubehelixDefault:()=>gC,interpolateCubehelixLong:()=>bm,interpolateDate:()=>J0,interpolateDiscrete:()=>jL,interpolateGnBu:()=>y5,interpolateGreens:()=>kx,interpolateGreys:()=>_te,interpolateHcl:()=>RA,interpolateHclLong:()=>HA,interpolateHsl:()=>$ee,interpolateHslLong:()=>OL,interpolateHue:()=>Jee,interpolateInferno:()=>Xte,interpolateLab:()=>NA,interpolateMagma:()=>Kd,interpolateNumber:()=>Ya,interpolateNumberArray:()=>nu,interpolateObject:()=>_1,interpolateOrRd:()=>Hte,interpolateOranges:()=>cz,interpolatePRGn:()=>cx,interpolatePiYG:()=>rO,interpolatePlasma:()=>mx,interpolatePuBu:()=>fx,interpolatePuBuGn:()=>sO,interpolatePuOr:()=>fC,interpolatePuRd:()=>Wte,interpolatePurples:()=>Vte,interpolateRainbow:()=>gx,interpolateRdBu:()=>$W,interpolateRdGy:()=>Ite,interpolateRdPu:()=>zte,interpolateRdYlBu:()=>Bte,interpolateRdYlGn:()=>C3,interpolateReds:()=>Ute,interpolateRgb:()=>Vr,interpolateRgbBasis:()=>Pc,interpolateRgbBasisClosed:()=>ps,interpolateRound:()=>kj,interpolateSinebow:()=>dz,interpolateSpectral:()=>tz,interpolateString:()=>ff,interpolateTransformCss:()=>Hb,interpolateTransformSvg:()=>Wb,interpolateTurbo:()=>Yte,interpolateViridis:()=>vx,interpolateWarm:()=>vC,interpolateYlGn:()=>Wu,interpolateYlGnBu:()=>wh,interpolateYlOrBr:()=>Es,interpolateYlOrRd:()=>oz,interpolateZoom:()=>sW,interrupt:()=>td,interval:()=>Wx,isoFormat:()=>yh,isoParse:()=>DC,json:()=>I$,keys:()=>Hr,lab:()=>ws,lch:()=>bu,line:()=>yC,lineRadial:()=>Tx,linkHorizontal:()=>$te,linkRadial:()=>ene,linkVertical:()=>Az,local:()=>hz,map:()=>ji,matcher:()=>ot,max:()=>Y,mean:()=>X,median:()=>G,merge:()=>J,min:()=>Z,mouse:()=>Bf,namespace:()=>ct,namespaces:()=>ft,nest:()=>ao,now:()=>Ht,pack:()=>zee,packEnclose:()=>YH,packSiblings:()=>Wee,pairs:()=>d,partition:()=>Fee,path:()=>Mn,permute:()=>K,pie:()=>Ex,piecewise:()=>zA,pointRadial:()=>xC,polygonArea:()=>vj,polygonCentroid:()=>ete,polygonContains:()=>bj,polygonHull:()=>tte,polygonLength:()=>dW,precisionFixed:()=>cH,precisionPrefix:()=>uH,precisionRound:()=>dH,quadtree:()=>M7,quantile:()=>j,quantize:()=>cW,radialArea:()=>hO,radialLine:()=>Tx,randomBates:()=>e0,randomExponential:()=>g3,randomIrwinHall:()=>$2,randomLogNormal:()=>Aj,randomNormal:()=>FA,randomUniform:()=>nte,range:()=>M,rgb:()=>lc,ribbon:()=>pn,scaleBand:()=>yj,scaleDiverging:()=>qW,scaleDivergingLog:()=>$j,scaleDivergingPow:()=>uC,scaleDivergingSqrt:()=>eO,scaleDivergingSymlog:()=>cC,scaleIdentity:()=>vW,scaleImplicit:()=>Cj,scaleLinear:()=>gW,scaleLog:()=>BL,scaleOrdinal:()=>wj,scalePoint:()=>Lj,scalePow:()=>HL,scaleQuantile:()=>jj,scaleQuantize:()=>WL,scaleSequential:()=>m5,scaleSequentialLog:()=>ad,scaleSequentialPow:()=>A5,scaleSequentialQuantile:()=>Jj,scaleSequentialSqrt:()=>ax,scaleSequentialSymlog:()=>b5,scaleSqrt:()=>wW,scaleSymlog:()=>RL,scaleThreshold:()=>zL,scaleTime:()=>Cd,scaleUtc:()=>ka,scan:()=>ne,schemeAccent:()=>o0,schemeBlues:()=>kC,schemeBrBG:()=>C5,schemeBuGn:()=>ux,schemeBuPu:()=>nz,schemeCategory10:()=>d4,schemeDark2:()=>f4,schemeGnBu:()=>aO,schemeGreens:()=>rz,schemeGreys:()=>uO,schemeOrRd:()=>dx,schemeOranges:()=>sz,schemePRGn:()=>sx,schemePaired:()=>h4,schemePastel1:()=>k4,schemePastel2:()=>tO,schemePiYG:()=>oO,schemePuBu:()=>hC,schemePuBuGn:()=>Ch,schemePuOr:()=>JW,schemePuRd:()=>cO,schemePurples:()=>lz,schemeRdBu:()=>lO,schemeRdGy:()=>r0,schemeRdPu:()=>iz,schemeRdYlBu:()=>w5,schemeRdYlGn:()=>Hu,schemeReds:()=>az,schemeSet1:()=>nO,schemeSet2:()=>iO,schemeSet3:()=>sd,schemeSpectral:()=>ez,schemeTableau10:()=>KW,schemeYlGn:()=>mf,schemeYlGnBu:()=>hx,schemeYlOrBr:()=>g4,schemeYlOrRd:()=>o2,select:()=>nl,selectAll:()=>kz,selection:()=>Al,selector:()=>Ot,selectorAll:()=>wt,set:()=>Rr,shuffle:()=>le,stack:()=>a0,stackOffsetDiverging:()=>MC,stackOffsetExpand:()=>Iz,stackOffsetNone:()=>$d,stackOffsetSilhouette:()=>Bz,stackOffsetWiggle:()=>Nz,stackOrderAppearance:()=>jO,stackOrderAscending:()=>OO,stackOrderDescending:()=>PO,stackOrderInsideOut:()=>M5,stackOrderNone:()=>qk,stackOrderReverse:()=>ane,stratify:()=>Gee,style:()=>Xt,sum:()=>ie,svg:()=>mD,symbol:()=>bO,symbolCircle:()=>gO,symbolCross:()=>Cz,symbolDiamond:()=>yz,symbolSquare:()=>Ez,symbolStar:()=>xz,symbolTriangle:()=>Sz,symbolWye:()=>mO,symbols:()=>one,text:()=>S7,thresholdFreedmanDiaconis:()=>B,thresholdScott:()=>R,thresholdSturges:()=>I,tickFormat:()=>kW,tickIncrement:()=>p,tickStep:()=>H,ticks:()=>W,timeDay:()=>b3,timeDays:()=>PW,timeFormat:()=>qL,timeFormatDefaultLocale:()=>jm,timeFormatLocale:()=>BW,timeFriday:()=>TW,timeFridays:()=>Nk,timeHour:()=>Ij,timeHours:()=>ste,timeInterval:()=>rd,timeMillisecond:()=>KA,timeMilliseconds:()=>JA,timeMinute:()=>Bj,timeMinutes:()=>Nj,timeMonday:()=>qA,timeMondays:()=>rte,timeMonth:()=>LW,timeMonths:()=>ote,timeParse:()=>Tm,timeSaturday:()=>DW,timeSaturdays:()=>ate,timeSecond:()=>d5,timeSeconds:()=>f5,timeSunday:()=>ZA,timeSundays:()=>jW,timeThursday:()=>m3,timeThursdays:()=>OW,timeTuesday:()=>SW,timeTuesdays:()=>lte,timeWednesday:()=>MW,timeWednesdays:()=>Bk,timeWeek:()=>ZA,timeWeeks:()=>jW,timeYear:()=>Cm,timeYears:()=>ite,timeout:()=>vr,timer:()=>Ki,timerFlush:()=>co,touch:()=>Xc,touches:()=>gz,transition:()=>S9,transpose:()=>re,tree:()=>Zee,treemap:()=>qee,treemapBinary:()=>Kee,treemapDice:()=>BA,treemapResquarify:()=>lW,treemapSlice:()=>DL,treemapSliceDice:()=>J2,treemapSquarify:()=>rW,tsv:()=>qR,tsvFormat:()=>s$,tsvFormatBody:()=>c$,tsvFormatRow:()=>d$,tsvFormatRows:()=>u$,tsvFormatValue:()=>f$,tsvParse:()=>IR,tsvParseRows:()=>BR,utcDay:()=>ZL,utcDays:()=>ute,utcFormat:()=>KL,utcFriday:()=>yu,utcFridays:()=>XL,utcHour:()=>lx,utcHours:()=>QW,utcMillisecond:()=>KA,utcMilliseconds:()=>JA,utcMinute:()=>sC,utcMinutes:()=>ZW,utcMonday:()=>A3,utcMondays:()=>cte,utcMonth:()=>XW,utcMonths:()=>Pte,utcParse:()=>tC,utcSaturday:()=>xm,utcSaturdays:()=>Hj,utcSecond:()=>d5,utcSeconds:()=>f5,utcSunday:()=>$A,utcSundays:()=>GL,utcThursday:()=>Ad,utcThursdays:()=>YL,utcTuesday:()=>Lm,utcTuesdays:()=>n0,utcWednesday:()=>Rj,utcWednesdays:()=>Em,utcWeek:()=>$A,utcWeeks:()=>GL,utcYear:()=>Sm,utcYears:()=>dte,values:()=>Ko,variance:()=>g,version:()=>o,voronoi:()=>PC,window:()=>Gt,xml:()=>$R,zip:()=>me,zoom:()=>GO,zoomIdentity:()=>Hm,zoomTransform:()=>UO});var o="5.16.0";function r(L,N){return LN?1:L>=N?0:NaN}function l(L){var N;return L.length===1&&(N=L,L=function(Q,q){return r(N(Q),q)}),{left:function(Q,q,de,ve){for(de==null&&(de=0),ve==null&&(ve=Q.length);de>>1;L(Q[Se],q)<0?de=Se+1:ve=Se}return de},right:function(Q,q,de,ve){for(de==null&&(de=0),ve==null&&(ve=Q.length);de>>1;L(Q[Se],q)>0?ve=Se:de=Se+1}return de}}}var a=l(r),s=a.right,c=a.left;const u=s;function d(L,N){N==null&&(N=f);for(var Q=0,q=L.length-1,de=L[0],ve=new Array(q<0?0:q);QL?1:N>=L?0:NaN}function v(L){return L===null?NaN:+L}function g(L,N){var Q,q,de=L.length,ve=0,Se=-1,Ee=0,Oe=0;if(N==null)for(;++Se1)return Oe/(ve-1)}function b(L,N){var Q=g(L,N);return Q&&Math.sqrt(Q)}function A(L,N){var Q,q,de,ve=L.length,Se=-1;if(N==null){for(;++Se=Q)for(q=de=Q;++SeQ&&(q=Q),de=Q)for(q=de=Q;++SeQ&&(q=Q),de0)return[L];if((q=N0)for(L=Math.ceil(L/Se),N=Math.floor(N/Se),ve=new Array(de=Math.ceil(N-L+1));++Ee=0?(ve>=T?10:ve>=D?5:ve>=O?2:1)*Math.pow(10,de):-Math.pow(10,-de)/(ve>=T?10:ve>=D?5:ve>=O?2:1)}function H(L,N,Q){var q=Math.abs(N-L)/Math.max(0,Q),de=Math.pow(10,Math.floor(Math.log(q)/Math.LN10)),ve=q/de;return ve>=T?de*=10:ve>=D?de*=5:ve>=O&&(de*=2),Nvt;)nt.pop(),--pt;var Nt,Jt=new Array(pt+1);for(ve=0;ve<=pt;++ve)(Nt=Jt[ve]=[]).x0=ve>0?nt[ve-1]:it,Nt.x1=ve=1)return+Q(L[q-1],q-1,L);var q,de=(q-1)*N,ve=Math.floor(de),Se=+Q(L[ve],ve,L);return Se+(+Q(L[ve+1],ve+1,L)-Se)*(de-ve)}}function B(L,N,Q){return L=x.call(L,v).sort(r),Math.ceil((Q-N)/(2*(j(L,.75)-j(L,.25))*Math.pow(L.length,-1/3)))}function R(L,N,Q){return Math.ceil((Q-N)/(3.5*b(L)*Math.pow(L.length,-1/3)))}function Y(L,N){var Q,q,de=L.length,ve=-1;if(N==null){for(;++ve=Q)for(q=Q;++veq&&(q=Q)}else for(;++ve=Q)for(q=Q;++veq&&(q=Q);return q}function X(L,N){var Q,q=L.length,de=q,ve=-1,Se=0;if(N==null)for(;++ve=0;)for(N=(q=L[de]).length;--N>=0;)Q[--Se]=q[N];return Q}function Z(L,N){var Q,q,de=L.length,ve=-1;if(N==null){for(;++ve=Q)for(q=Q;++veQ&&(q=Q)}else for(;++ve=Q)for(q=Q;++veQ&&(q=Q);return q}function K(L,N){for(var Q=N.length,q=new Array(Q);Q--;)q[Q]=L[N[Q]];return q}function ne(L,N){if(Q=L.length){var Q,q,de=0,ve=0,Se=L[ve];for(N==null&&(N=r);++de=0&&(q=Q.slice(de+1),Q=Q.slice(0,de)),Q&&!N.hasOwnProperty(Q))throw new Error("unknown type: "+Q);return{type:Q,name:q}})}function dt(L,N){for(var Q,q=0,de=L.length;q0)for(var Q,q,de=new Array(Q),ve=0;veN?1:L>=N?0:NaN}lt.prototype={constructor:lt,appendChild:function(L){return this._parent.insertBefore(L,this._next)},insertBefore:function(L,N){return this._parent.insertBefore(L,N)},querySelector:function(L){return this._parent.querySelector(L)},querySelectorAll:function(L){return this._parent.querySelectorAll(L)}};var Ge="http://www.w3.org/1999/xhtml";const ft={svg:"http://www.w3.org/2000/svg",xhtml:Ge,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ct(L){var N=L+="",Q=N.indexOf(":");return Q>=0&&(N=L.slice(0,Q))!=="xmlns"&&(L=L.slice(Q+1)),ft.hasOwnProperty(N)?{space:ft[N],local:L}:L}function Tt(L){return function(){this.removeAttribute(L)}}function Ft(L){return function(){this.removeAttributeNS(L.space,L.local)}}function Ct(L,N){return function(){this.setAttribute(L,N)}}function bt(L,N){return function(){this.setAttributeNS(L.space,L.local,N)}}function Qe(L,N){return function(){var Q=N.apply(this,arguments);Q==null?this.removeAttribute(L):this.setAttribute(L,Q)}}function yt(L,N){return function(){var Q=N.apply(this,arguments);Q==null?this.removeAttributeNS(L.space,L.local):this.setAttributeNS(L.space,L.local,Q)}}function Gt(L){return L.ownerDocument&&L.ownerDocument.defaultView||L.document&&L||L.defaultView}function qt(L){return function(){this.style.removeProperty(L)}}function $t(L,N,Q){return function(){this.style.setProperty(L,N,Q)}}function Yt(L,N,Q){return function(){var q=N.apply(this,arguments);q==null?this.style.removeProperty(L):this.style.setProperty(L,q,Q)}}function Xt(L,N){return L.style.getPropertyValue(N)||Gt(L).getComputedStyle(L,null).getPropertyValue(N)}function vn(L){return function(){delete this[L]}}function xn(L,N){return function(){this[L]=N}}function ii(L,N){return function(){var Q=N.apply(this,arguments);Q==null?delete this[L]:this[L]=Q}}function wi(L){return L.trim().split(/^|\s+/)}function eo(L){return L.classList||new Ni(L)}function Ni(L){this._node=L,this._names=wi(L.getAttribute("class")||"")}function sn(L,N){for(var Q=eo(L),q=-1,de=N.length;++q=0&&(this._names.splice(N,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(L){return this._names.indexOf(L)>=0}};var si={},Yn=null;function ai(L,N,Q){return L=Hi(L,N,Q),function(q){var de=q.relatedTarget;de&&(de===this||8&de.compareDocumentPosition(this))||L.call(this,q)}}function Hi(L,N,Q){return function(q){var de=Yn;Yn=q;try{L.call(this,this.__data__,N,Q)}finally{Yn=de}}}function Cn(L){return L.trim().split(/^|\s+/).map(function(N){var Q="",q=N.indexOf(".");return q>=0&&(Q=N.slice(q+1),N=N.slice(0,q)),{type:N,name:Q}})}function Io(L){return function(){var N=this.__on;if(N){for(var Q,q=0,de=-1,ve=N.length;q=ui&&(ui=Dn+1);!(cn=Vt[ui])&&++ui=0;)(q=de[ve])&&(Se&&4^q.compareDocumentPosition(Se)&&Se.parentNode.insertBefore(q,Se),Se=q);return this},sort:function(L){function N(vt,nt){return vt&&nt?L(vt.__data__,nt.__data__):!vt-!nt}L||(L=Ue);for(var Q=this._groups,q=Q.length,de=new Array(q),ve=0;ve1?this.each((N==null?qt:typeof N=="function"?Yt:$t)(L,N,Q??"")):Xt(this.node(),L)},property:function(L,N){return arguments.length>1?this.each((N==null?vn:typeof N=="function"?ii:xn)(L,N)):this.node()[L]},classed:function(L,N){var Q=wi(L+"");if(arguments.length<2){for(var q=eo(this.node()),de=-1,ve=Q.length;++de>8&15|N>>4&240,N>>4&15|240&N,(15&N)<<4|15&N,1):Q===8?Da(N>>24&255,N>>16&255,N>>8&255,(255&N)/255):Q===4?Da(N>>12&15|N>>8&240,N>>8&15|N>>4&240,N>>4&15|240&N,((15&N)<<4|15&N)/255):null):(N=po.exec(L))?new ya(N[1],N[2],N[3],1):(N=ro.exec(L))?new ya(255*N[1]/100,255*N[2]/100,255*N[3]/100,1):(N=al.exec(L))?Da(N[1],N[2],N[3],N[4]):(N=ml.exec(L))?Da(255*N[1]/100,255*N[2]/100,255*N[3]/100,N[4]):(N=wl.exec(L))?Lc(N[1],N[2]/100,N[3]/100,1):(N=ul.exec(L))?Lc(N[1],N[2]/100,N[3]/100,N[4]):Ks.hasOwnProperty(L)?pc(Ks[L]):L==="transparent"?new ya(NaN,NaN,NaN,0):null}function pc(L){return new ya(L>>16&255,L>>8&255,255&L,1)}function Da(L,N,Q,q){return q<=0&&(L=N=Q=NaN),new ya(L,N,Q,q)}function tu(L){return L instanceof Cl||(L=Gc(L)),L?new ya((L=L.rgb()).r,L.g,L.b,L.opacity):new ya}function lc(L,N,Q,q){return arguments.length===1?tu(L):new ya(L,N,Q,q??1)}function ya(L,N,Q,q){this.r=+L,this.g=+N,this.b=+Q,this.opacity=+q}function Fd(){return"#"+_d(this.r)+_d(this.g)+_d(this.b)}function Yc(){var L=this.opacity;return((L=isNaN(L)?1:Math.max(0,Math.min(1,L)))===1?"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))+(L===1?")":", "+L+")")}function _d(L){return((L=Math.max(0,Math.min(255,Math.round(L)||0)))<16?"0":"")+L.toString(16)}function Lc(L,N,Q,q){return q<=0?L=N=Q=NaN:Q<=0||Q>=1?L=N=NaN:N<=0&&(L=NaN),new ci(L,N,Q,q)}function Rt(L){if(L instanceof ci)return new ci(L.h,L.s,L.l,L.opacity);if(L instanceof Cl||(L=Gc(L)),!L)return new ci;if(L instanceof ci)return L;var N=(L=L.rgb()).r/255,Q=L.g/255,q=L.b/255,de=Math.min(N,Q,q),ve=Math.max(N,Q,q),Se=NaN,Ee=ve-de,Oe=(ve+de)/2;return Ee?(Se=N===ve?(Q-q)/Ee+6*(Q0&&Oe<1?0:Se,new ci(Se,Ee,Oe,L.opacity)}function Zn(L,N,Q,q){return arguments.length===1?Rt(L):new ci(L,N,Q,q??1)}function ci(L,N,Q,q){this.h=+L,this.s=+N,this.l=+Q,this.opacity=+q}function ei(L,N,Q){return 255*(L<60?N+(Q-N)*L/60:L<180?Q:L<240?N+(Q-N)*(240-L)/60:N)}function Co(L,N,Q,q,de){var ve=L*L,Se=ve*L;return((1-3*L+3*ve-Se)*N+(4-6*ve+3*Se)*Q+(1+3*L+3*ve-3*Se)*q+Se*de)/6}function to(L){var N=L.length-1;return function(Q){var q=Q<=0?Q=0:Q>=1?(Q=1,N-1):Math.floor(Q*N),de=L[q],ve=L[q+1],Se=q>0?L[q-1]:2*de-ve,Ee=q180||Q<-180?Q-360*Math.round(Q/360):Q):Eo(isNaN(L)?N:L)}function fr(L,N){var Q=N-L;return Q?Ei(L,Q):Eo(isNaN(L)?N:L)}na(Cl,Gc,{copy:function(L){return Object.assign(new this.constructor,this,L)},displayable:function(){return this.rgb().displayable()},hex:oa,formatHex:oa,formatHsl:function(){return Rt(this).formatHsl()},formatRgb:qa,toString:qa}),na(ya,lc,ia(Cl,{brighter:function(L){return L=L==null?is:Math.pow(is,L),new ya(this.r*L,this.g*L,this.b*L,this.opacity)},darker:function(L){return L=L==null?Vl:Math.pow(Vl,L),new ya(this.r*L,this.g*L,this.b*L,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Fd,formatHex:Fd,formatRgb:Yc,toString:Yc})),na(ci,Zn,ia(Cl,{brighter:function(L){return L=L==null?is:Math.pow(is,L),new ci(this.h,this.s,this.l*L,this.opacity)},darker:function(L){return L=L==null?Vl:Math.pow(Vl,L),new ci(this.h,this.s,this.l*L,this.opacity)},rgb:function(){var L=this.h%360+360*(this.h<0),N=isNaN(L)||isNaN(this.s)?0:this.s,Q=this.l,q=Q+(Q<.5?Q:1-Q)*N,de=2*Q-q;return new ya(ei(L>=240?L-240:L+120,de,q),ei(L,de,q),ei(L<120?L+240:L-120,de,q),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var L=this.opacity;return((L=isNaN(L)?1:Math.max(0,Math.min(1,L)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(L===1?")":", "+L+")")}}));const Vr=function L(N){var Q=function(de){return(de=+de)==1?fr:function(ve,Se){return Se-ve?function(Ee,Oe,Ve){return Ee=Math.pow(Ee,Ve),Oe=Math.pow(Oe,Ve)-Ee,Ve=1/Ve,function(it){return Math.pow(Ee+it*Oe,Ve)}}(ve,Se,de):Eo(isNaN(ve)?Se:ve)}}(N);function q(de,ve){var Se=Q((de=lc(de)).r,(ve=lc(ve)).r),Ee=Q(de.g,ve.g),Oe=Q(de.b,ve.b),Ve=fr(de.opacity,ve.opacity);return function(it){return de.r=Se(it),de.g=Ee(it),de.b=Oe(it),de.opacity=Ve(it),de+""}}return q.gamma=L,q}(1);function Ga(L){return function(N){var Q,q,de=N.length,ve=new Array(de),Se=new Array(de),Ee=new Array(de);for(Q=0;Qve&&(de=N.slice(ve,de),Ee[Se]?Ee[Se]+=de:Ee[++Se]=de),(Q=Q[0])===(q=q[0])?Ee[Se]?Ee[Se]+=q:Ee[++Se]=q:(Ee[++Se]=null,Oe.push({i:Se,x:Ya(Q,q)})),ve=$0.lastIndex;return ve=0&&N._call.call(null,L),N=N._next;--Bu}function Qo(){Nu=(Vd=pe.now())+ql,Bu=Bc=0;try{co()}finally{Bu=0,function(){for(var L,N,Q=fh,q=1/0;Q;)Q._call?(q>Q._time&&(q=Q._time),L=Q,Q=Q._next):(N=Q._next,Q._next=null,Q=L?L._next=N:fh=N);Nf=L,nr(q)}(),Nu=0}}function Zo(){var L=pe.now(),N=L-Vd;N>1e3&&(ql-=N,Vd=L)}function nr(L){Bu||(Bc&&(Bc=clearTimeout(Bc)),L-Nu>24?(L<1/0&&(Bc=setTimeout(Qo,L-pe.now()-ql)),hf&&(hf=clearInterval(hf))):(hf||(Vd=pe.now(),hf=setInterval(Zo,1e3)),Bu=1,ut(Qo)))}function vr(L,N,Q){var q=new Ci;return N=N==null?0:+N,q.restart(function(de){q.stop(),L(de+N)},N,Q),q}Ci.prototype=Ki.prototype={constructor:Ci,restart:function(L,N,Q){if(typeof L!="function")throw new TypeError("callback is not a function");Q=(Q==null?Ht():+Q)+(N==null?0:+N),this._next||Nf===this||(Nf?Nf._next=this:fh=this,Nf=this),this._call=L,this._time=Q,nr()},stop:function(){this._call&&(this._call=null,this._time=1/0,nr())}};var kl=et("start","end","cancel","interrupt"),Jr=[];function Xa(L,N,Q,q,de,ve){var Se=L.__transition;if(Se){if(Q in Se)return}else L.__transition={};(function(Ee,Oe,Ve){var it,vt=Ee.__transition;function nt(Jt){var Kt,Vt,kn,cn;if(Ve.state!==1)return Nt();for(Kt in vt)if((cn=vt[Kt]).name===Ve.name){if(cn.state===3)return vr(nt);cn.state===4?(cn.state=6,cn.timer.stop(),cn.on.call("interrupt",Ee,Ee.__data__,cn.index,cn.group),delete vt[Kt]):+Kt0)throw new Error("too late; already scheduled");return Q}function us(L,N){var Q=Ra(L,N);if(Q.state>3)throw new Error("too late; already running");return Q}function Ra(L,N){var Q=L.__transition;if(!Q||!(Q=Q[N]))throw new Error("transition not found");return Q}function td(L,N){var Q,q,de,ve=L.__transition,Se=!0;if(ve){for(de in N=N==null?null:N+"",ve)(Q=ve[de]).name===N?(q=Q.state>2&&Q.state<5,Q.state=6,Q.timer.stop(),Q.on.call(q?"interrupt":"cancel",L,L.__data__,Q.index,Q.group),delete ve[de]):Se=!1;Se&&delete L.__transition}}var U1,i1,Uv,Gv,hh=180/Math.PI,Yv={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Kg(L,N,Q,q,de,ve){var Se,Ee,Oe;return(Se=Math.sqrt(L*L+N*N))&&(L/=Se,N/=Se),(Oe=L*Q+N*q)&&(Q-=L*Oe,q-=N*Oe),(Ee=Math.sqrt(Q*Q+q*q))&&(Q/=Ee,q/=Ee,Oe/=Ee),L*q180?it+=360:it-Ve>180&&(Ve+=360),nt.push({i:vt.push(de(vt)+"rotate(",null,q)-2,x:Ya(Ve,it)})):it&&vt.push(de(vt)+"rotate("+it+q)}(ve.rotate,Se.rotate,Ee,Oe),function(Ve,it,vt,nt){Ve!==it?nt.push({i:vt.push(de(vt)+"skewX(",null,q)-2,x:Ya(Ve,it)}):it&&vt.push(de(vt)+"skewX("+it+q)}(ve.skewX,Se.skewX,Ee,Oe),function(Ve,it,vt,nt,pt,Nt){if(Ve!==vt||it!==nt){var Jt=pt.push(de(pt)+"scale(",null,",",null,")");Nt.push({i:Jt-4,x:Ya(Ve,vt)},{i:Jt-2,x:Ya(it,nt)})}else vt===1&&nt===1||pt.push(de(pt)+"scale("+vt+","+nt+")")}(ve.scaleX,ve.scaleY,Se.scaleX,Se.scaleY,Ee,Oe),ve=Se=null,function(Ve){for(var it,vt=-1,nt=Oe.length;++vt=0&&(Ee=Ee.slice(0,Oe)),!Ee||Ee==="start"})}(N)?sa:us;return function(){var Se=ve(this,L),Ee=Se.on;Ee!==q&&(de=(q=Ee).copy()).on(N,Q),Se.on=de}}var mu=Al.prototype.constructor;function o1(L){return function(){this.style.removeProperty(L)}}function G1(L,N,Q){return function(q){this.style.setProperty(L,N.call(this,q),Q)}}function x9(L,N,Q){var q,de;function ve(){var Se=N.apply(this,arguments);return Se!==de&&(q=(de=Se)&&G1(L,Se,Q)),q}return ve._value=N,ve}function E9(L){return function(N){this.textContent=L.call(this,N)}}function sD(L){var N,Q;function q(){var de=L.apply(this,arguments);return de!==Q&&(N=(Q=de)&&E9(de)),N}return q._value=L,q}var cD=0;function Y1(L,N,Q,q){this._groups=L,this._parents=N,this._name=Q,this._id=q}function S9(L){return Al().transition(L)}function Yb(){return++cD}var X1=Al.prototype;function M9(L){return L*L*L}function T9(L){return--L*L*L+1}function e4(L){return((L*=2)<=1?L*L*L:(L-=2)*L*L+2)/2}Y1.prototype=S9.prototype={constructor:Y1,select:function(L){var N=this._name,Q=this._id;typeof L!="function"&&(L=Ot(L));for(var q=this._groups,de=q.length,ve=new Array(de),Se=0;Se1&&Q.name===N)return new Y1([[L]],Mk,N,+q)}return null}function Wf(L){return function(){return L}}function n4(L,N,Q){this.target=L,this.type=N,this.selection=Q}function D9(){Yn.stopImmediatePropagation()}function Xb(){Yn.preventDefault(),Yn.stopImmediatePropagation()}var C7={},j9={name:"space"},Q1={name:"handle"},Tk={name:"center"};function r1(L){return[+L[0],+L[1]]}function Z1(L){return[r1(L[0]),r1(L[1])]}function qv(L){return function(N){return Xc(N,Yn.touches,L)}}var O9={name:"x",handles:["w","e"].map(Ud),input:function(L,N){return L==null?null:[[+L[0],N[0][1]],[+L[1],N[1][1]]]},output:function(L){return L&&[L[0][0],L[1][0]]}},i4={name:"y",handles:["n","s"].map(Ud),input:function(L,N){return L==null?null:[[N[0][0],+L[0]],[N[1][0],+L[1]]]},output:function(L){return L&&[L[0][1],L[1][1]]}},nd={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Ud),input:function(L){return L==null?null:Z1(L)},output:function(L){return L}},l1={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"},Qb={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},p9={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},w7={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},y7={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Ud(L){return{type:L}}function P9(){return!Yn.ctrlKey&&!Yn.button}function I9(){var L=this.ownerSVGElement||this;return L.hasAttribute("viewBox")?[[(L=L.viewBox.baseVal).x,L.y],[L.x+L.width,L.y+L.height]]:[[0,0],[L.width.baseVal.value,L.height.baseVal.value]]}function Zb(){return navigator.maxTouchPoints||"ontouchstart"in this}function B9(L){for(;!L.__brush;)if(!(L=L.parentNode))return;return L.__brush}function qb(L){return L[0][0]===L[1][0]||L[0][1]===L[1][1]}function Kb(L){var N=L.__brush;return N?N.dim.output(N.selection):null}function e3(){return Dk(O9)}function zf(){return Dk(i4)}function Kv(){return Dk(nd)}function Dk(L){var N,Q=I9,q=P9,de=Zb,ve=!0,Se=et("start","brush","end"),Ee=6;function Oe(Kt){var Vt=Kt.property("__brush",Jt).selectAll(".overlay").data([Ud("overlay")]);Vt.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",l1.overlay).merge(Vt).each(function(){var cn=B9(this).extent;nl(this).attr("x",cn[0][0]).attr("y",cn[0][1]).attr("width",cn[1][0]-cn[0][0]).attr("height",cn[1][1]-cn[0][1])}),Kt.selectAll(".selection").data([Ud("selection")]).enter().append("rect").attr("class","selection").attr("cursor",l1.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var kn=Kt.selectAll(".handle").data(L.handles,function(cn){return cn.type});kn.exit().remove(),kn.enter().append("rect").attr("class",function(cn){return"handle handle--"+cn.type}).attr("cursor",function(cn){return l1[cn.type]}),Kt.each(Ve).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",nt).filter(de).on("touchstart.brush",nt).on("touchmove.brush",pt).on("touchend.brush touchcancel.brush",Nt).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Ve(){var Kt=nl(this),Vt=B9(this).selection;Vt?(Kt.selectAll(".selection").style("display",null).attr("x",Vt[0][0]).attr("y",Vt[0][1]).attr("width",Vt[1][0]-Vt[0][0]).attr("height",Vt[1][1]-Vt[0][1]),Kt.selectAll(".handle").style("display",null).attr("x",function(kn){return kn.type[kn.type.length-1]==="e"?Vt[1][0]-Ee/2:Vt[0][0]-Ee/2}).attr("y",function(kn){return kn.type[0]==="s"?Vt[1][1]-Ee/2:Vt[0][1]-Ee/2}).attr("width",function(kn){return kn.type==="n"||kn.type==="s"?Vt[1][0]-Vt[0][0]+Ee:Ee}).attr("height",function(kn){return kn.type==="e"||kn.type==="w"?Vt[1][1]-Vt[0][1]+Ee:Ee})):Kt.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function it(Kt,Vt,kn){var cn=Kt.__brush.emitter;return!cn||kn&&cn.clean?new vt(Kt,Vt,kn):cn}function vt(Kt,Vt,kn){this.that=Kt,this.args=Vt,this.state=Kt.__brush,this.active=0,this.clean=kn}function nt(){if((!N||Yn.touches)&&q.apply(this,arguments)){var Kt,Vt,kn,cn,Dn,ui,Si,Bi,wo,hi,Ji,Tn=this,Xn=Yn.target.__data__.type,Wi=(ve&&Yn.metaKey?Xn="overlay":Xn)==="selection"?C7:ve&&Yn.altKey?Tk:Q1,Pi=L===i4?null:w7[Xn],Ui=L===O9?null:y7[Xn],or=B9(Tn),wr=or.extent,bl=or.selection,Li=wr[0][0],No=wr[0][1],Nr=wr[1][0],za=wr[1][1],Tl=0,xl=0,Ka=Pi&&Ui&&ve&&Yn.shiftKey,yd=Yn.touches?qv(Yn.changedTouches[0].identifier):Bf,Zc=yd(Tn),b4=Zc,xh=it(Tn,arguments,!0).beforestart();Xn==="overlay"?(bl&&(wo=!0),or.selection=bl=[[Kt=L===i4?Li:Zc[0],kn=L===O9?No:Zc[1]],[Dn=L===i4?Nr:Kt,Si=L===O9?za:kn]]):(Kt=bl[0][0],kn=bl[0][1],Dn=bl[1][0],Si=bl[1][1]),Vt=Kt,cn=kn,ui=Dn,Bi=Si;var HC=nl(Tn).attr("pointer-events","none"),eg=HC.selectAll(".overlay").attr("cursor",l1[Xn]);if(Yn.touches)xh.moved=YO,xh.ended=WC;else{var B5=nl(Yn.view).on("mousemove.brush",YO,!0).on("mouseup.brush",WC,!0);ve&&B5.on("keydown.brush",Fx,!0).on("keyup.brush",fne,!0),wa(Yn.view)}D9(),td(Tn),Ve.call(Tn),xh.start()}function YO(){var Xf=yd(Tn);!Ka||hi||Ji||(Math.abs(Xf[0]-b4[0])>Math.abs(Xf[1]-b4[1])?Ji=!0:hi=!0),b4=Xf,wo=!0,Xb(),x3()}function x3(){var Xf;switch(Tl=b4[0]-Zc[0],xl=b4[1]-Zc[1],Wi){case j9:case C7:Pi&&(Tl=Math.max(Li-Kt,Math.min(Nr-Dn,Tl)),Vt=Kt+Tl,ui=Dn+Tl),Ui&&(xl=Math.max(No-kn,Math.min(za-Si,xl)),cn=kn+xl,Bi=Si+xl);break;case Q1:Pi<0?(Tl=Math.max(Li-Kt,Math.min(Nr-Kt,Tl)),Vt=Kt+Tl,ui=Dn):Pi>0&&(Tl=Math.max(Li-Dn,Math.min(Nr-Dn,Tl)),Vt=Kt,ui=Dn+Tl),Ui<0?(xl=Math.max(No-kn,Math.min(za-kn,xl)),cn=kn+xl,Bi=Si):Ui>0&&(xl=Math.max(No-Si,Math.min(za-Si,xl)),cn=kn,Bi=Si+xl);break;case Tk:Pi&&(Vt=Math.max(Li,Math.min(Nr,Kt-Tl*Pi)),ui=Math.max(Li,Math.min(Nr,Dn+Tl*Pi))),Ui&&(cn=Math.max(No,Math.min(za,kn-xl*Ui)),Bi=Math.max(No,Math.min(za,Si+xl*Ui)))}ui0&&(Kt=Vt-Tl),Ui<0?Si=Bi-xl:Ui>0&&(kn=cn-xl),Wi=j9,eg.attr("cursor",l1.selection),x3());break;default:return}Xb()}function fne(){switch(Yn.keyCode){case 16:Ka&&(hi=Ji=Ka=!1,x3());break;case 18:Wi===Tk&&(Pi<0?Dn=ui:Pi>0&&(Kt=Vt),Ui<0?Si=Bi:Ui>0&&(kn=cn),Wi=Q1,x3());break;case 32:Wi===j9&&(Yn.altKey?(Pi&&(Dn=ui-Tl*Pi,Kt=Vt+Tl*Pi),Ui&&(Si=Bi-xl*Ui,kn=cn+xl*Ui),Wi=Tk):(Pi<0?Dn=ui:Pi>0&&(Kt=Vt),Ui<0?Si=Bi:Ui>0&&(kn=cn),Wi=Q1),eg.attr("cursor",l1[Xn]),x3());break;default:return}Xb()}}function pt(){it(this,arguments).moved()}function Nt(){it(this,arguments).ended()}function Jt(){var Kt=this.__brush||{selection:null};return Kt.extent=Z1(Q.apply(this,arguments)),Kt.dim=L,Kt}return Oe.move=function(Kt,Vt){Kt.selection?Kt.on("start.brush",function(){it(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){it(this,arguments).end()}).tween("brush",function(){var kn=this,cn=kn.__brush,Dn=it(kn,arguments),ui=cn.selection,Si=L.input(typeof Vt=="function"?Vt.apply(this,arguments):Vt,cn.extent),Bi=V1(ui,Si);function wo(hi){cn.selection=hi===1&&Si===null?null:Bi(hi),Ve.call(kn),Dn.brush()}return ui!==null&&Si!==null?wo:wo(1)}):Kt.each(function(){var kn=this,cn=arguments,Dn=kn.__brush,ui=L.input(typeof Vt=="function"?Vt.apply(kn,cn):Vt,Dn.extent),Si=it(kn,cn).beforestart();td(kn),Dn.selection=ui===null?null:ui,Ve.call(kn),Si.start().brush().end()})},Oe.clear=function(Kt){Oe.move(Kt,null)},vt.prototype={beforestart:function(){return++this.active==1&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return--this.active==0&&(delete this.state.emitter,this.emit("end")),this},emit:function(Kt){Lo(new n4(Oe,Kt,L.output(this.state.selection)),Se.apply,Se,[Kt,this.that,this.args])}},Oe.extent=function(Kt){return arguments.length?(Q=typeof Kt=="function"?Kt:Wf(Z1(Kt)),Oe):Q},Oe.filter=function(Kt){return arguments.length?(q=typeof Kt=="function"?Kt:Wf(!!Kt),Oe):q},Oe.touchable=function(Kt){return arguments.length?(de=typeof Kt=="function"?Kt:Wf(!!Kt),Oe):de},Oe.handleSize=function(Kt){return arguments.length?(Ee=+Kt,Oe):Ee},Oe.keyModifiers=function(Kt){return arguments.length?(ve=!!Kt,Oe):ve},Oe.on=function(){var Kt=Se.on.apply(Se,arguments);return Kt===Se?Oe:Kt},Oe}var N9=Math.cos,t3=Math.sin,o4=Math.PI,ge=o4/2,je=2*o4,He=Math.max;function $e(L){return function(N,Q){return L(N.source.value+N.target.value,Q.source.value+Q.target.value)}}function at(){var L=0,N=null,Q=null,q=null;function de(ve){var Se,Ee,Oe,Ve,it,vt,nt=ve.length,pt=[],Nt=M(nt),Jt=[],Kt=[],Vt=Kt.groups=new Array(nt),kn=new Array(nt*nt);for(Se=0,it=-1;++itUt)if(Math.abs(it*Ee-Oe*Ve)>Ut&&de){var nt=Q-ve,pt=q-Se,Nt=Ee*Ee+Oe*Oe,Jt=nt*nt+pt*pt,Kt=Math.sqrt(Nt),Vt=Math.sqrt(vt),kn=de*Math.tan((Mt-Math.acos((Nt+vt-Jt)/(2*Kt*Vt)))/2),cn=kn/Vt,Dn=kn/Kt;Math.abs(cn-1)>Ut&&(this._+="L"+(L+cn*Ve)+","+(N+cn*it)),this._+="A"+de+","+de+",0,0,"+ +(it*nt>Ve*pt)+","+(this._x1=L+Dn*Ee)+","+(this._y1=N+Dn*Oe)}else this._+="L"+(this._x1=L)+","+(this._y1=N)},arc:function(L,N,Q,q,de,ve){L=+L,N=+N,ve=!!ve;var Se=(Q=+Q)*Math.cos(q),Ee=Q*Math.sin(q),Oe=L+Se,Ve=N+Ee,it=1^ve,vt=ve?q-de:de-q;if(Q<0)throw new Error("negative radius: "+Q);this._x1===null?this._+="M"+Oe+","+Ve:(Math.abs(this._x1-Oe)>Ut||Math.abs(this._y1-Ve)>Ut)&&(this._+="L"+Oe+","+Ve),Q&&(vt<0&&(vt=vt%It+It),vt>Qt?this._+="A"+Q+","+Q+",0,1,"+it+","+(L-Se)+","+(N-Ee)+"A"+Q+","+Q+",0,1,"+it+","+(this._x1=Oe)+","+(this._y1=Ve):vt>Ut&&(this._+="A"+Q+","+Q+",0,"+ +(vt>=Mt)+","+it+","+(this._x1=L+Q*Math.cos(de))+","+(this._y1=N+Q*Math.sin(de))))},rect:function(L,N,Q,q){this._+="M"+(this._x0=this._x1=+L)+","+(this._y0=this._y1=+N)+"h"+ +Q+"v"+ +q+"h"+-Q+"Z"},toString:function(){return this._}};const Mn=ln;function In(L){return L.source}function dn(L){return L.target}function _n(L){return L.radius}function zn(L){return L.startAngle}function qn(L){return L.endAngle}function pn(){var L=In,N=dn,Q=_n,q=zn,de=qn,ve=null;function Se(){var Ee,Oe=kt.call(arguments),Ve=L.apply(this,Oe),it=N.apply(this,Oe),vt=+Q.apply(this,(Oe[0]=Ve,Oe)),nt=q.apply(this,Oe)-ge,pt=de.apply(this,Oe)-ge,Nt=vt*N9(nt),Jt=vt*t3(nt),Kt=+Q.apply(this,(Oe[0]=it,Oe)),Vt=q.apply(this,Oe)-ge,kn=de.apply(this,Oe)-ge;if(ve||(ve=Ee=Mn()),ve.moveTo(Nt,Jt),ve.arc(0,0,vt,nt,pt),nt===Vt&&pt===kn||(ve.quadraticCurveTo(0,0,Kt*N9(Vt),Kt*t3(Vt)),ve.arc(0,0,Kt,Vt,kn)),ve.quadraticCurveTo(0,0,Nt,Jt),ve.closePath(),Ee)return ve=null,Ee+""||null}return Se.radius=function(Ee){return arguments.length?(Q=typeof Ee=="function"?Ee:xt(+Ee),Se):Q},Se.startAngle=function(Ee){return arguments.length?(q=typeof Ee=="function"?Ee:xt(+Ee),Se):q},Se.endAngle=function(Ee){return arguments.length?(de=typeof Ee=="function"?Ee:xt(+Ee),Se):de},Se.source=function(Ee){return arguments.length?(L=Ee,Se):L},Se.target=function(Ee){return arguments.length?(N=Ee,Se):N},Se.context=function(Ee){return arguments.length?(ve=Ee??null,Se):ve},Se}var hn="$";function fi(){}function Qi(L,N){var Q=new fi;if(L instanceof fi)L.each(function(Ee,Oe){Q.set(Oe,Ee)});else if(Array.isArray(L)){var q,de=-1,ve=L.length;if(N==null)for(;++de=q.length)return L!=null&&Ee.sort(L),N!=null?N(Ee):Ee;for(var vt,nt,pt,Nt=-1,Jt=Ee.length,Kt=q[Oe++],Vt=ji(),kn=Ve();++Ntq.length)return Ee;var Ve,it=de[Oe-1];return N!=null&&Oe>=q.length?Ve=Ee.entries():(Ve=[],Ee.each(function(vt,nt){Ve.push({key:nt,values:Se(vt,Oe)})})),it!=null?Ve.sort(function(vt,nt){return it(vt.key,nt.key)}):Ve}return Q={object:function(Ee){return ve(Ee,0,ho,no)},map:function(Ee){return ve(Ee,0,Mo,Ho)},entries:function(Ee){return Se(ve(Ee,0,Mo,Ho),0)},key:function(Ee){return q.push(Ee),Q},sortKeys:function(Ee){return de[q.length-1]=Ee,Q},sortValues:function(Ee){return L=Ee,Q},rollup:function(Ee){return N=Ee,Q}}}function ho(){return{}}function no(L,N,Q){L[N]=Q}function Mo(){return ji()}function Ho(L,N,Q){L.set(N,Q)}function Br(){}var $o=ji.prototype;function jr(L,N){var Q=new Br;if(L instanceof Br)L.each(function(ve){Q.add(ve)});else if(L){var q=-1,de=L.length;if(N==null)for(;++q.008856451679035631?Math.pow(L,1/3):L/jl+Ml}function ys(L){return L>ua?L*L*L:jl*(L-Ml)}function Ls(L){return 255*(L<=.0031308?12.92*L:1.055*Math.pow(L,1/2.4)-.055)}function ja(L){return(L/=255)<=.04045?L/12.92:Math.pow((L+.055)/1.055,2.4)}function iu(L){if(L instanceof ha)return new ha(L.h,L.c,L.l,L.opacity);if(L instanceof Bl||(L=Ol(L)),L.a===0&&L.b===0)return new ha(NaN,0q!=pt>q&&Q<(nt-Ve)*(q-it)/(pt-it)+Ve&&(de=-de)}return de}function JJ(L,N,Q){var q,de,ve,Se;return function(Ee,Oe,Ve){return(Oe[0]-Ee[0])*(Ve[1]-Ee[1])==(Ve[0]-Ee[0])*(Oe[1]-Ee[1])}(L,N,Q)&&(de=L[q=+(L[0]===N[0])],ve=Q[q],Se=N[q],de<=ve&&ve<=Se||Se<=ve&&ve<=de)}function $J(){}var jk=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function L7(){var L=1,N=1,Q=I,q=Ee;function de(Oe){var Ve=Q(Oe);if(Array.isArray(Ve))Ve=Ve.slice().sort(n3);else{var it=A(Oe),vt=it[0],nt=it[1];Ve=H(vt,nt,Ve),Ve=M(Math.floor(vt/Ve)*Ve,Math.floor(nt/Ve)*Ve,Ve)}return Ve.map(function(pt){return ve(Oe,pt)})}function ve(Oe,Ve){var it=[],vt=[];return function(nt,pt,Nt){var Jt,Kt,Vt,kn,cn,Dn,ui=new Array,Si=new Array;for(Jt=Kt=-1,kn=nt[0]>=pt,jk[kn<<1].forEach(Bi);++Jt=pt,jk[Vt|kn<<1].forEach(Bi);for(jk[kn<<0].forEach(Bi);++Kt=pt,cn=nt[Kt*L]>=pt,jk[kn<<1|cn<<2].forEach(Bi);++Jt=pt,Dn=cn,cn=nt[Kt*L+Jt+1]>=pt,jk[Vt|kn<<1|cn<<2|Dn<<3].forEach(Bi);jk[kn|cn<<3].forEach(Bi)}for(Jt=-1,cn=nt[Kt*L]>=pt,jk[cn<<2].forEach(Bi);++Jt=pt,jk[cn<<2|Dn<<3].forEach(Bi);function Bi(wo){var hi,Ji,Tn=[wo[0][0]+Jt,wo[0][1]+Kt],Xn=[wo[1][0]+Jt,wo[1][1]+Kt],Wi=Se(Tn),Pi=Se(Xn);(hi=Si[Wi])?(Ji=ui[Pi])?(delete Si[hi.end],delete ui[Ji.start],hi===Ji?(hi.ring.push(Xn),Nt(hi.ring)):ui[hi.start]=Si[Ji.end]={start:hi.start,end:Ji.end,ring:hi.ring.concat(Ji.ring)}):(delete Si[hi.end],hi.ring.push(Xn),Si[hi.end=Pi]=hi):(hi=ui[Pi])?(Ji=Si[Wi])?(delete ui[hi.start],delete Si[Ji.end],hi===Ji?(hi.ring.push(Xn),Nt(hi.ring)):ui[Ji.start]=Si[hi.end]={start:Ji.start,end:hi.end,ring:Ji.ring.concat(hi.ring)}):(delete ui[hi.start],hi.ring.unshift(Tn),ui[hi.start=Wi]=hi):ui[Wi]=Si[Pi]={start:Wi,end:Pi,ring:[Tn,Xn]}}jk[cn<<3].forEach(Bi)}(Oe,Ve,function(nt){q(nt,Oe,Ve),function(pt){for(var Nt=0,Jt=pt.length,Kt=pt[Jt-1][1]*pt[0][0]-pt[Jt-1][0]*pt[0][1];++Nt0?it.push([nt]):vt.push(nt)}),vt.forEach(function(nt){for(var pt,Nt=0,Jt=it.length;Nt0&&pt0&&Nt0&&it>0))throw new Error("invalid size");return L=Ve,N=it,de},de.thresholds=function(Oe){return arguments.length?(Q=typeof Oe=="function"?Oe:Array.isArray(Oe)?i3(X2.call(Oe)):i3(Oe),de):Q},de.smooth=function(Oe){return arguments.length?(q=Oe?Ee:$J,de):q===Ee},de}function Jv(L,N,Q){for(var q=L.width,de=L.height,ve=1+(Q<<1),Se=0;Se=Q&&(Ee>=ve&&(Oe-=L.data[Ee-ve+Se*q]),N.data[Ee-Q+Se*q]=Oe/Math.min(Ee+1,q-1+ve-Ee,ve))}function uD(L,N,Q){for(var q=L.width,de=L.height,ve=1+(Q<<1),Se=0;Se=Q&&(Ee>=ve&&(Oe-=L.data[Se+(Ee-ve)*q]),N.data[Se+(Ee-Q)*q]=Oe/Math.min(Ee+1,de-1+ve-Ee,ve))}function e$(L){return L[0]}function t$(L){return L[1]}function dD(){return 1}function fD(){var L=e$,N=t$,Q=dD,q=960,de=500,ve=20,Se=2,Ee=3*ve,Oe=q+2*Ee>>Se,Ve=de+2*Ee>>Se,it=i3(20);function vt(Vt){var kn=new Float32Array(Oe*Ve),cn=new Float32Array(Oe*Ve);Vt.forEach(function(Si,Bi,wo){var hi=+L(Si,Bi,wo)+Ee>>Se,Ji=+N(Si,Bi,wo)+Ee>>Se,Tn=+Q(Si,Bi,wo);hi>=0&&hi=0&&Ji>Se),uD({width:Oe,height:Ve,data:cn},{data:kn},ve>>Se),Jv({width:Oe,height:Ve,data:kn},{data:cn},ve>>Se),uD({width:Oe,height:Ve,data:cn},{data:kn},ve>>Se),Jv({width:Oe,height:Ve,data:kn},{data:cn},ve>>Se),uD({width:Oe,height:Ve,data:cn},{data:kn},ve>>Se);var Dn=it(kn);if(!Array.isArray(Dn)){var ui=Y(kn);Dn=H(0,ui,Dn),(Dn=M(0,Math.floor(ui/Dn)*Dn,Dn)).shift()}return L7().thresholds(Dn).size([Oe,Ve])(kn).map(nt)}function nt(Vt){return Vt.value*=Math.pow(2,-2*Se),Vt.coordinates.forEach(pt),Vt}function pt(Vt){Vt.forEach(Nt)}function Nt(Vt){Vt.forEach(Jt)}function Jt(Vt){Vt[0]=Vt[0]*Math.pow(2,Se)-Ee,Vt[1]=Vt[1]*Math.pow(2,Se)-Ee}function Kt(){return Oe=q+2*(Ee=3*ve)>>Se,Ve=de+2*Ee>>Se,vt}return vt.x=function(Vt){return arguments.length?(L=typeof Vt=="function"?Vt:i3(+Vt),vt):L},vt.y=function(Vt){return arguments.length?(N=typeof Vt=="function"?Vt:i3(+Vt),vt):N},vt.weight=function(Vt){return arguments.length?(Q=typeof Vt=="function"?Vt:i3(+Vt),vt):Q},vt.size=function(Vt){if(!arguments.length)return[q,de];var kn=Math.ceil(Vt[0]),cn=Math.ceil(Vt[1]);if(!(kn>=0||kn>=0))throw new Error("invalid size");return q=kn,de=cn,Kt()},vt.cellSize=function(Vt){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return Se=Math.floor(Math.log(Vt)/Math.LN2),Kt()},vt.thresholds=function(Vt){return arguments.length?(it=typeof Vt=="function"?Vt:Array.isArray(Vt)?i3(X2.call(Vt)):i3(Vt),vt):it},vt.bandwidth=function(Vt){if(!arguments.length)return Math.sqrt(ve*(ve+1));if(!((Vt=+Vt)>=0))throw new Error("invalid bandwidth");return ve=Math.round((Math.sqrt(4*Vt*Vt+1)-1)/2),Kt()},vt}function o3(L){return function(){return L}}function $v(L,N,Q,q,de,ve,Se,Ee,Oe,Ve){this.target=L,this.type=N,this.subject=Q,this.identifier=q,this.active=de,this.x=ve,this.y=Se,this.dx=Ee,this.dy=Oe,this._=Ve}function DR(){return!Yn.ctrlKey&&!Yn.button}function jR(){return this.parentNode}function gd(L){return L??{x:Yn.x,y:Yn.y}}function n$(){return navigator.maxTouchPoints||"ontouchstart"in this}function i$(){var L,N,Q,q,de=DR,ve=jR,Se=gd,Ee=n$,Oe={},Ve=et("start","drag","end"),it=0,vt=0;function nt(Dn){Dn.on("mousedown.drag",pt).filter(Ee).on("touchstart.drag",Kt).on("touchmove.drag",Vt).on("touchend.drag touchcancel.drag",kn).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function pt(){if(!q&&de.apply(this,arguments)){var Dn=cn("mouse",ve.apply(this,arguments),Bf,this,arguments);Dn&&(nl(Yn.view).on("mousemove.drag",Nt,!0).on("mouseup.drag",Jt,!0),wa(Yn.view),cl(),Q=!1,L=Yn.clientX,N=Yn.clientY,Dn("start"))}}function Nt(){if(yl(),!Q){var Dn=Yn.clientX-L,ui=Yn.clientY-N;Q=Dn*Dn+ui*ui>vt}Oe.mouse("drag")}function Jt(){nl(Yn.view).on("mousemove.drag mouseup.drag",null),vl(Yn.view,Q),yl(),Oe.mouse("end")}function Kt(){if(de.apply(this,arguments)){var Dn,ui,Si=Yn.changedTouches,Bi=ve.apply(this,arguments),wo=Si.length;for(Dn=0;Dn=vt?Nt=!0:(cn=Ee.charCodeAt(nt++))===10?Jt=!0:cn===13&&(Jt=!0,Ee.charCodeAt(nt)===10&&++nt),Ee.slice(Dn+1,kn-1).replace(/""/g,'"')}for(;nt9999?"+"+kh(pt,6):kh(pt,4)}(Oe.getUTCFullYear())+"-"+kh(Oe.getUTCMonth()+1,2)+"-"+kh(Oe.getUTCDate(),2)+(nt?"T"+kh(Ve,2)+":"+kh(it,2)+":"+kh(vt,2)+"."+kh(nt,3)+"Z":vt?"T"+kh(Ve,2)+":"+kh(it,2)+":"+kh(vt,2)+"Z":it||Ve?"T"+kh(Ve,2)+":"+kh(it,2)+"Z":"")}(Ee):N.test(Ee+="")?'"'+Ee.replace(/"/g,'""')+'"':Ee}return{parse:function(Ee,Oe){var Ve,it,vt=q(Ee,function(nt,pt){if(Ve)return Ve(nt,pt-1);it=nt,Ve=Oe?function(Nt,Jt){var Kt=H9(Nt);return function(Vt,kn){return Jt(Kt(Vt),kn,Nt)}}(nt,Oe):H9(nt)});return vt.columns=it||[],vt},parseRows:q,format:function(Ee,Oe){return Oe==null&&(Oe=W9(Ee)),[Oe.map(Se).join(L)].concat(de(Ee,Oe)).join(` +`)},formatBody:function(Ee,Oe){return Oe==null&&(Oe=W9(Ee)),de(Ee,Oe).join(` +`)},formatRows:function(Ee){return Ee.map(ve).join(` +`)},formatRow:ve,formatValue:Se}}var em=x7(","),OR=em.parse,o$=em.parseRows,pR=em.format,PR=em.formatBody,r$=em.formatRows,l$=em.formatRow,a$=em.formatValue,r3=x7(" "),IR=r3.parse,BR=r3.parseRows,s$=r3.format,c$=r3.formatBody,u$=r3.formatRows,d$=r3.formatRow,f$=r3.formatValue;function h$(L){for(var N in L){var Q,q,de=L[N].trim();if(de)if(de==="true")de=!0;else if(de==="false")de=!1;else if(de==="NaN")de=NaN;else if(isNaN(Q=+de)){if(!(q=de.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;k$&&q[4]&&!q[7]&&(de=de.replace(/-/g,"/").replace(/T/," ")),de=new Date(de)}else de=Q;else de=null;L[N]=de}return L}var k$=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function NR(L){return+L}function g$(L){return L*L}function v$(L){return L*(2-L)}function RR(L){return((L*=2)<=1?L*L:--L*(2-L)+1)/2}var HR=function L(N){function Q(q){return Math.pow(q,N)}return N=+N,Q.exponent=L,Q}(3),m$=function L(N){function Q(q){return 1-Math.pow(1-q,N)}return N=+N,Q.exponent=L,Q}(3),WR=function L(N){function Q(q){return((q*=2)<=1?Math.pow(q,N):2-Math.pow(2-q,N))/2}return N=+N,Q.exponent=L,Q}(3),zR=Math.PI,FR=zR/2;function b$(L){return+L==1?1:1-Math.cos(L*FR)}function A$(L){return Math.sin(L*FR)}function kD(L){return(1-Math.cos(zR*L))/2}function l3(L){return 1.0009775171065494*(Math.pow(2,-10*L)-.0009765625)}function C$(L){return l3(1-+L)}function w$(L){return 1-l3(L)}function _R(L){return((L*=2)<=1?l3(1-L):2-l3(L-1))/2}function y$(L){return 1-Math.sqrt(1-L*L)}function L$(L){return Math.sqrt(1- --L*L)}function VR(L){return((L*=2)<=1?1-Math.sqrt(1-L*L):Math.sqrt(1-(L-=2)*L)+1)/2}var E7=7.5625;function UR(L){return 1-Jb(1-L)}function Jb(L){return(L=+L)<.36363636363636365?E7*L*L:L<.7272727272727273?E7*(L-=.5454545454545454)*L+.75:L<.9090909090909091?E7*(L-=.8181818181818182)*L+.9375:E7*(L-=.9545454545454546)*L+.984375}function x$(L){return((L*=2)<=1?1-Jb(1-L):Jb(L-1)+1)/2}var gD=1.70158,GR=function L(N){function Q(q){return(q=+q)*q*(N*(q-1)+q)}return N=+N,Q.overshoot=L,Q}(gD),E$=function L(N){function Q(q){return--q*q*((q+1)*N+q)+1}return N=+N,Q.overshoot=L,Q}(gD),YR=function L(N){function Q(q){return((q*=2)<1?q*q*((N+1)*q-N):(q-=2)*q*((N+1)*q+N)+2)/2}return N=+N,Q.overshoot=L,Q}(gD),z9=2*Math.PI,S$=function L(N,Q){var q=Math.asin(1/(N=Math.max(1,N)))*(Q/=z9);function de(ve){return N*l3(- --ve)*Math.sin((q-ve)/Q)}return de.amplitude=function(ve){return L(ve,Q*z9)},de.period=function(ve){return L(N,ve)},de}(1,.3),XR=function L(N,Q){var q=Math.asin(1/(N=Math.max(1,N)))*(Q/=z9);function de(ve){return 1-N*l3(ve=+ve)*Math.sin((ve+q)/Q)}return de.amplitude=function(ve){return L(ve,Q*z9)},de.period=function(ve){return L(N,ve)},de}(1,.3),M$=function L(N,Q){var q=Math.asin(1/(N=Math.max(1,N)))*(Q/=z9);function de(ve){return((ve=2*ve-1)<0?N*l3(-ve)*Math.sin((q-ve)/Q):2-N*l3(ve)*Math.sin((q+ve)/Q))/2}return de.amplitude=function(ve){return L(ve,Q*z9)},de.period=function(ve){return L(N,ve)},de}(1,.3);function QR(L){if(!L.ok)throw new Error(L.status+" "+L.statusText);return L.blob()}function T$(L,N){return fetch(L,N).then(QR)}function D$(L){if(!L.ok)throw new Error(L.status+" "+L.statusText);return L.arrayBuffer()}function j$(L,N){return fetch(L,N).then(D$)}function O$(L){if(!L.ok)throw new Error(L.status+" "+L.statusText);return L.text()}function S7(L,N){return fetch(L,N).then(O$)}function ZR(L){return function(N,Q,q){return arguments.length===2&&typeof Q=="function"&&(q=Q,Q=void 0),S7(N,Q).then(function(de){return L(de,q)})}}function p$(L,N,Q,q){arguments.length===3&&typeof Q=="function"&&(q=Q,Q=void 0);var de=x7(L);return S7(N,Q).then(function(ve){return de.parse(ve,q)})}var P$=ZR(OR),qR=ZR(IR);function KR(L,N){return new Promise(function(Q,q){var de=new Image;for(var ve in N)de[ve]=N[ve];de.onerror=q,de.onload=function(){Q(de)},de.src=L})}function JR(L){if(!L.ok)throw new Error(L.status+" "+L.statusText);if(L.status!==204&&L.status!==205)return L.json()}function I$(L,N){return fetch(L,N).then(JR)}function vD(L){return function(N,Q){return S7(N,Q).then(function(q){return new DOMParser().parseFromString(q,L)})}}const $R=vD("application/xml");var B$=vD("text/html"),mD=vD("image/svg+xml");function eH(L,N){var Q;function q(){var de,ve,Se=Q.length,Ee=0,Oe=0;for(de=0;de=(ve=(Jt+Vt)/2))?Jt=ve:Vt=ve,(it=Q>=(Se=(Kt+kn)/2))?Kt=Se:kn=Se,de=pt,!(pt=pt[vt=it<<1|Ve]))return de[vt]=Nt,L;if(Ee=+L._x.call(null,pt.data),Oe=+L._y.call(null,pt.data),N===Ee&&Q===Oe)return Nt.next=pt,de?de[vt]=Nt:L._root=Nt,L;do de=de?de[vt]=new Array(4):L._root=new Array(4),(Ve=N>=(ve=(Jt+Vt)/2))?Jt=ve:Vt=ve,(it=Q>=(Se=(Kt+kn)/2))?Kt=Se:kn=Se;while((vt=it<<1|Ve)==(nt=(Oe>=Se)<<1|Ee>=ve));return de[nt]=pt,de[vt]=Nt,L}function kf(L,N,Q,q,de){this.node=L,this.x0=N,this.y0=Q,this.x1=q,this.y1=de}function N$(L){return L[0]}function R$(L){return L[1]}function M7(L,N,Q){var q=new AD(N??N$,Q??R$,NaN,NaN,NaN,NaN);return L==null?q:q.addAll(L)}function AD(L,N,Q,q,de,ve){this._x=L,this._y=N,this._x0=Q,this._y0=q,this._x1=de,this._y1=ve,this._root=void 0}function CD(L){for(var N={data:L.data},Q=N;L=L.next;)Q=Q.next={data:L.data};return N}var vd=M7.prototype=AD.prototype;function H$(L){return L.x+L.vx}function W$(L){return L.y+L.vy}function z$(L){var N,Q,q=1,de=1;function ve(){for(var Oe,Ve,it,vt,nt,pt,Nt,Jt=N.length,Kt=0;Ktvt+hi||uint+hi||Siit.index){var Ji=vt-Bi.x-Bi.vx,Tn=nt-Bi.y-Bi.vy,Xn=Ji*Ji+Tn*Tn;XnOe.r&&(Oe.r=Oe[Ve].r)}function Ee(){if(N){var Oe,Ve,it=N.length;for(Q=new Array(it),Oe=0;Oeit&&(it=q),devt&&(vt=de));if(Oe>it||Ve>vt)return this;for(this.cover(Oe,Ve).cover(it,vt),Q=0;QL||L>=de||q>N||N>=ve;)switch(Ee=(Nnt||(ve=Oe.y0)>pt||(Se=Oe.x1)=Vt)<<1|L>=Kt)&&(Oe=Nt[Nt.length-1],Nt[Nt.length-1]=Nt[Nt.length-1-Ve],Nt[Nt.length-1-Ve]=Oe)}else{var kn=L-+this._x.call(null,Jt.data),cn=N-+this._y.call(null,Jt.data),Dn=kn*kn+cn*cn;if(Dn=(Ee=(Nt+Kt)/2))?Nt=Ee:Kt=Ee,(it=Se>=(Oe=(Jt+Vt)/2))?Jt=Oe:Vt=Oe,N=pt,!(pt=pt[vt=it<<1|Ve]))return this;if(!pt.length)break;(N[vt+1&3]||N[vt+2&3]||N[vt+3&3])&&(Q=N,nt=vt)}for(;pt.data!==L;)if(q=pt,!(pt=pt.next))return this;return(de=pt.next)&&delete pt.next,q?(de?q.next=de:delete q.next,this):N?(de?N[vt]=de:delete N[vt],(pt=N[0]||N[1]||N[2]||N[3])&&pt===(N[3]||N[2]||N[1]||N[0])&&!pt.length&&(Q?Q[nt]=pt:this._root=pt),this):(this._root=de,this)},vd.removeAll=function(L){for(var N=0,Q=L.length;N1?(Jt==null?Ee.remove(Nt):Ee.set(Nt,pt(Jt)),N):Ee.get(Nt)},find:function(Nt,Jt,Kt){var Vt,kn,cn,Dn,ui,Si=0,Bi=L.length;for(Kt==null?Kt=1/0:Kt*=Kt,Si=0;Si1?(Ve.on(Nt,Jt),N):Ve.on(Nt)}}}function U$(){var L,N,Q,q,de=id(-30),ve=1,Se=1/0,Ee=.81;function Oe(nt){var pt,Nt=L.length,Jt=M7(L,wD,nH).visitAfter(it);for(Q=nt,pt=0;pt=Se)){(nt.data!==N||nt.next)&&(Kt===0&&(cn+=(Kt=Ok())*Kt),Vt===0&&(cn+=(Vt=Ok())*Vt),cn1?q[0]+q.slice(2):q,+L.slice(Q+1)]}function tm(L){return(L=D7(Math.abs(L)))?L[1]:NaN}var iH,Q$=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function $b(L){if(!(N=Q$.exec(L)))throw new Error("invalid format: "+L);var N;return new pk({fill:N[1],align:N[2],sign:N[3],symbol:N[4],zero:N[5],width:N[6],comma:N[7],precision:N[8]&&N[8].slice(1),trim:N[9],type:N[10]})}function pk(L){this.fill=L.fill===void 0?" ":L.fill+"",this.align=L.align===void 0?">":L.align+"",this.sign=L.sign===void 0?"-":L.sign+"",this.symbol=L.symbol===void 0?"":L.symbol+"",this.zero=!!L.zero,this.width=L.width===void 0?void 0:+L.width,this.comma=!!L.comma,this.precision=L.precision===void 0?void 0:+L.precision,this.trim=!!L.trim,this.type=L.type===void 0?"":L.type+""}function oH(L,N){var Q=D7(L,N);if(!Q)return L+"";var q=Q[0],de=Q[1];return de<0?"0."+new Array(-de).join("0")+q:q.length>de+1?q.slice(0,de+1)+"."+q.slice(de+1):q+new Array(de-q.length+2).join("0")}$b.prototype=pk.prototype,pk.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const rH={"%":function(L,N){return(100*L).toFixed(N)},b:function(L){return Math.round(L).toString(2)},c:function(L){return L+""},d:function(L){return Math.abs(L=Math.round(L))>=1e21?L.toLocaleString("en").replace(/,/g,""):L.toString(10)},e:function(L,N){return L.toExponential(N)},f:function(L,N){return L.toFixed(N)},g:function(L,N){return L.toPrecision(N)},o:function(L){return Math.round(L).toString(8)},p:function(L,N){return oH(100*L,N)},r:oH,s:function(L,N){var Q=D7(L,N);if(!Q)return L+"";var q=Q[0],de=Q[1],ve=de-(iH=3*Math.max(-8,Math.min(8,Math.floor(de/3))))+1,Se=q.length;return ve===Se?q:ve>Se?q+new Array(ve-Se+1).join("0"):ve>0?q.slice(0,ve)+"."+q.slice(ve):"0."+new Array(1-ve).join("0")+D7(L,Math.max(0,N+ve-1))[0]},X:function(L){return Math.round(L).toString(16).toUpperCase()},x:function(L){return Math.round(L).toString(16)}};function lH(L){return L}var eA,F9,j7,yD=Array.prototype.map,LD=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function aH(L){var N,Q,q=L.grouping===void 0||L.thousands===void 0?lH:(N=yD.call(L.grouping,Number),Q=L.thousands+"",function(nt,pt){for(var Nt=nt.length,Jt=[],Kt=0,Vt=N[0],kn=0;Nt>0&&Vt>0&&(kn+Vt+1>pt&&(Vt=Math.max(1,pt-kn)),Jt.push(nt.substring(Nt-=Vt,Nt+Vt)),!((kn+=Vt+1)>pt));)Vt=N[Kt=(Kt+1)%N.length];return Jt.reverse().join(Q)}),de=L.currency===void 0?"":L.currency[0]+"",ve=L.currency===void 0?"":L.currency[1]+"",Se=L.decimal===void 0?".":L.decimal+"",Ee=L.numerals===void 0?lH:function(nt){return function(pt){return pt.replace(/[0-9]/g,function(Nt){return nt[+Nt]})}}(yD.call(L.numerals,String)),Oe=L.percent===void 0?"%":L.percent+"",Ve=L.minus===void 0?"-":L.minus+"",it=L.nan===void 0?"NaN":L.nan+"";function vt(nt){var pt=(nt=$b(nt)).fill,Nt=nt.align,Jt=nt.sign,Kt=nt.symbol,Vt=nt.zero,kn=nt.width,cn=nt.comma,Dn=nt.precision,ui=nt.trim,Si=nt.type;Si==="n"?(cn=!0,Si="g"):rH[Si]||(Dn===void 0&&(Dn=12),ui=!0,Si="g"),(Vt||pt==="0"&&Nt==="=")&&(Vt=!0,pt="0",Nt="=");var Bi=Kt==="$"?de:Kt==="#"&&/[boxX]/.test(Si)?"0"+Si.toLowerCase():"",wo=Kt==="$"?ve:/[%p]/.test(Si)?Oe:"",hi=rH[Si],Ji=/[defgprs%]/.test(Si);function Tn(Xn){var Wi,Pi,Ui,or=Bi,wr=wo;if(Si==="c")wr=hi(Xn)+wr,Xn="";else{var bl=(Xn=+Xn)<0||1/Xn<0;if(Xn=isNaN(Xn)?it:hi(Math.abs(Xn),Dn),ui&&(Xn=function(Nr){e:for(var za,Tl=Nr.length,xl=1,Ka=-1;xl0&&(Ka=0)}return Ka>0?Nr.slice(0,Ka)+Nr.slice(za+1):Nr}(Xn)),bl&&+Xn==0&&Jt!=="+"&&(bl=!1),or=(bl?Jt==="("?Jt:Ve:Jt==="-"||Jt==="("?"":Jt)+or,wr=(Si==="s"?LD[8+iH/3]:"")+wr+(bl&&Jt==="("?")":""),Ji){for(Wi=-1,Pi=Xn.length;++Wi(Ui=Xn.charCodeAt(Wi))||Ui>57){wr=(Ui===46?Se+Xn.slice(Wi+1):Xn.slice(Wi))+wr,Xn=Xn.slice(0,Wi);break}}}cn&&!Vt&&(Xn=q(Xn,1/0));var Li=or.length+Xn.length+wr.length,No=Li>1)+or+Xn+wr+No.slice(Li);break;default:Xn=No+or+Xn+wr}return Ee(Xn)}return Dn=Dn===void 0?6:/[gprs]/.test(Si)?Math.max(1,Math.min(21,Dn)):Math.max(0,Math.min(20,Dn)),Tn.toString=function(){return nt+""},Tn}return{format:vt,formatPrefix:function(nt,pt){var Nt=vt(((nt=$b(nt)).type="f",nt)),Jt=3*Math.max(-8,Math.min(8,Math.floor(tm(pt)/3))),Kt=Math.pow(10,-Jt),Vt=LD[8+Jt/3];return function(kn){return Nt(Kt*kn)+Vt}}}}function sH(L){return eA=aH(L),F9=eA.format,j7=eA.formatPrefix,eA}function cH(L){return Math.max(0,-tm(Math.abs(L)))}function uH(L,N){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(tm(N)/3)))-tm(Math.abs(L)))}function dH(L,N){return L=Math.abs(L),N=Math.abs(N)-L,Math.max(0,tm(N)-tm(L))+1}function a3(){return new O7}function O7(){this.reset()}sH({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),O7.prototype={constructor:O7,reset:function(){this.s=this.t=0},add:function(L){fH(p7,L,this.t),fH(this,p7.s,this.s),this.s?this.t+=p7.t:this.s=p7.t},valueOf:function(){return this.s}};var p7=new O7;function fH(L,N,Q){var q=L.s=N+Q,de=q-N,ve=q-de;L.t=N-ve+(Q-de)}var Kl=1e-6,P7=1e-12,Ha=Math.PI,ru=Ha/2,tA=Ha/4,Vf=2*Ha,kc=180/Ha,Ll=Ha/180,os=Math.abs,_9=Math.atan,Uf=Math.atan2,ol=Math.cos,nA=Math.ceil,hH=Math.exp,I7=Math.log,iA=Math.pow,mr=Math.sin,s1=Math.sign||function(L){return L>0?1:L<0?-1:0},Qc=Math.sqrt,Dr=Math.tan;function B7(L){return L>1?0:L<-1?Ha:Math.acos(L)}function Yd(L){return L>1?ru:L<-1?-ru:Math.asin(L)}function N7(L){return(L=mr(L/2))*L}function Js(){}function R7(L,N){L&&xD.hasOwnProperty(L.type)&&xD[L.type](L,N)}var H7={Feature:function(L,N){R7(L.geometry,N)},FeatureCollection:function(L,N){for(var Q=L.features,q=-1,de=Q.length;++q=0?1:-1,de=q*Q,ve=ol(N=(N*=Ll)/2+tA),Se=mr(N),Ee=J1*Se,Oe=oA*ve+Ee*ol(de),Ve=Ee*q*mr(de);Pk.add(Uf(Ve,Oe)),ED=L,oA=ve,J1=Se}function q$(L){return Qd.reset(),K1(L,gh),2*Qd}function _7(L){return[Uf(L[1],L[0]),Yd(L[2])]}function nm(L){var N=L[0],Q=L[1],q=ol(Q);return[q*ol(N),q*mr(N),mr(Q)]}function V7(L,N){return L[0]*N[0]+L[1]*N[1]+L[2]*N[2]}function V9(L,N){return[L[1]*N[2]-L[2]*N[1],L[2]*N[0]-L[0]*N[2],L[0]*N[1]-L[1]*N[0]]}function MD(L,N){L[0]+=N[0],L[1]+=N[1],L[2]+=N[2]}function im(L,N){return[L[0]*N,L[1]*N,L[2]*N]}function U9(L){var N=Qc(L[0]*L[0]+L[1]*L[1]+L[2]*L[2]);L[0]/=N,L[1]/=N,L[2]/=N}var Rc,Gf,Is,c1,om,G9,kH,Y9,Q2,$1,X9,c3,rA,lA,aA,sA,cA,uA,dA,Q9,U7,TD,DD,gf,md,Zd,rm=a3(),qd={point:G7,lineStart:u3,lineEnd:OD,polygonStart:function(){qd.point=fA,qd.lineStart=K$,qd.lineEnd=J$,rm.reset(),gh.polygonStart()},polygonEnd:function(){gh.polygonEnd(),qd.point=G7,qd.lineStart=u3,qd.lineEnd=OD,Pk<0?(Rc=-(Is=180),Gf=-(c1=90)):rm>Kl?c1=90:rm<-1e-6&&(Gf=-90),$1[0]=Rc,$1[1]=Is},sphere:function(){Rc=-(Is=180),Gf=-(c1=90)}};function G7(L,N){Q2.push($1=[Rc=L,Is=L]),Nc1&&(c1=N)}function jD(L,N){var Q=nm([L*Ll,N*Ll]);if(Y9){var q=V9(Y9,Q),de=V9([q[1],-q[0],0],q);U9(de),de=_7(de);var ve,Se=L-om,Ee=Se>0?1:-1,Oe=de[0]*kc*Ee,Ve=os(Se)>180;Ve^(Ee*omc1&&(c1=ve):Ve^(Ee*om<(Oe=(Oe+360)%360-180)&&Oec1&&(c1=N)),Ve?Lbd(Rc,Is)&&(Is=L):bd(L,Is)>bd(Rc,Is)&&(Rc=L):Is>=Rc?(LIs&&(Is=L)):L>om?bd(Rc,L)>bd(Rc,Is)&&(Is=L):bd(L,Is)>bd(Rc,Is)&&(Rc=L)}else Q2.push($1=[Rc=L,Is=L]);Nc1&&(c1=N),Y9=Q,om=L}function u3(){qd.point=jD}function OD(){$1[0]=Rc,$1[1]=Is,qd.point=G7,Y9=null}function fA(L,N){if(Y9){var Q=L-om;rm.add(os(Q)>180?Q+(Q>0?360:-360):Q)}else G9=L,kH=N;gh.point(L,N),jD(L,N)}function K$(){gh.lineStart()}function J$(){fA(G9,kH),gh.lineEnd(),os(rm)>Kl&&(Rc=-(Is=180)),$1[0]=Rc,$1[1]=Is,Y9=null}function bd(L,N){return(N-=L)<0?N+360:N}function $$(L,N){return L[0]-N[0]}function gH(L,N){return L[0]<=L[1]?L[0]<=N&&N<=L[1]:Nbd(q[0],q[1])&&(q[1]=de[1]),bd(de[0],q[1])>bd(q[0],q[1])&&(q[0]=de[0])):ve.push(q=de);for(Se=-1/0,N=0,q=ve[Q=ve.length-1];N<=Q;q=de,++N)de=ve[N],(Ee=bd(q[1],de[0]))>Se&&(Se=Ee,Rc=de[0],Is=q[1])}return Q2=$1=null,Rc===1/0||Gf===1/0?[[NaN,NaN],[NaN,NaN]]:[[Rc,Gf],[Is,c1]]}var e2={sphere:Js,point:Ik,lineStart:hA,lineEnd:lm,polygonStart:function(){e2.lineStart=nee,e2.lineEnd=iee},polygonEnd:function(){e2.lineStart=hA,e2.lineEnd=lm}};function Ik(L,N){L*=Ll;var Q=ol(N*=Ll);Z9(Q*ol(L),Q*mr(L),mr(N))}function Z9(L,N,Q){++X9,rA+=(L-rA)/X9,lA+=(N-lA)/X9,aA+=(Q-aA)/X9}function hA(){e2.point=eee}function eee(L,N){L*=Ll;var Q=ol(N*=Ll);gf=Q*ol(L),md=Q*mr(L),Zd=mr(N),e2.point=tee,Z9(gf,md,Zd)}function tee(L,N){L*=Ll;var Q=ol(N*=Ll),q=Q*ol(L),de=Q*mr(L),ve=mr(N),Se=Uf(Qc((Se=md*ve-Zd*de)*Se+(Se=Zd*q-gf*ve)*Se+(Se=gf*de-md*q)*Se),gf*q+md*de+Zd*ve);c3+=Se,sA+=Se*(gf+(gf=q)),cA+=Se*(md+(md=de)),uA+=Se*(Zd+(Zd=ve)),Z9(gf,md,Zd)}function lm(){e2.point=Ik}function nee(){e2.point=mH}function iee(){pD(TD,DD),e2.point=Ik}function mH(L,N){TD=L,DD=N,L*=Ll,N*=Ll,e2.point=pD;var Q=ol(N);gf=Q*ol(L),md=Q*mr(L),Zd=mr(N),Z9(gf,md,Zd)}function pD(L,N){L*=Ll;var Q=ol(N*=Ll),q=Q*ol(L),de=Q*mr(L),ve=mr(N),Se=md*ve-Zd*de,Ee=Zd*q-gf*ve,Oe=gf*de-md*q,Ve=Qc(Se*Se+Ee*Ee+Oe*Oe),it=Yd(Ve),vt=Ve&&-it/Ve;dA+=vt*Se,Q9+=vt*Ee,U7+=vt*Oe,c3+=it,sA+=it*(gf+(gf=q)),cA+=it*(md+(md=de)),uA+=it*(Zd+(Zd=ve)),Z9(gf,md,Zd)}function PD(L){X9=c3=rA=lA=aA=sA=cA=uA=dA=Q9=U7=0,K1(L,e2);var N=dA,Q=Q9,q=U7,de=N*N+Q*Q+q*q;return deHa?L+Math.round(-L/Vf)*Vf:L,N]}function gA(L,N,Q){return(L%=Vf)?N||Q?kA(q9(L),K9(N,Q)):q9(L):N||Q?K9(N,Q):am}function Y7(L){return function(N,Q){return[(N+=L)>Ha?N-Vf:N<-Ha?N+Vf:N,Q]}}function q9(L){var N=Y7(L);return N.invert=Y7(-L),N}function K9(L,N){var Q=ol(L),q=mr(L),de=ol(N),ve=mr(N);function Se(Ee,Oe){var Ve=ol(Oe),it=ol(Ee)*Ve,vt=mr(Ee)*Ve,nt=mr(Oe),pt=nt*Q+it*q;return[Uf(vt*de-pt*ve,it*Q-nt*q),Yd(pt*de+vt*ve)]}return Se.invert=function(Ee,Oe){var Ve=ol(Oe),it=ol(Ee)*Ve,vt=mr(Ee)*Ve,nt=mr(Oe),pt=nt*de-vt*ve;return[Uf(vt*de+nt*ve,it*Q+pt*q),Yd(pt*Q-it*q)]},Se}function X7(L){function N(Q){return(Q=L(Q[0]*Ll,Q[1]*Ll))[0]*=kc,Q[1]*=kc,Q}return L=gA(L[0]*Ll,L[1]*Ll,L.length>2?L[2]*Ll:0),N.invert=function(Q){return(Q=L.invert(Q[0]*Ll,Q[1]*Ll))[0]*=kc,Q[1]*=kc,Q},N}function ID(L,N,Q,q,de,ve){if(Q){var Se=ol(N),Ee=mr(N),Oe=q*Q;de==null?(de=N+q*Vf,ve=N-Oe/2):(de=od(Se,de),ve=od(Se,ve),(q>0?deve)&&(de+=q*Vf));for(var Ve,it=de;q>0?it>ve:it1&&N.push(N.pop().concat(N.shift()))},result:function(){var Q=N;return N=[],L=null,Q}}}function rs(L,N){return os(L[0]-N[0])=0;--ve)de.point((it=Ve[ve])[0],it[1]);else q(nt.x,nt.p.x,-1,de);nt=nt.p}Ve=(nt=nt.o).z,pt=!pt}while(!nt.v);de.lineEnd()}}}function $9(L){if(N=L.length){for(var N,Q,q=0,de=L[0];++q=0?1:-1,hi=wo*Bi,Ji=hi>Ha,Tn=Jt*ui;if(BD.add(Uf(Tn*wo*mr(hi),Kt*Si+Tn*ol(hi))),Se+=Ji?Bi+wo*Vf:Bi,Ji^pt>=Q^cn>=Q){var Xn=V9(nm(nt),nm(kn));U9(Xn);var Wi=V9(ve,Xn);U9(Wi);var Pi=(Ji^Bi>=0?-1:1)*Yd(Wi[2]);(q>Pi||q===Pi&&(Xn[0]||Xn[1]))&&(Ee+=Ji^Bi>=0?1:-1)}}return(Se<-1e-6||Se0){for(vt||(de.polygonStart(),vt=!0),de.lineStart(),Dn=0;Dn1&&2&wo&&hi.push(hi.pop().concat(hi.shift())),Se.push(hi.filter(ree))}return nt}}function ree(L){return L.length>1}function wH(L,N){return((L=L.x)[0]<0?L[1]-ru-Kl:ru-L[1])-((N=N.x)[0]<0?N[1]-ru-Kl:ru-N[1])}const Z7=CH(function(){return!0},function(L){var N,Q=NaN,q=NaN,de=NaN;return{lineStart:function(){L.lineStart(),N=1},point:function(ve,Se){var Ee=ve>0?Ha:-Ha,Oe=os(ve-Q);os(Oe-Ha)0?ru:-ru),L.point(de,q),L.lineEnd(),L.lineStart(),L.point(Ee,q),L.point(ve,q),N=0):de!==Ee&&Oe>=Ha&&(os(Q-de)Kl?_9((mr(it)*(Nt=ol(nt))*mr(vt)-mr(nt)*(pt=ol(it))*mr(Ve))/(pt*Nt*Jt)):(it+nt)/2}(Q,q,ve,Se),L.point(de,q),L.lineEnd(),L.lineStart(),L.point(Ee,q),N=0),L.point(Q=ve,q=Se),de=Ee},lineEnd:function(){L.lineEnd(),Q=q=NaN},clean:function(){return 2-N}}},function(L,N,Q,q){var de;if(L==null)de=Q*ru,q.point(-Ha,de),q.point(0,de),q.point(Ha,de),q.point(Ha,0),q.point(Ha,-de),q.point(0,-de),q.point(-Ha,-de),q.point(-Ha,0),q.point(-Ha,de);else if(os(L[0]-N[0])>Kl){var ve=L[0]0,de=os(N)>Kl;function ve(Oe,Ve){return ol(Oe)*ol(Ve)>N}function Se(Oe,Ve,it){var vt=[1,0,0],nt=V9(nm(Oe),nm(Ve)),pt=V7(nt,nt),Nt=nt[0],Jt=pt-Nt*Nt;if(!Jt)return!it&&Oe;var Kt=N*pt/Jt,Vt=-N*Nt/Jt,kn=V9(vt,nt),cn=im(vt,Kt);MD(cn,im(nt,Vt));var Dn=kn,ui=V7(cn,Dn),Si=V7(Dn,Dn),Bi=ui*ui-Si*(V7(cn,cn)-1);if(!(Bi<0)){var wo=Qc(Bi),hi=im(Dn,(-ui-wo)/Si);if(MD(hi,cn),hi=_7(hi),!it)return hi;var Ji,Tn=Oe[0],Xn=Ve[0],Wi=Oe[1],Pi=Ve[1];Xn0^hi[1]<(os(hi[0]-Tn)Ha^(Tn<=hi[0]&&hi[0]<=Xn)){var wr=im(Dn,(-ui+wo)/Si);return MD(wr,cn),[hi,_7(wr)]}}}function Ee(Oe,Ve){var it=q?L:Ha-L,vt=0;return Oe<-it?vt|=1:Oe>it&&(vt|=2),Ve<-it?vt|=4:Ve>it&&(vt|=8),vt}return CH(ve,function(Oe){var Ve,it,vt,nt,pt;return{lineStart:function(){nt=vt=!1,pt=1},point:function(Nt,Jt){var Kt,Vt=[Nt,Jt],kn=ve(Nt,Jt),cn=q?kn?0:Ee(Nt,Jt):kn?Ee(Nt+(Nt<0?Ha:-Ha),Jt):0;if(!Ve&&(nt=vt=kn)&&Oe.lineStart(),kn!==vt&&(!(Kt=Se(Ve,Vt))||rs(Ve,Kt)||rs(Vt,Kt))&&(Vt[2]=1),kn!==vt)pt=0,kn?(Oe.lineStart(),Kt=Se(Vt,Ve),Oe.point(Kt[0],Kt[1])):(Kt=Se(Ve,Vt),Oe.point(Kt[0],Kt[1],2),Oe.lineEnd()),Ve=Kt;else if(de&&Ve&&q^kn){var Dn;cn&it||!(Dn=Se(Vt,Ve,!0))||(pt=0,q?(Oe.lineStart(),Oe.point(Dn[0][0],Dn[0][1]),Oe.point(Dn[1][0],Dn[1][1]),Oe.lineEnd()):(Oe.point(Dn[1][0],Dn[1][1]),Oe.lineEnd(),Oe.lineStart(),Oe.point(Dn[0][0],Dn[0][1],3)))}!kn||Ve&&rs(Ve,Vt)||Oe.point(Vt[0],Vt[1]),Ve=Vt,vt=kn,it=cn},lineEnd:function(){vt&&Oe.lineEnd(),Ve=null},clean:function(){return pt|(nt&&vt)<<1}}},function(Oe,Ve,it,vt){ID(vt,L,Q,it,Oe,Ve)},q?[0,-L]:[-Ha,L-Ha])}var vA=1e9,q7=-vA;function mA(L,N,Q,q){function de(Ve,it){return L<=Ve&&Ve<=Q&&N<=it&&it<=q}function ve(Ve,it,vt,nt){var pt=0,Nt=0;if(Ve==null||(pt=Se(Ve,vt))!==(Nt=Se(it,vt))||Oe(Ve,it)<0^vt>0)do nt.point(pt===0||pt===3?L:Q,pt>1?q:N);while((pt=(pt+vt+4)%4)!==Nt);else nt.point(it[0],it[1])}function Se(Ve,it){return os(Ve[0]-L)0?0:3:os(Ve[0]-Q)0?2:1:os(Ve[1]-N)0?1:0:it>0?3:2}function Ee(Ve,it){return Oe(Ve.x,it.x)}function Oe(Ve,it){var vt=Se(Ve,1),nt=Se(it,1);return vt!==nt?vt-nt:vt===0?it[1]-Ve[1]:vt===1?Ve[0]-it[0]:vt===2?Ve[1]-it[1]:it[0]-Ve[0]}return function(Ve){var it,vt,nt,pt,Nt,Jt,Kt,Vt,kn,cn,Dn,ui=Ve,Si=bH(),Bi={point:wo,lineStart:function(){Bi.point=hi,vt&&vt.push(nt=[]),cn=!0,kn=!1,Kt=Vt=NaN},lineEnd:function(){it&&(hi(pt,Nt),Jt&&kn&&Si.rejoin(),it.push(Si.result())),Bi.point=wo,kn&&ui.lineEnd()},polygonStart:function(){ui=Si,it=[],vt=[],Dn=!0},polygonEnd:function(){var Ji=function(){for(var Wi=0,Pi=0,Ui=vt.length;Piq&&(za-or)*(q-wr)>(Tl-wr)*(L-or)&&++Wi:Tl<=q&&(za-or)*(q-wr)<(Tl-wr)*(L-or)&&--Wi;return Wi}(),Tn=Dn&&Ji,Xn=(it=J(it)).length;(Tn||Xn)&&(Ve.polygonStart(),Tn&&(Ve.lineStart(),ve(null,null,1,Ve),Ve.lineEnd()),Xn&&J9(it,Ee,Ji,ve,Ve),Ve.polygonEnd()),ui=Ve,it=vt=nt=null}};function wo(Ji,Tn){de(Ji,Tn)&&ui.point(Ji,Tn)}function hi(Ji,Tn){var Xn=de(Ji,Tn);if(vt&&nt.push([Ji,Tn]),cn)pt=Ji,Nt=Tn,Jt=Xn,cn=!1,Xn&&(ui.lineStart(),ui.point(Ji,Tn));else if(Xn&&kn)ui.point(Ji,Tn);else{var Wi=[Kt=Math.max(q7,Math.min(vA,Kt)),Vt=Math.max(q7,Math.min(vA,Vt))],Pi=[Ji=Math.max(q7,Math.min(vA,Ji)),Tn=Math.max(q7,Math.min(vA,Tn))];(function(Ui,or,wr,bl,Li,No){var Nr,za=Ui[0],Tl=Ui[1],xl=0,Ka=1,yd=or[0]-za,Zc=or[1]-Tl;if(Nr=wr-za,yd||!(Nr>0)){if(Nr/=yd,yd<0){if(Nr0){if(Nr>Ka)return;Nr>xl&&(xl=Nr)}if(Nr=Li-za,yd||!(Nr<0)){if(Nr/=yd,yd<0){if(Nr>Ka)return;Nr>xl&&(xl=Nr)}else if(yd>0){if(Nr0)){if(Nr/=Zc,Zc<0){if(Nr0){if(Nr>Ka)return;Nr>xl&&(xl=Nr)}if(Nr=No-Tl,Zc||!(Nr<0)){if(Nr/=Zc,Zc<0){if(Nr>Ka)return;Nr>xl&&(xl=Nr)}else if(Zc>0){if(Nr0&&(Ui[0]=za+xl*yd,Ui[1]=Tl+xl*Zc),Ka<1&&(or[0]=za+Ka*yd,or[1]=Tl+Ka*Zc),!0}}}}})(Wi,Pi,L,N,Q,q)?(kn||(ui.lineStart(),ui.point(Wi[0],Wi[1])),ui.point(Pi[0],Pi[1]),Xn||ui.lineEnd(),Dn=!1):Xn&&(ui.lineStart(),ui.point(Ji,Tn),Dn=!1)}Kt=Ji,Vt=Tn,kn=Xn}return Bi}}function lee(){var L,N,Q,q=0,de=0,ve=960,Se=500;return Q={stream:function(Ee){return L&&N===Ee?L:L=mA(q,de,ve,Se)(N=Ee)},extent:function(Ee){return arguments.length?(q=+Ee[0][0],de=+Ee[0][1],ve=+Ee[1][0],Se=+Ee[1][1],L=N=null,Q):[[q,de],[ve,Se]]}}}var K7,J7,$7,RD=a3(),e5={sphere:Js,point:Js,lineStart:function(){e5.point=see,e5.lineEnd=aee},lineEnd:Js,polygonStart:Js,polygonEnd:Js};function aee(){e5.point=e5.lineEnd=Js}function see(L,N){K7=L*=Ll,J7=mr(N*=Ll),$7=ol(N),e5.point=cee}function cee(L,N){L*=Ll;var Q=mr(N*=Ll),q=ol(N),de=os(L-K7),ve=ol(de),Se=q*mr(de),Ee=$7*Q-J7*q*ve,Oe=J7*Q+$7*q*ve;RD.add(Uf(Qc(Se*Se+Ee*Ee),Oe)),K7=L,J7=Q,$7=q}function HD(L){return RD.reset(),K1(L,e5),+RD}var WD=[null,null],uee={type:"LineString",coordinates:WD};function eL(L,N){return WD[0]=L,WD[1]=N,HD(uee)}var zD={Feature:function(L,N){return tL(L.geometry,N)},FeatureCollection:function(L,N){for(var Q=L.features,q=-1,de=Q.length;++q0&&(de=eL(L[ve],L[ve-1]))>0&&Q<=de&&q<=de&&(Q+q-de)*(1-Math.pow((Q-q)/de,2))Kl}).map(Oe)).concat(M(nA(ve/pt)*pt,de,pt).filter(function(cn){return os(cn%Jt)>Kl}).map(Ve))}return Vt.lines=function(){return kn().map(function(cn){return{type:"LineString",coordinates:cn}})},Vt.outline=function(){return{type:"Polygon",coordinates:[it(q).concat(vt(Se).slice(1),it(Q).reverse().slice(1),vt(Ee).reverse().slice(1))]}},Vt.extent=function(cn){return arguments.length?Vt.extentMajor(cn).extentMinor(cn):Vt.extentMinor()},Vt.extentMajor=function(cn){return arguments.length?(q=+cn[0][0],Q=+cn[1][0],Ee=+cn[0][1],Se=+cn[1][1],q>Q&&(cn=q,q=Q,Q=cn),Ee>Se&&(cn=Ee,Ee=Se,Se=cn),Vt.precision(Kt)):[[q,Ee],[Q,Se]]},Vt.extentMinor=function(cn){return arguments.length?(N=+cn[0][0],L=+cn[1][0],ve=+cn[0][1],de=+cn[1][1],N>L&&(cn=N,N=L,L=cn),ve>de&&(cn=ve,ve=de,de=cn),Vt.precision(Kt)):[[N,ve],[L,de]]},Vt.step=function(cn){return arguments.length?Vt.stepMajor(cn).stepMinor(cn):Vt.stepMinor()},Vt.stepMajor=function(cn){return arguments.length?(Nt=+cn[0],Jt=+cn[1],Vt):[Nt,Jt]},Vt.stepMinor=function(cn){return arguments.length?(nt=+cn[0],pt=+cn[1],Vt):[nt,pt]},Vt.precision=function(cn){return arguments.length?(Kt=+cn,Oe=MH(ve,de,90),Ve=TH(N,L,Kt),it=MH(Ee,Se,90),vt=TH(q,Q,Kt),Vt):Kt},Vt.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function hee(){return DH()()}function kee(L,N){var Q=L[0]*Ll,q=L[1]*Ll,de=N[0]*Ll,ve=N[1]*Ll,Se=ol(q),Ee=mr(q),Oe=ol(ve),Ve=mr(ve),it=Se*ol(Q),vt=Se*mr(Q),nt=Oe*ol(de),pt=Oe*mr(de),Nt=2*Yd(Qc(N7(ve-q)+Se*Oe*N7(de-Q))),Jt=mr(Nt),Kt=Nt?function(Vt){var kn=mr(Vt*=Nt)/Jt,cn=mr(Nt-Vt)/Jt,Dn=cn*it+kn*nt,ui=cn*vt+kn*pt,Si=cn*Ee+kn*Ve;return[Uf(ui,Dn)*kc,Uf(Si,Qc(Dn*Dn+ui*ui))*kc]}:function(){return[Q*kc,q*kc]};return Kt.distance=Nt,Kt}function bA(L){return L}var jH,_D,VD,UD,GD=a3(),nL=a3(),d3={point:Js,lineStart:Js,lineEnd:Js,polygonStart:function(){d3.lineStart=gee,d3.lineEnd=mee},polygonEnd:function(){d3.lineStart=d3.lineEnd=d3.point=Js,GD.add(os(nL)),nL.reset()},result:function(){var L=GD/2;return GD.reset(),L}};function gee(){d3.point=vee}function vee(L,N){d3.point=OH,jH=VD=L,_D=UD=N}function OH(L,N){nL.add(UD*L-VD*N),VD=L,UD=N}function mee(){OH(jH,_D)}const pH=d3;var sm=1/0,iL=sm,AA=-sm,oL=AA,bee={point:function(L,N){LAA&&(AA=L),NoL&&(oL=N)},lineStart:Js,lineEnd:Js,polygonStart:Js,polygonEnd:Js,result:function(){var L=[[sm,iL],[AA,oL]];return AA=oL=-(iL=sm=1/0),L}};const rL=bee;var PH,IH,l4,Z2,lL=0,aL=0,CA=0,wA=0,cm=0,t5=0,YD=0,sL=0,yA=0,vh={point:q2,lineStart:um,lineEnd:EA,polygonStart:function(){vh.lineStart=dm,vh.lineEnd=cL},polygonEnd:function(){vh.point=q2,vh.lineStart=um,vh.lineEnd=EA},result:function(){var L=yA?[YD/yA,sL/yA]:t5?[wA/t5,cm/t5]:CA?[lL/CA,aL/CA]:[NaN,NaN];return lL=aL=CA=wA=cm=t5=YD=sL=yA=0,L}};function q2(L,N){lL+=L,aL+=N,++CA}function um(){vh.point=LA}function LA(L,N){vh.point=xA,q2(l4=L,Z2=N)}function xA(L,N){var Q=L-l4,q=N-Z2,de=Qc(Q*Q+q*q);wA+=de*(l4+L)/2,cm+=de*(Z2+N)/2,t5+=de,q2(l4=L,Z2=N)}function EA(){vh.point=q2}function dm(){vh.point=SA}function cL(){XD(PH,IH)}function SA(L,N){vh.point=XD,q2(PH=l4=L,IH=Z2=N)}function XD(L,N){var Q=L-l4,q=N-Z2,de=Qc(Q*Q+q*q);wA+=de*(l4+L)/2,cm+=de*(Z2+N)/2,t5+=de,YD+=(de=Z2*L-l4*N)*(l4+L),sL+=de*(Z2+N),yA+=3*de,q2(l4=L,Z2=N)}const uL=vh;function BH(L){this._context=L}BH.prototype={_radius:4.5,pointRadius:function(L){return this._radius=L,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(L,N){switch(this._point){case 0:this._context.moveTo(L,N),this._point=1;break;case 1:this._context.lineTo(L,N);break;default:this._context.moveTo(L+this._radius,N),this._context.arc(L,N,this._radius,0,Vf)}},result:Js};var n5,QD,ZD,MA,fm,dL=a3(),fL={point:Js,lineStart:function(){fL.point=Aee},lineEnd:function(){n5&&TA(QD,ZD),fL.point=Js},polygonStart:function(){n5=!0},polygonEnd:function(){n5=null},result:function(){var L=+dL;return dL.reset(),L}};function Aee(L,N){fL.point=TA,QD=MA=L,ZD=fm=N}function TA(L,N){MA-=L,fm-=N,dL.add(Qc(MA*MA+fm*fm)),MA=L,fm=N}const hL=fL;function K2(){this._string=[]}function t2(L){return"m0,"+L+"a"+L+","+L+" 0 1,1 0,"+-2*L+"a"+L+","+L+" 0 1,1 0,"+2*L+"z"}function f3(L,N){var Q,q,de=4.5;function ve(Se){return Se&&(typeof de=="function"&&q.pointRadius(+de.apply(this,arguments)),K1(Se,Q(q))),q.result()}return ve.area=function(Se){return K1(Se,Q(pH)),pH.result()},ve.measure=function(Se){return K1(Se,Q(hL)),hL.result()},ve.bounds=function(Se){return K1(Se,Q(rL)),rL.result()},ve.centroid=function(Se){return K1(Se,Q(uL)),uL.result()},ve.projection=function(Se){return arguments.length?(Q=Se==null?(L=null,bA):(L=Se).stream,ve):L},ve.context=function(Se){return arguments.length?(q=Se==null?(N=null,new K2):new BH(N=Se),typeof de!="function"&&q.pointRadius(de),ve):N},ve.pointRadius=function(Se){return arguments.length?(de=typeof Se=="function"?Se:(q.pointRadius(+Se),+Se),ve):de},ve.projection(L).context(N)}function kL(L){return{stream:i5(L)}}function i5(L){return function(N){var Q=new DA;for(var q in L)Q[q]=L[q];return Q.stream=N,Q}}function DA(){}function gL(L,N,Q){var q=L.clipExtent&&L.clipExtent();return L.scale(150).translate([0,0]),q!=null&&L.clipExtent(null),K1(Q,L.stream(rL)),N(rL.result()),q!=null&&L.clipExtent(q),L}function jA(L,N,Q){return gL(L,function(q){var de=N[1][0]-N[0][0],ve=N[1][1]-N[0][1],Se=Math.min(de/(q[1][0]-q[0][0]),ve/(q[1][1]-q[0][1])),Ee=+N[0][0]+(de-Se*(q[1][0]+q[0][0]))/2,Oe=+N[0][1]+(ve-Se*(q[1][1]+q[0][1]))/2;L.scale(150*Se).translate([Ee,Oe])},Q)}function qD(L,N,Q){return jA(L,[[0,0],N],Q)}function KD(L,N,Q){return gL(L,function(q){var de=+N,ve=de/(q[1][0]-q[0][0]),Se=(de-ve*(q[1][0]+q[0][0]))/2,Ee=-ve*q[0][1];L.scale(150*ve).translate([Se,Ee])},Q)}function JD(L,N,Q){return gL(L,function(q){var de=+N,ve=de/(q[1][1]-q[0][1]),Se=-ve*q[0][0],Ee=(de-ve*(q[1][1]+q[0][1]))/2;L.scale(150*ve).translate([Se,Ee])},Q)}K2.prototype={_radius:4.5,_circle:t2(4.5),pointRadius:function(L){return(L=+L)!==this._radius&&(this._radius=L,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(L,N){switch(this._point){case 0:this._string.push("M",L,",",N),this._point=1;break;case 1:this._string.push("L",L,",",N);break;default:this._circle==null&&(this._circle=t2(this._radius)),this._string.push("M",L,",",N,this._circle)}},result:function(){if(this._string.length){var L=this._string.join("");return this._string=[],L}return null}},DA.prototype={constructor:DA,point:function(L,N){this.stream.point(L,N)},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 Cee=ol(30*Ll);function vL(L,N){return+N?function(Q,q){function de(ve,Se,Ee,Oe,Ve,it,vt,nt,pt,Nt,Jt,Kt,Vt,kn){var cn=vt-ve,Dn=nt-Se,ui=cn*cn+Dn*Dn;if(ui>4*q&&Vt--){var Si=Oe+Nt,Bi=Ve+Jt,wo=it+Kt,hi=Qc(Si*Si+Bi*Bi+wo*wo),Ji=Yd(wo/=hi),Tn=os(os(wo)-1)q||os((cn*Ui+Dn*or)/ui-.5)>.3||Oe*Nt+Ve*Jt+it*Kt2?Ui[2]%360*Ll:0,Wi()):[Kt*kc,Vt*kc,kn*kc]},Tn.angle=function(Ui){return arguments.length?(cn=Ui%360*Ll,Wi()):cn*kc},Tn.reflectX=function(Ui){return arguments.length?(Dn=Ui?-1:1,Wi()):Dn<0},Tn.reflectY=function(Ui){return arguments.length?(ui=Ui?-1:1,Wi()):ui<0},Tn.precision=function(Ui){return arguments.length?(Se=vL(Ee,Ji=Ui*Ui),Pi()):Qc(Ji)},Tn.fitExtent=function(Ui,or){return jA(Tn,Ui,or)},Tn.fitSize=function(Ui,or){return qD(Tn,Ui,or)},Tn.fitWidth=function(Ui,or){return KD(Tn,Ui,or)},Tn.fitHeight=function(Ui,or){return JD(Tn,Ui,or)},function(){return N=L.apply(this,arguments),Tn.invert=N.invert&&Xn,Wi()}}function ej(L){var N=0,Q=Ha/3,q=bL(L),de=q(N,Q);return de.parallels=function(ve){return arguments.length?q(N=ve[0]*Ll,Q=ve[1]*Ll):[N*kc,Q*kc]},de}function RH(L,N){var Q=mr(L),q=(Q+mr(N))/2;if(os(q)=.12&&Kt<.234&&Jt>=-.425&&Jt<-.214?Ee:Kt>=.166&&Kt<.234&&Jt>=-.214&&Jt<-.115?Oe:Se).invert(nt)},it.stream=function(nt){return L&&N===nt?L:(pt=[Se.stream(N=nt),Ee.stream(nt),Oe.stream(nt)],Nt=pt.length,L={point:function(Jt,Kt){for(var Vt=-1;++Vt0?Ee<-ru+Kl&&(Ee=-ru+Kl):Ee>ru-Kl&&(Ee=ru-Kl);var Oe=de/iA(CL(Ee),q);return[Oe*mr(q*Se),de-Oe*ol(q*Se)]}return ve.invert=function(Se,Ee){var Oe=de-Ee,Ve=s1(q)*Qc(Se*Se+Oe*Oe),it=Uf(Se,os(Oe))*s1(Oe);return Oe*q<0&&(it-=Ha*s1(Se)*s1(Oe)),[it/q,2*_9(iA(de/Ve,1/q))-ru]},ve}function Eee(){return ej(FH).scale(109.5).parallels([30,30])}function o5(L,N){return[L,N]}function See(){return a4(o5).scale(152.63)}function _H(L,N){var Q=ol(L),q=L===N?mr(L):(Q-ol(N))/(N-L),de=Q/q+L;if(os(q)2?q[2]+90:90]):[(q=Q())[0],q[1],q[2]-90]},Q([0,0,90]).scale(159.155)}function GH(L,N){return L.parent===N.parent?1:2}function yL(L,N){return L+N.x}function pee(L,N){return Math.max(L,N.y)}function Pee(){var L=GH,N=1,Q=1,q=!1;function de(ve){var Se,Ee=0;ve.eachAfter(function(nt){var pt=nt.children;pt?(nt.x=function(Nt){return Nt.reduce(yL,0)/Nt.length}(pt),nt.y=function(Nt){return 1+Nt.reduce(pee,0)}(pt)):(nt.x=Se?Ee+=L(nt,Se):0,nt.y=0,Se=nt)});var Oe=function(nt){for(var pt;pt=nt.children;)nt=pt[0];return nt}(ve),Ve=function(nt){for(var pt;pt=nt.children;)nt=pt[pt.length-1];return nt}(ve),it=Oe.x-L(Oe,Ve)/2,vt=Ve.x+L(Ve,Oe)/2;return ve.eachAfter(q?function(nt){nt.x=(nt.x-ve.x)*N,nt.y=(ve.y-nt.y)*Q}:function(nt){nt.x=(nt.x-it)/(vt-it)*N,nt.y=(1-(ve.y?nt.y/ve.y:1))*Q})}return de.separation=function(ve){return arguments.length?(L=ve,de):L},de.size=function(ve){return arguments.length?(q=!1,N=+ve[0],Q=+ve[1],de):q?null:[N,Q]},de.nodeSize=function(ve){return arguments.length?(q=!0,N=+ve[0],Q=+ve[1],de):q?[N,Q]:null},de}function Iee(L){var N=0,Q=L.children,q=Q&&Q.length;if(q)for(;--q>=0;)N+=Q[q].value;else N=1;L.value=N}function cj(L,N){var Q,q,de,ve,Se,Ee=new hm(L),Oe=+L.value&&(Ee.value=L.value),Ve=[Ee];for(N==null&&(N=Bee);Q=Ve.pop();)if(Oe&&(Q.value=+Q.data.value),(de=N(Q.data))&&(Se=de.length))for(Q.children=new Array(Se),ve=Se-1;ve>=0;--ve)Ve.push(q=Q.children[ve]=new hm(de[ve])),q.parent=Q,q.depth=Q.depth+1;return Ee.eachBefore(LL)}function Bee(L){return L.children}function Nee(L){L.data=L.data.data}function LL(L){var N=0;do L.height=N;while((L=L.parent)&&L.height<++N)}function hm(L){this.data=L,this.depth=this.height=0,this.parent=null}ij.invert=function(L,N){for(var Q,q=N,de=q*q,ve=de*de*de,Se=0;Se<12&&(ve=(de=(q-=Q=(q*(PA+IA*de+ve*(u1+r5*de))-N)/(PA+3*IA*de+ve*(7*u1+9*r5*de)))*q)*de*de,!(os(Q)Kl&&--de>0);return[L/(.8707+(ve=q*q)*(ve*(ve*ve*ve*(.003971-.001529*ve)-.013791)-.131979)),q]},wL.invert=OA(Yd),aj.invert=OA(function(L){return 2*_9(L)}),sj.invert=function(L,N){return[-N,2*_9(hH(L))-ru]},hm.prototype=cj.prototype={constructor:hm,count:function(){return this.eachAfter(Iee)},each:function(L){var N,Q,q,de,ve=this,Se=[ve];do for(N=Se.reverse(),Se=[];ve=N.pop();)if(L(ve),Q=ve.children)for(q=0,de=Q.length;q=0;--Q)de.push(N[Q]);return this},sum:function(L){return this.eachAfter(function(N){for(var Q=+L(N.data)||0,q=N.children,de=q&&q.length;--de>=0;)Q+=q[de].value;N.value=Q})},sort:function(L){return this.eachBefore(function(N){N.children&&N.children.sort(L)})},path:function(L){for(var N=this,Q=function(ve,Se){if(ve===Se)return ve;var Ee=ve.ancestors(),Oe=Se.ancestors(),Ve=null;for(ve=Ee.pop(),Se=Oe.pop();ve===Se;)Ve=ve,ve=Ee.pop(),Se=Oe.pop();return Ve}(N,L),q=[N];N!==Q;)N=N.parent,q.push(N);for(var de=q.length;L!==Q;)q.splice(de,0,L),L=L.parent;return q},ancestors:function(){for(var L=this,N=[L];L=L.parent;)N.push(L);return N},descendants:function(){var L=[];return this.each(function(N){L.push(N)}),L},leaves:function(){var L=[];return this.eachBefore(function(N){N.children||L.push(N)}),L},links:function(){var L=this,N=[];return L.each(function(Q){Q!==L&&N.push({source:Q.parent,target:Q})}),N},copy:function(){return cj(this).eachBefore(Nee)}};var xL=Array.prototype.slice;function YH(L){for(var N,Q,q=0,de=(L=function(Se){for(var Ee,Oe,Ve=Se.length;Ve;)Oe=Math.random()*Ve--|0,Ee=Se[Ve],Se[Ve]=Se[Oe],Se[Oe]=Ee;return Se}(xL.call(L))).length,ve=[];q0&&Q*Q>q*q+de*de}function uj(L,N){for(var Q=0;Q(Se*=Se)?(q=(Ve+Se-de)/(2*Ve),ve=Math.sqrt(Math.max(0,Se/Ve-q*q)),Q.x=L.x-q*Ee-ve*Oe,Q.y=L.y-q*Oe+ve*Ee):(q=(Ve+de-Se)/(2*Ve),ve=Math.sqrt(Math.max(0,de/Ve-q*q)),Q.x=N.x+q*Ee-ve*Oe,Q.y=N.y+q*Oe+ve*Ee)):(Q.x=N.x+Q.r,Q.y=N.y)}function qH(L,N){var Q=L.r+N.r-1e-6,q=N.x-L.x,de=N.y-L.y;return Q>0&&Q*Q>q*q+de*de}function km(L){var N=L._,Q=L.next._,q=N.r+Q.r,de=(N.x*Q.r+Q.x*N.r)/q,ve=(N.y*Q.r+Q.y*N.r)/q;return de*de+ve*ve}function SL(L){this._=L,this.next=null,this.previous=null}function KH(L){if(!(de=L.length))return 0;var N,Q,q,de,ve,Se,Ee,Oe,Ve,it,vt;if((N=L[0]).x=0,N.y=0,!(de>1))return N.r;if(Q=L[1],N.x=-Q.r,Q.x=N.r,Q.y=0,!(de>2))return N.r+Q.r;ZH(Q,N,q=L[2]),N=new SL(N),Q=new SL(Q),q=new SL(q),N.next=q.previous=Q,Q.next=N.previous=q,q.next=Q.previous=N;e:for(Ee=3;Ee0)throw new Error("cycle");return Se}return Q.id=function(q){return arguments.length?(L=a5(q),Q):L},Q.parentId=function(q){return arguments.length?(N=a5(q),Q):N},Q}function Yee(L,N){return L.parent===N.parent?1:2}function ML(L){var N=L.children;return N?N[0]:L.t}function fj(L){var N=L.children;return N?N[N.length-1]:L.t}function Xee(L,N,Q){var q=Q/(N.i-L.i);N.c-=q,N.s+=Q,L.c+=q,N.z+=Q,N.m+=Q}function Qee(L,N,Q){return L.a.parent===N.parent?L.a:Q}function TL(L,N){this._=L,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=N}function Zee(){var L=Yee,N=1,Q=1,q=null;function de(Oe){var Ve=function(Vt){for(var kn,cn,Dn,ui,Si,Bi=new TL(Vt,0),wo=[Bi];kn=wo.pop();)if(Dn=kn._.children)for(kn.children=new Array(Si=Dn.length),ui=Si-1;ui>=0;--ui)wo.push(cn=kn.children[ui]=new TL(Dn[ui],ui)),cn.parent=kn;return(Bi.parent=new TL(null,0)).children=[Bi],Bi}(Oe);if(Ve.eachAfter(ve),Ve.parent.m=-Ve.z,Ve.eachBefore(Se),q)Oe.eachBefore(Ee);else{var it=Oe,vt=Oe,nt=Oe;Oe.eachBefore(function(Vt){Vt.xvt.x&&(vt=Vt),Vt.depth>nt.depth&&(nt=Vt)});var pt=it===vt?1:L(it,vt)/2,Nt=pt-it.x,Jt=N/(vt.x+pt+Nt),Kt=Q/(nt.depth||1);Oe.eachBefore(function(Vt){Vt.x=(Vt.x+Nt)*Jt,Vt.y=Vt.depth*Kt})}return Oe}function ve(Oe){var Ve=Oe.children,it=Oe.parent.children,vt=Oe.i?it[Oe.i-1]:null;if(Ve){(function(pt){for(var Nt,Jt=0,Kt=0,Vt=pt.children,kn=Vt.length;--kn>=0;)(Nt=Vt[kn]).z+=Jt,Nt.m+=Jt,Jt+=Nt.s+(Kt+=Nt.c)})(Oe);var nt=(Ve[0].z+Ve[Ve.length-1].z)/2;vt?(Oe.z=vt.z+L(Oe._,vt._),Oe.m=Oe.z-nt):Oe.z=nt}else vt&&(Oe.z=vt.z+L(Oe._,vt._));Oe.parent.A=function(pt,Nt,Jt){if(Nt){for(var Kt,Vt=pt,kn=pt,cn=Nt,Dn=Vt.parent.children[0],ui=Vt.m,Si=kn.m,Bi=cn.m,wo=Dn.m;cn=fj(cn),Vt=ML(Vt),cn&&Vt;)Dn=ML(Dn),(kn=fj(kn)).a=pt,(Kt=cn.z+Bi-Vt.z-ui+L(cn._,Vt._))>0&&(Xee(Qee(cn,pt,Jt),pt,Kt),ui+=Kt,Si+=Kt),Bi+=cn.m,ui+=Vt.m,wo+=Dn.m,Si+=kn.m;cn&&!fj(kn)&&(kn.t=cn,kn.m+=Bi-Si),Vt&&!ML(Dn)&&(Dn.t=Vt,Dn.m+=ui-wo,Jt=pt)}return Jt}(Oe,vt,Oe.parent.A||it[0])}function Se(Oe){Oe._.x=Oe.z+Oe.parent.m,Oe.m+=Oe.parent.m}function Ee(Oe){Oe.x*=N,Oe.y=Oe.depth*Q}return de.separation=function(Oe){return arguments.length?(L=Oe,de):L},de.size=function(Oe){return arguments.length?(q=!1,N=+Oe[0],Q=+Oe[1],de):q?null:[N,Q]},de.nodeSize=function(Oe){return arguments.length?(q=!0,N=+Oe[0],Q=+Oe[1],de):q?[N,Q]:null},de}function DL(L,N,Q,q,de){for(var ve,Se=L.children,Ee=-1,Oe=Se.length,Ve=L.value&&(de-Q)/L.value;++Eent&&(nt=Ee),Kt=it*it*Jt,(pt=Math.max(nt/Kt,Kt/vt))>Nt){it-=Ee;break}Nt=pt}Vt.push(Se={value:it,dice:Oe1?q:1)},Q}(oW);function qee(){var L=rW,N=!1,Q=1,q=1,de=[0],ve=h3,Se=h3,Ee=h3,Oe=h3,Ve=h3;function it(nt){return nt.x0=nt.y0=0,nt.x1=Q,nt.y1=q,nt.eachBefore(vt),de=[0],N&&nt.eachBefore(nW),nt}function vt(nt){var pt=de[nt.depth],Nt=nt.x0+pt,Jt=nt.y0+pt,Kt=nt.x1-pt,Vt=nt.y1-pt;Kt=nt-1){var kn=Ee[vt];return kn.x0=Nt,kn.y0=Jt,kn.x1=Kt,void(kn.y1=Vt)}for(var cn=Ve[vt],Dn=pt/2+cn,ui=vt+1,Si=nt-1;ui>>1;Ve[Bi]Vt-Jt){var Ji=(Nt*hi+Kt*wo)/pt;it(vt,ui,wo,Nt,Jt,Ji,Vt),it(ui,nt,hi,Ji,Jt,Kt,Vt)}else{var Tn=(Jt*hi+Vt*wo)/pt;it(vt,ui,wo,Nt,Jt,Kt,Tn),it(ui,nt,hi,Nt,Tn,Kt,Vt)}})(0,Oe,L.value,N,Q,q,de)}function J2(L,N,Q,q,de){(1&L.depth?DL:BA)(L,N,Q,q,de)}const lW=function L(N){function Q(q,de,ve,Se,Ee){if((Oe=q._squarify)&&Oe.ratio===N)for(var Oe,Ve,it,vt,nt,pt=-1,Nt=Oe.length,Jt=q.value;++pt1?q:1)},Q}(oW);function jL(L){var N=L.length;return function(Q){return L[Math.max(0,Math.min(N-1,Math.floor(Q*N)))]}}function Jee(L,N){var Q=zo(+L,+N);return function(q){var de=Q(q);return de-360*Math.floor(de/360)}}function kj(L,N){return L=+L,N=+N,function(Q){return Math.round(L*(1-Q)+N*Q)}}var k3=Math.SQRT2;function aW(L){return((L=Math.exp(L))+1/L)/2}function sW(L,N){var Q,q,de=L[0],ve=L[1],Se=L[2],Ee=N[0],Oe=N[1],Ve=N[2],it=Ee-de,vt=Oe-ve,nt=it*it+vt*vt;if(nt<1e-12)q=Math.log(Ve/Se)/k3,Q=function(kn){return[de+kn*it,ve+kn*vt,Se*Math.exp(k3*kn*q)]};else{var pt=Math.sqrt(nt),Nt=(Ve*Ve-Se*Se+4*nt)/(2*Se*2*pt),Jt=(Ve*Ve-Se*Se-4*nt)/(2*Ve*2*pt),Kt=Math.log(Math.sqrt(Nt*Nt+1)-Nt),Vt=Math.log(Math.sqrt(Jt*Jt+1)-Jt);q=(Vt-Kt)/k3,Q=function(kn){var cn,Dn=kn*q,ui=aW(Kt),Si=Se/(2*pt)*(ui*(cn=k3*Dn+Kt,((cn=Math.exp(2*cn))-1)/(cn+1))-function(Bi){return((Bi=Math.exp(Bi))-1/Bi)/2}(Kt));return[de+Si*it,ve+Si*vt,Se*ui/aW(k3*Dn+Kt)]}}return Q.duration=1e3*q,Q}function gj(L){return function(N,Q){var q=L((N=Zn(N)).h,(Q=Zn(Q)).h),de=fr(N.s,Q.s),ve=fr(N.l,Q.l),Se=fr(N.opacity,Q.opacity);return function(Ee){return N.h=q(Ee),N.s=de(Ee),N.l=ve(Ee),N.opacity=Se(Ee),N+""}}}const $ee=gj(zo);var OL=gj(fr);function NA(L,N){var Q=fr((L=ws(L)).l,(N=ws(N)).l),q=fr(L.a,N.a),de=fr(L.b,N.b),ve=fr(L.opacity,N.opacity);return function(Se){return L.l=Q(Se),L.a=q(Se),L.b=de(Se),L.opacity=ve(Se),L+""}}function vm(L){return function(N,Q){var q=L((N=ou(N)).h,(Q=ou(Q)).h),de=fr(N.c,Q.c),ve=fr(N.l,Q.l),Se=fr(N.opacity,Q.opacity);return function(Ee){return N.h=q(Ee),N.c=de(Ee),N.l=ve(Ee),N.opacity=Se(Ee),N+""}}}const RA=vm(zo);var HA=vm(fr);function WA(L){return function N(Q){function q(de,ve){var Se=L((de=Ws(de)).h,(ve=Ws(ve)).h),Ee=fr(de.s,ve.s),Oe=fr(de.l,ve.l),Ve=fr(de.opacity,ve.opacity);return function(it){return de.h=Se(it),de.s=Ee(it),de.l=Oe(Math.pow(it,Q)),de.opacity=Ve(it),de+""}}return Q=+Q,q.gamma=N,q}(1)}const mm=WA(zo);var bm=WA(fr);function zA(L,N){for(var Q=0,q=N.length-1,de=N[0],ve=new Array(q<0?0:q);Q1&&pL(L[Q[q-2]],L[Q[q-1]],L[de])<=0;)--q;Q[q++]=de}return Q.slice(0,q)}function tte(L){if((Q=L.length)<3)return null;var N,Q,q=new Array(Q),de=new Array(Q);for(N=0;N=0;--N)Ve.push(L[q[ve[N]][2]]);for(N=+Ee;NEe!=Ve>Ee&&Se<(Oe-Q)*(Ee-q)/(Ve-q)+Q&&(it=!it),Oe=Q,Ve=q;return it}function dW(L){for(var N,Q,q=-1,de=L.length,ve=L[de-1],Se=ve[0],Ee=ve[1],Oe=0;++q1);return q+de*Ee*Math.sqrt(-2*Math.log(Se)/Se)}}return Q.source=L,Q}(s5),Aj=function L(N){function Q(){var q=FA.source(N).apply(this,arguments);return function(){return Math.exp(q())}}return Q.source=L,Q}(s5),$2=function L(N){function Q(q){return function(){for(var de=0,ve=0;veq&&(N=Q,Q=q,q=N),function(de){return Math.max(Q,Math.min(q,de))}}function u5(L,N,Q){var q=L[0],de=L[1],ve=N[0],Se=N[1];return de2?GA:u5,de=ve=null,vt}function vt(nt){return isNaN(nt=+nt)?Q:(de||(de=q(Se.map(L),Ee,Oe)))(L(Ve(nt)))}return vt.invert=function(nt){return Ve(N((ve||(ve=q(Ee,Se.map(L),Ya)))(nt)))},vt.domain=function(nt){return arguments.length?(Se=_A.call(nt,VA),Ve===wu||(Ve=UA(Se)),it()):Se.slice()},vt.range=function(nt){return arguments.length?(Ee=v3.call(nt),it()):Ee.slice()},vt.rangeRound=function(nt){return Ee=v3.call(nt),Oe=kj,it()},vt.clamp=function(nt){return arguments.length?(Ve=nt?UA(Se):wu,vt):Ve!==wu},vt.interpolate=function(nt){return arguments.length?(Oe=nt,it()):Oe},vt.unknown=function(nt){return arguments.length?(Q=nt,vt):Q},function(nt,pt){return L=nt,N=pt,it()}}function hW(L,N){return IL()(L,N)}function kW(L,N,Q,q){var de,ve=H(L,N,Q);switch((q=$b(q??",f")).type){case"s":var Se=Math.max(Math.abs(L),Math.abs(N));return q.precision!=null||isNaN(de=uH(ve,Se))||(q.precision=de),j7(q,Se);case"":case"e":case"g":case"p":case"r":q.precision!=null||isNaN(de=dH(ve,Math.max(Math.abs(L),Math.abs(N))))||(q.precision=de-(q.type==="e"));break;case"f":case"%":q.precision!=null||isNaN(de=cH(ve))||(q.precision=de-2*(q.type==="%"))}return F9(q)}function Am(L){var N=L.domain;return L.ticks=function(Q){var q=N();return W(q[0],q[q.length-1],Q??10)},L.tickFormat=function(Q,q){var de=N();return kW(de[0],de[de.length-1],Q??10,q)},L.nice=function(Q){Q==null&&(Q=10);var q,de=N(),ve=0,Se=de.length-1,Ee=de[ve],Oe=de[Se];return Oe0?q=p(Ee=Math.floor(Ee/q)*q,Oe=Math.ceil(Oe/q)*q,Q):q<0&&(q=p(Ee=Math.ceil(Ee*q)/q,Oe=Math.floor(Oe*q)/q,Q)),q>0?(de[ve]=Math.floor(Ee/q)*q,de[Se]=Math.ceil(Oe/q)*q,N(de)):q<0&&(de[ve]=Math.ceil(Ee*q)/q,de[Se]=Math.floor(Oe*q)/q,N(de)),L},L}function gW(){var L=hW(wu,wu);return L.copy=function(){return bh(L,gW())},mh.apply(L,arguments),Am(L)}function vW(L){var N;function Q(q){return isNaN(q=+q)?N:q}return Q.invert=Q,Q.domain=Q.range=function(q){return arguments.length?(L=_A.call(q,VA),Q):L.slice()},Q.unknown=function(q){return arguments.length?(N=q,Q):N},Q.copy=function(){return vW(L).unknown(N)},L=arguments.length?_A.call(L,VA):[0,1],Am(Q)}function mW(L,N){var Q,q=0,de=(L=L.slice()).length-1,ve=L[q],Se=L[de];return Se0){for(;Jtvt)break;kn.push(Nt)}}else for(;Jt=1;--pt)if(!((Nt=nt*pt)vt)break;kn.push(Nt)}}else kn=W(Jt,Kt,Math.min(Kt-Jt,Vt)).map(Q);return Oe?kn.reverse():kn},q.tickFormat=function(Ee,Oe){if(Oe==null&&(Oe=ve===10?".0e":","),typeof Oe!="function"&&(Oe=F9(Oe)),Ee===1/0)return Oe;Ee==null&&(Ee=10);var Ve=Math.max(1,ve*Ee/q.ticks().length);return function(it){var vt=it/Q(Math.round(N(it)));return vt*ve0?q[Ee-1]:N[0],Ee=q?[de[q-1],Q]:[de[Ve-1],de[Ve]]},Se.unknown=function(Oe){return arguments.length&&(L=Oe),Se},Se.thresholds=function(){return de.slice()},Se.copy=function(){return WL().domain([N,Q]).range(ve).unknown(L)},mh.apply(Am(Se),arguments)}function zL(){var L,N=[.5],Q=[0,1],q=1;function de(ve){return ve<=ve?Q[u(N,ve,0,q)]:L}return de.domain=function(ve){return arguments.length?(N=v3.call(ve),q=Math.min(N.length,Q.length-1),de):N.slice()},de.range=function(ve){return arguments.length?(Q=v3.call(ve),q=Math.min(N.length,Q.length-1),de):Q.slice()},de.invertExtent=function(ve){var Se=Q.indexOf(ve);return[N[Se-1],N[Se]]},de.unknown=function(ve){return arguments.length?(L=ve,de):L},de.copy=function(){return zL().domain(N).range(Q).unknown(L)},mh.apply(de,arguments)}var Oj=new Date,FL=new Date;function rd(L,N,Q,q){function de(ve){return L(ve=arguments.length===0?new Date:new Date(+ve)),ve}return de.floor=function(ve){return L(ve=new Date(+ve)),ve},de.ceil=function(ve){return L(ve=new Date(ve-1)),N(ve,1),L(ve),ve},de.round=function(ve){var Se=de(ve),Ee=de.ceil(ve);return ve-Se0))return Ve;do Ve.push(Oe=new Date(+ve)),N(ve,Ee),L(ve);while(Oe=Se)for(;L(Se),!ve(Se);)Se.setTime(Se-1)},function(Se,Ee){if(Se>=Se)if(Ee<0)for(;++Ee<=0;)for(;N(Se,-1),!ve(Se););else for(;--Ee>=0;)for(;N(Se,1),!ve(Se););})},Q&&(de.count=function(ve,Se){return Oj.setTime(+ve),FL.setTime(+Se),L(Oj),L(FL),Math.floor(Q(Oj,FL))},de.every=function(ve){return ve=Math.floor(ve),isFinite(ve)&&ve>0?ve>1?de.filter(q?function(Se){return q(Se)%ve==0}:function(Se){return de.count(0,Se)%ve==0}):de:null}),de}var pj=rd(function(L){L.setMonth(0,1),L.setHours(0,0,0,0)},function(L,N){L.setFullYear(L.getFullYear()+N)},function(L,N){return N.getFullYear()-L.getFullYear()},function(L){return L.getFullYear()});pj.every=function(L){return isFinite(L=Math.floor(L))&&L>0?rd(function(N){N.setFullYear(Math.floor(N.getFullYear()/L)*L),N.setMonth(0,1),N.setHours(0,0,0,0)},function(N,Q){N.setFullYear(N.getFullYear()+Q*L)}):null};const Cm=pj;var ite=pj.range,yW=rd(function(L){L.setDate(1),L.setHours(0,0,0,0)},function(L,N){L.setMonth(L.getMonth()+N)},function(L,N){return N.getMonth()-L.getMonth()+12*(N.getFullYear()-L.getFullYear())},function(L){return L.getMonth()});const LW=yW;var ote=yW.range,_L=1e3,wm=6e4,VL=36e5,xW=864e5,EW=6048e5;function ym(L){return rd(function(N){N.setDate(N.getDate()-(N.getDay()+7-L)%7),N.setHours(0,0,0,0)},function(N,Q){N.setDate(N.getDate()+7*Q)},function(N,Q){return(Q-N-(Q.getTimezoneOffset()-N.getTimezoneOffset())*wm)/EW})}var ZA=ym(0),qA=ym(1),SW=ym(2),MW=ym(3),m3=ym(4),TW=ym(5),DW=ym(6),jW=ZA.range,rte=qA.range,lte=SW.range,Bk=MW.range,OW=m3.range,Nk=TW.range,ate=DW.range,pW=rd(function(L){L.setHours(0,0,0,0)},function(L,N){L.setDate(L.getDate()+N)},function(L,N){return(N-L-(N.getTimezoneOffset()-L.getTimezoneOffset())*wm)/xW},function(L){return L.getDate()-1});const b3=pW;var PW=pW.range,Pj=rd(function(L){L.setTime(L-L.getMilliseconds()-L.getSeconds()*_L-L.getMinutes()*wm)},function(L,N){L.setTime(+L+N*VL)},function(L,N){return(N-L)/VL},function(L){return L.getHours()});const Ij=Pj;var ste=Pj.range,UL=rd(function(L){L.setTime(L-L.getMilliseconds()-L.getSeconds()*_L)},function(L,N){L.setTime(+L+N*wm)},function(L,N){return(N-L)/wm},function(L){return L.getMinutes()});const Bj=UL;var Nj=UL.range,IW=rd(function(L){L.setTime(L-L.getMilliseconds())},function(L,N){L.setTime(+L+N*_L)},function(L,N){return(N-L)/_L},function(L){return L.getUTCSeconds()});const d5=IW;var f5=IW.range,t0=rd(function(){},function(L,N){L.setTime(+L+N)},function(L,N){return N-L});t0.every=function(L){return L=Math.floor(L),isFinite(L)&&L>0?L>1?rd(function(N){N.setTime(Math.floor(N/L)*L)},function(N,Q){N.setTime(+N+Q*L)},function(N,Q){return(Q-N)/L}):t0:null};const KA=t0;var JA=t0.range;function Rk(L){return rd(function(N){N.setUTCDate(N.getUTCDate()-(N.getUTCDay()+7-L)%7),N.setUTCHours(0,0,0,0)},function(N,Q){N.setUTCDate(N.getUTCDate()+7*Q)},function(N,Q){return(Q-N)/EW})}var $A=Rk(0),A3=Rk(1),Lm=Rk(2),Rj=Rk(3),Ad=Rk(4),yu=Rk(5),xm=Rk(6),GL=$A.range,cte=A3.range,n0=Lm.range,Em=Rj.range,YL=Ad.range,XL=yu.range,Hj=xm.range,QL=rd(function(L){L.setUTCHours(0,0,0,0)},function(L,N){L.setUTCDate(L.getUTCDate()+N)},function(L,N){return(N-L)/xW},function(L){return L.getUTCDate()-1});const ZL=QL;var ute=QL.range,eC=rd(function(L){L.setUTCMonth(0,1),L.setUTCHours(0,0,0,0)},function(L,N){L.setUTCFullYear(L.getUTCFullYear()+N)},function(L,N){return N.getUTCFullYear()-L.getUTCFullYear()},function(L){return L.getUTCFullYear()});eC.every=function(L){return isFinite(L=Math.floor(L))&&L>0?rd(function(N){N.setUTCFullYear(Math.floor(N.getUTCFullYear()/L)*L),N.setUTCMonth(0,1),N.setUTCHours(0,0,0,0)},function(N,Q){N.setUTCFullYear(N.getUTCFullYear()+Q*L)}):null};const Sm=eC;var dte=eC.range;function Wj(L){if(0<=L.y&&L.y<100){var N=new Date(-1,L.m,L.d,L.H,L.M,L.S,L.L);return N.setFullYear(L.y),N}return new Date(L.y,L.m,L.d,L.H,L.M,L.S,L.L)}function h5(L){if(0<=L.y&&L.y<100){var N=new Date(Date.UTC(-1,L.m,L.d,L.H,L.M,L.S,L.L));return N.setUTCFullYear(L.y),N}return new Date(Date.UTC(L.y,L.m,L.d,L.H,L.M,L.S,L.L))}function k5(L,N,Q){return{y:L,m:N,d:Q,H:0,M:0,S:0,L:0}}function BW(L){var N=L.dateTime,Q=L.date,q=L.time,de=L.periods,ve=L.days,Se=L.shortDays,Ee=L.months,Oe=L.shortMonths,Ve=g5(de),it=Lu(de),vt=g5(ve),nt=Lu(ve),pt=g5(Se),Nt=Lu(Se),Jt=g5(Ee),Kt=Lu(Ee),Vt=g5(Oe),kn=Lu(Oe),cn={a:function(hi){return Se[hi.getDay()]},A:function(hi){return ve[hi.getDay()]},b:function(hi){return Oe[hi.getMonth()]},B:function(hi){return Ee[hi.getMonth()]},c:null,d:Zr,e:Zr,f:_j,g:Lte,G:xte,H:zW,I:ds,j:Jl,L:vf,m:vte,M:mte,p:function(hi){return de[+(hi.getHours()>=12)]},q:function(hi){return 1+~~(hi.getMonth()/3)},Q:lC,s:i0,S:Vj,u:bte,U:Ate,V:Cte,w:wte,W:Uj,x:null,X:null,y:yte,Y:Gj,Z:Ete,"%":Kj},Dn={a:function(hi){return Se[hi.getUTCDay()]},A:function(hi){return ve[hi.getUTCDay()]},b:function(hi){return Oe[hi.getUTCMonth()]},B:function(hi){return Ee[hi.getUTCMonth()]},c:null,d:Fk,e:Fk,f:Ste,g:ox,G:pte,H:Yj,I:Xj,j:Qj,L:Dm,m:Mte,M:Tte,p:function(hi){return de[+(hi.getUTCHours()>=12)]},q:function(hi){return 1+~~(hi.getUTCMonth()/3)},Q:lC,s:i0,S:Dte,u:FW,U:i2,V:_W,w:qj,W:ix,x:null,X:null,y:jte,Y:Ote,Z:VW,"%":Kj},ui={a:function(hi,Ji,Tn){var Xn=pt.exec(Ji.slice(Tn));return Xn?(hi.w=Nt[Xn[0].toLowerCase()],Tn+Xn[0].length):-1},A:function(hi,Ji,Tn){var Xn=vt.exec(Ji.slice(Tn));return Xn?(hi.w=nt[Xn[0].toLowerCase()],Tn+Xn[0].length):-1},b:function(hi,Ji,Tn){var Xn=Vt.exec(Ji.slice(Tn));return Xn?(hi.m=kn[Xn[0].toLowerCase()],Tn+Xn[0].length):-1},B:function(hi,Ji,Tn){var Xn=Jt.exec(Ji.slice(Tn));return Xn?(hi.m=Kt[Xn[0].toLowerCase()],Tn+Xn[0].length):-1},c:function(hi,Ji,Tn){return wo(hi,N,Ji,Tn)},d:oC,e:oC,f:zk,g:nC,G:Wk,H:Fj,I:Fj,j:ex,L:gte,m:$L,M:HW,p:function(hi,Ji,Tn){var Xn=Ve.exec(Ji.slice(Tn));return Xn?(hi.p=it[Xn[0].toLowerCase()],Tn+Xn[0].length):-1},q:iC,Q:ir,s:rC,S:tx,u:JL,U:hte,V:kte,w:Oa,W:da,x:function(hi,Ji,Tn){return wo(hi,Q,Ji,Tn)},X:function(hi,Ji,Tn){return wo(hi,q,Ji,Tn)},y:nC,Y:Wk,Z:RW,"%":WW};function Si(hi,Ji){return function(Tn){var Xn,Wi,Pi,Ui=[],or=-1,wr=0,bl=hi.length;for(Tn instanceof Date||(Tn=new Date(+Tn));++or53)return null;"w"in Pi||(Pi.w=1),"Z"in Pi?(Wi=(Xn=h5(k5(Pi.y,0,1))).getUTCDay(),Xn=Wi>4||Wi===0?A3.ceil(Xn):A3(Xn),Xn=ZL.offset(Xn,7*(Pi.V-1)),Pi.y=Xn.getUTCFullYear(),Pi.m=Xn.getUTCMonth(),Pi.d=Xn.getUTCDate()+(Pi.w+6)%7):(Wi=(Xn=Wj(k5(Pi.y,0,1))).getDay(),Xn=Wi>4||Wi===0?qA.ceil(Xn):qA(Xn),Xn=b3.offset(Xn,7*(Pi.V-1)),Pi.y=Xn.getFullYear(),Pi.m=Xn.getMonth(),Pi.d=Xn.getDate()+(Pi.w+6)%7)}else("W"in Pi||"U"in Pi)&&("w"in Pi||(Pi.w="u"in Pi?Pi.u%7:"W"in Pi?1:0),Wi="Z"in Pi?h5(k5(Pi.y,0,1)).getUTCDay():Wj(k5(Pi.y,0,1)).getDay(),Pi.m=0,Pi.d="W"in Pi?(Pi.w+6)%7+7*Pi.W-(Wi+5)%7:Pi.w+7*Pi.U-(Wi+6)%7);return"Z"in Pi?(Pi.H+=Pi.Z/100|0,Pi.M+=Pi.Z%100,h5(Pi)):Wj(Pi)}}function wo(hi,Ji,Tn,Xn){for(var Wi,Pi,Ui=0,or=Ji.length,wr=Tn.length;Ui=wr)return-1;if((Wi=Ji.charCodeAt(Ui++))===37){if(Wi=Ji.charAt(Ui++),!(Pi=ui[Wi in zj?Ji.charAt(Ui++):Wi])||(Xn=Pi(hi,Tn,Xn))<0)return-1}else if(Wi!=Tn.charCodeAt(Xn++))return-1}return Xn}return cn.x=Si(Q,cn),cn.X=Si(q,cn),cn.c=Si(N,cn),Dn.x=Si(Q,Dn),Dn.X=Si(q,Dn),Dn.c=Si(N,Dn),{format:function(hi){var Ji=Si(hi+="",cn);return Ji.toString=function(){return hi},Ji},parse:function(hi){var Ji=Bi(hi+="",!1);return Ji.toString=function(){return hi},Ji},utcFormat:function(hi){var Ji=Si(hi+="",Dn);return Ji.toString=function(){return hi},Ji},utcParse:function(hi){var Ji=Bi(hi+="",!0);return Ji.toString=function(){return hi},Ji}}}var Mm,qL,Tm,KL,tC,zj={"-":"",_:" ",0:"0"},ld=/^\s*\d+/,NW=/^%/,Hk=/[\\^$*+?|[\]().{}]/g;function ls(L,N,Q){var q=L<0?"-":"",de=(q?-L:L)+"",ve=de.length;return q+(ve68?1900:2e3),Q+q[0].length):-1}function RW(L,N,Q){var q=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(N.slice(Q,Q+6));return q?(L.Z=q[1]?0:-(q[2]+(q[3]||"00")),Q+q[0].length):-1}function iC(L,N,Q){var q=ld.exec(N.slice(Q,Q+1));return q?(L.q=3*q[0]-3,Q+q[0].length):-1}function $L(L,N,Q){var q=ld.exec(N.slice(Q,Q+2));return q?(L.m=q[0]-1,Q+q[0].length):-1}function oC(L,N,Q){var q=ld.exec(N.slice(Q,Q+2));return q?(L.d=+q[0],Q+q[0].length):-1}function ex(L,N,Q){var q=ld.exec(N.slice(Q,Q+3));return q?(L.m=0,L.d=+q[0],Q+q[0].length):-1}function Fj(L,N,Q){var q=ld.exec(N.slice(Q,Q+2));return q?(L.H=+q[0],Q+q[0].length):-1}function HW(L,N,Q){var q=ld.exec(N.slice(Q,Q+2));return q?(L.M=+q[0],Q+q[0].length):-1}function tx(L,N,Q){var q=ld.exec(N.slice(Q,Q+2));return q?(L.S=+q[0],Q+q[0].length):-1}function gte(L,N,Q){var q=ld.exec(N.slice(Q,Q+3));return q?(L.L=+q[0],Q+q[0].length):-1}function zk(L,N,Q){var q=ld.exec(N.slice(Q,Q+6));return q?(L.L=Math.floor(q[0]/1e3),Q+q[0].length):-1}function WW(L,N,Q){var q=NW.exec(N.slice(Q,Q+1));return q?Q+q[0].length:-1}function ir(L,N,Q){var q=ld.exec(N.slice(Q));return q?(L.Q=+q[0],Q+q[0].length):-1}function rC(L,N,Q){var q=ld.exec(N.slice(Q));return q?(L.s=+q[0],Q+q[0].length):-1}function Zr(L,N){return ls(L.getDate(),N,2)}function zW(L,N){return ls(L.getHours(),N,2)}function ds(L,N){return ls(L.getHours()%12||12,N,2)}function Jl(L,N){return ls(1+b3.count(Cm(L),L),N,3)}function vf(L,N){return ls(L.getMilliseconds(),N,3)}function _j(L,N){return vf(L,N)+"000"}function vte(L,N){return ls(L.getMonth()+1,N,2)}function mte(L,N){return ls(L.getMinutes(),N,2)}function Vj(L,N){return ls(L.getSeconds(),N,2)}function bte(L){var N=L.getDay();return N===0?7:N}function Ate(L,N){return ls(ZA.count(Cm(L)-1,L),N,2)}function nx(L){var N=L.getDay();return N>=4||N===0?m3(L):m3.ceil(L)}function Cte(L,N){return L=nx(L),ls(m3.count(Cm(L),L)+(Cm(L).getDay()===4),N,2)}function wte(L){return L.getDay()}function Uj(L,N){return ls(qA.count(Cm(L)-1,L),N,2)}function yte(L,N){return ls(L.getFullYear()%100,N,2)}function Lte(L,N){return ls((L=nx(L)).getFullYear()%100,N,2)}function Gj(L,N){return ls(L.getFullYear()%1e4,N,4)}function xte(L,N){var Q=L.getDay();return ls((L=Q>=4||Q===0?m3(L):m3.ceil(L)).getFullYear()%1e4,N,4)}function Ete(L){var N=L.getTimezoneOffset();return(N>0?"-":(N*=-1,"+"))+ls(N/60|0,"0",2)+ls(N%60,"0",2)}function Fk(L,N){return ls(L.getUTCDate(),N,2)}function Yj(L,N){return ls(L.getUTCHours(),N,2)}function Xj(L,N){return ls(L.getUTCHours()%12||12,N,2)}function Qj(L,N){return ls(1+ZL.count(Sm(L),L),N,3)}function Dm(L,N){return ls(L.getUTCMilliseconds(),N,3)}function Ste(L,N){return Dm(L,N)+"000"}function Mte(L,N){return ls(L.getUTCMonth()+1,N,2)}function Tte(L,N){return ls(L.getUTCMinutes(),N,2)}function Dte(L,N){return ls(L.getUTCSeconds(),N,2)}function FW(L){var N=L.getUTCDay();return N===0?7:N}function i2(L,N){return ls($A.count(Sm(L)-1,L),N,2)}function Zj(L){var N=L.getUTCDay();return N>=4||N===0?Ad(L):Ad.ceil(L)}function _W(L,N){return L=Zj(L),ls(Ad.count(Sm(L),L)+(Sm(L).getUTCDay()===4),N,2)}function qj(L){return L.getUTCDay()}function ix(L,N){return ls(A3.count(Sm(L)-1,L),N,2)}function jte(L,N){return ls(L.getUTCFullYear()%100,N,2)}function ox(L,N){return ls((L=Zj(L)).getUTCFullYear()%100,N,2)}function Ote(L,N){return ls(L.getUTCFullYear()%1e4,N,4)}function pte(L,N){var Q=L.getUTCDay();return ls((L=Q>=4||Q===0?Ad(L):Ad.ceil(L)).getUTCFullYear()%1e4,N,4)}function VW(){return"+0000"}function Kj(){return"%"}function lC(L){return+L}function i0(L){return Math.floor(+L/1e3)}function jm(L){return Mm=BW(L),qL=Mm.format,Tm=Mm.parse,KL=Mm.utcFormat,tC=Mm.utcParse,Mm}jm({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 u4=31536e6;function UW(L){return new Date(L)}function GW(L){return L instanceof Date?+L:+new Date(+L)}function rx(L,N,Q,q,de,ve,Se,Ee,Oe){var Ve=hW(wu,wu),it=Ve.invert,vt=Ve.domain,nt=Oe(".%L"),pt=Oe(":%S"),Nt=Oe("%I:%M"),Jt=Oe("%I %p"),Kt=Oe("%a %d"),Vt=Oe("%b %d"),kn=Oe("%B"),cn=Oe("%Y"),Dn=[[Se,1,1e3],[Se,5,5e3],[Se,15,15e3],[Se,30,3e4],[ve,1,6e4],[ve,5,3e5],[ve,15,9e5],[ve,30,18e5],[de,1,36e5],[de,3,108e5],[de,6,216e5],[de,12,432e5],[q,1,864e5],[q,2,1728e5],[Q,1,6048e5],[N,1,2592e6],[N,3,7776e6],[L,1,u4]];function ui(Bi){return(Se(Bi)1)&&(L-=Math.floor(L));var N=Math.abs(L-.5);return v4.h=360*L-100,v4.s=1.5-1.5*N,v4.l=.8-.9*N,v4+""}var mC=lc(),uz=Math.PI/3,L5=2*Math.PI/3;function dz(L){var N;return L=(.5-L)*Math.PI,mC.r=255*(N=Math.sin(L))*N,mC.g=255*(N=Math.sin(L+uz))*N,mC.b=255*(N=Math.sin(L+L5))*N,mC+""}function Yte(L){return L=Math.max(0,Math.min(1,L)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+L*(1172.33-L*(10793.56-L*(33300.12-L*(38394.49-14825.05*L)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+L*(557.33+L*(1225.33-L*(3574.96-L*(1073.77+707.56*L)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+L*(3211.1-L*(15327.97-L*(27814-L*(22569.18-6838.66*L)))))))+")"}function bC(L){var N=L.length;return function(Q){return L[Math.max(0,Math.min(N-1,Math.floor(Q*N)))]}}const vx=bC(ga("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var Kd=bC(ga("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Xte=bC(ga("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),mx=bC(ga("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Qte(L){return nl(Wt(L).call(document.documentElement))}var fz=0;function hz(){return new AC}function AC(){this._="@"+(++fz).toString(36)}function kz(L){return typeof L=="string"?new qo([document.querySelectorAll(L)],[document.documentElement]):new qo([L??[]],Tr)}function gz(L,N){N==null&&(N=If().touches);for(var Q=0,q=N?N.length:0,de=new Array(q);Q1?0:L<-1?Uk:Math.acos(L)}function Cx(L){return L>=1?CC:L<=-1?-CC:Math.asin(L)}function dO(L){return L.innerRadius}function Yk(L){return L.outerRadius}function wx(L){return L.startAngle}function Kte(L){return L.endAngle}function vz(L){return L&&L.padAngle}function fO(L,N,Q,q,de,ve,Se,Ee){var Oe=Q-L,Ve=q-N,it=Se-de,vt=Ee-ve,nt=vt*Oe-it*Ve;if(!(nt*ntPi*Pi+Ui*Ui&&(wo=Ji,hi=Tn),{cx:wo,cy:hi,x01:-it,y01:-vt,x11:wo*(de/ui-1),y11:hi*(de/ui-1)}}function Om(){var L=dO,N=Yk,Q=va(0),q=null,de=wx,ve=Kte,Se=vz,Ee=null;function Oe(){var Ve,it,vt=+L.apply(this,arguments),nt=+N.apply(this,arguments),pt=de.apply(this,arguments)-CC,Nt=ve.apply(this,arguments)-CC,Jt=bx(Nt-pt),Kt=Nt>pt;if(Ee||(Ee=Ve=Mn()),ntma)if(Jt>Gk-ma)Ee.moveTo(nt*zu(pt),nt*wd(pt)),Ee.arc(0,0,nt,pt,Nt,!Kt),vt>ma&&(Ee.moveTo(vt*zu(Nt),vt*wd(Nt)),Ee.arc(0,0,vt,Nt,pt,Kt));else{var Vt,kn,cn=pt,Dn=Nt,ui=pt,Si=Nt,Bi=Jt,wo=Jt,hi=Se.apply(this,arguments)/2,Ji=hi>ma&&(q?+q.apply(this,arguments):d1(vt*vt+nt*nt)),Tn=Ax(bx(nt-vt)/2,+Q.apply(this,arguments)),Xn=Tn,Wi=Tn;if(Ji>ma){var Pi=Cx(Ji/vt*wd(hi)),Ui=Cx(Ji/nt*wd(hi));(Bi-=2*Pi)>ma?(ui+=Pi*=Kt?1:-1,Si-=Pi):(Bi=0,ui=Si=(pt+Nt)/2),(wo-=2*Ui)>ma?(cn+=Ui*=Kt?1:-1,Dn-=Ui):(wo=0,cn=Dn=(pt+Nt)/2)}var or=nt*zu(cn),wr=nt*wd(cn),bl=vt*zu(Si),Li=vt*wd(Si);if(Tn>ma){var No,Nr=nt*zu(Dn),za=nt*wd(Dn),Tl=vt*zu(ui),xl=vt*wd(ui);if(Jtma?Wi>ma?(Vt=Tc(Tl,xl,or,wr,nt,Wi,Kt),kn=Tc(Nr,za,bl,Li,nt,Wi,Kt),Ee.moveTo(Vt.cx+Vt.x01,Vt.cy+Vt.y01),Wima&&Bi>ma?Xn>ma?(Vt=Tc(bl,Li,Nr,za,vt,-Xn,Kt),kn=Tc(or,wr,Tl,xl,vt,-Xn,Kt),Ee.lineTo(Vt.cx+Vt.x01,Vt.cy+Vt.y01),Xn=nt;--pt)Ee.point(kn[pt],cn[pt]);Ee.lineEnd(),Ee.areaEnd()}Vt&&(kn[vt]=+L(Nt,vt,it),cn[vt]=+Q(Nt,vt,it),Ee.point(N?+N(Nt,vt,it):kn[vt],q?+q(Nt,vt,it):cn[vt]))}if(Jt)return Ee=null,Jt+""||null}function Ve(){return yC().defined(de).curve(Se).context(ve)}return Oe.x=function(it){return arguments.length?(L=typeof it=="function"?it:va(+it),N=null,Oe):L},Oe.x0=function(it){return arguments.length?(L=typeof it=="function"?it:va(+it),Oe):L},Oe.x1=function(it){return arguments.length?(N=it==null?null:typeof it=="function"?it:va(+it),Oe):N},Oe.y=function(it){return arguments.length?(Q=typeof it=="function"?it:va(+it),q=null,Oe):Q},Oe.y0=function(it){return arguments.length?(Q=typeof it=="function"?it:va(+it),Oe):Q},Oe.y1=function(it){return arguments.length?(q=it==null?null:typeof it=="function"?it:va(+it),Oe):q},Oe.lineX0=Oe.lineY0=function(){return Ve().x(L).y(Q)},Oe.lineY1=function(){return Ve().x(L).y(q)},Oe.lineX1=function(){return Ve().x(N).y(Q)},Oe.defined=function(it){return arguments.length?(de=typeof it=="function"?it:va(!!it),Oe):de},Oe.curve=function(it){return arguments.length?(Se=it,ve!=null&&(Ee=Se(ve)),Oe):Se},Oe.context=function(it){return arguments.length?(it==null?ve=Ee=null:Ee=Se(ve=it),Oe):ve},Oe}function Lx(L,N){return NL?1:N>=L?0:NaN}function xx(L){return L}function Ex(){var L=xx,N=Lx,Q=null,q=va(0),de=va(Gk),ve=va(0);function Se(Ee){var Oe,Ve,it,vt,nt,pt=Ee.length,Nt=0,Jt=new Array(pt),Kt=new Array(pt),Vt=+q.apply(this,arguments),kn=Math.min(Gk,Math.max(-Gk,de.apply(this,arguments)-Vt)),cn=Math.min(Math.abs(kn)/pt,ve.apply(this,arguments)),Dn=cn*(kn<0?-1:1);for(Oe=0;Oe0&&(Nt+=nt);for(N!=null?Jt.sort(function(ui,Si){return N(Kt[ui],Kt[Si])}):Q!=null&&Jt.sort(function(ui,Si){return Q(Ee[ui],Ee[Si])}),Oe=0,it=Nt?(kn-pt*Dn)/Nt:0;Oe0?nt*it:0)+Dn,Kt[Ve]={data:Ee[Ve],index:Oe,value:nt,startAngle:Vt,endAngle:vt,padAngle:cn};return Kt}return Se.value=function(Ee){return arguments.length?(L=typeof Ee=="function"?Ee:va(+Ee),Se):L},Se.sortValues=function(Ee){return arguments.length?(N=Ee,Q=null,Se):N},Se.sort=function(Ee){return arguments.length?(Q=Ee,N=null,Se):Q},Se.startAngle=function(Ee){return arguments.length?(q=typeof Ee=="function"?Ee:va(+Ee),Se):q},Se.endAngle=function(Ee){return arguments.length?(de=typeof Ee=="function"?Ee:va(+Ee),Se):de},Se.padAngle=function(Ee){return arguments.length?(ve=typeof Ee=="function"?Ee:va(+Ee),Se):ve},Se}pm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(L,N){switch(L=+L,N=+N,this._point){case 0:this._point=1,this._line?this._context.lineTo(L,N):this._context.moveTo(L,N);break;case 1:this._point=2;default:this._context.lineTo(L,N)}}};var mz=Mx(f1);function Sx(L){this._curve=L}function Mx(L){function N(Q){return new Sx(L(Q))}return N._curve=L,N}function LC(L){var N=L.curve;return L.angle=L.x,delete L.x,L.radius=L.y,delete L.y,L.curve=function(Q){return arguments.length?N(Mx(Q)):N()._curve},L}function Tx(){return LC(yC().curve(mz))}function hO(){var L=yx().curve(mz),N=L.curve,Q=L.lineX0,q=L.lineX1,de=L.lineY0,ve=L.lineY1;return L.angle=L.x,delete L.x,L.startAngle=L.x0,delete L.x0,L.endAngle=L.x1,delete L.x1,L.radius=L.y,delete L.y,L.innerRadius=L.y0,delete L.y0,L.outerRadius=L.y1,delete L.y1,L.lineStartAngle=function(){return LC(Q())},delete L.lineX0,L.lineEndAngle=function(){return LC(q())},delete L.lineX1,L.lineInnerRadius=function(){return LC(de())},delete L.lineY0,L.lineOuterRadius=function(){return LC(ve())},delete L.lineY1,L.curve=function(Se){return arguments.length?N(Mx(Se)):N()._curve},L}function xC(L,N){return[(N=+N)*Math.cos(L-=Math.PI/2),N*Math.sin(L)]}Sx.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(L,N){this._curve.point(N*Math.sin(L),N*-Math.cos(L))}};var Dx=Array.prototype.slice;function bz(L){return L.source}function Wa(L){return L.target}function kO(L){var N=bz,Q=Wa,q=x5,de=wC,ve=null;function Se(){var Ee,Oe=Dx.call(arguments),Ve=N.apply(this,Oe),it=Q.apply(this,Oe);if(ve||(ve=Ee=Mn()),L(ve,+q.apply(this,(Oe[0]=Ve,Oe)),+de.apply(this,Oe),+q.apply(this,(Oe[0]=it,Oe)),+de.apply(this,Oe)),Ee)return ve=null,Ee+""||null}return Se.source=function(Ee){return arguments.length?(N=Ee,Se):N},Se.target=function(Ee){return arguments.length?(Q=Ee,Se):Q},Se.x=function(Ee){return arguments.length?(q=typeof Ee=="function"?Ee:va(+Ee),Se):q},Se.y=function(Ee){return arguments.length?(de=typeof Ee=="function"?Ee:va(+Ee),Se):de},Se.context=function(Ee){return arguments.length?(ve=Ee??null,Se):ve},Se}function jx(L,N,Q,q,de){L.moveTo(N,Q),L.bezierCurveTo(N=(N+q)/2,Q,N,de,q,de)}function Jte(L,N,Q,q,de){L.moveTo(N,Q),L.bezierCurveTo(N,Q=(Q+de)/2,q,Q,q,de)}function h1(L,N,Q,q,de){var ve=xC(N,Q),Se=xC(N,Q=(Q+de)/2),Ee=xC(q,Q),Oe=xC(q,de);L.moveTo(ve[0],ve[1]),L.bezierCurveTo(Se[0],Se[1],Ee[0],Ee[1],Oe[0],Oe[1])}function $te(){return kO(jx)}function Az(){return kO(Jte)}function ene(){var L=kO(h1);return L.angle=L.x,delete L.x,L.radius=L.y,delete L.y,L}const gO={draw:function(L,N){var Q=Math.sqrt(N/Uk);L.moveTo(Q,0),L.arc(0,0,Q,0,Gk)}},Cz={draw:function(L,N){var Q=Math.sqrt(N/5)/2;L.moveTo(-3*Q,-Q),L.lineTo(-Q,-Q),L.lineTo(-Q,-3*Q),L.lineTo(Q,-3*Q),L.lineTo(Q,-Q),L.lineTo(3*Q,-Q),L.lineTo(3*Q,Q),L.lineTo(Q,Q),L.lineTo(Q,3*Q),L.lineTo(-Q,3*Q),L.lineTo(-Q,Q),L.lineTo(-3*Q,Q),L.closePath()}};var wz=Math.sqrt(1/3),tne=2*wz;const yz={draw:function(L,N){var Q=Math.sqrt(N/tne),q=Q*wz;L.moveTo(0,-Q),L.lineTo(q,0),L.lineTo(0,Q),L.lineTo(-q,0),L.closePath()}};var Lz=Math.sin(Uk/10)/Math.sin(7*Uk/10),nne=Math.sin(Gk/10)*Lz,ine=-Math.cos(Gk/10)*Lz;const xz={draw:function(L,N){var Q=Math.sqrt(.8908130915292852*N),q=nne*Q,de=ine*Q;L.moveTo(0,-Q),L.lineTo(q,de);for(var ve=1;ve<5;++ve){var Se=Gk*ve/5,Ee=Math.cos(Se),Oe=Math.sin(Se);L.lineTo(Oe*Q,-Ee*Q),L.lineTo(Ee*q-Oe*de,Oe*q+Ee*de)}L.closePath()}},Ez={draw:function(L,N){var Q=Math.sqrt(N),q=-Q/2;L.rect(q,q,Q,Q)}};var l0=Math.sqrt(3);const Sz={draw:function(L,N){var Q=-Math.sqrt(N/(3*l0));L.moveTo(0,2*Q),L.lineTo(-l0*Q,-Q),L.lineTo(l0*Q,-Q),L.closePath()}};var k1=-.5,g1=Math.sqrt(3)/2,vO=1/Math.sqrt(12),Mz=3*(vO/2+1);const mO={draw:function(L,N){var Q=Math.sqrt(N/Mz),q=Q/2,de=Q*vO,ve=q,Se=Q*vO+Q,Ee=-ve,Oe=Se;L.moveTo(q,de),L.lineTo(ve,Se),L.lineTo(Ee,Oe),L.lineTo(k1*q-g1*de,g1*q+k1*de),L.lineTo(k1*ve-g1*Se,g1*ve+k1*Se),L.lineTo(k1*Ee-g1*Oe,g1*Ee+k1*Oe),L.lineTo(k1*q+g1*de,k1*de-g1*q),L.lineTo(k1*ve+g1*Se,k1*Se-g1*ve),L.lineTo(k1*Ee+g1*Oe,k1*Oe-g1*Ee),L.closePath()}};var one=[gO,Cz,yz,Ez,xz,Sz,mO];function bO(){var L=va(gO),N=va(64),Q=null;function q(){var de;if(Q||(Q=de=Mn()),L.apply(this,arguments).draw(Q,+N.apply(this,arguments)),de)return Q=null,de+""||null}return q.type=function(de){return arguments.length?(L=typeof de=="function"?de:va(de),q):L},q.size=function(de){return arguments.length?(N=typeof de=="function"?de:va(+de),q):N},q.context=function(de){return arguments.length?(Q=de??null,q):Q},q}function m4(){}function Pm(L,N,Q){L._context.bezierCurveTo((2*L._x0+L._x1)/3,(2*L._y0+L._y1)/3,(L._x0+2*L._x1)/3,(L._y0+2*L._y1)/3,(L._x0+4*L._x1+N)/6,(L._y0+4*L._y1+Q)/6)}function v1(L){this._context=L}function AO(L){return new v1(L)}function Ox(L){this._context=L}function EC(L){return new Ox(L)}function E5(L){this._context=L}function CO(L){return new E5(L)}function px(L,N){this._basis=new v1(L),this._beta=N}v1.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:Pm(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(L,N){switch(L=+L,N=+N,this._point){case 0:this._point=1,this._line?this._context.lineTo(L,N):this._context.moveTo(L,N);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:Pm(this,L,N)}this._x0=this._x1,this._x1=L,this._y0=this._y1,this._y1=N}},Ox.prototype={areaStart:m4,areaEnd:m4,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(L,N){switch(L=+L,N=+N,this._point){case 0:this._point=1,this._x2=L,this._y2=N;break;case 1:this._point=2,this._x3=L,this._y3=N;break;case 2:this._point=3,this._x4=L,this._y4=N,this._context.moveTo((this._x0+4*this._x1+L)/6,(this._y0+4*this._y1+N)/6);break;default:Pm(this,L,N)}this._x0=this._x1,this._x1=L,this._y0=this._y1,this._y1=N}},E5.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(L,N){switch(L=+L,N=+N,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var Q=(this._x0+4*this._x1+L)/6,q=(this._y0+4*this._y1+N)/6;this._line?this._context.lineTo(Q,q):this._context.moveTo(Q,q);break;case 3:this._point=4;default:Pm(this,L,N)}this._x0=this._x1,this._x1=L,this._y0=this._y1,this._y1=N}},px.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var L=this._x,N=this._y,Q=L.length-1;if(Q>0)for(var q,de=L[0],ve=N[0],Se=L[Q]-de,Ee=N[Q]-ve,Oe=-1;++Oe<=Q;)q=Oe/Q,this._basis.point(this._beta*L[Oe]+(1-this._beta)*(de+q*Se),this._beta*N[Oe]+(1-this._beta)*(ve+q*Ee));this._x=this._y=null,this._basis.lineEnd()},point:function(L,N){this._x.push(+L),this._y.push(+N)}};const wO=function L(N){function Q(q){return N===1?new v1(q):new px(q,N)}return Q.beta=function(q){return L(+q)},Q}(.85);function Xk(L,N,Q){L._context.bezierCurveTo(L._x1+L._k*(L._x2-L._x0),L._y1+L._k*(L._y2-L._y0),L._x2+L._k*(L._x1-N),L._y2+L._k*(L._y1-Q),L._x2,L._y2)}function Px(L,N){this._context=L,this._k=(1-N)/6}Px.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:Xk(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(L,N){switch(L=+L,N=+N,this._point){case 0:this._point=1,this._line?this._context.lineTo(L,N):this._context.moveTo(L,N);break;case 1:this._point=2,this._x1=L,this._y1=N;break;case 2:this._point=3;default:Xk(this,L,N)}this._x0=this._x1,this._x1=this._x2,this._x2=L,this._y0=this._y1,this._y1=this._y2,this._y2=N}};const Ix=function L(N){function Q(q){return new Px(q,N)}return Q.tension=function(q){return L(+q)},Q}(0);function Im(L,N){this._context=L,this._k=(1-N)/6}Im.prototype={areaStart:m4,areaEnd:m4,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(L,N){switch(L=+L,N=+N,this._point){case 0:this._point=1,this._x3=L,this._y3=N;break;case 1:this._point=2,this._context.moveTo(this._x4=L,this._y4=N);break;case 2:this._point=3,this._x5=L,this._y5=N;break;default:Xk(this,L,N)}this._x0=this._x1,this._x1=this._x2,this._x2=L,this._y0=this._y1,this._y1=this._y2,this._y2=N}};const yO=function L(N){function Q(q){return new Im(q,N)}return Q.tension=function(q){return L(+q)},Q}(0);function SC(L,N){this._context=L,this._k=(1-N)/6}SC.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(L,N){switch(L=+L,N=+N,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:Xk(this,L,N)}this._x0=this._x1,this._x1=this._x2,this._x2=L,this._y0=this._y1,this._y1=this._y2,this._y2=N}};const Tz=function L(N){function Q(q){return new SC(q,N)}return Q.tension=function(q){return L(+q)},Q}(0);function Bx(L,N,Q){var q=L._x1,de=L._y1,ve=L._x2,Se=L._y2;if(L._l01_a>ma){var Ee=2*L._l01_2a+3*L._l01_a*L._l12_a+L._l12_2a,Oe=3*L._l01_a*(L._l01_a+L._l12_a);q=(q*Ee-L._x0*L._l12_2a+L._x2*L._l01_2a)/Oe,de=(de*Ee-L._y0*L._l12_2a+L._y2*L._l01_2a)/Oe}if(L._l23_a>ma){var Ve=2*L._l23_2a+3*L._l23_a*L._l12_a+L._l12_2a,it=3*L._l23_a*(L._l23_a+L._l12_a);ve=(ve*Ve+L._x1*L._l23_2a-N*L._l12_2a)/it,Se=(Se*Ve+L._y1*L._l23_2a-Q*L._l12_2a)/it}L._context.bezierCurveTo(q,de,ve,Se,L._x2,L._y2)}function Dz(L,N){this._context=L,this._alpha=N}Dz.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||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(L,N){if(L=+L,N=+N,this._point){var Q=this._x2-L,q=this._y2-N;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Q*Q+q*q,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(L,N):this._context.moveTo(L,N);break;case 1:this._point=2;break;case 2:this._point=3;default:Bx(this,L,N)}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=L,this._y0=this._y1,this._y1=this._y2,this._y2=N}};const LO=function L(N){function Q(q){return N?new Dz(q,N):new Px(q,0)}return Q.alpha=function(q){return L(+q)},Q}(.5);function xO(L,N){this._context=L,this._alpha=N}xO.prototype={areaStart:m4,areaEnd:m4,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(L,N){if(L=+L,N=+N,this._point){var Q=this._x2-L,q=this._y2-N;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Q*Q+q*q,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=L,this._y3=N;break;case 1:this._point=2,this._context.moveTo(this._x4=L,this._y4=N);break;case 2:this._point=3,this._x5=L,this._y5=N;break;default:Bx(this,L,N)}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=L,this._y0=this._y1,this._y1=this._y2,this._y2=N}};const jz=function L(N){function Q(q){return N?new xO(q,N):new Im(q,0)}return Q.alpha=function(q){return L(+q)},Q}(.5);function EO(L,N){this._context=L,this._alpha=N}EO.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(L,N){if(L=+L,N=+N,this._point){var Q=this._x2-L,q=this._y2-N;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Q*Q+q*q,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:Bx(this,L,N)}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=L,this._y0=this._y1,this._y1=this._y2,this._y2=N}};const S5=function L(N){function Q(q){return N?new EO(q,N):new SC(q,0)}return Q.alpha=function(q){return L(+q)},Q}(.5);function xu(L){this._context=L}function Oz(L){return new xu(L)}function Bm(L){return L<0?-1:1}function SO(L,N,Q){var q=L._x1-L._x0,de=N-L._x1,ve=(L._y1-L._y0)/(q||de<0&&-0),Se=(Q-L._y1)/(de||q<0&&-0),Ee=(ve*de+Se*q)/(q+de);return(Bm(ve)+Bm(Se))*Math.min(Math.abs(ve),Math.abs(Se),.5*Math.abs(Ee))||0}function MO(L,N){var Q=L._x1-L._x0;return Q?(3*(L._y1-L._y0)/Q-N)/2:N}function Nx(L,N,Q){var q=L._x0,de=L._y0,ve=L._x1,Se=L._y1,Ee=(ve-q)/3;L._context.bezierCurveTo(q+Ee,de+Ee*N,ve-Ee,Se-Ee*Q,ve,Se)}function Qk(L){this._context=L}function TO(L){this._context=new Zk(L)}function Zk(L){this._context=L}function m1(L){return new Qk(L)}function rne(L){return new TO(L)}function pz(L){this._context=L}function DO(L){var N,Q,q=L.length-1,de=new Array(q),ve=new Array(q),Se=new Array(q);for(de[0]=0,ve[0]=2,Se[0]=L[0]+2*L[1],N=1;N=0;--N)de[N]=(Se[N]-de[N+1])/ve[N];for(ve[q-1]=(L[q]+de[q-1])/2,N=0;N1)for(var Q,q,de,ve=1,Se=L[N[0]],Ee=Se.length;ve=0;)Q[N]=N;return Q}function bf(L,N){return L[N]}function a0(){var L=va([]),N=qk,Q=$d,q=bf;function de(ve){var Se,Ee,Oe=L.apply(this,arguments),Ve=ve.length,it=Oe.length,vt=new Array(it);for(Se=0;Se0){for(var Q,q,de,ve=0,Se=L[0].length;ve0)for(var Q,q,de,ve,Se,Ee,Oe=0,Ve=L[N[0]].length;Oe0?(q[0]=ve,q[1]=ve+=de):de<0?(q[1]=Se,q[0]=Se+=de):(q[0]=0,q[1]=de)}function Bz(L,N){if((Q=L.length)>0){for(var Q,q=0,de=L[N[0]],ve=de.length;q0&&(q=(Q=L[N[0]]).length)>0){for(var Q,q,de,ve=0,Se=1;Seve&&(ve=N,q=Q);return q}function OO(L){var N=L.map(pO);return qk(L).sort(function(Q,q){return N[Q]-N[q]})}function pO(L){for(var N,Q=0,q=-1,de=L.length;++q=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(L,N){switch(L=+L,N=+N,this._point){case 0:this._point=1,this._line?this._context.lineTo(L,N):this._context.moveTo(L,N);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,N),this._context.lineTo(L,N);else{var Q=this._x*(1-this._t)+L*this._t;this._context.lineTo(Q,this._y),this._context.lineTo(Q,N)}}this._x=L,this._y=N}};var IO="%Y-%m-%dT%H:%M:%S.%LZ",TC=Date.prototype.toISOString?function(L){return L.toISOString()}:KL(IO);const yh=TC;var T5=+new Date("2000-01-01T00:00:00.000Z")?function(L){var N=new Date(L);return isNaN(N)?null:N}:tC(IO);const DC=T5;function Wx(L,N,Q){var q=new Ci,de=N;return N==null?(q.restart(L,N,Q),q):(N=+N,Q=Q==null?Ht():+Q,q.restart(function ve(Se){Se+=de,q.restart(ve,de+=N,Q),L(Se)},N,Q),q)}function BO(L){return function(){return L}}function Hz(L){return L[0]}function sne(L){return L[1]}function zx(){this._=null}function jC(L){L.U=L.C=L.L=L.R=L.P=L.N=null}function D5(L,N){var Q=N,q=N.R,de=Q.U;de?de.L===Q?de.L=q:de.R=q:L._=q,q.U=de,Q.U=q,Q.R=q.L,Q.R&&(Q.R.U=Q),q.L=Q}function OC(L,N){var Q=N,q=N.L,de=Q.U;de?de.L===Q?de.L=q:de.R=q:L._=q,q.U=de,Q.U=q,Q.L=q.R,Q.L&&(Q.L.U=Q),q.R=Q}function NO(L){for(;L.L;)L=L.L;return L}zx.prototype={constructor:zx,insert:function(L,N){var Q,q,de;if(L){if(N.P=L,N.N=L.N,L.N&&(L.N.P=N),L.N=N,L.R){for(L=L.R;L.L;)L=L.L;L.L=N}else L.R=N;Q=L}else this._?(L=NO(this._),N.P=null,N.N=L,L.P=L.L=N,Q=L):(N.P=N.N=null,this._=N,Q=null);for(N.L=N.R=null,N.U=Q,N.C=!0,L=N;Q&&Q.C;)Q===(q=Q.U).L?(de=q.R)&&de.C?(Q.C=de.C=!1,q.C=!0,L=q):(L===Q.R&&(D5(this,Q),Q=(L=Q).U),Q.C=!1,q.C=!0,OC(this,q)):(de=q.L)&&de.C?(Q.C=de.C=!1,q.C=!0,L=q):(L===Q.L&&(OC(this,Q),Q=(L=Q).U),Q.C=!1,q.C=!0,D5(this,q)),Q=L.U;this._.C=!1},remove:function(L){L.N&&(L.N.P=L.P),L.P&&(L.P.N=L.N),L.N=L.P=null;var N,Q,q,de=L.U,ve=L.L,Se=L.R;if(Q=ve?Se?NO(Se):ve:Se,de?de.L===L?de.L=Q:de.R=Q:this._=Q,ve&&Se?(q=Q.C,Q.C=L.C,Q.L=ve,ve.U=Q,Q!==Se?(de=Q.U,Q.U=L.U,L=Q.R,de.L=L,Q.R=Se,Se.U=Q):(Q.U=de,de=Q,L=Q.R)):(q=L.C,L=Q),L&&(L.U=de),!q)if(L&&L.C)L.C=!1;else{do{if(L===this._)break;if(L===de.L){if((N=de.R).C&&(N.C=!1,de.C=!0,D5(this,de),N=de.R),N.L&&N.L.C||N.R&&N.R.C){N.R&&N.R.C||(N.L.C=!1,N.C=!0,OC(this,N),N=de.R),N.C=de.C,de.C=N.R.C=!1,D5(this,de),L=this._;break}}else if((N=de.L).C&&(N.C=!1,de.C=!0,OC(this,de),N=de.L),N.L&&N.L.C||N.R&&N.R.C){N.L&&N.L.C||(N.R.C=!1,N.C=!0,D5(this,N),N=de.L),N.C=de.C,de.C=N.L.C=!1,OC(this,de),L=this._;break}N.C=!0,L=de,de=de.U}while(!L.C);L&&(L.C=!1)}}};const RO=zx;function pC(L,N,Q,q){var de=[null,null],ve=Su.push(de)-1;return de.left=L,de.right=N,Q&&Nm(de,L,N,Q),q&&Nm(de,N,L,q),Lh[L.index].halfedges.push(ve),Lh[N.index].halfedges.push(ve),de}function j5(L,N,Q){var q=[N,Q];return q.left=L,q}function Nm(L,N,Q,q){L[0]||L[1]?L.left===Q?L[1]=q:L[0]=q:(L[0]=q,L.left=N,L.right=Q)}function HO(L,N,Q,q,de){var ve,Se=L[0],Ee=L[1],Oe=Se[0],Ve=Se[1],it=0,vt=1,nt=Ee[0]-Oe,pt=Ee[1]-Ve;if(ve=N-Oe,nt||!(ve>0)){if(ve/=nt,nt<0){if(ve0){if(ve>vt)return;ve>it&&(it=ve)}if(ve=q-Oe,nt||!(ve<0)){if(ve/=nt,nt<0){if(ve>vt)return;ve>it&&(it=ve)}else if(nt>0){if(ve0)){if(ve/=pt,pt<0){if(ve0){if(ve>vt)return;ve>it&&(it=ve)}if(ve=de-Ve,pt||!(ve<0)){if(ve/=pt,pt<0){if(ve>vt)return;ve>it&&(it=ve)}else if(pt>0){if(ve0||vt<1)||(it>0&&(L[0]=[Oe+it*nt,Ve+it*pt]),vt<1&&(L[1]=[Oe+vt*nt,Ve+vt*pt]),!0)}}}}}function WO(L,N,Q,q,de){var ve=L[1];if(ve)return!0;var Se,Ee,Oe=L[0],Ve=L.left,it=L.right,vt=Ve[0],nt=Ve[1],pt=it[0],Nt=it[1],Jt=(vt+pt)/2,Kt=(nt+Nt)/2;if(Nt===nt){if(Jt=q)return;if(vt>pt){if(Oe){if(Oe[1]>=de)return}else Oe=[Jt,Q];ve=[Jt,de]}else{if(Oe){if(Oe[1]1)if(vt>pt){if(Oe){if(Oe[1]>=de)return}else Oe=[(Q-Ee)/Se,Q];ve=[(de-Ee)/Se,de]}else{if(Oe){if(Oe[1]=q)return}else Oe=[N,Se*N+Ee];ve=[q,Se*q+Ee]}else{if(Oe){if(Oe[0]=-1e-12)){var pt=Oe*Oe+Ve*Ve,Nt=it*it+vt*vt,Jt=(vt*pt-Ve*Nt)/nt,Kt=(Oe*Nt-it*pt)/nt,Vt=O5.pop()||new cne;Vt.arc=L,Vt.site=de,Vt.x=Jt+Se,Vt.y=(Vt.cy=Kt+Ee)+Math.sqrt(Jt*Jt+Kt*Kt),L.circle=Vt;for(var kn=null,cn=I5._;cn;)if(Vt.y$s)Ee=Ee.L;else{if(!((de=ve-Wz(Ee,Se))>$s)){q>-$s?(N=Ee.P,Q=Ee):de>-$s?(N=Ee,Q=Ee.N):N=Q=Ee;break}if(!Ee.R){N=Ee;break}Ee=Ee.R}(function(ui){Lh[ui.index]={site:ui,halfedges:[]}})(L);var Oe=P5(L);if(Rm.insert(N,Oe),N||Q){if(N===Q)return cd(N),Q=P5(N.site),Rm.insert(Oe,Q),Oe.edge=Q.edge=pC(N.site,Oe.site),w3(N),void w3(Q);if(Q){cd(N),cd(Q);var Ve=N.site,it=Ve[0],vt=Ve[1],nt=L[0]-it,pt=L[1]-vt,Nt=Q.site,Jt=Nt[0]-it,Kt=Nt[1]-vt,Vt=2*(nt*Kt-pt*Jt),kn=nt*nt+pt*pt,cn=Jt*Jt+Kt*Kt,Dn=[(Kt*kn-pt*cn)/Vt+it,(nt*cn-Jt*kn)/Vt+vt];Nm(Q.edge,Ve,Nt,Dn),Oe.edge=pC(Ve,L,null,Dn),Q.edge=pC(L,Nt,null,Dn),w3(N),w3(Q)}else Oe.edge=pC(N.site,Oe.site)}}function Eu(L,N){var Q=L.site,q=Q[0],de=Q[1],ve=de-N;if(!ve)return q;var Se=L.P;if(!Se)return-1/0;var Ee=(Q=Se.site)[0],Oe=Q[1],Ve=Oe-N;if(!Ve)return Ee;var it=Ee-q,vt=1/ve-1/Ve,nt=it/Ve;return vt?(-nt+Math.sqrt(nt*nt-2*vt*(it*it/(-2*Ve)-Oe+Ve/2+de-ve/2)))/vt+q:(q+Ee)/2}function Wz(L,N){var Q=L.N;if(Q)return Eu(Q,N);var q=L.site;return q[1]===N?q[0]:1/0}var Rm,Lh,I5,Su,$s=1e-6;function dne(L,N,Q){return(L[0]-Q[0])*(N[1]-L[1])-(L[0]-N[0])*(Q[1]-L[1])}function pr(L,N){return N[1]-L[1]||N[0]-L[0]}function VO(L,N){var Q,q,de,ve=L.sort(pr).pop();for(Su=[],Lh=new Array(L.length),Rm=new RO,I5=new RO;;)if(de=FO,ve&&(!de||ve[1]$s||Math.abs(Nt[0][1]-Nt[1][1])>$s)||delete Su[Jt]})(Se,Ee,Oe,Ve),function(it,vt,nt,pt){var Nt,Jt,Kt,Vt,kn,cn,Dn,ui,Si,Bi,wo,hi,Ji=Lh.length,Tn=!0;for(Nt=0;Nt$s||Math.abs(hi-Si)>$s)&&(kn.splice(Vt,0,Su.push(j5(Kt,Bi,Math.abs(wo-it)<$s&&pt-hi>$s?[it,Math.abs(ui-it)<$s?Si:pt]:Math.abs(hi-pt)<$s&&nt-wo>$s?[Math.abs(Si-pt)<$s?ui:nt,pt]:Math.abs(wo-nt)<$s&&hi-vt>$s?[nt,Math.abs(ui-nt)<$s?Si:vt]:Math.abs(hi-vt)<$s&&wo-it>$s?[Math.abs(Si-vt)<$s?ui:it,vt]:null))-1),++cn);cn&&(Tn=!1)}if(Tn){var Xn,Wi,Pi,Ui=1/0;for(Nt=0,Tn=null;Nt=Ee)return null;var Oe=L-de.site[0],Ve=N-de.site[1],it=Oe*Oe+Ve*Ve;do de=ve.cells[q=Se],Se=null,de.halfedges.forEach(function(vt){var nt=ve.edges[vt],pt=nt.left;if(pt!==de.site&&pt||(pt=nt.right)){var Nt=L-pt[0],Jt=N-pt[1],Kt=Nt*Nt+Jt*Jt;Ktq?(q+de)/2:Math.min(0,q)||Math.max(0,de),Se>ve?(ve+Se)/2:Math.min(0,ve)||Math.max(0,Se))}function GO(){var L,N,Q=$k,q=NC,de=Fz,ve=RC,Se=zz,Ee=[0,1/0],Oe=[[-1/0,-1/0],[1/0,1/0]],Ve=250,it=sW,vt=et("start","zoom","end"),nt=500,pt=0;function Nt(Tn){Tn.property("__zoom",Wm).on("wheel.zoom",ui).on("mousedown.zoom",Si).on("dblclick.zoom",Bi).filter(Se).on("touchstart.zoom",wo).on("touchmove.zoom",hi).on("touchend.zoom touchcancel.zoom",Ji).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Jt(Tn,Xn){return(Xn=Math.max(Ee[0],Math.min(Ee[1],Xn)))===Tn.k?Tn:new u0(Xn,Tn.x,Tn.y)}function Kt(Tn,Xn,Wi){var Pi=Xn[0]-Wi[0]*Tn.k,Ui=Xn[1]-Wi[1]*Tn.k;return Pi===Tn.x&&Ui===Tn.y?Tn:new u0(Tn.k,Pi,Ui)}function Vt(Tn){return[(+Tn[0][0]+ +Tn[1][0])/2,(+Tn[0][1]+ +Tn[1][1])/2]}function kn(Tn,Xn,Wi){Tn.on("start.zoom",function(){cn(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){cn(this,arguments).end()}).tween("zoom",function(){var Pi=this,Ui=arguments,or=cn(Pi,Ui),wr=q.apply(Pi,Ui),bl=Wi==null?Vt(wr):typeof Wi=="function"?Wi.apply(Pi,Ui):Wi,Li=Math.max(wr[1][0]-wr[0][0],wr[1][1]-wr[0][1]),No=Pi.__zoom,Nr=typeof Xn=="function"?Xn.apply(Pi,Ui):Xn,za=it(No.invert(bl).concat(Li/No.k),Nr.invert(bl).concat(Li/Nr.k));return function(Tl){if(Tl===1)Tl=Nr;else{var xl=za(Tl),Ka=Li/xl[2];Tl=new u0(Ka,bl[0]-xl[0]*Ka,bl[1]-xl[1]*Ka)}or.zoom(null,Tl)}})}function cn(Tn,Xn,Wi){return!Wi&&Tn.__zooming||new Dn(Tn,Xn)}function Dn(Tn,Xn){this.that=Tn,this.args=Xn,this.active=0,this.extent=q.apply(Tn,Xn),this.taps=0}function ui(){if(Q.apply(this,arguments)){var Tn=cn(this,arguments),Xn=this.__zoom,Wi=Math.max(Ee[0],Math.min(Ee[1],Xn.k*Math.pow(2,ve.apply(this,arguments)))),Pi=Bf(this);if(Tn.wheel)Tn.mouse[0][0]===Pi[0]&&Tn.mouse[0][1]===Pi[1]||(Tn.mouse[1]=Xn.invert(Tn.mouse[0]=Pi)),clearTimeout(Tn.wheel);else{if(Xn.k===Wi)return;Tn.mouse=[Pi,Xn.invert(Pi)],td(this),Tn.start()}BC(),Tn.wheel=setTimeout(Ui,150),Tn.zoom("mouse",de(Kt(Jt(Xn,Wi),Tn.mouse[0],Tn.mouse[1]),Tn.extent,Oe))}function Ui(){Tn.wheel=null,Tn.end()}}function Si(){if(!N&&Q.apply(this,arguments)){var Tn=cn(this,arguments,!0),Xn=nl(Yn.view).on("mousemove.zoom",or,!0).on("mouseup.zoom",wr,!0),Wi=Bf(this),Pi=Yn.clientX,Ui=Yn.clientY;wa(Yn.view),IC(),Tn.mouse=[Wi,this.__zoom.invert(Wi)],td(this),Tn.start()}function or(){if(BC(),!Tn.moved){var bl=Yn.clientX-Pi,Li=Yn.clientY-Ui;Tn.moved=bl*bl+Li*Li>pt}Tn.zoom("mouse",de(Kt(Tn.that.__zoom,Tn.mouse[0]=Bf(Tn.that),Tn.mouse[1]),Tn.extent,Oe))}function wr(){Xn.on("mousemove.zoom mouseup.zoom",null),vl(Yn.view,Tn.moved),BC(),Tn.end()}}function Bi(){if(Q.apply(this,arguments)){var Tn=this.__zoom,Xn=Bf(this),Wi=Tn.invert(Xn),Pi=Tn.k*(Yn.shiftKey?.5:2),Ui=de(Kt(Jt(Tn,Pi),Xn,Wi),q.apply(this,arguments),Oe);BC(),Ve>0?nl(this).transition().duration(Ve).call(kn,Ui,Xn):nl(this).call(Nt.transform,Ui)}}function wo(){if(Q.apply(this,arguments)){var Tn,Xn,Wi,Pi,Ui=Yn.touches,or=Ui.length,wr=cn(this,arguments,Yn.changedTouches.length===or);for(IC(),Xn=0;Xn{e.exports={graphlib:n(574),layout:n(8123),debug:n(7570),util:{time:n(1138).time,notime:n(1138).notime},version:n(8177)}},2188:(e,t,n)=>{var o=n(8436),r=n(4079);e.exports={run:function(l){var a=l.graph().acyclicer==="greedy"?r(l,function(s){return function(c){return s.edge(c).weight}}(l)):function(s){var c=[],u={},d={};return o.forEach(s.nodes(),function f(h){o.has(d,h)||(d[h]=!0,u[h]=!0,o.forEach(s.outEdges(h),function(k){o.has(u,k.w)?c.push(k):f(k.w)}),delete u[h])}),c}(l);o.forEach(a,function(s){var c=l.edge(s);l.removeEdge(s),c.forwardName=s.name,c.reversed=!0,l.setEdge(s.w,s.v,c,o.uniqueId("rev"))})},undo:function(l){o.forEach(l.edges(),function(a){var s=l.edge(a);if(s.reversed){l.removeEdge(a);var c=s.forwardName;delete s.reversed,delete s.forwardName,l.setEdge(a.w,a.v,s,c)}})}}},1133:(e,t,n)=>{var o=n(8436),r=n(1138);function l(a,s,c,u,d,f){var h={width:0,height:0,rank:f,borderType:s},k=d[s][f-1],v=r.addDummyNode(a,"border",h,c);d[s][f]=v,a.setParent(v,u),k&&a.setEdge(k,v,{weight:1})}e.exports=function(a){o.forEach(a.children(),function s(c){var u=a.children(c),d=a.node(c);if(u.length&&o.forEach(u,s),o.has(d,"minRank")){d.borderLeft=[],d.borderRight=[];for(var f=d.minRank,h=d.maxRank+1;f{var o=n(8436);function r(c){o.forEach(c.nodes(),function(u){l(c.node(u))}),o.forEach(c.edges(),function(u){l(c.edge(u))})}function l(c){var u=c.width;c.width=c.height,c.height=u}function a(c){c.y=-c.y}function s(c){var u=c.x;c.x=c.y,c.y=u}e.exports={adjust:function(c){var u=c.graph().rankdir.toLowerCase();u!=="lr"&&u!=="rl"||r(c)},undo:function(c){var u=c.graph().rankdir.toLowerCase();u!=="bt"&&u!=="rl"||function(d){o.forEach(d.nodes(),function(f){a(d.node(f))}),o.forEach(d.edges(),function(f){var h=d.edge(f);o.forEach(h.points,a),o.has(h,"y")&&a(h)})}(c),u!=="lr"&&u!=="rl"||(function(d){o.forEach(d.nodes(),function(f){s(d.node(f))}),o.forEach(d.edges(),function(f){var h=d.edge(f);o.forEach(h.points,s),o.has(h,"x")&&s(h)})}(c),r(c))}}},7822:e=>{function t(){var r={};r._next=r._prev=r,this._sentinel=r}function n(r){r._prev._next=r._next,r._next._prev=r._prev,delete r._next,delete r._prev}function o(r,l){if(r!=="_next"&&r!=="_prev")return l}e.exports=t,t.prototype.dequeue=function(){var r=this._sentinel,l=r._prev;if(l!==r)return n(l),l},t.prototype.enqueue=function(r){var l=this._sentinel;r._prev&&r._next&&n(r),r._next=l._next,l._next._prev=r,l._next=r,r._prev=l},t.prototype.toString=function(){for(var r=[],l=this._sentinel,a=l._prev;a!==l;)r.push(JSON.stringify(a,o)),a=a._prev;return"["+r.join(", ")+"]"}},7570:(e,t,n)=>{var o=n(8436),r=n(1138),l=n(574).Graph;e.exports={debugOrdering:function(a){var s=r.buildLayerMatrix(a),c=new l({compound:!0,multigraph:!0}).setGraph({});return o.forEach(a.nodes(),function(u){c.setNode(u,{label:u}),c.setParent(u,"layer"+a.node(u).rank)}),o.forEach(a.edges(),function(u){c.setEdge(u.v,u.w,{},u.name)}),o.forEach(s,function(u,d){var f="layer"+d;c.setNode(f,{rank:"same"}),o.reduce(u,function(h,k){return c.setEdge(h,k,{style:"invis"}),k})}),c}}},574:(e,t,n)=>{var o;try{o=n(8282)}catch{}o||(o=window.graphlib),e.exports=o},4079:(e,t,n)=>{var o=n(8436),r=n(574).Graph,l=n(7822);e.exports=function(u,d){if(u.nodeCount()<=1)return[];var f=function(k,v){var g=new r,b=0,A=0;o.forEach(k.nodes(),function(x){g.setNode(x,{v:x,in:0,out:0})}),o.forEach(k.edges(),function(x){var E=g.edge(x.v,x.w)||0,S=v(x),M=E+S;g.setEdge(x.v,x.w,M),A=Math.max(A,g.node(x.v).out+=S),b=Math.max(b,g.node(x.w).in+=S)});var w=o.range(A+b+3).map(function(){return new l}),y=b+1;return o.forEach(g.nodes(),function(x){c(w,y,g.node(x))}),{graph:g,buckets:w,zeroIdx:y}}(u,d||a),h=function(k,v,g){for(var b,A=[],w=v[v.length-1],y=v[0];k.nodeCount();){for(;b=y.dequeue();)s(k,v,g,b);for(;b=w.dequeue();)s(k,v,g,b);if(k.nodeCount()){for(var x=v.length-2;x>0;--x)if(b=v[x].dequeue()){A=A.concat(s(k,v,g,b,!0));break}}}return A}(f.graph,f.buckets,f.zeroIdx);return o.flatten(o.map(h,function(k){return u.outEdges(k.v,k.w)}),!0)};var a=o.constant(1);function s(u,d,f,h,k){var v=k?[]:void 0;return o.forEach(u.inEdges(h.v),function(g){var b=u.edge(g),A=u.node(g.v);k&&v.push({v:g.v,w:g.w}),A.out-=b,c(d,f,A)}),o.forEach(u.outEdges(h.v),function(g){var b=u.edge(g),A=g.w,w=u.node(A);w.in-=b,c(d,f,w)}),u.removeNode(h.v),v}function c(u,d,f){f.out?f.in?u[f.out-f.in+d].enqueue(f):u[u.length-1].enqueue(f):u[0].enqueue(f)}},8123:(e,t,n)=>{var o=n(8436),r=n(2188),l=n(5995),a=n(8093),s=n(1138).normalizeRanks,c=n(4219),u=n(1138).removeEmptyRanks,d=n(2981),f=n(1133),h=n(3258),k=n(3408),v=n(7873),g=n(1138),b=n(574).Graph;e.exports=function(W,p){var H=p&&p.debugTiming?g.time:g.notime;H("layout",function(){var I=H(" buildLayoutGraph",function(){return function(V){var j=new b({multigraph:!0,compound:!0}),B=O(V.graph());return j.setGraph(o.merge({},w,D(B,A),o.pick(B,y))),o.forEach(V.nodes(),function(R){var Y=O(V.node(R));j.setNode(R,o.defaults(D(Y,x),E)),j.setParent(R,V.parent(R))}),o.forEach(V.edges(),function(R){var Y=O(V.edge(R));j.setEdge(R,o.merge({},M,D(Y,S),o.pick(Y,T)))}),j}(W)});H(" runLayout",function(){(function(V,j){j(" makeSpaceForEdgeLabels",function(){(function(B){var R=B.graph();R.ranksep/=2,o.forEach(B.edges(),function(Y){var X=B.edge(Y);X.minlen*=2,X.labelpos.toLowerCase()!=="c"&&(R.rankdir==="TB"||R.rankdir==="BT"?X.width+=X.labeloffset:X.height+=X.labeloffset)})})(V)}),j(" removeSelfEdges",function(){(function(B){o.forEach(B.edges(),function(R){if(R.v===R.w){var Y=B.node(R.v);Y.selfEdges||(Y.selfEdges=[]),Y.selfEdges.push({e:R,label:B.edge(R)}),B.removeEdge(R)}})})(V)}),j(" acyclic",function(){r.run(V)}),j(" nestingGraph.run",function(){d.run(V)}),j(" rank",function(){a(g.asNonCompoundGraph(V))}),j(" injectEdgeLabelProxies",function(){(function(B){o.forEach(B.edges(),function(R){var Y=B.edge(R);if(Y.width&&Y.height){var X=B.node(R.v),G={rank:(B.node(R.w).rank-X.rank)/2+X.rank,e:R};g.addDummyNode(B,"edge-proxy",G,"_ep")}})})(V)}),j(" removeEmptyRanks",function(){u(V)}),j(" nestingGraph.cleanup",function(){d.cleanup(V)}),j(" normalizeRanks",function(){s(V)}),j(" assignRankMinMax",function(){(function(B){var R=0;o.forEach(B.nodes(),function(Y){var X=B.node(Y);X.borderTop&&(X.minRank=B.node(X.borderTop).rank,X.maxRank=B.node(X.borderBottom).rank,R=o.max(R,X.maxRank))}),B.graph().maxRank=R})(V)}),j(" removeEdgeLabelProxies",function(){(function(B){o.forEach(B.nodes(),function(R){var Y=B.node(R);Y.dummy==="edge-proxy"&&(B.edge(Y.e).labelRank=Y.rank,B.removeNode(R))})})(V)}),j(" normalize.run",function(){l.run(V)}),j(" parentDummyChains",function(){c(V)}),j(" addBorderSegments",function(){f(V)}),j(" order",function(){k(V)}),j(" insertSelfEdges",function(){(function(B){var R=g.buildLayerMatrix(B);o.forEach(R,function(Y){var X=0;o.forEach(Y,function(G,J){var Z=B.node(G);Z.order=J+X,o.forEach(Z.selfEdges,function(K){g.addDummyNode(B,"selfedge",{width:K.label.width,height:K.label.height,rank:Z.rank,order:J+ ++X,e:K.e,label:K.label},"_se")}),delete Z.selfEdges})})})(V)}),j(" adjustCoordinateSystem",function(){h.adjust(V)}),j(" position",function(){v(V)}),j(" positionSelfEdges",function(){(function(B){o.forEach(B.nodes(),function(R){var Y=B.node(R);if(Y.dummy==="selfedge"){var X=B.node(Y.e.v),G=X.x+X.width/2,J=X.y,Z=Y.x-G,K=X.height/2;B.setEdge(Y.e,Y.label),B.removeNode(R),Y.label.points=[{x:G+2*Z/3,y:J-K},{x:G+5*Z/6,y:J-K},{x:G+Z,y:J},{x:G+5*Z/6,y:J+K},{x:G+2*Z/3,y:J+K}],Y.label.x=Y.x,Y.label.y=Y.y}})})(V)}),j(" removeBorderNodes",function(){(function(B){o.forEach(B.nodes(),function(R){if(B.children(R).length){var Y=B.node(R),X=B.node(Y.borderTop),G=B.node(Y.borderBottom),J=B.node(o.last(Y.borderLeft)),Z=B.node(o.last(Y.borderRight));Y.width=Math.abs(Z.x-J.x),Y.height=Math.abs(G.y-X.y),Y.x=J.x+Y.width/2,Y.y=X.y+Y.height/2}}),o.forEach(B.nodes(),function(R){B.node(R).dummy==="border"&&B.removeNode(R)})})(V)}),j(" normalize.undo",function(){l.undo(V)}),j(" fixupEdgeLabelCoords",function(){(function(B){o.forEach(B.edges(),function(R){var Y=B.edge(R);if(o.has(Y,"x"))switch(Y.labelpos!=="l"&&Y.labelpos!=="r"||(Y.width-=Y.labeloffset),Y.labelpos){case"l":Y.x-=Y.width/2+Y.labeloffset;break;case"r":Y.x+=Y.width/2+Y.labeloffset}})})(V)}),j(" undoCoordinateSystem",function(){h.undo(V)}),j(" translateGraph",function(){(function(B){var R=Number.POSITIVE_INFINITY,Y=0,X=Number.POSITIVE_INFINITY,G=0,J=B.graph(),Z=J.marginx||0,K=J.marginy||0;function ne(le){var ie=le.x,re=le.y,ce=le.width,me=le.height;R=Math.min(R,ie-ce/2),Y=Math.max(Y,ie+ce/2),X=Math.min(X,re-me/2),G=Math.max(G,re+me/2)}o.forEach(B.nodes(),function(le){ne(B.node(le))}),o.forEach(B.edges(),function(le){var ie=B.edge(le);o.has(ie,"x")&&ne(ie)}),R-=Z,X-=K,o.forEach(B.nodes(),function(le){var ie=B.node(le);ie.x-=R,ie.y-=X}),o.forEach(B.edges(),function(le){var ie=B.edge(le);o.forEach(ie.points,function(re){re.x-=R,re.y-=X}),o.has(ie,"x")&&(ie.x-=R),o.has(ie,"y")&&(ie.y-=X)}),J.width=Y-R+Z,J.height=G-X+K})(V)}),j(" assignNodeIntersects",function(){(function(B){o.forEach(B.edges(),function(R){var Y,X,G=B.edge(R),J=B.node(R.v),Z=B.node(R.w);G.points?(Y=G.points[0],X=G.points[G.points.length-1]):(G.points=[],Y=Z,X=J),G.points.unshift(g.intersectRect(J,Y)),G.points.push(g.intersectRect(Z,X))})})(V)}),j(" reversePoints",function(){(function(B){o.forEach(B.edges(),function(R){var Y=B.edge(R);Y.reversed&&Y.points.reverse()})})(V)}),j(" acyclic.undo",function(){r.undo(V)})})(I,H)}),H(" updateInputGraph",function(){(function(V,j){o.forEach(V.nodes(),function(B){var R=V.node(B),Y=j.node(B);R&&(R.x=Y.x,R.y=Y.y,j.children(B).length&&(R.width=Y.width,R.height=Y.height))}),o.forEach(V.edges(),function(B){var R=V.edge(B),Y=j.edge(B);R.points=Y.points,o.has(Y,"x")&&(R.x=Y.x,R.y=Y.y)}),V.graph().width=j.graph().width,V.graph().height=j.graph().height})(W,I)})})};var A=["nodesep","edgesep","ranksep","marginx","marginy"],w={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},y=["acyclicer","ranker","rankdir","align"],x=["width","height"],E={width:0,height:0},S=["minlen","weight","width","height","labeloffset"],M={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},T=["labelpos"];function D(W,p){return o.mapValues(o.pick(W,p),Number)}function O(W){var p={};return o.forEach(W,function(H,I){p[I.toLowerCase()]=H}),p}},8436:(e,t,n)=>{var o;try{o={cloneDeep:n(361),constant:n(5703),defaults:n(1747),each:n(6073),filter:n(3105),find:n(3311),flatten:n(5564),forEach:n(4486),forIn:n(2620),has:n(8721),isUndefined:n(2353),last:n(928),map:n(5161),mapValues:n(6604),max:n(6162),merge:n(3857),min:n(3632),minBy:n(2762),now:n(7771),pick:n(9722),range:n(6026),reduce:n(4061),sortBy:n(9734),uniqueId:n(3955),values:n(2628),zipObject:n(7287)}}catch{}o||(o=window._),e.exports=o},2981:(e,t,n)=>{var o=n(8436),r=n(1138);function l(a,s,c,u,d,f,h){var k=a.children(h);if(k.length){var v=r.addBorderNode(a,"_bt"),g=r.addBorderNode(a,"_bb"),b=a.node(h);a.setParent(v,h),b.borderTop=v,a.setParent(g,h),b.borderBottom=g,o.forEach(k,function(A){l(a,s,c,u,d,f,A);var w=a.node(A),y=w.borderTop?w.borderTop:A,x=w.borderBottom?w.borderBottom:A,E=w.borderTop?u:2*u,S=y!==x?1:d-f[h]+1;a.setEdge(v,y,{weight:E,minlen:S,nestingEdge:!0}),a.setEdge(x,g,{weight:E,minlen:S,nestingEdge:!0})}),a.parent(h)||a.setEdge(s,v,{weight:0,minlen:d+f[h]})}else h!==s&&a.setEdge(s,h,{weight:0,minlen:c})}e.exports={run:function(a){var s=r.addDummyNode(a,"root",{},"_root"),c=function(h){var k={};function v(g,b){var A=h.children(g);A&&A.length&&o.forEach(A,function(w){v(w,b+1)}),k[g]=b}return o.forEach(h.children(),function(g){v(g,1)}),k}(a),u=o.max(o.values(c))-1,d=2*u+1;a.graph().nestingRoot=s,o.forEach(a.edges(),function(h){a.edge(h).minlen*=d});var f=function(h){return o.reduce(h.edges(),function(k,v){return k+h.edge(v).weight},0)}(a)+1;o.forEach(a.children(),function(h){l(a,s,d,f,u,c,h)}),a.graph().nodeRankFactor=d},cleanup:function(a){var s=a.graph();a.removeNode(s.nestingRoot),delete s.nestingRoot,o.forEach(a.edges(),function(c){a.edge(c).nestingEdge&&a.removeEdge(c)})}}},5995:(e,t,n)=>{var o=n(8436),r=n(1138);e.exports={run:function(l){l.graph().dummyChains=[],o.forEach(l.edges(),function(a){(function(s,c){var u,d,f,h=c.v,k=s.node(h).rank,v=c.w,g=s.node(v).rank,b=c.name,A=s.edge(c),w=A.labelRank;if(g!==k+1){for(s.removeEdge(c),f=0,++k;k{var o=n(8436);e.exports=function(r,l,a){var s,c={};o.forEach(a,function(u){for(var d,f,h=r.parent(u);h;){if((d=r.parent(h))?(f=c[d],c[d]=h):(f=s,s=h),f&&f!==h)return void l.setEdge(f,h);h=d}})}},5439:(e,t,n)=>{var o=n(8436);e.exports=function(r,l){return o.map(l,function(a){var s=r.inEdges(a);if(s.length){var c=o.reduce(s,function(u,d){var f=r.edge(d),h=r.node(d.v);return{sum:u.sum+f.weight*h.order,weight:u.weight+f.weight}},{sum:0,weight:0});return{v:a,barycenter:c.sum/c.weight,weight:c.weight}}return{v:a}})}},3128:(e,t,n)=>{var o=n(8436),r=n(574).Graph;e.exports=function(l,a,s){var c=function(d){for(var f;d.hasNode(f=o.uniqueId("_root")););return f}(l),u=new r({compound:!0}).setGraph({root:c}).setDefaultNodeLabel(function(d){return l.node(d)});return o.forEach(l.nodes(),function(d){var f=l.node(d),h=l.parent(d);(f.rank===a||f.minRank<=a&&a<=f.maxRank)&&(u.setNode(d),u.setParent(d,h||c),o.forEach(l[s](d),function(k){var v=k.v===d?k.w:k.v,g=u.edge(v,d),b=o.isUndefined(g)?0:g.weight;u.setEdge(v,d,{weight:l.edge(k).weight+b})}),o.has(f,"minRank")&&u.setNode(d,{borderLeft:f.borderLeft[a],borderRight:f.borderRight[a]}))}),u}},6630:(e,t,n)=>{var o=n(8436);function r(l,a,s){for(var c=o.zipObject(s,o.map(s,function(v,g){return g})),u=o.flatten(o.map(a,function(v){return o.sortBy(o.map(l.outEdges(v),function(g){return{pos:c[g.w],weight:l.edge(g).weight}}),"pos")}),!0),d=1;d0;)g%2&&(b+=h[g+1]),h[g=g-1>>1]+=v.weight;k+=v.weight*b})),k}e.exports=function(l,a){for(var s=0,c=1;c{var o=n(8436),r=n(2588),l=n(6630),a=n(1026),s=n(3128),c=n(5093),u=n(574).Graph,d=n(1138);function f(v,g,b){return o.map(g,function(A){return s(v,A,b)})}function h(v,g){var b=new u;o.forEach(v,function(A){var w=A.graph().root,y=a(A,w,b,g);o.forEach(y.vs,function(x,E){A.node(x).order=E}),c(A,b,y.vs)})}function k(v,g){o.forEach(g,function(b){o.forEach(b,function(A,w){v.node(A).order=w})})}e.exports=function(v){var g=d.maxRank(v),b=f(v,o.range(1,g+1),"inEdges"),A=f(v,o.range(g-1,-1,-1),"outEdges"),w=r(v);k(v,w);for(var y,x=Number.POSITIVE_INFINITY,E=0,S=0;S<4;++E,++S){h(E%2?b:A,E%4>=2),w=d.buildLayerMatrix(v);var M=l(v,w);M{var o=n(8436);e.exports=function(r){var l={},a=o.filter(r.nodes(),function(d){return!r.children(d).length}),s=o.max(o.map(a,function(d){return r.node(d).rank})),c=o.map(o.range(s+1),function(){return[]}),u=o.sortBy(a,function(d){return r.node(d).rank});return o.forEach(u,function d(f){if(!o.has(l,f)){l[f]=!0;var h=r.node(f);c[h.rank].push(f),o.forEach(r.successors(f),d)}}),c}},9567:(e,t,n)=>{var o=n(8436);e.exports=function(r,l){var a={};return o.forEach(r,function(s,c){var u=a[s.v]={indegree:0,in:[],out:[],vs:[s.v],i:c};o.isUndefined(s.barycenter)||(u.barycenter=s.barycenter,u.weight=s.weight)}),o.forEach(l.edges(),function(s){var c=a[s.v],u=a[s.w];o.isUndefined(c)||o.isUndefined(u)||(u.indegree++,c.out.push(a[s.w]))}),function(s){var c=[];function u(h){return function(k){var v,g,b,A;k.merged||(o.isUndefined(k.barycenter)||o.isUndefined(h.barycenter)||k.barycenter>=h.barycenter)&&(g=k,b=0,A=0,(v=h).weight&&(b+=v.barycenter*v.weight,A+=v.weight),g.weight&&(b+=g.barycenter*g.weight,A+=g.weight),v.vs=g.vs.concat(v.vs),v.barycenter=b/A,v.weight=A,v.i=Math.min(g.i,v.i),g.merged=!0)}}function d(h){return function(k){k.in.push(h),--k.indegree==0&&s.push(k)}}for(;s.length;){var f=s.pop();c.push(f),o.forEach(f.in.reverse(),u(f)),o.forEach(f.out,d(f))}return o.map(o.filter(c,function(h){return!h.merged}),function(h){return o.pick(h,["vs","i","barycenter","weight"])})}(o.filter(a,function(s){return!s.indegree}))}},1026:(e,t,n)=>{var o=n(8436),r=n(5439),l=n(9567),a=n(7304);e.exports=function s(c,u,d,f){var h=c.children(u),k=c.node(u),v=k?k.borderLeft:void 0,g=k?k.borderRight:void 0,b={};v&&(h=o.filter(h,function(S){return S!==v&&S!==g}));var A=r(c,h);o.forEach(A,function(S){if(c.children(S.v).length){var M=s(c,S.v,d,f);b[S.v]=M,o.has(M,"barycenter")&&(T=S,D=M,o.isUndefined(T.barycenter)?(T.barycenter=D.barycenter,T.weight=D.weight):(T.barycenter=(T.barycenter*T.weight+D.barycenter*D.weight)/(T.weight+D.weight),T.weight+=D.weight))}var T,D});var w=l(A,d);(function(S,M){o.forEach(S,function(T){T.vs=o.flatten(T.vs.map(function(D){return M[D]?M[D].vs:D}),!0)})})(w,b);var y=a(w,f);if(v&&(y.vs=o.flatten([v,y.vs,g],!0),c.predecessors(v).length)){var x=c.node(c.predecessors(v)[0]),E=c.node(c.predecessors(g)[0]);o.has(y,"barycenter")||(y.barycenter=0,y.weight=0),y.barycenter=(y.barycenter*y.weight+x.order+E.order)/(y.weight+2),y.weight+=2}return y}},7304:(e,t,n)=>{var o=n(8436),r=n(1138);function l(a,s,c){for(var u;s.length&&(u=o.last(s)).i<=c;)s.pop(),a.push(u.vs),c++;return c}e.exports=function(a,s){var c,u=r.partition(a,function(A){return o.has(A,"barycenter")}),d=u.lhs,f=o.sortBy(u.rhs,function(A){return-A.i}),h=[],k=0,v=0,g=0;d.sort((c=!!s,function(A,w){return A.barycenterw.barycenter?1:c?w.i-A.i:A.i-w.i})),g=l(h,f,g),o.forEach(d,function(A){g+=A.vs.length,h.push(A.vs),k+=A.barycenter*A.weight,v+=A.weight,g=l(h,f,g)});var b={vs:o.flatten(h,!0)};return v&&(b.barycenter=k/v,b.weight=v),b}},4219:(e,t,n)=>{var o=n(8436);e.exports=function(r){var l=function(a){var s={},c=0;return o.forEach(a.children(),function u(d){var f=c;o.forEach(a.children(d),u),s[d]={low:f,lim:c++}}),s}(r);o.forEach(r.graph().dummyChains,function(a){for(var s=r.node(a),c=s.edgeObj,u=function(g,b,A,w){var y,x,E=[],S=[],M=Math.min(b[A].low,b[w].low),T=Math.max(b[A].lim,b[w].lim);y=A;do y=g.parent(y),E.push(y);while(y&&(b[y].low>M||T>b[y].lim));for(x=y,y=w;(y=g.parent(y))!==x;)S.push(y);return{path:E.concat(S.reverse()),lca:x}}(r,l,c.v,c.w),d=u.path,f=u.lca,h=0,k=d[h],v=!0;a!==c.w;){if(s=r.node(a),v){for(;(k=d[h])!==f&&r.node(k).maxRank{var o=n(8436),r=n(574).Graph,l=n(1138);function a(g,b){var A={};return o.reduce(b,function(w,y){var x=0,E=0,S=w.length,M=o.last(y);return o.forEach(y,function(T,D){var O=function(p,H){if(p.node(H).dummy)return o.find(p.predecessors(H),function(I){return p.node(I).dummy})}(g,T),W=O?g.node(O).order:S;(O||T===M)&&(o.forEach(y.slice(E,D+1),function(p){o.forEach(g.predecessors(p),function(H){var I=g.node(H),V=I.order;!(VM)&&c(A,O,T)})})}return o.reduce(b,function(y,x){var E,S=-1,M=0;return o.forEach(x,function(T,D){if(g.node(T).dummy==="border"){var O=g.predecessors(T);O.length&&(E=g.node(O[0]).order,w(x,M,D,S,E),M=D,S=E)}w(x,M,x.length,E,y.length)}),x}),A}function c(g,b,A){if(b>A){var w=b;b=A,A=w}var y=g[b];y||(g[b]=y={}),y[A]=!0}function u(g,b,A){if(b>A){var w=b;b=A,A=w}return o.has(g[b],A)}function d(g,b,A,w){var y={},x={},E={};return o.forEach(b,function(S){o.forEach(S,function(M,T){y[M]=M,x[M]=M,E[M]=T})}),o.forEach(b,function(S){var M=-1;o.forEach(S,function(T){var D=w(T);if(D.length){D=o.sortBy(D,function(I){return E[I]});for(var O=(D.length-1)/2,W=Math.floor(O),p=Math.ceil(O);W<=p;++W){var H=D[W];x[T]===T&&M{var o=n(8436),r=n(1138),l=n(3573).positionX;e.exports=function(a){(function(s){var c=r.buildLayerMatrix(s),u=s.graph().ranksep,d=0;o.forEach(c,function(f){var h=o.max(o.map(f,function(k){return s.node(k).height}));o.forEach(f,function(k){s.node(k).y=d+h/2}),d+=h+u})})(a=r.asNonCompoundGraph(a)),o.forEach(l(a),function(s,c){a.node(c).x=s})}},300:(e,t,n)=>{var o=n(8436),r=n(574).Graph,l=n(6681).slack;function a(u,d){return o.forEach(u.nodes(),function f(h){o.forEach(d.nodeEdges(h),function(k){var v=k.v,g=h===v?k.w:v;u.hasNode(g)||l(d,k)||(u.setNode(g,{}),u.setEdge(h,g,{}),f(g))})}),u.nodeCount()}function s(u,d){return o.minBy(d.edges(),function(f){if(u.hasNode(f.v)!==u.hasNode(f.w))return l(d,f)})}function c(u,d,f){o.forEach(u.nodes(),function(h){d.node(h).rank+=f})}e.exports=function(u){var d,f,h=new r({directed:!1}),k=u.nodes()[0],v=u.nodeCount();for(h.setNode(k,{});a(h,u){var o=n(6681).longestPath,r=n(300),l=n(2472);e.exports=function(s){switch(s.graph().ranker){case"network-simplex":default:(function(c){l(c)})(s);break;case"tight-tree":(function(c){o(c),r(c)})(s);break;case"longest-path":a(s)}};var a=o},2472:(e,t,n)=>{var o=n(8436),r=n(300),l=n(6681).slack,a=n(6681).longestPath,s=n(574).alg.preorder,c=n(574).alg.postorder,u=n(1138).simplify;function d(y){y=u(y),a(y);var x,E=r(y);for(k(E),f(E,y);x=g(E);)A(E,y,x,b(E,y,x))}function f(y,x){var E=c(y,y.nodes());E=E.slice(0,E.length-1),o.forEach(E,function(S){(function(M,T,D){var O=M.node(D).parent;M.edge(D,O).cutvalue=h(M,T,D)})(y,x,S)})}function h(y,x,E){var S=y.node(E).parent,M=!0,T=x.edge(E,S),D=0;return T||(M=!1,T=x.edge(S,E)),D=T.weight,o.forEach(x.nodeEdges(E),function(O){var W,p,H=O.v===E,I=H?O.w:O.v;if(I!==S){var V=H===M,j=x.edge(O).weight;if(D+=V?j:-j,W=E,p=I,y.hasEdge(W,p)){var B=y.edge(E,I).cutvalue;D+=V?-B:B}}}),D}function k(y,x){arguments.length<2&&(x=y.nodes()[0]),v(y,{},1,x)}function v(y,x,E,S,M){var T=E,D=y.node(S);return x[S]=!0,o.forEach(y.neighbors(S),function(O){o.has(x,O)||(E=v(y,x,E,O,S))}),D.low=T,D.lim=E++,M?D.parent=M:delete D.parent,E}function g(y){return o.find(y.edges(),function(x){return y.edge(x).cutvalue<0})}function b(y,x,E){var S=E.v,M=E.w;x.hasEdge(S,M)||(S=E.w,M=E.v);var T=y.node(S),D=y.node(M),O=T,W=!1;T.lim>D.lim&&(O=D,W=!0);var p=o.filter(x.edges(),function(H){return W===w(0,y.node(H.v),O)&&W!==w(0,y.node(H.w),O)});return o.minBy(p,function(H){return l(x,H)})}function A(y,x,E,S){var M=E.v,T=E.w;y.removeEdge(M,T),y.setEdge(S.v,S.w,{}),k(y),f(y,x),function(D,O){var W=o.find(D.nodes(),function(H){return!O.node(H).parent}),p=s(D,W);p=p.slice(1),o.forEach(p,function(H){var I=D.node(H).parent,V=O.edge(H,I),j=!1;V||(V=O.edge(I,H),j=!0),O.node(H).rank=O.node(I).rank+(j?V.minlen:-V.minlen)})}(y,x)}function w(y,x,E){return E.low<=x.lim&&x.lim<=E.lim}e.exports=d,d.initLowLimValues=k,d.initCutValues=f,d.calcCutValue=h,d.leaveEdge=g,d.enterEdge=b,d.exchangeEdges=A},6681:(e,t,n)=>{var o=n(8436);e.exports={longestPath:function(r){var l={};o.forEach(r.sources(),function a(s){var c=r.node(s);if(o.has(l,s))return c.rank;l[s]=!0;var u=o.min(o.map(r.outEdges(s),function(d){return a(d.w)-r.edge(d).minlen}));return u!==Number.POSITIVE_INFINITY&&u!=null||(u=0),c.rank=u})},slack:function(r,l){return r.node(l.w).rank-r.node(l.v).rank-r.edge(l).minlen}}},1138:(e,t,n)=>{var o=n(8436),r=n(574).Graph;function l(s,c,u,d){var f;do f=o.uniqueId(d);while(s.hasNode(f));return u.dummy=c,s.setNode(f,u),f}function a(s){return o.max(o.map(s.nodes(),function(c){var u=s.node(c).rank;if(!o.isUndefined(u))return u}))}e.exports={addDummyNode:l,simplify:function(s){var c=new r().setGraph(s.graph());return o.forEach(s.nodes(),function(u){c.setNode(u,s.node(u))}),o.forEach(s.edges(),function(u){var d=c.edge(u.v,u.w)||{weight:0,minlen:1},f=s.edge(u);c.setEdge(u.v,u.w,{weight:d.weight+f.weight,minlen:Math.max(d.minlen,f.minlen)})}),c},asNonCompoundGraph:function(s){var c=new r({multigraph:s.isMultigraph()}).setGraph(s.graph());return o.forEach(s.nodes(),function(u){s.children(u).length||c.setNode(u,s.node(u))}),o.forEach(s.edges(),function(u){c.setEdge(u,s.edge(u))}),c},successorWeights:function(s){var c=o.map(s.nodes(),function(u){var d={};return o.forEach(s.outEdges(u),function(f){d[f.w]=(d[f.w]||0)+s.edge(f).weight}),d});return o.zipObject(s.nodes(),c)},predecessorWeights:function(s){var c=o.map(s.nodes(),function(u){var d={};return o.forEach(s.inEdges(u),function(f){d[f.v]=(d[f.v]||0)+s.edge(f).weight}),d});return o.zipObject(s.nodes(),c)},intersectRect:function(s,c){var u,d,f=s.x,h=s.y,k=c.x-f,v=c.y-h,g=s.width/2,b=s.height/2;if(!k&&!v)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(v)*g>Math.abs(k)*b?(v<0&&(b=-b),u=b*k/v,d=b):(k<0&&(g=-g),u=g,d=g*v/k),{x:f+u,y:h+d}},buildLayerMatrix:function(s){var c=o.map(o.range(a(s)+1),function(){return[]});return o.forEach(s.nodes(),function(u){var d=s.node(u),f=d.rank;o.isUndefined(f)||(c[f][d.order]=u)}),c},normalizeRanks:function(s){var c=o.min(o.map(s.nodes(),function(u){return s.node(u).rank}));o.forEach(s.nodes(),function(u){var d=s.node(u);o.has(d,"rank")&&(d.rank-=c)})},removeEmptyRanks:function(s){var c=o.min(o.map(s.nodes(),function(h){return s.node(h).rank})),u=[];o.forEach(s.nodes(),function(h){var k=s.node(h).rank-c;u[k]||(u[k]=[]),u[k].push(h)});var d=0,f=s.graph().nodeRankFactor;o.forEach(u,function(h,k){o.isUndefined(h)&&k%f!=0?--d:d&&o.forEach(h,function(v){s.node(v).rank+=d})})},addBorderNode:function(s,c,u,d){var f={width:0,height:0};return arguments.length>=4&&(f.rank=u,f.order=d),l(s,"border",f,c)},maxRank:a,partition:function(s,c){var u={lhs:[],rhs:[]};return o.forEach(s,function(d){c(d)?u.lhs.push(d):u.rhs.push(d)}),u},time:function(s,c){var u=o.now();try{return c()}finally{console.log(s+" time: "+(o.now()-u)+"ms")}},notime:function(s,c){return c()}}},8177:e=>{e.exports="0.8.5"},7856:function(e){e.exports=function(){var t=Object.hasOwnProperty,n=Object.setPrototypeOf,o=Object.isFrozen,r=Object.getPrototypeOf,l=Object.getOwnPropertyDescriptor,a=Object.freeze,s=Object.seal,c=Object.create,u=typeof Reflect<"u"&&Reflect,d=u.apply,f=u.construct;d||(d=function(oe,ke,Ae){return oe.apply(ke,Ae)}),a||(a=function(oe){return oe}),s||(s=function(oe){return oe}),f||(f=function(oe,ke){return new(Function.prototype.bind.apply(oe,[null].concat(function(Ae){if(Array.isArray(Ae)){for(var xe=0,ye=Array(Ae.length);xe1?Ae-1:0),ye=1;ye/gm),K=s(/^data-[\-\w.\u00B7-\uFFFF]/),ne=s(/^aria-[\-\w]+$/),le=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ie=s(/^(?:\w+script|data):/i),re=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ce=s(/^html$/i),me=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(oe){return typeof oe}:function(oe){return oe&&typeof Symbol=="function"&&oe.constructor===Symbol&&oe!==Symbol.prototype?"symbol":typeof oe};function ae(oe){if(Array.isArray(oe)){for(var ke=0,Ae=Array(oe.length);ke"u"?null:window},fe=function(oe,ke){if((oe===void 0?"undefined":me(oe))!=="object"||typeof oe.createPolicy!="function")return null;var Ae=null,xe="data-tt-policy-suffix";ke.currentScript&&ke.currentScript.hasAttribute(xe)&&(Ae=ke.currentScript.getAttribute(xe));var ye="dompurify"+(Ae?"#"+Ae:"");try{return oe.createPolicy(ye,{createHTML:function(De){return De}})}catch{return console.warn("TrustedTypes policy "+ye+" could not be created."),null}};return function oe(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:be(),Ae=function($n){return oe($n)};if(Ae.version="2.3.6",Ae.removed=[],!ke||!ke.document||ke.document.nodeType!==9)return Ae.isSupported=!1,Ae;var xe=ke.document,ye=ke.document,De=ke.DocumentFragment,Ie=ke.HTMLTemplateElement,Be=ke.Node,Ne=ke.Element,Fe=ke.NodeFilter,_e=ke.NamedNodeMap,Ze=_e===void 0?ke.NamedNodeMap||ke.MozNamedAttrMap:_e,We=ke.HTMLFormElement,Xe=ke.DOMParser,dt=ke.trustedTypes,Re=Ne.prototype,et=O(Re,"cloneNode"),rt=O(Re,"nextSibling"),Ot=O(Re,"childNodes"),Et=O(Re,"parentNode");if(typeof Ie=="function"){var wt=ye.createElement("template");wt.content&&wt.content.ownerDocument&&(ye=wt.content.ownerDocument)}var ot=fe(dt,xe),Lt=ot?ot.createHTML(""):"",lt=ye,Dt=lt.implementation,Pe=lt.createNodeIterator,Ue=lt.createDocumentFragment,Ge=lt.getElementsByTagName,ft=xe.importNode,ct={};try{ct=D(ye).documentMode?ye.documentMode:{}}catch{}var Tt={};Ae.isSupported=typeof Et=="function"&&Dt&&Dt.createHTMLDocument!==void 0&&ct!==9;var Ft=J,Ct=Z,bt=K,Qe=ne,yt=ie,Gt=re,qt=le,$t=null,Yt=T({},[].concat(ae(W),ae(p),ae(H),ae(V),ae(B))),Xt=null,vn=T({},[].concat(ae(R),ae(Y),ae(X),ae(G))),xn=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ii=null,wi=null,eo=!0,Ni=!0,sn=!1,Qn=!1,_t=!1,Pn=!1,zt=!1,an=!1,Rn=!1,oi=!1,Gn=!0,En=!0,ri=!1,vi={},Ri=null,wn=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),jt=null,Wt=T({},["audio","video","img","source","image","track"]),en=null,Fn=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),di="http://www.w3.org/1998/Math/MathML",ti="http://www.w3.org/2000/svg",si="http://www.w3.org/1999/xhtml",Yn=si,ai=!1,Hi=void 0,Cn=["application/xhtml+xml","text/html"],Io="text/html",Bn=void 0,Lo=null,Mr=ye.createElement("form"),xo=function($n){return $n instanceof RegExp||$n instanceof Function},Bo=function($n){Lo&&Lo===$n||($n&&($n===void 0?"undefined":me($n))==="object"||($n={}),$n=D($n),$t="ALLOWED_TAGS"in $n?T({},$n.ALLOWED_TAGS):Yt,Xt="ALLOWED_ATTR"in $n?T({},$n.ALLOWED_ATTR):vn,en="ADD_URI_SAFE_ATTR"in $n?T(D(Fn),$n.ADD_URI_SAFE_ATTR):Fn,jt="ADD_DATA_URI_TAGS"in $n?T(D(Wt),$n.ADD_DATA_URI_TAGS):Wt,Ri="FORBID_CONTENTS"in $n?T({},$n.FORBID_CONTENTS):wn,ii="FORBID_TAGS"in $n?T({},$n.FORBID_TAGS):{},wi="FORBID_ATTR"in $n?T({},$n.FORBID_ATTR):{},vi="USE_PROFILES"in $n&&$n.USE_PROFILES,eo=$n.ALLOW_ARIA_ATTR!==!1,Ni=$n.ALLOW_DATA_ATTR!==!1,sn=$n.ALLOW_UNKNOWN_PROTOCOLS||!1,Qn=$n.SAFE_FOR_TEMPLATES||!1,_t=$n.WHOLE_DOCUMENT||!1,an=$n.RETURN_DOM||!1,Rn=$n.RETURN_DOM_FRAGMENT||!1,oi=$n.RETURN_TRUSTED_TYPE||!1,zt=$n.FORCE_BODY||!1,Gn=$n.SANITIZE_DOM!==!1,En=$n.KEEP_CONTENT!==!1,ri=$n.IN_PLACE||!1,qt=$n.ALLOWED_URI_REGEXP||qt,Yn=$n.NAMESPACE||si,$n.CUSTOM_ELEMENT_HANDLING&&xo($n.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(xn.tagNameCheck=$n.CUSTOM_ELEMENT_HANDLING.tagNameCheck),$n.CUSTOM_ELEMENT_HANDLING&&xo($n.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(xn.attributeNameCheck=$n.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),$n.CUSTOM_ELEMENT_HANDLING&&typeof $n.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(xn.allowCustomizedBuiltInElements=$n.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Hi=Hi=Cn.indexOf($n.PARSER_MEDIA_TYPE)===-1?Io:$n.PARSER_MEDIA_TYPE,Bn=Hi==="application/xhtml+xml"?function(po){return po}:b,Qn&&(Ni=!1),Rn&&(an=!0),vi&&($t=T({},[].concat(ae(B))),Xt=[],vi.html===!0&&(T($t,W),T(Xt,R)),vi.svg===!0&&(T($t,p),T(Xt,Y),T(Xt,G)),vi.svgFilters===!0&&(T($t,H),T(Xt,Y),T(Xt,G)),vi.mathMl===!0&&(T($t,V),T(Xt,X),T(Xt,G))),$n.ADD_TAGS&&($t===Yt&&($t=D($t)),T($t,$n.ADD_TAGS)),$n.ADD_ATTR&&(Xt===vn&&(Xt=D(Xt)),T(Xt,$n.ADD_ATTR)),$n.ADD_URI_SAFE_ATTR&&T(en,$n.ADD_URI_SAFE_ATTR),$n.FORBID_CONTENTS&&(Ri===wn&&(Ri=D(Ri)),T(Ri,$n.FORBID_CONTENTS)),En&&($t["#text"]=!0),_t&&T($t,["html","head","body"]),$t.table&&(T($t,["tbody"]),delete ii.tbody),a&&a($n),Lo=$n)},Tr=T({},["mi","mo","mn","ms","mtext"]),qo=T({},["foreignobject","desc","title","annotation-xml"]),_r=T({},p);T(_r,H),T(_r,I);var Al=T({},V);T(Al,j);var nl=function($n){var po=Et($n);po&&po.tagName||(po={namespaceURI:si,tagName:"template"});var ro=b($n.tagName),al=b(po.tagName);if($n.namespaceURI===ti)return po.namespaceURI===si?ro==="svg":po.namespaceURI===di?ro==="svg"&&(al==="annotation-xml"||Tr[al]):!!_r[ro];if($n.namespaceURI===di)return po.namespaceURI===si?ro==="math":po.namespaceURI===ti?ro==="math"&&qo[al]:!!Al[ro];if($n.namespaceURI===si){if(po.namespaceURI===ti&&!qo[al]||po.namespaceURI===di&&!Tr[al])return!1;var ml=T({},["title","style","font","a","script"]);return!Al[ro]&&(ml[ro]||!_r[ro])}return!1},cl=function($n){g(Ae.removed,{element:$n});try{$n.parentNode.removeChild($n)}catch{try{$n.outerHTML=Lt}catch{$n.remove()}}},yl=function($n,po){try{g(Ae.removed,{attribute:po.getAttributeNode($n),from:po})}catch{g(Ae.removed,{attribute:null,from:po})}if(po.removeAttribute($n),$n==="is"&&!Xt[$n])if(an||Rn)try{cl(po)}catch{}else try{po.setAttribute($n,"")}catch{}},wa=function($n){var po=void 0,ro=void 0;if(zt)$n=""+$n;else{var al=A($n,/^[\r\n\t ]+/);ro=al&&al[0]}Hi==="application/xhtml+xml"&&($n=''+$n+"");var ml=ot?ot.createHTML($n):$n;if(Yn===si)try{po=new Xe().parseFromString(ml,Hi)}catch{}if(!po||!po.documentElement){po=Dt.createDocument(Yn,"template",null);try{po.documentElement.innerHTML=ai?"":ml}catch{}}var wl=po.body||po.documentElement;return $n&&ro&&wl.insertBefore(ye.createTextNode(ro),wl.childNodes[0]||null),Yn===si?Ge.call(po,_t?"html":"body")[0]:_t?po.documentElement:wl},vl=function($n){return Pe.call($n.ownerDocument||$n,$n,Fe.SHOW_ELEMENT|Fe.SHOW_COMMENT|Fe.SHOW_TEXT,null,!1)},na=function($n){return $n instanceof We&&(typeof $n.nodeName!="string"||typeof $n.textContent!="string"||typeof $n.removeChild!="function"||!($n.attributes instanceof Ze)||typeof $n.removeAttribute!="function"||typeof $n.setAttribute!="function"||typeof $n.namespaceURI!="string"||typeof $n.insertBefore!="function")},ia=function($n){return(Be===void 0?"undefined":me(Be))==="object"?$n instanceof Be:$n&&($n===void 0?"undefined":me($n))==="object"&&typeof $n.nodeType=="number"&&typeof $n.nodeName=="string"},Cl=function($n,po,ro){Tt[$n]&&k(Tt[$n],function(al){al.call(Ae,po,ro,Lo)})},Vl=function($n){var po=void 0;if(Cl("beforeSanitizeElements",$n,null),na($n)||A($n.nodeName,/[\u0080-\uFFFF]/))return cl($n),!0;var ro=Bn($n.nodeName);if(Cl("uponSanitizeElement",$n,{tagName:ro,allowedTags:$t}),!ia($n.firstElementChild)&&(!ia($n.content)||!ia($n.content.firstElementChild))&&E(/<[/\w]/g,$n.innerHTML)&&E(/<[/\w]/g,$n.textContent)||ro==="select"&&E(/