@moderneinc/react-charts 1.2.0-next.c015c0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const X=require("react/jsx-runtime"),S1=require("@mui/icons-material"),te=require("@mui/material"),O=require("react");function O1(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const ft=O1(O),_1=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class zi{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}zi.prototype.normal={};zi.prototype.property={};zi.prototype.space=void 0;function jx(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new zi(r,n,t)}function ai(e){return e.toLowerCase()}class et{constructor(t,r){this.attribute=r,this.property=t}}et.prototype.attribute="";et.prototype.booleanish=!1;et.prototype.boolean=!1;et.prototype.commaOrSpaceSeparated=!1;et.prototype.commaSeparated=!1;et.prototype.defined=!1;et.prototype.mustUseProperty=!1;et.prototype.number=!1;et.prototype.overloadedBoolean=!1;et.prototype.property="";et.prototype.spaceSeparated=!1;et.prototype.space=void 0;let A1=0;const le=Er(),Me=Er(),Of=Er(),G=Er(),Oe=Er(),zr=Er(),tt=Er();function Er(){return 2**++A1}const _f=Object.freeze(Object.defineProperty({__proto__:null,boolean:le,booleanish:Me,commaOrSpaceSeparated:tt,commaSeparated:zr,number:G,overloadedBoolean:Of,spaceSeparated:Oe},Symbol.toStringTag,{value:"Module"})),iu=Object.keys(_f);class Xd extends et{constructor(t,r,n,i){let a=-1;if(super(t,r),oh(this,"space",i),typeof n=="number")for(;++a<iu.length;){const o=iu[a];oh(this,iu[a],(n&_f[o])===_f[o])}}}Xd.prototype.defined=!0;function oh(e,t,r){r&&(e[t]=r)}function Sn(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new Xd(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[ai(n)]=n,r[ai(a.attribute)]=n}return new zi(t,r,e.space)}const Ix=Sn({properties:{ariaActiveDescendant:null,ariaAtomic:Me,ariaAutoComplete:null,ariaBusy:Me,ariaChecked:Me,ariaColCount:G,ariaColIndex:G,ariaColSpan:G,ariaControls:Oe,ariaCurrent:null,ariaDescribedBy:Oe,ariaDetails:null,ariaDisabled:Me,ariaDropEffect:Oe,ariaErrorMessage:null,ariaExpanded:Me,ariaFlowTo:Oe,ariaGrabbed:Me,ariaHasPopup:null,ariaHidden:Me,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Oe,ariaLevel:G,ariaLive:null,ariaModal:Me,ariaMultiLine:Me,ariaMultiSelectable:Me,ariaOrientation:null,ariaOwns:Oe,ariaPlaceholder:null,ariaPosInSet:G,ariaPressed:Me,ariaReadOnly:Me,ariaRelevant:null,ariaRequired:Me,ariaRoleDescription:Oe,ariaRowCount:G,ariaRowIndex:G,ariaRowSpan:G,ariaSelected:Me,ariaSetSize:G,ariaSort:null,ariaValueMax:G,ariaValueMin:G,ariaValueNow:G,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function $x(e,t){return t in e?e[t]:t}function kx(e,t){return $x(e,t.toLowerCase())}const P1=Sn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zr,acceptCharset:Oe,accessKey:Oe,action:null,allow:null,allowFullScreen:le,allowPaymentRequest:le,allowUserMedia:le,alt:null,as:null,async:le,autoCapitalize:null,autoComplete:Oe,autoFocus:le,autoPlay:le,blocking:Oe,capture:null,charSet:null,checked:le,cite:null,className:Oe,cols:G,colSpan:null,content:null,contentEditable:Me,controls:le,controlsList:Oe,coords:G|zr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:le,defer:le,dir:null,dirName:null,disabled:le,download:Of,draggable:Me,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:le,formTarget:null,headers:Oe,height:G,hidden:Of,high:G,href:null,hrefLang:null,htmlFor:Oe,httpEquiv:Oe,id:null,imageSizes:null,imageSrcSet:null,inert:le,inputMode:null,integrity:null,is:null,isMap:le,itemId:null,itemProp:Oe,itemRef:Oe,itemScope:le,itemType:Oe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:le,low:G,manifest:null,max:null,maxLength:G,media:null,method:null,min:null,minLength:G,multiple:le,muted:le,name:null,nonce:null,noModule:le,noValidate:le,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:le,optimum:G,pattern:null,ping:Oe,placeholder:null,playsInline:le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:le,referrerPolicy:null,rel:Oe,required:le,reversed:le,rows:G,rowSpan:G,sandbox:Oe,scope:null,scoped:le,seamless:le,selected:le,shadowRootClonable:le,shadowRootDelegatesFocus:le,shadowRootMode:null,shape:null,size:G,sizes:null,slot:null,span:G,spellCheck:Me,src:null,srcDoc:null,srcLang:null,srcSet:null,start:G,step:null,style:null,tabIndex:G,target:null,title:null,translate:null,type:null,typeMustMatch:le,useMap:null,value:Me,width:G,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Oe,axis:null,background:null,bgColor:null,border:G,borderColor:null,bottomMargin:G,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:le,declare:le,event:null,face:null,frame:null,frameBorder:null,hSpace:G,leftMargin:G,link:null,longDesc:null,lowSrc:null,marginHeight:G,marginWidth:G,noResize:le,noHref:le,noShade:le,noWrap:le,object:null,profile:null,prompt:null,rev:null,rightMargin:G,rules:null,scheme:null,scrolling:Me,standby:null,summary:null,text:null,topMargin:G,valueType:null,version:null,vAlign:null,vLink:null,vSpace:G,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:le,disableRemotePlayback:le,prefix:null,property:null,results:G,security:null,unselectable:null},space:"html",transform:kx}),E1=Sn({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:tt,accentHeight:G,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:G,amplitude:G,arabicForm:null,ascent:G,attributeName:null,attributeType:null,azimuth:G,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:G,by:null,calcMode:null,capHeight:G,className:Oe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:G,diffuseConstant:G,direction:null,display:null,dur:null,divisor:G,dominantBaseline:null,download:le,dx:null,dy:null,edgeMode:null,editable:null,elevation:G,enableBackground:null,end:null,event:null,exponent:G,externalResourcesRequired:null,fill:null,fillOpacity:G,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:zr,g2:zr,glyphName:zr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:G,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:G,horizOriginX:G,horizOriginY:G,id:null,ideographic:G,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:G,k:G,k1:G,k2:G,k3:G,k4:G,kernelMatrix:tt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:G,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:G,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:G,overlineThickness:G,paintOrder:null,panose1:null,path:null,pathLength:G,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Oe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:G,pointsAtY:G,pointsAtZ:G,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tt,rev:tt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tt,requiredFeatures:tt,requiredFonts:tt,requiredFormats:tt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:G,specularExponent:G,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:G,strikethroughThickness:G,string:null,stroke:null,strokeDashArray:tt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:G,strokeOpacity:G,strokeWidth:null,style:null,surfaceScale:G,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tt,tabIndex:G,tableValues:null,target:null,targetX:G,targetY:G,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:G,underlineThickness:G,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:G,values:null,vAlphabetic:G,vMathematical:G,vectorEffect:null,vHanging:G,vIdeographic:G,version:null,vertAdvY:G,vertOriginX:G,vertOriginY:G,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:G,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:$x}),Rx=Sn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Dx=Sn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:kx}),Nx=Sn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),T1=/[A-Z]/g,uh=/-[a-z]/g,C1=/^data[-\w.:]+$/i;function Lx(e,t){const r=ai(t);let n=t,i=et;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&C1.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(uh,j1);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!uh.test(a)){let o=a.replace(T1,M1);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Xd}return new i(n,t)}function M1(e){return"-"+e.toLowerCase()}function j1(e){return e.charAt(1).toUpperCase()}const qx=jx([Ix,P1,Rx,Dx,Nx],"html"),Zd=jx([Ix,E1,Rx,Dx,Nx],"svg"),sh={}.hasOwnProperty;function I1(e,t){const r=t||{};function n(i,...a){let o=n.invalid;const u=n.handlers;if(i&&sh.call(i,e)){const s=String(i[e]);o=sh.call(u,s)?u[s]:n.unknown}if(o)return o.call(this,i,...a)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const $1=/["&'<>`]/g,k1=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,R1=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,D1=/[|\\{}()[\]^$+*?.]/g,lh=new WeakMap;function N1(e,t){if(e=e.replace(t.subset?L1(t.subset):$1,n),t.subset||t.escapeOnly)return e;return e.replace(k1,r).replace(R1,n);function r(i,a,o){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(a+2),t)}function n(i,a,o){return t.format(i.charCodeAt(0),o.charCodeAt(a+1),t)}}function L1(e){let t=lh.get(e);return t||(t=q1(e),lh.set(e,t)),t}function q1(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(D1,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const B1=/[\dA-Fa-f]/;function F1(e,t,r){const n="&#x"+e.toString(16).toUpperCase();return r&&t&&!B1.test(String.fromCharCode(t))?n:n+";"}const z1=/\d/;function U1(e,t,r){const n="&#"+String(e);return r&&t&&!z1.test(String.fromCharCode(t))?n:n+";"}const W1=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],au={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},H1=["cent","copy","divide","gt","lt","not","para","times"],Bx={}.hasOwnProperty,Af={};let Ji;for(Ji in au)Bx.call(au,Ji)&&(Af[au[Ji]]=Ji);const G1=/[^\dA-Za-z]/;function K1(e,t,r,n){const i=String.fromCharCode(e);if(Bx.call(Af,i)){const a=Af[i],o="&"+a;return r&&W1.includes(a)&&!H1.includes(a)&&(!n||t&&t!==61&&G1.test(String.fromCharCode(t)))?o:o+";"}return""}function V1(e,t,r){let n=F1(e,t,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=K1(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const a=U1(e,t,r.omitOptionalSemicolons);a.length<n.length&&(n=a)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function Ur(e,t){return N1(e,Object.assign({format:V1},t))}const Y1=/^>|^->|<!--|-->|--!>|<!-$/g,X1=[">"],Z1=["<",">"];function J1(e,t,r,n){return n.settings.bogusComments?"<?"+Ur(e.value,Object.assign({},n.settings.characterReferences,{subset:X1}))+">":"<!--"+e.value.replace(Y1,i)+"-->";function i(a){return Ur(a,Object.assign({},n.settings.characterReferences,{subset:Z1}))}}function Q1(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function ch(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}function fh(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){n===-1&&(n=r.length,a=!0);const o=r.slice(i,n).trim();(o||!a)&&t.push(o),i=n+1,n=r.indexOf(",",i)}return t}function e_(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function dh(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function t_(e){return e.join(" ").trim()}const r_=/[ \t\n\f\r]/g;function Jd(e){return typeof e=="object"?e.type==="text"?ph(e.value):!1:ph(e)}function ph(e){return e.replace(r_,"")===""}const Ne=zx(1),Fx=zx(-1),n_=[];function zx(e){return t;function t(r,n,i){const a=r?r.children:n_;let o=(n||0)+e,u=a[o];if(!i)for(;u&&Jd(u);)o+=e,u=a[o];return u}}const i_={}.hasOwnProperty;function Ux(e){return t;function t(r,n,i){return i_.call(e,r.tagName)&&e[r.tagName](r,n,i)}}const Qd=Ux({body:o_,caption:ou,colgroup:ou,dd:c_,dt:l_,head:ou,html:a_,li:s_,optgroup:f_,option:d_,p:u_,rp:hh,rt:hh,tbody:h_,td:vh,tfoot:v_,th:vh,thead:p_,tr:y_});function ou(e,t,r){const n=Ne(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&Jd(n.value.charAt(0)))}function a_(e,t,r){const n=Ne(r,t);return!n||n.type!=="comment"}function o_(e,t,r){const n=Ne(r,t);return!n||n.type!=="comment"}function u_(e,t,r){const n=Ne(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function s_(e,t,r){const n=Ne(r,t);return!n||n.type==="element"&&n.tagName==="li"}function l_(e,t,r){const n=Ne(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function c_(e,t,r){const n=Ne(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function hh(e,t,r){const n=Ne(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function f_(e,t,r){const n=Ne(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function d_(e,t,r){const n=Ne(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function p_(e,t,r){const n=Ne(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function h_(e,t,r){const n=Ne(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function v_(e,t,r){return!Ne(r,t)}function y_(e,t,r){const n=Ne(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function vh(e,t,r){const n=Ne(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const m_=Ux({body:x_,colgroup:w_,head:b_,html:g_,tbody:S_});function g_(e){const t=Ne(e,-1);return!t||t.type!=="comment"}function b_(e){const t=new Set;for(const n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}const r=e.children[0];return!r||r.type==="element"}function x_(e){const t=Ne(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Jd(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function w_(e,t,r){const n=Fx(r,t),i=Ne(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&Qd(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function S_(e,t,r){const n=Fx(r,t),i=Ne(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&Qd(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const Qi={name:[[`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("react/jsx-runtime"),Cs=require("@mui/icons-material"),T=require("@mui/material"),D=require("react"),qs=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Oe{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Oe.prototype.normal={};Oe.prototype.property={};Oe.prototype.space=void 0;function El(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new Oe(n,r,t)}function Me(e){return e.toLowerCase()}class W{constructor(t,n){this.attribute=n,this.property=t}}W.prototype.attribute="";W.prototype.booleanish=!1;W.prototype.boolean=!1;W.prototype.commaOrSpaceSeparated=!1;W.prototype.commaSeparated=!1;W.prototype.defined=!1;W.prototype.mustUseProperty=!1;W.prototype.number=!1;W.prototype.overloadedBoolean=!1;W.prototype.property="";W.prototype.spaceSeparated=!1;W.prototype.space=void 0;let Rs=0;const R=se(),k=se(),Jn=se(),g=se(),I=se(),he=se(),X=se();function se(){return 2**++Rs}const Qn=Object.freeze(Object.defineProperty({__proto__:null,boolean:R,booleanish:k,commaOrSpaceSeparated:X,commaSeparated:he,number:g,overloadedBoolean:Jn,spaceSeparated:I},Symbol.toStringTag,{value:"Module"})),Qe=Object.keys(Qn);class aa extends W{constructor(t,n,r,a){let i=-1;if(super(t,n),va(this,"space",a),typeof r=="number")for(;++i<Qe.length;){const o=Qe[i];va(this,Qe[i],(r&Qn[o])===Qn[o])}}}aa.prototype.defined=!0;function va(e,t,n){n&&(e[t]=n)}function me(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new aa(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Me(r)]=r,n[Me(i.attribute)]=r}return new Oe(t,n,e.space)}const Dl=me({properties:{ariaActiveDescendant:null,ariaAtomic:k,ariaAutoComplete:null,ariaBusy:k,ariaChecked:k,ariaColCount:g,ariaColIndex:g,ariaColSpan:g,ariaControls:I,ariaCurrent:null,ariaDescribedBy:I,ariaDetails:null,ariaDisabled:k,ariaDropEffect:I,ariaErrorMessage:null,ariaExpanded:k,ariaFlowTo:I,ariaGrabbed:k,ariaHasPopup:null,ariaHidden:k,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:I,ariaLevel:g,ariaLive:null,ariaModal:k,ariaMultiLine:k,ariaMultiSelectable:k,ariaOrientation:null,ariaOwns:I,ariaPlaceholder:null,ariaPosInSet:g,ariaPressed:k,ariaReadOnly:k,ariaRelevant:null,ariaRequired:k,ariaRoleDescription:I,ariaRowCount:g,ariaRowIndex:g,ariaRowSpan:g,ariaSelected:k,ariaSetSize:g,ariaSort:null,ariaValueMax:g,ariaValueMin:g,ariaValueNow:g,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Il(e,t){return t in e?e[t]:t}function Pl(e,t){return Il(e,t.toLowerCase())}const ws=me({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:he,acceptCharset:I,accessKey:I,action:null,allow:null,allowFullScreen:R,allowPaymentRequest:R,allowUserMedia:R,alt:null,as:null,async:R,autoCapitalize:null,autoComplete:I,autoFocus:R,autoPlay:R,blocking:I,capture:null,charSet:null,checked:R,cite:null,className:I,cols:g,colSpan:null,content:null,contentEditable:k,controls:R,controlsList:I,coords:g|he,crossOrigin:null,data:null,dateTime:null,decoding:null,default:R,defer:R,dir:null,dirName:null,disabled:R,download:Jn,draggable:k,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:R,formTarget:null,headers:I,height:g,hidden:Jn,high:g,href:null,hrefLang:null,htmlFor:I,httpEquiv:I,id:null,imageSizes:null,imageSrcSet:null,inert:R,inputMode:null,integrity:null,is:null,isMap:R,itemId:null,itemProp:I,itemRef:I,itemScope:R,itemType:I,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:R,low:g,manifest:null,max:null,maxLength:g,media:null,method:null,min:null,minLength:g,multiple:R,muted:R,name:null,nonce:null,noModule:R,noValidate:R,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:R,optimum:g,pattern:null,ping:I,placeholder:null,playsInline:R,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:R,referrerPolicy:null,rel:I,required:R,reversed:R,rows:g,rowSpan:g,sandbox:I,scope:null,scoped:R,seamless:R,selected:R,shadowRootClonable:R,shadowRootDelegatesFocus:R,shadowRootMode:null,shape:null,size:g,sizes:null,slot:null,span:g,spellCheck:k,src:null,srcDoc:null,srcLang:null,srcSet:null,start:g,step:null,style:null,tabIndex:g,target:null,title:null,translate:null,type:null,typeMustMatch:R,useMap:null,value:k,width:g,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:I,axis:null,background:null,bgColor:null,border:g,borderColor:null,bottomMargin:g,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:R,declare:R,event:null,face:null,frame:null,frameBorder:null,hSpace:g,leftMargin:g,link:null,longDesc:null,lowSrc:null,marginHeight:g,marginWidth:g,noResize:R,noHref:R,noShade:R,noWrap:R,object:null,profile:null,prompt:null,rev:null,rightMargin:g,rules:null,scheme:null,scrolling:k,standby:null,summary:null,text:null,topMargin:g,valueType:null,version:null,vAlign:null,vLink:null,vSpace:g,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:R,disableRemotePlayback:R,prefix:null,property:null,results:g,security:null,unselectable:null},space:"html",transform:Pl}),Ts=me({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:X,accentHeight:g,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:g,amplitude:g,arabicForm:null,ascent:g,attributeName:null,attributeType:null,azimuth:g,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:g,by:null,calcMode:null,capHeight:g,className:I,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:g,diffuseConstant:g,direction:null,display:null,dur:null,divisor:g,dominantBaseline:null,download:R,dx:null,dy:null,edgeMode:null,editable:null,elevation:g,enableBackground:null,end:null,event:null,exponent:g,externalResourcesRequired:null,fill:null,fillOpacity:g,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:he,g2:he,glyphName:he,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:g,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:g,horizOriginX:g,horizOriginY:g,id:null,ideographic:g,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:g,k:g,k1:g,k2:g,k3:g,k4:g,kernelMatrix:X,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:g,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:g,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:g,overlineThickness:g,paintOrder:null,panose1:null,path:null,pathLength:g,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:I,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:g,pointsAtY:g,pointsAtZ:g,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:X,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:X,rev:X,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:X,requiredFeatures:X,requiredFonts:X,requiredFormats:X,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:g,specularExponent:g,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:g,strikethroughThickness:g,string:null,stroke:null,strokeDashArray:X,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:g,strokeOpacity:g,strokeWidth:null,style:null,surfaceScale:g,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:X,tabIndex:g,tableValues:null,target:null,targetX:g,targetY:g,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:X,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:g,underlineThickness:g,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:g,values:null,vAlphabetic:g,vMathematical:g,vectorEffect:null,vHanging:g,vIdeographic:g,version:null,vertAdvY:g,vertOriginX:g,vertOriginY:g,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:g,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Il}),Ll=me({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),kl=me({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Pl}),Nl=me({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Ms=/[A-Z]/g,ba=/-[a-z]/g,Os=/^data[-\w.:]+$/i;function Fl(e,t){const n=Me(t);let r=t,a=W;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Os.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(ba,Ds);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!ba.test(i)){let o=i.replace(Ms,Es);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=aa}return new a(r,t)}function Es(e){return"-"+e.toLowerCase()}function Ds(e){return e.charAt(1).toUpperCase()}const jl=El([Dl,ws,Ll,kl,Nl],"html"),ia=El([Dl,Ts,Ll,kl,Nl],"svg"),_a={}.hasOwnProperty;function Is(e,t){const n=t||{};function r(a,...i){let o=r.invalid;const l=r.handlers;if(a&&_a.call(a,e)){const s=String(a[e]);o=_a.call(l,s)?l[s]:r.unknown}if(o)return o.call(this,a,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Ps=/["&'<>`]/g,Ls=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ks=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Ns=/[|\\{}()[\]^$+*?.]/g,Sa=new WeakMap;function Fs(e,t){if(e=e.replace(t.subset?js(t.subset):Ps,r),t.subset||t.escapeOnly)return e;return e.replace(Ls,n).replace(ks,r);function n(a,i,o){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,o.charCodeAt(i+2),t)}function r(a,i,o){return t.format(a.charCodeAt(0),o.charCodeAt(i+1),t)}}function js(e){let t=Sa.get(e);return t||(t=Bs(e),Sa.set(e,t)),t}function Bs(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(Ns,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const Hs=/[\dA-Fa-f]/;function zs(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!Hs.test(String.fromCharCode(t))?r:r+";"}const Us=/\d/;function Gs(e,t,n){const r="&#"+String(e);return n&&t&&!Us.test(String.fromCharCode(t))?r:r+";"}const $s=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],et={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Ks=["cent","copy","divide","gt","lt","not","para","times"],Bl={}.hasOwnProperty,ea={};let Fe;for(Fe in et)Bl.call(et,Fe)&&(ea[et[Fe]]=Fe);const Ws=/[^\dA-Za-z]/;function Ys(e,t,n,r){const a=String.fromCharCode(e);if(Bl.call(ea,a)){const i=ea[a],o="&"+i;return n&&$s.includes(i)&&!Ks.includes(i)&&(!r||t&&t!==61&&Ws.test(String.fromCharCode(t)))?o:o+";"}return""}function Vs(e,t,n){let r=zs(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=Ys(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const i=Gs(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function pe(e,t){return Fs(e,Object.assign({format:Vs},t))}const Xs=/^>|^->|<!--|-->|--!>|<!-$/g,Zs=[">"],Js=["<",">"];function Qs(e,t,n,r){return r.settings.bogusComments?"<?"+pe(e.value,Object.assign({},r.settings.characterReferences,{subset:Zs}))+">":"<!--"+e.value.replace(Xs,a)+"-->";function a(i){return pe(i,Object.assign({},r.settings.characterReferences,{subset:Js}))}}function eu(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function xa(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function Aa(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const o=n.slice(a,r).trim();(o||!i)&&t.push(o),a=r+1,r=n.indexOf(",",a)}return t}function tu(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function Ca(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function ru(e){return e.join(" ").trim()}const nu=/[ \t\n\f\r]/g;function oa(e){return typeof e=="object"?e.type==="text"?qa(e.value):!1:qa(e)}function qa(e){return e.replace(nu,"")===""}const j=zl(1),Hl=zl(-1),au=[];function zl(e){return t;function t(n,r,a){const i=n?n.children:au;let o=(r||0)+e,l=i[o];if(!a)for(;l&&oa(l);)o+=e,l=i[o];return l}}const iu={}.hasOwnProperty;function Ul(e){return t;function t(n,r,a){return iu.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const la=Ul({body:lu,caption:tt,colgroup:tt,dd:fu,dt:cu,head:tt,html:ou,li:uu,optgroup:du,option:hu,p:su,rp:Ra,rt:Ra,tbody:gu,td:wa,tfoot:mu,th:wa,thead:pu,tr:yu});function tt(e,t,n){const r=j(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&oa(r.value.charAt(0)))}function ou(e,t,n){const r=j(n,t);return!r||r.type!=="comment"}function lu(e,t,n){const r=j(n,t);return!r||r.type!=="comment"}function su(e,t,n){const r=j(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function uu(e,t,n){const r=j(n,t);return!r||r.type==="element"&&r.tagName==="li"}function cu(e,t,n){const r=j(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function fu(e,t,n){const r=j(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Ra(e,t,n){const r=j(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function du(e,t,n){const r=j(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function hu(e,t,n){const r=j(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function pu(e,t,n){const r=j(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function gu(e,t,n){const r=j(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function mu(e,t,n){return!j(n,t)}function yu(e,t,n){const r=j(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function wa(e,t,n){const r=j(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const vu=Ul({body:Su,colgroup:xu,head:_u,html:bu,tbody:Au});function bu(e){const t=j(e,-1);return!t||t.type!=="comment"}function _u(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function Su(e){const t=j(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&oa(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function xu(e,t,n){const r=Hl(n,t),a=j(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&la(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function Au(e,t,n){const r=Hl(n,t),a=j(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&la(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const je={name:[[`
2
2
  \f\r &/=>`.split(""),`
3
3
  \f\r "&'/=>\``.split("")],[`\0
4
4
  \f\r "&'/<=>`.split(""),`\0
@@ -6,117 +6,22 @@
6
6
  \f\r &>`.split(""),`\0
7
7
  \f\r "&'<=>\``.split("")],[`\0
8
8
  \f\r "&'<=>\``.split(""),`\0
9
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function O_(e,t,r,n){const i=n.schema,a=i.space==="svg"?!1:n.settings.omitOptionalTags;let o=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase());const u=[];let s;i.space==="html"&&e.tagName==="svg"&&(n.schema=Zd);const l=__(n,e.properties),f=n.all(i.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=i,f&&(o=!1),(l||!a||!m_(e,t,r))&&(u.push("<",e.tagName,l?" "+l:""),o&&(i.space==="svg"||n.settings.closeSelfClosing)&&(s=l.charAt(l.length-1),(!n.settings.tightSelfClosing||s==="/"||s&&s!=='"'&&s!=="'")&&u.push(" "),u.push("/")),u.push(">")),u.push(f),!o&&(!a||!Qd(e,t,r))&&u.push("</"+e.tagName+">"),u.join("")}function __(e,t){const r=[];let n=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const a=A_(e,i,t[i]);a&&r.push(a)}}for(;++n<r.length;){const a=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&a!=='"'&&a!=="'"&&(r[n]+=" ")}return r.join("")}function A_(e,t,r){const n=Lx(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,a=e.settings.allowDangerousCharacters?0:1;let o=e.quote,u;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const s=Ur(n.attribute,Object.assign({},e.settings.characterReferences,{subset:Qi.name[i][a]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?e_:t_)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?s:(e.settings.preferUnquoted&&(u=Ur(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Qi.unquoted[i][a]}))),u!==r&&(e.settings.quoteSmart&&ch(r,o)>ch(r,e.alternative)&&(o=e.alternative),u=o+Ur(r,Object.assign({},e.settings.characterReferences,{subset:(o==="'"?Qi.single:Qi.double)[i][a],attribute:!0}))+o),s+(u&&"="+u))}const P_=["<","&"];function Wx(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:Ur(e.value,Object.assign({},n.settings.characterReferences,{subset:P_}))}function E_(e,t,r,n){return n.settings.allowDangerousHtml?e.value:Wx(e,t,r,n)}function T_(e,t,r,n){return n.all(e)}const C_=I1("type",{invalid:M_,unknown:j_,handlers:{comment:J1,doctype:Q1,element:O_,raw:E_,root:T_,text:Wx}});function M_(e){throw new Error("Expected node, not `"+e+"`")}function j_(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const I_={},$_={},k_=[];function R_(e,t){const r=I_,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:D_,all:N_,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||_1,characterReferences:r.characterReferences||$_,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?Zd:qx,quote:n,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function D_(e,t,r){return C_(e,t,r,this)}function N_(e){const t=[],r=e&&e.children||k_;let n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}const dt={neoGrey:{200:"#EDEFEF",400:"#ADB5BD"},neoDigitalGreen:{600:"#40c048"}},Vn=["#4CA75A","#FDDA04","#FFC008","#FF9800","#F9A91B","#FF5C24","#ED4134","#CB3446"],Ke={arcAngle:180,maxSeats:200,useEnhanced:!0,chartConfig:{radius:220,seatSize:5,minSeatSize:4,maxSeatSize:18,spacing:1.1,innerRadiusRatio:.4,arcAngleFlexibility:5},colors:{emptySeats:"#f8f8f8",emptySeatsBorder:"#d8d8d8",seatBorder:"#fff"},animation:{transitionDuration:"0.2s",hoverOpacity:{active:"1",dimmed:"0.2",empty:"0.3"}},scaling:{enableScaling:!0,scaleThreshold:200}},Wr={COMPLETED:dt.neoDigitalGreen[600],NOT_APPLICABLE:"url(#greyHatchPattern)",NO_LST:"url(#noLstHatchPattern)",DATA_MISSING:"url(#dataMissingHatchPattern)"},Yn="N/A",Xn="No LST",Zn="Data Missing",yh=/[#.]/g;function L_(e,t){const r=e||"",n={};let i=0,a,o;for(;i<r.length;){yh.lastIndex=i;const u=yh.exec(r),s=r.slice(i,u?u.index:r.length);s&&(a?a==="#"?n.id=s:Array.isArray(n.className)?n.className.push(s):n.className=[s]:o=s,i+=s.length),u&&(a=u[0],i++)}return{type:"element",tagName:o||t||"div",properties:n,children:[]}}function Hx(e,t,r){const n=r?z_(r):void 0;function i(a,o,...u){let s;if(a==null){s={type:"root",children:[]};const l=o;u.unshift(l)}else{s=L_(a,t);const l=s.tagName.toLowerCase(),f=n?n.get(l):void 0;if(s.tagName=f||l,q_(o))u.unshift(o);else for(const[c,d]of Object.entries(o))B_(e,s.properties,c,d)}for(const l of u)Pf(s.children,l);return s.type==="element"&&s.tagName==="template"&&(s.content={type:"root",children:s.children},s.children=[]),s}return i}function q_(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const n of r){const i=t[n];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const o of a)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function B_(e,t,r,n){const i=Lx(e,r);let a;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;a=n}else typeof n=="boolean"?a=n:typeof n=="string"?i.spaceSeparated?a=dh(n):i.commaSeparated?a=fh(n):i.commaOrSpaceSeparated?a=dh(fh(n).join(" ")):a=mh(i,i.property,n):Array.isArray(n)?a=[...n]:a=i.property==="style"?F_(n):String(n);if(Array.isArray(a)){const o=[];for(const u of a)o.push(mh(i,i.property,u));a=o}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function Pf(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)Pf(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?Pf(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function mh(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||ai(r)===ai(t)))return!0}return r}function F_(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function z_(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const U_=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"];Hx(qx,"div");const Ui=Hx(Zd,"g",U_);var ea=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var uu,gh;function Gx(){if(gh)return uu;gh=1;var e=typeof ea=="object"&&ea&&ea.Object===Object&&ea;return uu=e,uu}var su,bh;function Ot(){if(bh)return su;bh=1;var e=Gx(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return su=r,su}var lu,xh;function W_(){if(xh)return lu;xh=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return lu=t,lu}var cu,wh;function H_(){if(wh)return cu;wh=1;var e=W_(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return cu=r,cu}var fu,Sh;function nr(){if(Sh)return fu;Sh=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return fu=e,fu}var du,Oh;function Wi(){if(Oh)return du;Oh=1;var e=Ot(),t=e.Symbol;return du=t,du}var pu,_h;function G_(){if(_h)return pu;_h=1;var e=Wi(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),s=o[i];try{o[i]=void 0;var l=!0}catch{}var f=n.call(o);return l&&(u?o[i]=s:delete o[i]),f}return pu=a,pu}var hu,Ah;function K_(){if(Ah)return hu;Ah=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return hu=r,hu}var vu,Ph;function Kt(){if(Ph)return vu;Ph=1;var e=Wi(),t=G_(),r=K_(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:n:a&&a in Object(u)?t(u):r(u)}return vu=o,vu}var yu,Eh;function Vt(){if(Eh)return yu;Eh=1;function e(t){return t!=null&&typeof t=="object"}return yu=e,yu}var mu,Th;function On(){if(Th)return mu;Th=1;var e=Kt(),t=Vt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return mu=n,mu}var gu,Ch;function ep(){if(Ch)return gu;Ch=1;var e=H_(),t=nr(),r=On(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function s(l){if(typeof l=="number")return l;if(r(l))return n;if(t(l)){var f=typeof l.valueOf=="function"?l.valueOf():l;l=t(f)?f+"":f}if(typeof l!="string")return l===0?l:+l;l=e(l);var c=a.test(l);return c||o.test(l)?u(l.slice(2),c?2:8):i.test(l)?n:+l}return gu=s,gu}var bu,Mh;function Kx(){if(Mh)return bu;Mh=1;var e=ep(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return bu=n,bu}var xu,jh;function tp(){if(jh)return xu;jh=1;var e=Kx();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return xu=t,xu}var wu,Ih;function go(){if(Ih)return wu;Ih=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return wu=e,wu}var Su,$h;function Ye(){if($h)return Su;$h=1;var e=Array.isArray;return Su=e,Su}var Ou,kh;function V_(){if(kh)return Ou;kh=1;var e=Wi(),t=go(),r=Ye(),n=On(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(r(u))return t(u,o)+"";if(n(u))return a?a.call(u):"";var s=u+"";return s=="0"&&1/u==-1/0?"-0":s}return Ou=o,Ou}var _u,Rh;function rp(){if(Rh)return _u;Rh=1;var e=V_();function t(r){return r==null?"":e(r)}return _u=t,_u}var Au,Dh;function Y_(){if(Dh)return Au;Dh=1;var e=Ot(),t=tp(),r=ep(),n=rp(),i=e.isFinite,a=Math.min;function o(u){var s=Math[u];return function(l,f){if(l=r(l),f=f==null?0:a(t(f),292),f&&i(l)){var c=(n(l)+"e").split("e"),d=s(c[0]+"e"+(+c[1]+f));return c=(n(d)+"e").split("e"),+(c[0]+"e"+(+c[1]-f))}return s(l)}}return Au=o,Au}var Pu,Nh;function X_(){if(Nh)return Pu;Nh=1;var e=Y_(),t=e("round");return Pu=t,Pu}var Z_=X_();const J_=xe(Z_);var Eu,Lh;function Vx(){if(Lh)return Eu;Lh=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return Eu=e,Eu}var Tu,qh;function Q_(){if(qh)return Tu;qh=1;var e=Kt(),t=Vt(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Tu=n,Tu}var Cu,Bh;function np(){if(Bh)return Cu;Bh=1;var e=Q_(),t=Vt(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return Cu=a,Cu}var Mu,Fh;function eA(){if(Fh)return Mu;Fh=1;var e=Wi(),t=np(),r=Ye(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Mu=i,Mu}var ju,zh;function Yx(){if(zh)return ju;zh=1;var e=Vx(),t=eA();function r(n,i,a,o,u){var s=-1,l=n.length;for(a||(a=t),u||(u=[]);++s<l;){var f=n[s];i>0&&a(f)?i>1?r(f,i-1,a,o,u):e(u,f):o||(u[u.length]=f)}return u}return ju=r,ju}var Iu,Uh;function ip(){if(Uh)return Iu;Uh=1;var e=Ye(),t=On(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return Iu=i,Iu}var $u,Wh;function ap(){if(Wh)return $u;Wh=1;var e=Kt(),t=nr(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var s=e(u);return s==n||s==i||s==r||s==a}return $u=o,$u}var ku,Hh;function tA(){if(Hh)return ku;Hh=1;var e=Ot(),t=e["__core-js_shared__"];return ku=t,ku}var Ru,Gh;function rA(){if(Gh)return Ru;Gh=1;var e=tA(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return Ru=r,Ru}var Du,Kh;function Xx(){if(Kh)return Du;Kh=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return Du=r,Du}var Nu,Vh;function nA(){if(Vh)return Nu;Vh=1;var e=ap(),t=rA(),r=nr(),n=Xx(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,l=u.hasOwnProperty,f=RegExp("^"+s.call(l).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function c(d){if(!r(d)||t(d))return!1;var p=e(d)?f:a;return p.test(n(d))}return Nu=c,Nu}var Lu,Yh;function iA(){if(Yh)return Lu;Yh=1;function e(t,r){return t==null?void 0:t[r]}return Lu=e,Lu}var qu,Xh;function Tr(){if(Xh)return qu;Xh=1;var e=nA(),t=iA();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return qu=r,qu}var Bu,Zh;function bo(){if(Zh)return Bu;Zh=1;var e=Tr(),t=e(Object,"create");return Bu=t,Bu}var Fu,Jh;function aA(){if(Jh)return Fu;Jh=1;var e=bo();function t(){this.__data__=e?e(null):{},this.size=0}return Fu=t,Fu}var zu,Qh;function oA(){if(Qh)return zu;Qh=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return zu=e,zu}var Uu,ev;function uA(){if(ev)return Uu;ev=1;var e=bo(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===t?void 0:u}return n.call(o,a)?o[a]:void 0}return Uu=i,Uu}var Wu,tv;function sA(){if(tv)return Wu;tv=1;var e=bo(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return Wu=n,Wu}var Hu,rv;function lA(){if(rv)return Hu;rv=1;var e=bo(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return Hu=r,Hu}var Gu,nv;function cA(){if(nv)return Gu;nv=1;var e=aA(),t=oA(),r=uA(),n=sA(),i=lA();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var l=o[u];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Gu=a,Gu}var Ku,iv;function fA(){if(iv)return Ku;iv=1;function e(){this.__data__=[],this.size=0}return Ku=e,Ku}var Vu,av;function op(){if(av)return Vu;av=1;function e(t,r){return t===r||t!==t&&r!==r}return Vu=e,Vu}var Yu,ov;function xo(){if(ov)return Yu;ov=1;var e=op();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Yu=t,Yu}var Xu,uv;function dA(){if(uv)return Xu;uv=1;var e=xo(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():r.call(a,o,1),--this.size,!0}return Xu=n,Xu}var Zu,sv;function pA(){if(sv)return Zu;sv=1;var e=xo();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Zu=t,Zu}var Ju,lv;function hA(){if(lv)return Ju;lv=1;var e=xo();function t(r){return e(this.__data__,r)>-1}return Ju=t,Ju}var Qu,cv;function vA(){if(cv)return Qu;cv=1;var e=xo();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Qu=t,Qu}var es,fv;function wo(){if(fv)return es;fv=1;var e=fA(),t=dA(),r=pA(),n=hA(),i=vA();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var l=o[u];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,es=a,es}var ts,dv;function up(){if(dv)return ts;dv=1;var e=Tr(),t=Ot(),r=e(t,"Map");return ts=r,ts}var rs,pv;function yA(){if(pv)return rs;pv=1;var e=cA(),t=wo(),r=up();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return rs=n,rs}var ns,hv;function mA(){if(hv)return ns;hv=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return ns=e,ns}var is,vv;function So(){if(vv)return is;vv=1;var e=mA();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return is=t,is}var as,yv;function gA(){if(yv)return as;yv=1;var e=So();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return as=t,as}var os,mv;function bA(){if(mv)return os;mv=1;var e=So();function t(r){return e(this,r).get(r)}return os=t,os}var us,gv;function xA(){if(gv)return us;gv=1;var e=So();function t(r){return e(this,r).has(r)}return us=t,us}var ss,bv;function wA(){if(bv)return ss;bv=1;var e=So();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return ss=t,ss}var ls,xv;function sp(){if(xv)return ls;xv=1;var e=yA(),t=gA(),r=bA(),n=xA(),i=wA();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var l=o[u];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,ls=a,ls}var cs,wv;function Zx(){if(wv)return cs;wv=1;var e=sp(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],s=a.cache;if(s.has(u))return s.get(u);var l=n.apply(this,o);return a.cache=s.set(u,l)||s,l};return a.cache=new(r.Cache||e),a}return r.Cache=e,cs=r,cs}var fs,Sv;function SA(){if(Sv)return fs;Sv=1;var e=Zx(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return fs=r,fs}var ds,Ov;function OA(){if(Ov)return ds;Ov=1;var e=SA(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,u,s,l){a.push(s?l.replace(r,"$1"):u||o)}),a});return ds=n,ds}var ps,_v;function Jx(){if(_v)return ps;_v=1;var e=Ye(),t=ip(),r=OA(),n=rp();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return ps=i,ps}var hs,Av;function Oo(){if(Av)return hs;Av=1;var e=On();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return hs=t,hs}var vs,Pv;function lp(){if(Pv)return vs;Pv=1;var e=Jx(),t=Oo();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return vs=r,vs}var ys,Ev;function _A(){if(Ev)return ys;Ev=1;var e=wo();function t(){this.__data__=new e,this.size=0}return ys=t,ys}var ms,Tv;function AA(){if(Tv)return ms;Tv=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return ms=e,ms}var gs,Cv;function PA(){if(Cv)return gs;Cv=1;function e(t){return this.__data__.get(t)}return gs=e,gs}var bs,Mv;function EA(){if(Mv)return bs;Mv=1;function e(t){return this.__data__.has(t)}return bs=e,bs}var xs,jv;function TA(){if(jv)return xs;jv=1;var e=wo(),t=up(),r=sp(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var s=u.__data__;if(!t||s.length<n-1)return s.push([a,o]),this.size=++u.size,this;u=this.__data__=new r(s)}return u.set(a,o),this.size=u.size,this}return xs=i,xs}var ws,Iv;function Qx(){if(Iv)return ws;Iv=1;var e=wo(),t=_A(),r=AA(),n=PA(),i=EA(),a=TA();function o(u){var s=this.__data__=new e(u);this.size=s.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,ws=o,ws}var Ss,$v;function CA(){if($v)return Ss;$v=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return Ss=t,Ss}var Os,kv;function MA(){if(kv)return Os;kv=1;function e(t){return this.__data__.has(t)}return Os=e,Os}var _s,Rv;function ew(){if(Rv)return _s;Rv=1;var e=sp(),t=CA(),r=MA();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,_s=n,_s}var As,Dv;function tw(){if(Dv)return As;Dv=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return As=e,As}var Ps,Nv;function rw(){if(Nv)return Ps;Nv=1;function e(t,r){return t.has(r)}return Ps=e,Ps}var Es,Lv;function nw(){if(Lv)return Es;Lv=1;var e=ew(),t=tw(),r=rw(),n=1,i=2;function a(o,u,s,l,f,c){var d=s&n,p=o.length,y=u.length;if(p!=y&&!(d&&y>p))return!1;var v=c.get(o),h=c.get(u);if(v&&h)return v==u&&h==o;var b=-1,w=!0,g=s&i?new e:void 0;for(c.set(o,u),c.set(u,o);++b<p;){var S=o[b],m=u[b];if(l)var x=d?l(m,S,b,u,o,c):l(S,m,b,o,u,c);if(x!==void 0){if(x)continue;w=!1;break}if(g){if(!t(u,function(_,A){if(!r(g,A)&&(S===_||f(S,_,s,l,c)))return g.push(A)})){w=!1;break}}else if(!(S===m||f(S,m,s,l,c))){w=!1;break}}return c.delete(o),c.delete(u),w}return Es=a,Es}var Ts,qv;function jA(){if(qv)return Ts;qv=1;var e=Ot(),t=e.Uint8Array;return Ts=t,Ts}var Cs,Bv;function IA(){if(Bv)return Cs;Bv=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return Cs=e,Cs}var Ms,Fv;function cp(){if(Fv)return Ms;Fv=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return Ms=e,Ms}var js,zv;function $A(){if(zv)return js;zv=1;var e=Wi(),t=jA(),r=op(),n=nw(),i=IA(),a=cp(),o=1,u=2,s="[object Boolean]",l="[object Date]",f="[object Error]",c="[object Map]",d="[object Number]",p="[object RegExp]",y="[object Set]",v="[object String]",h="[object Symbol]",b="[object ArrayBuffer]",w="[object DataView]",g=e?e.prototype:void 0,S=g?g.valueOf:void 0;function m(x,_,A,E,M,P,T){switch(A){case w:if(x.byteLength!=_.byteLength||x.byteOffset!=_.byteOffset)return!1;x=x.buffer,_=_.buffer;case b:return!(x.byteLength!=_.byteLength||!P(new t(x),new t(_)));case s:case l:case d:return r(+x,+_);case f:return x.name==_.name&&x.message==_.message;case p:case v:return x==_+"";case c:var j=i;case y:var $=E&o;if(j||(j=a),x.size!=_.size&&!$)return!1;var k=T.get(x);if(k)return k==_;E|=u,T.set(x,_);var R=n(j(x),j(_),E,M,P,T);return T.delete(x),R;case h:if(S)return S.call(x)==S.call(_)}return!1}return js=m,js}var Is,Uv;function kA(){if(Uv)return Is;Uv=1;var e=Vx(),t=Ye();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return Is=r,Is}var $s,Wv;function RA(){if(Wv)return $s;Wv=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var u=t[n];r(u,n,t)&&(o[a++]=u)}return o}return $s=e,$s}var ks,Hv;function DA(){if(Hv)return ks;Hv=1;function e(){return[]}return ks=e,ks}var Rs,Gv;function NA(){if(Gv)return Rs;Gv=1;var e=RA(),t=DA(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(u){return n.call(o,u)}))}:t;return Rs=a,Rs}var Ds,Kv;function LA(){if(Kv)return Ds;Kv=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Ds=e,Ds}var Hn={exports:{}},Ns,Vv;function qA(){if(Vv)return Ns;Vv=1;function e(){return!1}return Ns=e,Ns}Hn.exports;var Yv;function iw(){return Yv||(Yv=1,(function(e,t){var r=Ot(),n=qA(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?r.Buffer:void 0,s=u?u.isBuffer:void 0,l=s||n;e.exports=l})(Hn,Hn.exports)),Hn.exports}var Ls,Xv;function fp(){if(Xv)return Ls;Xv=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Ls=r,Ls}var qs,Zv;function dp(){if(Zv)return qs;Zv=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return qs=t,qs}var Bs,Jv;function BA(){if(Jv)return Bs;Jv=1;var e=Kt(),t=dp(),r=Vt(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",s="[object Function]",l="[object Map]",f="[object Number]",c="[object Object]",d="[object RegExp]",p="[object Set]",y="[object String]",v="[object WeakMap]",h="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",g="[object Float64Array]",S="[object Int8Array]",m="[object Int16Array]",x="[object Int32Array]",_="[object Uint8Array]",A="[object Uint8ClampedArray]",E="[object Uint16Array]",M="[object Uint32Array]",P={};P[w]=P[g]=P[S]=P[m]=P[x]=P[_]=P[A]=P[E]=P[M]=!0,P[n]=P[i]=P[h]=P[a]=P[b]=P[o]=P[u]=P[s]=P[l]=P[f]=P[c]=P[d]=P[p]=P[y]=P[v]=!1;function T(j){return r(j)&&t(j.length)&&!!P[e(j)]}return Bs=T,Bs}var Fs,Qv;function aw(){if(Qv)return Fs;Qv=1;function e(t){return function(r){return t(r)}}return Fs=e,Fs}var Gn={exports:{}};Gn.exports;var ey;function FA(){return ey||(ey=1,(function(e,t){var r=Gx(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,u=(function(){try{var s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}})();e.exports=u})(Gn,Gn.exports)),Gn.exports}var zs,ty;function ow(){if(ty)return zs;ty=1;var e=BA(),t=aw(),r=FA(),n=r&&r.isTypedArray,i=n?t(n):e;return zs=i,zs}var Us,ry;function zA(){if(ry)return Us;ry=1;var e=LA(),t=np(),r=Ye(),n=iw(),i=fp(),a=ow(),o=Object.prototype,u=o.hasOwnProperty;function s(l,f){var c=r(l),d=!c&&t(l),p=!c&&!d&&n(l),y=!c&&!d&&!p&&a(l),v=c||d||p||y,h=v?e(l.length,String):[],b=h.length;for(var w in l)(f||u.call(l,w))&&!(v&&(w=="length"||p&&(w=="offset"||w=="parent")||y&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||i(w,b)))&&h.push(w);return h}return Us=s,Us}var Ws,ny;function UA(){if(ny)return Ws;ny=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Ws=t,Ws}var Hs,iy;function uw(){if(iy)return Hs;iy=1;function e(t,r){return function(n){return t(r(n))}}return Hs=e,Hs}var Gs,ay;function WA(){if(ay)return Gs;ay=1;var e=uw(),t=e(Object.keys,Object);return Gs=t,Gs}var Ks,oy;function HA(){if(oy)return Ks;oy=1;var e=UA(),t=WA(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var u in Object(a))n.call(a,u)&&u!="constructor"&&o.push(u);return o}return Ks=i,Ks}var Vs,uy;function Hi(){if(uy)return Vs;uy=1;var e=ap(),t=dp();function r(n){return n!=null&&t(n.length)&&!e(n)}return Vs=r,Vs}var Ys,sy;function Gi(){if(sy)return Ys;sy=1;var e=zA(),t=HA(),r=Hi();function n(i){return r(i)?e(i):t(i)}return Ys=n,Ys}var Xs,ly;function GA(){if(ly)return Xs;ly=1;var e=kA(),t=NA(),r=Gi();function n(i){return e(i,r,t)}return Xs=n,Xs}var Zs,cy;function KA(){if(cy)return Zs;cy=1;var e=GA(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,s,l,f){var c=u&t,d=e(a),p=d.length,y=e(o),v=y.length;if(p!=v&&!c)return!1;for(var h=p;h--;){var b=d[h];if(!(c?b in o:n.call(o,b)))return!1}var w=f.get(a),g=f.get(o);if(w&&g)return w==o&&g==a;var S=!0;f.set(a,o),f.set(o,a);for(var m=c;++h<p;){b=d[h];var x=a[b],_=o[b];if(s)var A=c?s(_,x,b,o,a,f):s(x,_,b,a,o,f);if(!(A===void 0?x===_||l(x,_,u,s,f):A)){S=!1;break}m||(m=b=="constructor")}if(S&&!m){var E=a.constructor,M=o.constructor;E!=M&&"constructor"in a&&"constructor"in o&&!(typeof E=="function"&&E instanceof E&&typeof M=="function"&&M instanceof M)&&(S=!1)}return f.delete(a),f.delete(o),S}return Zs=i,Zs}var Js,fy;function VA(){if(fy)return Js;fy=1;var e=Tr(),t=Ot(),r=e(t,"DataView");return Js=r,Js}var Qs,dy;function YA(){if(dy)return Qs;dy=1;var e=Tr(),t=Ot(),r=e(t,"Promise");return Qs=r,Qs}var el,py;function sw(){if(py)return el;py=1;var e=Tr(),t=Ot(),r=e(t,"Set");return el=r,el}var tl,hy;function XA(){if(hy)return tl;hy=1;var e=Tr(),t=Ot(),r=e(t,"WeakMap");return tl=r,tl}var rl,vy;function ZA(){if(vy)return rl;vy=1;var e=VA(),t=up(),r=YA(),n=sw(),i=XA(),a=Kt(),o=Xx(),u="[object Map]",s="[object Object]",l="[object Promise]",f="[object Set]",c="[object WeakMap]",d="[object DataView]",p=o(e),y=o(t),v=o(r),h=o(n),b=o(i),w=a;return(e&&w(new e(new ArrayBuffer(1)))!=d||t&&w(new t)!=u||r&&w(r.resolve())!=l||n&&w(new n)!=f||i&&w(new i)!=c)&&(w=function(g){var S=a(g),m=S==s?g.constructor:void 0,x=m?o(m):"";if(x)switch(x){case p:return d;case y:return u;case v:return l;case h:return f;case b:return c}return S}),rl=w,rl}var nl,yy;function JA(){if(yy)return nl;yy=1;var e=Qx(),t=nw(),r=$A(),n=KA(),i=ZA(),a=Ye(),o=iw(),u=ow(),s=1,l="[object Arguments]",f="[object Array]",c="[object Object]",d=Object.prototype,p=d.hasOwnProperty;function y(v,h,b,w,g,S){var m=a(v),x=a(h),_=m?f:i(v),A=x?f:i(h);_=_==l?c:_,A=A==l?c:A;var E=_==c,M=A==c,P=_==A;if(P&&o(v)){if(!o(h))return!1;m=!0,E=!1}if(P&&!E)return S||(S=new e),m||u(v)?t(v,h,b,w,g,S):r(v,h,_,b,w,g,S);if(!(b&s)){var T=E&&p.call(v,"__wrapped__"),j=M&&p.call(h,"__wrapped__");if(T||j){var $=T?v.value():v,k=j?h.value():h;return S||(S=new e),g($,k,b,w,S)}}return P?(S||(S=new e),n(v,h,b,w,g,S)):!1}return nl=y,nl}var il,my;function pp(){if(my)return il;my=1;var e=JA(),t=Vt();function r(n,i,a,o,u){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,u)}return il=r,il}var al,gy;function QA(){if(gy)return al;gy=1;var e=Qx(),t=pp(),r=1,n=2;function i(a,o,u,s){var l=u.length,f=l,c=!s;if(a==null)return!f;for(a=Object(a);l--;){var d=u[l];if(c&&d[2]?d[1]!==a[d[0]]:!(d[0]in a))return!1}for(;++l<f;){d=u[l];var p=d[0],y=a[p],v=d[1];if(c&&d[2]){if(y===void 0&&!(p in a))return!1}else{var h=new e;if(s)var b=s(y,v,p,a,o,h);if(!(b===void 0?t(v,y,r|n,s,h):b))return!1}}return!0}return al=i,al}var ol,by;function lw(){if(by)return ol;by=1;var e=nr();function t(r){return r===r&&!e(r)}return ol=t,ol}var ul,xy;function eP(){if(xy)return ul;xy=1;var e=lw(),t=Gi();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],u=n[o];i[a]=[o,u,e(u)]}return i}return ul=r,ul}var sl,wy;function cw(){if(wy)return sl;wy=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return sl=e,sl}var ll,Sy;function tP(){if(Sy)return ll;Sy=1;var e=QA(),t=eP(),r=cw();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return ll=n,ll}var cl,Oy;function fw(){if(Oy)return cl;Oy=1;var e=lp();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return cl=t,cl}var fl,_y;function rP(){if(_y)return fl;_y=1;function e(t,r){return t!=null&&r in Object(t)}return fl=e,fl}var dl,Ay;function nP(){if(Ay)return dl;Ay=1;var e=Jx(),t=np(),r=Ye(),n=fp(),i=dp(),a=Oo();function o(u,s,l){s=e(s,u);for(var f=-1,c=s.length,d=!1;++f<c;){var p=a(s[f]);if(!(d=u!=null&&l(u,p)))break;u=u[p]}return d||++f!=c?d:(c=u==null?0:u.length,!!c&&i(c)&&n(p,c)&&(r(u)||t(u)))}return dl=o,dl}var pl,Py;function iP(){if(Py)return pl;Py=1;var e=rP(),t=nP();function r(n,i){return n!=null&&t(n,i,e)}return pl=r,pl}var hl,Ey;function aP(){if(Ey)return hl;Ey=1;var e=pp(),t=fw(),r=iP(),n=ip(),i=lw(),a=cw(),o=Oo(),u=1,s=2;function l(f,c){return n(f)&&i(c)?a(o(f),c):function(d){var p=t(d,f);return p===void 0&&p===c?r(d,f):e(c,p,u|s)}}return hl=l,hl}var vl,Ty;function _n(){if(Ty)return vl;Ty=1;function e(t){return t}return vl=e,vl}var yl,Cy;function oP(){if(Cy)return yl;Cy=1;function e(t){return function(r){return r==null?void 0:r[t]}}return yl=e,yl}var ml,My;function uP(){if(My)return ml;My=1;var e=lp();function t(r){return function(n){return e(n,r)}}return ml=t,ml}var gl,jy;function sP(){if(jy)return gl;jy=1;var e=oP(),t=uP(),r=ip(),n=Oo();function i(a){return r(a)?e(n(a)):t(a)}return gl=i,gl}var bl,Iy;function ir(){if(Iy)return bl;Iy=1;var e=tP(),t=aP(),r=_n(),n=Ye(),i=sP();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return bl=a,bl}var xl,$y;function lP(){if($y)return xl;$y=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),u=i(r),s=u.length;s--;){var l=u[t?s:++a];if(n(o[l],l,o)===!1)break}return r}}return xl=e,xl}var wl,ky;function cP(){if(ky)return wl;ky=1;var e=lP(),t=e();return wl=t,wl}var Sl,Ry;function dw(){if(Ry)return Sl;Ry=1;var e=cP(),t=Gi();function r(n,i){return n&&e(n,i,t)}return Sl=r,Sl}var Ol,Dy;function fP(){if(Dy)return Ol;Dy=1;var e=Hi();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,u=n?o:-1,s=Object(i);(n?u--:++u<o)&&a(s[u],u,s)!==!1;);return i}}return Ol=t,Ol}var _l,Ny;function hp(){if(Ny)return _l;Ny=1;var e=dw(),t=fP(),r=t(e);return _l=r,_l}var Al,Ly;function pw(){if(Ly)return Al;Ly=1;var e=hp(),t=Hi();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(u,s,l){o[++a]=i(u,s,l)}),o}return Al=r,Al}var Pl,qy;function dP(){if(qy)return Pl;qy=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Pl=e,Pl}var El,By;function pP(){if(By)return El;By=1;var e=On();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,u=e(r),s=n!==void 0,l=n===null,f=n===n,c=e(n);if(!l&&!c&&!u&&r>n||u&&s&&f&&!l&&!c||a&&s&&f||!i&&f||!o)return 1;if(!a&&!u&&!c&&r<n||c&&i&&o&&!a&&!u||l&&i&&o||!s&&o||!f)return-1}return 0}return El=t,El}var Tl,Fy;function hP(){if(Fy)return Tl;Fy=1;var e=pP();function t(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,s=o.length,l=i.length;++a<s;){var f=e(o[a],u[a]);if(f){if(a>=l)return f;var c=i[a];return f*(c=="desc"?-1:1)}}return r.index-n.index}return Tl=t,Tl}var Cl,zy;function vP(){if(zy)return Cl;zy=1;var e=go(),t=lp(),r=ir(),n=pw(),i=dP(),a=aw(),o=hP(),u=_n(),s=Ye();function l(f,c,d){c.length?c=e(c,function(v){return s(v)?function(h){return t(h,v.length===1?v[0]:v)}:v}):c=[u];var p=-1;c=e(c,a(r));var y=n(f,function(v,h,b){var w=e(c,function(g){return g(v)});return{criteria:w,index:++p,value:v}});return i(y,function(v,h){return o(v,h,d)})}return Cl=l,Cl}var Ml,Uy;function yP(){if(Uy)return Ml;Uy=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Ml=e,Ml}var jl,Wy;function mP(){if(Wy)return jl;Wy=1;var e=yP(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,u=-1,s=t(o.length-i,0),l=Array(s);++u<s;)l[u]=o[i+u];u=-1;for(var f=Array(i+1);++u<i;)f[u]=o[u];return f[i]=a(l),e(n,this,f)}}return jl=r,jl}var Il,Hy;function gP(){if(Hy)return Il;Hy=1;function e(t){return function(){return t}}return Il=e,Il}var $l,Gy;function hw(){if(Gy)return $l;Gy=1;var e=Tr(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return $l=t,$l}var kl,Ky;function bP(){if(Ky)return kl;Ky=1;var e=gP(),t=hw(),r=_n(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return kl=n,kl}var Rl,Vy;function xP(){if(Vy)return Rl;Vy=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var u=r(),s=t-(u-o);if(o=u,s>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Rl=n,Rl}var Dl,Yy;function wP(){if(Yy)return Dl;Yy=1;var e=bP(),t=xP(),r=t(e);return Dl=r,Dl}var Nl,Xy;function SP(){if(Xy)return Nl;Xy=1;var e=_n(),t=mP(),r=wP();function n(i,a){return r(t(i,a,e),i+"")}return Nl=n,Nl}var Ll,Zy;function Ki(){if(Zy)return Ll;Zy=1;var e=op(),t=Hi(),r=fp(),n=nr();function i(a,o,u){if(!n(u))return!1;var s=typeof o;return(s=="number"?t(u)&&r(o,u.length):s=="string"&&o in u)?e(u[o],a):!1}return Ll=i,Ll}var ql,Jy;function OP(){if(Jy)return ql;Jy=1;var e=Yx(),t=vP(),r=SP(),n=Ki(),i=r(function(a,o){if(a==null)return[];var u=o.length;return u>1&&n(a,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return ql=i,ql}var _P=OP();const _o=xe(_P);var Bl,Qy;function AP(){if(Qy)return Bl;Qy=1;function e(t){for(var r=-1,n=t==null?0:t.length,i={};++r<n;){var a=t[r];i[a[0]]=a[1]}return i}return Bl=e,Bl}var PP=AP();const em=xe(PP);var Fl,tm;function EP(){if(tm)return Fl;tm=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var u=-1,s=t(e((i-n)/(a||1)),0),l=Array(s);s--;)l[o?s:++u]=n,n+=a;return l}return Fl=r,Fl}var zl,rm;function TP(){if(rm)return zl;rm=1;var e=EP(),t=Ki(),r=Kx();function n(i){return function(a,o,u){return u&&typeof u!="number"&&t(a,o,u)&&(o=u=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),u=u===void 0?a<o?1:-1:r(u),e(a,o,u,i)}}return zl=n,zl}var Ul,nm;function CP(){if(nm)return Ul;nm=1;var e=TP(),t=e();return Ul=t,Ul}var MP=CP();const oi=xe(MP);var Wl,im;function jP(){if(im)return Wl;im=1;var e=go(),t=ir(),r=pw(),n=Ye();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return Wl=i,Wl}var Hl,am;function IP(){if(am)return Hl;am=1;var e=Yx(),t=jP();function r(n,i){return e(t(n,i),1)}return Hl=r,Hl}var $P=IP();const vw=xe($P);var Gl,om;function yw(){if(om)return Gl;om=1;function e(t,r,n){return t===t&&(n!==void 0&&(t=t<=n?t:n),r!==void 0&&(t=t>=r?t:r)),t}return Gl=e,Gl}var Kl,um;function kP(){if(um)return Kl;um=1;function e(t,r){var n=-1,i=t.length;for(r||(r=Array(i));++n<i;)r[n]=t[n];return r}return Kl=e,Kl}var Vl,sm;function RP(){if(sm)return Vl;sm=1;var e=Math.floor,t=Math.random;function r(n,i){return n+e(t()*(i-n+1))}return Vl=r,Vl}var Yl,lm;function mw(){if(lm)return Yl;lm=1;var e=RP();function t(r,n){var i=-1,a=r.length,o=a-1;for(n=n===void 0?a:n;++i<n;){var u=e(i,o),s=r[u];r[u]=r[i],r[i]=s}return r.length=n,r}return Yl=t,Yl}var Xl,cm;function DP(){if(cm)return Xl;cm=1;var e=yw(),t=kP(),r=mw();function n(i,a){return r(t(i),e(a,0,i.length))}return Xl=n,Xl}var Zl,fm;function NP(){if(fm)return Zl;fm=1;var e=go();function t(r,n){return e(n,function(i){return r[i]})}return Zl=t,Zl}var Jl,dm;function LP(){if(dm)return Jl;dm=1;var e=NP(),t=Gi();function r(n){return n==null?[]:e(n,t(n))}return Jl=r,Jl}var Ql,pm;function qP(){if(pm)return Ql;pm=1;var e=yw(),t=mw(),r=LP();function n(i,a){var o=r(i);return t(o,e(a,0,o.length))}return Ql=n,Ql}var ec,hm;function BP(){if(hm)return ec;hm=1;var e=DP(),t=qP(),r=Ye(),n=Ki(),i=tp();function a(o,u,s){(s?n(o,u,s):u===void 0)?u=1:u=i(u);var l=r(o)?e:t;return l(o,u)}return ec=a,ec}var FP=BP();const zP=xe(FP),UP=e=>J_(e,14),vm=e=>Object.values(e).reduce((t,r)=>t+r,0),WP=(e,t,r={})=>{const n=Object.assign({draw:!1},r);if(Object.values(e).length<1)throw new Error("vote distribution must contain at least one party");if(!Object.values(e).every(y=>typeof y=="number"&&y>=0))throw new Error("party vote counts must be non-negative integers");if(!Number.isInteger(t)||t<=0)throw new Error("seats must be a positive integer");if(typeof n.draw!="boolean")throw new Error("opt.draw must be a boolean");const i=vm(e),a=em(Object.entries(e).map(([y,v])=>{const h=Math.max(t-Object.keys(e).length,0),b=Math.round(h*v/i);return[y,b]})),o=em(Object.entries(e).map(([y,v])=>{const h=t+Object.keys(e).length,b=Math.min(Math.round(h*v/i),t);return[y,b]})),u=vw(Object.entries(e).map(([y,v])=>{const h=a[y],b=o[y];return oi(h,b).map(w=>{const g=UP(v/(w+.5));return{party:y,quotient:g}})})),s=vm(a),l=t-s,f=_o(u,({quotient:y})=>-y),c=f[l-1].quotient,d=f.filter(({quotient:y})=>y>c),p=f.filter(({quotient:y})=>y===c);if(d.length+p.length===l)d.push(...p);else{if(!n.draw)throw new Error("result is ambiguous, a draw would need to be made, but opt.draw is disabled");d.push(...zP(p,l-d.length))}return d.reduce((y,{party:v})=>(y[v]+=1,y),a)},gw=(e=Ui)=>e("pattern",{id:"greyHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:dt.neoGrey[200]}),e("path",{d:"M0,2 L8,2",stroke:dt.neoGrey[400],"stroke-width":.5}),e("path",{d:"M0,6 L8,6",stroke:dt.neoGrey[400],"stroke-width":.5})]),bw=(e=Ui)=>e("pattern",{id:"dataMissingHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:"#FFF3CC"}),e("path",{d:"M0,8 L8,0",stroke:"#FFB800","stroke-width":.5}),e("path",{d:"M-2,2 L2,-2",stroke:"#FFB800","stroke-width":.5}),e("path",{d:"M6,10 L10,6",stroke:"#FFB800","stroke-width":.5})]),xw=(e=Ui)=>e("pattern",{id:"noLstHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:"#FFE5E5"}),e("path",{d:"M0,0 L8,8",stroke:"#ED4134","stroke-width":.5}),e("path",{d:"M-2,6 L2,10",stroke:"#ED4134","stroke-width":.5}),e("path",{d:"M6,-2 L10,2",stroke:"#ED4134","stroke-width":.5})]),Ue={greyHatch:{background:dt.neoGrey[200],lines:dt.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}},ma=e=>Math.round(e*1e10)/1e10,HP=e=>e.reduce((t,r)=>t+r.seats,0),GP=e=>e.flat(),KP=(e,t,r)=>{const n=(Math.PI-r)/2,i=t/e+n-Math.PI;return{x:ma(e*Math.cos(i)),y:ma(e*Math.sin(i))}},ww=(e,t,r,n)=>{const i=n*t*r/(e-t),a=1+n*(t-1)*t/2/(e-t);return i/a},$n=(e,t,r,n)=>{const i=n/Math.PI*.7142857142857143;return Math.abs(ww(e,t,r,n)*t/r-i)},VP=(e,t,r)=>{let n=Math.floor(Math.log(e)/Math.log(2))||1,i=$n(e,n,t,r),a=0;for($n(e,n+1,t,r)<i&&(a=1),$n(e,n-1,t,r)<i&&n>1&&(a=-1);$n(e,n+a,t,r)<i&&n>0;)i=$n(e,n+a,t,r),n+=a;return n},YP=(e,t)=>{var i,a;let r,n;for(let o=0;o<e.length;o++)n=ma((t[o]||0)/(((i=e[o])==null?void 0:i.length)??1)),(!r||n<r)&&(r=n);for(let o=0;o<e.length;o++)if(n=ma((t[o]||0)/(((a=e[o])==null?void 0:a.length)??1)),n===r)return o;return 0},XP=(e,t,r)=>{const n=HP(e),i=VP(n,t,r),a=ww(n,i,t,r);let o={};for(let d=1;d<=i;d++)o[d]=t-(d-1)*a;o=WP(o,n);const u=[];let s,l,f;for(let d=1;d<=i;d++){const p=[];s=t-(d-1)*a,l=r*s/((o[d]??1)-1||1);for(let y=0;y<=(o[d]??1)-1;y++)f={...KP(s,y*l,r),r:.4*a},p.push(f);u.push(p)}const c=Array(u.length).fill(0);for(const d of e)for(let p=0;p<d.seats;p++){const y=YP(u,c),v=u[y],h=c[y]??0,b=v==null?void 0:v[h];b&&(b.fill=d.colour,b.party=String(d.id)),c[y]=h+1}return GP(u)},ZP=e=>t=>e("circle",{cx:t.x,cy:t.y,r:t.r,fill:t.fill,class:t.party}),JP={seatCount:!1,arcAngle:180,hFunction:Ui},QP=(e,t={})=>{var h;const{seatCount:r,arcAngle:n,hFunction:i}=Object.assign({},JP,t);if(typeof r!="boolean")throw new Error("`seatCount` option must be a boolean");if(typeof i!="function")throw new Error("`hFunction` option must be a function");if(typeof n!="number"||n<=0||n>360)throw new Error("`arcAngle` option must be a number between 0 and 360");const a=n*Math.PI/180,o=20,u=XP(e,o,a),s=(((h=u[0])==null?void 0:h.r)??0)/.4||0,l=u.map(ZP(i));r&&l.push(i("text",{x:0,y:0,"text-anchor":"middle",style:{"font-family":"Helvetica","font-size":.25*o+"px"},class:"seatNumber"},String(l.length)));const f=n<=180?o+s:o*(1+Math.sin((a-Math.PI)/2))+s,c=o+s,d=Math.max(f,c),p=n<=180?-o-s/2:-o*(1+Math.sin((a-Math.PI)/2))-s/2,y=i("defs",[gw(i),bw(i),xw(i)]);return i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:[-o-s/2,p,2*o+s,d].join(",")},[y,...l])},eE={seatCount:!1,arcAngle:200,arcAngleFlexibility:5,radius:380,seatSize:4.5,minSeatSize:1.8,maxSeatSize:3,spacing:1.8,innerRadiusRatio:.6,showLabels:!0,hFunction:Ui},tE=(e,t={})=>{const r={...eE,...t},{arcAngle:n,arcAngleFlexibility:i,radius:a,seatSize:o,minSeatSize:u,maxSeatSize:s,spacing:l,innerRadiusRatio:f,showLabels:c,hFunction:d}=r,p=a*f,y=e.reduce((V,B)=>V+B.seats,0);let v={seatSize:o,arcAngle:n,score:-1};const h=n-i,b=n+i;for(let V=h;V<=b;V+=2.5){const B=V*Math.PI/180;for(let H=s;H>=u;H-=.1){const Z=H*2,C=Z*l,ie=Math.floor((a-p)/C);for(let U=1;U<=Math.min(ie,10);U++){let ue=0;for(let he=0;he<U;he++){const Te=p+(he+.5)*C,Xe=Z*l/Te,At=Math.floor(B/Xe);ue+=At}if(ue>=y){const he=y/ue,Te=(H-u)/(s-u),Xe=(ue-y)/y,At=Xe<.15?1:Xe<.3?.7:Xe<.5?.4:.1,$r=1-Math.abs(V-n)/i,Pt=At*.5+Te*.3+he*.15+$r*.05;Pt>v.score&&(v={seatSize:H,arcAngle:V,rings:U,score:Pt})}}}}const w=v.seatSize,g=v.arcAngle,S=g*Math.PI/180,m=w*2,x=m*l,_=Math.floor((a-p)/x),A=[],E=-S/2-Math.PI/2,M=[];let P=0,T=[];for(let V=1;V<=_;V++){let B=0;const H=[];for(let Z=0;Z<V;Z++){const C=p+(Z+.5)*x,ie=m*l/C,U=Math.floor(S/ie);H.push(U),B+=U}if(B>=y){P=V,T=H;break}}if(P>0)M.push(...T);else for(let V=0;V<_;V++){const B=p+(V+.5)*x,H=m*l/B,Z=Math.floor(S/H);M.push(Z)}for(let V=0;V<M.length;V++){const B=p+(V+.5)*x,H=M[V]??0;if(H>0){const Z=S/H;for(let C=0;C<H;C++){const ie=E+(C+.5)*Z,U=Math.cos(ie)*B,ue=Math.sin(ie)*B;A.push({ring:V,index:C,angle:ie,x:U,y:ue})}}}A.sort((V,B)=>{const H=V.angle-B.angle;return Math.abs(H)>.001?H:V.ring-B.ring});const j=[];let $=0;e.forEach(V=>{const B=[],H=Math.min(V.seats,A.length-$);let Z=1/0,C=-1/0;for(let U=0;U<H&&$<A.length;U++){const ue=A[$++];ue&&(Z=Math.min(Z,ue.angle),C=Math.max(C,ue.angle),Math.sqrt(ue.x*ue.x+ue.y*ue.y),B.push(d("circle",{fill:V.colour,stroke:V.colour,className:"circle seat-visual seat-hover-zone",transform:`translate(${ue.x}, ${ue.y})`,r:w,"data-party":V.name,"data-party-id":String(V.id),style:"pointer-events: all; cursor: pointer;"})))}const ie=B;j.push(d("g",{className:"party-group","data-party":V.name,style:"opacity: 1; outline: none;"},ie))});const k=d("g",{className:"arc-bg"},[d("circle",{className:"outer",cx:0,cy:0,fill:"#ffffff",r:a}),d("circle",{className:"inner",cx:0,cy:0,fill:"#ffffff",r:p})]),R=d("g",{className:"points-container"},j),D=c?d("g",{className:"label-container",mask:"url(#label-clip)",style:"pointer-events: none;"},[d("text",{className:"party_count",dy:"-0.05em",style:"font-size: 24vw; font-weight: bold; text-anchor: middle; display: none; opacity: 0; fill: rgb(19, 90, 225); transform: scale(1);"}),d("text",{className:"party_name",y:0,dy:"1em",style:"font-size: 6vw; font-weight: normal; text-anchor: middle; display: none; opacity: 0; fill: rgb(19, 90, 225); transform: scale(1);"})]):null,N=d("defs",[d("radialGradient",{id:"label-gradient"},[d("stop",{offset:"0%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),d("stop",{offset:"80%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),d("stop",{offset:"90%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0.1;"}),d("stop",{offset:"100%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0;"})]),d("mask",{id:"label-clip"},[d("circle",{fill:"url(#label-gradient)",r:p})]),gw(d),bw(d),xw(d)]),L=d("g",{className:"arc-container",transform:`translate(${a}, ${a})`},[k,R,D].filter(Boolean)),F=S/2;let W;if(g<=180)W=a*Math.sin(F)+w;else{const V=F-Math.PI/2;W=a*(1+Math.sin(V))+w}const Y=a+w,Q=a*2,ee=Math.max(W,Y);return d("svg",{id:"chart-container","font-family":"Canva Sans Variable",viewBox:`0 0 ${Q} ${ee}`,preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg"},[L,N])};function Sw(e){return!e||!e.color?"#cccccc":e.color==="url(#hatchPattern)"?Wr.COMPLETED:e.color==="url(#greyHatchPattern)"?Ue.greyHatch.lines:e.color}function Ef(e,t){if(!e)return;const r=e.querySelectorAll(".party-group");r&&r.length>0&&r.forEach(n=>{if(!n)return;const i=n,a=i.getAttribute("data-party");t?a===t?i.style.opacity=Ke.animation.hoverOpacity.active:i.style.opacity=Ke.animation.hoverOpacity.dimmed:i.style.opacity="1"})}function Tf(e,t){e.forEach(r=>{const n=r,i=r.getAttribute("class")||"";t?i===t?(n.setAttribute("fill-opacity","1"),n.setAttribute("stroke-opacity","1")):(n.setAttribute("fill-opacity",Ke.animation.hoverOpacity.dimmed),n.setAttribute("stroke-opacity","0.2")):(n.setAttribute("fill-opacity","1"),n.setAttribute("stroke-opacity","1"))})}const rE=({containerRef:e,processedData:t,totalRepositories:r,arcAngle:n,useEnhanced:i,maxSeats:a,setHoveredData:o,activePartyName:u,setActivePartyName:s,chartConfig:l,seatSize:f})=>{O.useEffect(()=>{if(!e.current||t.length===0)return;for(;e.current.firstChild;)e.current.removeChild(e.current.firstChild);const c=r<=a?1:a/r,d=t.filter(g=>g.value>0).map(g=>{const S=r<=a?g.value:Math.max(1,Math.floor(g.value*c));return{id:String(g.id),name:g.label,seats:S,colour:g.color==="url(#hatchPattern)"?Wr.COMPLETED:g.color}}),p=i?tE(d,{arcAngle:n,arcAngleFlexibility:l.arcAngleFlexibility,radius:l.radius,seatSize:f,minSeatSize:l.minSeatSize,maxSeatSize:l.maxSeatSize,spacing:l.spacing,innerRadiusRatio:l.innerRadiusRatio,showLabels:!0}):QP(d,{arcAngle:n});p.properties&&(p.properties.width="100%",p.properties.height="100%",p.properties.style="display: block; width: 100%; max-width: 100%; height: auto;",p.properties.preserveAspectRatio="xMidYMid meet");const y=R_(p),b=new DOMParser().parseFromString(y,"image/svg+xml").documentElement;if(!b)return;b.setAttribute("width","100%"),b.setAttribute("height","100%"),b.style.width="100%",b.style.height="auto",b.style.display="block",i?nE(b,d,t,o,u,s):iE(b,d,t,o,u,s);const w=()=>{if(o(null),s(null),i)Ef(b,null);else{const g=b.querySelectorAll("circle");Tf(g,null)}};return b&&b.addEventListener("mouseleave",w),e.current.appendChild(b),()=>{if(b&&b.removeEventListener("mouseleave",w),e.current)for(;e.current.firstChild;)e.current.removeChild(e.current.firstChild)}},[t,r,n,i,a,o,u,s,e,l,f])};function nE(e,t,r,n,i,a){if(!e)return;const o=e.querySelectorAll(".seat-hover-zone"),u=e.querySelectorAll(".party-group circle.seat-visual");u&&u.length>0&&u.forEach(s=>{if(s){const l=s;l.style.stroke=Ke.colors.seatBorder,l.style.strokeWidth="0.5",l.setAttribute("fill-opacity","1"),l.style.transition=`fill-opacity ${Ke.animation.transitionDuration} ease, stroke-opacity ${Ke.animation.transitionDuration} ease`}}),o&&o.length>0&&o.forEach(s=>{if(!s)return;const l=s.getAttribute("data-party"),f=s.getAttribute("data-party-id"),c=()=>{if(l&&l!==i){const d=t.find(p=>p.name===l||String(p.id)===f);if(d){const p=r.find(y=>y.label===d.name||String(y.id)===d.id);if(p){const y=Sw(p);n({label:p.label||"Unknown",value:p.value||0,color:y}),a(d.name),Ef(e,d.name)}}}};s.addEventListener("mouseenter",c)}),i&&Ef(e,i)}function iE(e,t,r,n,i,a){if(!e)return;const o=e.querySelectorAll("circle");if(o&&o.length>0&&(o.forEach(u=>{if(u){const s=u;s.style.cursor="pointer",s.style.stroke=Ke.colors.seatBorder,s.style.strokeWidth="0.5",s.setAttribute("fill-opacity","1"),s.style.transition=`fill-opacity ${Ke.animation.transitionDuration} ease, stroke-opacity ${Ke.animation.transitionDuration} ease`}}),o.forEach(u=>{if(!u)return;const s=u.getAttribute("class")||"",l=parseInt(s,10),f=t[l],c=()=>{if(f){const d=f.name;if(d&&d!==i){const p=r.find(y=>y.label===f.name||String(y.id)===f.id);if(p){const y=Sw(p);n({label:p.label||"Unknown",value:p.value||0,color:y}),a(d),Tf(o,s)}}}};u.addEventListener("mouseenter",c)})),i){const u=t.find(s=>s.name===i);if(u){const s=t.indexOf(u);Tf(o,String(s))}}}const Ow=[{minRepos:0,maxRepos:10,minArc:90,maxArc:90,minSeatSize:18,maxSeatSize:18},{minRepos:10,maxRepos:25,minArc:90,maxArc:110,minSeatSize:14,maxSeatSize:14},{minRepos:25,maxRepos:50,minArc:110,maxArc:120,minSeatSize:10,maxSeatSize:10},{minRepos:50,maxRepos:100,minArc:120,maxArc:150,minSeatSize:7,maxSeatSize:7},{minRepos:100,maxRepos:200,minArc:150,maxArc:180,minSeatSize:5.5,maxSeatSize:5.5},{minRepos:200,maxRepos:1/0,minArc:180,maxArc:180,minSeatSize:5,maxSeatSize:5}],_w=({repositoryCount:e})=>{const t=Ow.find(u=>e>=u.minRepos&&e<u.maxRepos);if(!t)return 180;if(t.minArc===t.maxArc)return t.minArc;const r=t.maxRepos-t.minRepos,i=(e-t.minRepos)/r,a=t.maxArc-t.minArc,o=t.minArc+a*i;return Math.round(o)},Aw=({repositoryCount:e})=>{const t=Ow.find(u=>e>=u.minRepos&&e<u.maxRepos);if(!t)return 5;if(t.minSeatSize===t.maxSeatSize)return t.minSeatSize;const r=t.maxRepos-t.minRepos,i=(e-t.minRepos)/r,a=t.maxSeatSize-t.minSeatSize,o=t.minSeatSize+a*i;return Math.round(o*10)/10},tc=Vn,ym={[Yn]:Wr.NOT_APPLICABLE,[Xn]:Wr.NO_LST,[Zn]:Wr.DATA_MISSING},kn=(e,t,r)=>{if(e in ym)return ym[e];const n=r-1-t,i=tc.length,a=Math.floor(n/Math.max(1,r-1)*(i-1)),o=Math.min(Math.max(0,a),i-1);return tc[o]??tc[0]??"#000000"},Pw=({dataSeries:e,notApplicableRepositories:t,noLstRepositories:r,unavailableRepositories:n})=>{const{special:i,regular:a}=e.reduce((p,y,v)=>([Yn,Xn,Zn].includes(y.label)?p.special.push({...y,originalIndex:v}):p.regular.push({...y,originalIndex:v}),p),{special:[],regular:[]}),o=a.reverse().map((p,y)=>({id:`measure-${y}`,label:p.label,value:p.value,color:kn(p.label,a.length-1-y,a.length)})),u=i.map((p,y)=>({id:p.label.toLowerCase().replace(" ","-"),label:p.label,value:p.value,color:kn(p.label,y,i.length)})),s=n,l={id:"no-lst",label:Xn,value:r,color:kn(Xn,0,1)},f={id:"data-missing",label:Zn,value:s,color:kn(Zn,0,1)},c={id:"n/a",label:Yn,value:t,color:kn(Yn,0,1)},d=[...o,...u];return l.value>0&&d.push(l),f.value>0&&d.push(f),c.value>0&&d.push(c),d},mm={"N/A":"Repos that aren't applicable to this migration.","No LST":"There are no LSTs for these repos.","Data Missing":"There is data missing in the LSTs."},aE=({dataSeries:e,totalRepositories:t,notApplicableRepositories:r,noLstRepositories:n,unavailableRepositories:i,arcAngle:a,useEnhanced:o=Ke.useEnhanced})=>{const u=O.useRef(null),[s,l]=O.useState(null),[f,c]=O.useState(null),p=Pw({dataSeries:e,notApplicableRepositories:r,noLstRepositories:n,unavailableRepositories:i}).map(g=>{const S=typeof g.color=="function"?g.color("arc"):g.color,m=typeof g.label=="function"?g.label("arc"):g.label;return{...g,color:S,label:m}}),y=a??_w({repositoryCount:t}),v=Aw({repositoryCount:t});rE({containerRef:u,processedData:p,totalRepositories:t,arcAngle:y,useEnhanced:o,maxSeats:Ke.maxSeats,setHoveredData:l,activePartyName:f,setActivePartyName:c,chartConfig:Ke.chartConfig,seatSize:v});const h=p.map(g=>{const S=g.value/t*100,m=S>0&&S<1?"< 1":S.toFixed(0);return{id:String(g.id),label:g.label,value:g.value,percentage:m,color:g.color}}),b=t>Ke.maxSeats,w=b?Math.round(t/Ke.maxSeats):1;return X.jsxs(te.Stack,{sx:{width:"100%",alignItems:"center",gap:{xs:.5,sm:.75,md:1,lg:1},py:0,"@media (min-width: 1024px) and (max-width: 1225px)":{gap:.25}},children:[X.jsxs(te.Box,{className:"parliament-chart-container",sx:{position:"relative",width:"100%",minHeight:"200px",mb:{xs:.5,sm:.75,md:1},"@media (min-width: 1024px) and (max-width: 1225px)":{maxHeight:"250px",mb:.25}},children:[X.jsx(te.Box,{className:"parliament-chart-svg-container",ref:u,sx:{width:"100%",height:"100%",position:"relative",display:"flex",justifyContent:"center",alignItems:"center","& svg":{width:"100%",height:"100%",maxWidth:"100%","@media (min-width: 1024px) and (max-width: 1225px)":{maxHeight:"230px"}}}}),X.jsxs(te.Box,{className:"parliament-chart-tooltip",sx:{position:"absolute",bottom:"0%",left:"50%",transform:"translate(-50%, 0%)",pointerEvents:"none",textAlign:"center",zIndex:10,"@media (min-width: 1024px) and (max-width: 1225px)":{bottom:"5%"}},children:[s&&X.jsxs(O.Fragment,{children:[X.jsx(te.Typography,{sx:{color:"text.secondary",mb:.3,fontSize:"clamp(0.75rem, 1.5vw, 0.85rem)",display:"block","@media (min-width: 1024px) and (max-width: 1225px)":{fontSize:"0.7rem",mb:.2}},children:s.label}),X.jsxs(te.Typography,{sx:{fontWeight:"bold",color:s.color,lineHeight:1,fontSize:"clamp(1.1rem, 2.2vw, 1.3rem)","@media (min-width: 1024px) and (max-width: 1225px)":{fontSize:"1rem"}},children:[s.value," ",s.value>1?"repos":"repo"]})]}),b&&X.jsxs(te.Box,{className:"parliament-chart-scaled-indicator",sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:.5,mt:s?.5:0,color:"text.secondary",fontSize:"clamp(0.65rem, 1.2vw, 0.72rem)"},children:[X.jsx(te.Box,{className:"parliament-chart-scaled-indicator-dot",sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"#888888",flexShrink:0}}),X.jsxs(te.Typography,{variant:"caption",sx:{fontSize:"inherit",fontStyle:"italic"},children:["= ~",w," repos"]})]})]})]}),X.jsx(te.Box,{className:"parliament-chart-data-table",sx:{width:"100%",display:"flex",justifyContent:"center","@media (min-width: 1024px) and (max-width: 1225px)":{overflowX:"auto",maxWidth:"100%"}},onMouseLeave:()=>{l(null),c(null)},children:X.jsxs(te.Table,{"aria-label":"Repository categories summary",className:"parliament-chart-table",size:"small",sx:{maxWidth:{xs:"clamp(360px, 90%, 400px)",sm:"clamp(360px, 90%, 400px)",md:"clamp(360px, 85%, 420px)",lg:"clamp(360px, 90%, 400px)"},"@media (min-width: 1024px) and (max-width: 1225px)":{maxWidth:"360px","& .MuiTableCell-root":{padding:"1px 4px",fontSize:"9.5px"}},"& .MuiTableCell-root":{padding:"2px 8px",borderBottom:"none",fontSize:"clamp(10px, 1.8vw, 11.5px)"}},children:[X.jsx("thead",{children:X.jsxs(te.TableRow,{children:[X.jsx(te.TableCell,{}),X.jsx(te.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),X.jsx(te.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"# of repos"}),X.jsx(te.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"% of org"})]})}),X.jsx("tbody",{children:h.map(g=>{const S=g.color==="url(#greyHatchPattern)"?Ue.greyHatch.lines:g.color==="url(#dataMissingHatchPattern)"?Ue.dataMissingHatch.lines:g.color==="url(#noLstHatchPattern)"?Ue.noLstHatch.lines:g.color;return X.jsxs(te.TableRow,{onMouseEnter:()=>{c(g.label),l({label:g.label,value:g.value,color:g.color==="url(#greyHatchPattern)"?Ue.greyHatch.lines:g.color==="url(#dataMissingHatchPattern)"?Ue.dataMissingHatch.lines:g.color==="url(#noLstHatchPattern)"?Ue.noLstHatch.lines:g.color})},sx:{cursor:"pointer",transition:"background-color 0.15s ease",backgroundColor:f===g.label?`${S}15`:"transparent","&:hover":{backgroundColor:`${S}15`}},children:[X.jsx(te.TableCell,{align:"center",sx:{width:20},children:X.jsx(te.Box,{sx:{width:12,height:12,backgroundColor:g.color==="url(#greyHatchPattern)"?Ue.greyHatch.background:g.color==="url(#dataMissingHatchPattern)"?Ue.dataMissingHatch.background:g.color==="url(#noLstHatchPattern)"?Ue.noLstHatch.background:g.color,borderRadius:"50%",position:"relative",overflow:"hidden",transition:"transform 0.15s ease",transform:f===g.label?"scale(1.2)":"scale(1)",...g.label==="N/A"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
9
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Cu(e,t,n,r){const a=r.schema,i=a.space==="svg"?!1:r.settings.omitOptionalTags;let o=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const l=[];let s;a.space==="html"&&e.tagName==="svg"&&(r.schema=ia);const u=qu(r,e.properties),f=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,f&&(o=!1),(u||!i||!vu(e,t,n))&&(l.push("<",e.tagName,u?" "+u:""),o&&(a.space==="svg"||r.settings.closeSelfClosing)&&(s=u.charAt(u.length-1),(!r.settings.tightSelfClosing||s==="/"||s&&s!=='"'&&s!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(f),!o&&(!i||!la(e,t,n))&&l.push("</"+e.tagName+">"),l.join("")}function qu(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const i=Ru(e,a,t[a]);i&&n.push(i)}}for(;++r<n.length;){const i=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&i!=='"'&&i!=="'"&&(n[r]+=" ")}return n.join("")}function Ru(e,t,n){const r=Fl(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,i=e.settings.allowDangerousCharacters?0:1;let o=e.quote,l;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const s=pe(r.attribute,Object.assign({},e.settings.characterReferences,{subset:je.name[a][i]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?tu:ru)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?s:(e.settings.preferUnquoted&&(l=pe(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:je.unquoted[a][i]}))),l!==n&&(e.settings.quoteSmart&&xa(n,o)>xa(n,e.alternative)&&(o=e.alternative),l=o+pe(n,Object.assign({},e.settings.characterReferences,{subset:(o==="'"?je.single:je.double)[a][i],attribute:!0}))+o),s+(l&&"="+l))}const wu=["<","&"];function Gl(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:pe(e.value,Object.assign({},r.settings.characterReferences,{subset:wu}))}function Tu(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Gl(e,t,n,r)}function Mu(e,t,n,r){return r.all(e)}const Ou=Is("type",{invalid:Eu,unknown:Du,handlers:{comment:Qs,doctype:eu,element:Cu,raw:Tu,root:Mu,text:Gl}});function Eu(e){throw new Error("Expected node, not `"+e+"`")}function Du(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const Iu={},Pu={},Lu=[];function ku(e,t){const n=Iu,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Nu,all:Fu,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||qs,characterReferences:n.characterReferences||Pu,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?ia:jl,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Nu(e,t,n){return Ou(e,t,n,this)}function Fu(e){const t=[],n=e&&e.children||Lu;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}const le={neoGrey:{200:"#EDEFEF",400:"#ADB5BD"},neoDigitalGreen:{600:"#40c048"}},K={arcAngle:180,maxSeats:200,useEnhanced:!0,chartConfig:{radius:220,seatSize:5,minSeatSize:4,maxSeatSize:18,spacing:1.1,innerRadiusRatio:.4,arcAngleFlexibility:5},colors:{emptySeats:"#f8f8f8",emptySeatsBorder:"#d8d8d8",seatBorder:"#fff"},animation:{transitionDuration:"0.2s",hoverOpacity:{active:"1",dimmed:"0.2",empty:"0.3"}},scaling:{enableScaling:!0,scaleThreshold:200}},ge={COMPLETED:le.neoDigitalGreen[600],NOT_APPLICABLE:"url(#greyHatchPattern)",NO_LST:"url(#noLstHatchPattern)",DATA_MISSING:"url(#dataMissingHatchPattern)"},Re="N/A",we="No LST",Te="Data Missing",Ta=/[#.]/g;function ju(e,t){const n=e||"",r={};let a=0,i,o;for(;a<n.length;){Ta.lastIndex=a;const l=Ta.exec(n),s=n.slice(a,l?l.index:n.length);s&&(i?i==="#"?r.id=s:Array.isArray(r.className)?r.className.push(s):r.className=[s]:o=s,a+=s.length),l&&(i=l[0],a++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}function $l(e,t,n){const r=n?Uu(n):void 0;function a(i,o,...l){let s;if(i==null){s={type:"root",children:[]};const u=o;l.unshift(u)}else{s=ju(i,t);const u=s.tagName.toLowerCase(),f=r?r.get(u):void 0;if(s.tagName=f||u,Bu(o))l.unshift(o);else for(const[d,c]of Object.entries(o))Hu(e,s.properties,d,c)}for(const u of l)ta(s.children,u);return s.type==="element"&&s.tagName==="template"&&(s.content={type:"root",children:s.children},s.children=[]),s}return a}function Bu(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const i=a;for(const o of i)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Hu(e,t,n,r){const a=Fl(e,n);let i;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;i=r}else typeof r=="boolean"?i=r:typeof r=="string"?a.spaceSeparated?i=Ca(r):a.commaSeparated?i=Aa(r):a.commaOrSpaceSeparated?i=Ca(Aa(r).join(" ")):i=Ma(a,a.property,r):Array.isArray(r)?i=[...r]:i=a.property==="style"?zu(r):String(r);if(Array.isArray(i)){const o=[];for(const l of i)o.push(Ma(a,a.property,l));i=o}a.property==="className"&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[a.property]=i}}function ta(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)ta(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?ta(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Ma(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Me(n)===Me(t)))return!0}return n}function zu(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function Uu(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Gu=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"];$l(jl,"div");const Ee=$l(ia,"g",Gu);var Be=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ye(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rt,Oa;function Kl(){if(Oa)return rt;Oa=1;var e=typeof Be=="object"&&Be&&Be.Object===Object&&Be;return rt=e,rt}var nt,Ea;function ie(){if(Ea)return nt;Ea=1;var e=Kl(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return nt=n,nt}var at,Da;function $u(){if(Da)return at;Da=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return at=t,at}var it,Ia;function Ku(){if(Ia)return it;Ia=1;var e=$u(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return it=n,it}var ot,Pa;function De(){if(Pa)return ot;Pa=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return ot=e,ot}var lt,La;function Ie(){if(La)return lt;La=1;var e=ie(),t=e.Symbol;return lt=t,lt}var st,ka;function Wu(){if(ka)return st;ka=1;var e=Ie(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,a=e?e.toStringTag:void 0;function i(o){var l=n.call(o,a),s=o[a];try{o[a]=void 0;var u=!0}catch{}var f=r.call(o);return u&&(l?o[a]=s:delete o[a]),f}return st=i,st}var ut,Na;function Yu(){if(Na)return ut;Na=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return ut=n,ut}var ct,Fa;function Pe(){if(Fa)return ct;Fa=1;var e=Ie(),t=Wu(),n=Yu(),r="[object Null]",a="[object Undefined]",i=e?e.toStringTag:void 0;function o(l){return l==null?l===void 0?a:r:i&&i in Object(l)?t(l):n(l)}return ct=o,ct}var ft,ja;function Le(){if(ja)return ft;ja=1;function e(t){return t!=null&&typeof t=="object"}return ft=e,ft}var dt,Ba;function ke(){if(Ba)return dt;Ba=1;var e=Pe(),t=Le(),n="[object Symbol]";function r(a){return typeof a=="symbol"||t(a)&&e(a)==n}return dt=r,dt}var ht,Ha;function Wl(){if(Ha)return ht;Ha=1;var e=Ku(),t=De(),n=ke(),r=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,l=parseInt;function s(u){if(typeof u=="number")return u;if(n(u))return r;if(t(u)){var f=typeof u.valueOf=="function"?u.valueOf():u;u=t(f)?f+"":f}if(typeof u!="string")return u===0?u:+u;u=e(u);var d=i.test(u);return d||o.test(u)?l(u.slice(2),d?2:8):a.test(u)?r:+u}return ht=s,ht}var pt,za;function Yl(){if(za)return pt;za=1;var e=Wl(),t=1/0,n=17976931348623157e292;function r(a){if(!a)return a===0?a:0;if(a=e(a),a===t||a===-t){var i=a<0?-1:1;return i*n}return a===a?a:0}return pt=r,pt}var gt,Ua;function Vl(){if(Ua)return gt;Ua=1;var e=Yl();function t(n){var r=e(n),a=r%1;return r===r?a?r-a:r:0}return gt=t,gt}var mt,Ga;function ze(){if(Ga)return mt;Ga=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,i=Array(a);++r<a;)i[r]=n(t[r],r,t);return i}return mt=e,mt}var yt,$a;function Q(){if($a)return yt;$a=1;var e=Array.isArray;return yt=e,yt}var vt,Ka;function Vu(){if(Ka)return vt;Ka=1;var e=Ie(),t=ze(),n=Q(),r=ke(),a=e?e.prototype:void 0,i=a?a.toString:void 0;function o(l){if(typeof l=="string")return l;if(n(l))return t(l,o)+"";if(r(l))return i?i.call(l):"";var s=l+"";return s=="0"&&1/l==-1/0?"-0":s}return vt=o,vt}var bt,Wa;function Xl(){if(Wa)return bt;Wa=1;var e=Vu();function t(n){return n==null?"":e(n)}return bt=t,bt}var _t,Ya;function Xu(){if(Ya)return _t;Ya=1;var e=ie(),t=Vl(),n=Wl(),r=Xl(),a=e.isFinite,i=Math.min;function o(l){var s=Math[l];return function(u,f){if(u=n(u),f=f==null?0:i(t(f),292),f&&a(u)){var d=(r(u)+"e").split("e"),c=s(d[0]+"e"+(+d[1]+f));return d=(r(c)+"e").split("e"),+(d[0]+"e"+(+d[1]-f))}return s(u)}}return _t=o,_t}var St,Va;function Zu(){if(Va)return St;Va=1;var e=Xu(),t=e("round");return St=t,St}var Ju=Zu();const Qu=ye(Ju);var xt,Xa;function Zl(){if(Xa)return xt;Xa=1;function e(t,n){for(var r=-1,a=n.length,i=t.length;++r<a;)t[i+r]=n[r];return t}return xt=e,xt}var At,Za;function ec(){if(Za)return At;Za=1;var e=Pe(),t=Le(),n="[object Arguments]";function r(a){return t(a)&&e(a)==n}return At=r,At}var Ct,Ja;function sa(){if(Ja)return Ct;Ja=1;var e=ec(),t=Le(),n=Object.prototype,r=n.hasOwnProperty,a=n.propertyIsEnumerable,i=e((function(){return arguments})())?e:function(o){return t(o)&&r.call(o,"callee")&&!a.call(o,"callee")};return Ct=i,Ct}var qt,Qa;function tc(){if(Qa)return qt;Qa=1;var e=Ie(),t=sa(),n=Q(),r=e?e.isConcatSpreadable:void 0;function a(i){return n(i)||t(i)||!!(r&&i&&i[r])}return qt=a,qt}var Rt,ei;function Jl(){if(ei)return Rt;ei=1;var e=Zl(),t=tc();function n(r,a,i,o,l){var s=-1,u=r.length;for(i||(i=t),l||(l=[]);++s<u;){var f=r[s];a>0&&i(f)?a>1?n(f,a-1,i,o,l):e(l,f):o||(l[l.length]=f)}return l}return Rt=n,Rt}var wt,ti;function ua(){if(ti)return wt;ti=1;var e=Q(),t=ke(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function a(i,o){if(e(i))return!1;var l=typeof i;return l=="number"||l=="symbol"||l=="boolean"||i==null||t(i)?!0:r.test(i)||!n.test(i)||o!=null&&i in Object(o)}return wt=a,wt}var Tt,ri;function Ql(){if(ri)return Tt;ri=1;var e=Pe(),t=De(),n="[object AsyncFunction]",r="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function o(l){if(!t(l))return!1;var s=e(l);return s==r||s==a||s==n||s==i}return Tt=o,Tt}var Mt,ni;function rc(){if(ni)return Mt;ni=1;var e=ie(),t=e["__core-js_shared__"];return Mt=t,Mt}var Ot,ai;function nc(){if(ai)return Ot;ai=1;var e=rc(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return Ot=n,Ot}var Et,ii;function es(){if(ii)return Et;ii=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return Et=n,Et}var Dt,oi;function ac(){if(oi)return Dt;oi=1;var e=Ql(),t=nc(),n=De(),r=es(),a=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,o=Function.prototype,l=Object.prototype,s=o.toString,u=l.hasOwnProperty,f=RegExp("^"+s.call(u).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(c){if(!n(c)||t(c))return!1;var h=e(c)?f:i;return h.test(r(c))}return Dt=d,Dt}var It,li;function ic(){if(li)return It;li=1;function e(t,n){return t==null?void 0:t[n]}return It=e,It}var Pt,si;function ue(){if(si)return Pt;si=1;var e=ac(),t=ic();function n(r,a){var i=t(r,a);return e(i)?i:void 0}return Pt=n,Pt}var Lt,ui;function Ue(){if(ui)return Lt;ui=1;var e=ue(),t=e(Object,"create");return Lt=t,Lt}var kt,ci;function oc(){if(ci)return kt;ci=1;var e=Ue();function t(){this.__data__=e?e(null):{},this.size=0}return kt=t,kt}var Nt,fi;function lc(){if(fi)return Nt;fi=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Nt=e,Nt}var Ft,di;function sc(){if(di)return Ft;di=1;var e=Ue(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function a(i){var o=this.__data__;if(e){var l=o[i];return l===t?void 0:l}return r.call(o,i)?o[i]:void 0}return Ft=a,Ft}var jt,hi;function uc(){if(hi)return jt;hi=1;var e=Ue(),t=Object.prototype,n=t.hasOwnProperty;function r(a){var i=this.__data__;return e?i[a]!==void 0:n.call(i,a)}return jt=r,jt}var Bt,pi;function cc(){if(pi)return Bt;pi=1;var e=Ue(),t="__lodash_hash_undefined__";function n(r,a){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=e&&a===void 0?t:a,this}return Bt=n,Bt}var Ht,gi;function fc(){if(gi)return Ht;gi=1;var e=oc(),t=lc(),n=sc(),r=uc(),a=cc();function i(o){var l=-1,s=o==null?0:o.length;for(this.clear();++l<s;){var u=o[l];this.set(u[0],u[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=a,Ht=i,Ht}var zt,mi;function dc(){if(mi)return zt;mi=1;function e(){this.__data__=[],this.size=0}return zt=e,zt}var Ut,yi;function ca(){if(yi)return Ut;yi=1;function e(t,n){return t===n||t!==t&&n!==n}return Ut=e,Ut}var Gt,vi;function Ge(){if(vi)return Gt;vi=1;var e=ca();function t(n,r){for(var a=n.length;a--;)if(e(n[a][0],r))return a;return-1}return Gt=t,Gt}var $t,bi;function hc(){if(bi)return $t;bi=1;var e=Ge(),t=Array.prototype,n=t.splice;function r(a){var i=this.__data__,o=e(i,a);if(o<0)return!1;var l=i.length-1;return o==l?i.pop():n.call(i,o,1),--this.size,!0}return $t=r,$t}var Kt,_i;function pc(){if(_i)return Kt;_i=1;var e=Ge();function t(n){var r=this.__data__,a=e(r,n);return a<0?void 0:r[a][1]}return Kt=t,Kt}var Wt,Si;function gc(){if(Si)return Wt;Si=1;var e=Ge();function t(n){return e(this.__data__,n)>-1}return Wt=t,Wt}var Yt,xi;function mc(){if(xi)return Yt;xi=1;var e=Ge();function t(n,r){var a=this.__data__,i=e(a,n);return i<0?(++this.size,a.push([n,r])):a[i][1]=r,this}return Yt=t,Yt}var Vt,Ai;function $e(){if(Ai)return Vt;Ai=1;var e=dc(),t=hc(),n=pc(),r=gc(),a=mc();function i(o){var l=-1,s=o==null?0:o.length;for(this.clear();++l<s;){var u=o[l];this.set(u[0],u[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=a,Vt=i,Vt}var Xt,Ci;function fa(){if(Ci)return Xt;Ci=1;var e=ue(),t=ie(),n=e(t,"Map");return Xt=n,Xt}var Zt,qi;function yc(){if(qi)return Zt;qi=1;var e=fc(),t=$e(),n=fa();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return Zt=r,Zt}var Jt,Ri;function vc(){if(Ri)return Jt;Ri=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Jt=e,Jt}var Qt,wi;function Ke(){if(wi)return Qt;wi=1;var e=vc();function t(n,r){var a=n.__data__;return e(r)?a[typeof r=="string"?"string":"hash"]:a.map}return Qt=t,Qt}var er,Ti;function bc(){if(Ti)return er;Ti=1;var e=Ke();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return er=t,er}var tr,Mi;function _c(){if(Mi)return tr;Mi=1;var e=Ke();function t(n){return e(this,n).get(n)}return tr=t,tr}var rr,Oi;function Sc(){if(Oi)return rr;Oi=1;var e=Ke();function t(n){return e(this,n).has(n)}return rr=t,rr}var nr,Ei;function xc(){if(Ei)return nr;Ei=1;var e=Ke();function t(n,r){var a=e(this,n),i=a.size;return a.set(n,r),this.size+=a.size==i?0:1,this}return nr=t,nr}var ar,Di;function da(){if(Di)return ar;Di=1;var e=yc(),t=bc(),n=_c(),r=Sc(),a=xc();function i(o){var l=-1,s=o==null?0:o.length;for(this.clear();++l<s;){var u=o[l];this.set(u[0],u[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=a,ar=i,ar}var ir,Ii;function Ac(){if(Ii)return ir;Ii=1;var e=da(),t="Expected a function";function n(r,a){if(typeof r!="function"||a!=null&&typeof a!="function")throw new TypeError(t);var i=function(){var o=arguments,l=a?a.apply(this,o):o[0],s=i.cache;if(s.has(l))return s.get(l);var u=r.apply(this,o);return i.cache=s.set(l,u)||s,u};return i.cache=new(n.Cache||e),i}return n.Cache=e,ir=n,ir}var or,Pi;function Cc(){if(Pi)return or;Pi=1;var e=Ac(),t=500;function n(r){var a=e(r,function(o){return i.size===t&&i.clear(),o}),i=a.cache;return a}return or=n,or}var lr,Li;function qc(){if(Li)return lr;Li=1;var e=Cc(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(a){var i=[];return a.charCodeAt(0)===46&&i.push(""),a.replace(t,function(o,l,s,u){i.push(s?u.replace(n,"$1"):l||o)}),i});return lr=r,lr}var sr,ki;function ts(){if(ki)return sr;ki=1;var e=Q(),t=ua(),n=qc(),r=Xl();function a(i,o){return e(i)?i:t(i,o)?[i]:n(r(i))}return sr=a,sr}var ur,Ni;function We(){if(Ni)return ur;Ni=1;var e=ke();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return ur=t,ur}var cr,Fi;function ha(){if(Fi)return cr;Fi=1;var e=ts(),t=We();function n(r,a){a=e(a,r);for(var i=0,o=a.length;r!=null&&i<o;)r=r[t(a[i++])];return i&&i==o?r:void 0}return cr=n,cr}var fr,ji;function Rc(){if(ji)return fr;ji=1;var e=$e();function t(){this.__data__=new e,this.size=0}return fr=t,fr}var dr,Bi;function wc(){if(Bi)return dr;Bi=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return dr=e,dr}var hr,Hi;function Tc(){if(Hi)return hr;Hi=1;function e(t){return this.__data__.get(t)}return hr=e,hr}var pr,zi;function Mc(){if(zi)return pr;zi=1;function e(t){return this.__data__.has(t)}return pr=e,pr}var gr,Ui;function Oc(){if(Ui)return gr;Ui=1;var e=$e(),t=fa(),n=da(),r=200;function a(i,o){var l=this.__data__;if(l instanceof e){var s=l.__data__;if(!t||s.length<r-1)return s.push([i,o]),this.size=++l.size,this;l=this.__data__=new n(s)}return l.set(i,o),this.size=l.size,this}return gr=a,gr}var mr,Gi;function rs(){if(Gi)return mr;Gi=1;var e=$e(),t=Rc(),n=wc(),r=Tc(),a=Mc(),i=Oc();function o(l){var s=this.__data__=new e(l);this.size=s.size}return o.prototype.clear=t,o.prototype.delete=n,o.prototype.get=r,o.prototype.has=a,o.prototype.set=i,mr=o,mr}var yr,$i;function Ec(){if($i)return yr;$i=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return yr=t,yr}var vr,Ki;function Dc(){if(Ki)return vr;Ki=1;function e(t){return this.__data__.has(t)}return vr=e,vr}var br,Wi;function Ic(){if(Wi)return br;Wi=1;var e=da(),t=Ec(),n=Dc();function r(a){var i=-1,o=a==null?0:a.length;for(this.__data__=new e;++i<o;)this.add(a[i])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,br=r,br}var _r,Yi;function Pc(){if(Yi)return _r;Yi=1;function e(t,n){for(var r=-1,a=t==null?0:t.length;++r<a;)if(n(t[r],r,t))return!0;return!1}return _r=e,_r}var Sr,Vi;function Lc(){if(Vi)return Sr;Vi=1;function e(t,n){return t.has(n)}return Sr=e,Sr}var xr,Xi;function ns(){if(Xi)return xr;Xi=1;var e=Ic(),t=Pc(),n=Lc(),r=1,a=2;function i(o,l,s,u,f,d){var c=s&r,h=o.length,m=l.length;if(h!=m&&!(c&&m>h))return!1;var v=d.get(o),_=d.get(l);if(v&&_)return v==l&&_==o;var p=-1,b=!0,y=s&a?new e:void 0;for(d.set(o,l),d.set(l,o);++p<h;){var S=o[p],q=l[p];if(u)var C=c?u(q,S,p,l,o,d):u(S,q,p,o,l,d);if(C!==void 0){if(C)continue;b=!1;break}if(y){if(!t(l,function(A,E){if(!n(y,E)&&(S===A||f(S,A,s,u,d)))return y.push(E)})){b=!1;break}}else if(!(S===q||f(S,q,s,u,d))){b=!1;break}}return d.delete(o),d.delete(l),b}return xr=i,xr}var Ar,Zi;function kc(){if(Zi)return Ar;Zi=1;var e=ie(),t=e.Uint8Array;return Ar=t,Ar}var Cr,Ji;function Nc(){if(Ji)return Cr;Ji=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(a,i){r[++n]=[i,a]}),r}return Cr=e,Cr}var qr,Qi;function Fc(){if(Qi)return qr;Qi=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(a){r[++n]=a}),r}return qr=e,qr}var Rr,eo;function jc(){if(eo)return Rr;eo=1;var e=Ie(),t=kc(),n=ca(),r=ns(),a=Nc(),i=Fc(),o=1,l=2,s="[object Boolean]",u="[object Date]",f="[object Error]",d="[object Map]",c="[object Number]",h="[object RegExp]",m="[object Set]",v="[object String]",_="[object Symbol]",p="[object ArrayBuffer]",b="[object DataView]",y=e?e.prototype:void 0,S=y?y.valueOf:void 0;function q(C,A,E,P,L,w,z){switch(E){case b:if(C.byteLength!=A.byteLength||C.byteOffset!=A.byteOffset)return!1;C=C.buffer,A=A.buffer;case p:return!(C.byteLength!=A.byteLength||!w(new t(C),new t(A)));case s:case u:case c:return n(+C,+A);case f:return C.name==A.name&&C.message==A.message;case h:case v:return C==A+"";case d:var N=a;case m:var B=P&o;if(N||(N=i),C.size!=A.size&&!B)return!1;var Y=z.get(C);if(Y)return Y==A;P|=l,z.set(C,A);var ee=r(N(C),N(A),P,L,w,z);return z.delete(C),ee;case _:if(S)return S.call(C)==S.call(A)}return!1}return Rr=q,Rr}var wr,to;function Bc(){if(to)return wr;to=1;var e=Zl(),t=Q();function n(r,a,i){var o=a(r);return t(r)?o:e(o,i(r))}return wr=n,wr}var Tr,ro;function Hc(){if(ro)return Tr;ro=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,i=0,o=[];++r<a;){var l=t[r];n(l,r,t)&&(o[i++]=l)}return o}return Tr=e,Tr}var Mr,no;function zc(){if(no)return Mr;no=1;function e(){return[]}return Mr=e,Mr}var Or,ao;function Uc(){if(ao)return Or;ao=1;var e=Hc(),t=zc(),n=Object.prototype,r=n.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(o){return o==null?[]:(o=Object(o),e(a(o),function(l){return r.call(o,l)}))}:t;return Or=i,Or}var Er,io;function Gc(){if(io)return Er;io=1;function e(t,n){for(var r=-1,a=Array(t);++r<t;)a[r]=n(r);return a}return Er=e,Er}var Ce={exports:{}},Dr,oo;function $c(){if(oo)return Dr;oo=1;function e(){return!1}return Dr=e,Dr}Ce.exports;var lo;function as(){return lo||(lo=1,(function(e,t){var n=ie(),r=$c(),a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,l=o?n.Buffer:void 0,s=l?l.isBuffer:void 0,u=s||r;e.exports=u})(Ce,Ce.exports)),Ce.exports}var Ir,so;function pa(){if(so)return Ir;so=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,a){var i=typeof r;return a=a??e,!!a&&(i=="number"||i!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<a}return Ir=n,Ir}var Pr,uo;function ga(){if(uo)return Pr;uo=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Pr=t,Pr}var Lr,co;function Kc(){if(co)return Lr;co=1;var e=Pe(),t=ga(),n=Le(),r="[object Arguments]",a="[object Array]",i="[object Boolean]",o="[object Date]",l="[object Error]",s="[object Function]",u="[object Map]",f="[object Number]",d="[object Object]",c="[object RegExp]",h="[object Set]",m="[object String]",v="[object WeakMap]",_="[object ArrayBuffer]",p="[object DataView]",b="[object Float32Array]",y="[object Float64Array]",S="[object Int8Array]",q="[object Int16Array]",C="[object Int32Array]",A="[object Uint8Array]",E="[object Uint8ClampedArray]",P="[object Uint16Array]",L="[object Uint32Array]",w={};w[b]=w[y]=w[S]=w[q]=w[C]=w[A]=w[E]=w[P]=w[L]=!0,w[r]=w[a]=w[_]=w[i]=w[p]=w[o]=w[l]=w[s]=w[u]=w[f]=w[d]=w[c]=w[h]=w[m]=w[v]=!1;function z(N){return n(N)&&t(N.length)&&!!w[e(N)]}return Lr=z,Lr}var kr,fo;function is(){if(fo)return kr;fo=1;function e(t){return function(n){return t(n)}}return kr=e,kr}var qe={exports:{}};qe.exports;var ho;function Wc(){return ho||(ho=1,(function(e,t){var n=Kl(),r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,l=(function(){try{var s=a&&a.require&&a.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}})();e.exports=l})(qe,qe.exports)),qe.exports}var Nr,po;function os(){if(po)return Nr;po=1;var e=Kc(),t=is(),n=Wc(),r=n&&n.isTypedArray,a=r?t(r):e;return Nr=a,Nr}var Fr,go;function Yc(){if(go)return Fr;go=1;var e=Gc(),t=sa(),n=Q(),r=as(),a=pa(),i=os(),o=Object.prototype,l=o.hasOwnProperty;function s(u,f){var d=n(u),c=!d&&t(u),h=!d&&!c&&r(u),m=!d&&!c&&!h&&i(u),v=d||c||h||m,_=v?e(u.length,String):[],p=_.length;for(var b in u)(f||l.call(u,b))&&!(v&&(b=="length"||h&&(b=="offset"||b=="parent")||m&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||a(b,p)))&&_.push(b);return _}return Fr=s,Fr}var jr,mo;function Vc(){if(mo)return jr;mo=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,a=typeof r=="function"&&r.prototype||e;return n===a}return jr=t,jr}var Br,yo;function Xc(){if(yo)return Br;yo=1;function e(t,n){return function(r){return t(n(r))}}return Br=e,Br}var Hr,vo;function Zc(){if(vo)return Hr;vo=1;var e=Xc(),t=e(Object.keys,Object);return Hr=t,Hr}var zr,bo;function Jc(){if(bo)return zr;bo=1;var e=Vc(),t=Zc(),n=Object.prototype,r=n.hasOwnProperty;function a(i){if(!e(i))return t(i);var o=[];for(var l in Object(i))r.call(i,l)&&l!="constructor"&&o.push(l);return o}return zr=a,zr}var Ur,_o;function Ye(){if(_o)return Ur;_o=1;var e=Ql(),t=ga();function n(r){return r!=null&&t(r.length)&&!e(r)}return Ur=n,Ur}var Gr,So;function Ve(){if(So)return Gr;So=1;var e=Yc(),t=Jc(),n=Ye();function r(a){return n(a)?e(a):t(a)}return Gr=r,Gr}var $r,xo;function Qc(){if(xo)return $r;xo=1;var e=Bc(),t=Uc(),n=Ve();function r(a){return e(a,n,t)}return $r=r,$r}var Kr,Ao;function ef(){if(Ao)return Kr;Ao=1;var e=Qc(),t=1,n=Object.prototype,r=n.hasOwnProperty;function a(i,o,l,s,u,f){var d=l&t,c=e(i),h=c.length,m=e(o),v=m.length;if(h!=v&&!d)return!1;for(var _=h;_--;){var p=c[_];if(!(d?p in o:r.call(o,p)))return!1}var b=f.get(i),y=f.get(o);if(b&&y)return b==o&&y==i;var S=!0;f.set(i,o),f.set(o,i);for(var q=d;++_<h;){p=c[_];var C=i[p],A=o[p];if(s)var E=d?s(A,C,p,o,i,f):s(C,A,p,i,o,f);if(!(E===void 0?C===A||u(C,A,l,s,f):E)){S=!1;break}q||(q=p=="constructor")}if(S&&!q){var P=i.constructor,L=o.constructor;P!=L&&"constructor"in i&&"constructor"in o&&!(typeof P=="function"&&P instanceof P&&typeof L=="function"&&L instanceof L)&&(S=!1)}return f.delete(i),f.delete(o),S}return Kr=a,Kr}var Wr,Co;function tf(){if(Co)return Wr;Co=1;var e=ue(),t=ie(),n=e(t,"DataView");return Wr=n,Wr}var Yr,qo;function rf(){if(qo)return Yr;qo=1;var e=ue(),t=ie(),n=e(t,"Promise");return Yr=n,Yr}var Vr,Ro;function nf(){if(Ro)return Vr;Ro=1;var e=ue(),t=ie(),n=e(t,"Set");return Vr=n,Vr}var Xr,wo;function af(){if(wo)return Xr;wo=1;var e=ue(),t=ie(),n=e(t,"WeakMap");return Xr=n,Xr}var Zr,To;function of(){if(To)return Zr;To=1;var e=tf(),t=fa(),n=rf(),r=nf(),a=af(),i=Pe(),o=es(),l="[object Map]",s="[object Object]",u="[object Promise]",f="[object Set]",d="[object WeakMap]",c="[object DataView]",h=o(e),m=o(t),v=o(n),_=o(r),p=o(a),b=i;return(e&&b(new e(new ArrayBuffer(1)))!=c||t&&b(new t)!=l||n&&b(n.resolve())!=u||r&&b(new r)!=f||a&&b(new a)!=d)&&(b=function(y){var S=i(y),q=S==s?y.constructor:void 0,C=q?o(q):"";if(C)switch(C){case h:return c;case m:return l;case v:return u;case _:return f;case p:return d}return S}),Zr=b,Zr}var Jr,Mo;function lf(){if(Mo)return Jr;Mo=1;var e=rs(),t=ns(),n=jc(),r=ef(),a=of(),i=Q(),o=as(),l=os(),s=1,u="[object Arguments]",f="[object Array]",d="[object Object]",c=Object.prototype,h=c.hasOwnProperty;function m(v,_,p,b,y,S){var q=i(v),C=i(_),A=q?f:a(v),E=C?f:a(_);A=A==u?d:A,E=E==u?d:E;var P=A==d,L=E==d,w=A==E;if(w&&o(v)){if(!o(_))return!1;q=!0,P=!1}if(w&&!P)return S||(S=new e),q||l(v)?t(v,_,p,b,y,S):n(v,_,A,p,b,y,S);if(!(p&s)){var z=P&&h.call(v,"__wrapped__"),N=L&&h.call(_,"__wrapped__");if(z||N){var B=z?v.value():v,Y=N?_.value():_;return S||(S=new e),y(B,Y,p,b,S)}}return w?(S||(S=new e),r(v,_,p,b,y,S)):!1}return Jr=m,Jr}var Qr,Oo;function ls(){if(Oo)return Qr;Oo=1;var e=lf(),t=Le();function n(r,a,i,o,l){return r===a?!0:r==null||a==null||!t(r)&&!t(a)?r!==r&&a!==a:e(r,a,i,o,n,l)}return Qr=n,Qr}var en,Eo;function sf(){if(Eo)return en;Eo=1;var e=rs(),t=ls(),n=1,r=2;function a(i,o,l,s){var u=l.length,f=u,d=!s;if(i==null)return!f;for(i=Object(i);u--;){var c=l[u];if(d&&c[2]?c[1]!==i[c[0]]:!(c[0]in i))return!1}for(;++u<f;){c=l[u];var h=c[0],m=i[h],v=c[1];if(d&&c[2]){if(m===void 0&&!(h in i))return!1}else{var _=new e;if(s)var p=s(m,v,h,i,o,_);if(!(p===void 0?t(v,m,n|r,s,_):p))return!1}}return!0}return en=a,en}var tn,Do;function ss(){if(Do)return tn;Do=1;var e=De();function t(n){return n===n&&!e(n)}return tn=t,tn}var rn,Io;function uf(){if(Io)return rn;Io=1;var e=ss(),t=Ve();function n(r){for(var a=t(r),i=a.length;i--;){var o=a[i],l=r[o];a[i]=[o,l,e(l)]}return a}return rn=n,rn}var nn,Po;function us(){if(Po)return nn;Po=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return nn=e,nn}var an,Lo;function cf(){if(Lo)return an;Lo=1;var e=sf(),t=uf(),n=us();function r(a){var i=t(a);return i.length==1&&i[0][2]?n(i[0][0],i[0][1]):function(o){return o===a||e(o,a,i)}}return an=r,an}var on,ko;function ff(){if(ko)return on;ko=1;var e=ha();function t(n,r,a){var i=n==null?void 0:e(n,r);return i===void 0?a:i}return on=t,on}var ln,No;function df(){if(No)return ln;No=1;function e(t,n){return t!=null&&n in Object(t)}return ln=e,ln}var sn,Fo;function hf(){if(Fo)return sn;Fo=1;var e=ts(),t=sa(),n=Q(),r=pa(),a=ga(),i=We();function o(l,s,u){s=e(s,l);for(var f=-1,d=s.length,c=!1;++f<d;){var h=i(s[f]);if(!(c=l!=null&&u(l,h)))break;l=l[h]}return c||++f!=d?c:(d=l==null?0:l.length,!!d&&a(d)&&r(h,d)&&(n(l)||t(l)))}return sn=o,sn}var un,jo;function pf(){if(jo)return un;jo=1;var e=df(),t=hf();function n(r,a){return r!=null&&t(r,a,e)}return un=n,un}var cn,Bo;function gf(){if(Bo)return cn;Bo=1;var e=ls(),t=ff(),n=pf(),r=ua(),a=ss(),i=us(),o=We(),l=1,s=2;function u(f,d){return r(f)&&a(d)?i(o(f),d):function(c){var h=t(c,f);return h===void 0&&h===d?n(c,f):e(d,h,l|s)}}return cn=u,cn}var fn,Ho;function Xe(){if(Ho)return fn;Ho=1;function e(t){return t}return fn=e,fn}var dn,zo;function mf(){if(zo)return dn;zo=1;function e(t){return function(n){return n==null?void 0:n[t]}}return dn=e,dn}var hn,Uo;function yf(){if(Uo)return hn;Uo=1;var e=ha();function t(n){return function(r){return e(r,n)}}return hn=t,hn}var pn,Go;function vf(){if(Go)return pn;Go=1;var e=mf(),t=yf(),n=ua(),r=We();function a(i){return n(i)?e(r(i)):t(i)}return pn=a,pn}var gn,$o;function cs(){if($o)return gn;$o=1;var e=cf(),t=gf(),n=Xe(),r=Q(),a=vf();function i(o){return typeof o=="function"?o:o==null?n:typeof o=="object"?r(o)?t(o[0],o[1]):e(o):a(o)}return gn=i,gn}var mn,Ko;function bf(){if(Ko)return mn;Ko=1;function e(t){return function(n,r,a){for(var i=-1,o=Object(n),l=a(n),s=l.length;s--;){var u=l[t?s:++i];if(r(o[u],u,o)===!1)break}return n}}return mn=e,mn}var yn,Wo;function _f(){if(Wo)return yn;Wo=1;var e=bf(),t=e();return yn=t,yn}var vn,Yo;function Sf(){if(Yo)return vn;Yo=1;var e=_f(),t=Ve();function n(r,a){return r&&e(r,a,t)}return vn=n,vn}var bn,Vo;function xf(){if(Vo)return bn;Vo=1;var e=Ye();function t(n,r){return function(a,i){if(a==null)return a;if(!e(a))return n(a,i);for(var o=a.length,l=r?o:-1,s=Object(a);(r?l--:++l<o)&&i(s[l],l,s)!==!1;);return a}}return bn=t,bn}var _n,Xo;function Af(){if(Xo)return _n;Xo=1;var e=Sf(),t=xf(),n=t(e);return _n=n,_n}var Sn,Zo;function fs(){if(Zo)return Sn;Zo=1;var e=Af(),t=Ye();function n(r,a){var i=-1,o=t(r)?Array(r.length):[];return e(r,function(l,s,u){o[++i]=a(l,s,u)}),o}return Sn=n,Sn}var xn,Jo;function Cf(){if(Jo)return xn;Jo=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return xn=e,xn}var An,Qo;function qf(){if(Qo)return An;Qo=1;var e=ke();function t(n,r){if(n!==r){var a=n!==void 0,i=n===null,o=n===n,l=e(n),s=r!==void 0,u=r===null,f=r===r,d=e(r);if(!u&&!d&&!l&&n>r||l&&s&&f&&!u&&!d||i&&s&&f||!a&&f||!o)return 1;if(!i&&!l&&!d&&n<r||d&&a&&o&&!i&&!l||u&&a&&o||!s&&o||!f)return-1}return 0}return An=t,An}var Cn,el;function Rf(){if(el)return Cn;el=1;var e=qf();function t(n,r,a){for(var i=-1,o=n.criteria,l=r.criteria,s=o.length,u=a.length;++i<s;){var f=e(o[i],l[i]);if(f){if(i>=u)return f;var d=a[i];return f*(d=="desc"?-1:1)}}return n.index-r.index}return Cn=t,Cn}var qn,tl;function wf(){if(tl)return qn;tl=1;var e=ze(),t=ha(),n=cs(),r=fs(),a=Cf(),i=is(),o=Rf(),l=Xe(),s=Q();function u(f,d,c){d.length?d=e(d,function(v){return s(v)?function(_){return t(_,v.length===1?v[0]:v)}:v}):d=[l];var h=-1;d=e(d,i(n));var m=r(f,function(v,_,p){var b=e(d,function(y){return y(v)});return{criteria:b,index:++h,value:v}});return a(m,function(v,_){return o(v,_,c)})}return qn=u,qn}var Rn,rl;function Tf(){if(rl)return Rn;rl=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return Rn=e,Rn}var wn,nl;function Mf(){if(nl)return wn;nl=1;var e=Tf(),t=Math.max;function n(r,a,i){return a=t(a===void 0?r.length-1:a,0),function(){for(var o=arguments,l=-1,s=t(o.length-a,0),u=Array(s);++l<s;)u[l]=o[a+l];l=-1;for(var f=Array(a+1);++l<a;)f[l]=o[l];return f[a]=i(u),e(r,this,f)}}return wn=n,wn}var Tn,al;function Of(){if(al)return Tn;al=1;function e(t){return function(){return t}}return Tn=e,Tn}var Mn,il;function Ef(){if(il)return Mn;il=1;var e=ue(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return Mn=t,Mn}var On,ol;function Df(){if(ol)return On;ol=1;var e=Of(),t=Ef(),n=Xe(),r=t?function(a,i){return t(a,"toString",{configurable:!0,enumerable:!1,value:e(i),writable:!0})}:n;return On=r,On}var En,ll;function If(){if(ll)return En;ll=1;var e=800,t=16,n=Date.now;function r(a){var i=0,o=0;return function(){var l=n(),s=t-(l-o);if(o=l,s>0){if(++i>=e)return arguments[0]}else i=0;return a.apply(void 0,arguments)}}return En=r,En}var Dn,sl;function Pf(){if(sl)return Dn;sl=1;var e=Df(),t=If(),n=t(e);return Dn=n,Dn}var In,ul;function Lf(){if(ul)return In;ul=1;var e=Xe(),t=Mf(),n=Pf();function r(a,i){return n(t(a,i,e),a+"")}return In=r,In}var Pn,cl;function ma(){if(cl)return Pn;cl=1;var e=ca(),t=Ye(),n=pa(),r=De();function a(i,o,l){if(!r(l))return!1;var s=typeof o;return(s=="number"?t(l)&&n(o,l.length):s=="string"&&o in l)?e(l[o],i):!1}return Pn=a,Pn}var Ln,fl;function kf(){if(fl)return Ln;fl=1;var e=Jl(),t=wf(),n=Lf(),r=ma(),a=n(function(i,o){if(i==null)return[];var l=o.length;return l>1&&r(i,o[0],o[1])?o=[]:l>2&&r(o[0],o[1],o[2])&&(o=[o[0]]),t(i,e(o,1),[])});return Ln=a,Ln}var Nf=kf();const Ff=ye(Nf);var kn,dl;function jf(){if(dl)return kn;dl=1;function e(t){for(var n=-1,r=t==null?0:t.length,a={};++n<r;){var i=t[n];a[i[0]]=i[1]}return a}return kn=e,kn}var Bf=jf();const hl=ye(Bf);var Nn,pl;function Hf(){if(pl)return Nn;pl=1;var e=Math.ceil,t=Math.max;function n(r,a,i,o){for(var l=-1,s=t(e((a-r)/(i||1)),0),u=Array(s);s--;)u[o?s:++l]=r,r+=i;return u}return Nn=n,Nn}var Fn,gl;function zf(){if(gl)return Fn;gl=1;var e=Hf(),t=ma(),n=Yl();function r(a){return function(i,o,l){return l&&typeof l!="number"&&t(i,o,l)&&(o=l=void 0),i=n(i),o===void 0?(o=i,i=0):o=n(o),l=l===void 0?i<o?1:-1:n(l),e(i,o,l,a)}}return Fn=r,Fn}var jn,ml;function Uf(){if(ml)return jn;ml=1;var e=zf(),t=e();return jn=t,jn}var Gf=Uf();const $f=ye(Gf);var Bn,yl;function Kf(){if(yl)return Bn;yl=1;var e=ze(),t=cs(),n=fs(),r=Q();function a(i,o){var l=r(i)?e:n;return l(i,t(o,3))}return Bn=a,Bn}var Hn,vl;function Wf(){if(vl)return Hn;vl=1;var e=Jl(),t=Kf();function n(r,a){return e(t(r,a),1)}return Hn=n,Hn}var Yf=Wf();const Vf=ye(Yf);var zn,bl;function ds(){if(bl)return zn;bl=1;function e(t,n,r){return t===t&&(r!==void 0&&(t=t<=r?t:r),n!==void 0&&(t=t>=n?t:n)),t}return zn=e,zn}var Un,_l;function Xf(){if(_l)return Un;_l=1;function e(t,n){var r=-1,a=t.length;for(n||(n=Array(a));++r<a;)n[r]=t[r];return n}return Un=e,Un}var Gn,Sl;function Zf(){if(Sl)return Gn;Sl=1;var e=Math.floor,t=Math.random;function n(r,a){return r+e(t()*(a-r+1))}return Gn=n,Gn}var $n,xl;function hs(){if(xl)return $n;xl=1;var e=Zf();function t(n,r){var a=-1,i=n.length,o=i-1;for(r=r===void 0?i:r;++a<r;){var l=e(a,o),s=n[l];n[l]=n[a],n[a]=s}return n.length=r,n}return $n=t,$n}var Kn,Al;function Jf(){if(Al)return Kn;Al=1;var e=ds(),t=Xf(),n=hs();function r(a,i){return n(t(a),e(i,0,a.length))}return Kn=r,Kn}var Wn,Cl;function Qf(){if(Cl)return Wn;Cl=1;var e=ze();function t(n,r){return e(r,function(a){return n[a]})}return Wn=t,Wn}var Yn,ql;function ed(){if(ql)return Yn;ql=1;var e=Qf(),t=Ve();function n(r){return r==null?[]:e(r,t(r))}return Yn=n,Yn}var Vn,Rl;function td(){if(Rl)return Vn;Rl=1;var e=ds(),t=hs(),n=ed();function r(a,i){var o=n(a);return t(o,e(i,0,o.length))}return Vn=r,Vn}var Xn,wl;function rd(){if(wl)return Xn;wl=1;var e=Jf(),t=td(),n=Q(),r=ma(),a=Vl();function i(o,l,s){(s?r(o,l,s):l===void 0)?l=1:l=a(l);var u=n(o)?e:t;return u(o,l)}return Xn=i,Xn}var nd=rd();const ad=ye(nd),id=e=>Qu(e,14),Tl=e=>Object.values(e).reduce((t,n)=>t+n,0),od=(e,t,n={})=>{const r=Object.assign({draw:!1},n);if(Object.values(e).length<1)throw new Error("vote distribution must contain at least one party");if(!Object.values(e).every(m=>typeof m=="number"&&m>=0))throw new Error("party vote counts must be non-negative integers");if(!Number.isInteger(t)||t<=0)throw new Error("seats must be a positive integer");if(typeof r.draw!="boolean")throw new Error("opt.draw must be a boolean");const a=Tl(e),i=hl(Object.entries(e).map(([m,v])=>{const _=Math.max(t-Object.keys(e).length,0),p=Math.round(_*v/a);return[m,p]})),o=hl(Object.entries(e).map(([m,v])=>{const _=t+Object.keys(e).length,p=Math.min(Math.round(_*v/a),t);return[m,p]})),l=Vf(Object.entries(e).map(([m,v])=>{const _=i[m],p=o[m];return $f(_,p).map(b=>{const y=id(v/(b+.5));return{party:m,quotient:y}})})),s=Tl(i),u=t-s,f=Ff(l,({quotient:m})=>-m),d=f[u-1].quotient,c=f.filter(({quotient:m})=>m>d),h=f.filter(({quotient:m})=>m===d);if(c.length+h.length===u)c.push(...h);else{if(!r.draw)throw new Error("result is ambiguous, a draw would need to be made, but opt.draw is disabled");c.push(...ad(h,u-c.length))}return c.reduce((m,{party:v})=>(m[v]+=1,m),i)},ps=(e=Ee)=>e("pattern",{id:"greyHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:le.neoGrey[200]}),e("path",{d:"M0,2 L8,2",stroke:le.neoGrey[400],"stroke-width":.5}),e("path",{d:"M0,6 L8,6",stroke:le.neoGrey[400],"stroke-width":.5})]),gs=(e=Ee)=>e("pattern",{id:"dataMissingHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:"#FFF3CC"}),e("path",{d:"M0,8 L8,0",stroke:"#FFB800","stroke-width":.5}),e("path",{d:"M-2,2 L2,-2",stroke:"#FFB800","stroke-width":.5}),e("path",{d:"M6,10 L10,6",stroke:"#FFB800","stroke-width":.5})]),ms=(e=Ee)=>e("pattern",{id:"noLstHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:"#FFE5E5"}),e("path",{d:"M0,0 L8,8",stroke:"#ED4134","stroke-width":.5}),e("path",{d:"M-2,6 L2,10",stroke:"#ED4134","stroke-width":.5}),e("path",{d:"M6,-2 L10,2",stroke:"#ED4134","stroke-width":.5})]),$={greyHatch:{background:le.neoGrey[200],lines:le.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}},He=e=>Math.round(e*1e10)/1e10,ld=e=>e.reduce((t,n)=>t+n.seats,0),sd=e=>e.flat(),ud=(e,t,n)=>{const r=(Math.PI-n)/2,a=t/e+r-Math.PI;return{x:He(e*Math.cos(a)),y:He(e*Math.sin(a))}},ys=(e,t,n,r)=>{const a=r*t*n/(e-t),i=1+r*(t-1)*t/2/(e-t);return a/i},xe=(e,t,n,r)=>{const a=r/Math.PI*.7142857142857143;return Math.abs(ys(e,t,n,r)*t/n-a)},cd=(e,t,n)=>{let r=Math.floor(Math.log(e)/Math.log(2))||1,a=xe(e,r,t,n),i=0;for(xe(e,r+1,t,n)<a&&(i=1),xe(e,r-1,t,n)<a&&r>1&&(i=-1);xe(e,r+i,t,n)<a&&r>0;)a=xe(e,r+i,t,n),r+=i;return r},fd=(e,t)=>{var a,i;let n,r;for(let o=0;o<e.length;o++)r=He((t[o]||0)/(((a=e[o])==null?void 0:a.length)??1)),(!n||r<n)&&(n=r);for(let o=0;o<e.length;o++)if(r=He((t[o]||0)/(((i=e[o])==null?void 0:i.length)??1)),r===n)return o;return 0},dd=(e,t,n)=>{const r=ld(e),a=cd(r,t,n),i=ys(r,a,t,n);let o={};for(let c=1;c<=a;c++)o[c]=t-(c-1)*i;o=od(o,r);const l=[];let s,u,f;for(let c=1;c<=a;c++){const h=[];s=t-(c-1)*i,u=n*s/((o[c]??1)-1||1);for(let m=0;m<=(o[c]??1)-1;m++)f={...ud(s,m*u,n),r:.4*i},h.push(f);l.push(h)}const d=Array(l.length).fill(0);for(const c of e)for(let h=0;h<c.seats;h++){const m=fd(l,d),v=l[m],_=d[m]??0,p=v==null?void 0:v[_];p&&(p.fill=c.colour,p.party=String(c.id)),d[m]=_+1}return sd(l)},hd=e=>t=>e("circle",{cx:t.x,cy:t.y,r:t.r,fill:t.fill,class:t.party}),pd={seatCount:!1,arcAngle:180,hFunction:Ee},gd=(e,t={})=>{var _;const{seatCount:n,arcAngle:r,hFunction:a}=Object.assign({},pd,t);if(typeof n!="boolean")throw new Error("`seatCount` option must be a boolean");if(typeof a!="function")throw new Error("`hFunction` option must be a function");if(typeof r!="number"||r<=0||r>360)throw new Error("`arcAngle` option must be a number between 0 and 360");const i=r*Math.PI/180,o=20,l=dd(e,o,i),s=(((_=l[0])==null?void 0:_.r)??0)/.4||0,u=l.map(hd(a));n&&u.push(a("text",{x:0,y:0,"text-anchor":"middle",style:{"font-family":"Helvetica","font-size":.25*o+"px"},class:"seatNumber"},String(u.length)));const f=r<=180?o+s:o*(1+Math.sin((i-Math.PI)/2))+s,d=o+s,c=Math.max(f,d),h=r<=180?-o-s/2:-o*(1+Math.sin((i-Math.PI)/2))-s/2,m=a("defs",[ps(a),gs(a),ms(a)]);return a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:[-o-s/2,h,2*o+s,c].join(",")},[m,...u])},md={seatCount:!1,arcAngle:200,arcAngleFlexibility:5,radius:380,seatSize:4.5,minSeatSize:1.8,maxSeatSize:3,spacing:1.8,innerRadiusRatio:.6,showLabels:!0,hFunction:Ee},yd=(e,t={})=>{const n={...md,...t},{arcAngle:r,arcAngleFlexibility:a,radius:i,seatSize:o,minSeatSize:l,maxSeatSize:s,spacing:u,innerRadiusRatio:f,showLabels:d,hFunction:c}=n,h=i*f,m=e.reduce((M,H)=>M+H.seats,0);let v={seatSize:o,arcAngle:r,score:-1};const _=r-a,p=r+a;for(let M=_;M<=p;M+=2.5){const H=M*Math.PI/180;for(let F=s;F>=l;F-=.1){const V=F*2,Z=V*u,oe=Math.floor((i-h)/Z);for(let J=1;J<=Math.min(oe,10);J++){let G=0;for(let _e=0;_e<J;_e++){const Ze=h+(_e+.5)*Z,Se=V*u/Ze,Je=Math.floor(H/Se);G+=Je}if(G>=m){const _e=m/G,Ze=(F-l)/(s-l),Se=(G-m)/m,Je=Se<.15?1:Se<.3?.7:Se<.5?.4:.1,As=1-Math.abs(M-r)/a,ya=Je*.5+Ze*.3+_e*.15+As*.05;ya>v.score&&(v={seatSize:F,arcAngle:M,rings:J,score:ya})}}}}const b=v.seatSize,y=v.arcAngle,S=y*Math.PI/180,q=b*2,C=q*u,A=Math.floor((i-h)/C),E=[],P=-S/2-Math.PI/2,L=[];let w=0,z=[];for(let M=1;M<=A;M++){let H=0;const F=[];for(let V=0;V<M;V++){const Z=h+(V+.5)*C,oe=q*u/Z,J=Math.floor(S/oe);F.push(J),H+=J}if(H>=m){w=M,z=F;break}}if(w>0)L.push(...z);else for(let M=0;M<A;M++){const H=h+(M+.5)*C,F=q*u/H,V=Math.floor(S/F);L.push(V)}for(let M=0;M<L.length;M++){const H=h+(M+.5)*C,F=L[M]??0;if(F>0){const V=S/F;for(let Z=0;Z<F;Z++){const oe=P+(Z+.5)*V,J=Math.cos(oe)*H,G=Math.sin(oe)*H;E.push({ring:M,index:Z,angle:oe,x:J,y:G})}}}E.sort((M,H)=>{const F=M.angle-H.angle;return Math.abs(F)>.001?F:M.ring-H.ring});const N=[];let B=0;e.forEach(M=>{const H=[],F=Math.min(M.seats,E.length-B);let V=1/0,Z=-1/0;for(let J=0;J<F&&B<E.length;J++){const G=E[B++];G&&(V=Math.min(V,G.angle),Z=Math.max(Z,G.angle),Math.sqrt(G.x*G.x+G.y*G.y),H.push(c("circle",{fill:M.colour,stroke:M.colour,className:"circle seat-visual seat-hover-zone",transform:`translate(${G.x}, ${G.y})`,r:b,"data-party":M.name,"data-party-id":String(M.id),style:"pointer-events: all; cursor: pointer;"})))}const oe=H;N.push(c("g",{className:"party-group","data-party":M.name,style:"opacity: 1; outline: none;"},oe))});const Y=c("g",{className:"arc-bg"},[c("circle",{className:"outer",cx:0,cy:0,fill:"#ffffff",r:i}),c("circle",{className:"inner",cx:0,cy:0,fill:"#ffffff",r:h})]),ee=c("g",{className:"points-container"},N),ve=d?c("g",{className:"label-container",mask:"url(#label-clip)",style:"pointer-events: none;"},[c("text",{className:"party_count",dy:"-0.05em",style:"font-size: 24vw; font-weight: bold; text-anchor: middle; display: none; opacity: 0; fill: rgb(19, 90, 225); transform: scale(1);"}),c("text",{className:"party_name",y:0,dy:"1em",style:"font-size: 6vw; font-weight: normal; text-anchor: middle; display: none; opacity: 0; fill: rgb(19, 90, 225); transform: scale(1);"})]):null,O=c("defs",[c("radialGradient",{id:"label-gradient"},[c("stop",{offset:"0%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),c("stop",{offset:"80%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),c("stop",{offset:"90%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0.1;"}),c("stop",{offset:"100%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0;"})]),c("mask",{id:"label-clip"},[c("circle",{fill:"url(#label-gradient)",r:h})]),ps(c),gs(c),ms(c)]),ne=c("g",{className:"arc-container",transform:`translate(${i}, ${i})`},[Y,ee,ve].filter(Boolean)),Ne=S/2;let be;if(y<=180)be=i*Math.sin(Ne)+b;else{const M=Ne-Math.PI/2;be=i*(1+Math.sin(M))+b}const ce=i+b,fe=i*2,de=Math.max(be,ce);return c("svg",{id:"chart-container","font-family":"Canva Sans Variable",viewBox:`0 0 ${fe} ${de}`,preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg"},[ne,O])};function vs(e){return!e||!e.color?"#cccccc":e.color==="url(#hatchPattern)"?ge.COMPLETED:e.color==="url(#greyHatchPattern)"?$.greyHatch.lines:e.color}function ra(e,t){if(!e)return;const n=e.querySelectorAll(".party-group");n&&n.length>0&&n.forEach(r=>{if(!r)return;const a=r,i=a.getAttribute("data-party");t?i===t?a.style.opacity=K.animation.hoverOpacity.active:a.style.opacity=K.animation.hoverOpacity.dimmed:a.style.opacity="1"})}function na(e,t){e.forEach(n=>{const r=n,a=n.getAttribute("class")||"";t?a===t?(r.setAttribute("fill-opacity","1"),r.setAttribute("stroke-opacity","1")):(r.setAttribute("fill-opacity",K.animation.hoverOpacity.dimmed),r.setAttribute("stroke-opacity","0.2")):(r.setAttribute("fill-opacity","1"),r.setAttribute("stroke-opacity","1"))})}const vd=({containerRef:e,processedData:t,totalRepositories:n,arcAngle:r,useEnhanced:a,maxSeats:i,setHoveredData:o,activePartyName:l,setActivePartyName:s,chartConfig:u,seatSize:f})=>{D.useEffect(()=>{if(!e.current||t.length===0)return;for(;e.current.firstChild;)e.current.removeChild(e.current.firstChild);const d=n<=i?1:i/n,c=t.filter(y=>y.value>0).map(y=>{const S=n<=i?y.value:Math.max(1,Math.floor(y.value*d));return{id:String(y.id),name:y.label,seats:S,colour:y.color==="url(#hatchPattern)"?ge.COMPLETED:y.color}}),h=a?yd(c,{arcAngle:r,arcAngleFlexibility:u.arcAngleFlexibility,radius:u.radius,seatSize:f,minSeatSize:u.minSeatSize,maxSeatSize:u.maxSeatSize,spacing:u.spacing,innerRadiusRatio:u.innerRadiusRatio,showLabels:!0}):gd(c,{arcAngle:r});h.properties&&(h.properties.width="100%",h.properties.height="100%",h.properties.style="display: block; width: 100%; max-width: 100%; height: auto;",h.properties.preserveAspectRatio="xMidYMid meet");const m=ku(h),p=new DOMParser().parseFromString(m,"image/svg+xml").documentElement;if(!p)return;p.setAttribute("width","100%"),p.setAttribute("height","100%"),p.style.width="100%",p.style.height="auto",p.style.display="block",a?bd(p,c,t,o,l,s):_d(p,c,t,o,l,s);const b=()=>{if(o(null),s(null),a)ra(p,null);else{const y=p.querySelectorAll("circle");na(y,null)}};return p&&p.addEventListener("mouseleave",b),e.current.appendChild(p),()=>{if(p&&p.removeEventListener("mouseleave",b),e.current)for(;e.current.firstChild;)e.current.removeChild(e.current.firstChild)}},[t,n,r,a,i,o,l,s,e,u,f])};function bd(e,t,n,r,a,i){if(!e)return;const o=e.querySelectorAll(".seat-hover-zone"),l=e.querySelectorAll(".party-group circle.seat-visual");l&&l.length>0&&l.forEach(s=>{if(s){const u=s;u.style.stroke=K.colors.seatBorder,u.style.strokeWidth="0.5",u.setAttribute("fill-opacity","1"),u.style.transition=`fill-opacity ${K.animation.transitionDuration} ease, stroke-opacity ${K.animation.transitionDuration} ease`}}),o&&o.length>0&&o.forEach(s=>{if(!s)return;const u=s.getAttribute("data-party"),f=s.getAttribute("data-party-id"),d=()=>{if(u&&u!==a){const c=t.find(h=>h.name===u||String(h.id)===f);if(c){const h=n.find(m=>m.label===c.name||String(m.id)===c.id);if(h){const m=vs(h);r({label:h.label||"Unknown",value:h.value||0,color:m}),i(c.name),ra(e,c.name)}}}};s.addEventListener("mouseenter",d)}),a&&ra(e,a)}function _d(e,t,n,r,a,i){if(!e)return;const o=e.querySelectorAll("circle");if(o&&o.length>0&&(o.forEach(l=>{if(l){const s=l;s.style.cursor="pointer",s.style.stroke=K.colors.seatBorder,s.style.strokeWidth="0.5",s.setAttribute("fill-opacity","1"),s.style.transition=`fill-opacity ${K.animation.transitionDuration} ease, stroke-opacity ${K.animation.transitionDuration} ease`}}),o.forEach(l=>{if(!l)return;const s=l.getAttribute("class")||"",u=parseInt(s,10),f=t[u],d=()=>{if(f){const c=f.name;if(c&&c!==a){const h=n.find(m=>m.label===f.name||String(m.id)===f.id);if(h){const m=vs(h);r({label:h.label||"Unknown",value:h.value||0,color:m}),i(c),na(o,s)}}}};l.addEventListener("mouseenter",d)})),a){const l=t.find(s=>s.name===a);if(l){const s=t.indexOf(l);na(o,String(s))}}}const bs=[{minRepos:0,maxRepos:10,minArc:90,maxArc:90,minSeatSize:18,maxSeatSize:18},{minRepos:10,maxRepos:25,minArc:90,maxArc:110,minSeatSize:14,maxSeatSize:14},{minRepos:25,maxRepos:50,minArc:110,maxArc:120,minSeatSize:10,maxSeatSize:10},{minRepos:50,maxRepos:100,minArc:120,maxArc:150,minSeatSize:7,maxSeatSize:7},{minRepos:100,maxRepos:200,minArc:150,maxArc:180,minSeatSize:5.5,maxSeatSize:5.5},{minRepos:200,maxRepos:1/0,minArc:180,maxArc:180,minSeatSize:5,maxSeatSize:5}],_s=({repositoryCount:e})=>{const t=bs.find(l=>e>=l.minRepos&&e<l.maxRepos);if(!t)return 180;if(t.minArc===t.maxArc)return t.minArc;const n=t.maxRepos-t.minRepos,a=(e-t.minRepos)/n,i=t.maxArc-t.minArc,o=t.minArc+i*a;return Math.round(o)},Ss=({repositoryCount:e})=>{const t=bs.find(l=>e>=l.minRepos&&e<l.maxRepos);if(!t)return 5;if(t.minSeatSize===t.maxSeatSize)return t.minSeatSize;const n=t.maxRepos-t.minRepos,a=(e-t.minRepos)/n,i=t.maxSeatSize-t.minSeatSize,o=t.minSeatSize+i*a;return Math.round(o*10)/10},Zn=["#4CA75A","#FDDA04","#FFC008","#FF9800","#F9A91B","#FF5C24","#ED4134","#CB3446"],Ml={[Re]:ge.NOT_APPLICABLE,[we]:ge.NO_LST,[Te]:ge.DATA_MISSING},Ae=(e,t,n)=>{if(e in Ml)return Ml[e];const r=n-1-t,a=Zn.length,i=Math.floor(r/Math.max(1,n-1)*(a-1)),o=Math.min(Math.max(0,i),a-1);return Zn[o]??Zn[0]??"#000000"},xs=({dataSeries:e,notApplicableRepositories:t,noLstRepositories:n,unavailableRepositories:r})=>{const{special:a,regular:i}=e.reduce((h,m,v)=>([Re,we,Te].includes(m.label)?h.special.push({...m,originalIndex:v}):h.regular.push({...m,originalIndex:v}),h),{special:[],regular:[]}),o=i.reverse().map((h,m)=>({id:`measure-${m}`,label:h.label,value:h.value,color:Ae(h.label,i.length-1-m,i.length)})),l=a.map((h,m)=>({id:h.label.toLowerCase().replace(" ","-"),label:h.label,value:h.value,color:Ae(h.label,m,a.length)})),s=r,u={id:"no-lst",label:we,value:n,color:Ae(we,0,1)},f={id:"data-missing",label:Te,value:s,color:Ae(Te,0,1)},d={id:"n/a",label:Re,value:t,color:Ae(Re,0,1)},c=[...o,...l];return u.value>0&&c.push(u),f.value>0&&c.push(f),d.value>0&&c.push(d),c},Ol={"N/A":"Repos that aren't applicable to this migration.","No LST":"There are no LSTs for these repos.","Data Missing":"There is data missing in the LSTs."},Sd=({dataSeries:e,totalRepositories:t,notApplicableRepositories:n,noLstRepositories:r,unavailableRepositories:a,arcAngle:i,useEnhanced:o=K.useEnhanced})=>{const l=D.useRef(null),[s,u]=D.useState(null),[f,d]=D.useState(null),h=xs({dataSeries:e,notApplicableRepositories:n,noLstRepositories:r,unavailableRepositories:a}).map(y=>{const S=typeof y.color=="function"?y.color("arc"):y.color,q=typeof y.label=="function"?y.label("arc"):y.label;return{...y,color:S,label:q}}),m=i??_s({repositoryCount:t}),v=Ss({repositoryCount:t});vd({containerRef:l,processedData:h,totalRepositories:t,arcAngle:m,useEnhanced:o,maxSeats:K.maxSeats,setHoveredData:u,activePartyName:f,setActivePartyName:d,chartConfig:K.chartConfig,seatSize:v});const _=h.map(y=>{const S=y.value/t*100,q=S>0&&S<1?"< 1":S.toFixed(0);return{id:String(y.id),label:y.label,value:y.value,percentage:q,color:y.color}}),p=t>K.maxSeats,b=p?Math.round(t/K.maxSeats):1;return x.jsxs(T.Stack,{sx:{width:"100%",alignItems:"center",gap:{xs:.5,sm:.75,md:1,lg:1},py:0,"@media (min-width: 1024px) and (max-width: 1225px)":{gap:.25}},children:[x.jsxs(T.Box,{className:"parliament-chart-container",sx:{position:"relative",width:"100%",minHeight:"200px",mb:{xs:.5,sm:.75,md:1},"@media (min-width: 1024px) and (max-width: 1225px)":{maxHeight:"250px",mb:.25}},children:[x.jsx(T.Box,{className:"parliament-chart-svg-container",ref:l,sx:{width:"100%",height:"100%",position:"relative",display:"flex",justifyContent:"center",alignItems:"center","& svg":{width:"100%",height:"100%",maxWidth:"100%","@media (min-width: 1024px) and (max-width: 1225px)":{maxHeight:"230px"}}}}),x.jsxs(T.Box,{className:"parliament-chart-tooltip",sx:{position:"absolute",bottom:"0%",left:"50%",transform:"translate(-50%, 0%)",pointerEvents:"none",textAlign:"center",zIndex:10,"@media (min-width: 1024px) and (max-width: 1225px)":{bottom:"5%"}},children:[s&&x.jsxs(D.Fragment,{children:[x.jsx(T.Typography,{sx:{color:"text.secondary",mb:.3,fontSize:"clamp(0.75rem, 1.5vw, 0.85rem)",display:"block","@media (min-width: 1024px) and (max-width: 1225px)":{fontSize:"0.7rem",mb:.2}},children:s.label}),x.jsxs(T.Typography,{sx:{fontWeight:"bold",color:s.color,lineHeight:1,fontSize:"clamp(1.1rem, 2.2vw, 1.3rem)","@media (min-width: 1024px) and (max-width: 1225px)":{fontSize:"1rem"}},children:[s.value," ",s.value>1?"repos":"repo"]})]}),p&&x.jsxs(T.Box,{className:"parliament-chart-scaled-indicator",sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:.5,mt:s?.5:0,color:"text.secondary",fontSize:"clamp(0.65rem, 1.2vw, 0.72rem)"},children:[x.jsx(T.Box,{className:"parliament-chart-scaled-indicator-dot",sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"#888888",flexShrink:0}}),x.jsxs(T.Typography,{variant:"caption",sx:{fontSize:"inherit",fontStyle:"italic"},children:["= ~",b," repos"]})]})]})]}),x.jsx(T.Box,{className:"parliament-chart-data-table",sx:{width:"100%",display:"flex",justifyContent:"center","@media (min-width: 1024px) and (max-width: 1225px)":{overflowX:"auto",maxWidth:"100%"}},onMouseLeave:()=>{u(null),d(null)},children:x.jsxs(T.Table,{"aria-label":"Repository categories summary",className:"parliament-chart-table",size:"small",sx:{maxWidth:{xs:"clamp(360px, 90%, 400px)",sm:"clamp(360px, 90%, 400px)",md:"clamp(360px, 85%, 420px)",lg:"clamp(360px, 90%, 400px)"},"@media (min-width: 1024px) and (max-width: 1225px)":{maxWidth:"360px","& .MuiTableCell-root":{padding:"1px 4px",fontSize:"9.5px"}},"& .MuiTableCell-root":{padding:"2px 8px",borderBottom:"none",fontSize:"clamp(10px, 1.8vw, 11.5px)"}},children:[x.jsx("thead",{children:x.jsxs(T.TableRow,{children:[x.jsx(T.TableCell,{}),x.jsx(T.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),x.jsx(T.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"# of repos"}),x.jsx(T.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"% of org"})]})}),x.jsx("tbody",{children:_.map(y=>{const S=y.color==="url(#greyHatchPattern)"?$.greyHatch.lines:y.color==="url(#dataMissingHatchPattern)"?$.dataMissingHatch.lines:y.color==="url(#noLstHatchPattern)"?$.noLstHatch.lines:y.color;return x.jsxs(T.TableRow,{onMouseEnter:()=>{d(y.label),u({label:y.label,value:y.value,color:y.color==="url(#greyHatchPattern)"?$.greyHatch.lines:y.color==="url(#dataMissingHatchPattern)"?$.dataMissingHatch.lines:y.color==="url(#noLstHatchPattern)"?$.noLstHatch.lines:y.color})},sx:{cursor:"pointer",transition:"background-color 0.15s ease",backgroundColor:f===y.label?`${S}15`:"transparent","&:hover":{backgroundColor:`${S}15`}},children:[x.jsx(T.TableCell,{align:"center",sx:{width:20},children:x.jsx(T.Box,{sx:{width:12,height:12,backgroundColor:y.color==="url(#greyHatchPattern)"?$.greyHatch.background:y.color==="url(#dataMissingHatchPattern)"?$.dataMissingHatch.background:y.color==="url(#noLstHatchPattern)"?$.noLstHatch.background:y.color,borderRadius:"50%",position:"relative",overflow:"hidden",transition:"transform 0.15s ease",transform:f===y.label?"scale(1.2)":"scale(1)",...y.label==="N/A"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
10
10
  0deg,
11
11
  transparent,
12
12
  transparent 3px,
13
- ${Ue.greyHatch.lines} 3px,
14
- ${Ue.greyHatch.lines} 4px
15
- )`,borderRadius:"50%"}},...g.label==="Data Missing"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
13
+ ${$.greyHatch.lines} 3px,
14
+ ${$.greyHatch.lines} 4px
15
+ )`,borderRadius:"50%"}},...y.label==="Data Missing"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
16
16
  45deg,
17
17
  transparent,
18
18
  transparent 3px,
19
- ${Ue.dataMissingHatch.lines} 3px,
20
- ${Ue.dataMissingHatch.lines} 4px
21
- )`,borderRadius:"50%"}},...g.label==="No LST"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
19
+ ${$.dataMissingHatch.lines} 3px,
20
+ ${$.dataMissingHatch.lines} 4px
21
+ )`,borderRadius:"50%"}},...y.label==="No LST"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
22
22
  -45deg,
23
23
  transparent,
24
24
  transparent 3px,
25
- ${Ue.noLstHatch.lines} 3px,
26
- ${Ue.noLstHatch.lines} 4px
27
- )`,borderRadius:"50%"}}}})}),X.jsx(te.TableCell,{children:X.jsxs(te.Stack,{direction:"row",alignItems:"center",gap:.5,children:[X.jsx("span",{children:g.label}),mm[g.label]&&X.jsx(te.Tooltip,{title:mm[g.label],placement:"right",arrow:!0,children:X.jsx(S1.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),X.jsx(te.TableCell,{align:"right",children:g.value}),X.jsxs(te.TableCell,{align:"right",children:[g.percentage,"%"]})]},g.id)})})]})})]})};function Ew(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Ew(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ce(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Ew(e))&&(n&&(n+=" "),n+=t);return n}var oE=fw();const pt=xe(oE);var rc,gm;function uE(){if(gm)return rc;gm=1;function e(t){return t==null}return rc=e,rc}var sE=uE();const ae=xe(sE);var nc,bm;function lE(){if(bm)return nc;bm=1;var e=Kt(),t=Ye(),r=Vt(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return nc=i,nc}var cE=lE();const Sr=xe(cE);var fE=ap();const se=xe(fE);var dE=nr();const An=xe(dE);var ta={exports:{}},ve={};/**
28
- * @license React
29
- * react-is.production.min.js
30
- *
31
- * Copyright (c) Facebook, Inc. and its affiliates.
32
- *
33
- * This source code is licensed under the MIT license found in the
34
- * LICENSE file in the root directory of this source tree.
35
- */var xm;function pE(){if(xm)return ve;xm=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function v(h){if(typeof h=="object"&&h!==null){var b=h.$$typeof;switch(b){case e:switch(h=h.type,h){case r:case i:case n:case l:case f:return h;default:switch(h=h&&h.$$typeof,h){case u:case o:case s:case d:case c:case a:return h;default:return b}}case t:return b}}}return ve.ContextConsumer=o,ve.ContextProvider=a,ve.Element=e,ve.ForwardRef=s,ve.Fragment=r,ve.Lazy=d,ve.Memo=c,ve.Portal=t,ve.Profiler=i,ve.StrictMode=n,ve.Suspense=l,ve.SuspenseList=f,ve.isAsyncMode=function(){return!1},ve.isConcurrentMode=function(){return!1},ve.isContextConsumer=function(h){return v(h)===o},ve.isContextProvider=function(h){return v(h)===a},ve.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},ve.isForwardRef=function(h){return v(h)===s},ve.isFragment=function(h){return v(h)===r},ve.isLazy=function(h){return v(h)===d},ve.isMemo=function(h){return v(h)===c},ve.isPortal=function(h){return v(h)===t},ve.isProfiler=function(h){return v(h)===i},ve.isStrictMode=function(h){return v(h)===n},ve.isSuspense=function(h){return v(h)===l},ve.isSuspenseList=function(h){return v(h)===f},ve.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===r||h===i||h===n||h===l||h===f||h===p||typeof h=="object"&&h!==null&&(h.$$typeof===d||h.$$typeof===c||h.$$typeof===a||h.$$typeof===o||h.$$typeof===s||h.$$typeof===y||h.getModuleId!==void 0)},ve.typeOf=v,ve}var ye={};/**
36
- * @license React
37
- * react-is.development.js
38
- *
39
- * Copyright (c) Facebook, Inc. and its affiliates.
40
- *
41
- * This source code is licensed under the MIT license found in the
42
- * LICENSE file in the root directory of this source tree.
43
- */var wm;function hE(){return wm||(wm=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y=!1,v=!1,h=!1,b=!1,w=!1,g;g=Symbol.for("react.module.reference");function S(U){return!!(typeof U=="string"||typeof U=="function"||U===r||U===i||w||U===n||U===l||U===f||b||U===p||y||v||h||typeof U=="object"&&U!==null&&(U.$$typeof===d||U.$$typeof===c||U.$$typeof===a||U.$$typeof===o||U.$$typeof===s||U.$$typeof===g||U.getModuleId!==void 0))}function m(U){if(typeof U=="object"&&U!==null){var ue=U.$$typeof;switch(ue){case e:var he=U.type;switch(he){case r:case i:case n:case l:case f:return he;default:var Te=he&&he.$$typeof;switch(Te){case u:case o:case s:case d:case c:case a:return Te;default:return ue}}case t:return ue}}}var x=o,_=a,A=e,E=s,M=r,P=d,T=c,j=t,$=i,k=n,R=l,D=f,N=!1,z=!1;function I(U){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function L(U){return z||(z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function F(U){return m(U)===o}function W(U){return m(U)===a}function Y(U){return typeof U=="object"&&U!==null&&U.$$typeof===e}function Q(U){return m(U)===s}function ee(U){return m(U)===r}function ne(U){return m(U)===d}function V(U){return m(U)===c}function B(U){return m(U)===t}function H(U){return m(U)===i}function Z(U){return m(U)===n}function C(U){return m(U)===l}function ie(U){return m(U)===f}ye.ContextConsumer=x,ye.ContextProvider=_,ye.Element=A,ye.ForwardRef=E,ye.Fragment=M,ye.Lazy=P,ye.Memo=T,ye.Portal=j,ye.Profiler=$,ye.StrictMode=k,ye.Suspense=R,ye.SuspenseList=D,ye.isAsyncMode=I,ye.isConcurrentMode=L,ye.isContextConsumer=F,ye.isContextProvider=W,ye.isElement=Y,ye.isForwardRef=Q,ye.isFragment=ee,ye.isLazy=ne,ye.isMemo=V,ye.isPortal=B,ye.isProfiler=H,ye.isStrictMode=Z,ye.isSuspense=C,ye.isSuspenseList=ie,ye.isValidElementType=S,ye.typeOf=m})()),ye}var Sm;function vE(){return Sm||(Sm=1,process.env.NODE_ENV==="production"?ta.exports=pE():ta.exports=hE()),ta.exports}var yE=vE(),ic,Om;function Tw(){if(Om)return ic;Om=1;var e=Kt(),t=Vt(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return ic=n,ic}var ac,_m;function mE(){if(_m)return ac;_m=1;var e=Tw();function t(r){return e(r)&&r!=+r}return ac=t,ac}var gE=mE();const Pn=xe(gE);var bE=Tw();const xE=xe(bE);var wt=function(t){return t===0?0:t>0?1:-1},pr=function(t){return Sr(t)&&t.indexOf("%")===t.length-1},K=function(t){return xE(t)&&!Pn(t)},wE=function(t){return ae(t)},Re=function(t){return K(t)||Sr(t)},SE=0,Cr=function(t){var r=++SE;return"".concat(t||"").concat(r)},Or=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!K(t)&&!Sr(t))return n;var a;if(pr(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Pn(a)&&(a=n),i&&a>r&&(a=r),a},Jt=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},OE=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},Ce=function(t,r){return K(t)&&K(r)?function(n){return t+n*(r-t)}:function(){return r}};function ga(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):pt(n,t))===r})}var _E=function(t){if(!t||!t.length)return null;for(var r=t.length,n=0,i=0,a=0,o=0,u=1/0,s=-1/0,l=0,f=0,c=0;c<r;c++)l=t[c].cx||0,f=t[c].cy||0,n+=l,i+=f,a+=l*f,o+=l*l,u=Math.min(u,l),s=Math.max(s,l);var d=r*o!==n*n?(r*a-n*i)/(r*o-n*n):0;return{xmin:u,xmax:s,a:d,b:(i-d*n)/r}},AE=function(t,r){return K(t)&&K(r)?t-r:Sr(t)&&Sr(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Hr(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function Cf(e){"@babel/helpers - typeof";return Cf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cf(e)}var PE=["viewBox","children"],EE=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Am=["points","pathLength"],oc={svg:PE,polygon:Am,polyline:Am},vp=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],ba=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(O.isValidElement(t)&&(n=t.props),!An(n))return null;var i={};return Object.keys(n).forEach(function(a){vp.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},TE=function(t,r,n){return function(i){return t(r,n,i),null}},ui=function(t,r,n){if(!An(t)||Cf(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];vp.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=TE(o,r,n))}),i},CE=["children"],ME=["children"];function Pm(e,t){if(e==null)return{};var r=jE(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jE(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Mf(e){"@babel/helpers - typeof";return Mf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mf(e)}var Em={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Ft=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Tm=null,uc=null,yp=function e(t){if(t===Tm&&Array.isArray(uc))return uc;var r=[];return O.Children.forEach(t,function(n){ae(n)||(yE.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),uc=r,Tm=t,r};function Qe(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Ft(i)}):n=[Ft(t)],yp(e).forEach(function(i){var a=pt(i,"type.displayName")||pt(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function it(e,t){var r=Qe(e,t);return r&&r[0]}var Cm=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!K(n)||n<=0||!K(i)||i<=0)},IE=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],$E=function(t){return t&&t.type&&Sr(t.type)&&IE.indexOf(t.type)>=0},Cw=function(t){return t&&Mf(t)==="object"&&"clipDot"in t},kE=function(t,r,n,i){var a,o=(a=oc==null?void 0:oc[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!se(t)&&(i&&o.includes(r)||EE.includes(r))||n&&vp.includes(r)},oe=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(O.isValidElement(t)&&(i=t.props),!An(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;kE((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},jf=function e(t,r){if(t===r)return!0;var n=O.Children.count(t);if(n!==O.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Mm(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!Mm(a,o))return!1}return!0},Mm=function(t,r){if(ae(t)&&ae(r))return!0;if(!ae(t)&&!ae(r)){var n=t.props||{},i=n.children,a=Pm(n,CE),o=r.props||{},u=o.children,s=Pm(o,ME);return i&&u?Hr(a,s)&&jf(i,u):!i&&!u?Hr(a,s):!1}return!1},jm=function(t,r){var n=[],i={};return yp(t).forEach(function(a,o){if($E(a))n.push(a);else if(a){var u=Ft(a.type),s=r[u]||{},l=s.handler,f=s.once;if(l&&(!f||!i[u])){var c=l(a,u,o);n.push(c),i[u]=!0}}}),n},RE=function(t){var r=t&&t.type;return r&&Em[r]?Em[r]:null},DE=function(t,r){return yp(r).indexOf(t)},NE=["children","width","height","viewBox","className","style","title","desc"];function If(){return If=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},If.apply(this,arguments)}function LE(e,t){if(e==null)return{};var r=qE(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qE(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function $f(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,s=e.desc,l=LE(e,NE),f=i||{width:r,height:n,x:0,y:0},c=ce("recharts-surface",a);return O.createElement("svg",If({},oe(l,!0,"svg"),{className:c,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),O.createElement("title",null,u),O.createElement("desc",null,s),t)}var BE=["children","className"];function kf(){return kf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kf.apply(this,arguments)}function FE(e,t){if(e==null)return{};var r=zE(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zE(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var pe=O.forwardRef(function(e,t){var r=e.children,n=e.className,i=FE(e,BE),a=ce("recharts-layer",n);return O.createElement("g",kf({className:a},oe(i,!0),{ref:t}),r)}),UE=process.env.NODE_ENV!=="production",zt=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(UE&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,function(){return i[o++]}))}},sc,Im;function WE(){if(Im)return sc;Im=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return sc=e,sc}var lc,$m;function HE(){if($m)return lc;$m=1;var e=WE();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return lc=t,lc}var cc,km;function Mw(){if(km)return cc;km=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+e+i+a+"]");function s(l){return u.test(l)}return cc=s,cc}var fc,Rm;function GE(){if(Rm)return fc;Rm=1;function e(t){return t.split("")}return fc=e,fc}var dc,Dm;function KE(){if(Dm)return dc;Dm=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+i+"]",s="\\ud83c[\\udffb-\\udfff]",l="(?:"+u+"|"+s+")",f="[^"+e+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",y=l+"?",v="["+a+"]?",h="(?:"+p+"(?:"+[f,c,d].join("|")+")"+v+y+")*",b=v+y+h,w="(?:"+[f+u+"?",u,c,d,o].join("|")+")",g=RegExp(s+"(?="+s+")|"+w+b,"g");function S(m){return m.match(g)||[]}return dc=S,dc}var pc,Nm;function VE(){if(Nm)return pc;Nm=1;var e=GE(),t=Mw(),r=KE();function n(i){return t(i)?r(i):e(i)}return pc=n,pc}var hc,Lm;function YE(){if(Lm)return hc;Lm=1;var e=HE(),t=Mw(),r=VE(),n=rp();function i(a){return function(o){o=n(o);var u=t(o)?r(o):void 0,s=u?u[0]:o.charAt(0),l=u?e(u,1).join(""):o.slice(1);return s[a]()+l}}return hc=i,hc}var vc,qm;function XE(){if(qm)return vc;qm=1;var e=YE(),t=e("toUpperCase");return vc=t,vc}var ZE=XE();const Ao=xe(ZE);function _e(e){return function(){return e}}const jw=Math.cos,xa=Math.sin,_t=Math.sqrt,wa=Math.PI,Po=2*wa,Rf=Math.PI,Df=2*Rf,fr=1e-6,JE=Df-fr;function Iw(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function QE(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Iw;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class eT{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Iw:QE(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,s=n-t,l=i-r,f=o-t,c=u-r,d=f*f+c*c;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>fr)if(!(Math.abs(c*s-l*f)>fr)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-u,v=s*s+l*l,h=p*p+y*y,b=Math.sqrt(v),w=Math.sqrt(d),g=a*Math.tan((Rf-Math.acos((v+d-h)/(2*b*w)))/2),S=g/w,m=g/b;Math.abs(S-1)>fr&&this._append`L${t+S*f},${r+S*c}`,this._append`A${a},${a},0,0,${+(c*p>f*y)},${this._x1=t+m*s},${this._y1=r+m*l}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),s=n*Math.sin(i),l=t+u,f=r+s,c=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${l},${f}`:(Math.abs(this._x1-l)>fr||Math.abs(this._y1-f)>fr)&&this._append`L${l},${f}`,n&&(d<0&&(d=d%Df+Df),d>JE?this._append`A${n},${n},0,1,${c},${t-u},${r-s}A${n},${n},0,1,${c},${this._x1=l},${this._y1=f}`:d>fr&&this._append`A${n},${n},0,${+(d>=Rf)},${c},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function mp(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new eT(t)}function gp(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function $w(e){this._context=e}$w.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Eo(e){return new $w(e)}function kw(e){return e[0]}function Rw(e){return e[1]}function Dw(e,t){var r=_e(!0),n=null,i=Eo,a=null,o=mp(u);e=typeof e=="function"?e:e===void 0?kw:_e(e),t=typeof t=="function"?t:t===void 0?Rw:_e(t);function u(s){var l,f=(s=gp(s)).length,c,d=!1,p;for(n==null&&(a=i(p=o())),l=0;l<=f;++l)!(l<f&&r(c=s[l],l,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(c,l,s),+t(c,l,s));if(p)return a=null,p+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:_e(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:_e(+s),u):t},u.defined=function(s){return arguments.length?(r=typeof s=="function"?s:_e(!!s),u):r},u.curve=function(s){return arguments.length?(i=s,n!=null&&(a=i(n)),u):i},u.context=function(s){return arguments.length?(s==null?n=a=null:a=i(n=s),u):n},u}function ra(e,t,r){var n=null,i=_e(!0),a=null,o=Eo,u=null,s=mp(l);e=typeof e=="function"?e:e===void 0?kw:_e(+e),t=typeof t=="function"?t:_e(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Rw:_e(+r);function l(c){var d,p,y,v=(c=gp(c)).length,h,b=!1,w,g=new Array(v),S=new Array(v);for(a==null&&(u=o(w=s())),d=0;d<=v;++d){if(!(d<v&&i(h=c[d],d,c))===b)if(b=!b)p=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=d-1;y>=p;--y)u.point(g[y],S[y]);u.lineEnd(),u.areaEnd()}b&&(g[d]=+e(h,d,c),S[d]=+t(h,d,c),u.point(n?+n(h,d,c):g[d],r?+r(h,d,c):S[d]))}if(w)return u=null,w+""||null}function f(){return Dw().defined(i).curve(o).context(a)}return l.x=function(c){return arguments.length?(e=typeof c=="function"?c:_e(+c),n=null,l):e},l.x0=function(c){return arguments.length?(e=typeof c=="function"?c:_e(+c),l):e},l.x1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:_e(+c),l):n},l.y=function(c){return arguments.length?(t=typeof c=="function"?c:_e(+c),r=null,l):t},l.y0=function(c){return arguments.length?(t=typeof c=="function"?c:_e(+c),l):t},l.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:_e(+c),l):r},l.lineX0=l.lineY0=function(){return f().x(e).y(t)},l.lineY1=function(){return f().x(e).y(r)},l.lineX1=function(){return f().x(n).y(t)},l.defined=function(c){return arguments.length?(i=typeof c=="function"?c:_e(!!c),l):i},l.curve=function(c){return arguments.length?(o=c,a!=null&&(u=o(a)),l):o},l.context=function(c){return arguments.length?(c==null?a=u=null:u=o(a=c),l):a},l}class Nw{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function tT(e){return new Nw(e,!0)}function rT(e){return new Nw(e,!1)}const bp={draw(e,t){const r=_t(t/wa);e.moveTo(r,0),e.arc(0,0,r,0,Po)}},nT={draw(e,t){const r=_t(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},Lw=_t(1/3),iT=Lw*2,aT={draw(e,t){const r=_t(t/iT),n=r*Lw;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},oT={draw(e,t){const r=_t(t),n=-r/2;e.rect(n,n,r,r)}},uT=.8908130915292852,qw=xa(wa/10)/xa(7*wa/10),sT=xa(Po/10)*qw,lT=-jw(Po/10)*qw,cT={draw(e,t){const r=_t(t*uT),n=sT*r,i=lT*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Po*a/5,u=jw(o),s=xa(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},yc=_t(3),fT={draw(e,t){const r=-_t(t/(yc*3));e.moveTo(0,r*2),e.lineTo(-yc*r,-r),e.lineTo(yc*r,-r),e.closePath()}},ot=-.5,ut=_t(3)/2,Nf=1/_t(12),dT=(Nf/2+1)*3,pT={draw(e,t){const r=_t(t/dT),n=r/2,i=r*Nf,a=n,o=r*Nf+r,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(ot*n-ut*i,ut*n+ot*i),e.lineTo(ot*a-ut*o,ut*a+ot*o),e.lineTo(ot*u-ut*s,ut*u+ot*s),e.lineTo(ot*n+ut*i,ot*i-ut*n),e.lineTo(ot*a+ut*o,ot*o-ut*a),e.lineTo(ot*u+ut*s,ot*s-ut*u),e.closePath()}};function hT(e,t){let r=null,n=mp(i);e=typeof e=="function"?e:_e(e||bp),t=typeof t=="function"?t:_e(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:_e(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:_e(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Sa(){}function Oa(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Bw(e){this._context=e}Bw.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:Oa(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Oa(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function vT(e){return new Bw(e)}function Fw(e){this._context=e}Fw.prototype={areaStart:Sa,areaEnd:Sa,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);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Oa(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function yT(e){return new Fw(e)}function zw(e){this._context=e}zw.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Oa(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function mT(e){return new zw(e)}function Uw(e){this._context=e}Uw.prototype={areaStart:Sa,areaEnd:Sa,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function gT(e){return new Uw(e)}function Bm(e){return e<0?-1:1}function Fm(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(Bm(a)+Bm(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function zm(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function mc(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function _a(e){this._context=e}_a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:mc(this,this._t0,zm(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,mc(this,zm(this,r=Fm(this,e,t)),r);break;default:mc(this,this._t0,r=Fm(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Ww(e){this._context=new Hw(e)}(Ww.prototype=Object.create(_a.prototype)).point=function(e,t){_a.prototype.point.call(this,t,e)};function Hw(e){this._context=e}Hw.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function bT(e){return new _a(e)}function xT(e){return new Ww(e)}function Gw(e){this._context=e}Gw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Um(e),i=Um(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Um(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function wT(e){return new Gw(e)}function To(e,t){this._context=e,this._t=t}To.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function ST(e){return new To(e,.5)}function OT(e){return new To(e,0)}function _T(e){return new To(e,1)}function Vr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Lf(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function AT(e,t){return e[t]}function PT(e){const t=[];return t.key=e,t}function ET(){var e=_e([]),t=Lf,r=Vr,n=AT;function i(a){var o=Array.from(e.apply(this,arguments),PT),u,s=o.length,l=-1,f;for(const c of a)for(u=0,++l;u<s;++u)(o[u][l]=[0,+n(c,o[u].key,l,a)]).data=c;for(u=0,f=gp(t(o));u<s;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:_e(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:_e(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Lf:typeof a=="function"?a:_e(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Vr,i):r},i}function TT(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Vr(e,t)}}function CT(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}Vr(e,t)}}function MT(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,s=0,l=0;u<o;++u){for(var f=e[t[u]],c=f[n][1]||0,d=f[n-1][1]||0,p=(c-d)/2,y=0;y<u;++y){var v=e[t[y]],h=v[n][1]||0,b=v[n-1][1]||0;p+=h-b}s+=c,l+=p*c}i[n-1][1]+=i[n-1][0]=r,s&&(r-=l/s)}i[n-1][1]+=i[n-1][0]=r,Vr(e,t)}}function si(e){"@babel/helpers - typeof";return si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},si(e)}var jT=["type","size","sizeType"];function qf(){return qf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qf.apply(this,arguments)}function Wm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Hm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wm(Object(r),!0).forEach(function(n){IT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IT(e,t,r){return t=$T(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $T(e){var t=kT(e,"string");return si(t)=="symbol"?t:t+""}function kT(e,t){if(si(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RT(e,t){if(e==null)return{};var r=DT(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function DT(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Kw={symbolCircle:bp,symbolCross:nT,symbolDiamond:aT,symbolSquare:oT,symbolStar:cT,symbolTriangle:fT,symbolWye:pT},NT=Math.PI/180,LT=function(t){var r="symbol".concat(Ao(t));return Kw[r]||bp},qT=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*NT;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},BT=function(t,r){Kw["symbol".concat(Ao(t))]=r},Co=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,s=RT(t,jT),l=Hm(Hm({},s),{},{type:n,size:a,sizeType:u}),f=function(){var h=LT(n),b=hT().type(h).size(qT(a,u,n));return b()},c=l.className,d=l.cx,p=l.cy,y=oe(l,!0);return d===+d&&p===+p&&a===+a?O.createElement("path",qf({},y,{className:ce("recharts-symbols",c),transform:"translate(".concat(d,", ").concat(p,")"),d:f()})):null};Co.registerSymbol=BT;function Yr(e){"@babel/helpers - typeof";return Yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yr(e)}function Bf(){return Bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bf.apply(this,arguments)}function Gm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function FT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gm(Object(r),!0).forEach(function(n){li(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UT(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Yw(n.key),n)}}function WT(e,t,r){return t&&UT(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function HT(e,t,r){return t=Aa(t),GT(e,Vw()?Reflect.construct(t,r||[],Aa(e).constructor):t.apply(e,r))}function GT(e,t){if(t&&(Yr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return KT(e)}function KT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Vw=function(){return!!e})()}function Aa(e){return Aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Aa(e)}function VT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ff(e,t)}function Ff(e,t){return Ff=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ff(e,t)}function li(e,t,r){return t=Yw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yw(e){var t=YT(e,"string");return Yr(t)=="symbol"?t:t+""}function YT(e,t){if(Yr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var st=32,xp=(function(e){function t(){return zT(this,t),HT(this,t,arguments)}return VT(t,e),WT(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=st/2,o=st/6,u=st/3,s=n.inactive?i:n.color;if(n.type==="plainline")return O.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:st,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return O.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(a,"h").concat(u,`
44
- A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
45
- H`).concat(st,"M").concat(2*u,",").concat(a,`
46
- A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return O.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(st/8,"h").concat(st,"v").concat(st*3/4,"h").concat(-st,"z"),className:"recharts-legend-icon"});if(O.isValidElement(n.legendIcon)){var l=FT({},n);return delete l.legendIcon,O.cloneElement(n.legendIcon,l)}return O.createElement(Co,{fill:s,cx:a,cy:a,size:st,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,s=i.formatter,l=i.inactiveColor,f={x:0,y:0,width:st,height:st},c={display:u==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,y){var v=p.formatter||s,h=ce(li(li({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var b=se(p.value)?null:p.value;zt(!se(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var w=p.inactive?l:p.color;return O.createElement("li",Bf({className:h,style:c,key:"legend-item-".concat(y)},ui(n.props,p,y)),O.createElement($f,{width:o,height:o,viewBox:f,style:d},n.renderIcon(p)),O.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},v?v(b,p,y):b))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return O.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(O.PureComponent);li(xp,"displayName","Legend");li(xp,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var gc,Km;function Xw(){if(Km)return gc;Km=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return gc=e,gc}var bc,Vm;function XT(){if(Vm)return bc;Vm=1;function e(t){return t!==t}return bc=e,bc}var xc,Ym;function ZT(){if(Ym)return xc;Ym=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return xc=e,xc}var wc,Xm;function JT(){if(Xm)return wc;Xm=1;var e=Xw(),t=XT(),r=ZT();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return wc=n,wc}var Sc,Zm;function QT(){if(Zm)return Sc;Zm=1;var e=JT();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return Sc=t,Sc}var Oc,Jm;function eC(){if(Jm)return Oc;Jm=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return Oc=e,Oc}var _c,Qm;function tC(){if(Qm)return _c;Qm=1;function e(){}return _c=e,_c}var Ac,eg;function rC(){if(eg)return Ac;eg=1;var e=sw(),t=tC(),r=cp(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return Ac=i,Ac}var Pc,tg;function nC(){if(tg)return Pc;tg=1;var e=ew(),t=QT(),r=eC(),n=rw(),i=rC(),a=cp(),o=200;function u(s,l,f){var c=-1,d=t,p=s.length,y=!0,v=[],h=v;if(f)y=!1,d=r;else if(p>=o){var b=l?null:i(s);if(b)return a(b);y=!1,d=n,h=new e}else h=l?[]:v;e:for(;++c<p;){var w=s[c],g=l?l(w):w;if(w=f||w!==0?w:0,y&&g===g){for(var S=h.length;S--;)if(h[S]===g)continue e;l&&h.push(g),v.push(w)}else d(h,g,f)||(h!==v&&h.push(g),v.push(w))}return v}return Pc=u,Pc}var Ec,rg;function iC(){if(rg)return Ec;rg=1;var e=ir(),t=nC();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return Ec=r,Ec}var aC=iC();const ng=xe(aC);function Zw(e,t,r){return t===!0?ng(e,r):se(t)?ng(e,t):e}function Xr(e){"@babel/helpers - typeof";return Xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xr(e)}var oC=["ref"];function ig(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ig(Object(r),!0).forEach(function(n){Mo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ig(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ag(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Qw(n.key),n)}}function sC(e,t,r){return t&&ag(e.prototype,t),r&&ag(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function lC(e,t,r){return t=Pa(t),cC(e,Jw()?Reflect.construct(t,r||[],Pa(e).constructor):t.apply(e,r))}function cC(e,t){if(t&&(Xr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fC(e)}function fC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jw=function(){return!!e})()}function Pa(e){return Pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pa(e)}function dC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zf(e,t)}function zf(e,t){return zf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},zf(e,t)}function Mo(e,t,r){return t=Qw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qw(e){var t=pC(e,"string");return Xr(t)=="symbol"?t:t+""}function pC(e,t){if(Xr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function hC(e,t){if(e==null)return{};var r=vC(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vC(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function yC(e){return e.value}function mC(e,t){if(O.isValidElement(e))return O.cloneElement(e,t);if(typeof e=="function")return O.createElement(e,t);t.ref;var r=hC(t,oC);return O.createElement(xp,r)}var og=1,gr=(function(e){function t(){var r;uC(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=lC(this,t,[].concat(i)),Mo(r,"lastBoundingBox",{width:-1,height:-1}),r}return dC(t,e),sC(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>og||Math.abs(i.height-this.lastBoundingBox.height)>og)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Dt({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,s=i.margin,l=i.chartWidth,f=i.chartHeight,c,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();c={left:((l||0)-p.width)/2}}else c=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var y=this.getBBoxSnapshot();d={top:((f||0)-y.height)/2}}else d=u==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return Dt(Dt({},c),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,s=i.wrapperStyle,l=i.payloadUniqBy,f=i.payload,c=Dt(Dt({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(s)),s);return O.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(p){n.wrapperNode=p}},mC(a,Dt(Dt({},this.props),{},{payload:Zw(f,l,yC)})))}}],[{key:"getWithHeight",value:function(n,i){var a=Dt(Dt({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&K(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(O.PureComponent);Mo(gr,"displayName","Legend");Mo(gr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});function ci(e){"@babel/helpers - typeof";return ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ci(e)}function Uf(){return Uf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Uf.apply(this,arguments)}function gC(e,t){return SC(e)||wC(e,t)||xC(e,t)||bC()}function bC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
47
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xC(e,t){if(e){if(typeof e=="string")return ug(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ug(e,t)}}function ug(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){l=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function SC(e){if(Array.isArray(e))return e}function sg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sg(Object(r),!0).forEach(function(n){OC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OC(e,t,r){return t=_C(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _C(e){var t=AC(e,"string");return ci(t)=="symbol"?t:t+""}function AC(e,t){if(ci(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ci(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PC(e){return Array.isArray(e)&&Re(e[0])&&Re(e[1])?e.join(" ~ "):e}var EC=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,u=o===void 0?{}:o,s=t.labelStyle,l=s===void 0?{}:s,f=t.payload,c=t.formatter,d=t.itemSorter,p=t.wrapperClassName,y=t.labelClassName,v=t.label,h=t.labelFormatter,b=t.accessibilityLayer,w=b===void 0?!1:b,g=function(){if(f&&f.length){var T={padding:0,margin:0},j=(d?_o(f,d):f).map(function($,k){if($.type==="none")return null;var R=Tc({display:"block",paddingTop:4,paddingBottom:4,color:$.color||"#000"},u),D=$.formatter||c||PC,N=$.value,z=$.name,I=N,L=z;if(D&&I!=null&&L!=null){var F=D(N,z,$,k,f);if(Array.isArray(F)){var W=gC(F,2);I=W[0],L=W[1]}else I=F}return O.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(k),style:R},Re(L)?O.createElement("span",{className:"recharts-tooltip-item-name"},L):null,Re(L)?O.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,O.createElement("span",{className:"recharts-tooltip-item-value"},I),O.createElement("span",{className:"recharts-tooltip-item-unit"},$.unit||""))});return O.createElement("ul",{className:"recharts-tooltip-item-list",style:T},j)}return null},S=Tc({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=Tc({margin:0},l),x=!ae(v),_=x?v:"",A=ce("recharts-default-tooltip",p),E=ce("recharts-tooltip-label",y);x&&h&&f!==void 0&&f!==null&&(_=h(v,f));var M=w?{role:"status","aria-live":"assertive"}:{};return O.createElement("div",Uf({className:A,style:S},M),O.createElement("p",{className:E,style:m},O.isValidElement(_)?_:"".concat(_)),g())};function fi(e){"@babel/helpers - typeof";return fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fi(e)}function na(e,t,r){return t=TC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TC(e){var t=CC(e,"string");return fi(t)=="symbol"?t:t+""}function CC(e,t){if(fi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rn="recharts-tooltip-wrapper",MC={visibility:"hidden"};function jC(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ce(Rn,na(na(na(na({},"".concat(Rn,"-right"),K(r)&&t&&K(t.x)&&r>=t.x),"".concat(Rn,"-left"),K(r)&&t&&K(t.x)&&r<t.x),"".concat(Rn,"-bottom"),K(n)&&t&&K(t.y)&&n>=t.y),"".concat(Rn,"-top"),K(n)&&t&&K(t.y)&&n<t.y))}function lg(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,s=e.viewBox,l=e.viewBoxDimension;if(a&&K(a[n]))return a[n];var f=r[n]-u-i,c=r[n]+i;if(t[n])return o[n]?f:c;if(o[n]){var d=f,p=s[n];return d<p?Math.max(c,s[n]):Math.max(f,s[n])}var y=c+u,v=s[n]+l;return y>v?Math.max(f,s[n]):Math.max(c,s[n])}function IC(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function $C(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,s=e.viewBox,l,f,c;return o.height>0&&o.width>0&&r?(f=lg({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),c=lg({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),l=IC({translateX:f,translateY:c,useTranslate3d:u})):l=MC,{cssProperties:l,cssClasses:jC({translateX:f,translateY:c,coordinate:r})}}function Zr(e){"@babel/helpers - typeof";return Zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zr(e)}function cg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cg(Object(r),!0).forEach(function(n){Hf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tS(n.key),n)}}function DC(e,t,r){return t&&RC(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function NC(e,t,r){return t=Ea(t),LC(e,eS()?Reflect.construct(t,r||[],Ea(e).constructor):t.apply(e,r))}function LC(e,t){if(t&&(Zr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qC(e)}function qC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eS=function(){return!!e})()}function Ea(e){return Ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ea(e)}function BC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wf(e,t)}function Wf(e,t){return Wf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Wf(e,t)}function Hf(e,t,r){return t=tS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tS(e){var t=FC(e,"string");return Zr(t)=="symbol"?t:t+""}function FC(e,t){if(Zr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var dg=1,zC=(function(e){function t(){var r;kC(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=NC(this,t,[].concat(i)),Hf(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Hf(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,s,l,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(s=r.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&u!==void 0?u:0,y:(l=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&l!==void 0?l:0}})}}),r}return BC(t,e),DC(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>dg||Math.abs(n.height-this.state.lastBoundingBox.height)>dg)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,l=i.children,f=i.coordinate,c=i.hasPayload,d=i.isAnimationActive,p=i.offset,y=i.position,v=i.reverseDirection,h=i.useTranslate3d,b=i.viewBox,w=i.wrapperStyle,g=$C({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:h,viewBox:b}),S=g.cssClasses,m=g.cssProperties,x=fg(fg({transition:d&&a?"transform ".concat(u,"ms ").concat(s):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&c?"visible":"hidden",position:"absolute",top:0,left:0},w);return O.createElement("div",{tabIndex:-1,className:S,style:x,ref:function(A){n.wrapperNode=A}},l)}}])})(O.PureComponent),UC=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ar={isSsr:UC()};function Jr(e){"@babel/helpers - typeof";return Jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jr(e)}function pg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pg(Object(r),!0).forEach(function(n){wp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nS(n.key),n)}}function GC(e,t,r){return t&&HC(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function KC(e,t,r){return t=Ta(t),VC(e,rS()?Reflect.construct(t,r||[],Ta(e).constructor):t.apply(e,r))}function VC(e,t){if(t&&(Jr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YC(e)}function YC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rS=function(){return!!e})()}function Ta(e){return Ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ta(e)}function XC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gf(e,t)}function Gf(e,t){return Gf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gf(e,t)}function wp(e,t,r){return t=nS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nS(e){var t=ZC(e,"string");return Jr(t)=="symbol"?t:t+""}function ZC(e,t){if(Jr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function JC(e){return e.dataKey}function QC(e,t){return O.isValidElement(e)?O.cloneElement(e,t):typeof e=="function"?O.createElement(e,t):O.createElement(EC,t)}var Tt=(function(e){function t(){return WC(this,t),KC(this,t,arguments)}return XC(t,e),GC(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,l=i.content,f=i.coordinate,c=i.filterNull,d=i.isAnimationActive,p=i.offset,y=i.payload,v=i.payloadUniqBy,h=i.position,b=i.reverseDirection,w=i.useTranslate3d,g=i.viewBox,S=i.wrapperStyle,m=y??[];c&&m.length&&(m=Zw(y.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),v,JC));var x=m.length>0;return O.createElement(zC,{allowEscapeViewBox:o,animationDuration:u,animationEasing:s,isAnimationActive:d,active:a,coordinate:f,hasPayload:x,offset:p,position:h,reverseDirection:b,useTranslate3d:w,viewBox:g,wrapperStyle:S},QC(l,hg(hg({},this.props),{},{payload:m})))}}])})(O.PureComponent);wp(Tt,"displayName","Tooltip");wp(Tt,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ar.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Cc,vg;function eM(){if(vg)return Cc;vg=1;var e=Ot(),t=function(){return e.Date.now()};return Cc=t,Cc}var Mc,yg;function tM(){if(yg)return Mc;yg=1;var e=nr(),t=eM(),r=ep(),n="Expected a function",i=Math.max,a=Math.min;function o(u,s,l){var f,c,d,p,y,v,h=0,b=!1,w=!1,g=!0;if(typeof u!="function")throw new TypeError(n);s=r(s)||0,e(l)&&(b=!!l.leading,w="maxWait"in l,d=w?i(r(l.maxWait)||0,s):d,g="trailing"in l?!!l.trailing:g);function S(j){var $=f,k=c;return f=c=void 0,h=j,p=u.apply(k,$),p}function m(j){return h=j,y=setTimeout(A,s),b?S(j):p}function x(j){var $=j-v,k=j-h,R=s-$;return w?a(R,d-k):R}function _(j){var $=j-v,k=j-h;return v===void 0||$>=s||$<0||w&&k>=d}function A(){var j=t();if(_(j))return E(j);y=setTimeout(A,x(j))}function E(j){return y=void 0,g&&f?S(j):(f=c=void 0,p)}function M(){y!==void 0&&clearTimeout(y),h=0,f=v=c=y=void 0}function P(){return y===void 0?p:E(t())}function T(){var j=t(),$=_(j);if(f=arguments,c=this,v=j,$){if(y===void 0)return m(v);if(w)return clearTimeout(y),y=setTimeout(A,s),S(v)}return y===void 0&&(y=setTimeout(A,s)),p}return T.cancel=M,T.flush=P,T}return Mc=o,Mc}var jc,mg;function rM(){if(mg)return jc;mg=1;var e=tM(),t=nr(),r="Expected a function";function n(i,a,o){var u=!0,s=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(u="leading"in o?!!o.leading:u,s="trailing"in o?!!o.trailing:s),e(i,a,{leading:u,maxWait:a,trailing:s})}return jc=n,jc}var nM=rM();const iS=xe(nM);function di(e){"@babel/helpers - typeof";return di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},di(e)}function gg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ia(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gg(Object(r),!0).forEach(function(n){iM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iM(e,t,r){return t=aM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aM(e){var t=oM(e,"string");return di(t)=="symbol"?t:t+""}function oM(e,t){if(di(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(di(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uM(e,t){return fM(e)||cM(e,t)||lM(e,t)||sM()}function sM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
48
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lM(e,t){if(e){if(typeof e=="string")return bg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bg(e,t)}}function bg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function cM(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){l=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function fM(e){if(Array.isArray(e))return e}var dM=O.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,u=e.height,s=u===void 0?"100%":u,l=e.minWidth,f=l===void 0?0:l,c=e.minHeight,d=e.maxHeight,p=e.children,y=e.debounce,v=y===void 0?0:y,h=e.id,b=e.className,w=e.onResize,g=e.style,S=g===void 0?{}:g,m=O.useRef(null),x=O.useRef();x.current=w,O.useImperativeHandle(t,function(){return Object.defineProperty(m.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),m.current},configurable:!0})});var _=O.useState({containerWidth:i.width,containerHeight:i.height}),A=uM(_,2),E=A[0],M=A[1],P=O.useCallback(function(j,$){M(function(k){var R=Math.round(j),D=Math.round($);return k.containerWidth===R&&k.containerHeight===D?k:{containerWidth:R,containerHeight:D}})},[]);O.useEffect(function(){var j=function(z){var I,L=z[0].contentRect,F=L.width,W=L.height;P(F,W),(I=x.current)===null||I===void 0||I.call(x,F,W)};v>0&&(j=iS(j,v,{trailing:!0,leading:!1}));var $=new ResizeObserver(j),k=m.current.getBoundingClientRect(),R=k.width,D=k.height;return P(R,D),$.observe(m.current),function(){$.disconnect()}},[P,v]);var T=O.useMemo(function(){var j=E.containerWidth,$=E.containerHeight;if(j<0||$<0)return null;zt(pr(o)||pr(s),`The width(%s) and height(%s) are both fixed numbers,
49
- maybe you don't need to use a ResponsiveContainer.`,o,s),zt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var k=pr(o)?j:o,R=pr(s)?$:s;r&&r>0&&(k?R=k/r:R&&(k=R*r),d&&R>d&&(R=d)),zt(k>0||R>0,`The width(%s) and height(%s) of chart should be greater than 0,
50
- please check the style of container, or the props width(%s) and height(%s),
51
- or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
52
- height and width.`,k,R,o,s,f,c,r);var D=!Array.isArray(p)&&Ft(p.type).endsWith("Chart");return O.Children.map(p,function(N){return O.isValidElement(N)?O.cloneElement(N,ia({width:k,height:R},D?{style:ia({height:"100%",width:"100%",maxHeight:R,maxWidth:k},N.props.style)}:{})):N})},[r,p,s,d,c,f,E,o]);return O.createElement("div",{id:h?"".concat(h):void 0,className:ce("recharts-responsive-container",b),style:ia(ia({},S),{},{width:o,height:s,minWidth:f,minHeight:c,maxHeight:d}),ref:m},T)}),Sp=function(t){return null};Sp.displayName="Cell";function pi(e){"@babel/helpers - typeof";return pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pi(e)}function xg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xg(Object(r),!0).forEach(function(n){pM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pM(e,t,r){return t=hM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hM(e){var t=vM(e,"string");return pi(t)=="symbol"?t:t+""}function vM(e,t){if(pi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kr={widthCache:{},cacheCount:0},yM=2e3,mM={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},wg="recharts_measurement_span";function gM(e){var t=Kf({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Jn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ar.isSsr)return{width:0,height:0};var n=gM(r),i=JSON.stringify({text:t,copyStyle:n});if(kr.widthCache[i])return kr.widthCache[i];try{var a=document.getElementById(wg);a||(a=document.createElement("span"),a.setAttribute("id",wg),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Kf(Kf({},mM),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),s={width:u.width,height:u.height};return kr.widthCache[i]=s,++kr.cacheCount>yM&&(kr.cacheCount=0,kr.widthCache={}),s}catch{return{width:0,height:0}}},bM=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function hi(e){"@babel/helpers - typeof";return hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hi(e)}function Ca(e,t){return OM(e)||SM(e,t)||wM(e,t)||xM()}function xM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
53
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wM(e,t){if(e){if(typeof e=="string")return Sg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sg(e,t)}}function Sg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function SM(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,l=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){l=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function OM(e){if(Array.isArray(e))return e}function _M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Og(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,PM(n.key),n)}}function AM(e,t,r){return t&&Og(e.prototype,t),r&&Og(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function PM(e){var t=EM(e,"string");return hi(t)=="symbol"?t:t+""}function EM(e,t){if(hi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _g=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Ag=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,TM=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,CM=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,aS={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},MM=Object.keys(aS),qr="NaN";function jM(e,t){return e*aS[t]}var aa=(function(){function e(t,r){_M(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!TM.test(r)&&(this.num=NaN,this.unit=""),MM.includes(r)&&(this.num=jM(t,r),this.unit="px")}return AM(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=CM.exec(r))!==null&&n!==void 0?n:[],a=Ca(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])})();function oS(e){if(e.includes(qr))return qr;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=_g.exec(t))!==null&&r!==void 0?r:[],i=Ca(n,4),a=i[1],o=i[2],u=i[3],s=aa.parse(a??""),l=aa.parse(u??""),f=o==="*"?s.multiply(l):s.divide(l);if(f.isNaN())return qr;t=t.replace(_g,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,d=(c=Ag.exec(t))!==null&&c!==void 0?c:[],p=Ca(d,4),y=p[1],v=p[2],h=p[3],b=aa.parse(y??""),w=aa.parse(h??""),g=v==="+"?b.add(w):b.subtract(w);if(g.isNaN())return qr;t=t.replace(Ag,g.toString())}return t}var Pg=/\(([^()]*)\)/;function IM(e){for(var t=e;t.includes("(");){var r=Pg.exec(t),n=Ca(r,2),i=n[1];t=t.replace(Pg,oS(i))}return t}function $M(e){var t=e.replace(/\s+/g,"");return t=IM(t),t=oS(t),t}function kM(e){try{return $M(e)}catch{return qr}}function Ic(e){var t=kM(e.slice(5,-1));return t===qr?"":t}var RM=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],DM=["dx","dy","angle","className","breakAll"];function Vf(){return Vf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vf.apply(this,arguments)}function Eg(e,t){if(e==null)return{};var r=NM(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function NM(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Tg(e,t){return FM(e)||BM(e,t)||qM(e,t)||LM()}function LM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
54
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qM(e,t){if(e){if(typeof e=="string")return Cg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cg(e,t)}}function Cg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function BM(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,l=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){l=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function FM(e){if(Array.isArray(e))return e}var uS=/[ \f\n\r\t\v\u2028\u2029]+/,sS=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];ae(r)||(n?a=r.toString().split(""):a=r.toString().split(uS));var o=a.map(function(s){return{word:s,width:Jn(s,i).width}}),u=n?0:Jn(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},zM=function(t,r,n,i,a){var o=t.maxLines,u=t.children,s=t.style,l=t.breakAll,f=K(o),c=u,d=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return k.reduce(function(R,D){var N=D.word,z=D.width,I=R[R.length-1];if(I&&(i==null||a||I.width+z+n<Number(i)))I.words.push(N),I.width+=z+n;else{var L={words:[N],width:z};R.push(L)}return R},[])},p=d(r),y=function(k){return k.reduce(function(R,D){return R.width>D.width?R:D})};if(!f)return p;for(var v="…",h=function(k){var R=c.slice(0,k),D=sS({breakAll:l,style:s,children:R+v}).wordsWithComputedWidth,N=d(D),z=N.length>o||y(N).width>Number(i);return[z,N]},b=0,w=c.length-1,g=0,S;b<=w&&g<=c.length-1;){var m=Math.floor((b+w)/2),x=m-1,_=h(x),A=Tg(_,2),E=A[0],M=A[1],P=h(m),T=Tg(P,1),j=T[0];if(!E&&!j&&(b=m+1),E&&j&&(w=m-1),!E&&j){S=M;break}g++}return S||p},Mg=function(t){var r=ae(t)?[]:t.toString().split(uS);return[{words:r}]},UM=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!ar.isSsr){var s,l,f=sS({breakAll:o,children:i,style:a});if(f){var c=f.wordsWithComputedWidth,d=f.spaceWidth;s=c,l=d}else return Mg(i);return zM({breakAll:o,children:i,maxLines:u,style:a},s,l,r,n)}return Mg(i)},jg="#808080",Ma=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,s=t.capHeight,l=s===void 0?"0.71em":s,f=t.scaleToFit,c=f===void 0?!1:f,d=t.textAnchor,p=d===void 0?"start":d,y=t.verticalAnchor,v=y===void 0?"end":y,h=t.fill,b=h===void 0?jg:h,w=Eg(t,RM),g=O.useMemo(function(){return UM({breakAll:w.breakAll,children:w.children,maxLines:w.maxLines,scaleToFit:c,style:w.style,width:w.width})},[w.breakAll,w.children,w.maxLines,c,w.style,w.width]),S=w.dx,m=w.dy,x=w.angle,_=w.className,A=w.breakAll,E=Eg(w,DM);if(!Re(n)||!Re(a))return null;var M=n+(K(S)?S:0),P=a+(K(m)?m:0),T;switch(v){case"start":T=Ic("calc(".concat(l,")"));break;case"middle":T=Ic("calc(".concat((g.length-1)/2," * -").concat(u," + (").concat(l," / 2))"));break;default:T=Ic("calc(".concat(g.length-1," * -").concat(u,")"));break}var j=[];if(c){var $=g[0].width,k=w.width;j.push("scale(".concat((K(k)?k/$:1)/$,")"))}return x&&j.push("rotate(".concat(x,", ").concat(M,", ").concat(P,")")),j.length&&(E.transform=j.join(" ")),O.createElement("text",Vf({},oe(E,!0),{x:M,y:P,className:ce("recharts-text",_),textAnchor:p,fill:b.includes("url")?jg:b}),g.map(function(R,D){var N=R.words.join(A?"":" ");return O.createElement("tspan",{x:M,dy:D===0?T:u,key:"".concat(N,"-").concat(D)},N)}))};function rr(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function WM(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Op(e){let t,r,n;e.length!==2?(t=rr,r=(u,s)=>rr(e(u),s),n=(u,s)=>e(u)-s):(t=e===rr||e===WM?e:HM,r=e,n=e);function i(u,s,l=0,f=u.length){if(l<f){if(t(s,s)!==0)return f;do{const c=l+f>>>1;r(u[c],s)<0?l=c+1:f=c}while(l<f)}return l}function a(u,s,l=0,f=u.length){if(l<f){if(t(s,s)!==0)return f;do{const c=l+f>>>1;r(u[c],s)<=0?l=c+1:f=c}while(l<f)}return l}function o(u,s,l=0,f=u.length){const c=i(u,s,l,f-1);return c>l&&n(u[c-1],s)>-n(u[c],s)?c-1:c}return{left:i,center:o,right:a}}function HM(){return 0}function lS(e){return e===null?NaN:+e}function*GM(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const KM=Op(rr),Vi=KM.right;Op(lS).center;class Ig extends Map{constructor(t,r=XM){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get($g(this,t))}has(t){return super.has($g(this,t))}set(t,r){return super.set(VM(this,t),r)}delete(t){return super.delete(YM(this,t))}}function $g({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function VM({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function YM({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function XM(e){return e!==null&&typeof e=="object"?e.valueOf():e}function ZM(e=rr){if(e===rr)return cS;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function cS(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const JM=Math.sqrt(50),QM=Math.sqrt(10),ej=Math.sqrt(2);function ja(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=JM?10:a>=QM?5:a>=ej?2:1;let u,s,l;return i<0?(l=Math.pow(10,-i)/o,u=Math.round(e*l),s=Math.round(t*l),u/l<e&&++u,s/l>t&&--s,l=-l):(l=Math.pow(10,i)*o,u=Math.round(e/l),s=Math.round(t/l),u*l<e&&++u,s*l>t&&--s),s<u&&.5<=r&&r<2?ja(e,t,r*2):[u,s,l]}function Yf(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?ja(t,e,r):ja(e,t,r);if(!(a>=i))return[];const u=a-i+1,s=new Array(u);if(n)if(o<0)for(let l=0;l<u;++l)s[l]=(a-l)/-o;else for(let l=0;l<u;++l)s[l]=(a-l)*o;else if(o<0)for(let l=0;l<u;++l)s[l]=(i+l)/-o;else for(let l=0;l<u;++l)s[l]=(i+l)*o;return s}function Xf(e,t,r){return t=+t,e=+e,r=+r,ja(e,t,r)[2]}function Zf(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Xf(t,e,r):Xf(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function kg(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Rg(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function fS(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?cS:ZM(i);n>r;){if(n-r>600){const s=n-r+1,l=t-r+1,f=Math.log(s),c=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*c*(s-c)/s)*(l-s/2<0?-1:1),p=Math.max(r,Math.floor(t-l*c/s+d)),y=Math.min(n,Math.floor(t+(s-l)*c/s+d));fS(e,t,p,y,i)}const a=e[t];let o=r,u=n;for(Dn(e,r,t),i(e[n],a)>0&&Dn(e,r,n);o<u;){for(Dn(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?Dn(e,r,u):(++u,Dn(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function Dn(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function tj(e,t,r){if(e=Float64Array.from(GM(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Rg(e);if(t>=1)return kg(e);var n,i=(n-1)*t,a=Math.floor(i),o=kg(fS(e,a).subarray(0,a+1)),u=Rg(e.subarray(a+1));return o+(u-o)*(i-a)}}function rj(e,t,r=lS){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function nj(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function vt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Yt(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Jf=Symbol("implicit");function _p(){var e=new Ig,t=[],r=[],n=Jf;function i(a){let o=e.get(a);if(o===void 0){if(n!==Jf)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Ig;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return _p(t,r).unknown(n)},vt.apply(i,arguments),i}function vi(){var e=_p().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,s=0,l=0,f=.5;delete e.unknown;function c(){var d=t().length,p=i<n,y=p?i:n,v=p?n:i;a=(v-y)/Math.max(1,d-s+l*2),u&&(a=Math.floor(a)),y+=(v-y-a*(d-s))*f,o=a*(1-s),u&&(y=Math.round(y),o=Math.round(o));var h=nj(d).map(function(b){return y+a*b});return r(p?h.reverse():h)}return e.domain=function(d){return arguments.length?(t(d),c()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,c()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,u=!0,c()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(u=!!d,c()):u},e.padding=function(d){return arguments.length?(s=Math.min(1,l=+d),c()):s},e.paddingInner=function(d){return arguments.length?(s=Math.min(1,d),c()):s},e.paddingOuter=function(d){return arguments.length?(l=+d,c()):l},e.align=function(d){return arguments.length?(f=Math.max(0,Math.min(1,d)),c()):f},e.copy=function(){return vi(t(),[n,i]).round(u).paddingInner(s).paddingOuter(l).align(f)},vt.apply(c(),arguments)}function dS(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return dS(t())},e}function Qn(){return dS(vi.apply(null,arguments).paddingInner(1))}function Ap(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function pS(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Yi(){}var yi=.7,Ia=1/yi,Gr="\\s*([+-]?\\d+)\\s*",mi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",jt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ij=/^#([0-9a-f]{3,8})$/,aj=new RegExp(`^rgb\\(${Gr},${Gr},${Gr}\\)$`),oj=new RegExp(`^rgb\\(${jt},${jt},${jt}\\)$`),uj=new RegExp(`^rgba\\(${Gr},${Gr},${Gr},${mi}\\)$`),sj=new RegExp(`^rgba\\(${jt},${jt},${jt},${mi}\\)$`),lj=new RegExp(`^hsl\\(${mi},${jt},${jt}\\)$`),cj=new RegExp(`^hsla\\(${mi},${jt},${jt},${mi}\\)$`),Dg={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ap(Yi,gi,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ng,formatHex:Ng,formatHex8:fj,formatHsl:dj,formatRgb:Lg,toString:Lg});function Ng(){return this.rgb().formatHex()}function fj(){return this.rgb().formatHex8()}function dj(){return hS(this).formatHsl()}function Lg(){return this.rgb().formatRgb()}function gi(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ij.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?qg(t):r===3?new Ze(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?oa(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?oa(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=aj.exec(e))?new Ze(t[1],t[2],t[3],1):(t=oj.exec(e))?new Ze(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=uj.exec(e))?oa(t[1],t[2],t[3],t[4]):(t=sj.exec(e))?oa(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=lj.exec(e))?zg(t[1],t[2]/100,t[3]/100,1):(t=cj.exec(e))?zg(t[1],t[2]/100,t[3]/100,t[4]):Dg.hasOwnProperty(e)?qg(Dg[e]):e==="transparent"?new Ze(NaN,NaN,NaN,0):null}function qg(e){return new Ze(e>>16&255,e>>8&255,e&255,1)}function oa(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ze(e,t,r,n)}function pj(e){return e instanceof Yi||(e=gi(e)),e?(e=e.rgb(),new Ze(e.r,e.g,e.b,e.opacity)):new Ze}function Qf(e,t,r,n){return arguments.length===1?pj(e):new Ze(e,t,r,n??1)}function Ze(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Ap(Ze,Qf,pS(Yi,{brighter(e){return e=e==null?Ia:Math.pow(Ia,e),new Ze(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?yi:Math.pow(yi,e),new Ze(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ze(br(this.r),br(this.g),br(this.b),$a(this.opacity))},displayable(){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:Bg,formatHex:Bg,formatHex8:hj,formatRgb:Fg,toString:Fg}));function Bg(){return`#${hr(this.r)}${hr(this.g)}${hr(this.b)}`}function hj(){return`#${hr(this.r)}${hr(this.g)}${hr(this.b)}${hr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Fg(){const e=$a(this.opacity);return`${e===1?"rgb(":"rgba("}${br(this.r)}, ${br(this.g)}, ${br(this.b)}${e===1?")":`, ${e})`}`}function $a(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function br(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function hr(e){return e=br(e),(e<16?"0":"")+e.toString(16)}function zg(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new xt(e,t,r,n)}function hS(e){if(e instanceof xt)return new xt(e.h,e.s,e.l,e.opacity);if(e instanceof Yi||(e=gi(e)),!e)return new xt;if(e instanceof xt)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,s=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new xt(o,u,s,e.opacity)}function vj(e,t,r,n){return arguments.length===1?hS(e):new xt(e,t,r,n??1)}function xt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Ap(xt,vj,pS(Yi,{brighter(e){return e=e==null?Ia:Math.pow(Ia,e),new xt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?yi:Math.pow(yi,e),new xt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Ze($c(e>=240?e-240:e+120,i,n),$c(e,i,n),$c(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new xt(Ug(this.h),ua(this.s),ua(this.l),$a(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=$a(this.opacity);return`${e===1?"hsl(":"hsla("}${Ug(this.h)}, ${ua(this.s)*100}%, ${ua(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ug(e){return e=(e||0)%360,e<0?e+360:e}function ua(e){return Math.max(0,Math.min(1,e||0))}function $c(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Pp=e=>()=>e;function yj(e,t){return function(r){return e+r*t}}function mj(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function gj(e){return(e=+e)==1?vS:function(t,r){return r-t?mj(t,r,e):Pp(isNaN(t)?r:t)}}function vS(e,t){var r=t-e;return r?yj(e,r):Pp(isNaN(e)?t:e)}const Wg=(function e(t){var r=gj(t);function n(i,a){var o=r((i=Qf(i)).r,(a=Qf(a)).r),u=r(i.g,a.g),s=r(i.b,a.b),l=vS(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=s(f),i.opacity=l(f),i+""}}return n.gamma=e,n})(1);function bj(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function xj(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function wj(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=En(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function Sj(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function ka(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function Oj(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=En(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var ed=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,kc=new RegExp(ed.source,"g");function _j(e){return function(){return e}}function Aj(e){return function(t){return e(t)+""}}function Pj(e,t){var r=ed.lastIndex=kc.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=ed.exec(e))&&(i=kc.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,s.push({i:o,x:ka(n,i)})),r=kc.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?Aj(s[0].x):_j(t):(t=s.length,function(l){for(var f=0,c;f<t;++f)u[(c=s[f]).i]=c.x(l);return u.join("")})}function En(e,t){var r=typeof t,n;return t==null||r==="boolean"?Pp(t):(r==="number"?ka:r==="string"?(n=gi(t))?(t=n,Wg):Pj:t instanceof gi?Wg:t instanceof Date?Sj:xj(t)?bj:Array.isArray(t)?wj:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Oj:ka)(e,t)}function Ep(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function Ej(e,t){t===void 0&&(t=e,e=En);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function Tj(e){return function(){return e}}function Ra(e){return+e}var Hg=[0,1];function Ve(e){return e}function td(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:Tj(isNaN(t)?NaN:.5)}function Cj(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function Mj(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=td(i,n),a=r(o,a)):(n=td(n,i),a=r(a,o)),function(u){return a(n(u))}}function jj(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=td(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var s=Vi(e,u,1,n)-1;return a[s](i[s](u))}}function Xi(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function jo(){var e=Hg,t=Hg,r=En,n,i,a,o=Ve,u,s,l;function f(){var d=Math.min(e.length,t.length);return o!==Ve&&(o=Cj(e[0],e[d-1])),u=d>2?jj:Mj,s=l=null,c}function c(d){return d==null||isNaN(d=+d)?a:(s||(s=u(e.map(n),t,r)))(n(o(d)))}return c.invert=function(d){return o(i((l||(l=u(t,e.map(n),ka)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,Ra),f()):e.slice()},c.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},c.rangeRound=function(d){return t=Array.from(d),r=Ep,f()},c.clamp=function(d){return arguments.length?(o=d?!0:Ve,f()):o!==Ve},c.interpolate=function(d){return arguments.length?(r=d,f()):r},c.unknown=function(d){return arguments.length?(a=d,c):a},function(d,p){return n=d,i=p,f()}}function Tp(){return jo()(Ve,Ve)}function Ij(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Da(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Qr(e){return e=Da(Math.abs(e)),e?e[1]:NaN}function $j(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>n&&(u=Math.max(1,n-s)),a.push(r.substring(i-=u,i+u)),!((s+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function kj(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Rj=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bi(e){if(!(t=Rj.exec(e)))throw new Error("invalid format: "+e);var t;return new Cp({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}bi.prototype=Cp.prototype;function Cp(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Cp.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Dj(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var yS;function Nj(e,t){var r=Da(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(yS=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Da(e,Math.max(0,t+a-1))[0]}function Gg(e,t){var r=Da(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const Kg={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Ij,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Gg(e*100,t),r:Gg,s:Nj,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Vg(e){return e}var Yg=Array.prototype.map,Xg=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Lj(e){var t=e.grouping===void 0||e.thousands===void 0?Vg:$j(Yg.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Vg:kj(Yg.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function l(c){c=bi(c);var d=c.fill,p=c.align,y=c.sign,v=c.symbol,h=c.zero,b=c.width,w=c.comma,g=c.precision,S=c.trim,m=c.type;m==="n"?(w=!0,m="g"):Kg[m]||(g===void 0&&(g=12),S=!0,m="g"),(h||d==="0"&&p==="=")&&(h=!0,d="0",p="=");var x=v==="$"?r:v==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",_=v==="$"?n:/[%p]/.test(m)?o:"",A=Kg[m],E=/[defgprs%]/.test(m);g=g===void 0?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g));function M(P){var T=x,j=_,$,k,R;if(m==="c")j=A(P)+j,P="";else{P=+P;var D=P<0||1/P<0;if(P=isNaN(P)?s:A(Math.abs(P),g),S&&(P=Dj(P)),D&&+P==0&&y!=="+"&&(D=!1),T=(D?y==="("?y:u:y==="-"||y==="("?"":y)+T,j=(m==="s"?Xg[8+yS/3]:"")+j+(D&&y==="("?")":""),E){for($=-1,k=P.length;++$<k;)if(R=P.charCodeAt($),48>R||R>57){j=(R===46?i+P.slice($+1):P.slice($))+j,P=P.slice(0,$);break}}}w&&!h&&(P=t(P,1/0));var N=T.length+P.length+j.length,z=N<b?new Array(b-N+1).join(d):"";switch(w&&h&&(P=t(z+P,z.length?b-j.length:1/0),z=""),p){case"<":P=T+P+j+z;break;case"=":P=T+z+P+j;break;case"^":P=z.slice(0,N=z.length>>1)+T+P+j+z.slice(N);break;default:P=z+T+P+j;break}return a(P)}return M.toString=function(){return c+""},M}function f(c,d){var p=l((c=bi(c),c.type="f",c)),y=Math.max(-8,Math.min(8,Math.floor(Qr(d)/3)))*3,v=Math.pow(10,-y),h=Xg[8+y/3];return function(b){return p(v*b)+h}}return{format:l,formatPrefix:f}}var sa,Mp,mS;qj({thousands:",",grouping:[3],currency:["$",""]});function qj(e){return sa=Lj(e),Mp=sa.format,mS=sa.formatPrefix,sa}function Bj(e){return Math.max(0,-Qr(Math.abs(e)))}function Fj(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Qr(t)/3)))*3-Qr(Math.abs(e)))}function zj(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Qr(t)-Qr(e))+1}function gS(e,t,r,n){var i=Zf(e,t,r),a;switch(n=bi(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=Fj(i,o))&&(n.precision=a),mS(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=zj(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=Bj(i))&&(n.precision=a-(n.type==="%")*2);break}}return Mp(n)}function or(e){var t=e.domain;return e.ticks=function(r){var n=t();return Yf(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return gS(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],s,l,f=10;for(u<o&&(l=o,o=u,u=l,l=i,i=a,a=l);f-- >0;){if(l=Xf(o,u,r),l===s)return n[i]=o,n[a]=u,t(n);if(l>0)o=Math.floor(o/l)*l,u=Math.ceil(u/l)*l;else if(l<0)o=Math.ceil(o*l)/l,u=Math.floor(u*l)/l;else break;s=l}return e},e}function Na(){var e=Tp();return e.copy=function(){return Xi(e,Na())},vt.apply(e,arguments),or(e)}function bS(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Ra),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return bS(e).unknown(t)},e=arguments.length?Array.from(e,Ra):[0,1],or(r)}function xS(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function Zg(e){return Math.log(e)}function Jg(e){return Math.exp(e)}function Uj(e){return-Math.log(-e)}function Wj(e){return-Math.exp(-e)}function Hj(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Gj(e){return e===10?Hj:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Kj(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Qg(e){return(t,r)=>-e(-t,r)}function jp(e){const t=e(Zg,Jg),r=t.domain;let n=10,i,a;function o(){return i=Kj(n),a=Gj(n),r()[0]<0?(i=Qg(i),a=Qg(a),e(Uj,Wj)):e(Zg,Jg),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const s=r();let l=s[0],f=s[s.length-1];const c=f<l;c&&([l,f]=[f,l]);let d=i(l),p=i(f),y,v;const h=u==null?10:+u;let b=[];if(!(n%1)&&p-d<h){if(d=Math.floor(d),p=Math.ceil(p),l>0){for(;d<=p;++d)for(y=1;y<n;++y)if(v=d<0?y/a(-d):y*a(d),!(v<l)){if(v>f)break;b.push(v)}}else for(;d<=p;++d)for(y=n-1;y>=1;--y)if(v=d>0?y/a(-d):y*a(d),!(v<l)){if(v>f)break;b.push(v)}b.length*2<h&&(b=Yf(l,f,h))}else b=Yf(d,p,Math.min(p-d,h)).map(a);return c?b.reverse():b},t.tickFormat=(u,s)=>{if(u==null&&(u=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=bi(s)).precision==null&&(s.trim=!0),s=Mp(s)),u===1/0)return s;const l=Math.max(1,n*u/t.ticks().length);return f=>{let c=f/a(Math.round(i(f)));return c*n<n-.5&&(c*=n),c<=l?s(f):""}},t.nice=()=>r(xS(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function wS(){const e=jp(jo()).domain([1,10]);return e.copy=()=>Xi(e,wS()).base(e.base()),vt.apply(e,arguments),e}function eb(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function tb(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Ip(e){var t=1,r=e(eb(t),tb(t));return r.constant=function(n){return arguments.length?e(eb(t=+n),tb(t)):t},or(r)}function SS(){var e=Ip(jo());return e.copy=function(){return Xi(e,SS()).constant(e.constant())},vt.apply(e,arguments)}function rb(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Vj(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Yj(e){return e<0?-e*e:e*e}function $p(e){var t=e(Ve,Ve),r=1;function n(){return r===1?e(Ve,Ve):r===.5?e(Vj,Yj):e(rb(r),rb(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},or(t)}function kp(){var e=$p(jo());return e.copy=function(){return Xi(e,kp()).exponent(e.exponent())},vt.apply(e,arguments),e}function Xj(){return kp.apply(null,arguments).exponent(.5)}function nb(e){return Math.sign(e)*e*e}function Zj(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function OS(){var e=Tp(),t=[0,1],r=!1,n;function i(a){var o=Zj(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(nb(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Ra)).map(nb)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return OS(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},vt.apply(i,arguments),or(i)}function _S(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o<u;)r[o-1]=rj(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Vi(r,o)]}return a.invertExtent=function(o){var u=t.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:e[0],u<r.length?r[u]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let u of o)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(rr),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return _S().domain(e).range(t).unknown(n)},vt.apply(a,arguments)}function AS(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[Vi(n,s,0,r)]:a}function u(){var s=-1;for(n=new Array(r);++s<r;)n[s]=((s+1)*t-(s-r)*e)/(r+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,u()):[e,t]},o.range=function(s){return arguments.length?(r=(i=Array.from(s)).length-1,u()):i.slice()},o.invertExtent=function(s){var l=i.indexOf(s);return l<0?[NaN,NaN]:l<1?[e,n[0]]:l>=r?[n[r-1],t]:[n[l-1],n[l]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return n.slice()},o.copy=function(){return AS().domain([e,t]).range(i).unknown(a)},vt.apply(or(o),arguments)}function PS(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Vi(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return PS().domain(e).range(t).unknown(r)},vt.apply(i,arguments)}const Rc=new Date,Dc=new Date;function Le(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const s=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return s;let l;do s.push(l=new Date(+a)),t(a,u),e(a);while(l<a&&a<o);return s},i.filter=a=>Le(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Rc.setTime(+a),Dc.setTime(+o),e(Rc),e(Dc),Math.floor(r(Rc,Dc))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const La=Le(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);La.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Le(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):La);La.range;const Lt=1e3,ct=Lt*60,qt=ct*60,Wt=qt*24,Rp=Wt*7,ib=Wt*30,Nc=Wt*365,vr=Le(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Lt)},(e,t)=>(t-e)/Lt,e=>e.getUTCSeconds());vr.range;const Dp=Le(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Lt)},(e,t)=>{e.setTime(+e+t*ct)},(e,t)=>(t-e)/ct,e=>e.getMinutes());Dp.range;const Np=Le(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ct)},(e,t)=>(t-e)/ct,e=>e.getUTCMinutes());Np.range;const Lp=Le(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Lt-e.getMinutes()*ct)},(e,t)=>{e.setTime(+e+t*qt)},(e,t)=>(t-e)/qt,e=>e.getHours());Lp.range;const qp=Le(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*qt)},(e,t)=>(t-e)/qt,e=>e.getUTCHours());qp.range;const Zi=Le(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ct)/Wt,e=>e.getDate()-1);Zi.range;const Io=Le(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Wt,e=>e.getUTCDate()-1);Io.range;const ES=Le(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Wt,e=>Math.floor(e/Wt));ES.range;function Mr(e){return Le(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*ct)/Rp)}const $o=Mr(0),qa=Mr(1),Jj=Mr(2),Qj=Mr(3),en=Mr(4),eI=Mr(5),tI=Mr(6);$o.range;qa.range;Jj.range;Qj.range;en.range;eI.range;tI.range;function jr(e){return Le(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Rp)}const ko=jr(0),Ba=jr(1),rI=jr(2),nI=jr(3),tn=jr(4),iI=jr(5),aI=jr(6);ko.range;Ba.range;rI.range;nI.range;tn.range;iI.range;aI.range;const Bp=Le(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Bp.range;const Fp=Le(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Fp.range;const Ht=Le(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Ht.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Le(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Ht.range;const Gt=Le(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Gt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Le(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Gt.range;function TS(e,t,r,n,i,a){const o=[[vr,1,Lt],[vr,5,5*Lt],[vr,15,15*Lt],[vr,30,30*Lt],[a,1,ct],[a,5,5*ct],[a,15,15*ct],[a,30,30*ct],[i,1,qt],[i,3,3*qt],[i,6,6*qt],[i,12,12*qt],[n,1,Wt],[n,2,2*Wt],[r,1,Rp],[t,1,ib],[t,3,3*ib],[e,1,Nc]];function u(l,f,c){const d=f<l;d&&([l,f]=[f,l]);const p=c&&typeof c.range=="function"?c:s(l,f,c),y=p?p.range(l,+f+1):[];return d?y.reverse():y}function s(l,f,c){const d=Math.abs(f-l)/c,p=Op(([,,h])=>h).right(o,d);if(p===o.length)return e.every(Zf(l/Nc,f/Nc,c));if(p===0)return La.every(Math.max(Zf(l,f,c),1));const[y,v]=o[d/o[p-1][2]<o[p][2]/d?p-1:p];return y.every(v)}return[u,s]}const[oI,uI]=TS(Gt,Fp,ko,ES,qp,Np),[sI,lI]=TS(Ht,Bp,$o,Zi,Lp,Dp);function Lc(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function qc(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Nn(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function cI(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,s=e.shortMonths,l=Ln(i),f=qn(i),c=Ln(a),d=qn(a),p=Ln(o),y=qn(o),v=Ln(u),h=qn(u),b=Ln(s),w=qn(s),g={a:D,A:N,b:z,B:I,c:null,d:cb,e:cb,f:$I,g:UI,G:HI,H:MI,I:jI,j:II,L:CS,m:kI,M:RI,p:L,q:F,Q:pb,s:hb,S:DI,u:NI,U:LI,V:qI,w:BI,W:FI,x:null,X:null,y:zI,Y:WI,Z:GI,"%":db},S={a:W,A:Y,b:Q,B:ee,c:null,d:fb,e:fb,f:XI,g:o$,G:s$,H:KI,I:VI,j:YI,L:jS,m:ZI,M:JI,p:ne,q:V,Q:pb,s:hb,S:QI,u:e$,U:t$,V:r$,w:n$,W:i$,x:null,X:null,y:a$,Y:u$,Z:l$,"%":db},m={a:M,A:P,b:T,B:j,c:$,d:sb,e:sb,f:PI,g:ub,G:ob,H:lb,I:lb,j:SI,L:AI,m:wI,M:OI,p:E,q:xI,Q:TI,s:CI,S:_I,u:vI,U:yI,V:mI,w:hI,W:gI,x:k,X:R,y:ub,Y:ob,Z:bI,"%":EI};g.x=x(r,g),g.X=x(n,g),g.c=x(t,g),S.x=x(r,S),S.X=x(n,S),S.c=x(t,S);function x(B,H){return function(Z){var C=[],ie=-1,U=0,ue=B.length,he,Te,Xe;for(Z instanceof Date||(Z=new Date(+Z));++ie<ue;)B.charCodeAt(ie)===37&&(C.push(B.slice(U,ie)),(Te=ab[he=B.charAt(++ie)])!=null?he=B.charAt(++ie):Te=he==="e"?" ":"0",(Xe=H[he])&&(he=Xe(Z,Te)),C.push(he),U=ie+1);return C.push(B.slice(U,ie)),C.join("")}}function _(B,H){return function(Z){var C=Nn(1900,void 0,1),ie=A(C,B,Z+="",0),U,ue;if(ie!=Z.length)return null;if("Q"in C)return new Date(C.Q);if("s"in C)return new Date(C.s*1e3+("L"in C?C.L:0));if(H&&!("Z"in C)&&(C.Z=0),"p"in C&&(C.H=C.H%12+C.p*12),C.m===void 0&&(C.m="q"in C?C.q:0),"V"in C){if(C.V<1||C.V>53)return null;"w"in C||(C.w=1),"Z"in C?(U=qc(Nn(C.y,0,1)),ue=U.getUTCDay(),U=ue>4||ue===0?Ba.ceil(U):Ba(U),U=Io.offset(U,(C.V-1)*7),C.y=U.getUTCFullYear(),C.m=U.getUTCMonth(),C.d=U.getUTCDate()+(C.w+6)%7):(U=Lc(Nn(C.y,0,1)),ue=U.getDay(),U=ue>4||ue===0?qa.ceil(U):qa(U),U=Zi.offset(U,(C.V-1)*7),C.y=U.getFullYear(),C.m=U.getMonth(),C.d=U.getDate()+(C.w+6)%7)}else("W"in C||"U"in C)&&("w"in C||(C.w="u"in C?C.u%7:"W"in C?1:0),ue="Z"in C?qc(Nn(C.y,0,1)).getUTCDay():Lc(Nn(C.y,0,1)).getDay(),C.m=0,C.d="W"in C?(C.w+6)%7+C.W*7-(ue+5)%7:C.w+C.U*7-(ue+6)%7);return"Z"in C?(C.H+=C.Z/100|0,C.M+=C.Z%100,qc(C)):Lc(C)}}function A(B,H,Z,C){for(var ie=0,U=H.length,ue=Z.length,he,Te;ie<U;){if(C>=ue)return-1;if(he=H.charCodeAt(ie++),he===37){if(he=H.charAt(ie++),Te=m[he in ab?H.charAt(ie++):he],!Te||(C=Te(B,Z,C))<0)return-1}else if(he!=Z.charCodeAt(C++))return-1}return C}function E(B,H,Z){var C=l.exec(H.slice(Z));return C?(B.p=f.get(C[0].toLowerCase()),Z+C[0].length):-1}function M(B,H,Z){var C=p.exec(H.slice(Z));return C?(B.w=y.get(C[0].toLowerCase()),Z+C[0].length):-1}function P(B,H,Z){var C=c.exec(H.slice(Z));return C?(B.w=d.get(C[0].toLowerCase()),Z+C[0].length):-1}function T(B,H,Z){var C=b.exec(H.slice(Z));return C?(B.m=w.get(C[0].toLowerCase()),Z+C[0].length):-1}function j(B,H,Z){var C=v.exec(H.slice(Z));return C?(B.m=h.get(C[0].toLowerCase()),Z+C[0].length):-1}function $(B,H,Z){return A(B,t,H,Z)}function k(B,H,Z){return A(B,r,H,Z)}function R(B,H,Z){return A(B,n,H,Z)}function D(B){return o[B.getDay()]}function N(B){return a[B.getDay()]}function z(B){return s[B.getMonth()]}function I(B){return u[B.getMonth()]}function L(B){return i[+(B.getHours()>=12)]}function F(B){return 1+~~(B.getMonth()/3)}function W(B){return o[B.getUTCDay()]}function Y(B){return a[B.getUTCDay()]}function Q(B){return s[B.getUTCMonth()]}function ee(B){return u[B.getUTCMonth()]}function ne(B){return i[+(B.getUTCHours()>=12)]}function V(B){return 1+~~(B.getUTCMonth()/3)}return{format:function(B){var H=x(B+="",g);return H.toString=function(){return B},H},parse:function(B){var H=_(B+="",!1);return H.toString=function(){return B},H},utcFormat:function(B){var H=x(B+="",S);return H.toString=function(){return B},H},utcParse:function(B){var H=_(B+="",!0);return H.toString=function(){return B},H}}}var ab={"-":"",_:" ",0:"0"},Be=/^\s*\d+/,fI=/^%/,dI=/[\\^$*+?|[\]().{}]/g;function de(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function pI(e){return e.replace(dI,"\\$&")}function Ln(e){return new RegExp("^(?:"+e.map(pI).join("|")+")","i")}function qn(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function hI(e,t,r){var n=Be.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function vI(e,t,r){var n=Be.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function yI(e,t,r){var n=Be.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function mI(e,t,r){var n=Be.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function gI(e,t,r){var n=Be.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function ob(e,t,r){var n=Be.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function ub(e,t,r){var n=Be.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function bI(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function xI(e,t,r){var n=Be.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function wI(e,t,r){var n=Be.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function sb(e,t,r){var n=Be.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function SI(e,t,r){var n=Be.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function lb(e,t,r){var n=Be.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function OI(e,t,r){var n=Be.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function _I(e,t,r){var n=Be.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function AI(e,t,r){var n=Be.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function PI(e,t,r){var n=Be.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function EI(e,t,r){var n=fI.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function TI(e,t,r){var n=Be.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function CI(e,t,r){var n=Be.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function cb(e,t){return de(e.getDate(),t,2)}function MI(e,t){return de(e.getHours(),t,2)}function jI(e,t){return de(e.getHours()%12||12,t,2)}function II(e,t){return de(1+Zi.count(Ht(e),e),t,3)}function CS(e,t){return de(e.getMilliseconds(),t,3)}function $I(e,t){return CS(e,t)+"000"}function kI(e,t){return de(e.getMonth()+1,t,2)}function RI(e,t){return de(e.getMinutes(),t,2)}function DI(e,t){return de(e.getSeconds(),t,2)}function NI(e){var t=e.getDay();return t===0?7:t}function LI(e,t){return de($o.count(Ht(e)-1,e),t,2)}function MS(e){var t=e.getDay();return t>=4||t===0?en(e):en.ceil(e)}function qI(e,t){return e=MS(e),de(en.count(Ht(e),e)+(Ht(e).getDay()===4),t,2)}function BI(e){return e.getDay()}function FI(e,t){return de(qa.count(Ht(e)-1,e),t,2)}function zI(e,t){return de(e.getFullYear()%100,t,2)}function UI(e,t){return e=MS(e),de(e.getFullYear()%100,t,2)}function WI(e,t){return de(e.getFullYear()%1e4,t,4)}function HI(e,t){var r=e.getDay();return e=r>=4||r===0?en(e):en.ceil(e),de(e.getFullYear()%1e4,t,4)}function GI(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+de(t/60|0,"0",2)+de(t%60,"0",2)}function fb(e,t){return de(e.getUTCDate(),t,2)}function KI(e,t){return de(e.getUTCHours(),t,2)}function VI(e,t){return de(e.getUTCHours()%12||12,t,2)}function YI(e,t){return de(1+Io.count(Gt(e),e),t,3)}function jS(e,t){return de(e.getUTCMilliseconds(),t,3)}function XI(e,t){return jS(e,t)+"000"}function ZI(e,t){return de(e.getUTCMonth()+1,t,2)}function JI(e,t){return de(e.getUTCMinutes(),t,2)}function QI(e,t){return de(e.getUTCSeconds(),t,2)}function e$(e){var t=e.getUTCDay();return t===0?7:t}function t$(e,t){return de(ko.count(Gt(e)-1,e),t,2)}function IS(e){var t=e.getUTCDay();return t>=4||t===0?tn(e):tn.ceil(e)}function r$(e,t){return e=IS(e),de(tn.count(Gt(e),e)+(Gt(e).getUTCDay()===4),t,2)}function n$(e){return e.getUTCDay()}function i$(e,t){return de(Ba.count(Gt(e)-1,e),t,2)}function a$(e,t){return de(e.getUTCFullYear()%100,t,2)}function o$(e,t){return e=IS(e),de(e.getUTCFullYear()%100,t,2)}function u$(e,t){return de(e.getUTCFullYear()%1e4,t,4)}function s$(e,t){var r=e.getUTCDay();return e=r>=4||r===0?tn(e):tn.ceil(e),de(e.getUTCFullYear()%1e4,t,4)}function l$(){return"+0000"}function db(){return"%"}function pb(e){return+e}function hb(e){return Math.floor(+e/1e3)}var Rr,$S,kS;c$({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"]});function c$(e){return Rr=cI(e),$S=Rr.format,Rr.parse,kS=Rr.utcFormat,Rr.utcParse,Rr}function f$(e){return new Date(e)}function d$(e){return e instanceof Date?+e:+new Date(+e)}function zp(e,t,r,n,i,a,o,u,s,l){var f=Tp(),c=f.invert,d=f.domain,p=l(".%L"),y=l(":%S"),v=l("%I:%M"),h=l("%I %p"),b=l("%a %d"),w=l("%b %d"),g=l("%B"),S=l("%Y");function m(x){return(s(x)<x?p:u(x)<x?y:o(x)<x?v:a(x)<x?h:n(x)<x?i(x)<x?b:w:r(x)<x?g:S)(x)}return f.invert=function(x){return new Date(c(x))},f.domain=function(x){return arguments.length?d(Array.from(x,d$)):d().map(f$)},f.ticks=function(x){var _=d();return e(_[0],_[_.length-1],x??10)},f.tickFormat=function(x,_){return _==null?m:l(_)},f.nice=function(x){var _=d();return(!x||typeof x.range!="function")&&(x=t(_[0],_[_.length-1],x??10)),x?d(xS(_,x)):f},f.copy=function(){return Xi(f,zp(e,t,r,n,i,a,o,u,s,l))},f}function p$(){return vt.apply(zp(sI,lI,Ht,Bp,$o,Zi,Lp,Dp,vr,$S).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function h$(){return vt.apply(zp(oI,uI,Gt,Fp,ko,Io,qp,Np,vr,kS).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ro(){var e=0,t=1,r,n,i,a,o=Ve,u=!1,s;function l(c){return c==null||isNaN(c=+c)?s:o(i===0?.5:(c=(a(c)-r)*i,u?Math.max(0,Math.min(1,c)):c))}l.domain=function(c){return arguments.length?([e,t]=c,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),l):[e,t]},l.clamp=function(c){return arguments.length?(u=!!c,l):u},l.interpolator=function(c){return arguments.length?(o=c,l):o};function f(c){return function(d){var p,y;return arguments.length?([p,y]=d,o=c(p,y),l):[o(0),o(1)]}}return l.range=f(En),l.rangeRound=f(Ep),l.unknown=function(c){return arguments.length?(s=c,l):s},function(c){return a=c,r=c(e),n=c(t),i=r===n?0:1/(n-r),l}}function ur(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function RS(){var e=or(Ro()(Ve));return e.copy=function(){return ur(e,RS())},Yt.apply(e,arguments)}function DS(){var e=jp(Ro()).domain([1,10]);return e.copy=function(){return ur(e,DS()).base(e.base())},Yt.apply(e,arguments)}function NS(){var e=Ip(Ro());return e.copy=function(){return ur(e,NS()).constant(e.constant())},Yt.apply(e,arguments)}function Up(){var e=$p(Ro());return e.copy=function(){return ur(e,Up()).exponent(e.exponent())},Yt.apply(e,arguments)}function v$(){return Up.apply(null,arguments).exponent(.5)}function LS(){var e=[],t=Ve;function r(n){if(n!=null&&!isNaN(n=+n))return t((Vi(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(rr),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>tj(e,a/n))},r.copy=function(){return LS(t).domain(e)},Yt.apply(r,arguments)}function Do(){var e=0,t=.5,r=1,n=1,i,a,o,u,s,l=Ve,f,c=!1,d;function p(v){return isNaN(v=+v)?d:(v=.5+((v=+f(v))-a)*(n*v<n*a?u:s),l(c?Math.max(0,Math.min(1,v)):v))}p.domain=function(v){return arguments.length?([e,t,r]=v,i=f(e=+e),a=f(t=+t),o=f(r=+r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(v){return arguments.length?(c=!!v,p):c},p.interpolator=function(v){return arguments.length?(l=v,p):l};function y(v){return function(h){var b,w,g;return arguments.length?([b,w,g]=h,l=Ej(v,[b,w,g]),p):[l(0),l(.5),l(1)]}}return p.range=y(En),p.rangeRound=y(Ep),p.unknown=function(v){return arguments.length?(d=v,p):d},function(v){return f=v,i=v(e),a=v(t),o=v(r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function qS(){var e=or(Do()(Ve));return e.copy=function(){return ur(e,qS())},Yt.apply(e,arguments)}function BS(){var e=jp(Do()).domain([.1,1,10]);return e.copy=function(){return ur(e,BS()).base(e.base())},Yt.apply(e,arguments)}function FS(){var e=Ip(Do());return e.copy=function(){return ur(e,FS()).constant(e.constant())},Yt.apply(e,arguments)}function Wp(){var e=$p(Do());return e.copy=function(){return ur(e,Wp()).exponent(e.exponent())},Yt.apply(e,arguments)}function y$(){return Wp.apply(null,arguments).exponent(.5)}const vb=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:vi,scaleDiverging:qS,scaleDivergingLog:BS,scaleDivergingPow:Wp,scaleDivergingSqrt:y$,scaleDivergingSymlog:FS,scaleIdentity:bS,scaleImplicit:Jf,scaleLinear:Na,scaleLog:wS,scaleOrdinal:_p,scalePoint:Qn,scalePow:kp,scaleQuantile:_S,scaleQuantize:AS,scaleRadial:OS,scaleSequential:RS,scaleSequentialLog:DS,scaleSequentialPow:Up,scaleSequentialQuantile:LS,scaleSequentialSqrt:v$,scaleSequentialSymlog:NS,scaleSqrt:Xj,scaleSymlog:SS,scaleThreshold:PS,scaleTime:p$,scaleUtc:h$,tickFormat:gS},Symbol.toStringTag,{value:"Module"}));var Bc,yb;function zS(){if(yb)return Bc;yb=1;var e=On();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var u=r[a],s=n(u);if(s!=null&&(l===void 0?s===s&&!e(s):i(s,l)))var l=s,f=u}return f}return Bc=t,Bc}var Fc,mb;function m$(){if(mb)return Fc;mb=1;function e(t,r){return t>r}return Fc=e,Fc}var zc,gb;function g$(){if(gb)return zc;gb=1;var e=zS(),t=m$(),r=_n();function n(i){return i&&i.length?e(i,r,t):void 0}return zc=n,zc}var b$=g$();const Qt=xe(b$);var Uc,bb;function x$(){if(bb)return Uc;bb=1;function e(t,r){return t<r}return Uc=e,Uc}var Wc,xb;function w$(){if(xb)return Wc;xb=1;var e=zS(),t=x$(),r=_n();function n(i){return i&&i.length?e(i,r,t):void 0}return Wc=n,Wc}var S$=w$();const No=xe(S$);var Hc,wb;function O$(){if(wb)return Hc;wb=1;var e=pp();function t(r,n){return e(r,n)}return Hc=t,Hc}var _$=O$();const _r=xe(_$);var Tn=1e9,A$={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Gp,Pe=!0,ht="[DecimalError] ",xr=ht+"Invalid argument: ",Hp=ht+"Exponent out of range: ",Cn=Math.floor,dr=Math.pow,P$=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,at,qe=1e7,Ae=7,US=9007199254740991,Fa=Cn(US/Ae),J={};J.absoluteValue=J.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};J.comparedTo=J.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};J.decimalPlaces=J.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Ae;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};J.dividedBy=J.div=function(e){return Ut(this,new this.constructor(e))};J.dividedToIntegerBy=J.idiv=function(e){var t=this,r=t.constructor;return Se(Ut(t,new r(e),0,1),r.precision)};J.equals=J.eq=function(e){return!this.cmp(e)};J.exponent=function(){return Ie(this)};J.greaterThan=J.gt=function(e){return this.cmp(e)>0};J.greaterThanOrEqualTo=J.gte=function(e){return this.cmp(e)>=0};J.isInteger=J.isint=function(){return this.e>this.d.length-2};J.isNegative=J.isneg=function(){return this.s<0};J.isPositive=J.ispos=function(){return this.s>0};J.isZero=function(){return this.s===0};J.lessThan=J.lt=function(e){return this.cmp(e)<0};J.lessThanOrEqualTo=J.lte=function(e){return this.cmp(e)<1};J.logarithm=J.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(at))throw Error(ht+"NaN");if(r.s<1)throw Error(ht+(r.s?"NaN":"-Infinity"));return r.eq(at)?new n(0):(Pe=!1,t=Ut(xi(r,a),xi(e,a),a),Pe=!0,Se(t,i))};J.minus=J.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?GS(t,e):WS(t,(e.s=-e.s,e))};J.modulo=J.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(ht+"NaN");return r.s?(Pe=!1,t=Ut(r,e,0,1).times(e),Pe=!0,r.minus(t)):Se(new n(r),i)};J.naturalExponential=J.exp=function(){return HS(this)};J.naturalLogarithm=J.ln=function(){return xi(this)};J.negated=J.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};J.plus=J.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?WS(t,e):GS(t,(e.s=-e.s,e))};J.precision=J.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(xr+e);if(t=Ie(i)+1,n=i.d.length-1,r=n*Ae+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};J.squareRoot=J.sqrt=function(){var e,t,r,n,i,a,o,u=this,s=u.constructor;if(u.s<1){if(!u.s)return new s(0);throw Error(ht+"NaN")}for(e=Ie(u),Pe=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=Ct(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Cn((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new s(t)):n=new s(i.toString()),r=s.precision,i=o=r+3;;)if(a=n,n=a.plus(Ut(u,a,o+2)).times(.5),Ct(a.d).slice(0,o)===(t=Ct(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Se(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return Pe=!0,Se(n,r)};J.times=J.mul=function(e){var t,r,n,i,a,o,u,s,l,f=this,c=f.constructor,d=f.d,p=(e=new c(e)).d;if(!f.s||!e.s)return new c(0);for(e.s*=f.s,r=f.e+e.e,s=d.length,l=p.length,s<l&&(a=d,d=p,p=a,o=s,s=l,l=o),a=[],o=s+l,n=o;n--;)a.push(0);for(n=l;--n>=0;){for(t=0,i=s+n;i>n;)u=a[i]+p[n]*d[i-n-1]+t,a[i--]=u%qe|0,t=u/qe|0;a[i]=(a[i]+t)%qe|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Pe?Se(e,c.precision):e};J.toDecimalPlaces=J.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(kt(e,0,Tn),t===void 0?t=n.rounding:kt(t,0,8),Se(r,e+Ie(r)+1,t))};J.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Ar(n,!0):(kt(e,0,Tn),t===void 0?t=i.rounding:kt(t,0,8),n=Se(new i(n),e+1,t),r=Ar(n,!0,e+1)),r};J.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Ar(i):(kt(e,0,Tn),t===void 0?t=a.rounding:kt(t,0,8),n=Se(new a(i),e+Ie(i)+1,t),r=Ar(n.abs(),!1,e+Ie(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};J.toInteger=J.toint=function(){var e=this,t=e.constructor;return Se(new t(e),Ie(e)+1,t.rounding)};J.toNumber=function(){return+this};J.toPower=J.pow=function(e){var t,r,n,i,a,o,u=this,s=u.constructor,l=12,f=+(e=new s(e));if(!e.s)return new s(at);if(u=new s(u),!u.s){if(e.s<1)throw Error(ht+"Infinity");return u}if(u.eq(at))return u;if(n=s.precision,e.eq(at))return Se(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=US){for(i=new s(at),t=Math.ceil(n/Ae+4),Pe=!1;r%2&&(i=i.times(u),Ob(i.d,t)),r=Cn(r/2),r!==0;)u=u.times(u),Ob(u.d,t);return Pe=!0,e.s<0?new s(at).div(i):Se(i,n)}}else if(a<0)throw Error(ht+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,Pe=!1,i=e.times(xi(u,n+l)),Pe=!0,i=HS(i),i.s=a,i};J.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Ie(i),n=Ar(i,r<=a.toExpNeg||r>=a.toExpPos)):(kt(e,1,Tn),t===void 0?t=a.rounding:kt(t,0,8),i=Se(new a(i),e,t),r=Ie(i),n=Ar(i,e<=r||r<=a.toExpNeg,e)),n};J.toSignificantDigits=J.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(kt(e,1,Tn),t===void 0?t=n.rounding:kt(t,0,8)),Se(new n(r),e,t)};J.toString=J.valueOf=J.val=J.toJSON=J[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ie(e),r=e.constructor;return Ar(e,t<=r.toExpNeg||t>=r.toExpPos)};function WS(e,t){var r,n,i,a,o,u,s,l,f=e.constructor,c=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),Pe?Se(t,c):t;if(s=e.d,l=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i,a){for(a<0?(n=s,a=-a,u=l.length):(n=l,i=o,u=s.length),o=Math.ceil(c/Ae),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=s.length,a=l.length,u-a<0&&(a=u,n=l,l=s,s=n),r=0;a;)r=(s[--a]=s[a]+l[a]+r)/qe|0,s[a]%=qe;for(r&&(s.unshift(r),++i),u=s.length;s[--u]==0;)s.pop();return t.d=s,t.e=i,Pe?Se(t,c):t}function kt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(xr+e)}function Ct(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=Ae-n.length,r&&(a+=Zt(r)),a+=n;o=e[t],n=o+"",r=Ae-n.length,r&&(a+=Zt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Ut=(function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%qe|0,o=a/qe|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,s;if(a!=o)s=a>o?1:-1;else for(u=s=0;u<a;u++)if(n[u]!=i[u]){s=n[u]>i[u]?1:-1;break}return s}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*qe+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,s,l,f,c,d,p,y,v,h,b,w,g,S,m,x,_,A,E=n.constructor,M=n.s==i.s?1:-1,P=n.d,T=i.d;if(!n.s)return new E(n);if(!i.s)throw Error(ht+"Division by zero");for(s=n.e-i.e,_=T.length,m=P.length,p=new E(M),y=p.d=[],l=0;T[l]==(P[l]||0);)++l;if(T[l]>(P[l]||0)&&--s,a==null?w=a=E.precision:o?w=a+(Ie(n)-Ie(i))+1:w=a,w<0)return new E(0);if(w=w/Ae+2|0,l=0,_==1)for(f=0,T=T[0],w++;(l<m||f)&&w--;l++)g=f*qe+(P[l]||0),y[l]=g/T|0,f=g%T|0;else{for(f=qe/(T[0]+1)|0,f>1&&(T=e(T,f),P=e(P,f),_=T.length,m=P.length),S=_,v=P.slice(0,_),h=v.length;h<_;)v[h++]=0;A=T.slice(),A.unshift(0),x=T[0],T[1]>=qe/2&&++x;do f=0,u=t(T,v,_,h),u<0?(b=v[0],_!=h&&(b=b*qe+(v[1]||0)),f=b/x|0,f>1?(f>=qe&&(f=qe-1),c=e(T,f),d=c.length,h=v.length,u=t(c,v,d,h),u==1&&(f--,r(c,_<d?A:T,d))):(f==0&&(u=f=1),c=T.slice()),d=c.length,d<h&&c.unshift(0),r(v,c,h),u==-1&&(h=v.length,u=t(T,v,_,h),u<1&&(f++,r(v,_<h?A:T,h))),h=v.length):u===0&&(f++,v=[0]),y[l++]=f,u&&v[0]?v[h++]=P[S]||0:(v=[P[S]],h=1);while((S++<m||v[0]!==void 0)&&w--)}return y[0]||y.shift(),p.e=s,Se(p,o?a+Ie(p)+1:a)}})();function HS(e,t){var r,n,i,a,o,u,s=0,l=0,f=e.constructor,c=f.precision;if(Ie(e)>16)throw Error(Hp+Ie(e));if(!e.s)return new f(at);for(Pe=!1,u=c,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),l+=5;for(n=Math.log(dr(2,l))/Math.LN10*2+5|0,u+=n,r=i=a=new f(at),f.precision=u;;){if(i=Se(i.times(e),u),r=r.times(++s),o=a.plus(Ut(i,r,u)),Ct(o.d).slice(0,u)===Ct(a.d).slice(0,u)){for(;l--;)a=Se(a.times(a),u);return f.precision=c,t==null?(Pe=!0,Se(a,c)):a}a=o}}function Ie(e){for(var t=e.e*Ae,r=e.d[0];r>=10;r/=10)t++;return t}function Gc(e,t,r){if(t>e.LN10.sd())throw Pe=!0,r&&(e.precision=r),Error(ht+"LN10 precision limit exceeded");return Se(new e(e.LN10),t)}function Zt(e){for(var t="";e--;)t+="0";return t}function xi(e,t){var r,n,i,a,o,u,s,l,f,c=1,d=10,p=e,y=p.d,v=p.constructor,h=v.precision;if(p.s<1)throw Error(ht+(p.s?"NaN":"-Infinity"));if(p.eq(at))return new v(0);if(t==null?(Pe=!1,l=h):l=t,p.eq(10))return t==null&&(Pe=!0),Gc(v,l);if(l+=d,v.precision=l,r=Ct(y),n=r.charAt(0),a=Ie(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=Ct(p.d),n=r.charAt(0),c++;a=Ie(p),n>1?(p=new v("0."+r),a++):p=new v(n+"."+r.slice(1))}else return s=Gc(v,l+2,h).times(a+""),p=xi(new v(n+"."+r.slice(1)),l-d).plus(s),v.precision=h,t==null?(Pe=!0,Se(p,h)):p;for(u=o=p=Ut(p.minus(at),p.plus(at),l),f=Se(p.times(p),l),i=3;;){if(o=Se(o.times(f),l),s=u.plus(Ut(o,new v(i),l)),Ct(s.d).slice(0,l)===Ct(u.d).slice(0,l))return u=u.times(2),a!==0&&(u=u.plus(Gc(v,l+2,h).times(a+""))),u=Ut(u,new v(c),l),v.precision=h,t==null?(Pe=!0,Se(u,h)):u;u=s,i+=2}}function Sb(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Cn(r/Ae),e.d=[],n=(r+1)%Ae,r<0&&(n+=Ae),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Ae;n<i;)e.d.push(+t.slice(n,n+=Ae));t=t.slice(n),n=Ae-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Pe&&(e.e>Fa||e.e<-Fa))throw Error(Hp+r)}else e.s=0,e.e=0,e.d=[0];return e}function Se(e,t,r){var n,i,a,o,u,s,l,f,c=e.d;for(o=1,a=c[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=Ae,i=t,l=c[f=0];else{if(f=Math.ceil((n+1)/Ae),a=c.length,f>=a)return e;for(l=a=c[f],o=1;a>=10;a/=10)o++;n%=Ae,i=n-Ae+o}if(r!==void 0&&(a=dr(10,o-i-1),u=l/a%10|0,s=t<0||c[f+1]!==void 0||l%a,s=r<4?(u||s)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||s||r==6&&(n>0?i>0?l/dr(10,o-i):0:c[f-1])%10&1||r==(e.s<0?8:7))),t<1||!c[0])return s?(a=Ie(e),c.length=1,t=t-a-1,c[0]=dr(10,(Ae-t%Ae)%Ae),e.e=Cn(-t/Ae)||0):(c.length=1,c[0]=e.e=e.s=0),e;if(n==0?(c.length=f,a=1,f--):(c.length=f+1,a=dr(10,Ae-n),c[f]=i>0?(l/dr(10,o-i)%dr(10,i)|0)*a:0),s)for(;;)if(f==0){(c[0]+=a)==qe&&(c[0]=1,++e.e);break}else{if(c[f]+=a,c[f]!=qe)break;c[f--]=0,a=1}for(n=c.length;c[--n]===0;)c.pop();if(Pe&&(e.e>Fa||e.e<-Fa))throw Error(Hp+Ie(e));return e}function GS(e,t){var r,n,i,a,o,u,s,l,f,c,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Pe?Se(t,p):t;if(s=e.d,c=t.d,n=t.e,l=e.e,s=s.slice(),o=l-n,o){for(f=o<0,f?(r=s,o=-o,u=c.length):(r=c,n=l,u=s.length),i=Math.max(Math.ceil(p/Ae),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=s.length,u=c.length,f=i<u,f&&(u=i),i=0;i<u;i++)if(s[i]!=c[i]){f=s[i]<c[i];break}o=0}for(f&&(r=s,s=c,c=r,t.s=-t.s),u=s.length,i=c.length-u;i>0;--i)s[u++]=0;for(i=c.length;i>o;){if(s[--i]<c[i]){for(a=i;a&&s[--a]===0;)s[a]=qe-1;--s[a],s[i]+=qe}s[i]-=c[i]}for(;s[--u]===0;)s.pop();for(;s[0]===0;s.shift())--n;return s[0]?(t.d=s,t.e=n,Pe?Se(t,p):t):new d(0)}function Ar(e,t,r){var n,i=Ie(e),a=Ct(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Zt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Zt(-i-1)+a,r&&(n=r-o)>0&&(a+=Zt(n))):i>=o?(a+=Zt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Zt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Zt(n))),e.s<0?"-"+a:a}function Ob(e,t){if(e.length>t)return e.length=t,!0}function KS(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(xr+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return Sb(o,a.toString())}else if(typeof a!="string")throw Error(xr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,P$.test(a))Sb(o,a);else throw Error(xr+a)}if(i.prototype=J,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=KS,i.config=i.set=E$,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function E$(e){if(!e||typeof e!="object")throw Error(ht+"Object expected");var t,r,n,i=["precision",1,Tn,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Cn(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(xr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(xr+r+": "+n);return this}var Gp=KS(A$);at=new Gp(1);const we=Gp;function T$(e){return I$(e)||j$(e)||M$(e)||C$()}function C$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
55
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M$(e,t){if(e){if(typeof e=="string")return rd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rd(e,t)}}function j$(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function I$(e){if(Array.isArray(e))return rd(e)}function rd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var $$=function(t){return t},VS={},YS=function(t){return t===VS},_b=function(t){return function r(){return arguments.length===0||arguments.length===1&&YS(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},k$=function e(t,r){return t===1?r:_b(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(u){return u!==VS}).length;return o>=t?r.apply(void 0,i):e(t-o,_b(function(){for(var u=arguments.length,s=new Array(u),l=0;l<u;l++)s[l]=arguments[l];var f=i.map(function(c){return YS(c)?s.shift():c});return r.apply(void 0,T$(f).concat(s))}))})},Lo=function(t){return k$(t.length,t)},nd=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},R$=Lo(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),D$=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return $$;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,s){return s(u)},a.apply(void 0,arguments))}},id=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},XS=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(u,s){return u===r[s]})||(r=a,n=t.apply(void 0,a)),n}};function N$(e){var t;return e===0?t=1:t=Math.floor(new we(e).abs().log(10).toNumber())+1,t}function L$(e,t,r){for(var n=new we(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var q$=Lo(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),B$=Lo(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),F$=Lo(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const qo={rangeStep:L$,getDigitCount:N$,interpolateNumber:q$,uninterpolateNumber:B$,uninterpolateTruncation:F$};function ad(e){return W$(e)||U$(e)||ZS(e)||z$()}function z$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
56
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U$(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function W$(e){if(Array.isArray(e))return od(e)}function wi(e,t){return K$(e)||G$(e,t)||ZS(e,t)||H$()}function H$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
57
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZS(e,t){if(e){if(typeof e=="string")return od(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return od(e,t)}}function od(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function G$(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(t&&r.length===t));n=!0);}catch(s){i=!0,a=s}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function K$(e){if(Array.isArray(e))return e}function JS(e){var t=wi(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function QS(e,t,r){if(e.lte(0))return new we(0);var n=qo.getDigitCount(e.toNumber()),i=new we(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new we(Math.ceil(a.div(o).toNumber())).add(r).mul(o),s=u.mul(i);return t?s:new we(Math.ceil(s))}function V$(e,t,r){var n=1,i=new we(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new we(10).pow(qo.getDigitCount(e)-1),i=new we(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new we(Math.floor(e)))}else e===0?i=new we(Math.floor((t-1)/2)):r||(i=new we(Math.floor(e)));var o=Math.floor((t-1)/2),u=D$(R$(function(s){return i.add(new we(s-o).mul(n)).toNumber()}),nd);return u(0,t)}function eO(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new we(0),tickMin:new we(0),tickMax:new we(0)};var a=QS(new we(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new we(0):(o=new we(e).add(t).div(2),o=o.sub(new we(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new we(t).sub(o).div(a).toNumber()),l=u+s+1;return l>r?eO(e,t,r,n,i+1):(l<r&&(s=t>0?s+(r-l):s,u=t>0?u:u+(r-l)),{step:a,tickMin:o.sub(new we(u).mul(a)),tickMax:o.add(new we(s).mul(a))})}function Y$(e){var t=wi(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),u=JS([r,n]),s=wi(u,2),l=s[0],f=s[1];if(l===-1/0||f===1/0){var c=f===1/0?[l].concat(ad(nd(0,i-1).map(function(){return 1/0}))):[].concat(ad(nd(0,i-1).map(function(){return-1/0})),[f]);return r>n?id(c):c}if(l===f)return V$(l,i,a);var d=eO(l,f,o,a),p=d.step,y=d.tickMin,v=d.tickMax,h=qo.rangeStep(y,v.add(new we(.1).mul(p)),p);return r>n?id(h):h}function X$(e,t){var r=wi(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=JS([n,i]),u=wi(o,2),s=u[0],l=u[1];if(s===-1/0||l===1/0)return[n,i];if(s===l)return[s];var f=Math.max(t,2),c=QS(new we(l).sub(s).div(f-1),a,0),d=[].concat(ad(qo.rangeStep(new we(s),new we(l).sub(new we(.99).mul(c)),c)),[l]);return n>i?id(d):d}var Z$=XS(Y$),J$=XS(X$),Q$=process.env.NODE_ENV==="production",Kc="Invariant failed";function Je(e,t){if(Q$)throw new Error(Kc);var r=typeof t=="function"?t():t,n=r?"".concat(Kc,": ").concat(r):Kc;throw new Error(n)}var ek=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function rn(e){"@babel/helpers - typeof";return rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rn(e)}function za(){return za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},za.apply(this,arguments)}function tk(e,t){return ak(e)||ik(e,t)||nk(e,t)||rk()}function rk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
58
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nk(e,t){if(e){if(typeof e=="string")return Ab(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ab(e,t)}}function Ab(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ik(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){l=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function ak(e){if(Array.isArray(e))return e}function ok(e,t){if(e==null)return{};var r=uk(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function uk(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function sk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nO(n.key),n)}}function ck(e,t,r){return t&&lk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fk(e,t,r){return t=Ua(t),dk(e,tO()?Reflect.construct(t,r||[],Ua(e).constructor):t.apply(e,r))}function dk(e,t){if(t&&(rn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pk(e)}function pk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tO=function(){return!!e})()}function Ua(e){return Ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ua(e)}function hk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ud(e,t)}function ud(e,t){return ud=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ud(e,t)}function rO(e,t,r){return t=nO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nO(e){var t=vk(e,"string");return rn(t)=="symbol"?t:t+""}function vk(e,t){if(rn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Mn=(function(e){function t(){return sk(this,t),fk(this,t,arguments)}return hk(t,e),ck(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,s=n.data,l=n.dataPointFormatter,f=n.xAxis,c=n.yAxis,d=ok(n,ek),p=oe(d,!1);this.props.direction==="x"&&f.type!=="number"&&(process.env.NODE_ENV!=="production"?Je(!1,'ErrorBar requires Axis type property to be "number".'):Je());var y=s.map(function(v){var h=l(v,u),b=h.x,w=h.y,g=h.value,S=h.errorVal;if(!S)return null;var m=[],x,_;if(Array.isArray(S)){var A=tk(S,2);x=A[0],_=A[1]}else x=_=S;if(a==="vertical"){var E=f.scale,M=w+i,P=M+o,T=M-o,j=E(g-x),$=E(g+_);m.push({x1:$,y1:P,x2:$,y2:T}),m.push({x1:j,y1:M,x2:$,y2:M}),m.push({x1:j,y1:P,x2:j,y2:T})}else if(a==="horizontal"){var k=c.scale,R=b+i,D=R-o,N=R+o,z=k(g-x),I=k(g+_);m.push({x1:D,y1:I,x2:N,y2:I}),m.push({x1:R,y1:z,x2:R,y2:I}),m.push({x1:D,y1:z,x2:N,y2:z})}return O.createElement(pe,za({className:"recharts-errorBar",key:"bar-".concat(m.map(function(L){return"".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))},p),m.map(function(L){return O.createElement("line",za({},L,{key:"line-".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))}))});return O.createElement(pe,{className:"recharts-errorBars"},y)}}])})(O.Component);rO(Mn,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});rO(Mn,"displayName","ErrorBar");function Si(e){"@babel/helpers - typeof";return Si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Si(e)}function Pb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pb(Object(r),!0).forEach(function(n){yk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yk(e,t,r){return t=mk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mk(e){var t=gk(e,"string");return Si(t)=="symbol"?t:t+""}function gk(e,t){if(Si(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iO=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=it(r,gr);if(!o)return null;var u=gr.defaultProps,s=u!==void 0?cr(cr({},u),o.props):{},l;return o.props&&o.props.payload?l=o.props&&o.props.payload:a==="children"?l=(n||[]).reduce(function(f,c){var d=c.item,p=c.props,y=p.sectors||p.data||[];return f.concat(y.map(function(v){return{type:o.props.iconType||d.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):l=(n||[]).map(function(f){var c=f.item,d=c.type.defaultProps,p=d!==void 0?cr(cr({},d),c.props):{},y=p.dataKey,v=p.name,h=p.legendType,b=p.hide;return{inactive:b,dataKey:y,type:s.iconType||h||"square",color:Kp(c),value:v||y,payload:p}}),cr(cr(cr({},s),gr.getWithHeight(o,i)),{},{payload:l,item:o})};function Oi(e){"@babel/helpers - typeof";return Oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oi(e)}function Eb(e){return Sk(e)||wk(e)||xk(e)||bk()}function bk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
59
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xk(e,t){if(e){if(typeof e=="string")return sd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sd(e,t)}}function wk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Sk(e){if(Array.isArray(e))return sd(e)}function sd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Tb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ee(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tb(Object(r),!0).forEach(function(n){Kr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kr(e,t,r){return t=Ok(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ok(e){var t=_k(e,"string");return Oi(t)=="symbol"?t:t+""}function _k(e,t){if(Oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function De(e,t,r){return ae(e)||ae(t)?r:Re(t)?pt(e,t,r):se(t)?t(e):r}function ei(e,t,r,n){var i=vw(e,function(u){return De(u,t)});if(r==="number"){var a=i.filter(function(u){return K(u)||parseFloat(u)});return a.length?[No(a),Qt(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!ae(u)}):i;return o.map(function(u){return Re(u)||u instanceof Date?u:""})}var Ak=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var s=a.range,l=0;l<u;l++){var f=l>0?i[l-1].coordinate:i[u-1].coordinate,c=i[l].coordinate,d=l>=u-1?i[0].coordinate:i[l+1].coordinate,p=void 0;if(wt(c-f)!==wt(d-c)){var y=[];if(wt(d-c)===wt(s[1]-s[0])){p=d;var v=c+s[1]-s[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{p=f;var h=d+s[1]-s[0];y[0]=Math.min(c,(h+c)/2),y[1]=Math.max(c,(h+c)/2)}var b=[Math.min(c,(p+c)/2),Math.max(c,(p+c)/2)];if(t>b[0]&&t<=b[1]||t>=y[0]&&t<=y[1]){o=i[l].index;break}}else{var w=Math.min(f,d),g=Math.max(f,d);if(t>(w+c)/2&&t<=(g+c)/2){o=i[l].index;break}}}else for(var S=0;S<u;S++)if(S===0&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S>0&&S<u-1&&t>(n[S].coordinate+n[S-1].coordinate)/2&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S===u-1&&t>(n[S].coordinate+n[S-1].coordinate)/2){o=n[S].index;break}return o},Kp=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ee(Ee({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,s;switch(i){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:u;break;default:s=u;break}return s},Pk=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),s=0,l=u.length;s<l;s++)for(var f=a[u[s]].stackGroups,c=Object.keys(f),d=0,p=c.length;d<p;d++){var y=f[c[d]],v=y.items,h=y.cateAxisId,b=v.filter(function(_){return Ft(_.type).indexOf("Bar")>=0});if(b&&b.length){var w=b[0].type.defaultProps,g=w!==void 0?Ee(Ee({},w),b[0].props):b[0].props,S=g.barSize,m=g[h];o[m]||(o[m]=[]);var x=ae(S)?r:S;o[m].push({item:b[0],stackList:b.slice(1),barSize:ae(x)?void 0:Or(x,n,0)})}}return o},Ek=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,s=o.length;if(s<1)return null;var l=Or(r,i,0,!0),f,c=[];if(o[0].barSize===+o[0].barSize){var d=!1,p=i/s,y=o.reduce(function(S,m){return S+m.barSize||0},0);y+=(s-1)*l,y>=i&&(y-=(s-1)*l,l=0),y>=i&&p>0&&(d=!0,p*=.9,y=s*p);var v=(i-y)/2>>0,h={offset:v-l,size:0};f=o.reduce(function(S,m){var x={item:m.item,position:{offset:h.offset+h.size+l,size:d?p:m.barSize}},_=[].concat(Eb(S),[x]);return h=_[_.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(A){_.push({item:A,position:h})}),_},c)}else{var b=Or(n,i,0,!0);i-2*b-(s-1)*l<=0&&(l=0);var w=(i-2*b-(s-1)*l)/s;w>1&&(w>>=0);var g=u===+u?Math.min(w,u):w;f=o.reduce(function(S,m,x){var _=[].concat(Eb(S),[{item:m.item,position:{offset:b+(w+l)*x+(w-g)/2,size:g}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(A){_.push({item:A,position:_[_.length-1].position})}),_},c)}return f},Tk=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,s=o-(u.left||0)-(u.right||0),l=iO({children:a,legendWidth:s});if(l){var f=i||{},c=f.width,d=f.height,p=l.align,y=l.verticalAlign,v=l.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&p!=="center"&&K(t[p]))return Ee(Ee({},t),{},Kr({},p,t[p]+(c||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&y!=="middle"&&K(t[y]))return Ee(Ee({},t),{},Kr({},y,t[y]+(d||0)))}return t},Ck=function(t,r,n){return ae(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},aO=function(t,r,n,i,a){var o=r.props.children,u=Qe(o,Mn).filter(function(l){return Ck(i,a,l.props.direction)});if(u&&u.length){var s=u.map(function(l){return l.props.dataKey});return t.reduce(function(l,f){var c=De(f,n);if(ae(c))return l;var d=Array.isArray(c)?[No(c),Qt(c)]:[c,c],p=s.reduce(function(y,v){var h=De(f,v,0),b=d[0]-Math.abs(Array.isArray(h)?h[0]:h),w=d[1]+Math.abs(Array.isArray(h)?h[1]:h);return[Math.min(b,y[0]),Math.max(w,y[1])]},[1/0,-1/0]);return[Math.min(p[0],l[0]),Math.max(p[1],l[1])]},[1/0,-1/0])}return null},Mk=function(t,r,n,i,a){var o=r.map(function(u){return aO(t,u,n,a,i)}).filter(function(u){return!ae(u)});return o&&o.length?o.reduce(function(u,s){return[Math.min(u[0],s[0]),Math.max(u[1],s[1])]},[1/0,-1/0]):null},oO=function(t,r,n,i,a){var o=r.map(function(s){var l=s.props.dataKey;return n==="number"&&l&&aO(t,s,l,i)||ei(t,l,n,a)});if(n==="number")return o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]);var u={};return o.reduce(function(s,l){for(var f=0,c=l.length;f<c;f++)u[l[f]]||(u[l[f]]=!0,s.push(l[f]));return s},[])},uO=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},sO=function(t,r,n,i){if(i)return t.map(function(s){return s.coordinate});var a,o,u=t.map(function(s){return s.coordinate===r&&(a=!0),s.coordinate===n&&(o=!0),s.coordinate});return a||u.push(r),o||u.push(n),u},Bt=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,s=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,l=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/s:0;if(l=t.axisType==="angleAxis"&&(u==null?void 0:u.length)>=2?wt(u[0]-u[1])*2*l:l,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(c){var d=a?a.indexOf(c):c;return{coordinate:i(d)+l,value:c,offset:l}});return f.filter(function(c){return!Pn(c.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(c,d){return{coordinate:i(c)+l,value:c,index:d,offset:l}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(c){return{coordinate:i(c)+l,value:c,offset:l}}):i.domain().map(function(c,d){return{coordinate:i(c)+l,value:a?a[c]:c,index:d,offset:l}})},Vc=new WeakMap,la=function(t,r){if(typeof r!="function")return t;Vc.has(t)||Vc.set(t,new WeakMap);var n=Vc.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},jk=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,u=t.axisType;if(i==="auto")return o==="radial"&&u==="radiusAxis"?{scale:vi(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:Na(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Qn(),realScaleType:"point"}:a==="category"?{scale:vi(),realScaleType:"band"}:{scale:Na(),realScaleType:"linear"};if(Sr(i)){var s="scale".concat(Ao(i));return{scale:(vb[s]||Qn)(),realScaleType:vb[s]?s:"point"}}return se(i)?{scale:i}:{scale:Qn(),realScaleType:"point"}},Cb=1e-4,Ik=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-Cb,o=Math.max(i[0],i[1])+Cb,u=t(r[0]),s=t(r[n-1]);(u<a||u>o||s<a||s>o)&&t.domain([r[0],r[n-1]])}},$k=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},kk=function(t,r){if(!r||r.length!==2||!K(r[0])||!K(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!K(t[0])||t[0]<n)&&(a[0]=n),(!K(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},Rk=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,u=0;u<r;++u){var s=Pn(t[u][n][1])?t[u][n][0]:t[u][n][1];s>=0?(t[u][n][0]=a,t[u][n][1]=a+s,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+s,o=t[u][n][1])}},Dk=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var u=Pn(t[o][n][1])?t[o][n][0]:t[o][n][1];u>=0?(t[o][n][0]=a,t[o][n][1]=a+u,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},Nk={sign:Rk,expand:TT,none:Vr,silhouette:CT,wiggle:MT,positive:Dk},Lk=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=Nk[n],o=ET().keys(i).value(function(u,s){return+De(u,s,0)}).order(Lf).offset(a);return o(t)},qk=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,s={},l=u.reduce(function(c,d){var p,y=(p=d.type)!==null&&p!==void 0&&p.defaultProps?Ee(Ee({},d.type.defaultProps),d.props):d.props,v=y.stackId,h=y.hide;if(h)return c;var b=y[n],w=c[b]||{hasStack:!1,stackGroups:{}};if(Re(v)){var g=w.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};g.items.push(d),w.hasStack=!0,w.stackGroups[v]=g}else w.stackGroups[Cr("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return Ee(Ee({},c),{},Kr({},b,w))},s),f={};return Object.keys(l).reduce(function(c,d){var p=l[d];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,h){var b=p.stackGroups[h];return Ee(Ee({},v),{},Kr({},h,{numericAxisId:n,cateAxisId:i,items:b.items,stackedData:Lk(t,b.items,a)}))},y)}return Ee(Ee({},c),{},Kr({},d,p))},f)},Bk=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,s=n||r.scale;if(s!=="auto"&&s!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var l=t.domain();if(!l.length)return null;var f=Z$(l,a,u);return t.domain([No(f),Qt(f)]),{niceTicks:f}}if(a&&i==="number"){var c=t.domain(),d=J$(c,a,u);return{niceTicks:d}}return null};function nn(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ae(i[t.dataKey])){var u=ga(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var s=De(i,ae(o)?t.dataKey:o);return ae(s)?null:t.scale(s)}var Mb=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var s=De(o,r.dataKey,r.domain[u]);return ae(s)?null:r.scale(s)-a/2+i},Fk=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},zk=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ee(Ee({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Re(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},Uk=function(t){return t.reduce(function(r,n){return[No(n.concat([r[0]]).filter(K)),Qt(n.concat([r[1]]).filter(K))]},[1/0,-1/0])},lO=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,s=u.reduce(function(l,f){var c=Uk(f.slice(r,n+1));return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]);return[Math.min(s[0],i[0]),Math.max(s[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},jb=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ib=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ld=function(t,r,n){if(se(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(K(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(jb.test(t[0])){var a=+jb.exec(t[0])[1];i[0]=r[0]-a}else se(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(K(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(Ib.test(t[1])){var o=+Ib.exec(t[1])[1];i[1]=r[1]+o}else se(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Wa=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=_o(r,function(c){return c.coordinate}),o=1/0,u=1,s=a.length;u<s;u++){var l=a[u],f=a[u-1];o=Math.min((l.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},$b=function(t,r,n){return!t||!t.length||_r(t,pt(n,"type.defaultProps.domain"))?r:t},cO=function(t,r){var n=t.type.defaultProps?Ee(Ee({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,s=n.tooltipType,l=n.chartType,f=n.hide;return Ee(Ee({},oe(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:Kp(t),value:De(r,i),type:s,payload:r,chartType:l,hide:f})};function _i(e){"@babel/helpers - typeof";return _i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_i(e)}function kb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kb(Object(r),!0).forEach(function(n){Wk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wk(e,t,r){return t=Hk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hk(e){var t=Gk(e,"string");return _i(t)=="symbol"?t:t+""}function Gk(e,t){if(_i(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_i(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ha=Math.PI/180,Kk=function(t){return t*180/Math.PI},ze=function(t,r,n,i){return{x:t+Math.cos(-Ha*i)*n,y:r+Math.sin(-Ha*i)*n}},Vk=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},Yk=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=Vk({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var s=(n-a)/u,l=Math.acos(s);return i>o&&(l=2*Math.PI-l),{radius:u,angle:Kk(l),angleInRadian:l}},Xk=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},Zk=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),u=Math.min(a,o);return t+u*360},Db=function(t,r){var n=t.x,i=t.y,a=Yk({x:n,y:i},r),o=a.radius,u=a.angle,s=r.innerRadius,l=r.outerRadius;if(o<s||o>l)return!1;if(o===0)return!0;var f=Xk(r),c=f.startAngle,d=f.endAngle,p=u,y;if(c<=d){for(;p>d;)p-=360;for(;p<c;)p+=360;y=p>=c&&p<=d}else{for(;p>c;)p-=360;for(;p<d;)p+=360;y=p>=d&&p<=c}return y?Rb(Rb({},r),{},{radius:o,angle:Zk(p,r)}):null};function Ai(e){"@babel/helpers - typeof";return Ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ai(e)}var Jk=["offset"];function Qk(e){return nR(e)||rR(e)||tR(e)||eR()}function eR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
60
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tR(e,t){if(e){if(typeof e=="string")return cd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cd(e,t)}}function rR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nR(e){if(Array.isArray(e))return cd(e)}function cd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function iR(e,t){if(e==null)return{};var r=aR(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function aR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Nb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nb(Object(r),!0).forEach(function(n){oR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oR(e,t,r){return t=uR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uR(e){var t=sR(e,"string");return Ai(t)=="symbol"?t:t+""}function sR(e,t){if(Ai(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ai(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pi(){return Pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pi.apply(this,arguments)}var lR=function(t){var r=t.value,n=t.formatter,i=ae(t.children)?r:t.children;return se(n)?n(i):i},cR=function(t,r){var n=wt(r-t),i=Math.min(Math.abs(r-t),360);return n*i},fR=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,s=a,l=s.cx,f=s.cy,c=s.innerRadius,d=s.outerRadius,p=s.startAngle,y=s.endAngle,v=s.clockWise,h=(c+d)/2,b=cR(p,y),w=b>=0?1:-1,g,S;i==="insideStart"?(g=p+w*o,S=v):i==="insideEnd"?(g=y-w*o,S=!v):i==="end"&&(g=y+w*o,S=v),S=b<=0?S:!S;var m=ze(l,f,h,g),x=ze(l,f,h,g+(S?1:-1)*359),_="M".concat(m.x,",").concat(m.y,`
61
- A`).concat(h,",").concat(h,",0,1,").concat(S?0:1,`,
62
- `).concat(x.x,",").concat(x.y),A=ae(t.id)?Cr("recharts-radial-line-"):t.id;return O.createElement("text",Pi({},n,{dominantBaseline:"central",className:ce("recharts-radial-bar-label",u)}),O.createElement("defs",null,O.createElement("path",{id:A,d:_})),O.createElement("textPath",{xlinkHref:"#".concat(A)},r))},dR=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,s=a.innerRadius,l=a.outerRadius,f=a.startAngle,c=a.endAngle,d=(f+c)/2;if(i==="outside"){var p=ze(o,u,l+n,d),y=p.x,v=p.y;return{x:y,y:v,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var h=(s+l)/2,b=ze(o,u,h,d),w=b.x,g=b.y;return{x:w,y:g,textAnchor:"middle",verticalAnchor:"middle"}},pR=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,s=o.y,l=o.width,f=o.height,c=f>=0?1:-1,d=c*i,p=c>0?"end":"start",y=c>0?"start":"end",v=l>=0?1:-1,h=v*i,b=v>0?"end":"start",w=v>0?"start":"end";if(a==="top"){var g={x:u+l/2,y:s-c*i,textAnchor:"middle",verticalAnchor:p};return ke(ke({},g),n?{height:Math.max(s-n.y,0),width:l}:{})}if(a==="bottom"){var S={x:u+l/2,y:s+f+d,textAnchor:"middle",verticalAnchor:y};return ke(ke({},S),n?{height:Math.max(n.y+n.height-(s+f),0),width:l}:{})}if(a==="left"){var m={x:u-h,y:s+f/2,textAnchor:b,verticalAnchor:"middle"};return ke(ke({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var x={x:u+l+h,y:s+f/2,textAnchor:w,verticalAnchor:"middle"};return ke(ke({},x),n?{width:Math.max(n.x+n.width-x.x,0),height:f}:{})}var _=n?{width:l,height:f}:{};return a==="insideLeft"?ke({x:u+h,y:s+f/2,textAnchor:w,verticalAnchor:"middle"},_):a==="insideRight"?ke({x:u+l-h,y:s+f/2,textAnchor:b,verticalAnchor:"middle"},_):a==="insideTop"?ke({x:u+l/2,y:s+d,textAnchor:"middle",verticalAnchor:y},_):a==="insideBottom"?ke({x:u+l/2,y:s+f-d,textAnchor:"middle",verticalAnchor:p},_):a==="insideTopLeft"?ke({x:u+h,y:s+d,textAnchor:w,verticalAnchor:y},_):a==="insideTopRight"?ke({x:u+l-h,y:s+d,textAnchor:b,verticalAnchor:y},_):a==="insideBottomLeft"?ke({x:u+h,y:s+f-d,textAnchor:w,verticalAnchor:p},_):a==="insideBottomRight"?ke({x:u+l-h,y:s+f-d,textAnchor:b,verticalAnchor:p},_):An(a)&&(K(a.x)||pr(a.x))&&(K(a.y)||pr(a.y))?ke({x:u+Or(a.x,l),y:s+Or(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):ke({x:u+l/2,y:s+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},hR=function(t){return"cx"in t&&K(t.cx)};function He(e){var t=e.offset,r=t===void 0?5:t,n=iR(e,Jk),i=ke({offset:r},n),a=i.viewBox,o=i.position,u=i.value,s=i.children,l=i.content,f=i.className,c=f===void 0?"":f,d=i.textBreakAll;if(!a||ae(u)&&ae(s)&&!O.isValidElement(l)&&!se(l))return null;if(O.isValidElement(l))return O.cloneElement(l,i);var p;if(se(l)){if(p=O.createElement(l,i),O.isValidElement(p))return p}else p=lR(i);var y=hR(a),v=oe(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return fR(i,p,v);var h=y?dR(i):pR(i);return O.createElement(Ma,Pi({className:ce("recharts-label",c)},v,h,{breakAll:d}),p)}He.displayName="Label";var fO=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,s=t.radius,l=t.innerRadius,f=t.outerRadius,c=t.x,d=t.y,p=t.top,y=t.left,v=t.width,h=t.height,b=t.clockWise,w=t.labelViewBox;if(w)return w;if(K(v)&&K(h)){if(K(c)&&K(d))return{x:c,y:d,width:v,height:h};if(K(p)&&K(y))return{x:p,y,width:v,height:h}}return K(c)&&K(d)?{x:c,y:d,width:0,height:0}:K(r)&&K(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:l||0,outerRadius:f||s||u||0,clockWise:b}:t.viewBox?t.viewBox:{}},vR=function(t,r){return t?t===!0?O.createElement(He,{key:"label-implicit",viewBox:r}):Re(t)?O.createElement(He,{key:"label-implicit",viewBox:r,value:t}):O.isValidElement(t)?t.type===He?O.cloneElement(t,{key:"label-implicit",viewBox:r}):O.createElement(He,{key:"label-implicit",content:t,viewBox:r}):se(t)?O.createElement(He,{key:"label-implicit",content:t,viewBox:r}):An(t)?O.createElement(He,Pi({viewBox:r},t,{key:"label-implicit"})):null:null},yR=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=fO(t),o=Qe(i,He).map(function(s,l){return O.cloneElement(s,{viewBox:r||a,key:"label-".concat(l)})});if(!n)return o;var u=vR(t.label,r||a);return[u].concat(Qk(o))};He.parseViewBox=fO;He.renderCallByParent=yR;var Yc,Lb;function mR(){if(Lb)return Yc;Lb=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Yc=e,Yc}var gR=mR();const bR=xe(gR);function Ei(e){"@babel/helpers - typeof";return Ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ei(e)}var xR=["valueAccessor"],wR=["data","dataKey","clockWise","id","textBreakAll"];function SR(e){return PR(e)||AR(e)||_R(e)||OR()}function OR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
63
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _R(e,t){if(e){if(typeof e=="string")return fd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fd(e,t)}}function AR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function PR(e){if(Array.isArray(e))return fd(e)}function fd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ga(){return Ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ga.apply(this,arguments)}function qb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qb(Object(r),!0).forEach(function(n){ER(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ER(e,t,r){return t=TR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TR(e){var t=CR(e,"string");return Ei(t)=="symbol"?t:t+""}function CR(e,t){if(Ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fb(e,t){if(e==null)return{};var r=MR(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function MR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var jR=function(t){return Array.isArray(t.value)?bR(t.value):t.value};function It(e){var t=e.valueAccessor,r=t===void 0?jR:t,n=Fb(e,xR),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,s=n.textBreakAll,l=Fb(n,wR);return!i||!i.length?null:O.createElement(pe,{className:"recharts-label-list"},i.map(function(f,c){var d=ae(a)?r(f,c):De(f&&f.payload,a),p=ae(u)?{}:{id:"".concat(u,"-").concat(c)};return O.createElement(He,Ga({},oe(f,!0),l,p,{parentViewBox:f.parentViewBox,value:d,textBreakAll:s,viewBox:He.parseViewBox(ae(o)?f:Bb(Bb({},f),{},{clockWise:o})),key:"label-".concat(c),index:c}))}))}It.displayName="LabelList";function IR(e,t){return e?e===!0?O.createElement(It,{key:"labelList-implicit",data:t}):O.isValidElement(e)||se(e)?O.createElement(It,{key:"labelList-implicit",data:t,content:e}):An(e)?O.createElement(It,Ga({data:t},e,{key:"labelList-implicit"})):null:null}function $R(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Qe(n,It).map(function(o,u){return O.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=IR(e.label,t);return[a].concat(SR(i))}It.renderCallByParent=$R;function Ti(e){"@babel/helpers - typeof";return Ti=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ti(e)}function dd(){return dd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dd.apply(this,arguments)}function zb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ub(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zb(Object(r),!0).forEach(function(n){kR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kR(e,t,r){return t=RR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RR(e){var t=DR(e,"string");return Ti(t)=="symbol"?t:t+""}function DR(e,t){if(Ti(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ti(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var NR=function(t,r){var n=wt(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},ca=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,u=t.isExternal,s=t.cornerRadius,l=t.cornerIsExternal,f=s*(u?1:-1)+i,c=Math.asin(s/f)/Ha,d=l?a:a+o*c,p=ze(r,n,f,d),y=ze(r,n,i,d),v=l?a-o*c:a,h=ze(r,n,f*Math.cos(c*Ha),v);return{center:p,circleTangency:y,lineTangency:h,theta:c}},dO=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,s=NR(o,u),l=o+s,f=ze(r,n,a,o),c=ze(r,n,a,l),d="M ".concat(f.x,",").concat(f.y,`
64
- A `).concat(a,",").concat(a,`,0,
65
- `).concat(+(Math.abs(s)>180),",").concat(+(o>l),`,
66
- `).concat(c.x,",").concat(c.y,`
67
- `);if(i>0){var p=ze(r,n,i,o),y=ze(r,n,i,l);d+="L ".concat(y.x,",").concat(y.y,`
68
- A `).concat(i,",").concat(i,`,0,
69
- `).concat(+(Math.abs(s)>180),",").concat(+(o<=l),`,
70
- `).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},LR=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,s=t.cornerIsExternal,l=t.startAngle,f=t.endAngle,c=wt(f-l),d=ca({cx:r,cy:n,radius:a,angle:l,sign:c,cornerRadius:o,cornerIsExternal:s}),p=d.circleTangency,y=d.lineTangency,v=d.theta,h=ca({cx:r,cy:n,radius:a,angle:f,sign:-c,cornerRadius:o,cornerIsExternal:s}),b=h.circleTangency,w=h.lineTangency,g=h.theta,S=s?Math.abs(l-f):Math.abs(l-f)-v-g;if(S<0)return u?"M ".concat(y.x,",").concat(y.y,`
71
- a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
72
- a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
73
- `):dO({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:l,endAngle:f});var m="M ".concat(y.x,",").concat(y.y,`
74
- A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(p.x,",").concat(p.y,`
75
- A`).concat(a,",").concat(a,",0,").concat(+(S>180),",").concat(+(c<0),",").concat(b.x,",").concat(b.y,`
76
- A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(w.x,",").concat(w.y,`
77
- `);if(i>0){var x=ca({cx:r,cy:n,radius:i,angle:l,sign:c,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),_=x.circleTangency,A=x.lineTangency,E=x.theta,M=ca({cx:r,cy:n,radius:i,angle:f,sign:-c,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),P=M.circleTangency,T=M.lineTangency,j=M.theta,$=s?Math.abs(l-f):Math.abs(l-f)-E-j;if($<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(T.x,",").concat(T.y,`
78
- A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(P.x,",").concat(P.y,`
79
- A`).concat(i,",").concat(i,",0,").concat(+($>180),",").concat(+(c>0),",").concat(_.x,",").concat(_.y,`
80
- A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(A.x,",").concat(A.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},qR={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},pO=function(t){var r=Ub(Ub({},qR),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,s=r.forceCornerRadius,l=r.cornerIsExternal,f=r.startAngle,c=r.endAngle,d=r.className;if(o<a||f===c)return null;var p=ce("recharts-sector",d),y=o-a,v=Or(u,y,0,!0),h;return v>0&&Math.abs(f-c)<360?h=LR({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:f,endAngle:c}):h=dO({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:c}),O.createElement("path",dd({},oe(r,!0),{className:p,d:h,role:"img"}))};function Ci(e){"@babel/helpers - typeof";return Ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ci(e)}function pd(){return pd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pd.apply(this,arguments)}function Wb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Hb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wb(Object(r),!0).forEach(function(n){BR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BR(e,t,r){return t=FR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FR(e){var t=zR(e,"string");return Ci(t)=="symbol"?t:t+""}function zR(e,t){if(Ci(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ci(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gb={curveBasisClosed:yT,curveBasisOpen:mT,curveBasis:vT,curveBumpX:tT,curveBumpY:rT,curveLinearClosed:gT,curveLinear:Eo,curveMonotoneX:bT,curveMonotoneY:xT,curveNatural:wT,curveStep:ST,curveStepAfter:_T,curveStepBefore:OT},fa=function(t){return t.x===+t.x&&t.y===+t.y},Bn=function(t){return t.x},Fn=function(t){return t.y},UR=function(t,r){if(se(t))return t;var n="curve".concat(Ao(t));return(n==="curveMonotone"||n==="curveBump")&&r?Gb["".concat(n).concat(r==="vertical"?"Y":"X")]:Gb[n]||Eo},WR=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,u=t.layout,s=t.connectNulls,l=s===void 0?!1:s,f=UR(n,u),c=l?a.filter(function(v){return fa(v)}):a,d;if(Array.isArray(o)){var p=l?o.filter(function(v){return fa(v)}):o,y=c.map(function(v,h){return Hb(Hb({},v),{},{base:p[h]})});return u==="vertical"?d=ra().y(Fn).x1(Bn).x0(function(v){return v.base.x}):d=ra().x(Bn).y1(Fn).y0(function(v){return v.base.y}),d.defined(fa).curve(f),d(y)}return u==="vertical"&&K(o)?d=ra().y(Fn).x1(Bn).x0(o):K(o)?d=ra().x(Bn).y1(Fn).y0(o):d=Dw().x(Bn).y(Fn),d.defined(fa).curve(f),d(c)},wr=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?WR(t):i;return ft.createElement("path",pd({},oe(t,!1),ba(t),{className:ce("recharts-curve",r),d:o,ref:a}))},da={exports:{}},pa={exports:{}},me={};/** @license React v16.13.1
81
- * react-is.production.min.js
82
- *
83
- * Copyright (c) Facebook, Inc. and its affiliates.
84
- *
85
- * This source code is licensed under the MIT license found in the
86
- * LICENSE file in the root directory of this source tree.
87
- */var Kb;function HR(){if(Kb)return me;Kb=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,c=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function g(m){if(typeof m=="object"&&m!==null){var x=m.$$typeof;switch(x){case t:switch(m=m.type,m){case s:case l:case n:case a:case i:case c:return m;default:switch(m=m&&m.$$typeof,m){case u:case f:case y:case p:case o:return m;default:return x}}case r:return x}}}function S(m){return g(m)===l}return me.AsyncMode=s,me.ConcurrentMode=l,me.ContextConsumer=u,me.ContextProvider=o,me.Element=t,me.ForwardRef=f,me.Fragment=n,me.Lazy=y,me.Memo=p,me.Portal=r,me.Profiler=a,me.StrictMode=i,me.Suspense=c,me.isAsyncMode=function(m){return S(m)||g(m)===s},me.isConcurrentMode=S,me.isContextConsumer=function(m){return g(m)===u},me.isContextProvider=function(m){return g(m)===o},me.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},me.isForwardRef=function(m){return g(m)===f},me.isFragment=function(m){return g(m)===n},me.isLazy=function(m){return g(m)===y},me.isMemo=function(m){return g(m)===p},me.isPortal=function(m){return g(m)===r},me.isProfiler=function(m){return g(m)===a},me.isStrictMode=function(m){return g(m)===i},me.isSuspense=function(m){return g(m)===c},me.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===l||m===a||m===i||m===c||m===d||typeof m=="object"&&m!==null&&(m.$$typeof===y||m.$$typeof===p||m.$$typeof===o||m.$$typeof===u||m.$$typeof===f||m.$$typeof===h||m.$$typeof===b||m.$$typeof===w||m.$$typeof===v)},me.typeOf=g,me}var ge={};/** @license React v16.13.1
88
- * react-is.development.js
89
- *
90
- * Copyright (c) Facebook, Inc. and its affiliates.
91
- *
92
- * This source code is licensed under the MIT license found in the
93
- * LICENSE file in the root directory of this source tree.
94
- */var Vb;function GR(){return Vb||(Vb=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,c=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function g(C){return typeof C=="string"||typeof C=="function"||C===n||C===l||C===a||C===i||C===c||C===d||typeof C=="object"&&C!==null&&(C.$$typeof===y||C.$$typeof===p||C.$$typeof===o||C.$$typeof===u||C.$$typeof===f||C.$$typeof===h||C.$$typeof===b||C.$$typeof===w||C.$$typeof===v)}function S(C){if(typeof C=="object"&&C!==null){var ie=C.$$typeof;switch(ie){case t:var U=C.type;switch(U){case s:case l:case n:case a:case i:case c:return U;default:var ue=U&&U.$$typeof;switch(ue){case u:case f:case y:case p:case o:return ue;default:return ie}}case r:return ie}}}var m=s,x=l,_=u,A=o,E=t,M=f,P=n,T=y,j=p,$=r,k=a,R=i,D=c,N=!1;function z(C){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(C)||S(C)===s}function I(C){return S(C)===l}function L(C){return S(C)===u}function F(C){return S(C)===o}function W(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function Y(C){return S(C)===f}function Q(C){return S(C)===n}function ee(C){return S(C)===y}function ne(C){return S(C)===p}function V(C){return S(C)===r}function B(C){return S(C)===a}function H(C){return S(C)===i}function Z(C){return S(C)===c}ge.AsyncMode=m,ge.ConcurrentMode=x,ge.ContextConsumer=_,ge.ContextProvider=A,ge.Element=E,ge.ForwardRef=M,ge.Fragment=P,ge.Lazy=T,ge.Memo=j,ge.Portal=$,ge.Profiler=k,ge.StrictMode=R,ge.Suspense=D,ge.isAsyncMode=z,ge.isConcurrentMode=I,ge.isContextConsumer=L,ge.isContextProvider=F,ge.isElement=W,ge.isForwardRef=Y,ge.isFragment=Q,ge.isLazy=ee,ge.isMemo=ne,ge.isPortal=V,ge.isProfiler=B,ge.isStrictMode=H,ge.isSuspense=Z,ge.isValidElementType=g,ge.typeOf=S})()),ge}var Yb;function hO(){return Yb||(Yb=1,process.env.NODE_ENV==="production"?pa.exports=HR():pa.exports=GR()),pa.exports}/*
95
- object-assign
96
- (c) Sindre Sorhus
97
- @license MIT
98
- */var Xc,Xb;function KR(){if(Xb)return Xc;Xb=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},u=0;u<10;u++)o["_"+String.fromCharCode(u)]=u;var s=Object.getOwnPropertyNames(o).map(function(f){return o[f]});if(s.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(f){l[f]=f}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Xc=i()?Object.assign:function(a,o){for(var u,s=n(a),l,f=1;f<arguments.length;f++){u=Object(arguments[f]);for(var c in u)t.call(u,c)&&(s[c]=u[c]);if(e){l=e(u);for(var d=0;d<l.length;d++)r.call(u,l[d])&&(s[l[d]]=u[l[d]])}}return s},Xc}var Zc,Zb;function Vp(){if(Zb)return Zc;Zb=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Zc=e,Zc}var Jc,Jb;function vO(){return Jb||(Jb=1,Jc=Function.call.bind(Object.prototype.hasOwnProperty)),Jc}var Qc,Qb;function VR(){if(Qb)return Qc;Qb=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Vp(),r={},n=vO();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,u,s,l){if(process.env.NODE_ENV!=="production"){for(var f in a)if(n(a,f)){var c;try{if(typeof a[f]!="function"){var d=Error((s||"React class")+": "+u+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}c=a[f](o,f,s,u,null,t)}catch(y){c=y}if(c&&!(c instanceof Error)&&e((s||"React class")+": type specification of "+u+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in r)){r[c.message]=!0;var p=l?l():"";e("Failed "+u+" type: "+c.message+(p??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Qc=i,Qc}var ef,e0;function YR(){if(e0)return ef;e0=1;var e=hO(),t=KR(),r=Vp(),n=vO(),i=VR(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(u){var s="Warning: "+u;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}});function o(){return null}return ef=function(u,s){var l=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function c(I){var L=I&&(l&&I[l]||I[f]);if(typeof L=="function")return L}var d="<<anonymous>>",p={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:w(),arrayOf:g,element:S(),elementType:m(),instanceOf:x,node:M(),objectOf:A,oneOf:_,oneOfType:E,shape:T,exact:j};function y(I,L){return I===L?I!==0||1/I===1/L:I!==I&&L!==L}function v(I,L){this.message=I,this.data=L&&typeof L=="object"?L:{},this.stack=""}v.prototype=Error.prototype;function h(I){if(process.env.NODE_ENV!=="production")var L={},F=0;function W(Q,ee,ne,V,B,H,Z){if(V=V||d,H=H||ne,Z!==r){if(s){var C=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw C.name="Invariant Violation",C}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ie=V+":"+ne;!L[ie]&&F<3&&(a("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+V+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),L[ie]=!0,F++)}}return ee[ne]==null?Q?ee[ne]===null?new v("The "+B+" `"+H+"` is marked as required "+("in `"+V+"`, but its value is `null`.")):new v("The "+B+" `"+H+"` is marked as required in "+("`"+V+"`, but its value is `undefined`.")):null:I(ee,ne,V,B,H)}var Y=W.bind(null,!1);return Y.isRequired=W.bind(null,!0),Y}function b(I){function L(F,W,Y,Q,ee,ne){var V=F[W],B=R(V);if(B!==I){var H=D(V);return new v("Invalid "+Q+" `"+ee+"` of type "+("`"+H+"` supplied to `"+Y+"`, expected ")+("`"+I+"`."),{expectedType:I})}return null}return h(L)}function w(){return h(o)}function g(I){function L(F,W,Y,Q,ee){if(typeof I!="function")return new v("Property `"+ee+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var ne=F[W];if(!Array.isArray(ne)){var V=R(ne);return new v("Invalid "+Q+" `"+ee+"` of type "+("`"+V+"` supplied to `"+Y+"`, expected an array."))}for(var B=0;B<ne.length;B++){var H=I(ne,B,Y,Q,ee+"["+B+"]",r);if(H instanceof Error)return H}return null}return h(L)}function S(){function I(L,F,W,Y,Q){var ee=L[F];if(!u(ee)){var ne=R(ee);return new v("Invalid "+Y+" `"+Q+"` of type "+("`"+ne+"` supplied to `"+W+"`, expected a single ReactElement."))}return null}return h(I)}function m(){function I(L,F,W,Y,Q){var ee=L[F];if(!e.isValidElementType(ee)){var ne=R(ee);return new v("Invalid "+Y+" `"+Q+"` of type "+("`"+ne+"` supplied to `"+W+"`, expected a single ReactElement type."))}return null}return h(I)}function x(I){function L(F,W,Y,Q,ee){if(!(F[W]instanceof I)){var ne=I.name||d,V=z(F[W]);return new v("Invalid "+Q+" `"+ee+"` of type "+("`"+V+"` supplied to `"+Y+"`, expected ")+("instance of `"+ne+"`."))}return null}return h(L)}function _(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function L(F,W,Y,Q,ee){for(var ne=F[W],V=0;V<I.length;V++)if(y(ne,I[V]))return null;var B=JSON.stringify(I,function(Z,C){var ie=D(C);return ie==="symbol"?String(C):C});return new v("Invalid "+Q+" `"+ee+"` of value `"+String(ne)+"` "+("supplied to `"+Y+"`, expected one of "+B+"."))}return h(L)}function A(I){function L(F,W,Y,Q,ee){if(typeof I!="function")return new v("Property `"+ee+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var ne=F[W],V=R(ne);if(V!=="object")return new v("Invalid "+Q+" `"+ee+"` of type "+("`"+V+"` supplied to `"+Y+"`, expected an object."));for(var B in ne)if(n(ne,B)){var H=I(ne,B,Y,Q,ee+"."+B,r);if(H instanceof Error)return H}return null}return h(L)}function E(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var L=0;L<I.length;L++){var F=I[L];if(typeof F!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+N(F)+" at index "+L+"."),o}function W(Y,Q,ee,ne,V){for(var B=[],H=0;H<I.length;H++){var Z=I[H],C=Z(Y,Q,ee,ne,V,r);if(C==null)return null;C.data&&n(C.data,"expectedType")&&B.push(C.data.expectedType)}var ie=B.length>0?", expected one of type ["+B.join(", ")+"]":"";return new v("Invalid "+ne+" `"+V+"` supplied to "+("`"+ee+"`"+ie+"."))}return h(W)}function M(){function I(L,F,W,Y,Q){return $(L[F])?null:new v("Invalid "+Y+" `"+Q+"` supplied to "+("`"+W+"`, expected a ReactNode."))}return h(I)}function P(I,L,F,W,Y){return new v((I||"React class")+": "+L+" type `"+F+"."+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function T(I){function L(F,W,Y,Q,ee){var ne=F[W],V=R(ne);if(V!=="object")return new v("Invalid "+Q+" `"+ee+"` of type `"+V+"` "+("supplied to `"+Y+"`, expected `object`."));for(var B in I){var H=I[B];if(typeof H!="function")return P(Y,Q,ee,B,D(H));var Z=H(ne,B,Y,Q,ee+"."+B,r);if(Z)return Z}return null}return h(L)}function j(I){function L(F,W,Y,Q,ee){var ne=F[W],V=R(ne);if(V!=="object")return new v("Invalid "+Q+" `"+ee+"` of type `"+V+"` "+("supplied to `"+Y+"`, expected `object`."));var B=t({},F[W],I);for(var H in B){var Z=I[H];if(n(I,H)&&typeof Z!="function")return P(Y,Q,ee,H,D(Z));if(!Z)return new v("Invalid "+Q+" `"+ee+"` key `"+H+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(F[W],null," ")+`
99
- Valid keys: `+JSON.stringify(Object.keys(I),null," "));var C=Z(ne,H,Y,Q,ee+"."+H,r);if(C)return C}return null}return h(L)}function $(I){switch(typeof I){case"number":case"string":case"undefined":return!0;case"boolean":return!I;case"object":if(Array.isArray(I))return I.every($);if(I===null||u(I))return!0;var L=c(I);if(L){var F=L.call(I),W;if(L!==I.entries){for(;!(W=F.next()).done;)if(!$(W.value))return!1}else for(;!(W=F.next()).done;){var Y=W.value;if(Y&&!$(Y[1]))return!1}}else return!1;return!0;default:return!1}}function k(I,L){return I==="symbol"?!0:L?L["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&L instanceof Symbol:!1}function R(I){var L=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":k(L,I)?"symbol":L}function D(I){if(typeof I>"u"||I===null)return""+I;var L=R(I);if(L==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return L}function N(I){var L=D(I);switch(L){case"array":case"object":return"an "+L;case"boolean":case"date":case"regexp":return"a "+L;default:return L}}function z(I){return!I.constructor||!I.constructor.name?d:I.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},ef}var tf,t0;function XR(){if(t0)return tf;t0=1;var e=Vp();function t(){}function r(){}return r.resetWarningCache=t,tf=function(){function n(o,u,s,l,f,c){if(c!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},tf}var r0;function ZR(){if(r0)return da.exports;if(r0=1,process.env.NODE_ENV!=="production"){var e=hO(),t=!0;da.exports=YR()(e.isElement,t)}else da.exports=XR()();return da.exports}var JR=ZR();const be=xe(JR);var QR=Object.getOwnPropertyNames,eD=Object.getOwnPropertySymbols,tD=Object.prototype.hasOwnProperty;function n0(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function ha(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var a=i.cache,o=a.get(r),u=a.get(n);if(o&&u)return o===n&&u===r;a.set(r,n),a.set(n,r);var s=e(r,n,i);return a.delete(r),a.delete(n),s}}function rD(e){return e!=null?e[Symbol.toStringTag]:void 0}function i0(e){return QR(e).concat(eD(e))}var nD=Object.hasOwn||(function(e,t){return tD.call(e,t)});function Ir(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var iD="__v",aD="__o",oD="_owner",a0=Object.getOwnPropertyDescriptor,o0=Object.keys;function uD(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function sD(e,t){return Ir(e.getTime(),t.getTime())}function lD(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function cD(e,t){return e===t}function u0(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.entries(),o,u,s=0;(o=a.next())&&!o.done;){for(var l=t.entries(),f=!1,c=0;(u=l.next())&&!u.done;){if(i[c]){c++;continue}var d=o.value,p=u.value;if(r.equals(d[0],p[0],s,c,e,t,r)&&r.equals(d[1],p[1],d[0],p[0],e,t,r)){f=i[c]=!0;break}c++}if(!f)return!1;s++}return!0}var fD=Ir;function dD(e,t,r){var n=o0(e),i=n.length;if(o0(t).length!==i)return!1;for(;i-- >0;)if(!yO(e,t,r,n[i]))return!1;return!0}function zn(e,t,r){var n=i0(e),i=n.length;if(i0(t).length!==i)return!1;for(var a,o,u;i-- >0;)if(a=n[i],!yO(e,t,r,a)||(o=a0(e,a),u=a0(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function pD(e,t){return Ir(e.valueOf(),t.valueOf())}function hD(e,t){return e.source===t.source&&e.flags===t.flags}function s0(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.values(),o,u;(o=a.next())&&!o.done;){for(var s=t.values(),l=!1,f=0;(u=s.next())&&!u.done;){if(!i[f]&&r.equals(o.value,u.value,o.value,u.value,e,t,r)){l=i[f]=!0;break}f++}if(!l)return!1}return!0}function vD(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function yD(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function yO(e,t,r,n){return(n===oD||n===aD||n===iD)&&(e.$$typeof||t.$$typeof)?!0:nD(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var mD="[object Arguments]",gD="[object Boolean]",bD="[object Date]",xD="[object Error]",wD="[object Map]",SD="[object Number]",OD="[object Object]",_D="[object RegExp]",AD="[object Set]",PD="[object String]",ED="[object URL]",TD=Array.isArray,l0=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,c0=Object.assign,CD=Object.prototype.toString.call.bind(Object.prototype.toString);function MD(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,u=e.areObjectsEqual,s=e.arePrimitiveWrappersEqual,l=e.areRegExpsEqual,f=e.areSetsEqual,c=e.areTypedArraysEqual,d=e.areUrlsEqual,p=e.unknownTagComparators;return function(v,h,b){if(v===h)return!0;if(v==null||h==null)return!1;var w=typeof v;if(w!==typeof h)return!1;if(w!=="object")return w==="number"?o(v,h,b):w==="function"?i(v,h,b):!1;var g=v.constructor;if(g!==h.constructor)return!1;if(g===Object)return u(v,h,b);if(TD(v))return t(v,h,b);if(l0!=null&&l0(v))return c(v,h,b);if(g===Date)return r(v,h,b);if(g===RegExp)return l(v,h,b);if(g===Map)return a(v,h,b);if(g===Set)return f(v,h,b);var S=CD(v);if(S===bD)return r(v,h,b);if(S===_D)return l(v,h,b);if(S===wD)return a(v,h,b);if(S===AD)return f(v,h,b);if(S===OD)return typeof v.then!="function"&&typeof h.then!="function"&&u(v,h,b);if(S===ED)return d(v,h,b);if(S===xD)return n(v,h,b);if(S===mD)return u(v,h,b);if(S===gD||S===SD||S===PD)return s(v,h,b);if(p){var m=p[S];if(!m){var x=rD(v);x&&(m=p[x])}if(m)return m(v,h,b)}return!1}}function jD(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?zn:uD,areDatesEqual:sD,areErrorsEqual:lD,areFunctionsEqual:cD,areMapsEqual:n?n0(u0,zn):u0,areNumbersEqual:fD,areObjectsEqual:n?zn:dD,arePrimitiveWrappersEqual:pD,areRegExpsEqual:hD,areSetsEqual:n?n0(s0,zn):s0,areTypedArraysEqual:n?zn:vD,areUrlsEqual:yD,unknownTagComparators:void 0};if(r&&(i=c0({},i,r(i))),t){var a=ha(i.areArraysEqual),o=ha(i.areMapsEqual),u=ha(i.areObjectsEqual),s=ha(i.areSetsEqual);i=c0({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:u,areSetsEqual:s})}return i}function ID(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function $D(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(s,l){var f=n(),c=f.cache,d=c===void 0?t?new WeakMap:void 0:c,p=f.meta;return r(s,l,{cache:d,equals:i,meta:p,strict:a})};if(t)return function(s,l){return r(s,l,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(s,l){return r(s,l,o)}}var kD=sr();sr({strict:!0});sr({circular:!0});sr({circular:!0,strict:!0});sr({createInternalComparator:function(){return Ir}});sr({strict:!0,createInternalComparator:function(){return Ir}});sr({circular:!0,createInternalComparator:function(){return Ir}});sr({circular:!0,createInternalComparator:function(){return Ir},strict:!0});function sr(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,u=jD(e),s=MD(u),l=n?n(s):ID(s);return $D({circular:r,comparator:s,createState:i,equals:l,strict:o})}function RD(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function f0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):RD(i)};requestAnimationFrame(n)}function hd(e){"@babel/helpers - typeof";return hd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hd(e)}function DD(e){return BD(e)||qD(e)||LD(e)||ND()}function ND(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
100
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LD(e,t){if(e){if(typeof e=="string")return d0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d0(e,t)}}function d0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function BD(e){if(Array.isArray(e))return e}function FD(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,u=DD(o),s=u[0],l=u.slice(1);if(typeof s=="number"){f0(i.bind(null,l),s);return}i(s),f0(i.bind(null,l));return}hd(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function Mi(e){"@babel/helpers - typeof";return Mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mi(e)}function p0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function h0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p0(Object(r),!0).forEach(function(n){mO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mO(e,t,r){return t=zD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zD(e){var t=UD(e,"string");return Mi(t)==="symbol"?t:String(t)}function UD(e,t){if(Mi(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mi(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var WD=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},HD=function(t){return t},GD=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},ti=function(t,r){return Object.keys(r).reduce(function(n,i){return h0(h0({},n),{},mO({},i,t(i,r[i])))},{})},v0=function(t,r,n){return t.map(function(i){return"".concat(GD(i)," ").concat(r,"ms ").concat(n)}).join(",")},KD=process.env.NODE_ENV!=="production",Ka=function(t,r,n,i,a,o,u,s){if(KD&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,i,a,o,u,s],f=0;console.warn(r.replace(/%s/g,function(){return l[f++]}))}};function VD(e,t){return ZD(e)||XD(e,t)||gO(e,t)||YD()}function YD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
101
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){l=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function ZD(e){if(Array.isArray(e))return e}function JD(e){return tN(e)||eN(e)||gO(e)||QD()}function QD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
102
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gO(e,t){if(e){if(typeof e=="string")return vd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vd(e,t)}}function eN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tN(e){if(Array.isArray(e))return vd(e)}function vd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Va=1e-4,bO=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},xO=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},y0=function(t,r){return function(n){var i=bO(t,r);return xO(i,n)}},rN=function(t,r){return function(n){var i=bO(t,r),a=[].concat(JD(i.map(function(o,u){return o*u}).slice(1)),[0]);return xO(a,n)}},m0=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],u=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,u=1;break;case"ease":i=.25,a=.1,o=.25,u=1;break;case"ease-in":i=.42,a=0,o=1,u=1;break;case"ease-out":i=.42,a=0,o=.58,u=1;break;case"ease-in-out":i=0,a=0,o=.58,u=1;break;default:{var s=r[0].split("(");if(s[0]==="cubic-bezier"&&s[1].split(")")[0].split(",").length===4){var l=s[1].split(")")[0].split(",").map(function(h){return parseFloat(h)}),f=VD(l,4);i=f[0],a=f[1],o=f[2],u=f[3]}else Ka(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",r)}}Ka([i,o,a,u].every(function(h){return typeof h=="number"&&h>=0&&h<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var c=y0(i,o),d=y0(a,u),p=rN(i,o),y=function(b){return b>1?1:b<0?0:b},v=function(b){for(var w=b>1?1:b,g=w,S=0;S<8;++S){var m=c(g)-w,x=p(g);if(Math.abs(m-w)<Va||x<Va)return d(g);g=y(g-m/x)}return d(g)};return v.isStepper=!1,v},nN=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,s=function(f,c,d){var p=-(f-c)*n,y=d*a,v=d+(p-y)*u/1e3,h=d*u/1e3+f;return Math.abs(h-c)<Va&&Math.abs(v)<Va?[c,0]:[h,v]};return s.isStepper=!0,s.dt=u,s},iN=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return m0(i);case"spring":return nN();default:if(i.split("(")[0]==="cubic-bezier")return m0(i);Ka(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",r)}return typeof i=="function"?i:(Ka(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function ji(e){"@babel/helpers - typeof";return ji=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ji(e)}function g0(e){return uN(e)||oN(e)||wO(e)||aN()}function aN(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
103
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uN(e){if(Array.isArray(e))return md(e)}function b0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?b0(Object(r),!0).forEach(function(n){yd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yd(e,t,r){return t=sN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sN(e){var t=lN(e,"string");return ji(t)==="symbol"?t:String(t)}function lN(e,t){if(ji(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ji(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cN(e,t){return pN(e)||dN(e,t)||wO(e,t)||fN()}function fN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
104
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wO(e,t){if(e){if(typeof e=="string")return md(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return md(e,t)}}function md(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function dN(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){l=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function pN(e){if(Array.isArray(e))return e}var Ya=function(t,r,n){return t+(r-t)*n},gd=function(t){var r=t.from,n=t.to;return r!==n},hN=function e(t,r,n){var i=ti(function(a,o){if(gd(o)){var u=t(o.from,o.to,o.velocity),s=cN(u,2),l=s[0],f=s[1];return Fe(Fe({},o),{},{from:l,velocity:f})}return o},r);return n<1?ti(function(a,o){return gd(o)?Fe(Fe({},o),{},{velocity:Ya(o.velocity,i[a].velocity,n),from:Ya(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const vN=(function(e,t,r,n,i){var a=WD(e,t),o=a.reduce(function(h,b){return Fe(Fe({},h),{},yd({},b,[e[b],t[b]]))},{}),u=a.reduce(function(h,b){return Fe(Fe({},h),{},yd({},b,{from:e[b],velocity:0,to:t[b]}))},{}),s=-1,l,f,c=function(){return null},d=function(){return ti(function(b,w){return w.from},u)},p=function(){return!Object.values(u).filter(gd).length},y=function(b){l||(l=b);var w=b-l,g=w/r.dt;u=hN(r,u,g),i(Fe(Fe(Fe({},e),t),d())),l=b,p()||(s=requestAnimationFrame(c))},v=function(b){f||(f=b);var w=(b-f)/n,g=ti(function(m,x){return Ya.apply(void 0,g0(x).concat([r(w)]))},o);if(i(Fe(Fe(Fe({},e),t),g)),w<1)s=requestAnimationFrame(c);else{var S=ti(function(m,x){return Ya.apply(void 0,g0(x).concat([r(1)]))},o);i(Fe(Fe(Fe({},e),t),S))}};return c=r.isStepper?y:v,function(){return requestAnimationFrame(c),function(){cancelAnimationFrame(s)}}});function an(e){"@babel/helpers - typeof";return an=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},an(e)}var yN=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function mN(e,t){if(e==null)return{};var r=gN(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gN(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function rf(e){return SN(e)||wN(e)||xN(e)||bN()}function bN(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
105
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xN(e,t){if(e){if(typeof e=="string")return bd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bd(e,t)}}function wN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function SN(e){if(Array.isArray(e))return bd(e)}function bd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function x0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?x0(Object(r),!0).forEach(function(n){Kn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kn(e,t,r){return t=SO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ON(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _N(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,SO(n.key),n)}}function AN(e,t,r){return t&&_N(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function SO(e){var t=PN(e,"string");return an(t)==="symbol"?t:String(t)}function PN(e,t){if(an(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(an(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xd(e,t)}function xd(e,t){return xd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},xd(e,t)}function TN(e){var t=CN();return function(){var n=Xa(e),i;if(t){var a=Xa(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return wd(this,i)}}function wd(e,t){if(t&&(an(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sd(e)}function Sd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CN(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xa(e){return Xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xa(e)}var St=(function(e){EN(r,e);var t=TN(r);function r(n,i){var a;ON(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,s=o.attributeName,l=o.from,f=o.to,c=o.steps,d=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Sd(a)),a.changeStyle=a.changeStyle.bind(Sd(a)),!u||p<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:f}),wd(a);if(c&&c.length)a.state={style:c[0].style};else if(l){if(typeof d=="function")return a.state={style:l},wd(a);a.state={style:s?Kn({},s,l):l}}else a.state={style:{}};return a}return AN(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,s=a.attributeName,l=a.shouldReAnimate,f=a.to,c=a.from,d=this.state.style;if(u){if(!o){var p={style:s?Kn({},s,f):f};this.state&&d&&(s&&d[s]!==f||!s&&d!==f)&&this.setState(p);return}if(!(kD(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=y||l?c:i.to;if(this.state&&d){var h={style:s?Kn({},s,v):v};(s&&d[s]!==v||!s&&d!==v)&&this.setState(h)}this.runAnimation(yt(yt({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,s=i.duration,l=i.easing,f=i.begin,c=i.onAnimationEnd,d=i.onAnimationStart,p=vN(o,u,iN(l),s,this.changeStyle),y=function(){a.stopJSAnimation=p()};this.manager.start([d,f,y,s,c])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,s=i.onAnimationStart,l=o[0],f=l.style,c=l.duration,d=c===void 0?0:c,p=function(v,h,b){if(b===0)return v;var w=h.duration,g=h.easing,S=g===void 0?"ease":g,m=h.style,x=h.properties,_=h.onAnimationEnd,A=b>0?o[b-1]:h,E=x||Object.keys(m);if(typeof S=="function"||S==="spring")return[].concat(rf(v),[a.runJSAnimation.bind(a,{from:A.style,to:m,duration:w,easing:S}),w]);var M=v0(E,w,S),P=yt(yt(yt({},A.style),m),{},{transition:M});return[].concat(rf(v),[P,w,_]).filter(HD)};return this.manager.start([s].concat(rf(o.reduce(p,[f,Math.max(d,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=FD());var a=i.begin,o=i.duration,u=i.attributeName,s=i.to,l=i.easing,f=i.onAnimationStart,c=i.onAnimationEnd,d=i.steps,p=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof l=="function"||typeof p=="function"||l==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var v=u?Kn({},u,s):s,h=v0(Object.keys(v),o,l);y.start([f,a,yt(yt({},v),{},{transition:h}),o,c])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var s=mN(i,yN),l=O.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||l===0||o<=0)return a;var c=function(p){var y=p.props,v=y.style,h=v===void 0?{}:v,b=y.className,w=O.cloneElement(p,yt(yt({},s),{},{style:yt(yt({},h),f),className:b}));return w};return l===1?c(O.Children.only(a)):O.createElement("div",null,O.Children.map(a,function(d){return c(d)}))}}]),r})(O.PureComponent);St.displayName="Animate";St.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};St.propTypes={from:be.oneOfType([be.object,be.string]),to:be.oneOfType([be.object,be.string]),attributeName:be.string,duration:be.number,begin:be.number,easing:be.oneOfType([be.string,be.func]),steps:be.arrayOf(be.shape({duration:be.number.isRequired,style:be.object.isRequired,easing:be.oneOfType([be.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),be.func]),properties:be.arrayOf("string"),onAnimationEnd:be.func})),children:be.oneOfType([be.node,be.func]),isActive:be.bool,canBegin:be.bool,onAnimationEnd:be.func,shouldReAnimate:be.bool,onAnimationStart:be.func,onAnimationReStart:be.func};function Ii(e){"@babel/helpers - typeof";return Ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ii(e)}function Za(){return Za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Za.apply(this,arguments)}function MN(e,t){return kN(e)||$N(e,t)||IN(e,t)||jN()}function jN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
106
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IN(e,t){if(e){if(typeof e=="string")return w0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w0(e,t)}}function w0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $N(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){l=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function kN(e){if(Array.isArray(e))return e}function S0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function O0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?S0(Object(r),!0).forEach(function(n){RN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RN(e,t,r){return t=DN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DN(e){var t=NN(e,"string");return Ii(t)=="symbol"?t:t+""}function NN(e,t){if(Ii(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ii(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _0=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,s=n>=0?1:-1,l=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var c=[0,0,0,0],d=0,p=4;d<p;d++)c[d]=a[d]>o?o:a[d];f="M".concat(t,",").concat(r+u*c[0]),c[0]>0&&(f+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(l,",").concat(t+s*c[0],",").concat(r)),f+="L ".concat(t+n-s*c[1],",").concat(r),c[1]>0&&(f+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(l,`,
107
- `).concat(t+n,",").concat(r+u*c[1])),f+="L ".concat(t+n,",").concat(r+i-u*c[2]),c[2]>0&&(f+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(l,`,
108
- `).concat(t+n-s*c[2],",").concat(r+i)),f+="L ".concat(t+s*c[3],",").concat(r+i),c[3]>0&&(f+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(l,`,
109
- `).concat(t,",").concat(r+i-u*c[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);f="M ".concat(t,",").concat(r+u*y,`
110
- A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t+s*y,",").concat(r,`
111
- L `).concat(t+n-s*y,",").concat(r,`
112
- A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t+n,",").concat(r+u*y,`
113
- L `).concat(t+n,",").concat(r+i-u*y,`
114
- A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t+n-s*y,",").concat(r+i,`
115
- L `).concat(t+s*y,",").concat(r+i,`
116
- A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t,",").concat(r+i-u*y," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},LN=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,s=r.height;if(Math.abs(u)>0&&Math.abs(s)>0){var l=Math.min(a,a+u),f=Math.max(a,a+u),c=Math.min(o,o+s),d=Math.max(o,o+s);return n>=l&&n<=f&&i>=c&&i<=d}return!1},qN={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Yp=function(t){var r=O0(O0({},qN),t),n=O.useRef(),i=O.useState(-1),a=MN(i,2),o=a[0],u=a[1];O.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var S=n.current.getTotalLength();S&&u(S)}catch{}},[]);var s=r.x,l=r.y,f=r.width,c=r.height,d=r.radius,p=r.className,y=r.animationEasing,v=r.animationDuration,h=r.animationBegin,b=r.isAnimationActive,w=r.isUpdateAnimationActive;if(s!==+s||l!==+l||f!==+f||c!==+c||f===0||c===0)return null;var g=ce("recharts-rectangle",p);return w?O.createElement(St,{canBegin:o>0,from:{width:f,height:c,x:s,y:l},to:{width:f,height:c,x:s,y:l},duration:v,animationEasing:y,isActive:w},function(S){var m=S.width,x=S.height,_=S.x,A=S.y;return O.createElement(St,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:v,isActive:b,easing:y},O.createElement("path",Za({},oe(r,!0),{className:g,d:_0(_,A,m,x,d),ref:n})))}):O.createElement("path",Za({},oe(r,!0),{className:g,d:_0(s,l,f,c,d)}))};function Od(){return Od=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Od.apply(this,arguments)}var Bo=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=ce("recharts-dot",a);return r===+r&&n===+n&&i===+i?ft.createElement("circle",Od({},oe(t,!1),ba(t),{className:o,cx:r,cy:n,r:i})):null};function $i(e){"@babel/helpers - typeof";return $i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$i(e)}var BN=["x","y","top","left","width","height","className"];function _d(){return _d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_d.apply(this,arguments)}function A0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function FN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?A0(Object(r),!0).forEach(function(n){zN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zN(e,t,r){return t=UN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UN(e){var t=WN(e,"string");return $i(t)=="symbol"?t:t+""}function WN(e,t){if($i(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($i(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function HN(e,t){if(e==null)return{};var r=GN(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function GN(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var KN=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},VN=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,s=t.left,l=s===void 0?0:s,f=t.width,c=f===void 0?0:f,d=t.height,p=d===void 0?0:d,y=t.className,v=HN(t,BN),h=FN({x:n,y:a,top:u,left:l,width:c,height:p},v);return!K(n)||!K(a)||!K(c)||!K(p)||!K(u)||!K(l)?null:O.createElement("path",_d({},oe(h,!0),{className:ce("recharts-cross",y),d:KN(n,a,c,p,u,l)}))},nf,P0;function YN(){if(P0)return nf;P0=1;var e=uw(),t=e(Object.getPrototypeOf,Object);return nf=t,nf}var af,E0;function XN(){if(E0)return af;E0=1;var e=Kt(),t=YN(),r=Vt(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,s=o.call(Object);function l(f){if(!r(f)||e(f)!=n)return!1;var c=t(f);if(c===null)return!0;var d=u.call(c,"constructor")&&c.constructor;return typeof d=="function"&&d instanceof d&&o.call(d)==s}return af=l,af}var ZN=XN();const JN=xe(ZN);var of,T0;function QN(){if(T0)return of;T0=1;var e=Kt(),t=Vt(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return of=n,of}var e2=QN();const t2=xe(e2);function ki(e){"@babel/helpers - typeof";return ki=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ki(e)}function Ja(){return Ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ja.apply(this,arguments)}function r2(e,t){return o2(e)||a2(e,t)||i2(e,t)||n2()}function n2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
117
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i2(e,t){if(e){if(typeof e=="string")return C0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return C0(e,t)}}function C0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){l=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function o2(e){if(Array.isArray(e))return e}function M0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function j0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?M0(Object(r),!0).forEach(function(n){u2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function u2(e,t,r){return t=s2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s2(e){var t=l2(e,"string");return ki(t)=="symbol"?t:t+""}function l2(e,t){if(ki(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ki(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var I0=function(t,r,n,i,a){var o=n-i,u;return u="M ".concat(t,",").concat(r),u+="L ".concat(t+n,",").concat(r),u+="L ".concat(t+n-o/2,",").concat(r+a),u+="L ".concat(t+n-o/2-i,",").concat(r+a),u+="L ".concat(t,",").concat(r," Z"),u},c2={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},f2=function(t){var r=j0(j0({},c2),t),n=O.useRef(),i=O.useState(-1),a=r2(i,2),o=a[0],u=a[1];O.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var g=n.current.getTotalLength();g&&u(g)}catch{}},[]);var s=r.x,l=r.y,f=r.upperWidth,c=r.lowerWidth,d=r.height,p=r.className,y=r.animationEasing,v=r.animationDuration,h=r.animationBegin,b=r.isUpdateAnimationActive;if(s!==+s||l!==+l||f!==+f||c!==+c||d!==+d||f===0&&c===0||d===0)return null;var w=ce("recharts-trapezoid",p);return b?O.createElement(St,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:s,y:l},to:{upperWidth:f,lowerWidth:c,height:d,x:s,y:l},duration:v,animationEasing:y,isActive:b},function(g){var S=g.upperWidth,m=g.lowerWidth,x=g.height,_=g.x,A=g.y;return O.createElement(St,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:v,easing:y},O.createElement("path",Ja({},oe(r,!0),{className:w,d:I0(_,A,S,m,x),ref:n})))}):O.createElement("g",null,O.createElement("path",Ja({},oe(r,!0),{className:w,d:I0(s,l,f,c,d)})))},d2=["option","shapeType","propTransformer","activeClassName","isActive"];function Ri(e){"@babel/helpers - typeof";return Ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ri(e)}function p2(e,t){if(e==null)return{};var r=h2(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function h2(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function $0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$0(Object(r),!0).forEach(function(n){v2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function v2(e,t,r){return t=y2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y2(e){var t=m2(e,"string");return Ri(t)=="symbol"?t:t+""}function m2(e,t){if(Ri(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ri(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function g2(e,t){return Qa(Qa({},t),e)}function b2(e,t){return e==="symbols"}function k0(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return O.createElement(Yp,r);case"trapezoid":return O.createElement(f2,r);case"sector":return O.createElement(pO,r);case"symbols":if(b2(t))return O.createElement(Co,r);break;default:return null}}function x2(e){return O.isValidElement(e)?e.props:e}function Ad(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?g2:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,s=p2(e,d2),l;if(O.isValidElement(t))l=O.cloneElement(t,Qa(Qa({},s),x2(t)));else if(se(t))l=t(s);else if(JN(t)&&!t2(t)){var f=i(t,s);l=O.createElement(k0,{shapeType:r,elementProps:f})}else{var c=s;l=O.createElement(k0,{shapeType:r,elementProps:c})}return u?O.createElement(pe,{className:o},l):l}function Fo(e,t){return t!=null&&"trapezoids"in e.props}function zo(e,t){return t!=null&&"sectors"in e.props}function Di(e,t){return t!=null&&"points"in e.props}function w2(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function S2(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function O2(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function _2(e,t){var r;return Fo(e,t)?r=w2:zo(e,t)?r=S2:Di(e,t)&&(r=O2),r}function A2(e,t){var r;return Fo(e,t)?r="trapezoids":zo(e,t)?r="sectors":Di(e,t)&&(r="points"),r}function P2(e,t){if(Fo(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(zo(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Di(e,t)?t.payload:{}}function E2(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=A2(r,t),a=P2(r,t),o=n.filter(function(s,l){var f=_r(a,s),c=r.props[i].filter(function(y){var v=_2(r,t);return v(y,t)}),d=r.props[i].indexOf(c[c.length-1]),p=l===d;return f&&p}),u=n.indexOf(o[o.length-1]);return u}function Ni(e){"@babel/helpers - typeof";return Ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ni(e)}function R0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function D0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?R0(Object(r),!0).forEach(function(n){OO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OO(e,t,r){return t=T2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T2(e){var t=C2(e,"string");return Ni(t)=="symbol"?t:t+""}function C2(e,t){if(Ni(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ni(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var M2=["Webkit","Moz","O","ms"],j2=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=M2.reduce(function(a,o){return D0(D0({},a),{},OO({},o+n,r))},{});return i[t]=r,i};function on(e){"@babel/helpers - typeof";return on=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},on(e)}function eo(){return eo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eo.apply(this,arguments)}function N0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function uf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?N0(Object(r),!0).forEach(function(n){nt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function I2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L0(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,AO(n.key),n)}}function $2(e,t,r){return t&&L0(e.prototype,t),r&&L0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function k2(e,t,r){return t=to(t),R2(e,_O()?Reflect.construct(t,r||[],to(e).constructor):t.apply(e,r))}function R2(e,t){if(t&&(on(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D2(e)}function D2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _O(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_O=function(){return!!e})()}function to(e){return to=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},to(e)}function N2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pd(e,t)}function Pd(e,t){return Pd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Pd(e,t)}function nt(e,t,r){return t=AO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AO(e){var t=L2(e,"string");return on(t)=="symbol"?t:t+""}function L2(e,t){if(on(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(on(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var q2=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,u=t.travellerWidth;if(!r||!r.length)return{};var s=r.length,l=Qn().domain(oi(0,s)).range([a,a+o-u]),f=l.domain().map(function(c){return l(c)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(n),endX:l(i),scale:l,scaleValues:f}},q0=function(t){return t.changedTouches&&!!t.changedTouches.length},un=(function(e){function t(r){var n;return I2(this,t),n=k2(this,t,[r]),nt(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),nt(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),nt(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o==null||o({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),nt(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),nt(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),nt(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),nt(n,"handleSlideDragStart",function(i){var a=q0(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return N2(t,e),$2(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,s=u.gap,l=u.data,f=l.length-1,c=Math.min(i,a),d=Math.max(i,a),p=t.getIndexInRange(o,c),y=t.getIndexInRange(o,d);return{startIndex:p-p%s,endIndex:y===f?f:y-y%s}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,s=De(a[n],u,n);return se(o)?o(s,n):s}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,s=this.props,l=s.x,f=s.width,c=s.travellerWidth,d=s.startIndex,p=s.endIndex,y=s.onChange,v=n.pageX-a;v>0?v=Math.min(v,l+f-c-u,l+f-c-o):v<0&&(v=Math.max(v,l-o,l-u));var h=this.getIndex({startX:o+v,endX:u+v});(h.startIndex!==d||h.endIndex!==p)&&y&&y(h),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=q0(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,s=i.startX,l=this.state[o],f=this.props,c=f.x,d=f.width,p=f.travellerWidth,y=f.onChange,v=f.gap,h=f.data,b={startX:this.state.startX,endX:this.state.endX},w=n.pageX-a;w>0?w=Math.min(w,c+d-p-l):w<0&&(w=Math.max(w,c-l)),b[o]=l+w;var g=this.getIndex(b),S=g.startIndex,m=g.endIndex,x=function(){var A=h.length-1;return o==="startX"&&(u>s?S%v===0:m%v===0)||u<s&&m===A||o==="endX"&&(u>s?m%v===0:S%v===0)||u>s&&m===A};this.setState(nt(nt({},o,l+w),"brushMoveStartX",n.pageX),function(){y&&x()&&y(g)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,s=o.startX,l=o.endX,f=this.state[i],c=u.indexOf(f);if(c!==-1){var d=c+n;if(!(d===-1||d>=u.length)){var p=u[d];i==="startX"&&p>=l||i==="endX"&&p<=s||this.setState(nt({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.fill,l=n.stroke;return O.createElement("rect",{stroke:l,fill:s,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.data,l=n.children,f=n.padding,c=O.Children.only(l);return c?O.cloneElement(c,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,s=this.props,l=s.y,f=s.travellerWidth,c=s.height,d=s.traveller,p=s.ariaLabel,y=s.data,v=s.startIndex,h=s.endIndex,b=Math.max(n,this.props.x),w=uf(uf({},oe(this.props,!1)),{},{x:b,y:l,width:f,height:c}),g=p||"Min value: ".concat((a=y[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[h])===null||o===void 0?void 0:o.name);return O.createElement(pe,{tabIndex:0,role:"slider","aria-label":g,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(m){["ArrowLeft","ArrowRight"].includes(m.key)&&(m.preventDefault(),m.stopPropagation(),u.handleTravellerMoveKeyboard(m.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,w))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,s=a.stroke,l=a.travellerWidth,f=Math.min(n,i)+l,c=Math.max(Math.abs(i-n)-l,0);return O.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:f,y:o,width:c,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,s=n.travellerWidth,l=n.stroke,f=this.state,c=f.startX,d=f.endX,p=5,y={pointerEvents:"none",fill:l};return O.createElement(pe,{className:"recharts-brush-texts"},O.createElement(Ma,eo({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,d)-p,y:o+u/2},y),this.getTextOfTick(i)),O.createElement(Ma,eo({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,d)+s+p,y:o+u/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,s=n.y,l=n.width,f=n.height,c=n.alwaysShowText,d=this.state,p=d.startX,y=d.endX,v=d.isTextActive,h=d.isSlideMoving,b=d.isTravellerMoving,w=d.isTravellerFocused;if(!i||!i.length||!K(u)||!K(s)||!K(l)||!K(f)||l<=0||f<=0)return null;var g=ce("recharts-brush",a),S=O.Children.count(o)===1,m=j2("userSelect","none");return O.createElement(pe,{className:g,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(v||h||b||w||c)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,s=n.stroke,l=Math.floor(a+u/2)-1;return O.createElement(O.Fragment,null,O.createElement("rect",{x:i,y:a,width:o,height:u,fill:s,stroke:"none"}),O.createElement("line",{x1:i+1,y1:l,x2:i+o-1,y2:l,fill:"none",stroke:"#fff"}),O.createElement("line",{x1:i+1,y1:l+2,x2:i+o-1,y2:l+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return O.isValidElement(n)?a=O.cloneElement(n,i):se(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,s=n.travellerWidth,l=n.updateId,f=n.startIndex,c=n.endIndex;if(a!==i.prevData||l!==i.prevUpdateId)return uf({prevData:a,prevTravellerWidth:s,prevUpdateId:l,prevX:u,prevWidth:o},a&&a.length?q2({data:a,width:o,x:u,travellerWidth:s,startIndex:f,endIndex:c}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||s!==i.prevTravellerWidth)){i.scale.range([u,u+o-s]);var d=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:s,prevUpdateId:l,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var s=Math.floor((o+u)/2);n[s]>i?u=s:o=s}return i>=n[u]?u:o}}])})(O.PureComponent);nt(un,"displayName","Brush");nt(un,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var sf,B0;function B2(){if(B0)return sf;B0=1;var e=hp();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return sf=t,sf}var lf,F0;function F2(){if(F0)return lf;F0=1;var e=tw(),t=ir(),r=B2(),n=Ye(),i=Ki();function a(o,u,s){var l=n(o)?e:r;return s&&i(o,u,s)&&(u=void 0),l(o,t(u,3))}return lf=a,lf}var z2=F2();const U2=xe(z2);var $t=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},cf,z0;function W2(){if(z0)return cf;z0=1;var e=hw();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return cf=t,cf}var ff,U0;function H2(){if(U0)return ff;U0=1;var e=W2(),t=dw(),r=ir();function n(i,a){var o={};return a=r(a,3),t(i,function(u,s,l){e(o,s,a(u,s,l))}),o}return ff=n,ff}var G2=H2();const K2=xe(G2);var df,W0;function V2(){if(W0)return df;W0=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return df=e,df}var pf,H0;function Y2(){if(H0)return pf;H0=1;var e=hp();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return pf=t,pf}var hf,G0;function X2(){if(G0)return hf;G0=1;var e=V2(),t=Y2(),r=ir(),n=Ye(),i=Ki();function a(o,u,s){var l=n(o)?e:t;return s&&i(o,u,s)&&(u=void 0),l(o,r(u,3))}return hf=a,hf}var Z2=X2();const PO=xe(Z2);var J2=["x","y"];function sn(e){"@babel/helpers - typeof";return sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sn(e)}function Ed(){return Ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ed.apply(this,arguments)}function K0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Un(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?K0(Object(r),!0).forEach(function(n){Q2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Q2(e,t,r){return t=eL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eL(e){var t=tL(e,"string");return sn(t)=="symbol"?t:t+""}function tL(e,t){if(sn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rL(e,t){if(e==null)return{};var r=nL(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nL(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function iL(e,t){var r=e.x,n=e.y,i=rL(e,J2),a="".concat(r),o=parseInt(a,10),u="".concat(n),s=parseInt(u,10),l="".concat(t.height||i.height),f=parseInt(l,10),c="".concat(t.width||i.width),d=parseInt(c,10);return Un(Un(Un(Un(Un({},t),i),o?{x:o}:{}),s?{y:s}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function V0(e){return O.createElement(Ad,Ed({shapeType:"rectangle",propTransformer:iL,activeClassName:"recharts-active-bar"},e))}var aL=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=K(n)||wE(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?Je(!1,"minPointSize callback function received a value with type of ".concat(sn(n),". Currently only numbers or null/undefined are supported.")):Je()),r)}},oL=["value","background"],EO;function ln(e){"@babel/helpers - typeof";return ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ln(e)}function uL(e,t){if(e==null)return{};var r=sL(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sL(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ro(){return ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ro.apply(this,arguments)}function Y0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Y0(Object(r),!0).forEach(function(n){er(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X0(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,CO(n.key),n)}}function cL(e,t,r){return t&&X0(e.prototype,t),r&&X0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fL(e,t,r){return t=no(t),dL(e,TO()?Reflect.construct(t,r||[],no(e).constructor):t.apply(e,r))}function dL(e,t){if(t&&(ln(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pL(e)}function pL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TO=function(){return!!e})()}function no(e){return no=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},no(e)}function hL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Td(e,t)}function Td(e,t){return Td=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Td(e,t)}function er(e,t,r){return t=CO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CO(e){var t=vL(e,"string");return ln(t)=="symbol"?t:t+""}function vL(e,t){if(ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jn=(function(e){function t(){var r;lL(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=fL(this,t,[].concat(i)),er(r,"state",{isAnimationFinished:!1}),er(r,"id",Cr("recharts-bar-")),er(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),er(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return hL(t,e),cL(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,s=a.activeIndex,l=a.activeBar,f=oe(this.props,!1);return n&&n.map(function(c,d){var p=d===s,y=p?l:o,v=je(je(je({},f),c),{},{isActive:p,option:y,index:d,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return O.createElement(pe,ro({className:"recharts-bar-rectangle"},ui(i.props,c,d),{key:"rectangle-".concat(c==null?void 0:c.x,"-").concat(c==null?void 0:c.y,"-").concat(c==null?void 0:c.value,"-").concat(d)}),O.createElement(V0,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,f=i.animationEasing,c=i.animationId,d=this.state.prevData;return O.createElement(St,{begin:s,duration:l,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var y=p.t,v=a.map(function(h,b){var w=d&&d[b];if(w){var g=Ce(w.x,h.x),S=Ce(w.y,h.y),m=Ce(w.width,h.width),x=Ce(w.height,h.height);return je(je({},h),{},{x:g(y),y:S(y),width:m(y),height:x(y)})}if(o==="horizontal"){var _=Ce(0,h.height),A=_(y);return je(je({},h),{},{y:h.y+h.height-A,height:A})}var E=Ce(0,h.width),M=E(y);return je(je({},h),{},{width:M})});return O.createElement(pe,null,n.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!_r(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,u=i.activeIndex,s=oe(this.props.background,!1);return a.map(function(l,f){l.value;var c=l.background,d=uL(l,oL);if(!c)return null;var p=je(je(je(je(je({},d),{},{fill:"#eee"},c),s),ui(n.props,l,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return O.createElement(V0,ro({key:"background-bar-".concat(f),option:n.props.background,isActive:f===u},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,u=a.xAxis,s=a.yAxis,l=a.layout,f=a.children,c=Qe(f,Mn);if(!c)return null;var d=l==="vertical"?o[0].height/2:o[0].width/2,p=function(h,b){var w=Array.isArray(h.value)?h.value[1]:h.value;return{x:h.x,y:h.y,value:w,errorVal:De(h,b)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement(pe,y,c.map(function(v){return O.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:u,yAxis:s,layout:l,offset:d,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,s=n.yAxis,l=n.left,f=n.top,c=n.width,d=n.height,p=n.isAnimationActive,y=n.background,v=n.id;if(i||!a||!a.length)return null;var h=this.state.isAnimationFinished,b=ce("recharts-bar",o),w=u&&u.allowDataOverflow,g=s&&s.allowDataOverflow,S=w||g,m=ae(v)?this.id:v;return O.createElement(pe,{className:b},w||g?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(m)},O.createElement("rect",{x:w?l:l-c/2,y:g?f:f-d/2,width:w?c:c*2,height:g?d:d*2}))):null,O.createElement(pe,{className:"recharts-bar-rectangles",clipPath:S?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(S,m),(!p||h)&&It.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(O.PureComponent);EO=jn;er(jn,"displayName","Bar");er(jn,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ar.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});er(jn,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,u=e.xAxisTicks,s=e.yAxisTicks,l=e.stackedData,f=e.dataStartIndex,c=e.displayedData,d=e.offset,p=$k(n,r);if(!p)return null;var y=t.layout,v=r.type.defaultProps,h=v!==void 0?je(je({},v),r.props):r.props,b=h.dataKey,w=h.children,g=h.minPointSize,S=y==="horizontal"?o:a,m=l?S.scale.domain():null,x=Fk({numericAxis:S}),_=Qe(w,Sp),A=c.map(function(E,M){var P,T,j,$,k,R;l?P=kk(l[f+M],m):(P=De(E,b),Array.isArray(P)||(P=[x,P]));var D=aL(g,EO.defaultProps.minPointSize)(P[1],M);if(y==="horizontal"){var N,z=[o.scale(P[0]),o.scale(P[1])],I=z[0],L=z[1];T=Mb({axis:a,ticks:u,bandSize:i,offset:p.offset,entry:E,index:M}),j=(N=L??I)!==null&&N!==void 0?N:void 0,$=p.size;var F=I-L;if(k=Number.isNaN(F)?0:F,R={x:T,y:o.y,width:$,height:o.height},Math.abs(D)>0&&Math.abs(k)<Math.abs(D)){var W=wt(k||D)*(Math.abs(D)-Math.abs(k));j-=W,k+=W}}else{var Y=[a.scale(P[0]),a.scale(P[1])],Q=Y[0],ee=Y[1];if(T=Q,j=Mb({axis:o,ticks:s,bandSize:i,offset:p.offset,entry:E,index:M}),$=ee-Q,k=p.size,R={x:a.x,y:j,width:a.width,height:k},Math.abs(D)>0&&Math.abs($)<Math.abs(D)){var ne=wt($||D)*(Math.abs(D)-Math.abs($));$+=ne}}return je(je(je({},E),{},{x:T,y:j,width:$,height:k,value:l?P:P[1],payload:E,background:R},_&&_[M]&&_[M].props),{},{tooltipPayload:[cO(r,E)],tooltipPosition:{x:T+$/2,y:j+k/2}})});return je({data:A,layout:y},d)});function Li(e){"@babel/helpers - typeof";return Li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Li(e)}function yL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Z0(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,MO(n.key),n)}}function mL(e,t,r){return t&&Z0(e.prototype,t),r&&Z0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function J0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?J0(Object(r),!0).forEach(function(n){Uo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Uo(e,t,r){return t=MO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MO(e){var t=gL(e,"string");return Li(t)=="symbol"?t:t+""}function gL(e,t){if(Li(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Li(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bL=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.layout,l=t.children,f=Object.keys(r),c={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom},d=!!it(l,jn);return f.reduce(function(p,y){var v=r[y],h=v.orientation,b=v.domain,w=v.padding,g=w===void 0?{}:w,S=v.mirror,m=v.reversed,x="".concat(h).concat(S?"Mirror":""),_,A,E,M,P;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var T=b[1]-b[0],j=1/0,$=v.categoricalDomain.sort(AE);if($.forEach(function(Y,Q){Q>0&&(j=Math.min((Y||0)-($[Q-1]||0),j))}),Number.isFinite(j)){var k=j/T,R=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(_=k*R/2),v.padding==="no-gap"){var D=Or(t.barCategoryGap,k*R),N=k*R/2;_=N-D-(N-D)/R*D}}}i==="xAxis"?A=[n.left+(g.left||0)+(_||0),n.left+n.width-(g.right||0)-(_||0)]:i==="yAxis"?A=s==="horizontal"?[n.top+n.height-(g.bottom||0),n.top+(g.top||0)]:[n.top+(g.top||0)+(_||0),n.top+n.height-(g.bottom||0)-(_||0)]:A=v.range,m&&(A=[A[1],A[0]]);var z=jk(v,a,d),I=z.scale,L=z.realScaleType;I.domain(b).range(A),Ik(I);var F=Bk(I,gt(gt({},v),{},{realScaleType:L}));i==="xAxis"?(P=h==="top"&&!S||h==="bottom"&&S,E=n.left,M=c[x]-P*v.height):i==="yAxis"&&(P=h==="left"&&!S||h==="right"&&S,E=c[x]-P*v.width,M=n.top);var W=gt(gt(gt({},v),F),{},{realScaleType:L,x:E,y:M,scale:I,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return W.bandSize=Wa(W,F),!v.hide&&i==="xAxis"?c[x]+=(P?-1:1)*W.height:v.hide||(c[x]+=(P?-1:1)*W.width),gt(gt({},p),{},Uo({},y,W))},{})},jO=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},xL=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return jO({x:r,y:n},{x:i,y:a})},IO=(function(){function e(t){yL(this,e),this.scale=t}return mL(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(r)+u}default:return this.scale(r)}if(i){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+s}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();Uo(IO,"EPS",1e-4);var Xp=function(t){var r=Object.keys(t).reduce(function(n,i){return gt(gt({},n),{},Uo({},i,IO.create(t[i])))},{});return gt(gt({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return K2(i,function(s,l){return r[l].apply(s,{bandAware:o,position:u})})},isInRange:function(i){return PO(i,function(a,o){return r[o].isInRange(a)})}})};function wL(e){return(e%180+180)%180}var SL=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=wL(i),o=a*Math.PI/180,u=Math.atan(n/r),s=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(s)},vf,Q0;function OL(){if(Q0)return vf;Q0=1;var e=ir(),t=Hi(),r=Gi();function n(i){return function(a,o,u){var s=Object(a);if(!t(a)){var l=e(o,3);a=r(a),o=function(c){return l(s[c],c,s)}}var f=i(a,o,u);return f>-1?s[l?a[f]:f]:void 0}}return vf=n,vf}var yf,ex;function _L(){if(ex)return yf;ex=1;var e=Xw(),t=ir(),r=tp(),n=Math.max;function i(a,o,u){var s=a==null?0:a.length;if(!s)return-1;var l=u==null?0:r(u);return l<0&&(l=n(s+l,0)),e(a,t(o,3),l)}return yf=i,yf}var mf,tx;function AL(){if(tx)return mf;tx=1;var e=OL(),t=_L(),r=e(t);return mf=r,mf}var PL=AL();const EL=xe(PL);var TL=Zx();const CL=xe(TL);var ML=CL(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")});function io(e){"@babel/helpers - typeof";return io=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},io(e)}var Zp=O.createContext(void 0),Jp=O.createContext(void 0),$O=O.createContext(void 0),kO=O.createContext({}),RO=O.createContext(void 0),DO=O.createContext(0),NO=O.createContext(0),rx=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,s=t.width,l=t.height,f=ML(a);return O.createElement(Zp.Provider,{value:n},O.createElement(Jp.Provider,{value:i},O.createElement(kO.Provider,{value:a},O.createElement($O.Provider,{value:f},O.createElement(RO.Provider,{value:o},O.createElement(DO.Provider,{value:l},O.createElement(NO.Provider,{value:s},u)))))))},jL=function(){return O.useContext(RO)};function LO(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var qO=function(t){var r=O.useContext(Zp);r==null&&(process.env.NODE_ENV!=="production"?Je(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):Je());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?Je(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(io(t),"]. ").concat(LO(r))):Je()),n},IL=function(){var t=O.useContext(Zp);return Jt(t)},$L=function(){var t=O.useContext(Jp),r=EL(t,function(n){return PO(n.domain,Number.isFinite)});return r||Jt(t)},BO=function(t){var r=O.useContext(Jp);r==null&&(process.env.NODE_ENV!=="production"?Je(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):Je());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?Je(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(io(t),"]. ").concat(LO(r))):Je()),n},kL=function(){var t=O.useContext($O);return t},RL=function(){return O.useContext(kO)},Qp=function(){return O.useContext(NO)},eh=function(){return O.useContext(DO)};function cn(e){"@babel/helpers - typeof";return cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cn(e)}function DL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zO(n.key),n)}}function LL(e,t,r){return t&&NL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qL(e,t,r){return t=ao(t),BL(e,FO()?Reflect.construct(t,r||[],ao(e).constructor):t.apply(e,r))}function BL(e,t){if(t&&(cn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return FL(e)}function FL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FO=function(){return!!e})()}function ao(e){return ao=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ao(e)}function zL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cd(e,t)}function Cd(e,t){return Cd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Cd(e,t)}function nx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ix(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nx(Object(r),!0).forEach(function(n){th(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function th(e,t,r){return t=zO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zO(e){var t=UL(e,"string");return cn(t)=="symbol"?t:t+""}function UL(e,t){if(cn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function WL(e,t){return VL(e)||KL(e,t)||GL(e,t)||HL()}function HL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
118
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GL(e,t){if(e){if(typeof e=="string")return ax(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ax(e,t)}}function ax(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function KL(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){l=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function VL(e){if(Array.isArray(e))return e}function Md(){return Md=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Md.apply(this,arguments)}var YL=function(t,r){var n;return O.isValidElement(t)?n=O.cloneElement(t,r):se(t)?n=t(r):n=O.createElement("line",Md({},r,{className:"recharts-reference-line-line"})),n},XL=function(t,r,n,i,a,o,u,s,l){var f=a.x,c=a.y,d=a.width,p=a.height;if(n){var y=l.y,v=t.y.apply(y,{position:o});if($t(l,"discard")&&!t.y.isInRange(v))return null;var h=[{x:f+d,y:v},{x:f,y:v}];return s==="left"?h.reverse():h}if(r){var b=l.x,w=t.x.apply(b,{position:o});if($t(l,"discard")&&!t.x.isInRange(w))return null;var g=[{x:w,y:c+p},{x:w,y:c}];return u==="top"?g.reverse():g}if(i){var S=l.segment,m=S.map(function(x){return t.apply(x,{position:o})});return $t(l,"discard")&&U2(m,function(x){return!t.isInRange(x)})?null:m}return null};function ZL(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,u=e.className,s=e.alwaysShow,l=jL(),f=qO(i),c=BO(a),d=kL();if(!l||!d)return null;zt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=Xp({x:f.scale,y:c.scale}),y=Re(t),v=Re(r),h=n&&n.length===2,b=XL(p,y,v,h,d,e.position,f.orientation,c.orientation,e);if(!b)return null;var w=WL(b,2),g=w[0],S=g.x,m=g.y,x=w[1],_=x.x,A=x.y,E=$t(e,"hidden")?"url(#".concat(l,")"):void 0,M=ix(ix({clipPath:E},oe(e,!0)),{},{x1:S,y1:m,x2:_,y2:A});return O.createElement(pe,{className:ce("recharts-reference-line",u)},YL(o,M),He.renderCallByParent(e,xL({x1:S,y1:m,x2:_,y2:A})))}var Wo=(function(e){function t(){return DL(this,t),qL(this,t,arguments)}return zL(t,e),LL(t,[{key:"render",value:function(){return O.createElement(ZL,this.props)}}])})(O.Component);th(Wo,"displayName","ReferenceLine");th(Wo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function jd(){return jd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jd.apply(this,arguments)}function fn(e){"@babel/helpers - typeof";return fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fn(e)}function ox(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ux(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ox(Object(r),!0).forEach(function(n){Ho(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ox(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,WO(n.key),n)}}function eq(e,t,r){return t&&QL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tq(e,t,r){return t=oo(t),rq(e,UO()?Reflect.construct(t,r||[],oo(e).constructor):t.apply(e,r))}function rq(e,t){if(t&&(fn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nq(e)}function nq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UO=function(){return!!e})()}function oo(e){return oo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oo(e)}function iq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Id(e,t)}function Id(e,t){return Id=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Id(e,t)}function Ho(e,t,r){return t=WO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WO(e){var t=aq(e,"string");return fn(t)=="symbol"?t:t+""}function aq(e,t){if(fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var oq=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=Xp({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return $t(t,"discard")&&!o.isInRange(u)?null:u},Go=(function(e){function t(){return JL(this,t),tq(this,t,arguments)}return iq(t,e),eq(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,s=n.clipPathId,l=Re(i),f=Re(a);if(zt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!l||!f)return null;var c=oq(this.props);if(!c)return null;var d=c.x,p=c.y,y=this.props,v=y.shape,h=y.className,b=$t(this.props,"hidden")?"url(#".concat(s,")"):void 0,w=ux(ux({clipPath:b},oe(this.props,!0)),{},{cx:d,cy:p});return O.createElement(pe,{className:ce("recharts-reference-dot",h)},t.renderDot(v,w),He.renderCallByParent(this.props,{x:d-o,y:p-o,width:2*o,height:2*o}))}}])})(O.Component);Ho(Go,"displayName","ReferenceDot");Ho(Go,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Ho(Go,"renderDot",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):se(e)?r=e(t):r=O.createElement(Bo,jd({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function $d(){return $d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$d.apply(this,arguments)}function dn(e){"@babel/helpers - typeof";return dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dn(e)}function sx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sx(Object(r),!0).forEach(function(n){Ko(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sq(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,GO(n.key),n)}}function lq(e,t,r){return t&&sq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cq(e,t,r){return t=uo(t),fq(e,HO()?Reflect.construct(t,r||[],uo(e).constructor):t.apply(e,r))}function fq(e,t){if(t&&(dn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dq(e)}function dq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(HO=function(){return!!e})()}function uo(e){return uo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},uo(e)}function pq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kd(e,t)}function kd(e,t){return kd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kd(e,t)}function Ko(e,t,r){return t=GO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GO(e){var t=hq(e,"string");return dn(t)=="symbol"?t:t+""}function hq(e,t){if(dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vq=function(t,r,n,i,a){var o=a.x1,u=a.x2,s=a.y1,l=a.y2,f=a.xAxis,c=a.yAxis;if(!f||!c)return null;var d=Xp({x:f.scale,y:c.scale}),p={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(s,{position:"start"}):d.y.rangeMin},y={x:r?d.x.apply(u,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(l,{position:"end"}):d.y.rangeMax};return $t(a,"discard")&&(!d.isInRange(p)||!d.isInRange(y))?null:jO(p,y)},Vo=(function(e){function t(){return uq(this,t),cq(this,t,arguments)}return pq(t,e),lq(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,s=n.className,l=n.alwaysShow,f=n.clipPathId;zt(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=Re(i),d=Re(a),p=Re(o),y=Re(u),v=this.props.shape;if(!c&&!d&&!p&&!y&&!v)return null;var h=vq(c,d,p,y,this.props);if(!h&&!v)return null;var b=$t(this.props,"hidden")?"url(#".concat(f,")"):void 0;return O.createElement(pe,{className:ce("recharts-reference-area",s)},t.renderRect(v,lx(lx({clipPath:b},oe(this.props,!0)),h)),He.renderCallByParent(this.props,h))}}])})(O.Component);Ko(Vo,"displayName","ReferenceArea");Ko(Vo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Ko(Vo,"renderRect",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):se(e)?r=e(t):r=O.createElement(Yp,$d({},t,{className:"recharts-reference-area-rect"})),r});function KO(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function yq(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return SL(n,r)}function mq(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,u=e.height;return t===1?{start:n?i:a,end:n?i+o:a+u}:{start:n?i+o:a+u,end:n?i:a}}function so(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function gq(e,t){return KO(e,t+1)}function bq(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,s=0,l=1,f=o,c=function(){var y=n==null?void 0:n[s];if(y===void 0)return{v:KO(n,l)};var v=s,h,b=function(){return h===void 0&&(h=r(y,v)),h},w=y.coordinate,g=s===0||so(e,w,b,f,u);g||(s=0,f=o,l+=1),g&&(f=w+e*(b()/2+i),s+=l)},d;l<=a.length;)if(d=c(),d)return d.v;return[]}function qi(e){"@babel/helpers - typeof";return qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qi(e)}function cx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function We(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cx(Object(r),!0).forEach(function(n){xq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xq(e,t,r){return t=wq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wq(e){var t=Sq(e,"string");return qi(t)=="symbol"?t:t+""}function Sq(e,t){if(qi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Oq(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,s=t.end,l=function(d){var p=a[d],y,v=function(){return y===void 0&&(y=r(p,d)),y};if(d===o-1){var h=e*(p.coordinate+e*v()/2-s);a[d]=p=We(We({},p),{},{tickCoord:h>0?p.coordinate-h*e:p.coordinate})}else a[d]=p=We(We({},p),{},{tickCoord:p.coordinate});var b=so(e,p.tickCoord,v,u,s);b&&(s=p.tickCoord-e*(v()/2+i),a[d]=We(We({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)l(f);return a}function _q(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,s=t.start,l=t.end;if(a){var f=n[u-1],c=r(f,u-1),d=e*(f.coordinate+e*c/2-l);o[u-1]=f=We(We({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var p=so(e,f.tickCoord,function(){return c},s,l);p&&(l=f.tickCoord-e*(c/2+i),o[u-1]=We(We({},f),{},{isShow:!0}))}for(var y=a?u-1:u,v=function(w){var g=o[w],S,m=function(){return S===void 0&&(S=r(g,w)),S};if(w===0){var x=e*(g.coordinate-e*m()/2-s);o[w]=g=We(We({},g),{},{tickCoord:x<0?g.coordinate-x*e:g.coordinate})}else o[w]=g=We(We({},g),{},{tickCoord:g.coordinate});var _=so(e,g.tickCoord,m,s,l);_&&(s=g.tickCoord+e*(m()/2+i),o[w]=We(We({},g),{},{isShow:!0}))},h=0;h<y;h++)v(h);return o}function rh(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,s=e.interval,l=e.tickFormatter,f=e.unit,c=e.angle;if(!i||!i.length||!n)return[];if(K(s)||ar.isSsr)return gq(i,typeof s=="number"&&K(s)?s:0);var d=[],p=u==="top"||u==="bottom"?"width":"height",y=f&&p==="width"?Jn(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(g,S){var m=se(l)?l(g.value,S):g.value;return p==="width"?yq(Jn(m,{fontSize:t,letterSpacing:r}),y,c):Jn(m,{fontSize:t,letterSpacing:r})[p]},h=i.length>=2?wt(i[1].coordinate-i[0].coordinate):1,b=mq(a,h,p);return s==="equidistantPreserveStart"?bq(h,b,v,i,o):(s==="preserveStart"||s==="preserveStartEnd"?d=_q(h,b,v,i,o,s==="preserveStartEnd"):d=Oq(h,b,v,i,o),d.filter(function(w){return w.isShow}))}var Aq=["viewBox"],Pq=["viewBox"],Eq=["ticks"];function pn(e){"@babel/helpers - typeof";return pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pn(e)}function Br(){return Br=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Br.apply(this,arguments)}function fx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fx(Object(r),!0).forEach(function(n){nh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gf(e,t){if(e==null)return{};var r=Tq(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Tq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Cq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dx(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,YO(n.key),n)}}function Mq(e,t,r){return t&&dx(e.prototype,t),r&&dx(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function jq(e,t,r){return t=lo(t),Iq(e,VO()?Reflect.construct(t,r||[],lo(e).constructor):t.apply(e,r))}function Iq(e,t){if(t&&(pn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $q(e)}function $q(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VO=function(){return!!e})()}function lo(e){return lo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},lo(e)}function kq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rd(e,t)}function Rd(e,t){return Rd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Rd(e,t)}function nh(e,t,r){return t=YO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YO(e){var t=Rq(e,"string");return pn(t)=="symbol"?t:t+""}function Rq(e,t){if(pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var In=(function(e){function t(r){var n;return Cq(this,t),n=jq(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return kq(t,e),Mq(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=gf(n,Aq),u=this.props,s=u.viewBox,l=gf(u,Pq);return!Hr(a,s)||!Hr(o,l)||!Hr(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,u=i.width,s=i.height,l=i.orientation,f=i.tickSize,c=i.mirror,d=i.tickMargin,p,y,v,h,b,w,g=c?-1:1,S=n.tickSize||f,m=K(n.tickCoord)?n.tickCoord:n.coordinate;switch(l){case"top":p=y=n.coordinate,h=o+ +!c*s,v=h-g*S,w=v-g*d,b=m;break;case"left":v=h=n.coordinate,y=a+ +!c*u,p=y-g*S,b=p-g*d,w=m;break;case"right":v=h=n.coordinate,y=a+ +c*u,p=y+g*S,b=p+g*d,w=m;break;default:p=y=n.coordinate,h=o+ +c*s,v=h+g*S,w=v+g*d,b=m;break}return{line:{x1:p,y1:v,x2:y,y2:h},tick:{x:b,y:w}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.orientation,l=n.mirror,f=n.axisLine,c=$e($e($e({},oe(this.props,!1)),oe(f,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var d=+(s==="top"&&!l||s==="bottom"&&l);c=$e($e({},c),{},{x1:i,y1:a+d*u,x2:i+o,y2:a+d*u})}else{var p=+(s==="left"&&!l||s==="right"&&l);c=$e($e({},c),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+u})}return O.createElement("line",Br({},c,{className:ce("recharts-cartesian-axis-line",pt(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,s=u.tickLine,l=u.stroke,f=u.tick,c=u.tickFormatter,d=u.unit,p=rh($e($e({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),h=oe(this.props,!1),b=oe(f,!1),w=$e($e({},h),{},{fill:"none"},oe(s,!1)),g=p.map(function(S,m){var x=o.getTickLineCoord(S),_=x.line,A=x.tick,E=$e($e($e($e({textAnchor:y,verticalAnchor:v},h),{},{stroke:"none",fill:l},b),A),{},{index:m,payload:S,visibleTicksCount:p.length,tickFormatter:c});return O.createElement(pe,Br({className:"recharts-cartesian-axis-tick",key:"tick-".concat(S.value,"-").concat(S.coordinate,"-").concat(S.tickCoord)},ui(o.props,S,m)),s&&O.createElement("line",Br({},w,_,{className:ce("recharts-cartesian-axis-tick-line",pt(s,"className"))})),f&&t.renderTickItem(f,E,"".concat(se(c)?c(S.value,m):S.value).concat(d||"")))});return O.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,s=i.ticksGenerator,l=i.className,f=i.hide;if(f)return null;var c=this.props,d=c.ticks,p=gf(c,Eq),y=d;return se(s)&&(y=d&&d.length>0?s(this.props):s(p)),o<=0||u<=0||!y||!y.length?null:O.createElement(pe,{className:ce("recharts-cartesian-axis",l),ref:function(h){n.layerReference=h}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),He.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=ce(i.className,"recharts-cartesian-axis-tick-value");return O.isValidElement(n)?o=O.cloneElement(n,$e($e({},i),{},{className:u})):se(n)?o=n($e($e({},i),{},{className:u})):o=O.createElement(Ma,Br({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(O.Component);nh(In,"displayName","CartesianAxis");nh(In,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Dq=["x1","y1","x2","y2","key"],Nq=["offset"];function Pr(e){"@babel/helpers - typeof";return Pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pr(e)}function px(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?px(Object(r),!0).forEach(function(n){Lq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):px(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lq(e,t,r){return t=qq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qq(e){var t=Bq(e,"string");return Pr(t)=="symbol"?t:t+""}function Bq(e,t){if(Pr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yr(){return yr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yr.apply(this,arguments)}function hx(e,t){if(e==null)return{};var r=Fq(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Fq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var zq=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,u=t.height,s=t.ry;return O.createElement("rect",{x:i,y:a,ry:s,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function XO(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(se(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,s=hx(t,Dq),l=oe(s,!1);l.offset;var f=hx(l,Nq);r=O.createElement("line",yr({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function Uq(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,s){var l=Ge(Ge({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(s),index:s});return XO(i,l)});return O.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function Wq(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,s){var l=Ge(Ge({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(s),index:s});return XO(i,l)});return O.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function Hq(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,s=e.horizontal,l=s===void 0?!0:s;if(!l||!t||!t.length)return null;var f=u.map(function(d){return Math.round(d+i-i)}).sort(function(d,p){return d-p});i!==f[0]&&f.unshift(0);var c=f.map(function(d,p){var y=!f[p+1],v=y?i+o-d:f[p+1]-d;if(v<=0)return null;var h=p%t.length;return O.createElement("rect",{key:"react-".concat(p),y:d,x:n,height:v,width:a,stroke:"none",fill:t[h],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},c)}function Gq(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,u=e.width,s=e.height,l=e.verticalPoints;if(!r||!n||!n.length)return null;var f=l.map(function(d){return Math.round(d+a-a)}).sort(function(d,p){return d-p});a!==f[0]&&f.unshift(0);var c=f.map(function(d,p){var y=!f[p+1],v=y?a+u-d:f[p+1]-d;if(v<=0)return null;var h=p%n.length;return O.createElement("rect",{key:"react-".concat(p),x:d,y:o,width:v,height:s,stroke:"none",fill:n[h],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},c)}var Kq=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return sO(rh(Ge(Ge(Ge({},In.defaultProps),n),{},{ticks:Bt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},Vq=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return sO(rh(Ge(Ge(Ge({},In.defaultProps),n),{},{ticks:Bt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},Dr={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function ZO(e){var t,r,n,i,a,o,u=Qp(),s=eh(),l=RL(),f=Ge(Ge({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Dr.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Dr.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Dr.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Dr.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Dr.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Dr.verticalFill,x:K(e.x)?e.x:l.left,y:K(e.y)?e.y:l.top,width:K(e.width)?e.width:l.width,height:K(e.height)?e.height:l.height}),c=f.x,d=f.y,p=f.width,y=f.height,v=f.syncWithTicks,h=f.horizontalValues,b=f.verticalValues,w=IL(),g=$L();if(!K(p)||p<=0||!K(y)||y<=0||!K(c)||c!==+c||!K(d)||d!==+d)return null;var S=f.verticalCoordinatesGenerator||Kq,m=f.horizontalCoordinatesGenerator||Vq,x=f.horizontalPoints,_=f.verticalPoints;if((!x||!x.length)&&se(m)){var A=h&&h.length,E=m({yAxis:g?Ge(Ge({},g),{},{ticks:A?h:g.ticks}):void 0,width:u,height:s,offset:l},A?!0:v);zt(Array.isArray(E),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Pr(E),"]")),Array.isArray(E)&&(x=E)}if((!_||!_.length)&&se(S)){var M=b&&b.length,P=S({xAxis:w?Ge(Ge({},w),{},{ticks:M?b:w.ticks}):void 0,width:u,height:s,offset:l},M?!0:v);zt(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Pr(P),"]")),Array.isArray(P)&&(_=P)}return O.createElement("g",{className:"recharts-cartesian-grid"},O.createElement(zq,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),O.createElement(Uq,yr({},f,{offset:l,horizontalPoints:x,xAxis:w,yAxis:g})),O.createElement(Wq,yr({},f,{offset:l,verticalPoints:_,xAxis:w,yAxis:g})),O.createElement(Hq,yr({},f,{horizontalPoints:x})),O.createElement(Gq,yr({},f,{verticalPoints:_})))}ZO.displayName="CartesianGrid";var Yq=["type","layout","connectNulls","ref"],Xq=["key"];function hn(e){"@babel/helpers - typeof";return hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hn(e)}function vx(e,t){if(e==null)return{};var r=Zq(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Zq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ri(){return ri=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ri.apply(this,arguments)}function yx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yx(Object(r),!0).forEach(function(n){bt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nr(e){return tB(e)||eB(e)||Qq(e)||Jq()}function Jq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
119
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qq(e,t){if(e){if(typeof e=="string")return Dd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dd(e,t)}}function eB(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tB(e){if(Array.isArray(e))return Dd(e)}function Dd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function rB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mx(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,QO(n.key),n)}}function nB(e,t,r){return t&&mx(e.prototype,t),r&&mx(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function iB(e,t,r){return t=co(t),aB(e,JO()?Reflect.construct(t,r||[],co(e).constructor):t.apply(e,r))}function aB(e,t){if(t&&(hn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oB(e)}function oB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JO=function(){return!!e})()}function co(e){return co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},co(e)}function uB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nd(e,t)}function Nd(e,t){return Nd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Nd(e,t)}function bt(e,t,r){return t=QO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QO(e){var t=sB(e,"string");return hn(t)=="symbol"?t:t+""}function sB(e,t){if(hn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yo=(function(e){function t(){var r;rB(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=iB(this,t,[].concat(i)),bt(r,"state",{isAnimationFinished:!0,totalLength:0}),bt(r,"generateSimpleStrokeDasharray",function(o,u){return"".concat(u,"px ").concat(o-u,"px")}),bt(r,"getStrokeDasharray",function(o,u,s){var l=s.reduce(function(b,w){return b+w});if(!l)return r.generateSimpleStrokeDasharray(u,o);for(var f=Math.floor(o/l),c=o%l,d=u-o,p=[],y=0,v=0;y<s.length;v+=s[y],++y)if(v+s[y]>c){p=[].concat(Nr(s.slice(0,y)),[c-v]);break}var h=p.length%2===0?[0,d]:[d];return[].concat(Nr(t.repeat(s,f)),Nr(p),h).map(function(b){return"".concat(b,"px")}).join(", ")}),bt(r,"id",Cr("recharts-line-")),bt(r,"pathRef",function(o){r.mainCurve=o}),bt(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),bt(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return uB(t,e),nB(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,u=a.xAxis,s=a.yAxis,l=a.layout,f=a.children,c=Qe(f,Mn);if(!c)return null;var d=function(v,h){return{x:v.x,y:v.y,value:v.value,errorVal:De(v.payload,h)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement(pe,p,c.map(function(y){return O.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:u,yAxis:s,layout:l,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var u=this.props,s=u.dot,l=u.points,f=u.dataKey,c=oe(this.props,!1),d=oe(s,!0),p=l.map(function(v,h){var b=rt(rt(rt({key:"dot-".concat(h),r:3},c),d),{},{index:h,cx:v.x,cy:v.y,value:v.value,dataKey:f,payload:v.payload,points:l});return t.renderDotItem(s,b)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(pe,ri({className:"recharts-line-dots",key:"dots"},y),p)}},{key:"renderCurveStatically",value:function(n,i,a,o){var u=this.props,s=u.type,l=u.layout,f=u.connectNulls;u.ref;var c=vx(u,Yq),d=rt(rt(rt({},oe(c,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:s,layout:l,connectNulls:f});return O.createElement(wr,ri({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,s=o.strokeDasharray,l=o.isAnimationActive,f=o.animationBegin,c=o.animationDuration,d=o.animationEasing,p=o.animationId,y=o.animateNewValues,v=o.width,h=o.height,b=this.state,w=b.prevPoints,g=b.totalLength;return O.createElement(St,{begin:f,duration:c,isActive:l,easing:d,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(S){var m=S.t;if(w){var x=w.length/u.length,_=u.map(function(T,j){var $=Math.floor(j*x);if(w[$]){var k=w[$],R=Ce(k.x,T.x),D=Ce(k.y,T.y);return rt(rt({},T),{},{x:R(m),y:D(m)})}if(y){var N=Ce(v*2,T.x),z=Ce(h/2,T.y);return rt(rt({},T),{},{x:N(m),y:z(m)})}return rt(rt({},T),{},{x:T.x,y:T.y})});return a.renderCurveStatically(_,n,i)}var A=Ce(0,g),E=A(m),M;if(s){var P="".concat(s).split(/[,\s]+/gim).map(function(T){return parseFloat(T)});M=a.getStrokeDasharray(E,g,P)}else M=a.generateSimpleStrokeDasharray(g,E);return a.renderCurveStatically(u,n,i,{strokeDasharray:M})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,u=a.isAnimationActive,s=this.state,l=s.prevPoints,f=s.totalLength;return u&&o&&o.length&&(!l&&f>0||!_r(l,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,s=i.className,l=i.xAxis,f=i.yAxis,c=i.top,d=i.left,p=i.width,y=i.height,v=i.isAnimationActive,h=i.id;if(a||!u||!u.length)return null;var b=this.state.isAnimationFinished,w=u.length===1,g=ce("recharts-line",s),S=l&&l.allowDataOverflow,m=f&&f.allowDataOverflow,x=S||m,_=ae(h)?this.id:h,A=(n=oe(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},E=A.r,M=E===void 0?3:E,P=A.strokeWidth,T=P===void 0?2:P,j=Cw(o)?o:{},$=j.clipDot,k=$===void 0?!0:$,R=M*2+T;return O.createElement(pe,{className:g},S||m?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(_)},O.createElement("rect",{x:S?d:d-p/2,y:m?c:c-y/2,width:S?p:p*2,height:m?y:y*2})),!k&&O.createElement("clipPath",{id:"clipPath-dots-".concat(_)},O.createElement("rect",{x:d-R/2,y:c-R/2,width:p+R,height:y+R}))):null,!w&&this.renderCurve(x,_),this.renderErrorBar(x,_),(w||o)&&this.renderDots(x,k,_),(!v||b)&&It.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(Nr(n),[0]):n,o=[],u=0;u<i;++u)o=[].concat(Nr(o),Nr(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(O.isValidElement(n))a=O.cloneElement(n,i);else if(se(n))a=n(i);else{var o=i.key,u=vx(i,Xq),s=ce("recharts-line-dot",typeof n!="boolean"?n.className:"");a=O.createElement(Bo,ri({key:o},u,{className:s}))}return a}}])})(O.PureComponent);bt(Yo,"displayName","Line");bt(Yo,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ar.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});bt(Yo,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,u=e.bandSize,s=e.displayedData,l=e.offset,f=t.layout,c=s.map(function(d,p){var y=De(d,o);return f==="horizontal"?{x:nn({axis:r,ticks:i,bandSize:u,entry:d,index:p}),y:ae(y)?null:n.scale(y),value:y,payload:d}:{x:ae(y)?null:r.scale(y),y:nn({axis:n,ticks:a,bandSize:u,entry:d,index:p}),value:y,payload:d}});return rt({points:c,layout:f},l)});var lB=["layout","type","stroke","connectNulls","isRange","ref"],cB=["key"],e1;function vn(e){"@babel/helpers - typeof";return vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vn(e)}function t1(e,t){if(e==null)return{};var r=fB(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fB(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mr.apply(this,arguments)}function gx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gx(Object(r),!0).forEach(function(n){Mt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bx(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n1(n.key),n)}}function pB(e,t,r){return t&&bx(e.prototype,t),r&&bx(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function hB(e,t,r){return t=fo(t),vB(e,r1()?Reflect.construct(t,r||[],fo(e).constructor):t.apply(e,r))}function vB(e,t){if(t&&(vn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yB(e)}function yB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(r1=function(){return!!e})()}function fo(e){return fo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fo(e)}function mB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ld(e,t)}function Ld(e,t){return Ld=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ld(e,t)}function Mt(e,t,r){return t=n1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n1(e){var t=gB(e,"string");return vn(t)=="symbol"?t:t+""}function gB(e,t){if(vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var lr=(function(e){function t(){var r;dB(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=hB(this,t,[].concat(i)),Mt(r,"state",{isAnimationFinished:!0}),Mt(r,"id",Cr("recharts-area-")),Mt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),se(o)&&o()}),Mt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),se(o)&&o()}),r}return mB(t,e),pB(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,u=this.state.isAnimationFinished;if(o&&!u)return null;var s=this.props,l=s.dot,f=s.points,c=s.dataKey,d=oe(this.props,!1),p=oe(l,!0),y=f.map(function(h,b){var w=Xt(Xt(Xt({key:"dot-".concat(b),r:3},d),p),{},{index:b,cx:h.x,cy:h.y,dataKey:c,value:h.value,payload:h.payload,points:f});return t.renderDotItem(l,w)}),v={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(pe,mr({className:"recharts-area-dots"},v),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,s=o[0].x,l=o[o.length-1].x,f=n*Math.abs(s-l),c=Qt(o.map(function(d){return d.y||0}));return K(a)&&typeof a=="number"?c=Math.max(a,c):a&&Array.isArray(a)&&a.length&&(c=Math.max(Qt(a.map(function(d){return d.y||0})),c)),K(c)?O.createElement("rect",{x:s<l?s:s-f,y:0,width:f,height:Math.floor(c+(u?parseInt("".concat(u),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,s=o[0].y,l=o[o.length-1].y,f=n*Math.abs(s-l),c=Qt(o.map(function(d){return d.x||0}));return K(a)&&typeof a=="number"?c=Math.max(a,c):a&&Array.isArray(a)&&a.length&&(c=Math.max(Qt(a.map(function(d){return d.x||0})),c)),K(c)?O.createElement("rect",{x:0,y:s<l?s:s-f,width:c+(u?parseInt("".concat(u),10):1),height:Math.floor(f)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var u=this.props,s=u.layout,l=u.type,f=u.stroke,c=u.connectNulls,d=u.isRange;u.ref;var p=t1(u,lB);return O.createElement(pe,{clipPath:a?"url(#clipPath-".concat(o,")"):null},O.createElement(wr,mr({},oe(p,!0),{points:n,connectNulls:c,type:l,baseLine:i,layout:s,stroke:"none",className:"recharts-area-area"})),f!=="none"&&O.createElement(wr,mr({},oe(this.props,!1),{className:"recharts-area-curve",layout:s,type:l,connectNulls:c,fill:"none",points:n})),f!=="none"&&d&&O.createElement(wr,mr({},oe(this.props,!1),{className:"recharts-area-curve",layout:s,type:l,connectNulls:c,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,s=o.baseLine,l=o.isAnimationActive,f=o.animationBegin,c=o.animationDuration,d=o.animationEasing,p=o.animationId,y=this.state,v=y.prevPoints,h=y.prevBaseLine;return O.createElement(St,{begin:f,duration:c,isActive:l,easing:d,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(b){var w=b.t;if(v){var g=v.length/u.length,S=u.map(function(A,E){var M=Math.floor(E*g);if(v[M]){var P=v[M],T=Ce(P.x,A.x),j=Ce(P.y,A.y);return Xt(Xt({},A),{},{x:T(w),y:j(w)})}return A}),m;if(K(s)&&typeof s=="number"){var x=Ce(h,s);m=x(w)}else if(ae(s)||Pn(s)){var _=Ce(h,0);m=_(w)}else m=s.map(function(A,E){var M=Math.floor(E*g);if(h[M]){var P=h[M],T=Ce(P.x,A.x),j=Ce(P.y,A.y);return Xt(Xt({},A),{},{x:T(w),y:j(w)})}return A});return a.renderAreaStatically(S,m,n,i)}return O.createElement(pe,null,O.createElement("defs",null,O.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(w))),O.createElement(pe,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(u,s,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,u=a.baseLine,s=a.isAnimationActive,l=this.state,f=l.prevPoints,c=l.prevBaseLine,d=l.totalLength;return s&&o&&o.length&&(!f&&d>0||!_r(f,o)||!_r(c,u))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,u,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,s=i.className,l=i.top,f=i.left,c=i.xAxis,d=i.yAxis,p=i.width,y=i.height,v=i.isAnimationActive,h=i.id;if(a||!u||!u.length)return null;var b=this.state.isAnimationFinished,w=u.length===1,g=ce("recharts-area",s),S=c&&c.allowDataOverflow,m=d&&d.allowDataOverflow,x=S||m,_=ae(h)?this.id:h,A=(n=oe(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},E=A.r,M=E===void 0?3:E,P=A.strokeWidth,T=P===void 0?2:P,j=Cw(o)?o:{},$=j.clipDot,k=$===void 0?!0:$,R=M*2+T;return O.createElement(pe,{className:g},S||m?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(_)},O.createElement("rect",{x:S?f:f-p/2,y:m?l:l-y/2,width:S?p:p*2,height:m?y:y*2})),!k&&O.createElement("clipPath",{id:"clipPath-dots-".concat(_)},O.createElement("rect",{x:f-R/2,y:l-R/2,width:p+R,height:y+R}))):null,w?null:this.renderArea(x,_),(o||w)&&this.renderDots(x,k,_),(!v||b)&&It.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(O.PureComponent);e1=lr;Mt(lr,"displayName","Area");Mt(lr,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!ar.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Mt(lr,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,u=o??a;if(K(u)&&typeof u=="number")return u;var s=i==="horizontal"?n:r,l=s.scale.domain();if(s.type==="number"){var f=Math.max(l[0],l[1]),c=Math.min(l[0],l[1]);return u==="dataMin"?c:u==="dataMax"||f<0?f:Math.max(Math.min(l[0],l[1]),0)}return u==="dataMin"?l[0]:u==="dataMax"?l[1]:l[0]});Mt(lr,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,u=e.bandSize,s=e.dataKey,l=e.stackedData,f=e.dataStartIndex,c=e.displayedData,d=e.offset,p=t.layout,y=l&&l.length,v=e1.getBaseValue(t,r,n,i),h=p==="horizontal",b=!1,w=c.map(function(S,m){var x;y?x=l[f+m]:(x=De(S,s),Array.isArray(x)?b=!0:x=[v,x]);var _=x[1]==null||y&&De(S,s)==null;return h?{x:nn({axis:n,ticks:a,bandSize:u,entry:S,index:m}),y:_?null:i.scale(x[1]),value:x,payload:S}:{x:_?null:n.scale(x[1]),y:nn({axis:i,ticks:o,bandSize:u,entry:S,index:m}),value:x,payload:S}}),g;return y||b?g=w.map(function(S){var m=Array.isArray(S.value)?S.value[0]:null;return h?{x:S.x,y:m!=null&&S.y!=null?i.scale(m):null}:{x:m!=null?n.scale(m):null,y:S.y}}):g=h?i.scale(v):n.scale(v),Xt({points:w,baseLine:g,layout:p,isRange:b},d)});Mt(lr,"renderDotItem",function(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(se(e))r=e(t);else{var n=ce("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=t1(t,cB);r=O.createElement(Bo,mr({},a,{key:i,className:n}))}return r});function yn(e){"@babel/helpers - typeof";return yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yn(e)}function bB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xB(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o1(n.key),n)}}function wB(e,t,r){return t&&xB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function SB(e,t,r){return t=po(t),OB(e,i1()?Reflect.construct(t,r||[],po(e).constructor):t.apply(e,r))}function OB(e,t){if(t&&(yn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _B(e)}function _B(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(i1=function(){return!!e})()}function po(e){return po=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},po(e)}function AB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qd(e,t)}function qd(e,t){return qd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qd(e,t)}function a1(e,t,r){return t=o1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o1(e){var t=PB(e,"string");return yn(t)=="symbol"?t:t+""}function PB(e,t){if(yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xo=(function(e){function t(){return bB(this,t),SB(this,t,arguments)}return AB(t,e),wB(t,[{key:"render",value:function(){return null}}])})(ft.Component);a1(Xo,"displayName","ZAxis");a1(Xo,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var EB=["option","isActive"];function ni(){return ni=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ni.apply(this,arguments)}function TB(e,t){if(e==null)return{};var r=CB(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CB(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function MB(e){var t=e.option,r=e.isActive,n=TB(e,EB);return typeof t=="string"?ft.createElement(Ad,ni({option:ft.createElement(Co,ni({type:t},n)),isActive:r,shapeType:"symbols"},n)):ft.createElement(Ad,ni({option:t,isActive:r,shapeType:"symbols"},n))}function mn(e){"@babel/helpers - typeof";return mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mn(e)}function ii(){return ii=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ii.apply(this,arguments)}function xx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xx(Object(r),!0).forEach(function(n){tr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wx(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s1(n.key),n)}}function IB(e,t,r){return t&&wx(e.prototype,t),r&&wx(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function $B(e,t,r){return t=ho(t),kB(e,u1()?Reflect.construct(t,r||[],ho(e).constructor):t.apply(e,r))}function kB(e,t){if(t&&(mn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return RB(e)}function RB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u1=function(){return!!e})()}function ho(e){return ho=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ho(e)}function DB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bd(e,t)}function Bd(e,t){return Bd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Bd(e,t)}function tr(e,t,r){return t=s1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s1(e){var t=NB(e,"string");return mn(t)=="symbol"?t:t+""}function NB(e,t){if(mn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Zo=(function(e){function t(){var r;jB(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=$B(this,t,[].concat(i)),tr(r,"state",{isAnimationFinished:!1}),tr(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),tr(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),tr(r,"id",Cr("recharts-scatter-")),r}return DB(t,e),IB(t,[{key:"renderSymbolsStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.activeShape,s=a.activeIndex,l=oe(this.props,!1);return n.map(function(f,c){var d=s===c,p=d?u:o,y=lt(lt({},l),f);return O.createElement(pe,ii({className:"recharts-scatter-symbol",key:"symbol-".concat(f==null?void 0:f.cx,"-").concat(f==null?void 0:f.cy,"-").concat(f==null?void 0:f.size,"-").concat(c)},ui(i.props,f,c),{role:"img"}),O.createElement(MB,ii({option:p,isActive:d,key:"symbol-".concat(c)},y)))})}},{key:"renderSymbolsWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,u=i.animationBegin,s=i.animationDuration,l=i.animationEasing,f=i.animationId,c=this.state.prevPoints;return O.createElement(St,{begin:u,duration:s,isActive:o,easing:l,from:{t:0},to:{t:1},key:"pie-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var p=d.t,y=a.map(function(v,h){var b=c&&c[h];if(b){var w=Ce(b.cx,v.cx),g=Ce(b.cy,v.cy),S=Ce(b.size,v.size);return lt(lt({},v),{},{cx:w(p),cy:g(p),size:S(p)})}var m=Ce(0,v.size);return lt(lt({},v),{},{size:m(p)})});return O.createElement(pe,null,n.renderSymbolsStatically(y))})}},{key:"renderSymbols",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=this.state.prevPoints;return a&&i&&i.length&&(!o||!_r(o,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,o=i.xAxis,u=i.yAxis,s=i.children,l=Qe(s,Mn);return l?l.map(function(f,c){var d=f.props,p=d.direction,y=d.dataKey;return O.cloneElement(f,{key:"".concat(p,"-").concat(y,"-").concat(a[c]),data:a,xAxis:o,yAxis:u,layout:p==="x"?"vertical":"horizontal",dataPointFormatter:function(h,b){return{x:h.cx,y:h.cy,value:p==="x"?+h.node.x:+h.node.y,errorVal:De(h,b)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,i=n.points,a=n.line,o=n.lineType,u=n.lineJointType,s=oe(this.props,!1),l=oe(a,!1),f,c;if(o==="joint")f=i.map(function(g){return{x:g.cx,y:g.cy}});else if(o==="fitting"){var d=_E(i),p=d.xmin,y=d.xmax,v=d.a,h=d.b,b=function(S){return v*S+h};f=[{x:p,y:b(p)},{x:y,y:b(y)}]}var w=lt(lt(lt({},s),{},{fill:"none",stroke:s&&s.fill},l),{},{points:f});return O.isValidElement(a)?c=O.cloneElement(a,w):se(a)?c=a(w):c=O.createElement(wr,ii({},w,{type:u})),O.createElement(pe,{className:"recharts-scatter-line",key:"recharts-scatter-line"},c)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.points,o=n.line,u=n.className,s=n.xAxis,l=n.yAxis,f=n.left,c=n.top,d=n.width,p=n.height,y=n.id,v=n.isAnimationActive;if(i||!a||!a.length)return null;var h=this.state.isAnimationFinished,b=ce("recharts-scatter",u),w=s&&s.allowDataOverflow,g=l&&l.allowDataOverflow,S=w||g,m=ae(y)?this.id:y;return O.createElement(pe,{className:b,clipPath:S?"url(#clipPath-".concat(m,")"):null},w||g?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(m)},O.createElement("rect",{x:w?f:f-d/2,y:g?c:c-p/2,width:w?d:d*2,height:g?p:p*2}))):null,o&&this.renderLine(),this.renderErrorBar(),O.createElement(pe,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!v||h)&&It.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}}])})(O.PureComponent);tr(Zo,"displayName","Scatter");tr(Zo,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!ar.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});tr(Zo,"getComposedData",function(e){var t=e.xAxis,r=e.yAxis,n=e.zAxis,i=e.item,a=e.displayedData,o=e.xAxisTicks,u=e.yAxisTicks,s=e.offset,l=i.props.tooltipType,f=Qe(i.props.children,Sp),c=ae(t.dataKey)?i.props.dataKey:t.dataKey,d=ae(r.dataKey)?i.props.dataKey:r.dataKey,p=n&&n.dataKey,y=n?n.range:Xo.defaultProps.range,v=y&&y[0],h=t.scale.bandwidth?t.scale.bandwidth():0,b=r.scale.bandwidth?r.scale.bandwidth():0,w=a.map(function(g,S){var m=De(g,c),x=De(g,d),_=!ae(p)&&De(g,p)||"-",A=[{name:ae(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:m,payload:g,dataKey:c,type:l},{name:ae(r.dataKey)?i.props.name:r.name||r.dataKey,unit:r.unit||"",value:x,payload:g,dataKey:d,type:l}];_!=="-"&&A.push({name:n.name||n.dataKey,unit:n.unit||"",value:_,payload:g,dataKey:p,type:l});var E=nn({axis:t,ticks:o,bandSize:h,entry:g,index:S,dataKey:c}),M=nn({axis:r,ticks:u,bandSize:b,entry:g,index:S,dataKey:d}),P=_!=="-"?n.scale(_):v,T=Math.sqrt(Math.max(P,0)/Math.PI);return lt(lt({},g),{},{cx:E,cy:M,x:E-T,y:M-T,xAxis:t,yAxis:r,zAxis:n,width:2*T,height:2*T,size:P,node:{x:m,y:x,z:_},tooltipPayload:A,tooltipPosition:{x:E,y:M},payload:g},f&&f[S]&&f[S].props)});return lt({points:w},s)});function gn(e){"@babel/helpers - typeof";return gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gn(e)}function LB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qB(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f1(n.key),n)}}function BB(e,t,r){return t&&qB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function FB(e,t,r){return t=vo(t),zB(e,l1()?Reflect.construct(t,r||[],vo(e).constructor):t.apply(e,r))}function zB(e,t){if(t&&(gn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return UB(e)}function UB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l1=function(){return!!e})()}function vo(e){return vo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vo(e)}function WB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fd(e,t)}function Fd(e,t){return Fd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Fd(e,t)}function c1(e,t,r){return t=f1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f1(e){var t=HB(e,"string");return gn(t)=="symbol"?t:t+""}function HB(e,t){if(gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function zd(){return zd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zd.apply(this,arguments)}function GB(e){var t=e.xAxisId,r=Qp(),n=eh(),i=qO(t);return i==null?null:ft.createElement(In,zd({},i,{className:ce("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Bt(o,!0)}}))}var Jo=(function(e){function t(){return LB(this,t),FB(this,t,arguments)}return WB(t,e),BB(t,[{key:"render",value:function(){return ft.createElement(GB,this.props)}}])})(ft.Component);c1(Jo,"displayName","XAxis");c1(Jo,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function bn(e){"@babel/helpers - typeof";return bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bn(e)}function KB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VB(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h1(n.key),n)}}function YB(e,t,r){return t&&VB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function XB(e,t,r){return t=yo(t),ZB(e,d1()?Reflect.construct(t,r||[],yo(e).constructor):t.apply(e,r))}function ZB(e,t){if(t&&(bn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return JB(e)}function JB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(d1=function(){return!!e})()}function yo(e){return yo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yo(e)}function QB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ud(e,t)}function Ud(e,t){return Ud=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ud(e,t)}function p1(e,t,r){return t=h1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h1(e){var t=eF(e,"string");return bn(t)=="symbol"?t:t+""}function eF(e,t){if(bn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Wd(){return Wd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wd.apply(this,arguments)}var tF=function(t){var r=t.yAxisId,n=Qp(),i=eh(),a=BO(r);return a==null?null:ft.createElement(In,Wd({},a,{className:ce("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return Bt(u,!0)}}))},Qo=(function(e){function t(){return KB(this,t),XB(this,t,arguments)}return QB(t,e),YB(t,[{key:"render",value:function(){return ft.createElement(tF,this.props)}}])})(ft.Component);p1(Qo,"displayName","YAxis");p1(Qo,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function Sx(e){return aF(e)||iF(e)||nF(e)||rF()}function rF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
120
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nF(e,t){if(e){if(typeof e=="string")return Hd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hd(e,t)}}function iF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aF(e){if(Array.isArray(e))return Hd(e)}function Hd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Gd=function(t,r,n,i,a){var o=Qe(t,Wo),u=Qe(t,Go),s=[].concat(Sx(o),Sx(u)),l=Qe(t,Vo),f="".concat(i,"Id"),c=i[0],d=r;if(s.length&&(d=s.reduce(function(v,h){if(h.props[f]===n&&$t(h.props,"extendDomain")&&K(h.props[c])){var b=h.props[c];return[Math.min(v[0],b),Math.max(v[1],b)]}return v},d)),l.length){var p="".concat(c,"1"),y="".concat(c,"2");d=l.reduce(function(v,h){if(h.props[f]===n&&$t(h.props,"extendDomain")&&K(h.props[p])&&K(h.props[y])){var b=h.props[p],w=h.props[y];return[Math.min(v[0],b,w),Math.max(v[1],b,w)]}return v},d)}return a&&a.length&&(d=a.reduce(function(v,h){return K(h)?[Math.min(v[0],h),Math.max(v[1],h)]:v},d)),d},bf={exports:{}},Ox;function oF(){return Ox||(Ox=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(s,l,f){this.fn=s,this.context=l,this.once=f||!1}function a(s,l,f,c,d){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new i(f,c||s,d),y=r?r+l:l;return s._events[y]?s._events[y].fn?s._events[y]=[s._events[y],p]:s._events[y].push(p):(s._events[y]=p,s._eventsCount++),s}function o(s,l){--s._eventsCount===0?s._events=new n:delete s._events[l]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var l=[],f,c;if(this._eventsCount===0)return l;for(c in f=this._events)t.call(f,c)&&l.push(r?c.slice(1):c);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(f)):l},u.prototype.listeners=function(l){var f=r?r+l:l,c=this._events[f];if(!c)return[];if(c.fn)return[c.fn];for(var d=0,p=c.length,y=new Array(p);d<p;d++)y[d]=c[d].fn;return y},u.prototype.listenerCount=function(l){var f=r?r+l:l,c=this._events[f];return c?c.fn?1:c.length:0},u.prototype.emit=function(l,f,c,d,p,y){var v=r?r+l:l;if(!this._events[v])return!1;var h=this._events[v],b=arguments.length,w,g;if(h.fn){switch(h.once&&this.removeListener(l,h.fn,void 0,!0),b){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,f),!0;case 3:return h.fn.call(h.context,f,c),!0;case 4:return h.fn.call(h.context,f,c,d),!0;case 5:return h.fn.call(h.context,f,c,d,p),!0;case 6:return h.fn.call(h.context,f,c,d,p,y),!0}for(g=1,w=new Array(b-1);g<b;g++)w[g-1]=arguments[g];h.fn.apply(h.context,w)}else{var S=h.length,m;for(g=0;g<S;g++)switch(h[g].once&&this.removeListener(l,h[g].fn,void 0,!0),b){case 1:h[g].fn.call(h[g].context);break;case 2:h[g].fn.call(h[g].context,f);break;case 3:h[g].fn.call(h[g].context,f,c);break;case 4:h[g].fn.call(h[g].context,f,c,d);break;default:if(!w)for(m=1,w=new Array(b-1);m<b;m++)w[m-1]=arguments[m];h[g].fn.apply(h[g].context,w)}}return!0},u.prototype.on=function(l,f,c){return a(this,l,f,c,!1)},u.prototype.once=function(l,f,c){return a(this,l,f,c,!0)},u.prototype.removeListener=function(l,f,c,d){var p=r?r+l:l;if(!this._events[p])return this;if(!f)return o(this,p),this;var y=this._events[p];if(y.fn)y.fn===f&&(!d||y.once)&&(!c||y.context===c)&&o(this,p);else{for(var v=0,h=[],b=y.length;v<b;v++)(y[v].fn!==f||d&&!y[v].once||c&&y[v].context!==c)&&h.push(y[v]);h.length?this._events[p]=h.length===1?h[0]:h:o(this,p)}return this},u.prototype.removeAllListeners=function(l){var f;return l?(f=r?r+l:l,this._events[f]&&o(this,f)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(bf)),bf.exports}var uF=oF();const sF=xe(uF);var xf=new sF,wf="recharts.syncMouseEvents";function Bi(e){"@babel/helpers - typeof";return Bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bi(e)}function lF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,v1(n.key),n)}}function fF(e,t,r){return t&&cF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sf(e,t,r){return t=v1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v1(e){var t=dF(e,"string");return Bi(t)=="symbol"?t:t+""}function dF(e,t){if(Bi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var pF=(function(){function e(){lF(this,e),Sf(this,"activeIndex",0),Sf(this,"coordinateList",[]),Sf(this,"layout","horizontal")}return fF(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,u=o===void 0?null:o,s=r.layout,l=s===void 0?null:s,f=r.offset,c=f===void 0?null:f,d=r.mouseHandlerCallback,p=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=l??this.layout,this.offset=c??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,u=i.height,s=this.coordinateList[this.activeIndex].coordinate,l=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,c=a+s+l,d=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:c,pageY:d})}}}])})();function hF(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&K(n)&&K(i))return!0}return!1}function vF(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function y1(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=ze(t,r,n,i),u=ze(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function yF(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,s=t.cy,l=t.innerRadius,f=t.outerRadius,c=t.angle,d=ze(u,s,l,c),p=ze(u,s,f,c);n=d.x,i=d.y,a=p.x,o=p.y}else return y1(t);return[{x:n,y:i},{x:a,y:o}]}function Fi(e){"@babel/helpers - typeof";return Fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fi(e)}function _x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function va(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_x(Object(r),!0).forEach(function(n){mF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_x(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mF(e,t,r){return t=gF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gF(e){var t=bF(e,"string");return Fi(t)=="symbol"?t:t+""}function bF(e,t){if(Fi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xF(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,s=e.offset,l=e.activeTooltipIndex,f=e.tooltipAxisBandSize,c=e.layout,d=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var y,v=wr;if(d==="ScatterChart")y=o,v=VN;else if(d==="BarChart")y=vF(c,o,s,f),v=Yp;else if(c==="radial"){var h=y1(o),b=h.cx,w=h.cy,g=h.radius,S=h.startAngle,m=h.endAngle;y={cx:b,cy:w,startAngle:S,endAngle:m,innerRadius:g,outerRadius:g},v=pO}else y={points:yF(c,o,s)},v=wr;var x=va(va(va(va({stroke:"#ccc",pointerEvents:"none"},s),y),oe(p,!1)),{},{payload:u,payloadIndex:l,className:ce("recharts-tooltip-cursor",p.className)});return O.isValidElement(p)?O.cloneElement(p,x):O.createElement(v,x)}var wF=["item"],SF=["children","className","width","height","style","compact","title","desc"];function xn(e){"@babel/helpers - typeof";return xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xn(e)}function Fr(){return Fr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fr.apply(this,arguments)}function Ax(e,t){return AF(e)||_F(e,t)||g1(e,t)||OF()}function OF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
121
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _F(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){l=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function AF(e){if(Array.isArray(e))return e}function Px(e,t){if(e==null)return{};var r=PF(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function PF(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function EF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,b1(n.key),n)}}function CF(e,t,r){return t&&TF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function MF(e,t,r){return t=mo(t),jF(e,m1()?Reflect.construct(t,r||[],mo(e).constructor):t.apply(e,r))}function jF(e,t){if(t&&(xn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IF(e)}function IF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(m1=function(){return!!e})()}function mo(e){return mo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},mo(e)}function $F(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kd(e,t)}function Kd(e,t){return Kd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Kd(e,t)}function wn(e){return DF(e)||RF(e)||g1(e)||kF()}function kF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
122
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g1(e,t){if(e){if(typeof e=="string")return Vd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vd(e,t)}}function RF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DF(e){if(Array.isArray(e))return Vd(e)}function Vd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ex(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function q(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ex(Object(r),!0).forEach(function(n){re(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ex(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function re(e,t,r){return t=b1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b1(e){var t=NF(e,"string");return xn(t)=="symbol"?t:t+""}function NF(e,t){if(xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var LF={xAxis:["bottom","top"],yAxis:["left","right"]},qF={width:"100%",height:"100%"},x1={x:0,y:0};function ya(e){return e}var BF=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},FF=function(t,r,n,i){var a=r.find(function(f){return f&&f.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,u=i.radius;return q(q(q({},i),ze(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var s=a.coordinate,l=i.angle;return q(q(q({},i),ze(i.cx,i.cy,s,l)),{},{angle:l,radius:s})}return x1},eu=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,s){var l=s.props.data;return l&&l.length?[].concat(wn(u),wn(l)):u},[]);return o.length>0?o:t&&t.length&&K(i)&&K(a)?t.slice(i,a+1):[]};function w1(e){return e==="number"?[0,"auto"]:void 0}var Yd=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=eu(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(s,l){var f,c=(f=l.props.data)!==null&&f!==void 0?f:r;c&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(c=c.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var p=c===void 0?u:c;d=ga(p,o.dataKey,i)}else d=c&&c[n]||u[n];return d?[].concat(wn(s),[cO(l,d)]):s},[])},Tx=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=BF(a,n),u=t.orderedTooltipTicks,s=t.tooltipAxis,l=t.tooltipTicks,f=Ak(o,u,l,s);if(f>=0&&l){var c=l[f]&&l[f].value,d=Yd(t,r,f,c),p=FF(n,u,f,a);return{activeTooltipIndex:f,activeLabel:c,activePayload:d,activeCoordinate:p}}return null},zF=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,l=r.dataEndIndex,f=t.layout,c=t.children,d=t.stackOffset,p=uO(f,a);return n.reduce(function(y,v){var h,b=v.type.defaultProps!==void 0?q(q({},v.type.defaultProps),v.props):v.props,w=b.type,g=b.dataKey,S=b.allowDataOverflow,m=b.allowDuplicatedCategory,x=b.scale,_=b.ticks,A=b.includeHidden,E=b[o];if(y[E])return y;var M=eu(t.data,{graphicalItems:i.filter(function(F){var W,Y=o in F.props?F.props[o]:(W=F.type.defaultProps)===null||W===void 0?void 0:W[o];return Y===E}),dataStartIndex:s,dataEndIndex:l}),P=M.length,T,j,$;hF(b.domain,S,w)&&(T=ld(b.domain,null,S),p&&(w==="number"||x!=="auto")&&($=ei(M,g,"category")));var k=w1(w);if(!T||T.length===0){var R,D=(R=b.domain)!==null&&R!==void 0?R:k;if(g){if(T=ei(M,g,w),w==="category"&&p){var N=OE(T);m&&N?(j=T,T=oi(0,P)):m||(T=$b(D,T,v).reduce(function(F,W){return F.indexOf(W)>=0?F:[].concat(wn(F),[W])},[]))}else if(w==="category")m?T=T.filter(function(F){return F!==""&&!ae(F)}):T=$b(D,T,v).reduce(function(F,W){return F.indexOf(W)>=0||W===""||ae(W)?F:[].concat(wn(F),[W])},[]);else if(w==="number"){var z=Mk(M,i.filter(function(F){var W,Y,Q=o in F.props?F.props[o]:(W=F.type.defaultProps)===null||W===void 0?void 0:W[o],ee="hide"in F.props?F.props.hide:(Y=F.type.defaultProps)===null||Y===void 0?void 0:Y.hide;return Q===E&&(A||!ee)}),g,a,f);z&&(T=z)}p&&(w==="number"||x!=="auto")&&($=ei(M,g,"category"))}else p?T=oi(0,P):u&&u[E]&&u[E].hasStack&&w==="number"?T=d==="expand"?[0,1]:lO(u[E].stackGroups,s,l):T=oO(M,i.filter(function(F){var W=o in F.props?F.props[o]:F.type.defaultProps[o],Y="hide"in F.props?F.props.hide:F.type.defaultProps.hide;return W===E&&(A||!Y)}),w,f,!0);if(w==="number")T=Gd(c,T,E,a,_),D&&(T=ld(D,T,S));else if(w==="category"&&D){var I=D,L=T.every(function(F){return I.indexOf(F)>=0});L&&(T=I)}}return q(q({},y),{},re({},E,q(q({},b),{},{axisType:a,domain:T,categoricalDomain:$,duplicateDomain:j,originalDomain:(h=b.domain)!==null&&h!==void 0?h:k,isCategorical:p,layout:f})))},{})},UF=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,l=r.dataEndIndex,f=t.layout,c=t.children,d=eu(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:l}),p=d.length,y=uO(f,a),v=-1;return n.reduce(function(h,b){var w=b.type.defaultProps!==void 0?q(q({},b.type.defaultProps),b.props):b.props,g=w[o],S=w1("number");if(!h[g]){v++;var m;return y?m=oi(0,p):u&&u[g]&&u[g].hasStack?(m=lO(u[g].stackGroups,s,l),m=Gd(c,m,g,a)):(m=ld(S,oO(d,n.filter(function(x){var _,A,E=o in x.props?x.props[o]:(_=x.type.defaultProps)===null||_===void 0?void 0:_[o],M="hide"in x.props?x.props.hide:(A=x.type.defaultProps)===null||A===void 0?void 0:A.hide;return E===g&&!M}),"number",f),i.defaultProps.allowDataOverflow),m=Gd(c,m,g,a)),q(q({},h),{},re({},g,q(q({axisType:a},i.defaultProps),{},{hide:!0,orientation:pt(LF,"".concat(a,".").concat(v%2),null),domain:m,originalDomain:S,isCategorical:y,layout:f})))}return h},{})},WF=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,s=r.dataStartIndex,l=r.dataEndIndex,f=t.children,c="".concat(i,"Id"),d=Qe(f,a),p={};return d&&d.length?p=zF(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:u,dataStartIndex:s,dataEndIndex:l}):o&&o.length&&(p=UF(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:u,dataStartIndex:s,dataEndIndex:l})),p},HF=function(t){var r=Jt(t),n=Bt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:_o(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Wa(r,n)}},Cx=function(t){var r=t.children,n=t.defaultShowTooltip,i=it(r,un),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},GF=function(t){return!t||!t.length?!1:t.some(function(r){var n=Ft(r&&r.type);return n&&n.indexOf("Bar")>=0})},Mx=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},KF=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,s=u===void 0?{}:u,l=n.width,f=n.height,c=n.children,d=n.margin||{},p=it(c,un),y=it(c,gr),v=Object.keys(s).reduce(function(m,x){var _=s[x],A=_.orientation;return!_.mirror&&!_.hide?q(q({},m),{},re({},A,m[A]+_.width)):m},{left:d.left||0,right:d.right||0}),h=Object.keys(o).reduce(function(m,x){var _=o[x],A=_.orientation;return!_.mirror&&!_.hide?q(q({},m),{},re({},A,pt(m,"".concat(A))+_.height)):m},{top:d.top||0,bottom:d.bottom||0}),b=q(q({},h),v),w=b.bottom;p&&(b.bottom+=p.props.height||un.defaultProps.height),y&&r&&(b=Tk(b,i,n,r));var g=l-b.left-b.right,S=f-b.top-b.bottom;return q(q({brushBottom:w},b),{},{width:Math.max(g,0),height:Math.max(S,0)})},VF=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},YF=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,s=t.axisComponents,l=t.legendContent,f=t.formatAxisMap,c=t.defaultProps,d=function(b,w){var g=w.graphicalItems,S=w.stackGroups,m=w.offset,x=w.updateId,_=w.dataStartIndex,A=w.dataEndIndex,E=b.barSize,M=b.layout,P=b.barGap,T=b.barCategoryGap,j=b.maxBarSize,$=Mx(M),k=$.numericAxisName,R=$.cateAxisName,D=GF(g),N=[];return g.forEach(function(z,I){var L=eu(b.data,{graphicalItems:[z],dataStartIndex:_,dataEndIndex:A}),F=z.type.defaultProps!==void 0?q(q({},z.type.defaultProps),z.props):z.props,W=F.dataKey,Y=F.maxBarSize,Q=F["".concat(k,"Id")],ee=F["".concat(R,"Id")],ne={},V=s.reduce(function(Pt,Rt){var tu,ru,nu=w["".concat(Rt.axisType,"Map")],ih=F["".concat(Rt.axisType,"Id")];nu&&nu[ih]||Rt.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?Je(!1,"Specifying a(n) ".concat(Rt.axisType,"Id requires a corresponding ").concat(Rt.axisType,"Id on the targeted graphical component ").concat((tu=z==null||(ru=z.type)===null||ru===void 0?void 0:ru.displayName)!==null&&tu!==void 0?tu:"")):Je());var ah=nu[ih];return q(q({},Pt),{},re(re({},Rt.axisType,ah),"".concat(Rt.axisType,"Ticks"),Bt(ah)))},ne),B=V[R],H=V["".concat(R,"Ticks")],Z=S&&S[Q]&&S[Q].hasStack&&zk(z,S[Q].stackGroups),C=Ft(z.type).indexOf("Bar")>=0,ie=Wa(B,H),U=[],ue=D&&Pk({barSize:E,stackGroups:S,totalSize:VF(V,R)});if(C){var he,Te,Xe=ae(Y)?j:Y,At=(he=(Te=Wa(B,H,!0))!==null&&Te!==void 0?Te:Xe)!==null&&he!==void 0?he:0;U=Ek({barGap:P,barCategoryGap:T,bandSize:At!==ie?At:ie,sizeList:ue[ee],maxBarSize:Xe}),At!==ie&&(U=U.map(function(Pt){return q(q({},Pt),{},{position:q(q({},Pt.position),{},{offset:Pt.position.offset-At/2})})}))}var $r=z&&z.type&&z.type.getComposedData;$r&&N.push({props:q(q({},$r(q(q({},V),{},{displayedData:L,props:b,dataKey:W,item:z,bandSize:ie,barPosition:U,offset:m,stackedData:Z,layout:M,dataStartIndex:_,dataEndIndex:A}))),{},re(re(re({key:z.key||"item-".concat(I)},k,V[k]),R,V[R]),"animationId",x)),childIndex:DE(z,b.children),item:z})}),N},p=function(b,w){var g=b.props,S=b.dataStartIndex,m=b.dataEndIndex,x=b.updateId;if(!Cm({props:g}))return null;var _=g.children,A=g.layout,E=g.stackOffset,M=g.data,P=g.reverseStackOrder,T=Mx(A),j=T.numericAxisName,$=T.cateAxisName,k=Qe(_,n),R=qk(M,k,"".concat(j,"Id"),"".concat($,"Id"),E,P),D=s.reduce(function(F,W){var Y="".concat(W.axisType,"Map");return q(q({},F),{},re({},Y,WF(g,q(q({},W),{},{graphicalItems:k,stackGroups:W.axisType===j&&R,dataStartIndex:S,dataEndIndex:m}))))},{}),N=KF(q(q({},D),{},{props:g,graphicalItems:k}),w==null?void 0:w.legendBBox);Object.keys(D).forEach(function(F){D[F]=f(g,D[F],N,F.replace("Map",""),r)});var z=D["".concat($,"Map")],I=HF(z),L=d(g,q(q({},D),{},{dataStartIndex:S,dataEndIndex:m,updateId:x,graphicalItems:k,stackGroups:R,offset:N}));return q(q({formattedGraphicalItems:L,graphicalItems:k,offset:N,stackGroups:R},I),D)},y=(function(h){function b(w){var g,S,m;return EF(this,b),m=MF(this,b,[w]),re(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),re(m,"accessibilityManager",new pF),re(m,"handleLegendBBoxUpdate",function(x){if(x){var _=m.state,A=_.dataStartIndex,E=_.dataEndIndex,M=_.updateId;m.setState(q({legendBBox:x},p({props:m.props,dataStartIndex:A,dataEndIndex:E,updateId:M},q(q({},m.state),{},{legendBBox:x}))))}}),re(m,"handleReceiveSyncEvent",function(x,_,A){if(m.props.syncId===x){if(A===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(_)}}),re(m,"handleBrushChange",function(x){var _=x.startIndex,A=x.endIndex;if(_!==m.state.dataStartIndex||A!==m.state.dataEndIndex){var E=m.state.updateId;m.setState(function(){return q({dataStartIndex:_,dataEndIndex:A},p({props:m.props,dataStartIndex:_,dataEndIndex:A,updateId:E},m.state))}),m.triggerSyncEvent({dataStartIndex:_,dataEndIndex:A})}}),re(m,"handleMouseEnter",function(x){var _=m.getMouseInfo(x);if(_){var A=q(q({},_),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var E=m.props.onMouseEnter;se(E)&&E(A,x)}}),re(m,"triggeredAfterMouseMove",function(x){var _=m.getMouseInfo(x),A=_?q(q({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(A),m.triggerSyncEvent(A);var E=m.props.onMouseMove;se(E)&&E(A,x)}),re(m,"handleItemMouseEnter",function(x){m.setState(function(){return{isTooltipActive:!0,activeItem:x,activePayload:x.tooltipPayload,activeCoordinate:x.tooltipPosition||{x:x.cx,y:x.cy}}})}),re(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),re(m,"handleMouseMove",function(x){x.persist(),m.throttleTriggeredAfterMouseMove(x)}),re(m,"handleMouseLeave",function(x){m.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};m.setState(_),m.triggerSyncEvent(_);var A=m.props.onMouseLeave;se(A)&&A(_,x)}),re(m,"handleOuterEvent",function(x){var _=RE(x),A=pt(m.props,"".concat(_));if(_&&se(A)){var E,M;/.*touch.*/i.test(_)?M=m.getMouseInfo(x.changedTouches[0]):M=m.getMouseInfo(x),A((E=M)!==null&&E!==void 0?E:{},x)}}),re(m,"handleClick",function(x){var _=m.getMouseInfo(x);if(_){var A=q(q({},_),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var E=m.props.onClick;se(E)&&E(A,x)}}),re(m,"handleMouseDown",function(x){var _=m.props.onMouseDown;if(se(_)){var A=m.getMouseInfo(x);_(A,x)}}),re(m,"handleMouseUp",function(x){var _=m.props.onMouseUp;if(se(_)){var A=m.getMouseInfo(x);_(A,x)}}),re(m,"handleTouchMove",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(x.changedTouches[0])}),re(m,"handleTouchStart",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&m.handleMouseDown(x.changedTouches[0])}),re(m,"handleTouchEnd",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&m.handleMouseUp(x.changedTouches[0])}),re(m,"handleDoubleClick",function(x){var _=m.props.onDoubleClick;if(se(_)){var A=m.getMouseInfo(x);_(A,x)}}),re(m,"handleContextMenu",function(x){var _=m.props.onContextMenu;if(se(_)){var A=m.getMouseInfo(x);_(A,x)}}),re(m,"triggerSyncEvent",function(x){m.props.syncId!==void 0&&xf.emit(wf,m.props.syncId,x,m.eventEmitterSymbol)}),re(m,"applySyncEvent",function(x){var _=m.props,A=_.layout,E=_.syncMethod,M=m.state.updateId,P=x.dataStartIndex,T=x.dataEndIndex;if(x.dataStartIndex!==void 0||x.dataEndIndex!==void 0)m.setState(q({dataStartIndex:P,dataEndIndex:T},p({props:m.props,dataStartIndex:P,dataEndIndex:T,updateId:M},m.state)));else if(x.activeTooltipIndex!==void 0){var j=x.chartX,$=x.chartY,k=x.activeTooltipIndex,R=m.state,D=R.offset,N=R.tooltipTicks;if(!D)return;if(typeof E=="function")k=E(N,x);else if(E==="value"){k=-1;for(var z=0;z<N.length;z++)if(N[z].value===x.activeLabel){k=z;break}}var I=q(q({},D),{},{x:D.left,y:D.top}),L=Math.min(j,I.x+I.width),F=Math.min($,I.y+I.height),W=N[k]&&N[k].value,Y=Yd(m.state,m.props.data,k),Q=N[k]?{x:A==="horizontal"?N[k].coordinate:L,y:A==="horizontal"?F:N[k].coordinate}:x1;m.setState(q(q({},x),{},{activeLabel:W,activeCoordinate:Q,activePayload:Y,activeTooltipIndex:k}))}else m.setState(x)}),re(m,"renderCursor",function(x){var _,A=m.state,E=A.isTooltipActive,M=A.activeCoordinate,P=A.activePayload,T=A.offset,j=A.activeTooltipIndex,$=A.tooltipAxisBandSize,k=m.getTooltipEventType(),R=(_=x.props.active)!==null&&_!==void 0?_:E,D=m.props.layout,N=x.key||"_recharts-cursor";return O.createElement(xF,{key:N,activeCoordinate:M,activePayload:P,activeTooltipIndex:j,chartName:r,element:x,isActive:R,layout:D,offset:T,tooltipAxisBandSize:$,tooltipEventType:k})}),re(m,"renderPolarAxis",function(x,_,A){var E=pt(x,"type.axisType"),M=pt(m.state,"".concat(E,"Map")),P=x.type.defaultProps,T=P!==void 0?q(q({},P),x.props):x.props,j=M&&M[T["".concat(E,"Id")]];return O.cloneElement(x,q(q({},j),{},{className:ce(E,j.className),key:x.key||"".concat(_,"-").concat(A),ticks:Bt(j,!0)}))}),re(m,"renderPolarGrid",function(x){var _=x.props,A=_.radialLines,E=_.polarAngles,M=_.polarRadius,P=m.state,T=P.radiusAxisMap,j=P.angleAxisMap,$=Jt(T),k=Jt(j),R=k.cx,D=k.cy,N=k.innerRadius,z=k.outerRadius;return O.cloneElement(x,{polarAngles:Array.isArray(E)?E:Bt(k,!0).map(function(I){return I.coordinate}),polarRadius:Array.isArray(M)?M:Bt($,!0).map(function(I){return I.coordinate}),cx:R,cy:D,innerRadius:N,outerRadius:z,key:x.key||"polar-grid",radialLines:A})}),re(m,"renderLegend",function(){var x=m.state.formattedGraphicalItems,_=m.props,A=_.children,E=_.width,M=_.height,P=m.props.margin||{},T=E-(P.left||0)-(P.right||0),j=iO({children:A,formattedGraphicalItems:x,legendWidth:T,legendContent:l});if(!j)return null;var $=j.item,k=Px(j,wF);return O.cloneElement($,q(q({},k),{},{chartWidth:E,chartHeight:M,margin:P,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),re(m,"renderTooltip",function(){var x,_=m.props,A=_.children,E=_.accessibilityLayer,M=it(A,Tt);if(!M)return null;var P=m.state,T=P.isTooltipActive,j=P.activeCoordinate,$=P.activePayload,k=P.activeLabel,R=P.offset,D=(x=M.props.active)!==null&&x!==void 0?x:T;return O.cloneElement(M,{viewBox:q(q({},R),{},{x:R.left,y:R.top}),active:D,label:k,payload:D?$:[],coordinate:j,accessibilityLayer:E})}),re(m,"renderBrush",function(x){var _=m.props,A=_.margin,E=_.data,M=m.state,P=M.offset,T=M.dataStartIndex,j=M.dataEndIndex,$=M.updateId;return O.cloneElement(x,{key:x.key||"_recharts-brush",onChange:la(m.handleBrushChange,x.props.onChange),data:E,x:K(x.props.x)?x.props.x:P.left,y:K(x.props.y)?x.props.y:P.top+P.height+P.brushBottom-(A.bottom||0),width:K(x.props.width)?x.props.width:P.width,startIndex:T,endIndex:j,updateId:"brush-".concat($)})}),re(m,"renderReferenceElement",function(x,_,A){if(!x)return null;var E=m,M=E.clipPathId,P=m.state,T=P.xAxisMap,j=P.yAxisMap,$=P.offset,k=x.type.defaultProps||{},R=x.props,D=R.xAxisId,N=D===void 0?k.xAxisId:D,z=R.yAxisId,I=z===void 0?k.yAxisId:z;return O.cloneElement(x,{key:x.key||"".concat(_,"-").concat(A),xAxis:T[N],yAxis:j[I],viewBox:{x:$.left,y:$.top,width:$.width,height:$.height},clipPathId:M})}),re(m,"renderActivePoints",function(x){var _=x.item,A=x.activePoint,E=x.basePoint,M=x.childIndex,P=x.isRange,T=[],j=_.props.key,$=_.item.type.defaultProps!==void 0?q(q({},_.item.type.defaultProps),_.item.props):_.item.props,k=$.activeDot,R=$.dataKey,D=q(q({index:M,dataKey:R,cx:A.x,cy:A.y,r:4,fill:Kp(_.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},oe(k,!1)),ba(k));return T.push(b.renderActiveDot(k,D,"".concat(j,"-activePoint-").concat(M))),E?T.push(b.renderActiveDot(k,q(q({},D),{},{cx:E.x,cy:E.y}),"".concat(j,"-basePoint-").concat(M))):P&&T.push(null),T}),re(m,"renderGraphicChild",function(x,_,A){var E=m.filterFormatItem(x,_,A);if(!E)return null;var M=m.getTooltipEventType(),P=m.state,T=P.isTooltipActive,j=P.tooltipAxis,$=P.activeTooltipIndex,k=P.activeLabel,R=m.props.children,D=it(R,Tt),N=E.props,z=N.points,I=N.isRange,L=N.baseLine,F=E.item.type.defaultProps!==void 0?q(q({},E.item.type.defaultProps),E.item.props):E.item.props,W=F.activeDot,Y=F.hide,Q=F.activeBar,ee=F.activeShape,ne=!!(!Y&&T&&D&&(W||Q||ee)),V={};M!=="axis"&&D&&D.props.trigger==="click"?V={onClick:la(m.handleItemMouseEnter,x.props.onClick)}:M!=="axis"&&(V={onMouseLeave:la(m.handleItemMouseLeave,x.props.onMouseLeave),onMouseEnter:la(m.handleItemMouseEnter,x.props.onMouseEnter)});var B=O.cloneElement(x,q(q({},E.props),V));function H(Rt){return typeof j.dataKey=="function"?j.dataKey(Rt.payload):null}if(ne)if($>=0){var Z,C;if(j.dataKey&&!j.allowDuplicatedCategory){var ie=typeof j.dataKey=="function"?H:"payload.".concat(j.dataKey.toString());Z=ga(z,ie,k),C=I&&L&&ga(L,ie,k)}else Z=z==null?void 0:z[$],C=I&&L&&L[$];if(ee||Q){var U=x.props.activeIndex!==void 0?x.props.activeIndex:$;return[O.cloneElement(x,q(q(q({},E.props),V),{},{activeIndex:U})),null,null]}if(!ae(Z))return[B].concat(wn(m.renderActivePoints({item:E,activePoint:Z,basePoint:C,childIndex:$,isRange:I})))}else{var ue,he=(ue=m.getItemByXY(m.state.activeCoordinate))!==null&&ue!==void 0?ue:{graphicalItem:B},Te=he.graphicalItem,Xe=Te.item,At=Xe===void 0?x:Xe,$r=Te.childIndex,Pt=q(q(q({},E.props),V),{},{activeIndex:$r});return[O.cloneElement(At,Pt),null,null]}return I?[B,null,null]:[B,null]}),re(m,"renderCustomized",function(x,_,A){return O.cloneElement(x,q(q({key:"recharts-customized-".concat(A)},m.props),m.state))}),re(m,"renderMap",{CartesianGrid:{handler:ya,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:ya},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:ya},YAxis:{handler:ya},Brush:{handler:m.renderBrush,once:!0},Bar:{handler:m.renderGraphicChild},Line:{handler:m.renderGraphicChild},Area:{handler:m.renderGraphicChild},Radar:{handler:m.renderGraphicChild},RadialBar:{handler:m.renderGraphicChild},Scatter:{handler:m.renderGraphicChild},Pie:{handler:m.renderGraphicChild},Funnel:{handler:m.renderGraphicChild},Tooltip:{handler:m.renderCursor,once:!0},PolarGrid:{handler:m.renderPolarGrid,once:!0},PolarAngleAxis:{handler:m.renderPolarAxis},PolarRadiusAxis:{handler:m.renderPolarAxis},Customized:{handler:m.renderCustomized}}),m.clipPathId="".concat((g=w.id)!==null&&g!==void 0?g:Cr("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=iS(m.triggeredAfterMouseMove,(S=w.throttleDelay)!==null&&S!==void 0?S:1e3/60),m.state={},m}return $F(b,h),CF(b,[{key:"componentDidMount",value:function(){var g,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(g=this.props.margin.left)!==null&&g!==void 0?g:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var g=this.props,S=g.children,m=g.data,x=g.height,_=g.layout,A=it(S,Tt);if(A){var E=A.props.defaultIndex;if(!(typeof E!="number"||E<0||E>this.state.tooltipTicks.length-1)){var M=this.state.tooltipTicks[E]&&this.state.tooltipTicks[E].value,P=Yd(this.state,m,E,M),T=this.state.tooltipTicks[E].coordinate,j=(this.state.offset.top+x)/2,$=_==="horizontal",k=$?{x:T,y:j}:{y:T,x:j},R=this.state.formattedGraphicalItems.find(function(N){var z=N.item;return z.type.name==="Scatter"});R&&(k=q(q({},k),R.props.points[E].tooltipPosition),P=R.props.points[E].tooltipPayload);var D={activeTooltipIndex:E,isTooltipActive:!0,activeLabel:M,activePayload:P,activeCoordinate:k};this.setState(D),this.renderCursor(A),this.accessibilityManager.setIndex(E)}}}},{key:"getSnapshotBeforeUpdate",value:function(g,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==g.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==g.margin){var m,x;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(x=this.props.margin.top)!==null&&x!==void 0?x:0}})}return null}},{key:"componentDidUpdate",value:function(g){jf([it(g.children,Tt)],[it(this.props.children,Tt)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var g=it(this.props.children,Tt);if(g&&typeof g.props.shared=="boolean"){var S=g.props.shared?"axis":"item";return u.indexOf(S)>=0?S:a}return a}},{key:"getMouseInfo",value:function(g){if(!this.container)return null;var S=this.container,m=S.getBoundingClientRect(),x=bM(m),_={chartX:Math.round(g.pageX-x.left),chartY:Math.round(g.pageY-x.top)},A=m.width/S.offsetWidth||1,E=this.inRange(_.chartX,_.chartY,A);if(!E)return null;var M=this.state,P=M.xAxisMap,T=M.yAxisMap,j=this.getTooltipEventType(),$=Tx(this.state,this.props.data,this.props.layout,E);if(j!=="axis"&&P&&T){var k=Jt(P).scale,R=Jt(T).scale,D=k&&k.invert?k.invert(_.chartX):null,N=R&&R.invert?R.invert(_.chartY):null;return q(q({},_),{},{xValue:D,yValue:N},$)}return $?q(q({},_),$):null}},{key:"inRange",value:function(g,S){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,x=this.props.layout,_=g/m,A=S/m;if(x==="horizontal"||x==="vertical"){var E=this.state.offset,M=_>=E.left&&_<=E.left+E.width&&A>=E.top&&A<=E.top+E.height;return M?{x:_,y:A}:null}var P=this.state,T=P.angleAxisMap,j=P.radiusAxisMap;if(T&&j){var $=Jt(T);return Db({x:_,y:A},$)}return null}},{key:"parseEventsOfWrapper",value:function(){var g=this.props.children,S=this.getTooltipEventType(),m=it(g,Tt),x={};m&&S==="axis"&&(m.props.trigger==="click"?x={onClick:this.handleClick}:x={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var _=ba(this.props,this.handleOuterEvent);return q(q({},_),x)}},{key:"addListener",value:function(){xf.on(wf,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){xf.removeListener(wf,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(g,S,m){for(var x=this.state.formattedGraphicalItems,_=0,A=x.length;_<A;_++){var E=x[_];if(E.item===g||E.props.key===g.key||S===Ft(E.item.type)&&m===E.childIndex)return E}return null}},{key:"renderClipPath",value:function(){var g=this.clipPathId,S=this.state.offset,m=S.left,x=S.top,_=S.height,A=S.width;return O.createElement("defs",null,O.createElement("clipPath",{id:g},O.createElement("rect",{x:m,y:x,height:_,width:A})))}},{key:"getXScales",value:function(){var g=this.state.xAxisMap;return g?Object.entries(g).reduce(function(S,m){var x=Ax(m,2),_=x[0],A=x[1];return q(q({},S),{},re({},_,A.scale))},{}):null}},{key:"getYScales",value:function(){var g=this.state.yAxisMap;return g?Object.entries(g).reduce(function(S,m){var x=Ax(m,2),_=x[0],A=x[1];return q(q({},S),{},re({},_,A.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(g){var S;return(S=this.state.xAxisMap)===null||S===void 0||(S=S[g])===null||S===void 0?void 0:S.scale}},{key:"getYScaleByAxisId",value:function(g){var S;return(S=this.state.yAxisMap)===null||S===void 0||(S=S[g])===null||S===void 0?void 0:S.scale}},{key:"getItemByXY",value:function(g){var S=this.state,m=S.formattedGraphicalItems,x=S.activeItem;if(m&&m.length)for(var _=0,A=m.length;_<A;_++){var E=m[_],M=E.props,P=E.item,T=P.type.defaultProps!==void 0?q(q({},P.type.defaultProps),P.props):P.props,j=Ft(P.type);if(j==="Bar"){var $=(M.data||[]).find(function(N){return LN(g,N)});if($)return{graphicalItem:E,payload:$}}else if(j==="RadialBar"){var k=(M.data||[]).find(function(N){return Db(g,N)});if(k)return{graphicalItem:E,payload:k}}else if(Fo(E,x)||zo(E,x)||Di(E,x)){var R=E2({graphicalItem:E,activeTooltipItem:x,itemData:T.data}),D=T.activeIndex===void 0?R:T.activeIndex;return{graphicalItem:q(q({},E),{},{childIndex:D}),payload:Di(E,x)?T.data[R]:E.props.data[R]}}}return null}},{key:"render",value:function(){var g=this;if(!Cm(this))return null;var S=this.props,m=S.children,x=S.className,_=S.width,A=S.height,E=S.style,M=S.compact,P=S.title,T=S.desc,j=Px(S,SF),$=oe(j,!1);if(M)return O.createElement(rx,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement($f,Fr({},$,{width:_,height:A,title:P,desc:T}),this.renderClipPath(),jm(m,this.renderMap)));if(this.props.accessibilityLayer){var k,R;$.tabIndex=(k=this.props.tabIndex)!==null&&k!==void 0?k:0,$.role=(R=this.props.role)!==null&&R!==void 0?R:"application",$.onKeyDown=function(N){g.accessibilityManager.keyboardEvent(N)},$.onFocus=function(){g.accessibilityManager.focus()}}var D=this.parseEventsOfWrapper();return O.createElement(rx,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement("div",Fr({className:ce("recharts-wrapper",x),style:q({position:"relative",cursor:"default",width:_,height:A},E)},D,{ref:function(z){g.container=z}}),O.createElement($f,Fr({},$,{width:_,height:A,title:P,desc:T,style:qF}),this.renderClipPath(),jm(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(O.Component);re(y,"displayName",r),re(y,"defaultProps",q({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},c)),re(y,"getDerivedStateFromProps",function(h,b){var w=h.dataKey,g=h.data,S=h.children,m=h.width,x=h.height,_=h.layout,A=h.stackOffset,E=h.margin,M=b.dataStartIndex,P=b.dataEndIndex;if(b.updateId===void 0){var T=Cx(h);return q(q(q({},T),{},{updateId:0},p(q(q({props:h},T),{},{updateId:0}),b)),{},{prevDataKey:w,prevData:g,prevWidth:m,prevHeight:x,prevLayout:_,prevStackOffset:A,prevMargin:E,prevChildren:S})}if(w!==b.prevDataKey||g!==b.prevData||m!==b.prevWidth||x!==b.prevHeight||_!==b.prevLayout||A!==b.prevStackOffset||!Hr(E,b.prevMargin)){var j=Cx(h),$={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},k=q(q({},Tx(b,g,_)),{},{updateId:b.updateId+1}),R=q(q(q({},j),$),k);return q(q(q({},R),p(q({props:h},R),b)),{},{prevDataKey:w,prevData:g,prevWidth:m,prevHeight:x,prevLayout:_,prevStackOffset:A,prevMargin:E,prevChildren:S})}if(!jf(S,b.prevChildren)){var D,N,z,I,L=it(S,un),F=L&&(D=(N=L.props)===null||N===void 0?void 0:N.startIndex)!==null&&D!==void 0?D:M,W=L&&(z=(I=L.props)===null||I===void 0?void 0:I.endIndex)!==null&&z!==void 0?z:P,Y=F!==M||W!==P,Q=!ae(g),ee=Q&&!Y?b.updateId:b.updateId+1;return q(q({updateId:ee},p(q(q({props:h},b),{},{updateId:ee,dataStartIndex:F,dataEndIndex:W}),b)),{},{prevChildren:S,dataStartIndex:F,dataEndIndex:W})}return null}),re(y,"renderActiveDot",function(h,b,w){var g;return O.isValidElement(h)?g=O.cloneElement(h,b):se(h)?g=h(b):g=O.createElement(Bo,b),O.createElement(pe,{className:"recharts-active-dot",key:w},g)});var v=O.forwardRef(function(b,w){return O.createElement(y,Fr({},b,{ref:w}))});return v.displayName=y.displayName,v},XF=YF({chartName:"ComposedChart",GraphicalChild:[Yo,lr,jn,Zo],axisComponents:[{axisType:"xAxis",AxisComp:Jo},{axisType:"yAxis",AxisComp:Qo},{axisType:"zAxis",AxisComp:Xo}],formatAxisMap:bL});const Wn=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},ZF=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),JF=e=>new Intl.NumberFormat("en-US").format(e);function QF(e){const{data:t,categories:r,formatDate:n,formatValue:i}=e,a=O.useMemo(()=>{if(!t||t.length===0)return Wn()&&console.warn("StackedAreaChart: No data provided. Chart will be empty."),[];const d=[...t].sort((y,v)=>y.timestamp-v.timestamp);return d.some(y=>typeof y.timestamp!="number"||Number.isNaN(y.timestamp))&&Wn()&&console.warn("StackedAreaChart: Some data points have invalid timestamps. These may not render correctly."),d},[t]),o=O.useMemo(()=>{if(!r||r.length===0)return Wn()&&console.warn("StackedAreaChart: No categories provided. Chart will be empty."),[];const d=r.filter(p=>!p.dataKey||!p.label||!p.color?(Wn()&&console.warn("StackedAreaChart: Category is missing required fields:",p),!1):!0);if(Wn()&&a.length>0){const p=a[0];if(p){const y=new Set(Object.keys(p)),v=d.filter(h=>!y.has(h.dataKey));v.length>0&&console.warn("StackedAreaChart: Some categories do not exist in data:",v.map(h=>h.dataKey))}}return d},[r,a]),{minTimestamp:u,maxTimestamp:s}=O.useMemo(()=>{if(a.length===0)return{minTimestamp:0,maxTimestamp:0};const d=a[0],p=a[a.length-1];return{minTimestamp:(d==null?void 0:d.timestamp)??0,maxTimestamp:(p==null?void 0:p.timestamp)??0}},[a]),l=O.useMemo(()=>a.length===0||o.length===0?0:Math.max(...a.map(d=>o.reduce((p,y)=>{const v=d[y.dataKey];return p+(typeof v=="number"?v:0)},0))),[a,o]),f=O.useMemo(()=>n||ZF,[n]),c=O.useMemo(()=>i||JF,[i]);return{processedData:a,processedCategories:o,minTimestamp:u,maxTimestamp:s,maxTotalValue:l,dateFormatter:f,valueFormatter:c}}function ez(e,t){const r=t-1-e,n=Vn.length,i=Math.floor(r/Math.max(1,t-1)*(n-1)),a=Math.min(Math.max(0,i),n-1);return Vn[a]??Vn[0]??"#000000"}function tz(e){return Array.from({length:e},(t,r)=>ez(r,e))}const Lr=tz(5),Nt={critical:"#dc3545",high:"#fd7e14",medium:"#ffc107",low:"#17a2b8",complete:dt.neoDigitalGreen[600],inProgress:"#007bff",farthest:Lr[0],far:Lr[1],close:Lr[2],closest:Lr[3],completed:Lr[4],primary:"#007bff",secondary:"#6c757d",success:dt.neoDigitalGreen[600],danger:"#dc3545",warning:"#ffc107",info:"#17a2b8",light:dt.neoGrey[200],dark:"#343a40"},fe={dimensions:{height:400,width:"100%",minHeight:200},margin:{top:10,right:30,left:0,bottom:0},animation:{enabled:!0,duration:1500,easing:"ease"},display:{showHeader:!0,showLegend:!0,showTooltip:!0,showXAxis:!0,showYAxis:!0,showGrid:!0},curve:{type:"monotone"},stack:{offset:"none"},axis:{strokeColor:dt.neoGrey[400],tickColor:"#666",labelColor:"#666"},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:dt.neoGrey[400],borderWidth:1,borderRadius:4,padding:10},legend:{iconSize:14,iconType:"square",layout:"horizontal",align:"center",verticalAlign:"bottom"},marker:{strokeColor:"#666",strokeWidth:2,strokeDasharray:"5 5",labelColor:"#666"}},rz={migration:Lr,severity:[Nt.critical,Nt.high,Nt.medium,Nt.low,Nt.info],status:[Nt.danger,Nt.warning,Nt.success],extended:["#e74c3c","#e67e22","#f39c12","#2ecc71","#3498db","#9b59b6","#1abc9c","#95a5a6"],colorblindSafe:["#0173B2","#DE8F05","#029E73","#CC78BC","#CA9161","#FBAFE4","#949494","#ECE133"]},nz={FARTHEST:"Farthest",FAR:"Far",CLOSE:"Close",CLOSEST:"Closest",COMPLETE:"Complete",CRITICAL:"Critical",HIGH:"High",MEDIUM:"Medium",LOW:"Low",INFO:"Info",NOT_APPLICABLE:"N/A",NO_LST:"No LST",DATA_MISSING:"Data Missing"},iz=({data:e,categories:t,markers:r=[],title:n,subtitle:i,showHeader:a=fe.display.showHeader,height:o=fe.dimensions.height,width:u=fe.dimensions.width,showLegend:s=fe.display.showLegend,showTooltip:l=fe.display.showTooltip,showXAxis:f=fe.display.showXAxis,showYAxis:c=fe.display.showYAxis,showGrid:d=fe.display.showGrid,enableAnimation:p=fe.animation.enabled,animationDuration:y=fe.animation.duration,animationEasing:v=fe.animation.easing,formatDate:h,formatValue:b,tooltipFormatter:w,slotProps:g,margin:S=fe.margin,curveType:m=fe.curve.type,stackOffset:x=fe.stack.offset})=>{const{processedData:_,processedCategories:A,dateFormatter:E,valueFormatter:M}=QF({data:e,categories:t,formatDate:h,formatValue:b}),[P,T]=O.useState(null),j=_.map(D=>{const N=r.find(z=>z.timestamp===D.timestamp);return N&&N.label?{...D,__markerLabel:N.label}:D}),$=D=>E(D),k=D=>M(D),R=({active:D,payload:N,label:z})=>{if(!D||!N||N.length===0)return P!==null&&T(null),null;const I=j.find(F=>F.timestamp===z);if(I&&"__markerLabel"in I){P!==z&&T(z);const W=String(I.__markerLabel).split(" - "),Y=W[0]||"",Q=W[1]||"";return X.jsxs(te.Box,{sx:{backgroundColor:"#131E7A",border:"1px solid #2F42FF",borderRadius:"4px",padding:"12px 16px"},children:[X.jsx(te.Typography,{sx:{color:"#B6BFFF",fontSize:"14px",fontWeight:400,marginBottom:"4px"},children:Q}),X.jsx(te.Typography,{sx:{color:"white",fontSize:"14px",fontWeight:500},children:Y})]})}return X.jsxs(te.Box,{sx:{backgroundColor:fe.tooltip.backgroundColor,border:`${fe.tooltip.borderWidth}px solid ${fe.tooltip.borderColor}`,borderRadius:fe.tooltip.borderRadius,padding:fe.tooltip.padding},children:[X.jsx(te.Typography,{sx:{marginBottom:"8px",fontWeight:500},children:E(z)}),N.map((F,W)=>X.jsxs(te.Box,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[X.jsx(te.Box,{sx:{width:10,height:10,backgroundColor:F.color,borderRadius:"2px"}}),X.jsxs(te.Typography,{sx:{fontSize:"14px"},children:[F.name,": ",M(F.value)]})]},`item-${W}`))]})};return X.jsxs(te.Stack,{sx:{width:"100%",alignItems:"center"},...g==null?void 0:g.container,children:[a&&(n||i)&&X.jsxs(te.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},...g==null?void 0:g.header,children:[n&&X.jsx(te.Typography,{variant:"h5",sx:{fontWeight:500},...g==null?void 0:g.title,children:n}),i&&X.jsx(te.Typography,{variant:"body2",sx:{color:"text.secondary"},...g==null?void 0:g.subtitle,children:i})]}),X.jsx(te.Box,{sx:{width:"100%",height:`${o}px`,minHeight:fe.dimensions.minHeight},...g==null?void 0:g.chartContainer,children:X.jsx(dM,{width:u,height:"100%",children:X.jsxs(XF,{data:j,margin:S,stackOffset:x,children:[d&&X.jsx(ZO,{strokeDasharray:"3 3",stroke:fe.axis.strokeColor,opacity:.3}),f&&X.jsx(Jo,{dataKey:"timestamp",type:"number",domain:["dataMin","dataMax"],tickFormatter:$,stroke:fe.axis.strokeColor,tick:{fill:fe.axis.tickColor},scale:"time"}),c&&X.jsx(Qo,{tickFormatter:k,stroke:fe.axis.strokeColor,tick:{fill:fe.axis.tickColor}}),l&&X.jsx(Tt,{content:X.jsx(R,{})}),s&&X.jsx(gr,{iconSize:fe.legend.iconSize,iconType:fe.legend.iconType,layout:fe.legend.layout,align:fe.legend.align,verticalAlign:fe.legend.verticalAlign}),A.map(D=>X.jsx(lr,{type:m,dataKey:D.dataKey,name:D.label,stackId:"1",stroke:D.color,fill:D.strokeDasharray?"transparent":D.color,fillOpacity:D.strokeDasharray?0:D.fillOpacity??.7,strokeWidth:D.strokeWidth??2,strokeDasharray:D.strokeDasharray,isAnimationActive:p,animationDuration:y,animationEasing:v},D.dataKey)),r.filter(D=>P===null||D.timestamp===P).map((D,N)=>X.jsx(Wo,{x:D.timestamp,stroke:D.color??fe.marker.strokeColor,strokeWidth:D.strokeWidth??fe.marker.strokeWidth,strokeDasharray:D.strokeDasharray??fe.marker.strokeDasharray,strokeOpacity:P===null?0:1},`marker-${D.timestamp}-${N}`))]})})})]})},Et={colors:{primary:"#992FB9",background:"#FFFFFF",border:"#9CA3AF",highlightBackground:"rgba(229, 231, 235, 0.5)",monthLabel:"#9ca3af",tooltipText:"#6b7280"},dimensions:{height:32,eventWidth:2}},mt={header:{sx:{}},title:{sx:{m:0}},instructions:{sx:{color:"text.secondary",minHeight:"40px",display:"flex",alignItems:"center"}},monthLabelsContainer:{sx:{justifyContent:"space-between",px:1.25,height:"20px",fontSize:"11px",color:Et.colors.monthLabel,mb:1}},monthLabel:{sx:{fontSize:"11px"}},timeline:{sx:{position:"relative",height:`${Et.dimensions.height}px`,backgroundColor:Et.colors.background,borderRadius:0,overflow:"hidden",border:`1px solid ${Et.colors.border}`}},event:{sx:{position:"absolute",top:0,width:`${Et.dimensions.eventWidth}px`,height:"100%",backgroundColor:Et.colors.primary,cursor:"pointer",transition:"transform 0.2s",transformOrigin:"center"}},selection:{sx:{position:"absolute",top:0,height:"100%",backgroundColor:Et.colors.highlightBackground,pointerEvents:"none"}},tooltip:{sx:{position:"absolute",bottom:"-40px",backgroundColor:"white",p:"6px 10px",borderRadius:.5,boxShadow:"0 2px 8px rgba(0,0,0,0.15)",whiteSpace:"nowrap",pointerEvents:"none",zIndex:10,border:`1px solid ${Et.colors.border}`}},tooltipEventName:{sx:{fontWeight:600}},tooltipDate:{sx:{color:Et.colors.tooltipText,fontSize:"11px"}}},az=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},oz=({events:e,selectedRange:t,onSelectionChange:r,enableZoom:n,zoomToSelection:i,visibleRange:a,onVisibleRangeChange:o})=>{az()&&e.length>1&&(e.every((z,I)=>I===0||z.timestamp>=e[I-1].timestamp)||console.warn("TimelineChart: events array should be sorted by timestamp for optimal performance and correct behavior."));const[u,s]=O.useState(!1),[l,f]=O.useState(null),[c,d]=O.useState({start:null,end:null}),[p,y]=O.useState({start:null,end:null}),[v,h]=O.useState(null),b=t??c,w=a??p,g=O.useMemo(()=>{var N;return e.length>0?((N=e[0])==null?void 0:N.timestamp)??0:0},[e]),S=O.useMemo(()=>{var N;return e.length>0?((N=e[e.length-1])==null?void 0:N.timestamp)??0:0},[e]),m=O.useMemo(()=>i&&w.start&&w.end?w.start:g,[i,w,g]),x=O.useMemo(()=>i&&w.start&&w.end?w.end:S,[i,w,S]),_=O.useMemo(()=>x-m,[x,m]),A=O.useCallback(N=>_===0?0:(N-m)/_*100,[m,_]),E=O.useCallback((N,z)=>{const I=N/z*100;return m+I/100*_},[m,_]),M=O.useCallback(N=>{t===void 0&&d(N),r==null||r(N)},[t,r]),P=O.useCallback(N=>{const z=N.currentTarget.getBoundingClientRect(),I=N.clientX-z.left,L=E(I,z.width);s(!0),f(L),M({start:L,end:L})},[E,M]),T=O.useCallback(N=>{if(!u||l===null)return;const z=N.currentTarget.getBoundingClientRect(),I=N.clientX-z.left,L=E(I,z.width);M({start:Math.min(l,L),end:Math.max(l,L)})},[u,l,E,M]),j=O.useCallback(()=>{const N=u;if(s(!1),N&&i&&b.start&&b.end&&b.start!==b.end){const z={start:b.start,end:b.end};a===void 0&&y(z),o==null||o(z)}},[u,i,b,a,o]),$=O.useCallback(N=>{if(N.preventDefault(),!n||!b.start||!b.end||_===0)return;const z=(b.start+b.end)/2,I=b.end-b.start,L=N.deltaY>0?1.1:.9,F=Math.max(I*L,_*.01),W=_*1.5,Y=Math.min(F,W);let Q=z-Y/2,ee=z+Y/2;Q<m&&(Q=m,ee=Math.min(m+Y,x)),ee>x&&(ee=x,Q=Math.max(x-Y,m)),M({start:Q,end:ee})},[n,b,_,m,x,M]),k=O.useCallback(()=>!b.start||!b.end?[]:e.filter(N=>N.timestamp>=b.start&&N.timestamp<=b.end),[e,b]),R=O.useCallback(()=>{const N={start:g,end:S};a===void 0&&y({start:null,end:null}),o==null||o(N)},[g,S,a,o]),D=O.useCallback(()=>{i&&R()},[i,R]);return{isDragging:u,dragStart:l,internalSelectedRange:b,internalVisibleRange:w,hoveredEvent:v,minDate:m,maxDate:x,timeSpan:_,getPositionFromTimestamp:A,getTimestampFromPosition:E,handleMouseDown:P,handleMouseMove:T,handleMouseUp:j,handleWheel:$,handleDoubleClick:D,setHoveredEvent:h,getEventsInRange:k,resetZoom:R}},uz=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),sz=e=>new Date(e).toLocaleDateString("en-US",{month:"short",year:"numeric"}),lz=e=>{const t=e/864e5;return t>60?r=>new Date(r).toLocaleDateString("en-US",{month:"short",year:"numeric"}):t>7?r=>new Date(r).toLocaleDateString("en-US",{month:"short",day:"numeric"}):r=>new Date(r).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"numeric",hour12:!0})},cz=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},fz=e=>({header:{...mt.header,...e==null?void 0:e.header},title:{...mt.title,...e==null?void 0:e.title},instructions:{...mt.instructions,...e==null?void 0:e.instructions},monthLabelsContainer:{...mt.monthLabelsContainer,...e==null?void 0:e.monthLabelsContainer},monthLabel:{...mt.monthLabel,...e==null?void 0:e.monthLabel},timeline:{...mt.timeline,...e==null?void 0:e.timeline},event:{...mt.event,...e==null?void 0:e.event},selection:{...mt.selection,...e==null?void 0:e.selection},tooltip:{...mt.tooltip,...e==null?void 0:e.tooltip},tooltipEventName:{...mt.tooltipEventName,...e==null?void 0:e.tooltipEventName},tooltipDate:{...mt.tooltipDate,...e==null?void 0:e.tooltipDate}}),dz=({events:e,onSelectionChange:t,selectedRange:r,height:n=Et.dimensions.height,formatDate:i=uz,formatMonthYear:a=sz,showMonthLabels:o=!0,monthLabelCount:u=6,enableZoom:s=!0,showHeader:l=!0,title:f="Event Timeline Selector",zoomToSelection:c=!1,visibleRange:d,onVisibleRangeChange:p,slotProps:y})=>{cz()&&e.length>500&&console.warn(`TimelineChart: Rendering ${e.length} events may impact performance. Consider implementing virtualization or canvas rendering for datasets larger than 500 events.`);const v=O.useMemo(()=>fz(y),[y]),{isDragging:h,internalSelectedRange:b,hoveredEvent:w,minDate:g,timeSpan:S,getPositionFromTimestamp:m,handleMouseDown:x,handleMouseMove:_,handleMouseUp:A,handleWheel:E,handleDoubleClick:M,setHoveredEvent:P,getEventsInRange:T}=oz({events:e,selectedRange:r,onSelectionChange:t,enableZoom:s,zoomToSelection:c,visibleRange:d,onVisibleRangeChange:p}),j=b.start&&b.end?`Selected: ${i(b.start)} - ${i(b.end)} (${T().length} events)`:"Click and drag on the timeline below to select a date range. Use mouse wheel to zoom in/out.";return X.jsxs(te.Stack,{sx:{width:"100%"},children:[l&&X.jsxs(te.Stack,{spacing:1,sx:{mb:3},...v.header,children:[X.jsx(te.Typography,{variant:"h5",...v.title,children:f}),X.jsx(te.Typography,{variant:"body2",...v.instructions,children:j})]}),o&&X.jsx(te.Stack,{direction:"row",...v.monthLabelsContainer,children:Array.from({length:u},($,k)=>{const R=g+S/(u-1)*k,D=lz(S);return X.jsx(te.Typography,{variant:"caption",...v.monthLabel,children:D(R)},k)})}),X.jsxs(te.Box,{...v.timeline,sx:{...v.timeline.sx,height:`${n}px`},children:[X.jsx(te.Box,{sx:{position:"absolute",top:0,left:0,right:0,height:"100%"},children:e.map(($,k)=>{const R=m($.timestamp);return X.jsx(te.Box,{onMouseEnter:()=>P($),onMouseLeave:()=>P(null),"aria-label":`Event: ${$.eventName} at ${i($.timestamp)}`,...v.event,sx:{...v.event.sx,left:`${R}%`,transform:(w==null?void 0:w.timestamp)===$.timestamp?"scaleX(2)":"scaleX(1)"}},`${$.timestamp}-${k}`)})}),b.start&&b.end&&(!c||h)&&X.jsx(te.Box,{...v.selection,sx:{...v.selection.sx,left:`${m(b.start)}%`,width:`${m(b.end)-m(b.start)}%`}}),X.jsx(te.Box,{role:"application","aria-label":"Interactive timeline - click and drag to select date range","aria-describedby":l?void 0:"timeline-instructions",tabIndex:0,sx:{position:"absolute",top:0,left:0,right:0,height:"100%",cursor:"crosshair"},onMouseDown:x,onMouseMove:_,onMouseUp:A,onMouseLeave:A,onWheel:E,onDoubleClick:M}),!l&&X.jsx("span",{id:"timeline-instructions",style:{display:"none"},children:j}),w&&X.jsxs(te.Box,{role:"tooltip","aria-live":"polite",...v.tooltip,sx:{...v.tooltip.sx,left:`${m(w.timestamp)}%`,transform:"translateX(-50%)"},children:[X.jsx(te.Typography,{variant:"body2",...v.tooltipEventName,children:w.eventName}),X.jsx(te.Typography,{variant:"caption",...v.tooltipDate,children:i(w.timestamp)})]})]})]})},pz="#8b5cf6",hz=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),vz=({events:e,title:t="Events in Selected Range",maxHeight:r="200px",formatDate:n=hz,primaryColor:i=pz})=>e.length===0?null:X.jsxs("div",{style:{marginTop:"24px",padding:"20px",backgroundColor:"#f9fafb",borderRadius:"8px",border:"1px solid #e5e7eb"},children:[X.jsxs("h3",{style:{margin:"0 0 12px 0",fontSize:"16px",color:"#374151"},children:[t," (",e.length,")"]}),X.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(250px, 1fr))",gap:"8px",maxHeight:r,overflowY:"auto"},children:e.map((a,o)=>X.jsxs("div",{style:{padding:"8px 12px",backgroundColor:"white",borderRadius:"4px",fontSize:"13px",border:"1px solid #e5e7eb"},children:[X.jsx("div",{style:{fontWeight:500,color:i},children:a.eventName}),X.jsx("div",{style:{color:"#6b7280",fontSize:"12px",marginTop:"2px"},children:n(a.timestamp)})]},`${a.timestamp}-${o}`))})]});exports.CAMPAIGN_DATA_MISSING=Zn;exports.CAMPAIGN_NOT_APPLICABLE=Yn;exports.CAMPAIGN_NO_LST=Xn;exports.CATEGORY_LABELS=nz;exports.DEFAULT_CHART_COLORS=dt;exports.DEFAULT_CHART_CONFIG=Ke;exports.DEFAULT_STACKED_AREA_COLORS=Nt;exports.DEFAULT_STACKED_AREA_CONFIG=fe;exports.MEASURE_GRADIENT_COLORS=Vn;exports.MODERNE_VULNERABILITY_COLORS=Wr;exports.ParliamentChart=aE;exports.STACKED_AREA_PALETTES=rz;exports.StackedAreaChart=iz;exports.TimelineChart=dz;exports.TimelineSelectedEvents=vz;exports.calculateDataSeries=Pw;exports.calculateOptimalArcAngle=_w;exports.calculateOptimalSeatSize=Aw;
25
+ ${$.noLstHatch.lines} 3px,
26
+ ${$.noLstHatch.lines} 4px
27
+ )`,borderRadius:"50%"}}}})}),x.jsx(T.TableCell,{children:x.jsxs(T.Stack,{direction:"row",alignItems:"center",gap:.5,children:[x.jsx("span",{children:y.label}),Ol[y.label]&&x.jsx(T.Tooltip,{title:Ol[y.label],placement:"right",arrow:!0,children:x.jsx(Cs.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),x.jsx(T.TableCell,{align:"right",children:y.value}),x.jsxs(T.TableCell,{align:"right",children:[y.percentage,"%"]})]},y.id)})})]})})]})},ae={colors:{primary:"#992FB9",background:"#FFFFFF",border:"#9CA3AF",highlightBackground:"rgba(229, 231, 235, 0.5)",monthLabel:"#9ca3af",tooltipText:"#6b7280"},dimensions:{height:32,eventWidth:2}},re={header:{sx:{}},title:{sx:{m:0}},instructions:{sx:{color:"text.secondary",minHeight:"40px",display:"flex",alignItems:"center"}},monthLabelsContainer:{sx:{justifyContent:"space-between",px:1.25,height:"20px",fontSize:"11px",color:ae.colors.monthLabel,mb:1}},monthLabel:{sx:{fontSize:"11px"}},timeline:{sx:{position:"relative",height:`${ae.dimensions.height}px`,backgroundColor:ae.colors.background,borderRadius:0,overflow:"hidden",border:`1px solid ${ae.colors.border}`}},event:{sx:{position:"absolute",top:0,width:`${ae.dimensions.eventWidth}px`,height:"100%",backgroundColor:ae.colors.primary,cursor:"pointer",transition:"transform 0.2s",transformOrigin:"center"}},selection:{sx:{position:"absolute",top:0,height:"100%",backgroundColor:ae.colors.highlightBackground,pointerEvents:"none"}},tooltip:{sx:{position:"absolute",bottom:"-40px",backgroundColor:"white",p:"6px 10px",borderRadius:.5,boxShadow:"0 2px 8px rgba(0,0,0,0.15)",whiteSpace:"nowrap",pointerEvents:"none",zIndex:10,border:`1px solid ${ae.colors.border}`}},tooltipEventName:{sx:{fontWeight:600}},tooltipDate:{sx:{color:ae.colors.tooltipText,fontSize:"11px"}}},xd=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},Ad=({events:e,selectedRange:t,onSelectionChange:n,enableZoom:r,zoomToSelection:a,visibleRange:i,onVisibleRangeChange:o})=>{xd()&&e.length>1&&(e.every((U,te)=>te===0||U.timestamp>=e[te-1].timestamp)||console.warn("TimelineChart: events array should be sorted by timestamp for optimal performance and correct behavior."));const[l,s]=D.useState(!1),[u,f]=D.useState(null),[d,c]=D.useState({start:null,end:null}),[h,m]=D.useState({start:null,end:null}),[v,_]=D.useState(null),p=t??d,b=i??h,y=D.useMemo(()=>{var O;return e.length>0?((O=e[0])==null?void 0:O.timestamp)??0:0},[e]),S=D.useMemo(()=>{var O;return e.length>0?((O=e[e.length-1])==null?void 0:O.timestamp)??0:0},[e]),q=D.useMemo(()=>a&&b.start&&b.end?b.start:y,[a,b,y]),C=D.useMemo(()=>a&&b.start&&b.end?b.end:S,[a,b,S]),A=D.useMemo(()=>C-q,[C,q]),E=D.useCallback(O=>A===0?0:(O-q)/A*100,[q,A]),P=D.useCallback((O,U)=>{const te=O/U*100;return q+te/100*A},[q,A]),L=D.useCallback(O=>{t===void 0&&c(O),n==null||n(O)},[t,n]),w=D.useCallback(O=>{const U=O.currentTarget.getBoundingClientRect(),te=O.clientX-U.left,ne=P(te,U.width);s(!0),f(ne),L({start:ne,end:ne})},[P,L]),z=D.useCallback(O=>{if(!l||u===null)return;const U=O.currentTarget.getBoundingClientRect(),te=O.clientX-U.left,ne=P(te,U.width);L({start:Math.min(u,ne),end:Math.max(u,ne)})},[l,u,P,L]),N=D.useCallback(()=>{const O=l;if(s(!1),O&&a&&p.start&&p.end&&p.start!==p.end){const U={start:p.start,end:p.end};i===void 0&&m(U),o==null||o(U)}},[l,a,p,i,o]),B=D.useCallback(O=>{if(O.preventDefault(),!r||!p.start||!p.end||A===0)return;const U=(p.start+p.end)/2,te=p.end-p.start,ne=O.deltaY>0?1.1:.9,Ne=Math.max(te*ne,A*.01),be=A*1.5,ce=Math.min(Ne,be);let fe=U-ce/2,de=U+ce/2;fe<q&&(fe=q,de=Math.min(q+ce,C)),de>C&&(de=C,fe=Math.max(C-ce,q)),L({start:fe,end:de})},[r,p,A,q,C,L]),Y=D.useCallback(()=>!p.start||!p.end?[]:e.filter(O=>O.timestamp>=p.start&&O.timestamp<=p.end),[e,p]),ee=D.useCallback(()=>{const O={start:y,end:S};i===void 0&&m({start:null,end:null}),o==null||o(O)},[y,S,i,o]),ve=D.useCallback(()=>{a&&ee()},[a,ee]);return{isDragging:l,dragStart:u,internalSelectedRange:p,internalVisibleRange:b,hoveredEvent:v,minDate:q,maxDate:C,timeSpan:A,getPositionFromTimestamp:E,getTimestampFromPosition:P,handleMouseDown:w,handleMouseMove:z,handleMouseUp:N,handleWheel:B,handleDoubleClick:ve,setHoveredEvent:_,getEventsInRange:Y,resetZoom:ee}},Cd=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),qd=e=>new Date(e).toLocaleDateString("en-US",{month:"short",year:"numeric"}),Rd=e=>{const t=e/864e5;return t>60?n=>new Date(n).toLocaleDateString("en-US",{month:"short",year:"numeric"}):t>7?n=>new Date(n).toLocaleDateString("en-US",{month:"short",day:"numeric"}):n=>new Date(n).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"numeric",hour12:!0})},wd=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},Td=e=>({header:{...re.header,...e==null?void 0:e.header},title:{...re.title,...e==null?void 0:e.title},instructions:{...re.instructions,...e==null?void 0:e.instructions},monthLabelsContainer:{...re.monthLabelsContainer,...e==null?void 0:e.monthLabelsContainer},monthLabel:{...re.monthLabel,...e==null?void 0:e.monthLabel},timeline:{...re.timeline,...e==null?void 0:e.timeline},event:{...re.event,...e==null?void 0:e.event},selection:{...re.selection,...e==null?void 0:e.selection},tooltip:{...re.tooltip,...e==null?void 0:e.tooltip},tooltipEventName:{...re.tooltipEventName,...e==null?void 0:e.tooltipEventName},tooltipDate:{...re.tooltipDate,...e==null?void 0:e.tooltipDate}}),Md=({events:e,onSelectionChange:t,selectedRange:n,height:r=ae.dimensions.height,formatDate:a=Cd,formatMonthYear:i=qd,showMonthLabels:o=!0,monthLabelCount:l=6,enableZoom:s=!0,showHeader:u=!0,title:f="Event Timeline Selector",zoomToSelection:d=!1,visibleRange:c,onVisibleRangeChange:h,slotProps:m})=>{wd()&&e.length>500&&console.warn(`TimelineChart: Rendering ${e.length} events may impact performance. Consider implementing virtualization or canvas rendering for datasets larger than 500 events.`);const v=D.useMemo(()=>Td(m),[m]),{isDragging:_,internalSelectedRange:p,hoveredEvent:b,minDate:y,timeSpan:S,getPositionFromTimestamp:q,handleMouseDown:C,handleMouseMove:A,handleMouseUp:E,handleWheel:P,handleDoubleClick:L,setHoveredEvent:w,getEventsInRange:z}=Ad({events:e,selectedRange:n,onSelectionChange:t,enableZoom:s,zoomToSelection:d,visibleRange:c,onVisibleRangeChange:h}),N=p.start&&p.end?`Selected: ${a(p.start)} - ${a(p.end)} (${z().length} events)`:"Click and drag on the timeline below to select a date range. Use mouse wheel to zoom in/out.";return x.jsxs(T.Stack,{sx:{width:"100%"},children:[u&&x.jsxs(T.Stack,{spacing:1,sx:{mb:3},...v.header,children:[x.jsx(T.Typography,{variant:"h5",...v.title,children:f}),x.jsx(T.Typography,{variant:"body2",...v.instructions,children:N})]}),o&&x.jsx(T.Stack,{direction:"row",...v.monthLabelsContainer,children:Array.from({length:l},(B,Y)=>{const ee=y+S/(l-1)*Y,ve=Rd(S);return x.jsx(T.Typography,{variant:"caption",...v.monthLabel,children:ve(ee)},Y)})}),x.jsxs(T.Box,{...v.timeline,sx:{...v.timeline.sx,height:`${r}px`},children:[x.jsx(T.Box,{sx:{position:"absolute",top:0,left:0,right:0,height:"100%"},children:e.map((B,Y)=>{const ee=q(B.timestamp);return x.jsx(T.Box,{onMouseEnter:()=>w(B),onMouseLeave:()=>w(null),"aria-label":`Event: ${B.eventName} at ${a(B.timestamp)}`,...v.event,sx:{...v.event.sx,left:`${ee}%`,transform:(b==null?void 0:b.timestamp)===B.timestamp?"scaleX(2)":"scaleX(1)"}},`${B.timestamp}-${Y}`)})}),p.start&&p.end&&(!d||_)&&x.jsx(T.Box,{...v.selection,sx:{...v.selection.sx,left:`${q(p.start)}%`,width:`${q(p.end)-q(p.start)}%`}}),x.jsx(T.Box,{role:"application","aria-label":"Interactive timeline - click and drag to select date range","aria-describedby":u?void 0:"timeline-instructions",tabIndex:0,sx:{position:"absolute",top:0,left:0,right:0,height:"100%",cursor:"crosshair"},onMouseDown:C,onMouseMove:A,onMouseUp:E,onMouseLeave:E,onWheel:P,onDoubleClick:L}),!u&&x.jsx("span",{id:"timeline-instructions",style:{display:"none"},children:N}),b&&x.jsxs(T.Box,{role:"tooltip","aria-live":"polite",...v.tooltip,sx:{...v.tooltip.sx,left:`${q(b.timestamp)}%`,transform:"translateX(-50%)"},children:[x.jsx(T.Typography,{variant:"body2",...v.tooltipEventName,children:b.eventName}),x.jsx(T.Typography,{variant:"caption",...v.tooltipDate,children:a(b.timestamp)})]})]})]})},Od="#8b5cf6",Ed=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),Dd=({events:e,title:t="Events in Selected Range",maxHeight:n="200px",formatDate:r=Ed,primaryColor:a=Od})=>e.length===0?null:x.jsxs("div",{style:{marginTop:"24px",padding:"20px",backgroundColor:"#f9fafb",borderRadius:"8px",border:"1px solid #e5e7eb"},children:[x.jsxs("h3",{style:{margin:"0 0 12px 0",fontSize:"16px",color:"#374151"},children:[t," (",e.length,")"]}),x.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(250px, 1fr))",gap:"8px",maxHeight:n,overflowY:"auto"},children:e.map((i,o)=>x.jsxs("div",{style:{padding:"8px 12px",backgroundColor:"white",borderRadius:"4px",fontSize:"13px",border:"1px solid #e5e7eb"},children:[x.jsx("div",{style:{fontWeight:500,color:a},children:i.eventName}),x.jsx("div",{style:{color:"#6b7280",fontSize:"12px",marginTop:"2px"},children:r(i.timestamp)})]},`${i.timestamp}-${o}`))})]});exports.CAMPAIGN_DATA_MISSING=Te;exports.CAMPAIGN_NOT_APPLICABLE=Re;exports.CAMPAIGN_NO_LST=we;exports.DEFAULT_CHART_COLORS=le;exports.DEFAULT_CHART_CONFIG=K;exports.MODERNE_VULNERABILITY_COLORS=ge;exports.ParliamentChart=Sd;exports.TimelineChart=Md;exports.TimelineSelectedEvents=Dd;exports.calculateDataSeries=xs;exports.calculateOptimalArcAngle=_s;exports.calculateOptimalSeatSize=Ss;