@moderneinc/react-charts 1.1.0 → 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/components/parliament-chart/hooks/{useParliamentChart.d.ts → use-parliament-chart.hook.d.ts} +1 -1
- package/dist/components/parliament-chart/{ParliamentChart.d.ts → parliament-chart.component.d.ts} +1 -1
- package/dist/components/parliament-chart/{ParliamentChart.types.d.ts → parliament-chart.types.d.ts} +1 -1
- package/dist/components/timeline-chart/hooks/use-timeline-chart.hook.d.ts +2 -0
- package/dist/components/timeline-chart/timeline-chart.component.d.ts +9 -0
- package/dist/components/timeline-chart/timeline-chart.types.d.ts +112 -0
- package/dist/components/timeline-chart/timeline-selected-events.component.d.ts +9 -0
- package/dist/index.cjs +11 -11
- package/dist/index.d.ts +11 -8
- package/dist/index.js +2945 -2438
- package/dist/theme/timeline-defaults.d.ts +50 -0
- package/package.json +5 -4
- /package/dist/components/parliament-chart/{ParliamentChart.constants.d.ts → parliament-chart.constants.d.ts} +0 -0
- /package/dist/components/parliament-chart/utils/{parliamentArcCalculator.d.ts → parliament-arc-calculator.d.ts} +0 -0
- /package/dist/components/parliament-chart/utils/{parliamentChartData.utils.d.ts → parliament-chart-data.utils.d.ts} +0 -0
- /package/dist/components/parliament-chart/utils/{parliamentSvgEnhanced.d.ts → parliament-svg-enhanced.d.ts} +0 -0
- /package/dist/components/parliament-chart/utils/{parliamentSvgPatterns.d.ts → parliament-svg-patterns.d.ts} +0 -0
- /package/dist/components/parliament-chart/utils/{parliamentSvg.d.ts → parliament-svg.d.ts} +0 -0
- /package/dist/theme/{defaultColors.d.ts → default-colors.d.ts} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react/jsx-runtime"),_s=require("@mui/icons-material"),M=require("@mui/material"),fe=require("react"),Ss=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class ve{constructor(e,n,t){this.normal=n,this.property=e,t&&(this.space=t)}}ve.prototype.normal={};ve.prototype.property={};ve.prototype.space=void 0;function Sl(r,e){const n={},t={};for(const a of r)Object.assign(n,a.property),Object.assign(t,a.normal);return new ve(n,t,e)}function ye(r){return r.toLowerCase()}class B{constructor(e,n){this.attribute=n,this.property=e}}B.prototype.attribute="";B.prototype.booleanish=!1;B.prototype.boolean=!1;B.prototype.commaOrSpaceSeparated=!1;B.prototype.commaSeparated=!1;B.prototype.defined=!1;B.prototype.mustUseProperty=!1;B.prototype.number=!1;B.prototype.overloadedBoolean=!1;B.prototype.property="";B.prototype.spaceSeparated=!1;B.prototype.space=void 0;let xs=0;const x=Q(),E=Q(),zn=Q(),p=Q(),O=Q(),te=Q(),U=Q();function Q(){return 2**++xs}const Bn=Object.freeze(Object.defineProperty({__proto__:null,boolean:x,booleanish:E,commaOrSpaceSeparated:U,commaSeparated:te,number:p,overloadedBoolean:zn,spaceSeparated:O},Symbol.toStringTag,{value:"Module"})),Be=Object.keys(Bn);class Wn extends B{constructor(e,n,t,a){let i=-1;if(super(e,n),sa(this,"space",a),typeof t=="number")for(;++i<Be.length;){const o=Be[i];sa(this,Be[i],(t&Bn[o])===Bn[o])}}}Wn.prototype.defined=!0;function sa(r,e,n){n&&(r[e]=n)}function ie(r){const e={},n={};for(const[t,a]of Object.entries(r.properties)){const i=new Wn(t,r.transform(r.attributes||{},t),a,r.space);r.mustUseProperty&&r.mustUseProperty.includes(t)&&(i.mustUseProperty=!0),e[t]=i,n[ye(t)]=t,n[ye(i.attribute)]=t}return new ve(e,n,r.space)}const xl=ie({properties:{ariaActiveDescendant:null,ariaAtomic:E,ariaAutoComplete:null,ariaBusy:E,ariaChecked:E,ariaColCount:p,ariaColIndex:p,ariaColSpan:p,ariaControls:O,ariaCurrent:null,ariaDescribedBy:O,ariaDetails:null,ariaDisabled:E,ariaDropEffect:O,ariaErrorMessage:null,ariaExpanded:E,ariaFlowTo:O,ariaGrabbed:E,ariaHasPopup:null,ariaHidden:E,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:O,ariaLevel:p,ariaLive:null,ariaModal:E,ariaMultiLine:E,ariaMultiSelectable:E,ariaOrientation:null,ariaOwns:O,ariaPlaceholder:null,ariaPosInSet:p,ariaPressed:E,ariaReadOnly:E,ariaRelevant:null,ariaRequired:E,ariaRoleDescription:O,ariaRowCount:p,ariaRowIndex:p,ariaRowSpan:p,ariaSelected:E,ariaSetSize:p,ariaSort:null,ariaValueMax:p,ariaValueMin:p,ariaValueNow:p,ariaValueText:null,role:null},transform(r,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function Al(r,e){return e in r?r[e]:e}function ql(r,e){return Al(r,e.toLowerCase())}const As=ie({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:te,acceptCharset:O,accessKey:O,action:null,allow:null,allowFullScreen:x,allowPaymentRequest:x,allowUserMedia:x,alt:null,as:null,async:x,autoCapitalize:null,autoComplete:O,autoFocus:x,autoPlay:x,blocking:O,capture:null,charSet:null,checked:x,cite:null,className:O,cols:p,colSpan:null,content:null,contentEditable:E,controls:x,controlsList:O,coords:p|te,crossOrigin:null,data:null,dateTime:null,decoding:null,default:x,defer:x,dir:null,dirName:null,disabled:x,download:zn,draggable:E,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:x,formTarget:null,headers:O,height:p,hidden:zn,high:p,href:null,hrefLang:null,htmlFor:O,httpEquiv:O,id:null,imageSizes:null,imageSrcSet:null,inert:x,inputMode:null,integrity:null,is:null,isMap:x,itemId:null,itemProp:O,itemRef:O,itemScope:x,itemType:O,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:x,low:p,manifest:null,max:null,maxLength:p,media:null,method:null,min:null,minLength:p,multiple:x,muted:x,name:null,nonce:null,noModule:x,noValidate:x,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:x,optimum:p,pattern:null,ping:O,placeholder:null,playsInline:x,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:x,referrerPolicy:null,rel:O,required:x,reversed:x,rows:p,rowSpan:p,sandbox:O,scope:null,scoped:x,seamless:x,selected:x,shadowRootClonable:x,shadowRootDelegatesFocus:x,shadowRootMode:null,shape:null,size:p,sizes:null,slot:null,span:p,spellCheck:E,src:null,srcDoc:null,srcLang:null,srcSet:null,start:p,step:null,style:null,tabIndex:p,target:null,title:null,translate:null,type:null,typeMustMatch:x,useMap:null,value:E,width:p,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:O,axis:null,background:null,bgColor:null,border:p,borderColor:null,bottomMargin:p,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:x,declare:x,event:null,face:null,frame:null,frameBorder:null,hSpace:p,leftMargin:p,link:null,longDesc:null,lowSrc:null,marginHeight:p,marginWidth:p,noResize:x,noHref:x,noShade:x,noWrap:x,object:null,profile:null,prompt:null,rev:null,rightMargin:p,rules:null,scheme:null,scrolling:E,standby:null,summary:null,text:null,topMargin:p,valueType:null,version:null,vAlign:null,vLink:null,vSpace:p,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:x,disableRemotePlayback:x,prefix:null,property:null,results:p,security:null,unselectable:null},space:"html",transform:ql}),qs=ie({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:U,accentHeight:p,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:p,amplitude:p,arabicForm:null,ascent:p,attributeName:null,attributeType:null,azimuth:p,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:p,by:null,calcMode:null,capHeight:p,className:O,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:p,diffuseConstant:p,direction:null,display:null,dur:null,divisor:p,dominantBaseline:null,download:x,dx:null,dy:null,edgeMode:null,editable:null,elevation:p,enableBackground:null,end:null,event:null,exponent:p,externalResourcesRequired:null,fill:null,fillOpacity:p,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:te,g2:te,glyphName:te,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:p,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:p,horizOriginX:p,horizOriginY:p,id:null,ideographic:p,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:p,k:p,k1:p,k2:p,k3:p,k4:p,kernelMatrix:U,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:p,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:p,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:p,overlineThickness:p,paintOrder:null,panose1:null,path:null,pathLength:p,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:O,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:p,pointsAtY:p,pointsAtZ:p,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:U,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:U,rev:U,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:U,requiredFeatures:U,requiredFonts:U,requiredFormats:U,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:p,specularExponent:p,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:p,strikethroughThickness:p,string:null,stroke:null,strokeDashArray:U,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:p,strokeOpacity:p,strokeWidth:null,style:null,surfaceScale:p,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:U,tabIndex:p,tableValues:null,target:null,targetX:p,targetY:p,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:U,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:p,underlineThickness:p,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:p,values:null,vAlphabetic:p,vMathematical:p,vectorEffect:null,vHanging:p,vIdeographic:p,version:null,vertAdvY:p,vertOriginX:p,vertOriginY:p,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:p,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Al}),Cl=ie({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(r,e){return"xlink:"+e.slice(5).toLowerCase()}}),Rl=ie({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ql}),wl=ie({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(r,e){return"xml:"+e.slice(3).toLowerCase()}}),Cs=/[A-Z]/g,ua=/-[a-z]/g,Rs=/^data[-\w.:]+$/i;function Tl(r,e){const n=ye(e);let t=e,a=B;if(n in r.normal)return r.property[r.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Rs.test(e)){if(e.charAt(4)==="-"){const i=e.slice(5).replace(ua,Ts);t="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=e.slice(4);if(!ua.test(i)){let o=i.replace(Cs,ws);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}a=Wn}return new a(t,e)}function ws(r){return"-"+r.toLowerCase()}function Ts(r){return r.charAt(1).toUpperCase()}const Ol=Sl([xl,As,Cl,Rl,wl],"html"),Vn=Sl([xl,qs,Cl,Rl,wl],"svg"),ca={}.hasOwnProperty;function Os(r,e){const n=e||{};function t(a,...i){let o=t.invalid;const l=t.handlers;if(a&&ca.call(a,r)){const s=String(a[r]);o=ca.call(l,s)?l[s]:t.unknown}if(o)return o.call(this,a,...i)}return t.handlers=n.handlers||{},t.invalid=n.invalid,t.unknown=n.unknown,t}const Ms=/["&'<>`]/g,Ps=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Es=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Is=/[|\\{}()[\]^$+*?.]/g,fa=new WeakMap;function Ls(r,e){if(r=r.replace(e.subset?Ds(e.subset):Ms,t),e.subset||e.escapeOnly)return r;return r.replace(Ps,n).replace(Es,t);function n(a,i,o){return e.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,o.charCodeAt(i+2),e)}function t(a,i,o){return e.format(a.charCodeAt(0),o.charCodeAt(i+1),e)}}function Ds(r){let e=fa.get(r);return e||(e=Ns(r),fa.set(r,e)),e}function Ns(r){const e=[];let n=-1;for(;++n<r.length;)e.push(r[n].replace(Is,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const ks=/[\dA-Fa-f]/;function Fs(r,e,n){const t="&#x"+r.toString(16).toUpperCase();return n&&e&&!ks.test(String.fromCharCode(e))?t:t+";"}const js=/\d/;function Hs(r,e,n){const t="&#"+String(r);return n&&e&&!js.test(String.fromCharCode(e))?t:t+";"}const zs=["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"],Ge={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:"€"},Bs=["cent","copy","divide","gt","lt","not","para","times"],Ml={}.hasOwnProperty,Gn={};let Ce;for(Ce in Ge)Ml.call(Ge,Ce)&&(Gn[Ge[Ce]]=Ce);const Gs=/[^\dA-Za-z]/;function Us(r,e,n,t){const a=String.fromCharCode(r);if(Ml.call(Gn,a)){const i=Gn[a],o="&"+i;return n&&zs.includes(i)&&!Bs.includes(i)&&(!t||e&&e!==61&&Gs.test(String.fromCharCode(e)))?o:o+";"}return""}function Ks(r,e,n){let t=Fs(r,e,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=Us(r,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const i=Hs(r,e,n.omitOptionalSemicolons);i.length<t.length&&(t=i)}return a&&(!n.useShortestReferences||a.length<t.length)?a:t}function ne(r,e){return Ls(r,Object.assign({format:Ks},e))}const $s=/^>|^->|<!--|-->|--!>|<!-$/g,Ws=[">"],Vs=["<",">"];function Ys(r,e,n,t){return t.settings.bogusComments?"<?"+ne(r.value,Object.assign({},t.settings.characterReferences,{subset:Ws}))+">":"<!--"+r.value.replace($s,a)+"-->";function a(i){return ne(i,Object.assign({},t.settings.characterReferences,{subset:Vs}))}}function Xs(r,e,n,t){return"<!"+(t.settings.upperDoctype?"DOCTYPE":"doctype")+(t.settings.tightDoctype?"":" ")+"html>"}function da(r,e){const n=String(r);if(typeof e!="string")throw new TypeError("Expected character");let t=0,a=n.indexOf(e);for(;a!==-1;)t++,a=n.indexOf(e,a+e.length);return t}function ha(r){const e=[],n=String(r||"");let t=n.indexOf(","),a=0,i=!1;for(;!i;){t===-1&&(t=n.length,i=!0);const o=n.slice(a,t).trim();(o||!i)&&e.push(o),a=t+1,t=n.indexOf(",",a)}return e}function Zs(r,e){const n=e||{};return(r[r.length-1]===""?[...r,""]:r).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function pa(r){const e=String(r||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}function Js(r){return r.join(" ").trim()}const Qs=/[ \t\n\f\r]/g;function Yn(r){return typeof r=="object"?r.type==="text"?ga(r.value):!1:ga(r)}function ga(r){return r.replace(Qs,"")===""}const L=El(1),Pl=El(-1),eu=[];function El(r){return e;function e(n,t,a){const i=n?n.children:eu;let o=(t||0)+r,l=i[o];if(!a)for(;l&&Yn(l);)o+=r,l=i[o];return l}}const ru={}.hasOwnProperty;function Il(r){return e;function e(n,t,a){return ru.call(r,n.tagName)&&r[n.tagName](n,t,a)}}const Xn=Il({body:nu,caption:Ue,colgroup:Ue,dd:lu,dt:ou,head:Ue,html:tu,li:iu,optgroup:su,option:uu,p:au,rp:ma,rt:ma,tbody:fu,td:ya,tfoot:du,th:ya,thead:cu,tr:hu});function Ue(r,e,n){const t=L(n,e,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Yn(t.value.charAt(0)))}function tu(r,e,n){const t=L(n,e);return!t||t.type!=="comment"}function nu(r,e,n){const t=L(n,e);return!t||t.type!=="comment"}function au(r,e,n){const t=L(n,e);return t?t.type==="element"&&(t.tagName==="address"||t.tagName==="article"||t.tagName==="aside"||t.tagName==="blockquote"||t.tagName==="details"||t.tagName==="div"||t.tagName==="dl"||t.tagName==="fieldset"||t.tagName==="figcaption"||t.tagName==="figure"||t.tagName==="footer"||t.tagName==="form"||t.tagName==="h1"||t.tagName==="h2"||t.tagName==="h3"||t.tagName==="h4"||t.tagName==="h5"||t.tagName==="h6"||t.tagName==="header"||t.tagName==="hgroup"||t.tagName==="hr"||t.tagName==="main"||t.tagName==="menu"||t.tagName==="nav"||t.tagName==="ol"||t.tagName==="p"||t.tagName==="pre"||t.tagName==="section"||t.tagName==="table"||t.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 iu(r,e,n){const t=L(n,e);return!t||t.type==="element"&&t.tagName==="li"}function ou(r,e,n){const t=L(n,e);return!!(t&&t.type==="element"&&(t.tagName==="dt"||t.tagName==="dd"))}function lu(r,e,n){const t=L(n,e);return!t||t.type==="element"&&(t.tagName==="dt"||t.tagName==="dd")}function ma(r,e,n){const t=L(n,e);return!t||t.type==="element"&&(t.tagName==="rp"||t.tagName==="rt")}function su(r,e,n){const t=L(n,e);return!t||t.type==="element"&&t.tagName==="optgroup"}function uu(r,e,n){const t=L(n,e);return!t||t.type==="element"&&(t.tagName==="option"||t.tagName==="optgroup")}function cu(r,e,n){const t=L(n,e);return!!(t&&t.type==="element"&&(t.tagName==="tbody"||t.tagName==="tfoot"))}function fu(r,e,n){const t=L(n,e);return!t||t.type==="element"&&(t.tagName==="tbody"||t.tagName==="tfoot")}function du(r,e,n){return!L(n,e)}function hu(r,e,n){const t=L(n,e);return!t||t.type==="element"&&t.tagName==="tr"}function ya(r,e,n){const t=L(n,e);return!t||t.type==="element"&&(t.tagName==="td"||t.tagName==="th")}const pu=Il({body:yu,colgroup:vu,head:mu,html:gu,tbody:bu});function gu(r){const e=L(r,-1);return!e||e.type!=="comment"}function mu(r){const e=new Set;for(const t of r.children)if(t.type==="element"&&(t.tagName==="base"||t.tagName==="title")){if(e.has(t.tagName))return!1;e.add(t.tagName)}const n=r.children[0];return!n||n.type==="element"}function yu(r){const e=L(r,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Yn(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function vu(r,e,n){const t=Pl(n,e),a=L(r,-1,!0);return n&&t&&t.type==="element"&&t.tagName==="colgroup"&&Xn(t,n.children.indexOf(t),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function bu(r,e,n){const t=Pl(n,e),a=L(r,-1);return n&&t&&t.type==="element"&&(t.tagName==="thead"||t.tagName==="tbody")&&Xn(t,n.children.indexOf(t),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const Re={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,22 +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 _u(r,e,n,t){const a=t.schema,i=a.space==="svg"?!1:t.settings.omitOptionalTags;let o=a.space==="svg"?t.settings.closeEmptyElements:t.settings.voids.includes(r.tagName.toLowerCase());const l=[];let s;a.space==="html"&&r.tagName==="svg"&&(t.schema=Vn);const u=Su(t,r.properties),f=t.all(a.space==="html"&&r.tagName==="template"?r.content:r);return t.schema=a,f&&(o=!1),(u||!i||!pu(r,e,n))&&(l.push("<",r.tagName,u?" "+u:""),o&&(a.space==="svg"||t.settings.closeSelfClosing)&&(s=u.charAt(u.length-1),(!t.settings.tightSelfClosing||s==="/"||s&&s!=='"'&&s!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(f),!o&&(!i||!Xn(r,e,n))&&l.push("</"+r.tagName+">"),l.join("")}function Su(r,e){const n=[];let t=-1,a;if(e){for(a in e)if(e[a]!==null&&e[a]!==void 0){const i=xu(r,a,e[a]);i&&n.push(i)}}for(;++t<n.length;){const i=r.settings.tightAttributes?n[t].charAt(n[t].length-1):void 0;t!==n.length-1&&i!=='"'&&i!=="'"&&(n[t]+=" ")}return n.join("")}function xu(r,e,n){const t=Tl(r.schema,e),a=r.settings.allowParseErrors&&r.schema.space==="html"?0:1,i=r.settings.allowDangerousCharacters?0:1;let o=r.quote,l;if(t.overloadedBoolean&&(n===t.attribute||n==="")?n=!0:(t.boolean||t.overloadedBoolean)&&(typeof n!="string"||n===t.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const s=ne(t.attribute,Object.assign({},r.settings.characterReferences,{subset:Re.name[a][i]}));return n===!0||(n=Array.isArray(n)?(t.commaSeparated?Zs:Js)(n,{padLeft:!r.settings.tightCommaSeparatedLists}):String(n),r.settings.collapseEmptyAttributes&&!n)?s:(r.settings.preferUnquoted&&(l=ne(n,Object.assign({},r.settings.characterReferences,{attribute:!0,subset:Re.unquoted[a][i]}))),l!==n&&(r.settings.quoteSmart&&da(n,o)>da(n,r.alternative)&&(o=r.alternative),l=o+ne(n,Object.assign({},r.settings.characterReferences,{subset:(o==="'"?Re.single:Re.double)[a][i],attribute:!0}))+o),s+(l&&"="+l))}const Au=["<","&"];function Ll(r,e,n,t){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?r.value:ne(r.value,Object.assign({},t.settings.characterReferences,{subset:Au}))}function qu(r,e,n,t){return t.settings.allowDangerousHtml?r.value:Ll(r,e,n,t)}function Cu(r,e,n,t){return t.all(r)}const Ru=Os("type",{invalid:wu,unknown:Tu,handlers:{comment:Ys,doctype:Xs,element:_u,raw:qu,root:Cu,text:Ll}});function wu(r){throw new Error("Expected node, not `"+r+"`")}function Tu(r){const e=r;throw new Error("Cannot compile unknown node `"+e.type+"`")}const Ou={},Mu={},Pu=[];function Eu(r,e){const n=Ou,t=n.quote||'"',a=t==='"'?"'":'"';if(t!=='"'&&t!=="'")throw new Error("Invalid quote `"+t+"`, expected `'` or `\"`");return{one:Iu,all:Lu,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||Ss,characterReferences:n.characterReferences||Mu,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Vn:Ol,quote:t,alternative:a}.one(Array.isArray(r)?{type:"root",children:r}:r,void 0,void 0)}function Iu(r,e,n){return Ru(r,e,n,this)}function Lu(r){const e=[],n=r&&r.children||Pu;let t=-1;for(;++t<n.length;)e[t]=this.one(n[t],t,r);return e.join("")}const J={neoGrey:{200:"#EDEFEF",400:"#ADB5BD"},neoDigitalGreen:{600:"#40c048"}},H={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}},ae={COMPLETED:J.neoDigitalGreen[600],NOT_APPLICABLE:"url(#greyHatchPattern)",NO_LST:"url(#noLstHatchPattern)",DATA_MISSING:"url(#dataMissingHatchPattern)"},pe="N/A",ge="No LST",me="Data Missing",va=/[#.]/g;function Du(r,e){const n=r||"",t={};let a=0,i,o;for(;a<n.length;){va.lastIndex=a;const l=va.exec(n),s=n.slice(a,l?l.index:n.length);s&&(i?i==="#"?t.id=s:Array.isArray(t.className)?t.className.push(s):t.className=[s]:o=s,a+=s.length),l&&(i=l[0],a++)}return{type:"element",tagName:o||e||"div",properties:t,children:[]}}function Dl(r,e,n){const t=n?ju(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=Du(i,e);const u=s.tagName.toLowerCase(),f=t?t.get(u):void 0;if(s.tagName=f||u,Nu(o))l.unshift(o);else for(const[d,c]of Object.entries(o))ku(r,s.properties,d,c)}for(const u of l)Un(s.children,u);return s.type==="element"&&s.tagName==="template"&&(s.content={type:"root",children:s.children},s.children=[]),s}return a}function Nu(r){if(r===null||typeof r!="object"||Array.isArray(r))return!0;if(typeof r.type!="string")return!1;const e=r,n=Object.keys(r);for(const t of n){const a=e[t];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 r&&Array.isArray(r.children))}function ku(r,e,n,t){const a=Tl(r,n);let i;if(t!=null){if(typeof t=="number"){if(Number.isNaN(t))return;i=t}else typeof t=="boolean"?i=t:typeof t=="string"?a.spaceSeparated?i=pa(t):a.commaSeparated?i=ha(t):a.commaOrSpaceSeparated?i=pa(ha(t).join(" ")):i=ba(a,a.property,t):Array.isArray(t)?i=[...t]:i=a.property==="style"?Fu(t):String(t);if(Array.isArray(i)){const o=[];for(const l of i)o.push(ba(a,a.property,l));i=o}a.property==="className"&&Array.isArray(e.className)&&(i=e.className.concat(i)),e[a.property]=i}}function Un(r,e){if(e!=null)if(typeof e=="number"||typeof e=="string")r.push({type:"text",value:String(e)});else if(Array.isArray(e))for(const n of e)Un(r,n);else if(typeof e=="object"&&"type"in e)e.type==="root"?Un(r,e.children):r.push(e);else throw new Error("Expected node, nodes, or string, got `"+e+"`")}function ba(r,e,n){if(typeof n=="string"){if(r.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((r.boolean||r.overloadedBoolean)&&(n===""||ye(n)===ye(e)))return!0}return n}function Fu(r){const e=[];for(const[n,t]of Object.entries(r))e.push([n,t].join(": "));return e.join("; ")}function ju(r){const e=new Map;for(const n of r)e.set(n.toLowerCase(),n);return e}const Hu=["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"];Dl(Ol,"div");const be=Dl(Vn,"g",Hu);var we=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oe(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Ke,_a;function Nl(){if(_a)return Ke;_a=1;var r=typeof we=="object"&&we&&we.Object===Object&&we;return Ke=r,Ke}var $e,Sa;function Y(){if(Sa)return $e;Sa=1;var r=Nl(),e=typeof self=="object"&&self&&self.Object===Object&&self,n=r||e||Function("return this")();return $e=n,$e}var We,xa;function zu(){if(xa)return We;xa=1;var r=/\s/;function e(n){for(var t=n.length;t--&&r.test(n.charAt(t)););return t}return We=e,We}var Ve,Aa;function Bu(){if(Aa)return Ve;Aa=1;var r=zu(),e=/^\s+/;function n(t){return t&&t.slice(0,r(t)+1).replace(e,"")}return Ve=n,Ve}var Ye,qa;function _e(){if(qa)return Ye;qa=1;function r(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}return Ye=r,Ye}var Xe,Ca;function Se(){if(Ca)return Xe;Ca=1;var r=Y(),e=r.Symbol;return Xe=e,Xe}var Ze,Ra;function Gu(){if(Ra)return Ze;Ra=1;var r=Se(),e=Object.prototype,n=e.hasOwnProperty,t=e.toString,a=r?r.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=t.call(o);return u&&(l?o[a]=s:delete o[a]),f}return Ze=i,Ze}var Je,wa;function Uu(){if(wa)return Je;wa=1;var r=Object.prototype,e=r.toString;function n(t){return e.call(t)}return Je=n,Je}var Qe,Ta;function xe(){if(Ta)return Qe;Ta=1;var r=Se(),e=Gu(),n=Uu(),t="[object Null]",a="[object Undefined]",i=r?r.toStringTag:void 0;function o(l){return l==null?l===void 0?a:t:i&&i in Object(l)?e(l):n(l)}return Qe=o,Qe}var er,Oa;function Ae(){if(Oa)return er;Oa=1;function r(e){return e!=null&&typeof e=="object"}return er=r,er}var rr,Ma;function qe(){if(Ma)return rr;Ma=1;var r=xe(),e=Ae(),n="[object Symbol]";function t(a){return typeof a=="symbol"||e(a)&&r(a)==n}return rr=t,rr}var tr,Pa;function kl(){if(Pa)return tr;Pa=1;var r=Bu(),e=_e(),n=qe(),t=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 t;if(e(u)){var f=typeof u.valueOf=="function"?u.valueOf():u;u=e(f)?f+"":f}if(typeof u!="string")return u===0?u:+u;u=r(u);var d=i.test(u);return d||o.test(u)?l(u.slice(2),d?2:8):a.test(u)?t:+u}return tr=s,tr}var nr,Ea;function Fl(){if(Ea)return nr;Ea=1;var r=kl(),e=1/0,n=17976931348623157e292;function t(a){if(!a)return a===0?a:0;if(a=r(a),a===e||a===-e){var i=a<0?-1:1;return i*n}return a===a?a:0}return nr=t,nr}var ar,Ia;function jl(){if(Ia)return ar;Ia=1;var r=Fl();function e(n){var t=r(n),a=t%1;return t===t?a?t-a:t:0}return ar=e,ar}var ir,La;function Oe(){if(La)return ir;La=1;function r(e,n){for(var t=-1,a=e==null?0:e.length,i=Array(a);++t<a;)i[t]=n(e[t],t,e);return i}return ir=r,ir}var or,Da;function V(){if(Da)return or;Da=1;var r=Array.isArray;return or=r,or}var lr,Na;function Ku(){if(Na)return lr;Na=1;var r=Se(),e=Oe(),n=V(),t=qe(),a=r?r.prototype:void 0,i=a?a.toString:void 0;function o(l){if(typeof l=="string")return l;if(n(l))return e(l,o)+"";if(t(l))return i?i.call(l):"";var s=l+"";return s=="0"&&1/l==-1/0?"-0":s}return lr=o,lr}var sr,ka;function Hl(){if(ka)return sr;ka=1;var r=Ku();function e(n){return n==null?"":r(n)}return sr=e,sr}var ur,Fa;function $u(){if(Fa)return ur;Fa=1;var r=Y(),e=jl(),n=kl(),t=Hl(),a=r.isFinite,i=Math.min;function o(l){var s=Math[l];return function(u,f){if(u=n(u),f=f==null?0:i(e(f),292),f&&a(u)){var d=(t(u)+"e").split("e"),c=s(d[0]+"e"+(+d[1]+f));return d=(t(c)+"e").split("e"),+(d[0]+"e"+(+d[1]-f))}return s(u)}}return ur=o,ur}var cr,ja;function Wu(){if(ja)return cr;ja=1;var r=$u(),e=r("round");return cr=e,cr}var Vu=Wu();const Yu=oe(Vu);var fr,Ha;function zl(){if(Ha)return fr;Ha=1;function r(e,n){for(var t=-1,a=n.length,i=e.length;++t<a;)e[i+t]=n[t];return e}return fr=r,fr}var dr,za;function Xu(){if(za)return dr;za=1;var r=xe(),e=Ae(),n="[object Arguments]";function t(a){return e(a)&&r(a)==n}return dr=t,dr}var hr,Ba;function Zn(){if(Ba)return hr;Ba=1;var r=Xu(),e=Ae(),n=Object.prototype,t=n.hasOwnProperty,a=n.propertyIsEnumerable,i=r((function(){return arguments})())?r:function(o){return e(o)&&t.call(o,"callee")&&!a.call(o,"callee")};return hr=i,hr}var pr,Ga;function Zu(){if(Ga)return pr;Ga=1;var r=Se(),e=Zn(),n=V(),t=r?r.isConcatSpreadable:void 0;function a(i){return n(i)||e(i)||!!(t&&i&&i[t])}return pr=a,pr}var gr,Ua;function Bl(){if(Ua)return gr;Ua=1;var r=zl(),e=Zu();function n(t,a,i,o,l){var s=-1,u=t.length;for(i||(i=e),l||(l=[]);++s<u;){var f=t[s];a>0&&i(f)?a>1?n(f,a-1,i,o,l):r(l,f):o||(l[l.length]=f)}return l}return gr=n,gr}var mr,Ka;function Jn(){if(Ka)return mr;Ka=1;var r=V(),e=qe(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,t=/^\w*$/;function a(i,o){if(r(i))return!1;var l=typeof i;return l=="number"||l=="symbol"||l=="boolean"||i==null||e(i)?!0:t.test(i)||!n.test(i)||o!=null&&i in Object(o)}return mr=a,mr}var yr,$a;function Gl(){if($a)return yr;$a=1;var r=xe(),e=_e(),n="[object AsyncFunction]",t="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function o(l){if(!e(l))return!1;var s=r(l);return s==t||s==a||s==n||s==i}return yr=o,yr}var vr,Wa;function Ju(){if(Wa)return vr;Wa=1;var r=Y(),e=r["__core-js_shared__"];return vr=e,vr}var br,Va;function Qu(){if(Va)return br;Va=1;var r=Ju(),e=(function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function n(t){return!!e&&e in t}return br=n,br}var _r,Ya;function Ul(){if(Ya)return _r;Ya=1;var r=Function.prototype,e=r.toString;function n(t){if(t!=null){try{return e.call(t)}catch{}try{return t+""}catch{}}return""}return _r=n,_r}var Sr,Xa;function ec(){if(Xa)return Sr;Xa=1;var r=Gl(),e=Qu(),n=_e(),t=Ul(),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)||e(c))return!1;var h=r(c)?f:i;return h.test(t(c))}return Sr=d,Sr}var xr,Za;function rc(){if(Za)return xr;Za=1;function r(e,n){return e==null?void 0:e[n]}return xr=r,xr}var Ar,Ja;function ee(){if(Ja)return Ar;Ja=1;var r=ec(),e=rc();function n(t,a){var i=e(t,a);return r(i)?i:void 0}return Ar=n,Ar}var qr,Qa;function Me(){if(Qa)return qr;Qa=1;var r=ee(),e=r(Object,"create");return qr=e,qr}var Cr,ei;function tc(){if(ei)return Cr;ei=1;var r=Me();function e(){this.__data__=r?r(null):{},this.size=0}return Cr=e,Cr}var Rr,ri;function nc(){if(ri)return Rr;ri=1;function r(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}return Rr=r,Rr}var wr,ti;function ac(){if(ti)return wr;ti=1;var r=Me(),e="__lodash_hash_undefined__",n=Object.prototype,t=n.hasOwnProperty;function a(i){var o=this.__data__;if(r){var l=o[i];return l===e?void 0:l}return t.call(o,i)?o[i]:void 0}return wr=a,wr}var Tr,ni;function ic(){if(ni)return Tr;ni=1;var r=Me(),e=Object.prototype,n=e.hasOwnProperty;function t(a){var i=this.__data__;return r?i[a]!==void 0:n.call(i,a)}return Tr=t,Tr}var Or,ai;function oc(){if(ai)return Or;ai=1;var r=Me(),e="__lodash_hash_undefined__";function n(t,a){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=r&&a===void 0?e:a,this}return Or=n,Or}var Mr,ii;function lc(){if(ii)return Mr;ii=1;var r=tc(),e=nc(),n=ac(),t=ic(),a=oc();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=r,i.prototype.delete=e,i.prototype.get=n,i.prototype.has=t,i.prototype.set=a,Mr=i,Mr}var Pr,oi;function sc(){if(oi)return Pr;oi=1;function r(){this.__data__=[],this.size=0}return Pr=r,Pr}var Er,li;function Qn(){if(li)return Er;li=1;function r(e,n){return e===n||e!==e&&n!==n}return Er=r,Er}var Ir,si;function Pe(){if(si)return Ir;si=1;var r=Qn();function e(n,t){for(var a=n.length;a--;)if(r(n[a][0],t))return a;return-1}return Ir=e,Ir}var Lr,ui;function uc(){if(ui)return Lr;ui=1;var r=Pe(),e=Array.prototype,n=e.splice;function t(a){var i=this.__data__,o=r(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 Lr=t,Lr}var Dr,ci;function cc(){if(ci)return Dr;ci=1;var r=Pe();function e(n){var t=this.__data__,a=r(t,n);return a<0?void 0:t[a][1]}return Dr=e,Dr}var Nr,fi;function fc(){if(fi)return Nr;fi=1;var r=Pe();function e(n){return r(this.__data__,n)>-1}return Nr=e,Nr}var kr,di;function dc(){if(di)return kr;di=1;var r=Pe();function e(n,t){var a=this.__data__,i=r(a,n);return i<0?(++this.size,a.push([n,t])):a[i][1]=t,this}return kr=e,kr}var Fr,hi;function Ee(){if(hi)return Fr;hi=1;var r=sc(),e=uc(),n=cc(),t=fc(),a=dc();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=r,i.prototype.delete=e,i.prototype.get=n,i.prototype.has=t,i.prototype.set=a,Fr=i,Fr}var jr,pi;function ea(){if(pi)return jr;pi=1;var r=ee(),e=Y(),n=r(e,"Map");return jr=n,jr}var Hr,gi;function hc(){if(gi)return Hr;gi=1;var r=lc(),e=Ee(),n=ea();function t(){this.size=0,this.__data__={hash:new r,map:new(n||e),string:new r}}return Hr=t,Hr}var zr,mi;function pc(){if(mi)return zr;mi=1;function r(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}return zr=r,zr}var Br,yi;function Ie(){if(yi)return Br;yi=1;var r=pc();function e(n,t){var a=n.__data__;return r(t)?a[typeof t=="string"?"string":"hash"]:a.map}return Br=e,Br}var Gr,vi;function gc(){if(vi)return Gr;vi=1;var r=Ie();function e(n){var t=r(this,n).delete(n);return this.size-=t?1:0,t}return Gr=e,Gr}var Ur,bi;function mc(){if(bi)return Ur;bi=1;var r=Ie();function e(n){return r(this,n).get(n)}return Ur=e,Ur}var Kr,_i;function yc(){if(_i)return Kr;_i=1;var r=Ie();function e(n){return r(this,n).has(n)}return Kr=e,Kr}var $r,Si;function vc(){if(Si)return $r;Si=1;var r=Ie();function e(n,t){var a=r(this,n),i=a.size;return a.set(n,t),this.size+=a.size==i?0:1,this}return $r=e,$r}var Wr,xi;function ra(){if(xi)return Wr;xi=1;var r=hc(),e=gc(),n=mc(),t=yc(),a=vc();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=r,i.prototype.delete=e,i.prototype.get=n,i.prototype.has=t,i.prototype.set=a,Wr=i,Wr}var Vr,Ai;function bc(){if(Ai)return Vr;Ai=1;var r=ra(),e="Expected a function";function n(t,a){if(typeof t!="function"||a!=null&&typeof a!="function")throw new TypeError(e);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=t.apply(this,o);return i.cache=s.set(l,u)||s,u};return i.cache=new(n.Cache||r),i}return n.Cache=r,Vr=n,Vr}var Yr,qi;function _c(){if(qi)return Yr;qi=1;var r=bc(),e=500;function n(t){var a=r(t,function(o){return i.size===e&&i.clear(),o}),i=a.cache;return a}return Yr=n,Yr}var Xr,Ci;function Sc(){if(Ci)return Xr;Ci=1;var r=_c(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,t=r(function(a){var i=[];return a.charCodeAt(0)===46&&i.push(""),a.replace(e,function(o,l,s,u){i.push(s?u.replace(n,"$1"):l||o)}),i});return Xr=t,Xr}var Zr,Ri;function Kl(){if(Ri)return Zr;Ri=1;var r=V(),e=Jn(),n=Sc(),t=Hl();function a(i,o){return r(i)?i:e(i,o)?[i]:n(t(i))}return Zr=a,Zr}var Jr,wi;function Le(){if(wi)return Jr;wi=1;var r=qe();function e(n){if(typeof n=="string"||r(n))return n;var t=n+"";return t=="0"&&1/n==-1/0?"-0":t}return Jr=e,Jr}var Qr,Ti;function ta(){if(Ti)return Qr;Ti=1;var r=Kl(),e=Le();function n(t,a){a=r(a,t);for(var i=0,o=a.length;t!=null&&i<o;)t=t[e(a[i++])];return i&&i==o?t:void 0}return Qr=n,Qr}var et,Oi;function xc(){if(Oi)return et;Oi=1;var r=Ee();function e(){this.__data__=new r,this.size=0}return et=e,et}var rt,Mi;function Ac(){if(Mi)return rt;Mi=1;function r(e){var n=this.__data__,t=n.delete(e);return this.size=n.size,t}return rt=r,rt}var tt,Pi;function qc(){if(Pi)return tt;Pi=1;function r(e){return this.__data__.get(e)}return tt=r,tt}var nt,Ei;function Cc(){if(Ei)return nt;Ei=1;function r(e){return this.__data__.has(e)}return nt=r,nt}var at,Ii;function Rc(){if(Ii)return at;Ii=1;var r=Ee(),e=ea(),n=ra(),t=200;function a(i,o){var l=this.__data__;if(l instanceof r){var s=l.__data__;if(!e||s.length<t-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 at=a,at}var it,Li;function $l(){if(Li)return it;Li=1;var r=Ee(),e=xc(),n=Ac(),t=qc(),a=Cc(),i=Rc();function o(l){var s=this.__data__=new r(l);this.size=s.size}return o.prototype.clear=e,o.prototype.delete=n,o.prototype.get=t,o.prototype.has=a,o.prototype.set=i,it=o,it}var ot,Di;function wc(){if(Di)return ot;Di=1;var r="__lodash_hash_undefined__";function e(n){return this.__data__.set(n,r),this}return ot=e,ot}var lt,Ni;function Tc(){if(Ni)return lt;Ni=1;function r(e){return this.__data__.has(e)}return lt=r,lt}var st,ki;function Oc(){if(ki)return st;ki=1;var r=ra(),e=wc(),n=Tc();function t(a){var i=-1,o=a==null?0:a.length;for(this.__data__=new r;++i<o;)this.add(a[i])}return t.prototype.add=t.prototype.push=e,t.prototype.has=n,st=t,st}var ut,Fi;function Mc(){if(Fi)return ut;Fi=1;function r(e,n){for(var t=-1,a=e==null?0:e.length;++t<a;)if(n(e[t],t,e))return!0;return!1}return ut=r,ut}var ct,ji;function Pc(){if(ji)return ct;ji=1;function r(e,n){return e.has(n)}return ct=r,ct}var ft,Hi;function Wl(){if(Hi)return ft;Hi=1;var r=Oc(),e=Mc(),n=Pc(),t=1,a=2;function i(o,l,s,u,f,d){var c=s&t,h=o.length,g=l.length;if(h!=g&&!(c&&g>h))return!1;var v=d.get(o),b=d.get(l);if(v&&b)return v==l&&b==o;var y=-1,_=!0,m=s&a?new r:void 0;for(d.set(o,l),d.set(l,o);++y<h;){var S=o[y],T=l[y];if(u)var A=c?u(T,S,y,l,o,d):u(S,T,y,o,l,d);if(A!==void 0){if(A)continue;_=!1;break}if(m){if(!e(l,function(q,P){if(!n(m,P)&&(S===q||f(S,q,s,u,d)))return m.push(P)})){_=!1;break}}else if(!(S===T||f(S,T,s,u,d))){_=!1;break}}return d.delete(o),d.delete(l),_}return ft=i,ft}var dt,zi;function Ec(){if(zi)return dt;zi=1;var r=Y(),e=r.Uint8Array;return dt=e,dt}var ht,Bi;function Ic(){if(Bi)return ht;Bi=1;function r(e){var n=-1,t=Array(e.size);return e.forEach(function(a,i){t[++n]=[i,a]}),t}return ht=r,ht}var pt,Gi;function Lc(){if(Gi)return pt;Gi=1;function r(e){var n=-1,t=Array(e.size);return e.forEach(function(a){t[++n]=a}),t}return pt=r,pt}var gt,Ui;function Dc(){if(Ui)return gt;Ui=1;var r=Se(),e=Ec(),n=Qn(),t=Wl(),a=Ic(),i=Lc(),o=1,l=2,s="[object Boolean]",u="[object Date]",f="[object Error]",d="[object Map]",c="[object Number]",h="[object RegExp]",g="[object Set]",v="[object String]",b="[object Symbol]",y="[object ArrayBuffer]",_="[object DataView]",m=r?r.prototype:void 0,S=m?m.valueOf:void 0;function T(A,q,P,N,j,C,K){switch(P){case _:if(A.byteLength!=q.byteLength||A.byteOffset!=q.byteOffset)return!1;A=A.buffer,q=q.buffer;case y:return!(A.byteLength!=q.byteLength||!C(new e(A),new e(q)));case s:case u:case c:return n(+A,+q);case f:return A.name==q.name&&A.message==q.message;case h:case v:return A==q+"";case d:var z=a;case g:var Z=N&o;if(z||(z=i),A.size!=q.size&&!Z)return!1;var re=K.get(A);if(re)return re==q;N|=l,K.set(A,q);var Fe=t(z(A),z(q),N,j,C,K);return K.delete(A),Fe;case b:if(S)return S.call(A)==S.call(q)}return!1}return gt=T,gt}var mt,Ki;function Nc(){if(Ki)return mt;Ki=1;var r=zl(),e=V();function n(t,a,i){var o=a(t);return e(t)?o:r(o,i(t))}return mt=n,mt}var yt,$i;function kc(){if($i)return yt;$i=1;function r(e,n){for(var t=-1,a=e==null?0:e.length,i=0,o=[];++t<a;){var l=e[t];n(l,t,e)&&(o[i++]=l)}return o}return yt=r,yt}var vt,Wi;function Fc(){if(Wi)return vt;Wi=1;function r(){return[]}return vt=r,vt}var bt,Vi;function jc(){if(Vi)return bt;Vi=1;var r=kc(),e=Fc(),n=Object.prototype,t=n.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(o){return o==null?[]:(o=Object(o),r(a(o),function(l){return t.call(o,l)}))}:e;return bt=i,bt}var _t,Yi;function Hc(){if(Yi)return _t;Yi=1;function r(e,n){for(var t=-1,a=Array(e);++t<e;)a[t]=n(t);return a}return _t=r,_t}var de={exports:{}},St,Xi;function zc(){if(Xi)return St;Xi=1;function r(){return!1}return St=r,St}de.exports;var Zi;function Vl(){return Zi||(Zi=1,(function(r,e){var n=Y(),t=zc(),a=e&&!e.nodeType&&e,i=a&&!0&&r&&!r.nodeType&&r,o=i&&i.exports===a,l=o?n.Buffer:void 0,s=l?l.isBuffer:void 0,u=s||t;r.exports=u})(de,de.exports)),de.exports}var xt,Ji;function na(){if(Ji)return xt;Ji=1;var r=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function n(t,a){var i=typeof t;return a=a??r,!!a&&(i=="number"||i!="symbol"&&e.test(t))&&t>-1&&t%1==0&&t<a}return xt=n,xt}var At,Qi;function aa(){if(Qi)return At;Qi=1;var r=9007199254740991;function e(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=r}return At=e,At}var qt,eo;function Bc(){if(eo)return qt;eo=1;var r=xe(),e=aa(),n=Ae(),t="[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]",g="[object String]",v="[object WeakMap]",b="[object ArrayBuffer]",y="[object DataView]",_="[object Float32Array]",m="[object Float64Array]",S="[object Int8Array]",T="[object Int16Array]",A="[object Int32Array]",q="[object Uint8Array]",P="[object Uint8ClampedArray]",N="[object Uint16Array]",j="[object Uint32Array]",C={};C[_]=C[m]=C[S]=C[T]=C[A]=C[q]=C[P]=C[N]=C[j]=!0,C[t]=C[a]=C[b]=C[i]=C[y]=C[o]=C[l]=C[s]=C[u]=C[f]=C[d]=C[c]=C[h]=C[g]=C[v]=!1;function K(z){return n(z)&&e(z.length)&&!!C[r(z)]}return qt=K,qt}var Ct,ro;function Yl(){if(ro)return Ct;ro=1;function r(e){return function(n){return e(n)}}return Ct=r,Ct}var he={exports:{}};he.exports;var to;function Gc(){return to||(to=1,(function(r,e){var n=Nl(),t=e&&!e.nodeType&&e,a=t&&!0&&r&&!r.nodeType&&r,i=a&&a.exports===t,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{}})();r.exports=l})(he,he.exports)),he.exports}var Rt,no;function Xl(){if(no)return Rt;no=1;var r=Bc(),e=Yl(),n=Gc(),t=n&&n.isTypedArray,a=t?e(t):r;return Rt=a,Rt}var wt,ao;function Uc(){if(ao)return wt;ao=1;var r=Hc(),e=Zn(),n=V(),t=Vl(),a=na(),i=Xl(),o=Object.prototype,l=o.hasOwnProperty;function s(u,f){var d=n(u),c=!d&&e(u),h=!d&&!c&&t(u),g=!d&&!c&&!h&&i(u),v=d||c||h||g,b=v?r(u.length,String):[],y=b.length;for(var _ in u)(f||l.call(u,_))&&!(v&&(_=="length"||h&&(_=="offset"||_=="parent")||g&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||a(_,y)))&&b.push(_);return b}return wt=s,wt}var Tt,io;function Kc(){if(io)return Tt;io=1;var r=Object.prototype;function e(n){var t=n&&n.constructor,a=typeof t=="function"&&t.prototype||r;return n===a}return Tt=e,Tt}var Ot,oo;function $c(){if(oo)return Ot;oo=1;function r(e,n){return function(t){return e(n(t))}}return Ot=r,Ot}var Mt,lo;function Wc(){if(lo)return Mt;lo=1;var r=$c(),e=r(Object.keys,Object);return Mt=e,Mt}var Pt,so;function Vc(){if(so)return Pt;so=1;var r=Kc(),e=Wc(),n=Object.prototype,t=n.hasOwnProperty;function a(i){if(!r(i))return e(i);var o=[];for(var l in Object(i))t.call(i,l)&&l!="constructor"&&o.push(l);return o}return Pt=a,Pt}var Et,uo;function De(){if(uo)return Et;uo=1;var r=Gl(),e=aa();function n(t){return t!=null&&e(t.length)&&!r(t)}return Et=n,Et}var It,co;function Ne(){if(co)return It;co=1;var r=Uc(),e=Vc(),n=De();function t(a){return n(a)?r(a):e(a)}return It=t,It}var Lt,fo;function Yc(){if(fo)return Lt;fo=1;var r=Nc(),e=jc(),n=Ne();function t(a){return r(a,n,e)}return Lt=t,Lt}var Dt,ho;function Xc(){if(ho)return Dt;ho=1;var r=Yc(),e=1,n=Object.prototype,t=n.hasOwnProperty;function a(i,o,l,s,u,f){var d=l&e,c=r(i),h=c.length,g=r(o),v=g.length;if(h!=v&&!d)return!1;for(var b=h;b--;){var y=c[b];if(!(d?y in o:t.call(o,y)))return!1}var _=f.get(i),m=f.get(o);if(_&&m)return _==o&&m==i;var S=!0;f.set(i,o),f.set(o,i);for(var T=d;++b<h;){y=c[b];var A=i[y],q=o[y];if(s)var P=d?s(q,A,y,o,i,f):s(A,q,y,i,o,f);if(!(P===void 0?A===q||u(A,q,l,s,f):P)){S=!1;break}T||(T=y=="constructor")}if(S&&!T){var N=i.constructor,j=o.constructor;N!=j&&"constructor"in i&&"constructor"in o&&!(typeof N=="function"&&N instanceof N&&typeof j=="function"&&j instanceof j)&&(S=!1)}return f.delete(i),f.delete(o),S}return Dt=a,Dt}var Nt,po;function Zc(){if(po)return Nt;po=1;var r=ee(),e=Y(),n=r(e,"DataView");return Nt=n,Nt}var kt,go;function Jc(){if(go)return kt;go=1;var r=ee(),e=Y(),n=r(e,"Promise");return kt=n,kt}var Ft,mo;function Qc(){if(mo)return Ft;mo=1;var r=ee(),e=Y(),n=r(e,"Set");return Ft=n,Ft}var jt,yo;function ef(){if(yo)return jt;yo=1;var r=ee(),e=Y(),n=r(e,"WeakMap");return jt=n,jt}var Ht,vo;function rf(){if(vo)return Ht;vo=1;var r=Zc(),e=ea(),n=Jc(),t=Qc(),a=ef(),i=xe(),o=Ul(),l="[object Map]",s="[object Object]",u="[object Promise]",f="[object Set]",d="[object WeakMap]",c="[object DataView]",h=o(r),g=o(e),v=o(n),b=o(t),y=o(a),_=i;return(r&&_(new r(new ArrayBuffer(1)))!=c||e&&_(new e)!=l||n&&_(n.resolve())!=u||t&&_(new t)!=f||a&&_(new a)!=d)&&(_=function(m){var S=i(m),T=S==s?m.constructor:void 0,A=T?o(T):"";if(A)switch(A){case h:return c;case g:return l;case v:return u;case b:return f;case y:return d}return S}),Ht=_,Ht}var zt,bo;function tf(){if(bo)return zt;bo=1;var r=$l(),e=Wl(),n=Dc(),t=Xc(),a=rf(),i=V(),o=Vl(),l=Xl(),s=1,u="[object Arguments]",f="[object Array]",d="[object Object]",c=Object.prototype,h=c.hasOwnProperty;function g(v,b,y,_,m,S){var T=i(v),A=i(b),q=T?f:a(v),P=A?f:a(b);q=q==u?d:q,P=P==u?d:P;var N=q==d,j=P==d,C=q==P;if(C&&o(v)){if(!o(b))return!1;T=!0,N=!1}if(C&&!N)return S||(S=new r),T||l(v)?e(v,b,y,_,m,S):n(v,b,q,y,_,m,S);if(!(y&s)){var K=N&&h.call(v,"__wrapped__"),z=j&&h.call(b,"__wrapped__");if(K||z){var Z=K?v.value():v,re=z?b.value():b;return S||(S=new r),m(Z,re,y,_,S)}}return C?(S||(S=new r),t(v,b,y,_,m,S)):!1}return zt=g,zt}var Bt,_o;function Zl(){if(_o)return Bt;_o=1;var r=tf(),e=Ae();function n(t,a,i,o,l){return t===a?!0:t==null||a==null||!e(t)&&!e(a)?t!==t&&a!==a:r(t,a,i,o,n,l)}return Bt=n,Bt}var Gt,So;function nf(){if(So)return Gt;So=1;var r=$l(),e=Zl(),n=1,t=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],g=i[h],v=c[1];if(d&&c[2]){if(g===void 0&&!(h in i))return!1}else{var b=new r;if(s)var y=s(g,v,h,i,o,b);if(!(y===void 0?e(v,g,n|t,s,b):y))return!1}}return!0}return Gt=a,Gt}var Ut,xo;function Jl(){if(xo)return Ut;xo=1;var r=_e();function e(n){return n===n&&!r(n)}return Ut=e,Ut}var Kt,Ao;function af(){if(Ao)return Kt;Ao=1;var r=Jl(),e=Ne();function n(t){for(var a=e(t),i=a.length;i--;){var o=a[i],l=t[o];a[i]=[o,l,r(l)]}return a}return Kt=n,Kt}var $t,qo;function Ql(){if(qo)return $t;qo=1;function r(e,n){return function(t){return t==null?!1:t[e]===n&&(n!==void 0||e in Object(t))}}return $t=r,$t}var Wt,Co;function of(){if(Co)return Wt;Co=1;var r=nf(),e=af(),n=Ql();function t(a){var i=e(a);return i.length==1&&i[0][2]?n(i[0][0],i[0][1]):function(o){return o===a||r(o,a,i)}}return Wt=t,Wt}var Vt,Ro;function lf(){if(Ro)return Vt;Ro=1;var r=ta();function e(n,t,a){var i=n==null?void 0:r(n,t);return i===void 0?a:i}return Vt=e,Vt}var Yt,wo;function sf(){if(wo)return Yt;wo=1;function r(e,n){return e!=null&&n in Object(e)}return Yt=r,Yt}var Xt,To;function uf(){if(To)return Xt;To=1;var r=Kl(),e=Zn(),n=V(),t=na(),a=aa(),i=Le();function o(l,s,u){s=r(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)&&t(h,d)&&(n(l)||e(l)))}return Xt=o,Xt}var Zt,Oo;function cf(){if(Oo)return Zt;Oo=1;var r=sf(),e=uf();function n(t,a){return t!=null&&e(t,a,r)}return Zt=n,Zt}var Jt,Mo;function ff(){if(Mo)return Jt;Mo=1;var r=Zl(),e=lf(),n=cf(),t=Jn(),a=Jl(),i=Ql(),o=Le(),l=1,s=2;function u(f,d){return t(f)&&a(d)?i(o(f),d):function(c){var h=e(c,f);return h===void 0&&h===d?n(c,f):r(d,h,l|s)}}return Jt=u,Jt}var Qt,Po;function ke(){if(Po)return Qt;Po=1;function r(e){return e}return Qt=r,Qt}var en,Eo;function df(){if(Eo)return en;Eo=1;function r(e){return function(n){return n==null?void 0:n[e]}}return en=r,en}var rn,Io;function hf(){if(Io)return rn;Io=1;var r=ta();function e(n){return function(t){return r(t,n)}}return rn=e,rn}var tn,Lo;function pf(){if(Lo)return tn;Lo=1;var r=df(),e=hf(),n=Jn(),t=Le();function a(i){return n(i)?r(t(i)):e(i)}return tn=a,tn}var nn,Do;function es(){if(Do)return nn;Do=1;var r=of(),e=ff(),n=ke(),t=V(),a=pf();function i(o){return typeof o=="function"?o:o==null?n:typeof o=="object"?t(o)?e(o[0],o[1]):r(o):a(o)}return nn=i,nn}var an,No;function gf(){if(No)return an;No=1;function r(e){return function(n,t,a){for(var i=-1,o=Object(n),l=a(n),s=l.length;s--;){var u=l[e?s:++i];if(t(o[u],u,o)===!1)break}return n}}return an=r,an}var on,ko;function mf(){if(ko)return on;ko=1;var r=gf(),e=r();return on=e,on}var ln,Fo;function yf(){if(Fo)return ln;Fo=1;var r=mf(),e=Ne();function n(t,a){return t&&r(t,a,e)}return ln=n,ln}var sn,jo;function vf(){if(jo)return sn;jo=1;var r=De();function e(n,t){return function(a,i){if(a==null)return a;if(!r(a))return n(a,i);for(var o=a.length,l=t?o:-1,s=Object(a);(t?l--:++l<o)&&i(s[l],l,s)!==!1;);return a}}return sn=e,sn}var un,Ho;function bf(){if(Ho)return un;Ho=1;var r=yf(),e=vf(),n=e(r);return un=n,un}var cn,zo;function rs(){if(zo)return cn;zo=1;var r=bf(),e=De();function n(t,a){var i=-1,o=e(t)?Array(t.length):[];return r(t,function(l,s,u){o[++i]=a(l,s,u)}),o}return cn=n,cn}var fn,Bo;function _f(){if(Bo)return fn;Bo=1;function r(e,n){var t=e.length;for(e.sort(n);t--;)e[t]=e[t].value;return e}return fn=r,fn}var dn,Go;function Sf(){if(Go)return dn;Go=1;var r=qe();function e(n,t){if(n!==t){var a=n!==void 0,i=n===null,o=n===n,l=r(n),s=t!==void 0,u=t===null,f=t===t,d=r(t);if(!u&&!d&&!l&&n>t||l&&s&&f&&!u&&!d||i&&s&&f||!a&&f||!o)return 1;if(!i&&!l&&!d&&n<t||d&&a&&o&&!i&&!l||u&&a&&o||!s&&o||!f)return-1}return 0}return dn=e,dn}var hn,Uo;function xf(){if(Uo)return hn;Uo=1;var r=Sf();function e(n,t,a){for(var i=-1,o=n.criteria,l=t.criteria,s=o.length,u=a.length;++i<s;){var f=r(o[i],l[i]);if(f){if(i>=u)return f;var d=a[i];return f*(d=="desc"?-1:1)}}return n.index-t.index}return hn=e,hn}var pn,Ko;function Af(){if(Ko)return pn;Ko=1;var r=Oe(),e=ta(),n=es(),t=rs(),a=_f(),i=Yl(),o=xf(),l=ke(),s=V();function u(f,d,c){d.length?d=r(d,function(v){return s(v)?function(b){return e(b,v.length===1?v[0]:v)}:v}):d=[l];var h=-1;d=r(d,i(n));var g=t(f,function(v,b,y){var _=r(d,function(m){return m(v)});return{criteria:_,index:++h,value:v}});return a(g,function(v,b){return o(v,b,c)})}return pn=u,pn}var gn,$o;function qf(){if($o)return gn;$o=1;function r(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}return gn=r,gn}var mn,Wo;function Cf(){if(Wo)return mn;Wo=1;var r=qf(),e=Math.max;function n(t,a,i){return a=e(a===void 0?t.length-1:a,0),function(){for(var o=arguments,l=-1,s=e(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),r(t,this,f)}}return mn=n,mn}var yn,Vo;function Rf(){if(Vo)return yn;Vo=1;function r(e){return function(){return e}}return yn=r,yn}var vn,Yo;function wf(){if(Yo)return vn;Yo=1;var r=ee(),e=(function(){try{var n=r(Object,"defineProperty");return n({},"",{}),n}catch{}})();return vn=e,vn}var bn,Xo;function Tf(){if(Xo)return bn;Xo=1;var r=Rf(),e=wf(),n=ke(),t=e?function(a,i){return e(a,"toString",{configurable:!0,enumerable:!1,value:r(i),writable:!0})}:n;return bn=t,bn}var _n,Zo;function Of(){if(Zo)return _n;Zo=1;var r=800,e=16,n=Date.now;function t(a){var i=0,o=0;return function(){var l=n(),s=e-(l-o);if(o=l,s>0){if(++i>=r)return arguments[0]}else i=0;return a.apply(void 0,arguments)}}return _n=t,_n}var Sn,Jo;function Mf(){if(Jo)return Sn;Jo=1;var r=Tf(),e=Of(),n=e(r);return Sn=n,Sn}var xn,Qo;function Pf(){if(Qo)return xn;Qo=1;var r=ke(),e=Cf(),n=Mf();function t(a,i){return n(e(a,i,r),a+"")}return xn=t,xn}var An,el;function ia(){if(el)return An;el=1;var r=Qn(),e=De(),n=na(),t=_e();function a(i,o,l){if(!t(l))return!1;var s=typeof o;return(s=="number"?e(l)&&n(o,l.length):s=="string"&&o in l)?r(l[o],i):!1}return An=a,An}var qn,rl;function Ef(){if(rl)return qn;rl=1;var r=Bl(),e=Af(),n=Pf(),t=ia(),a=n(function(i,o){if(i==null)return[];var l=o.length;return l>1&&t(i,o[0],o[1])?o=[]:l>2&&t(o[0],o[1],o[2])&&(o=[o[0]]),e(i,r(o,1),[])});return qn=a,qn}var If=Ef();const Lf=oe(If);var Cn,tl;function Df(){if(tl)return Cn;tl=1;function r(e){for(var n=-1,t=e==null?0:e.length,a={};++n<t;){var i=e[n];a[i[0]]=i[1]}return a}return Cn=r,Cn}var Nf=Df();const nl=oe(Nf);var Rn,al;function kf(){if(al)return Rn;al=1;var r=Math.ceil,e=Math.max;function n(t,a,i,o){for(var l=-1,s=e(r((a-t)/(i||1)),0),u=Array(s);s--;)u[o?s:++l]=t,t+=i;return u}return Rn=n,Rn}var wn,il;function Ff(){if(il)return wn;il=1;var r=kf(),e=ia(),n=Fl();function t(a){return function(i,o,l){return l&&typeof l!="number"&&e(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),r(i,o,l,a)}}return wn=t,wn}var Tn,ol;function jf(){if(ol)return Tn;ol=1;var r=Ff(),e=r();return Tn=e,Tn}var Hf=jf();const zf=oe(Hf);var On,ll;function Bf(){if(ll)return On;ll=1;var r=Oe(),e=es(),n=rs(),t=V();function a(i,o){var l=t(i)?r:n;return l(i,e(o,3))}return On=a,On}var Mn,sl;function Gf(){if(sl)return Mn;sl=1;var r=Bl(),e=Bf();function n(t,a){return r(e(t,a),1)}return Mn=n,Mn}var Uf=Gf();const Kf=oe(Uf);var Pn,ul;function ts(){if(ul)return Pn;ul=1;function r(e,n,t){return e===e&&(t!==void 0&&(e=e<=t?e:t),n!==void 0&&(e=e>=n?e:n)),e}return Pn=r,Pn}var En,cl;function $f(){if(cl)return En;cl=1;function r(e,n){var t=-1,a=e.length;for(n||(n=Array(a));++t<a;)n[t]=e[t];return n}return En=r,En}var In,fl;function Wf(){if(fl)return In;fl=1;var r=Math.floor,e=Math.random;function n(t,a){return t+r(e()*(a-t+1))}return In=n,In}var Ln,dl;function ns(){if(dl)return Ln;dl=1;var r=Wf();function e(n,t){var a=-1,i=n.length,o=i-1;for(t=t===void 0?i:t;++a<t;){var l=r(a,o),s=n[l];n[l]=n[a],n[a]=s}return n.length=t,n}return Ln=e,Ln}var Dn,hl;function Vf(){if(hl)return Dn;hl=1;var r=ts(),e=$f(),n=ns();function t(a,i){return n(e(a),r(i,0,a.length))}return Dn=t,Dn}var Nn,pl;function Yf(){if(pl)return Nn;pl=1;var r=Oe();function e(n,t){return r(t,function(a){return n[a]})}return Nn=e,Nn}var kn,gl;function Xf(){if(gl)return kn;gl=1;var r=Yf(),e=Ne();function n(t){return t==null?[]:r(t,e(t))}return kn=n,kn}var Fn,ml;function Zf(){if(ml)return Fn;ml=1;var r=ts(),e=ns(),n=Xf();function t(a,i){var o=n(a);return e(o,r(i,0,o.length))}return Fn=t,Fn}var jn,yl;function Jf(){if(yl)return jn;yl=1;var r=Vf(),e=Zf(),n=V(),t=ia(),a=jl();function i(o,l,s){(s?t(o,l,s):l===void 0)?l=1:l=a(l);var u=n(o)?r:e;return u(o,l)}return jn=i,jn}var Qf=Jf();const ed=oe(Qf),rd=r=>Yu(r,14),vl=r=>Object.values(r).reduce((e,n)=>e+n,0),td=(r,e,n={})=>{const t=Object.assign({draw:!1},n);if(Object.values(r).length<1)throw new Error("vote distribution must contain at least one party");if(!Object.values(r).every(g=>typeof g=="number"&&g>=0))throw new Error("party vote counts must be non-negative integers");if(!Number.isInteger(e)||e<=0)throw new Error("seats must be a positive integer");if(typeof t.draw!="boolean")throw new Error("opt.draw must be a boolean");const a=vl(r),i=nl(Object.entries(r).map(([g,v])=>{const b=Math.max(e-Object.keys(r).length,0),y=Math.round(b*v/a);return[g,y]})),o=nl(Object.entries(r).map(([g,v])=>{const b=e+Object.keys(r).length,y=Math.min(Math.round(b*v/a),e);return[g,y]})),l=Kf(Object.entries(r).map(([g,v])=>{const b=i[g],y=o[g];return zf(b,y).map(_=>{const m=rd(v/(_+.5));return{party:g,quotient:m}})})),s=vl(i),u=e-s,f=Lf(l,({quotient:g})=>-g),d=f[u-1].quotient,c=f.filter(({quotient:g})=>g>d),h=f.filter(({quotient:g})=>g===d);if(c.length+h.length===u)c.push(...h);else{if(!t.draw)throw new Error("result is ambiguous, a draw would need to be made, but opt.draw is disabled");c.push(...ed(h,u-c.length))}return c.reduce((g,{party:v})=>(g[v]+=1,g),i)},as=(r=be)=>r("pattern",{id:"greyHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[r("rect",{x:0,y:0,width:8,height:8,fill:J.neoGrey[200]}),r("path",{d:"M0,2 L8,2",stroke:J.neoGrey[400],"stroke-width":.5}),r("path",{d:"M0,6 L8,6",stroke:J.neoGrey[400],"stroke-width":.5})]),is=(r=be)=>r("pattern",{id:"dataMissingHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[r("rect",{x:0,y:0,width:8,height:8,fill:"#FFF3CC"}),r("path",{d:"M0,8 L8,0",stroke:"#FFB800","stroke-width":.5}),r("path",{d:"M-2,2 L2,-2",stroke:"#FFB800","stroke-width":.5}),r("path",{d:"M6,10 L10,6",stroke:"#FFB800","stroke-width":.5})]),os=(r=be)=>r("pattern",{id:"noLstHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[r("rect",{x:0,y:0,width:8,height:8,fill:"#FFE5E5"}),r("path",{d:"M0,0 L8,8",stroke:"#ED4134","stroke-width":.5}),r("path",{d:"M-2,6 L2,10",stroke:"#ED4134","stroke-width":.5}),r("path",{d:"M6,-2 L10,2",stroke:"#ED4134","stroke-width":.5})]),F={greyHatch:{background:J.neoGrey[200],lines:J.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}},Te=r=>Math.round(r*1e10)/1e10,nd=r=>r.reduce((e,n)=>e+n.seats,0),ad=r=>r.flat(),id=(r,e,n)=>{const t=(Math.PI-n)/2,a=e/r+t-Math.PI;return{x:Te(r*Math.cos(a)),y:Te(r*Math.sin(a))}},ls=(r,e,n,t)=>{const a=t*e*n/(r-e),i=1+t*(e-1)*e/2/(r-e);return a/i},ue=(r,e,n,t)=>{const a=t/Math.PI*.7142857142857143;return Math.abs(ls(r,e,n,t)*e/n-a)},od=(r,e,n)=>{let t=Math.floor(Math.log(r)/Math.log(2))||1,a=ue(r,t,e,n),i=0;for(ue(r,t+1,e,n)<a&&(i=1),ue(r,t-1,e,n)<a&&t>1&&(i=-1);ue(r,t+i,e,n)<a&&t>0;)a=ue(r,t+i,e,n),t+=i;return t},ld=(r,e)=>{var a,i;let n,t;for(let o=0;o<r.length;o++)t=Te((e[o]||0)/(((a=r[o])==null?void 0:a.length)??1)),(!n||t<n)&&(n=t);for(let o=0;o<r.length;o++)if(t=Te((e[o]||0)/(((i=r[o])==null?void 0:i.length)??1)),t===n)return o;return 0},sd=(r,e,n)=>{const t=nd(r),a=od(t,e,n),i=ls(t,a,e,n);let o={};for(let c=1;c<=a;c++)o[c]=e-(c-1)*i;o=td(o,t);const l=[];let s,u,f;for(let c=1;c<=a;c++){const h=[];s=e-(c-1)*i,u=n*s/((o[c]??1)-1||1);for(let g=0;g<=(o[c]??1)-1;g++)f={...id(s,g*u,n),r:.4*i},h.push(f);l.push(h)}const d=Array(l.length).fill(0);for(const c of r)for(let h=0;h<c.seats;h++){const g=ld(l,d),v=l[g],b=d[g]??0,y=v==null?void 0:v[b];y&&(y.fill=c.colour,y.party=String(c.id)),d[g]=b+1}return ad(l)},ud=r=>e=>r("circle",{cx:e.x,cy:e.y,r:e.r,fill:e.fill,class:e.party}),cd={seatCount:!1,arcAngle:180,hFunction:be},fd=(r,e={})=>{var b;const{seatCount:n,arcAngle:t,hFunction:a}=Object.assign({},cd,e);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 t!="number"||t<=0||t>360)throw new Error("`arcAngle` option must be a number between 0 and 360");const i=t*Math.PI/180,o=20,l=sd(r,o,i),s=(((b=l[0])==null?void 0:b.r)??0)/.4||0,u=l.map(ud(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=t<=180?o+s:o*(1+Math.sin((i-Math.PI)/2))+s,d=o+s,c=Math.max(f,d),h=t<=180?-o-s/2:-o*(1+Math.sin((i-Math.PI)/2))-s/2,g=a("defs",[as(a),is(a),os(a)]);return a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:[-o-s/2,h,2*o+s,c].join(",")},[g,...u])},dd={seatCount:!1,arcAngle:200,arcAngleFlexibility:5,radius:380,seatSize:4.5,minSeatSize:1.8,maxSeatSize:3,spacing:1.8,innerRadiusRatio:.6,showLabels:!0,hFunction:be},hd=(r,e={})=>{const n={...dd,...e},{arcAngle:t,arcAngleFlexibility:a,radius:i,seatSize:o,minSeatSize:l,maxSeatSize:s,spacing:u,innerRadiusRatio:f,showLabels:d,hFunction:c}=n,h=i*f,g=r.reduce((R,D)=>R+D.seats,0);let v={seatSize:o,arcAngle:t,score:-1};const b=t-a,y=t+a;for(let R=b;R<=y;R+=2.5){const D=R*Math.PI/180;for(let I=s;I>=l;I-=.1){const G=I*2,$=G*u,X=Math.floor((i-h)/$);for(let W=1;W<=Math.min(X,10);W++){let k=0;for(let le=0;le<W;le++){const He=h+(le+.5)*$,se=G*u/He,ze=Math.floor(D/se);k+=ze}if(k>=g){const le=g/k,He=(I-l)/(s-l),se=(k-g)/g,ze=se<.15?1:se<.3?.7:se<.5?.4:.1,bs=1-Math.abs(R-t)/a,la=ze*.5+He*.3+le*.15+bs*.05;la>v.score&&(v={seatSize:I,arcAngle:R,rings:W,score:la})}}}}const _=v.seatSize,m=v.arcAngle,S=m*Math.PI/180,T=_*2,A=T*u,q=Math.floor((i-h)/A),P=[],N=-S/2-Math.PI/2,j=[];let C=0,K=[];for(let R=1;R<=q;R++){let D=0;const I=[];for(let G=0;G<R;G++){const $=h+(G+.5)*A,X=T*u/$,W=Math.floor(S/X);I.push(W),D+=W}if(D>=g){C=R,K=I;break}}if(C>0)j.push(...K);else for(let R=0;R<q;R++){const D=h+(R+.5)*A,I=T*u/D,G=Math.floor(S/I);j.push(G)}for(let R=0;R<j.length;R++){const D=h+(R+.5)*A,I=j[R]??0;if(I>0){const G=S/I;for(let $=0;$<I;$++){const X=N+($+.5)*G,W=Math.cos(X)*D,k=Math.sin(X)*D;P.push({ring:R,index:$,angle:X,x:W,y:k})}}}P.sort((R,D)=>{const I=R.angle-D.angle;return Math.abs(I)>.001?I:R.ring-D.ring});const z=[];let Z=0;r.forEach(R=>{const D=[],I=Math.min(R.seats,P.length-Z);let G=1/0,$=-1/0;for(let W=0;W<I&&Z<P.length;W++){const k=P[Z++];k&&(G=Math.min(G,k.angle),$=Math.max($,k.angle),Math.sqrt(k.x*k.x+k.y*k.y),D.push(c("circle",{fill:R.colour,stroke:R.colour,className:"circle seat-visual seat-hover-zone",transform:`translate(${k.x}, ${k.y})`,r:_,"data-party":R.name,"data-party-id":String(R.id),style:"pointer-events: all; cursor: pointer;"})))}const X=D;z.push(c("g",{className:"party-group","data-party":R.name,style:"opacity: 1; outline: none;"},X))});const re=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})]),Fe=c("g",{className:"points-container"},z),hs=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,ps=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})]),as(c),is(c),os(c)]),gs=c("g",{className:"arc-container",transform:`translate(${i}, ${i})`},[re,Fe,hs].filter(Boolean)),oa=S/2;let je;if(m<=180)je=i*Math.sin(oa)+_;else{const R=oa-Math.PI/2;je=i*(1+Math.sin(R))+_}const ms=i+_,ys=i*2,vs=Math.max(je,ms);return c("svg",{id:"chart-container","font-family":"Canva Sans Variable",viewBox:`0 0 ${ys} ${vs}`,preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg"},[gs,ps])};function ss(r){return!r||!r.color?"#cccccc":r.color==="url(#hatchPattern)"?ae.COMPLETED:r.color==="url(#greyHatchPattern)"?F.greyHatch.lines:r.color}function Kn(r,e){if(!r)return;const n=r.querySelectorAll(".party-group");n&&n.length>0&&n.forEach(t=>{if(!t)return;const a=t,i=a.getAttribute("data-party");e?i===e?a.style.opacity=H.animation.hoverOpacity.active:a.style.opacity=H.animation.hoverOpacity.dimmed:a.style.opacity="1"})}function $n(r,e){r.forEach(n=>{const t=n,a=n.getAttribute("class")||"";e?a===e?(t.setAttribute("fill-opacity","1"),t.setAttribute("stroke-opacity","1")):(t.setAttribute("fill-opacity",H.animation.hoverOpacity.dimmed),t.setAttribute("stroke-opacity","0.2")):(t.setAttribute("fill-opacity","1"),t.setAttribute("stroke-opacity","1"))})}const pd=({containerRef:r,processedData:e,totalRepositories:n,arcAngle:t,useEnhanced:a,maxSeats:i,setHoveredData:o,activePartyName:l,setActivePartyName:s,chartConfig:u,seatSize:f})=>{fe.useEffect(()=>{if(!r.current||e.length===0)return;for(;r.current.firstChild;)r.current.removeChild(r.current.firstChild);const d=n<=i?1:i/n,c=e.filter(m=>m.value>0).map(m=>{const S=n<=i?m.value:Math.max(1,Math.floor(m.value*d));return{id:String(m.id),name:m.label,seats:S,colour:m.color==="url(#hatchPattern)"?ae.COMPLETED:m.color}}),h=a?hd(c,{arcAngle:t,arcAngleFlexibility:u.arcAngleFlexibility,radius:u.radius,seatSize:f,minSeatSize:u.minSeatSize,maxSeatSize:u.maxSeatSize,spacing:u.spacing,innerRadiusRatio:u.innerRadiusRatio,showLabels:!0}):fd(c,{arcAngle:t});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 g=Eu(h),y=new DOMParser().parseFromString(g,"image/svg+xml").documentElement;if(!y)return;y.setAttribute("width","100%"),y.setAttribute("height","100%"),y.style.width="100%",y.style.height="auto",y.style.display="block",a?gd(y,c,e,o,l,s):md(y,c,e,o,l,s);const _=()=>{if(o(null),s(null),a)Kn(y,null);else{const m=y.querySelectorAll("circle");$n(m,null)}};return y&&y.addEventListener("mouseleave",_),r.current.appendChild(y),()=>{if(y&&y.removeEventListener("mouseleave",_),r.current)for(;r.current.firstChild;)r.current.removeChild(r.current.firstChild)}},[e,n,t,a,i,o,l,s,r,u,f])};function gd(r,e,n,t,a,i){if(!r)return;const o=r.querySelectorAll(".seat-hover-zone"),l=r.querySelectorAll(".party-group circle.seat-visual");l&&l.length>0&&l.forEach(s=>{if(s){const u=s;u.style.stroke=H.colors.seatBorder,u.style.strokeWidth="0.5",u.setAttribute("fill-opacity","1"),u.style.transition=`fill-opacity ${H.animation.transitionDuration} ease, stroke-opacity ${H.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=e.find(h=>h.name===u||String(h.id)===f);if(c){const h=n.find(g=>g.label===c.name||String(g.id)===c.id);if(h){const g=ss(h);t({label:h.label||"Unknown",value:h.value||0,color:g}),i(c.name),Kn(r,c.name)}}}};s.addEventListener("mouseenter",d)}),a&&Kn(r,a)}function md(r,e,n,t,a,i){if(!r)return;const o=r.querySelectorAll("circle");if(o&&o.length>0&&(o.forEach(l=>{if(l){const s=l;s.style.cursor="pointer",s.style.stroke=H.colors.seatBorder,s.style.strokeWidth="0.5",s.setAttribute("fill-opacity","1"),s.style.transition=`fill-opacity ${H.animation.transitionDuration} ease, stroke-opacity ${H.animation.transitionDuration} ease`}}),o.forEach(l=>{if(!l)return;const s=l.getAttribute("class")||"",u=parseInt(s,10),f=e[u],d=()=>{if(f){const c=f.name;if(c&&c!==a){const h=n.find(g=>g.label===f.name||String(g.id)===f.id);if(h){const g=ss(h);t({label:h.label||"Unknown",value:h.value||0,color:g}),i(c),$n(o,s)}}}};l.addEventListener("mouseenter",d)})),a){const l=e.find(s=>s.name===a);if(l){const s=e.indexOf(l);$n(o,String(s))}}}const us=[{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}],cs=({repositoryCount:r})=>{const e=us.find(l=>r>=l.minRepos&&r<l.maxRepos);if(!e)return 180;if(e.minArc===e.maxArc)return e.minArc;const n=e.maxRepos-e.minRepos,a=(r-e.minRepos)/n,i=e.maxArc-e.minArc,o=e.minArc+i*a;return Math.round(o)},fs=({repositoryCount:r})=>{const e=us.find(l=>r>=l.minRepos&&r<l.maxRepos);if(!e)return 5;if(e.minSeatSize===e.maxSeatSize)return e.minSeatSize;const n=e.maxRepos-e.minRepos,a=(r-e.minRepos)/n,i=e.maxSeatSize-e.minSeatSize,o=e.minSeatSize+i*a;return Math.round(o*10)/10},Hn=["#4CA75A","#FDDA04","#FFC008","#FF9800","#F9A91B","#FF5C24","#ED4134","#CB3446"],bl={[pe]:ae.NOT_APPLICABLE,[ge]:ae.NO_LST,[me]:ae.DATA_MISSING},ce=(r,e,n)=>{if(r in bl)return bl[r];const t=n-1-e,a=Hn.length,i=Math.floor(t/Math.max(1,n-1)*(a-1)),o=Math.min(Math.max(0,i),a-1);return Hn[o]??Hn[0]??"#000000"},ds=({dataSeries:r,notApplicableRepositories:e,noLstRepositories:n,unavailableRepositories:t})=>{const{special:a,regular:i}=r.reduce((h,g,v)=>([pe,ge,me].includes(g.label)?h.special.push({...g,originalIndex:v}):h.regular.push({...g,originalIndex:v}),h),{special:[],regular:[]}),o=i.reverse().map((h,g)=>({id:`measure-${g}`,label:h.label,value:h.value,color:ce(h.label,i.length-1-g,i.length)})),l=a.map((h,g)=>({id:h.label.toLowerCase().replace(" ","-"),label:h.label,value:h.value,color:ce(h.label,g,a.length)})),s=t,u={id:"no-lst",label:ge,value:n,color:ce(ge,0,1)},f={id:"data-missing",label:me,value:s,color:ce(me,0,1)},d={id:"n/a",label:pe,value:e,color:ce(pe,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},_l={"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."},yd=({dataSeries:r,totalRepositories:e,notApplicableRepositories:n,noLstRepositories:t,unavailableRepositories:a,arcAngle:i,useEnhanced:o=H.useEnhanced})=>{const l=fe.useRef(null),[s,u]=fe.useState(null),[f,d]=fe.useState(null),h=ds({dataSeries:r,notApplicableRepositories:n,noLstRepositories:t,unavailableRepositories:a}).map(m=>{const S=typeof m.color=="function"?m.color("arc"):m.color,T=typeof m.label=="function"?m.label("arc"):m.label;return{...m,color:S,label:T}}),g=i??cs({repositoryCount:e}),v=fs({repositoryCount:e});pd({containerRef:l,processedData:h,totalRepositories:e,arcAngle:g,useEnhanced:o,maxSeats:H.maxSeats,setHoveredData:u,activePartyName:f,setActivePartyName:d,chartConfig:H.chartConfig,seatSize:v});const b=h.map(m=>{const S=m.value/e*100,T=S>0&&S<1?"< 1":S.toFixed(0);return{id:String(m.id),label:m.label,value:m.value,percentage:T,color:m.color}}),y=e>H.maxSeats,_=y?Math.round(e/H.maxSeats):1;return w.jsxs(M.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:[w.jsxs(M.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:[w.jsx(M.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"}}}}),w.jsxs(M.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&&w.jsxs(fe.Fragment,{children:[w.jsx(M.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}),w.jsxs(M.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"]})]}),y&&w.jsxs(M.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:[w.jsx(M.Box,{className:"parliament-chart-scaled-indicator-dot",sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"#888888",flexShrink:0}}),w.jsxs(M.Typography,{variant:"caption",sx:{fontSize:"inherit",fontStyle:"italic"},children:["= ~",_," repos"]})]})]})]}),w.jsx(M.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:w.jsxs(M.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:[w.jsx("thead",{children:w.jsxs(M.TableRow,{children:[w.jsx(M.TableCell,{}),w.jsx(M.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),w.jsx(M.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"# of repos"}),w.jsx(M.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"% of org"})]})}),w.jsx("tbody",{children:b.map(m=>{const S=m.color==="url(#greyHatchPattern)"?F.greyHatch.lines:m.color==="url(#dataMissingHatchPattern)"?F.dataMissingHatch.lines:m.color==="url(#noLstHatchPattern)"?F.noLstHatch.lines:m.color;return w.jsxs(M.TableRow,{onMouseEnter:()=>{d(m.label),u({label:m.label,value:m.value,color:m.color==="url(#greyHatchPattern)"?F.greyHatch.lines:m.color==="url(#dataMissingHatchPattern)"?F.dataMissingHatch.lines:m.color==="url(#noLstHatchPattern)"?F.noLstHatch.lines:m.color})},sx:{cursor:"pointer",transition:"background-color 0.15s ease",backgroundColor:f===m.label?`${S}15`:"transparent","&:hover":{backgroundColor:`${S}15`}},children:[w.jsx(M.TableCell,{align:"center",sx:{width:20},children:w.jsx(M.Box,{sx:{width:12,height:12,backgroundColor:m.color==="url(#greyHatchPattern)"?F.greyHatch.background:m.color==="url(#dataMissingHatchPattern)"?F.dataMissingHatch.background:m.color==="url(#noLstHatchPattern)"?F.noLstHatch.background:m.color,borderRadius:"50%",position:"relative",overflow:"hidden",transition:"transform 0.15s ease",transform:f===m.label?"scale(1.2)":"scale(1)",...m.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
|
-
${
|
|
14
|
-
${
|
|
15
|
-
)`,borderRadius:"50%"}},...
|
|
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
|
-
${
|
|
20
|
-
${
|
|
21
|
-
)`,borderRadius:"50%"}},...
|
|
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
|
-
${
|
|
26
|
-
${
|
|
27
|
-
)`,borderRadius:"50%"}}}})}),
|
|
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;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @moderneinc/react-charts
|
|
3
|
-
*
|
|
3
|
+
* Chart visualization library for React
|
|
4
4
|
*/
|
|
5
|
-
export { ParliamentChart } from './components/parliament-chart/
|
|
6
|
-
export
|
|
7
|
-
export type {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
5
|
+
export { ParliamentChart } from './components/parliament-chart/parliament-chart.component';
|
|
6
|
+
export { CAMPAIGN_DATA_MISSING, CAMPAIGN_NO_LST, CAMPAIGN_NOT_APPLICABLE, DEFAULT_CHART_CONFIG, MODERNE_VULNERABILITY_COLORS } from './components/parliament-chart/parliament-chart.constants';
|
|
7
|
+
export type { ChartConfig, HoveredData, ParliamentChartProps, ProcessedDataItem } from './components/parliament-chart/parliament-chart.types';
|
|
8
|
+
export { calculateOptimalArcAngle, calculateOptimalSeatSize } from './components/parliament-chart/utils/parliament-arc-calculator';
|
|
9
|
+
export { calculateDataSeries } from './components/parliament-chart/utils/parliament-chart-data.utils';
|
|
10
|
+
export { TimelineChart } from './components/timeline-chart/timeline-chart.component';
|
|
11
|
+
export type { TimelineChartProps, TimelineEvent, TimelineSelectedEventsProps, TimelineSelection } from './components/timeline-chart/timeline-chart.types';
|
|
12
|
+
export { TimelineSelectedEvents } from './components/timeline-chart/timeline-selected-events.component';
|
|
13
|
+
export type { ParliamentChartColors, ParliamentChartTheme } from './theme/default-colors';
|
|
14
|
+
export { DEFAULT_CHART_COLORS } from './theme/default-colors';
|