@ansible/ansible-ui-framework 2.4.2591 → 2.4.2592
Sign up to get free protection for your applications and to get access to all the features.
- package/PageCells/TextCell.d.ts +1 -1
- package/index.js +1 -1
- package/index.umd.cjs +2 -2
- package/package.json +1 -1
package/PageCells/TextCell.d.ts
CHANGED
@@ -12,4 +12,4 @@ export interface TextCellProps {
|
|
12
12
|
maxWidth?: number;
|
13
13
|
disableLinks?: boolean;
|
14
14
|
}
|
15
|
-
export declare function TextCell(props: TextCellProps): import("react/jsx-runtime").JSX.Element;
|
15
|
+
export declare function TextCell(props: Readonly<TextCellProps>): import("react/jsx-runtime").JSX.Element;
|
package/index.js
CHANGED
@@ -12629,7 +12629,7 @@ function hL(e) {
|
|
12629
12629
|
children: e.icon
|
12630
12630
|
}
|
12631
12631
|
) }),
|
12632
|
-
e.text && /* @__PURE__ */ m.jsx(ut, { style: { maxWidth: "100%" }, children: /* @__PURE__ */ m.jsx(
|
12632
|
+
e.text && /* @__PURE__ */ m.jsx(ut, { style: { maxWidth: "100%" }, "data-cy": e.text.toLocaleLowerCase() + "-status", children: /* @__PURE__ */ m.jsx(
|
12633
12633
|
"div",
|
12634
12634
|
{
|
12635
12635
|
style: {
|
package/index.umd.cjs
CHANGED
@@ -132,7 +132,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Mu]+=1);const Iu=Pe.button`
|
|
132
132
|
* LICENSE file in the root directory of this source tree.
|
133
133
|
*/var cx;function MM(){return cx||(cx=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=v,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(S){{for(var C=arguments.length,_=new Array(C>1?C-1:0),w=1;w<C;w++)_[w-1]=arguments[w];r("error",S,_)}}function r(S,C,_){{var w=t.ReactDebugCurrentFrame,k=w.getStackAddendum();k!==""&&(C+="%s",_=_.concat([k]));var A=_.map(function(j){return String(j)});A.unshift("Warning: "+C),Function.prototype.apply.call(console[S],console,A)}}function i(S,C){return S===C&&(S!==0||1/S===1/C)||S!==S&&C!==C}var o=typeof Object.is=="function"?Object.is:i,a=e.useState,s=e.useEffect,l=e.useLayoutEffect,c=e.useDebugValue,u=!1,d=!1;function f(S,C,_){u||e.startTransition!==void 0&&(u=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var w=C();if(!d){var k=C();o(w,k)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}var A=a({inst:{value:w,getSnapshot:C}}),j=A[0].inst,M=A[1];return l(function(){j.value=w,j.getSnapshot=C,h(j)&&M({inst:j})},[S,w,C]),s(function(){h(j)&&M({inst:j});var T=function(){h(j)&&M({inst:j})};return S(T)},[S]),c(w),w}function h(S){var C=S.getSnapshot,_=S.value;try{var w=C();return!o(_,w)}catch{return!0}}function m(S,C,_){return C()}var p=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y=!p,b=y?m:f,x=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:b;ag.useSyncExternalStore=x,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),ag}process.env.NODE_ENV==="production"?jM():MM();const lo=()=>{},Hn=lo(),rd=Object,Pr=e=>e===Hn,co=e=>typeof e=="function",Ko=(e,t)=>({...e,...t}),IM=e=>co(e.then),id=new WeakMap;let $M=0;const Ml=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let i,o;if(rd(e)===e&&!r&&n!=RegExp){if(i=id.get(e),i)return i;if(i=++$M+"~",id.set(e,i),n==Array){for(i="@",o=0;o<e.length;o++)i+=Ml(e[o])+",";id.set(e,i)}if(n==rd){i="#";const a=rd.keys(e).sort();for(;!Pr(o=a.pop());)Pr(e[o])||(i+=o+":"+Ml(e[o])+",");id.set(e,i)}}else i=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return i},uo=new WeakMap,sg={},od={},ux="undefined",lg=typeof window!=ux,cg=typeof document!=ux,LM=(e,t)=>{const n=uo.get(e);return[()=>!Pr(t)&&e.get(t)||sg,r=>{if(!Pr(t)){const i=e.get(t);t in od||(od[t]=i),n[5](t,Ko(i,r),i||sg)}},n[6],()=>!Pr(t)&&t in od?od[t]:!Pr(t)&&e.get(t)||sg]};let ug=!0;const FM=()=>ug,[dg,fg]=lg&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[lo,lo],NM=()=>{const e=cg&&document.visibilityState;return Pr(e)||e!=="hidden"},WM=e=>(cg&&document.addEventListener("visibilitychange",e),dg("focus",e),()=>{cg&&document.removeEventListener("visibilitychange",e),fg("focus",e)}),BM=e=>{const t=()=>{ug=!0,e()},n=()=>{ug=!1};return dg("online",t),dg("offline",n),()=>{fg("online",t),fg("offline",n)}},RM={isOnline:FM,isVisible:NM},zM={initFocus:WM,initReconnect:BM};v.useId;const hg=!lg||"Deno"in window,VM=hg?v.useEffect:v.useLayoutEffect,mg=typeof navigator<"u"&&navigator.connection,dx=!hg&&mg&&(["slow-2g","2g"].includes(mg.effectiveType)||mg.saveData),fx=e=>{if(co(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Ml(e):"",[e,t]};let UM=0;const hx=()=>++UM,HM=0,qM=1,GM=2;async function YM(...e){const[t,n,r,i]=e,o=Ko({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{});let a=o.populateCache;const s=o.rollbackOnError;let l=o.optimisticData;const c=f=>typeof s=="function"?s(f):s!==!1,u=o.throwOnError;if(co(n)){const f=n,h=[],m=t.keys();for(const p of m)!/^\$(inf|sub)\$/.test(p)&&f(t.get(p)._k)&&h.push(p);return Promise.all(h.map(d))}return d(n);async function d(f){const[h]=fx(f);if(!h)return;const[m,p]=LM(t,h),[y,b,x,S]=uo.get(t),C=()=>{const D=y[h];return(co(o.revalidate)?o.revalidate(m().data,f):o.revalidate!==!1)&&(delete x[h],delete S[h],D&&D[0])?D[0](GM).then(()=>m().data):m().data};if(e.length<3)return C();let _=r,w;const k=hx();b[h]=[k,0];const A=!Pr(l),j=m(),M=j.data,T=j._c,P=Pr(T)?M:T;if(A&&(l=co(l)?l(P,M):l,p({data:l,_c:P})),co(_))try{_=_(P)}catch(D){w=D}if(_&&IM(_))if(_=await _.catch(D=>{w=D}),k!==b[h][0]){if(w)throw w;return _}else w&&A&&c(w)&&(a=!0,p({data:P,_c:Hn}));if(a&&!w)if(co(a)){const D=a(_,P);p({data:D,error:Hn,_c:Hn})}else p({data:_,error:Hn,_c:Hn});if(b[h][1]=hx(),Promise.resolve(C()).then(()=>{p({_c:Hn})}),w){if(u)throw w;return}return _}}const mx=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},gx=(e,t)=>{if(!uo.has(e)){const n=Ko(zM,t),r={},i=YM.bind(Hn,e);let o=lo;const a={},s=(u,d)=>{const f=a[u]||[];return a[u]=f,f.push(d),()=>f.splice(f.indexOf(d),1)},l=(u,d,f)=>{e.set(u,d);const h=a[u];if(h)for(const m of h)m(d,f)},c=()=>{if(!uo.has(e)&&(uo.set(e,[r,{},{},{},i,l,s]),!hg)){const u=n.initFocus(setTimeout.bind(Hn,mx.bind(Hn,r,HM))),d=n.initReconnect(setTimeout.bind(Hn,mx.bind(Hn,r,qM)));o=()=>{u&&u(),d&&d(),uo.delete(e)}}};return c(),[e,i,c,o]}return[e,uo.get(e)[4]]},KM=(e,t,n,r,i)=>{const o=n.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!Pr(o)&&a>o||setTimeout(r,s,i)},ZM=(e,t)=>Ml(e)==Ml(t),[gg,XM]=gx(new Map),JM=Ko({onLoadingSlow:lo,onSuccess:lo,onError:lo,onErrorRetry:KM,onDiscarded:lo,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:dx?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:dx?5e3:3e3,compare:ZM,isPaused:()=>!1,cache:gg,mutate:XM,fallback:{}},RM),QM=(e,t)=>{const n=Ko(e,t);if(t){const{use:r,fallback:i}=e,{use:o,fallback:a}=t;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=Ko(i,a))}return n},px=v.createContext({}),eI=e=>{const{value:t}=e,n=v.useContext(px),r=co(t),i=v.useMemo(()=>r?t(n):t,[r,n,t]),o=v.useMemo(()=>r?i:QM(n,i),[r,n,i]),a=i&&i.provider,s=v.useRef(Hn);a&&!s.current&&(s.current=gx(a(o.cache||gg),i));const l=s.current;return l&&(o.cache=l[0],o.mutate=l[1]),VM(()=>{if(l)return l[2]&&l[2](),l[3]},[]),v.createElement(px.Provider,Ko(e,{value:o}))},tI="$inf$",yx=lg&&window.__SWR_DEVTOOLS_USE__,nI=yx?window.__SWR_DEVTOOLS_USE__:[],rI=()=>{yx&&(window.__SWR_DEVTOOLS_REACT__=v)},iI=e=>(t,n,r)=>e(t,n&&((...o)=>{const[a]=fx(t),[,,,s]=uo.get(gg);if(a.startsWith(tI))return n(...o);const l=s[a];return Pr(l)?n(...o):(delete s[a],l)}),r);nI.concat(iI),rI(),v.use;const oI=rd.defineProperty(eI,"defaultValue",{value:JM}),Zo=v.createContext([{},()=>null]);function Xo(){const[e]=v.useContext(Zo);return e}function vx(e){const[t,n]=v.useState(()=>{const o=localStorage.getItem("user-preferences");let a={};if(o)try{a=JSON.parse(o)}catch{}return a={refreshInterval:e.defaultRefreshInterval,theme:"system",tableLayout:"comfortable",formColumns:"multiple",formLayout:"vertical",dateFormat:"date-time",dataEditorFormat:"yaml",...a},a}),r=v.useCallback(o=>{localStorage.setItem("user-preferences",JSON.stringify(o)),n(o)},[]),i=v.useMemo(()=>t.theme!=="light"&&t.theme!=="dark"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":t.theme,[t.theme]);return v.useEffect(()=>{n(o=>o.activeTheme===i?o:{...o,activeTheme:i}),i==="dark"?document.documentElement.classList.add("pf-v5-theme-dark"):document.documentElement.classList.remove("pf-v5-theme-dark")},[i]),g.jsx(oI,{value:{refreshInterval:t.refreshInterval?t.refreshInterval*1e3:0},children:g.jsx(Zo.Provider,{value:[t,r],children:e.children})})}function aI(e){return e?(typeof e=="string"&&(e=new Date(e)),e.toLocaleString()):""}function sI(e){const t=new Date(e.value);return g.jsxs(O.Split,{hasGutter:!0,children:[g.jsx(O.SplitItem,{children:t.toLocaleDateString()}),g.jsx(O.SplitItem,{children:t.toLocaleTimeString()})]})}const lI=Pe.span`
|
134
134
|
white-space: nowrap;
|
135
|
-
`;function bx(e){const{t}=$e(),[n]=Mt(),{author:r,onClick:i}=e,[o,a]=v.useState(null),s=Xo(),l=s.dateFormat?s.dateFormat:"date-time",c=v.useCallback((u,d)=>{let f;switch(typeof u=="number"?f=Oe.fromMillis(u):f=Oe.fromISO(u),d){case"since":{Oe.now().toMillis()-f.toMillis()<60*1e3?a(t("Less than a minute ago")):a(f.toRelative());break}default:a(aI(f.toJSDate()));break}},[t]);return v.useEffect(()=>{if(c(e.value,l),l==="since"){const u=setInterval(()=>c(e.value,l),1e3);return()=>clearTimeout(u)}},[l,e.value,c]),e.value?g.jsxs(lI,{className:"date-time",children:[o,r&&g.jsxs("span",{children:[" ",n.by," "]}),i?g.jsx(O.Button,{variant:"link",isInline:!0,onClick:i,children:r}):g.jsx("span",{children:r})]}):g.jsx(g.Fragment,{})}function cI(e){const t=v.useMemo(()=>new Date(e.start??0).valueOf(),[e.start]),n=v.useMemo(()=>new Date(e.finish??0).valueOf(),[e.finish]),[r,i]=v.useState(Math.max(0,n-t.valueOf()));v.useEffect(()=>{const u=setInterval(()=>{t&&(e.finish?i(Math.max(0,n-t)):i(Math.max(0,Date.now()-t)))},1e3);return()=>clearTimeout(u)},[t,n,e.finish]);const o=Math.floor(r/1e3),a=Math.floor(o%60),s=Math.floor(o/60%60),l=Math.floor(o/60/60%24),c=Math.floor(o/60/60/24);return t?g.jsxs(O.Split,{children:[c!==0&&g.jsxs(O.SplitItem,{children:[c,"d"," "]}),l!==0&&g.jsxs(O.SplitItem,{children:[l,"h"," "]}),s!==0&&g.jsxs(O.SplitItem,{children:[s,"m"," "]}),g.jsxs(O.SplitItem,{children:[a,"s"]})]}):g.jsx(g.Fragment,{})}function xx(e){return g.jsx(O.LabelGroup,{numLabels:e.numLabels??999,style:e.noWrap?{flexWrap:"nowrap"}:void 0,children:e.labels?e.labels.map(t=>g.jsx(O.Label,{children:t},t)):e.labelsWithLinks.map(t=>g.jsx(O.Label,{color:"blue",children:g.jsx(Lt.Link,{to:t.link,children:t.name})},t.name))})}function Il(e){const t={};e.color&&(t.color=Vo(e.color)),e.size&&(t.size=e.size);let n=0;if(e.padRight)switch(e.size){case"sm":n=6;break;case"md":n=6;break;case"lg":n=8;break;case"xl":n=12;break}let r=0;if(e.padLeft)switch(e.size){case"sm":r=6;break;case"md":r=6;break;case"lg":r=8;break;case"xl":r=12;break}const i=v.Children.toArray(e.children).map(o=>v.isValidElement(o)?v.cloneElement(o,t):o);return g.jsx("div",{style:{paddingRight:n,paddingLeft:r},children:i})}function _x(e){const t=Lt.useNavigate();return g.jsxs(O.Flex,{spaceItems:{default:"spaceItemsNone"},flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsBaseline"},children:[e.icon&&((e==null?void 0:e.iconAlign)===void 0||e.iconAlign&&e.iconAlign!=="right")&&g.jsx(O.FlexItem,{alignSelf:{default:"alignSelfCenter"},children:g.jsx(Il,{size:e.iconSize??"sm",color:e.iconColor??e.color,padRight:!0,children:e.icon})}),e.text&&g.jsx(O.FlexItem,{style:{maxWidth:"100%"},children:g.jsx("div",{style:{maxWidth:e.maxWidth??"100%",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",color:e.color?Vo(e.color):void 0},children:!e.disableLinks&&(e.to||e.onClick)?g.jsx("a",{style:{color:e.color?Vo(e.color):void 0},href:e.to,onClick:n=>{if(n.preventDefault(),e.onClick)e.onClick();else{if(!e.to)return;t(e.to)}},children:e.text}):g.jsx(g.Fragment,{children:e.text})})}),e.icon&&e.iconAlign==="right"&&g.jsx(O.FlexItem,{alignSelf:{default:"alignSelfCenter"},children:g.jsx(Il,{size:e.iconSize??"sm",padLeft:!0,color:e.iconColor??e.color,children:e.icon})})]})}function ad(e){var o,a;const t=v.useRef(null),[n,r]=v.useState({width:((o=t.current)==null?void 0:o.clientWidth)??0,height:((a=t.current)==null?void 0:a.clientWidth)??0}),i=v.useCallback(()=>r(s=>{var c,u;const l={width:((c=t.current)==null?void 0:c.clientWidth)??0,height:((u=t.current)==null?void 0:u.clientHeight)??0};return l.width!==s.width||l.height!==s.height?l:s}),[]);return v.useEffect(()=>i(),[t,i]),Ba(t,()=>i()),g.jsx(uI,{ref:t,className:e.className,style:{height:e.height},children:g.jsx(dI,{children:e.children(n)})})}const uI=Pe.div`
|
135
|
+
`;function bx(e){const{t}=$e(),[n]=Mt(),{author:r,onClick:i}=e,[o,a]=v.useState(null),s=Xo(),l=s.dateFormat?s.dateFormat:"date-time",c=v.useCallback((u,d)=>{let f;switch(typeof u=="number"?f=Oe.fromMillis(u):f=Oe.fromISO(u),d){case"since":{Oe.now().toMillis()-f.toMillis()<60*1e3?a(t("Less than a minute ago")):a(f.toRelative());break}default:a(aI(f.toJSDate()));break}},[t]);return v.useEffect(()=>{if(c(e.value,l),l==="since"){const u=setInterval(()=>c(e.value,l),1e3);return()=>clearTimeout(u)}},[l,e.value,c]),e.value?g.jsxs(lI,{className:"date-time",children:[o,r&&g.jsxs("span",{children:[" ",n.by," "]}),i?g.jsx(O.Button,{variant:"link",isInline:!0,onClick:i,children:r}):g.jsx("span",{children:r})]}):g.jsx(g.Fragment,{})}function cI(e){const t=v.useMemo(()=>new Date(e.start??0).valueOf(),[e.start]),n=v.useMemo(()=>new Date(e.finish??0).valueOf(),[e.finish]),[r,i]=v.useState(Math.max(0,n-t.valueOf()));v.useEffect(()=>{const u=setInterval(()=>{t&&(e.finish?i(Math.max(0,n-t)):i(Math.max(0,Date.now()-t)))},1e3);return()=>clearTimeout(u)},[t,n,e.finish]);const o=Math.floor(r/1e3),a=Math.floor(o%60),s=Math.floor(o/60%60),l=Math.floor(o/60/60%24),c=Math.floor(o/60/60/24);return t?g.jsxs(O.Split,{children:[c!==0&&g.jsxs(O.SplitItem,{children:[c,"d"," "]}),l!==0&&g.jsxs(O.SplitItem,{children:[l,"h"," "]}),s!==0&&g.jsxs(O.SplitItem,{children:[s,"m"," "]}),g.jsxs(O.SplitItem,{children:[a,"s"]})]}):g.jsx(g.Fragment,{})}function xx(e){return g.jsx(O.LabelGroup,{numLabels:e.numLabels??999,style:e.noWrap?{flexWrap:"nowrap"}:void 0,children:e.labels?e.labels.map(t=>g.jsx(O.Label,{children:t},t)):e.labelsWithLinks.map(t=>g.jsx(O.Label,{color:"blue",children:g.jsx(Lt.Link,{to:t.link,children:t.name})},t.name))})}function Il(e){const t={};e.color&&(t.color=Vo(e.color)),e.size&&(t.size=e.size);let n=0;if(e.padRight)switch(e.size){case"sm":n=6;break;case"md":n=6;break;case"lg":n=8;break;case"xl":n=12;break}let r=0;if(e.padLeft)switch(e.size){case"sm":r=6;break;case"md":r=6;break;case"lg":r=8;break;case"xl":r=12;break}const i=v.Children.toArray(e.children).map(o=>v.isValidElement(o)?v.cloneElement(o,t):o);return g.jsx("div",{style:{paddingRight:n,paddingLeft:r},children:i})}function _x(e){const t=Lt.useNavigate();return g.jsxs(O.Flex,{spaceItems:{default:"spaceItemsNone"},flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsBaseline"},children:[e.icon&&((e==null?void 0:e.iconAlign)===void 0||e.iconAlign&&e.iconAlign!=="right")&&g.jsx(O.FlexItem,{alignSelf:{default:"alignSelfCenter"},children:g.jsx(Il,{size:e.iconSize??"sm",color:e.iconColor??e.color,padRight:!0,children:e.icon})}),e.text&&g.jsx(O.FlexItem,{style:{maxWidth:"100%"},"data-cy":e.text.toLocaleLowerCase()+"-status",children:g.jsx("div",{style:{maxWidth:e.maxWidth??"100%",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",color:e.color?Vo(e.color):void 0},children:!e.disableLinks&&(e.to||e.onClick)?g.jsx("a",{style:{color:e.color?Vo(e.color):void 0},href:e.to,onClick:n=>{if(n.preventDefault(),e.onClick)e.onClick();else{if(!e.to)return;t(e.to)}},children:e.text}):g.jsx(g.Fragment,{children:e.text})})}),e.icon&&e.iconAlign==="right"&&g.jsx(O.FlexItem,{alignSelf:{default:"alignSelfCenter"},children:g.jsx(Il,{size:e.iconSize??"sm",padLeft:!0,color:e.iconColor??e.color,children:e.icon})})]})}function ad(e){var o,a;const t=v.useRef(null),[n,r]=v.useState({width:((o=t.current)==null?void 0:o.clientWidth)??0,height:((a=t.current)==null?void 0:a.clientWidth)??0}),i=v.useCallback(()=>r(s=>{var c,u;const l={width:((c=t.current)==null?void 0:c.clientWidth)??0,height:((u=t.current)==null?void 0:u.clientHeight)??0};return l.width!==s.width||l.height!==s.height?l:s}),[]);return v.useEffect(()=>i(),[t,i]),Ba(t,()=>i()),g.jsx(uI,{ref:t,className:e.className,style:{height:e.height},children:g.jsx(dI,{children:e.children(n)})})}const uI=Pe.div`
|
136
136
|
width: 100%;
|
137
137
|
height: 100%;
|
138
138
|
flex-grow: 1;
|
@@ -155,7 +155,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Mu]+=1);const Iu=Pe.button`
|
|
155
155
|
*
|
156
156
|
* This source code is licensed under the MIT license found in the
|
157
157
|
* LICENSE file in the root directory of this source tree.
|
158
|
-
*/var Ex;function mI(){return Ex||(Ex=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function S(R){return typeof R=="string"||typeof R=="function"||R===r||R===c||R===o||R===i||R===d||R===f||typeof R=="object"&&R!==null&&(R.$$typeof===m||R.$$typeof===h||R.$$typeof===a||R.$$typeof===s||R.$$typeof===u||R.$$typeof===y||R.$$typeof===b||R.$$typeof===x||R.$$typeof===p)}function C(R){if(typeof R=="object"&&R!==null){var Ae=R.$$typeof;switch(Ae){case t:var ke=R.type;switch(ke){case l:case c:case r:case o:case i:case d:return ke;default:var Ge=ke&&ke.$$typeof;switch(Ge){case s:case u:case m:case h:case a:return Ge;default:return Ae}}case n:return Ae}}}var _=l,w=c,k=s,A=a,j=t,M=u,T=r,P=m,D=h,I=n,$=o,W=i,B=d,U=!1;function V(R){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),F(R)||C(R)===l}function F(R){return C(R)===c}function H(R){return C(R)===s}function X(R){return C(R)===a}function J(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function Q(R){return C(R)===u}function ee(R){return C(R)===r}function ie(R){return C(R)===m}function ue(R){return C(R)===h}function he(R){return C(R)===n}function Z(R){return C(R)===o}function re(R){return C(R)===i}function pe(R){return C(R)===d}tt.AsyncMode=_,tt.ConcurrentMode=w,tt.ContextConsumer=k,tt.ContextProvider=A,tt.Element=j,tt.ForwardRef=M,tt.Fragment=T,tt.Lazy=P,tt.Memo=D,tt.Portal=I,tt.Profiler=$,tt.StrictMode=W,tt.Suspense=B,tt.isAsyncMode=V,tt.isConcurrentMode=F,tt.isContextConsumer=H,tt.isContextProvider=X,tt.isElement=J,tt.isForwardRef=Q,tt.isFragment=ee,tt.isLazy=ie,tt.isMemo=ue,tt.isPortal=he,tt.isProfiler=Z,tt.isStrictMode=re,tt.isSuspense=pe,tt.isValidElementType=S,tt.typeOf=C}()),tt}process.env.NODE_ENV==="production"?yg.exports=hI():yg.exports=mI();var vg=yg.exports,bg=vg,gI={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},pI={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},yI={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ox={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},xg={};xg[bg.ForwardRef]=yI,xg[bg.Memo]=Ox;function kx(e){return bg.isMemo(e)?Ox:xg[e.$$typeof]||gI}var vI=Object.defineProperty,bI=Object.getOwnPropertyNames,Tx=Object.getOwnPropertySymbols,xI=Object.getOwnPropertyDescriptor,_I=Object.getPrototypeOf,Ax=Object.prototype;function Dx(e,t,n){if(typeof t!="string"){if(Ax){var r=_I(t);r&&r!==Ax&&Dx(e,r,n)}var i=bI(t);Tx&&(i=i.concat(Tx(t)));for(var o=kx(e),a=kx(t),s=0;s<i.length;++s){var l=i[s];if(!pI[l]&&!(n&&n[l])&&!(a&&a[l])&&!(o&&o[l])){var c=xI(t,l);try{vI(e,l,c)}catch{}}}}return e}var SI=Dx;const an=Ne(SI),Px={name:"--pf-v5-chart-legend--Margin",value:16,var:"var(--pf-v5-chart-legend--Margin, 16)"};var CI=Object.prototype;function wI(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||CI;return e===n}var ld=wI;function EI(e,t){return function(n){return e(t(n))}}var jx=EI,OI=jx,kI=OI(Object.keys,Object),TI=kI,AI=ld,DI=TI,PI=Object.prototype,jI=PI.hasOwnProperty;function MI(e){if(!AI(e))return DI(e);var t=[];for(var n in Object(e))jI.call(e,n)&&n!="constructor"&&t.push(n);return t}var Mx=MI,II=typeof Xs=="object"&&Xs&&Xs.Object===Object&&Xs,Ix=II,$I=Ix,LI=typeof self=="object"&&self&&self.Object===Object&&self,FI=$I||LI||Function("return this")(),jr=FI,NI=jr,WI=NI.Symbol,Qa=WI,$x=Qa,Lx=Object.prototype,BI=Lx.hasOwnProperty,RI=Lx.toString,$l=$x?$x.toStringTag:void 0;function zI(e){var t=BI.call(e,$l),n=e[$l];try{e[$l]=void 0;var r=!0}catch{}var i=RI.call(e);return r&&(t?e[$l]=n:delete e[$l]),i}var VI=zI,UI=Object.prototype,HI=UI.toString;function qI(e){return HI.call(e)}var GI=qI,Fx=Qa,YI=VI,KI=GI,ZI="[object Null]",XI="[object Undefined]",Nx=Fx?Fx.toStringTag:void 0;function JI(e){return e==null?e===void 0?XI:ZI:Nx&&Nx in Object(e)?YI(e):KI(e)}var fo=JI;function QI(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Pn=QI;const Ll=Ne(Pn);var e$=fo,t$=Pn,n$="[object AsyncFunction]",r$="[object Function]",i$="[object GeneratorFunction]",o$="[object Proxy]";function a$(e){if(!t$(e))return!1;var t=e$(e);return t==r$||t==i$||t==n$||t==o$}var _g=a$,s$=jr,l$=s$["__core-js_shared__"],c$=l$,Sg=c$,Wx=function(){var e=/[^.]+$/.exec(Sg&&Sg.keys&&Sg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function u$(e){return!!Wx&&Wx in e}var d$=u$,f$=Function.prototype,h$=f$.toString;function m$(e){if(e!=null){try{return h$.call(e)}catch{}try{return e+""}catch{}}return""}var Bx=m$,g$=_g,p$=d$,y$=Pn,v$=Bx,b$=/[\\^$.*+?()[\]{}|]/g,x$=/^\[object .+?Constructor\]$/,_$=Function.prototype,S$=Object.prototype,C$=_$.toString,w$=S$.hasOwnProperty,E$=RegExp("^"+C$.call(w$).replace(b$,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function O$(e){if(!y$(e)||p$(e))return!1;var t=g$(e)?E$:x$;return t.test(v$(e))}var k$=O$;function T$(e,t){return e==null?void 0:e[t]}var A$=T$,D$=k$,P$=A$;function j$(e,t){var n=P$(e,t);return D$(n)?n:void 0}var Jo=j$,M$=Jo,I$=jr,$$=M$(I$,"DataView"),L$=$$,F$=Jo,N$=jr,W$=F$(N$,"Map"),Cg=W$,B$=Jo,R$=jr,z$=B$(R$,"Promise"),V$=z$,U$=Jo,H$=jr,q$=U$(H$,"Set"),Rx=q$,G$=Jo,Y$=jr,K$=G$(Y$,"WeakMap"),Z$=K$,wg=L$,Eg=Cg,Og=V$,kg=Rx,Tg=Z$,zx=fo,es=Bx,Vx="[object Map]",X$="[object Object]",Ux="[object Promise]",Hx="[object Set]",qx="[object WeakMap]",Gx="[object DataView]",J$=es(wg),Q$=es(Eg),e4=es(Og),t4=es(kg),n4=es(Tg),Qo=zx;(wg&&Qo(new wg(new ArrayBuffer(1)))!=Gx||Eg&&Qo(new Eg)!=Vx||Og&&Qo(Og.resolve())!=Ux||kg&&Qo(new kg)!=Hx||Tg&&Qo(new Tg)!=qx)&&(Qo=function(e){var t=zx(e),n=t==X$?e.constructor:void 0,r=n?es(n):"";if(r)switch(r){case J$:return Gx;case Q$:return Vx;case e4:return Ux;case t4:return Hx;case n4:return qx}return t});var ts=Qo;function r4(e){return e!=null&&typeof e=="object"}var Mr=r4,i4=fo,o4=Mr,a4="[object Arguments]";function s4(e){return o4(e)&&i4(e)==a4}var l4=s4,Yx=l4,c4=Mr,Kx=Object.prototype,u4=Kx.hasOwnProperty,d4=Kx.propertyIsEnumerable,f4=Yx(function(){return arguments}())?Yx:function(e){return c4(e)&&u4.call(e,"callee")&&!d4.call(e,"callee")},Fl=f4,h4=Array.isArray,_n=h4,m4=9007199254740991;function g4(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=m4}var Ag=g4,p4=_g,y4=Ag;function v4(e){return e!=null&&y4(e.length)&&!p4(e)}var ea=v4,cd={exports:{}};function b4(){return!1}var x4=b4;cd.exports,function(e,t){var n=jr,r=x4,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c}(cd,cd.exports);var Nl=cd.exports,_4=fo,S4=Ag,C4=Mr,w4="[object Arguments]",E4="[object Array]",O4="[object Boolean]",k4="[object Date]",T4="[object Error]",A4="[object Function]",D4="[object Map]",P4="[object Number]",j4="[object Object]",M4="[object RegExp]",I4="[object Set]",$4="[object String]",L4="[object WeakMap]",F4="[object ArrayBuffer]",N4="[object DataView]",W4="[object Float32Array]",B4="[object Float64Array]",R4="[object Int8Array]",z4="[object Int16Array]",V4="[object Int32Array]",U4="[object Uint8Array]",H4="[object Uint8ClampedArray]",q4="[object Uint16Array]",G4="[object Uint32Array]",vt={};vt[W4]=vt[B4]=vt[R4]=vt[z4]=vt[V4]=vt[U4]=vt[H4]=vt[q4]=vt[G4]=!0,vt[w4]=vt[E4]=vt[F4]=vt[O4]=vt[N4]=vt[k4]=vt[T4]=vt[A4]=vt[D4]=vt[P4]=vt[j4]=vt[M4]=vt[I4]=vt[$4]=vt[L4]=!1;function Y4(e){return C4(e)&&S4(e.length)&&!!vt[_4(e)]}var K4=Y4;function Z4(e){return function(t){return e(t)}}var ns=Z4,ud={exports:{}};ud.exports,function(e,t){var n=Ix,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s}(ud,ud.exports);var Wl=ud.exports,X4=K4,J4=ns,Zx=Wl,Xx=Zx&&Zx.isTypedArray,Q4=Xx?J4(Xx):X4,dd=Q4,eL=Mx,tL=ts,nL=Fl,rL=_n,iL=ea,oL=Nl,aL=ld,sL=dd,lL="[object Map]",cL="[object Set]",uL=Object.prototype,dL=uL.hasOwnProperty;function fL(e){if(e==null)return!0;if(iL(e)&&(rL(e)||typeof e=="string"||typeof e.splice=="function"||oL(e)||sL(e)||nL(e)))return!e.length;var t=tL(e);if(t==lL||t==cL)return!e.size;if(aL(e))return!eL(e).length;for(var n in e)if(dL.call(e,n))return!1;return!0}var hL=fL;const bt=Ne(hL);function mL(e){return e}var rs=mL;const is=Ne(rs);function gL(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var pL=gL,yL=pL,Jx=Math.max;function vL(e,t,n){return t=Jx(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Jx(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),yL(e,this,s)}}var Qx=vL;function bL(e){return function(){return e}}var xL=bL,_L=Jo,SL=function(){try{var e=_L(Object,"defineProperty");return e({},"",{}),e}catch{}}(),e2=SL,CL=xL,t2=e2,wL=rs,EL=t2?function(e,t){return t2(e,"toString",{configurable:!0,enumerable:!1,value:CL(t),writable:!0})}:wL,OL=EL,kL=800,TL=16,AL=Date.now;function DL(e){var t=0,n=0;return function(){var r=AL(),i=TL-(r-n);if(n=r,i>0){if(++t>=kL)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var PL=DL,jL=OL,ML=PL,IL=ML(jL),n2=IL,$L=rs,LL=Qx,FL=n2;function NL(e,t){return FL(LL(e,t,$L),e+"")}var Dg=NL;function WL(e,t){return e===t||e!==e&&t!==t}var ta=WL,BL=9007199254740991,RL=/^(?:0|[1-9]\d*)$/;function zL(e,t){var n=typeof e;return t=t??BL,!!t&&(n=="number"||n!="symbol"&&RL.test(e))&&e>-1&&e%1==0&&e<t}var fd=zL,VL=ta,UL=ea,HL=fd,qL=Pn;function GL(e,t,n){if(!qL(n))return!1;var r=typeof t;return(r=="number"?UL(n)&&HL(t,n.length):r=="string"&&t in n)?VL(n[t],e):!1}var Pg=GL;function YL(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var KL=YL,ZL=KL,XL=Fl,JL=_n,QL=Nl,eF=fd,tF=dd,nF=Object.prototype,rF=nF.hasOwnProperty;function iF(e,t){var n=JL(e),r=!n&&XL(e),i=!n&&!r&&QL(e),o=!n&&!r&&!i&&tF(e),a=n||r||i||o,s=a?ZL(e.length,String):[],l=s.length;for(var c in e)(t||rF.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||eF(c,l)))&&s.push(c);return s}var r2=iF;function oF(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var aF=oF,sF=Pn,lF=ld,cF=aF,uF=Object.prototype,dF=uF.hasOwnProperty;function fF(e){if(!sF(e))return cF(e);var t=lF(e),n=[];for(var r in e)r=="constructor"&&(t||!dF.call(e,r))||n.push(r);return n}var hF=fF,mF=r2,gF=hF,pF=ea;function yF(e){return pF(e)?mF(e,!0):gF(e)}var os=yF,vF=Dg,bF=ta,xF=Pg,_F=os,i2=Object.prototype,SF=i2.hasOwnProperty,CF=vF(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&xF(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],a=_F(o),s=-1,l=a.length;++s<l;){var c=a[s],u=e[c];(u===void 0||bF(u,i2[c])&&!SF.call(e,c))&&(e[c]=o[c])}return e}),wF=CF;const K=Ne(wF),EF=e=>+e;function OF(e){return e*e}function kF(e){return e*(2-e)}function o2(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function TF(e){return e*e*e}function AF(e){return--e*e*e+1}function a2(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var jg=3,DF=function e(t){t=+t;function n(r){return Math.pow(r,t)}return n.exponent=e,n}(jg),PF=function e(t){t=+t;function n(r){return 1-Math.pow(1-r,t)}return n.exponent=e,n}(jg),s2=function e(t){t=+t;function n(r){return((r*=2)<=1?Math.pow(r,t):2-Math.pow(2-r,t))/2}return n.exponent=e,n}(jg),l2=Math.PI,c2=l2/2;function jF(e){return+e==1?1:1-Math.cos(e*c2)}function MF(e){return Math.sin(e*c2)}function u2(e){return(1-Math.cos(l2*e))/2}function ho(e){return(Math.pow(2,-10*e)-.0009765625)*1.0009775171065494}function IF(e){return ho(1-+e)}function $F(e){return 1-ho(e)}function d2(e){return((e*=2)<=1?ho(1-e):2-ho(e-1))/2}function LF(e){return 1-Math.sqrt(1-e*e)}function FF(e){return Math.sqrt(1- --e*e)}function f2(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var Mg=4/11,NF=6/11,WF=8/11,BF=3/4,RF=9/11,zF=10/11,VF=15/16,UF=21/22,HF=63/64,hd=1/Mg/Mg;function qF(e){return 1-Bl(1-e)}function Bl(e){return(e=+e)<Mg?hd*e*e:e<WF?hd*(e-=NF)*e+BF:e<zF?hd*(e-=RF)*e+VF:hd*(e-=UF)*e+HF}function GF(e){return((e*=2)<=1?1-Bl(1-e):Bl(e-1)+1)/2}var Ig=1.70158,YF=function e(t){t=+t;function n(r){return(r=+r)*r*(t*(r-1)+r)}return n.overshoot=e,n}(Ig),KF=function e(t){t=+t;function n(r){return--r*r*((r+1)*t+r)+1}return n.overshoot=e,n}(Ig),h2=function e(t){t=+t;function n(r){return((r*=2)<1?r*r*((t+1)*r-t):(r-=2)*r*((t+1)*r+t)+2)/2}return n.overshoot=e,n}(Ig),as=2*Math.PI,$g=1,Lg=.3,ZF=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=as);function i(o){return t*ho(- --o)*Math.sin((r-o)/n)}return i.amplitude=function(o){return e(o,n*as)},i.period=function(o){return e(t,o)},i}($g,Lg),m2=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=as);function i(o){return 1-t*ho(o=+o)*Math.sin((o+r)/n)}return i.amplitude=function(o){return e(o,n*as)},i.period=function(o){return e(t,o)},i}($g,Lg),XF=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=as);function i(o){return((o=o*2-1)<0?t*ho(-o)*Math.sin((r-o)/n):2-t*ho(o)*Math.sin((r+o)/n))/2}return i.amplitude=function(o){return e(o,n*as)},i.period=function(o){return e(t,o)},i}($g,Lg);const JF=Object.freeze(Object.defineProperty({__proto__:null,easeBack:h2,easeBackIn:YF,easeBackInOut:h2,easeBackOut:KF,easeBounce:Bl,easeBounceIn:qF,easeBounceInOut:GF,easeBounceOut:Bl,easeCircle:f2,easeCircleIn:LF,easeCircleInOut:f2,easeCircleOut:FF,easeCubic:a2,easeCubicIn:TF,easeCubicInOut:a2,easeCubicOut:AF,easeElastic:m2,easeElasticIn:ZF,easeElasticInOut:XF,easeElasticOut:m2,easeExp:d2,easeExpIn:IF,easeExpInOut:d2,easeExpOut:$F,easeLinear:EF,easePoly:s2,easePolyIn:DF,easePolyInOut:s2,easePolyOut:PF,easeQuad:o2,easeQuadIn:OF,easeQuadInOut:o2,easeQuadOut:kF,easeSin:u2,easeSinIn:jF,easeSinInOut:u2,easeSinOut:MF},Symbol.toStringTag,{value:"Module"}));function QF(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var md=QF,e8=fo,t8=Mr,n8="[object Symbol]";function r8(e){return typeof e=="symbol"||t8(e)&&e8(e)==n8}var Rl=r8,i8=_n,o8=Rl,a8=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s8=/^\w*$/;function l8(e,t){if(i8(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||o8(e)?!0:s8.test(e)||!a8.test(e)||t!=null&&e in Object(t)}var Fg=l8,c8=Jo,u8=c8(Object,"create"),gd=u8,g2=gd;function d8(){this.__data__=g2?g2(null):{},this.size=0}var f8=d8;function h8(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var m8=h8,g8=gd,p8="__lodash_hash_undefined__",y8=Object.prototype,v8=y8.hasOwnProperty;function b8(e){var t=this.__data__;if(g8){var n=t[e];return n===p8?void 0:n}return v8.call(t,e)?t[e]:void 0}var x8=b8,_8=gd,S8=Object.prototype,C8=S8.hasOwnProperty;function w8(e){var t=this.__data__;return _8?t[e]!==void 0:C8.call(t,e)}var E8=w8,O8=gd,k8="__lodash_hash_undefined__";function T8(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=O8&&t===void 0?k8:t,this}var A8=T8,D8=f8,P8=m8,j8=x8,M8=E8,I8=A8;function ss(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ss.prototype.clear=D8,ss.prototype.delete=P8,ss.prototype.get=j8,ss.prototype.has=M8,ss.prototype.set=I8;var $8=ss;function L8(){this.__data__=[],this.size=0}var F8=L8,N8=ta;function W8(e,t){for(var n=e.length;n--;)if(N8(e[n][0],t))return n;return-1}var pd=W8,B8=pd,R8=Array.prototype,z8=R8.splice;function V8(e){var t=this.__data__,n=B8(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():z8.call(t,n,1),--this.size,!0}var U8=V8,H8=pd;function q8(e){var t=this.__data__,n=H8(t,e);return n<0?void 0:t[n][1]}var G8=q8,Y8=pd;function K8(e){return Y8(this.__data__,e)>-1}var Z8=K8,X8=pd;function J8(e,t){var n=this.__data__,r=X8(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Q8=J8,eN=F8,tN=U8,nN=G8,rN=Z8,iN=Q8;function ls(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ls.prototype.clear=eN,ls.prototype.delete=tN,ls.prototype.get=nN,ls.prototype.has=rN,ls.prototype.set=iN;var yd=ls,p2=$8,oN=yd,aN=Cg;function sN(){this.size=0,this.__data__={hash:new p2,map:new(aN||oN),string:new p2}}var lN=sN;function cN(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var uN=cN,dN=uN;function fN(e,t){var n=e.__data__;return dN(t)?n[typeof t=="string"?"string":"hash"]:n.map}var vd=fN,hN=vd;function mN(e){var t=hN(this,e).delete(e);return this.size-=t?1:0,t}var gN=mN,pN=vd;function yN(e){return pN(this,e).get(e)}var vN=yN,bN=vd;function xN(e){return bN(this,e).has(e)}var _N=xN,SN=vd;function CN(e,t){var n=SN(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var wN=CN,EN=lN,ON=gN,kN=vN,TN=_N,AN=wN;function cs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}cs.prototype.clear=EN,cs.prototype.delete=ON,cs.prototype.get=kN,cs.prototype.has=TN,cs.prototype.set=AN;var Ng=cs,y2=Ng,DN="Expected a function";function Wg(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(DN);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Wg.Cache||y2),n}Wg.Cache=y2;var v2=Wg;const b2=Ne(v2);var PN=v2,jN=500;function MN(e){var t=PN(e,function(r){return n.size===jN&&n.clear(),r}),n=t.cache;return t}var IN=MN,$N=IN,LN=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,FN=/\\(\\)?/g,NN=$N(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(LN,function(n,r,i,o){t.push(i?o.replace(FN,"$1"):r||n)}),t}),WN=NN,x2=Qa,BN=md,RN=_n,zN=Rl,VN=1/0,_2=x2?x2.prototype:void 0,S2=_2?_2.toString:void 0;function C2(e){if(typeof e=="string")return e;if(RN(e))return BN(e,C2)+"";if(zN(e))return S2?S2.call(e):"";var t=e+"";return t=="0"&&1/e==-VN?"-0":t}var UN=C2,HN=UN;function qN(e){return e==null?"":HN(e)}var w2=qN,GN=_n,YN=Fg,KN=WN,ZN=w2;function XN(e,t){return GN(e)?e:YN(e,t)?[e]:KN(ZN(e))}var bd=XN,JN=Rl,QN=1/0;function e9(e){if(typeof e=="string"||JN(e))return e;var t=e+"";return t=="0"&&1/e==-QN?"-0":t}var zl=e9,t9=bd,n9=zl;function r9(e,t){t=t9(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[n9(t[n++])];return n&&n==r?e:void 0}var xd=r9,i9=yd;function o9(){this.__data__=new i9,this.size=0}var a9=o9;function s9(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var l9=s9;function c9(e){return this.__data__.get(e)}var u9=c9;function d9(e){return this.__data__.has(e)}var f9=d9,h9=yd,m9=Cg,g9=Ng,p9=200;function y9(e,t){var n=this.__data__;if(n instanceof h9){var r=n.__data__;if(!m9||r.length<p9-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new g9(r)}return n.set(e,t),this.size=n.size,this}var v9=y9,b9=yd,x9=a9,_9=l9,S9=u9,C9=f9,w9=v9;function us(e){var t=this.__data__=new b9(e);this.size=t.size}us.prototype.clear=x9,us.prototype.delete=_9,us.prototype.get=S9,us.prototype.has=C9,us.prototype.set=w9;var _d=us,E9="__lodash_hash_undefined__";function O9(e){return this.__data__.set(e,E9),this}var k9=O9;function T9(e){return this.__data__.has(e)}var A9=T9,D9=Ng,P9=k9,j9=A9;function Sd(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new D9;++t<n;)this.add(e[t])}Sd.prototype.add=Sd.prototype.push=P9,Sd.prototype.has=j9;var E2=Sd;function M9(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var I9=M9;function $9(e,t){return e.has(t)}var O2=$9,L9=E2,F9=I9,N9=O2,W9=1,B9=2;function R9(e,t,n,r,i,o){var a=n&W9,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,h=n&B9?new L9:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var m=e[d],p=t[d];if(r)var y=a?r(p,m,d,t,e,o):r(m,p,d,e,t,o);if(y!==void 0){if(y)continue;f=!1;break}if(h){if(!F9(t,function(b,x){if(!N9(h,x)&&(m===b||i(m,b,n,r,o)))return h.push(x)})){f=!1;break}}else if(!(m===p||i(m,p,n,r,o))){f=!1;break}}return o.delete(e),o.delete(t),f}var k2=R9,z9=jr,V9=z9.Uint8Array,T2=V9;function U9(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var A2=U9;function H9(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Bg=H9,D2=Qa,P2=T2,q9=ta,G9=k2,Y9=A2,K9=Bg,Z9=1,X9=2,J9="[object Boolean]",Q9="[object Date]",eW="[object Error]",tW="[object Map]",nW="[object Number]",rW="[object RegExp]",iW="[object Set]",oW="[object String]",aW="[object Symbol]",sW="[object ArrayBuffer]",lW="[object DataView]",j2=D2?D2.prototype:void 0,Rg=j2?j2.valueOf:void 0;function cW(e,t,n,r,i,o,a){switch(n){case lW:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case sW:return!(e.byteLength!=t.byteLength||!o(new P2(e),new P2(t)));case J9:case Q9:case nW:return q9(+e,+t);case eW:return e.name==t.name&&e.message==t.message;case rW:case oW:return e==t+"";case tW:var s=Y9;case iW:var l=r&Z9;if(s||(s=K9),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=X9,a.set(e,t);var u=G9(s(e),s(t),r,i,o,a);return a.delete(e),u;case aW:if(Rg)return Rg.call(e)==Rg.call(t)}return!1}var uW=cW;function dW(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var zg=dW,fW=zg,hW=_n;function mW(e,t,n){var r=t(e);return hW(e)?r:fW(r,n(e))}var M2=mW;function gW(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}var pW=gW;function yW(){return[]}var I2=yW,vW=pW,bW=I2,xW=Object.prototype,_W=xW.propertyIsEnumerable,$2=Object.getOwnPropertySymbols,SW=$2?function(e){return e==null?[]:(e=Object(e),vW($2(e),function(t){return _W.call(e,t)}))}:bW,Vg=SW,CW=r2,wW=Mx,EW=ea;function OW(e){return EW(e)?CW(e):wW(e)}var ds=OW,kW=M2,TW=Vg,AW=ds;function DW(e){return kW(e,AW,TW)}var L2=DW,F2=L2,PW=1,jW=Object.prototype,MW=jW.hasOwnProperty;function IW(e,t,n,r,i,o){var a=n&PW,s=F2(e),l=s.length,c=F2(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var f=s[d];if(!(a?f in t:MW.call(t,f)))return!1}var h=o.get(e),m=o.get(t);if(h&&m)return h==t&&m==e;var p=!0;o.set(e,t),o.set(t,e);for(var y=a;++d<l;){f=s[d];var b=e[f],x=t[f];if(r)var S=a?r(x,b,f,t,e,o):r(b,x,f,e,t,o);if(!(S===void 0?b===x||i(b,x,n,r,o):S)){p=!1;break}y||(y=f=="constructor")}if(p&&!y){var C=e.constructor,_=t.constructor;C!=_&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof _=="function"&&_ instanceof _)&&(p=!1)}return o.delete(e),o.delete(t),p}var $W=IW,Ug=_d,LW=k2,FW=uW,NW=$W,N2=ts,W2=_n,B2=Nl,WW=dd,BW=1,R2="[object Arguments]",z2="[object Array]",Cd="[object Object]",RW=Object.prototype,V2=RW.hasOwnProperty;function zW(e,t,n,r,i,o){var a=W2(e),s=W2(t),l=a?z2:N2(e),c=s?z2:N2(t);l=l==R2?Cd:l,c=c==R2?Cd:c;var u=l==Cd,d=c==Cd,f=l==c;if(f&&B2(e)){if(!B2(t))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new Ug),a||WW(e)?LW(e,t,n,r,i,o):FW(e,t,l,n,r,i,o);if(!(n&BW)){var h=u&&V2.call(e,"__wrapped__"),m=d&&V2.call(t,"__wrapped__");if(h||m){var p=h?e.value():e,y=m?t.value():t;return o||(o=new Ug),i(p,y,n,r,o)}}return f?(o||(o=new Ug),NW(e,t,n,r,i,o)):!1}var VW=zW,UW=VW,U2=Mr;function H2(e,t,n,r,i){return e===t?!0:e==null||t==null||!U2(e)&&!U2(t)?e!==e&&t!==t:UW(e,t,n,r,H2,i)}var Hg=H2,HW=_d,qW=Hg,GW=1,YW=2;function KW(e,t,n,r){var i=n.length,o=i,a=!r;if(e==null)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var l=s[0],c=e[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return!1}else{var d=new HW;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?qW(u,c,GW|YW,r,d):f))return!1}}return!0}var ZW=KW,XW=Pn;function JW(e){return e===e&&!XW(e)}var q2=JW,QW=q2,eB=ds;function tB(e){for(var t=eB(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,QW(i)]}return t}var nB=tB;function rB(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var G2=rB,iB=ZW,oB=nB,aB=G2;function sB(e){var t=oB(e);return t.length==1&&t[0][2]?aB(t[0][0],t[0][1]):function(n){return n===e||iB(n,e,t)}}var lB=sB,cB=xd;function uB(e,t,n){var r=e==null?void 0:cB(e,t);return r===void 0?n:r}var dB=uB;function fB(e,t){return e!=null&&t in Object(e)}var hB=fB,mB=bd,gB=Fl,pB=_n,yB=fd,vB=Ag,bB=zl;function xB(e,t,n){t=mB(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=bB(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&vB(i)&&yB(a,i)&&(pB(e)||gB(e)))}var _B=xB,SB=hB,CB=_B;function wB(e,t){return e!=null&&CB(e,t,SB)}var Y2=wB,EB=Hg,OB=dB,kB=Y2,TB=Fg,AB=q2,DB=G2,PB=zl,jB=1,MB=2;function IB(e,t){return TB(e)&&AB(t)?DB(PB(e),t):function(n){var r=OB(n,e);return r===void 0&&r===t?kB(n,e):EB(t,r,jB|MB)}}var $B=IB;function LB(e){return function(t){return t==null?void 0:t[e]}}var FB=LB,NB=xd;function WB(e){return function(t){return NB(t,e)}}var BB=WB,RB=FB,zB=BB,VB=Fg,UB=zl;function HB(e){return VB(e)?RB(UB(e)):zB(e)}var K2=HB;const Z2=Ne(K2);var qB=lB,GB=$B,YB=rs,KB=_n,ZB=K2;function XB(e){return typeof e=="function"?e:e==null?YB:typeof e=="object"?KB(e)?GB(e[0],e[1]):qB(e):ZB(e)}var Vl=XB;function JB(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var QB=JB,eR=QB,tR=eR(),X2=tR,nR=X2,rR=ds;function iR(e,t){return e&&nR(e,t,rR)}var J2=iR,oR=ea;function aR(e,t){return function(n,r){if(n==null)return n;if(!oR(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}var sR=aR,lR=J2,cR=sR,uR=cR(lR),Q2=uR,dR=Q2,fR=ea;function hR(e,t){var n=-1,r=fR(e)?Array(e.length):[];return dR(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var mR=hR;function gR(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var pR=gR,e_=Rl;function yR(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=e_(e),a=t!==void 0,s=t===null,l=t===t,c=e_(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}var vR=yR,bR=vR;function xR(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=bR(i[r],o[r]);if(l){if(r>=s)return l;var c=n[r];return l*(c=="desc"?-1:1)}}return e.index-t.index}var _R=xR,qg=md,SR=xd,CR=Vl,wR=mR,ER=pR,OR=ns,kR=_R,TR=rs,AR=_n;function DR(e,t,n){t.length?t=qg(t,function(o){return AR(o)?function(a){return SR(a,o.length===1?o[0]:o)}:o}):t=[TR];var r=-1;t=qg(t,OR(CR));var i=wR(e,function(o,a,s){var l=qg(t,function(c){return c(o)});return{criteria:l,index:++r,value:o}});return ER(i,function(o,a){return kR(o,a,n)})}var PR=DR,jR=PR,t_=_n;function MR(e,t,n,r){return e==null?[]:(t_(t)||(t=t==null?[]:[t]),n=r?void 0:n,t_(n)||(n=n==null?[]:[n]),jR(e,t,n))}var IR=MR;const fs=Ne(IR);var $R=jx,LR=$R(Object.getPrototypeOf,Object),Gg=LR,FR=fo,NR=Gg,WR=Mr,BR="[object Object]",RR=Function.prototype,zR=Object.prototype,n_=RR.toString,VR=zR.hasOwnProperty,UR=n_.call(Object);function HR(e){if(!WR(e)||FR(e)!=BR)return!1;var t=NR(e);if(t===null)return!0;var n=VR.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&n_.call(n)==UR}var r_=HR;const It=Ne(r_);function Yg(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function i_(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ul(){}var Hl=.7,wd=1/Hl,hs="\\s*([+-]?\\d+)\\s*",ql="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Zr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qR=/^#([0-9a-f]{3,8})$/,GR=new RegExp(`^rgb\\(${hs},${hs},${hs}\\)$`),YR=new RegExp(`^rgb\\(${Zr},${Zr},${Zr}\\)$`),KR=new RegExp(`^rgba\\(${hs},${hs},${hs},${ql}\\)$`),ZR=new RegExp(`^rgba\\(${Zr},${Zr},${Zr},${ql}\\)$`),XR=new RegExp(`^hsl\\(${ql},${Zr},${Zr}\\)$`),JR=new RegExp(`^hsla\\(${ql},${Zr},${Zr},${ql}\\)$`),o_={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Yg(Ul,Gl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:a_,formatHex:a_,formatHex8:QR,formatHsl:ez,formatRgb:s_,toString:s_});function a_(){return this.rgb().formatHex()}function QR(){return this.rgb().formatHex8()}function ez(){return f_(this).formatHsl()}function s_(){return this.rgb().formatRgb()}function Gl(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=qR.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?l_(t):n===3?new jn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ed(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ed(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=GR.exec(e))?new jn(t[1],t[2],t[3],1):(t=YR.exec(e))?new jn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=KR.exec(e))?Ed(t[1],t[2],t[3],t[4]):(t=ZR.exec(e))?Ed(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=XR.exec(e))?d_(t[1],t[2]/100,t[3]/100,1):(t=JR.exec(e))?d_(t[1],t[2]/100,t[3]/100,t[4]):o_.hasOwnProperty(e)?l_(o_[e]):e==="transparent"?new jn(NaN,NaN,NaN,0):null}function l_(e){return new jn(e>>16&255,e>>8&255,e&255,1)}function Ed(e,t,n,r){return r<=0&&(e=t=n=NaN),new jn(e,t,n,r)}function tz(e){return e instanceof Ul||(e=Gl(e)),e?(e=e.rgb(),new jn(e.r,e.g,e.b,e.opacity)):new jn}function Kg(e,t,n,r){return arguments.length===1?tz(e):new jn(e,t,n,r??1)}function jn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Yg(jn,Kg,i_(Ul,{brighter(e){return e=e==null?wd:Math.pow(wd,e),new jn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Hl:Math.pow(Hl,e),new jn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new jn(na(this.r),na(this.g),na(this.b),Od(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:c_,formatHex:c_,formatHex8:nz,formatRgb:u_,toString:u_}));function c_(){return`#${ra(this.r)}${ra(this.g)}${ra(this.b)}`}function nz(){return`#${ra(this.r)}${ra(this.g)}${ra(this.b)}${ra((isNaN(this.opacity)?1:this.opacity)*255)}`}function u_(){const e=Od(this.opacity);return`${e===1?"rgb(":"rgba("}${na(this.r)}, ${na(this.g)}, ${na(this.b)}${e===1?")":`, ${e})`}`}function Od(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function na(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ra(e){return e=na(e),(e<16?"0":"")+e.toString(16)}function d_(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ir(e,t,n,r)}function f_(e){if(e instanceof Ir)return new Ir(e.h,e.s,e.l,e.opacity);if(e instanceof Ul||(e=Gl(e)),!e)return new Ir;if(e instanceof Ir)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Ir(a,s,l,e.opacity)}function rz(e,t,n,r){return arguments.length===1?f_(e):new Ir(e,t,n,r??1)}function Ir(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Yg(Ir,rz,i_(Ul,{brighter(e){return e=e==null?wd:Math.pow(wd,e),new Ir(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Hl:Math.pow(Hl,e),new Ir(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new jn(Zg(e>=240?e-240:e+120,i,r),Zg(e,i,r),Zg(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Ir(h_(this.h),kd(this.s),kd(this.l),Od(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Od(this.opacity);return`${e===1?"hsl(":"hsla("}${h_(this.h)}, ${kd(this.s)*100}%, ${kd(this.l)*100}%${e===1?")":`, ${e})`}`}}));function h_(e){return e=(e||0)%360,e<0?e+360:e}function kd(e){return Math.max(0,Math.min(1,e||0))}function Zg(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Xg=e=>()=>e;function iz(e,t){return function(n){return e+n*t}}function oz(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function az(e){return(e=+e)==1?m_:function(t,n){return n-t?oz(t,n,e):Xg(isNaN(t)?n:t)}}function m_(e,t){var n=t-e;return n?iz(e,n):Xg(isNaN(e)?t:e)}const g_=function e(t){var n=az(t);function r(i,o){var a=n((i=Kg(i)).r,(o=Kg(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),c=m_(i.opacity,o.opacity);return function(u){return i.r=a(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function sz(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function lz(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function cz(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=Xr(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function uz(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Td(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function dz(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Xr(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Jg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qg=new RegExp(Jg.source,"g");function fz(e){return function(){return e}}function hz(e){return function(t){return e(t)+""}}function mz(e,t){var n=Jg.lastIndex=Qg.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=Jg.exec(e))&&(i=Qg.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:Td(r,i)})),n=Qg.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?hz(l[0].x):fz(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}function Xr(e,t){var n=typeof t,r;return t==null||n==="boolean"?Xg(t):(n==="number"?Td:n==="string"?(r=Gl(t))?(t=r,g_):mz:t instanceof Gl?g_:t instanceof Date?uz:lz(t)?sz:Array.isArray(t)?cz:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?dz:Td)(e,t)}function e0(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function gz(e,t){t===void 0&&(t=e,e=Xr);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return o[s](a-s)}}const Ad=function(e){if(e!==null)switch(typeof e){case"undefined":return!1;case"number":return!isNaN(e)&&e!==Number.POSITIVE_INFINITY&&e!==Number.NEGATIVE_INFINITY;case"string":return!0;case"boolean":return!1;case"object":return e instanceof Date||Array.isArray(e)||It(e);case"function":return!0}return!1},p_=function(e,t,n){return n===void 0&&(n=0),function(r){return r<n?e:t}},y_=function(e,t){return function(n){return n>=1?t:function(){const r=typeof e=="function"?e.apply(this,arguments):e,i=typeof t=="function"?t.apply(this,arguments):t;return Xr(r,i)(n)}}},v_=function(e,t){const n=(c,u)=>c===u||!Ad(c)||!Ad(u)?p_(c,u):typeof c=="function"||typeof u=="function"?y_(c,u):typeof c=="object"&&It(c)||typeof u=="object"&&It(u)?v_(c,u):Xr(c,u),r=c=>Array.isArray(c)?fs(c,"key"):c,i={},o={};let a=e,s=t,l;(a===null||typeof a!="object")&&(a={}),(s===null||typeof s!="object")&&(s={});for(l in s)l in a?i[l]=n(r(a[l]),r(s[l])):o[l]=s[l];return function(c){for(l in i)o[l]=i[l](c);return o}},pz=function(e,t){const n=r=>typeof r=="string"?r.replace(/,/g,""):r;return Xr(n(e),n(t))},yz=function(e,t){return e===t||!Ad(e)||!Ad(t)?p_(e,t):typeof e=="function"||typeof t=="function"?y_(e,t):It(e)||It(t)?v_(e,t):typeof e=="string"||typeof t=="string"?pz(e,t):Xr(e,t)};var ms=0,Yl=0,Kl=0,b_=1e3,Dd,Zl,Pd=0,ia=0,jd=0,Xl=typeof performance=="object"&&performance.now?performance:Date,x_=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Md(){return ia||(x_(vz),ia=Xl.now()+jd)}function vz(){ia=0}function t0(){this._call=this._time=this._next=null}t0.prototype=__.prototype={constructor:t0,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Md():+n)+(t==null?0:+t),!this._next&&Zl!==this&&(Zl?Zl._next=this:Dd=this,Zl=this),this._call=e,this._time=n,n0()},stop:function(){this._call&&(this._call=null,this._time=1/0,n0())}};function __(e,t,n){var r=new t0;return r.restart(e,t,n),r}function bz(){Md(),++ms;for(var e=Dd,t;e;)(t=ia-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ms}function S_(){ia=(Pd=Xl.now())+jd,ms=Yl=0;try{bz()}finally{ms=0,_z(),ia=0}}function xz(){var e=Xl.now(),t=e-Pd;t>b_&&(jd-=t,Pd=e)}function _z(){for(var e,t=Dd,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Dd=n);Zl=e,n0(r)}function n0(e){if(!ms){Yl&&(Yl=clearTimeout(Yl));var t=e-ia;t>24?(e<1/0&&(Yl=setTimeout(S_,e-Xl.now()-jd)),Kl&&(Kl=clearInterval(Kl))):(Kl||(Pd=Xl.now(),Kl=setInterval(xz,b_)),ms=1,x_(S_))}}class C_{constructor(){ae(this,"loop",()=>{this.subscribers.forEach(t=>{t.callback(Md()-t.startTime,t.duration)})});this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}bypassAnimation(){this.shouldAnimate=!1}resumeAnimation(){this.shouldAnimate=!0}start(){this.timer||(this.timer=__(this.loop))}stop(){this.timer&&(this.timer.stop(),this.timer=null)}subscribe(t,n){const r=this.subscribers.push({startTime:Md(),callback:t,duration:this.shouldAnimate?n:0});return this.activeSubscriptions++,this.start(),r}unsubscribe(t){t!==null&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),this.activeSubscriptions===0&&this.stop()}}const Id=v.createContext({transitionTimer:new C_,animationTimer:new C_});Id.displayName="TimerContext";const Sz=e=>`ease${e.charAt(0).toUpperCase()+e.slice(1)}`,Cz=1e3,wz=e=>{let{duration:t=Cz,easing:n="quadInOut",delay:r=0,data:i,children:o,onEnd:a}=e;const[s,l]=v.useState({data:Array.isArray(i)?i[0]:i,animationInfo:{progress:0,animating:!1}}),c=v.useContext(Id).animationTimer,u=v.useRef(Array.isArray(i)?i.slice(1):[]),d=v.useRef(null),f=v.useRef(void 0),h=JF[Sz(n)];v.useEffect(()=>(u.current.length&&m(),()=>{f.current?c.unsubscribe(f.current):c.stop()}),[]),v.useEffect(()=>{d.current&&s.animationInfo&&s.animationInfo.progress<1?l({data:d.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}):(c.unsubscribe(f.current),u.current=Array.isArray(i)?i:[i],m())},[i]);const m=()=>{if(u.current.length){const y=u.current[0];d.current=yz(s.data,y),r?setTimeout(()=>{f.current=c.subscribe(p,t)},r):f.current=c.subscribe(p,t)}else a&&a()},p=y=>{if(!d.current)return;const b=t?y/t:1;if(b>=1){l({data:d.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),f.current&&c.unsubscribe(f.current),u.current.shift(),m();return}l({data:d.current(h(b)),animationInfo:{progress:b,animating:b<1}})};return o(s.data,s.animationInfo)};var Ez=w2,Oz=0;function kz(e){var t=++Oz;return Ez(e)+t}var Tz=kz;const Jl=Ne(Tz);function r0(){return r0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r0.apply(this,arguments)}const Az=v.forwardRef((e,t)=>v.createElement("svg",r0({ref:t},e)));var w_=e2;function Dz(e,t,n){t=="__proto__"&&w_?w_(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var $d=Dz,Pz=$d,jz=ta,Mz=Object.prototype,Iz=Mz.hasOwnProperty;function $z(e,t,n){var r=e[t];(!(Iz.call(e,t)&&jz(r,n))||n===void 0&&!(t in e))&&Pz(e,t,n)}var i0=$z,Lz=i0,Fz=bd,Nz=fd,E_=Pn,Wz=zl;function Bz(e,t,n,r){if(!E_(e))return e;t=Fz(t,e);for(var i=-1,o=t.length,a=o-1,s=e;s!=null&&++i<o;){var l=Wz(t[i]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=a){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=E_(u)?u:Nz(t[i+1])?[]:{})}Lz(s,l,c),s=s[l]}return e}var Rz=Bz,zz=xd,Vz=Rz,Uz=bd;function Hz(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=zz(e,a);n(s,a)&&Vz(o,Uz(a,e),s)}return o}var O_=Hz,qz=O_,Gz=Y2;function Yz(e,t){return qz(e,t,function(n,r){return Gz(e,r)})}var Kz=Yz,k_=Qa,Zz=Fl,Xz=_n,T_=k_?k_.isConcatSpreadable:void 0;function Jz(e){return Xz(e)||Zz(e)||!!(T_&&e&&e[T_])}var Qz=Jz,eV=zg,tV=Qz;function A_(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=tV),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?A_(s,t-1,n,r,i):eV(i,s):r||(i[i.length]=s)}return i}var nV=A_,rV=nV;function iV(e){var t=e==null?0:e.length;return t?rV(e,1):[]}var oV=iV,aV=oV,sV=Qx,lV=n2;function cV(e){return lV(sV(e,void 0,aV),e+"")}var uV=cV,dV=Kz,fV=uV,hV=fV(function(e,t){return e==null?{}:dV(e,t)}),mV=hV;const Ql=Ne(mV);function gV(e,t){const n=t!=="x",r=_t(e);return n?[e.height-r.bottom,r.top]:[r.left,e.width-r.right]}function pV(e,t){if(t==="x"){const n=ft(e.startAngle||0),r=ft(e.endAngle||360);return[n,r]}return[e.innerRadius||0,Jr(e)]}function D_(e){return Object.entries(e).reduce((t,n)=>(t[n[1]]=n[0],t),{})}function ec(e,t){t===void 0&&(t=[]);const n={};for(const r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o0(e){const t=h=>h!==void 0,{_x:n,_x1:r,_x0:i,_voronoiX:o,_y:a,_y1:s,_y0:l,_voronoiY:c}=e,u=t(r)?r:n,d=t(s)?s:a,f={x:t(o)?o:u,x0:t(i)?i:n,y:t(c)?c:d,y0:t(l)?l:a};return K({},f,e)}function gs(e,t){const{scale:n,polar:r,horizontal:i}=e,o=o0(t),a=e.origin||{x:0,y:0},s=i?n.y(o.y):n.x(o.x),l=i?n.y(o.y0):n.x(o.x0),c=i?n.x(o.x):n.y(o.y),u=i?n.x(o.x0):n.y(o.y0);return{x:r?c*Math.cos(s)+a.x:s,x0:r?u*Math.cos(l)+a.x:l,y:r?-c*Math.sin(s)+a.y:c,y0:r?-u*Math.sin(l)+a.x:u}}function _t(e,t){t===void 0&&(t="padding");const n=e[t],r=typeof n=="number"?n:0,i=typeof n=="object"?n:{};return{top:i.top||r,bottom:i.bottom||r,left:i.left||r,right:i.right||r}}function Ld(e){return(e&&e.type&&e.type.role)==="tooltip"}function Fd(e,t){const{theme:n={},labelComponent:r}=e,i=n[t]&&n[t].style||{};if(!Ld(r))return i;const o=n.tooltip&&n.tooltip.style||{},a=K({},o,i.labels);return K({},{labels:a},i)}function tc(e,t){const n="100%",r="100%";if(!e)return K({parent:{height:r,width:n}},t);const{data:i,labels:o,parent:a}=e,s=t&&t.parent||{},l=t&&t.labels||{},c=t&&t.data||{};return{parent:K({},a,s,{width:n,height:r}),labels:K({},o,l),data:K({},i,c)}}function ne(e,t){return Se(e)?e(t):e}function lt(e,t){return t.disableInlineStyles?{}:!e||!Object.keys(e).some(n=>Se(e[n]))?e:Object.keys(e).reduce((n,r)=>(n[r]=ne(e[r],t),n),{})}function ft(e){return typeof e=="number"?e*(Math.PI/180):e}function _i(e){return typeof e=="number"?e/(Math.PI/180):e}function Jr(e){const{left:t,right:n,top:r,bottom:i}=_t(e),{width:o,height:a}=e;return Math.min(o-t-n,a-r-i)/2}function nc(e){const{width:t,height:n}=e,{top:r,bottom:i,left:o,right:a}=_t(e),s=Math.min(t-o-a,n-r-i)/2,l=t/2+o-a,c=n/2+r-i;return{x:l+s>t?s+o-a:l,y:c+s>n?s+r-i:c}}function Wt(e,t){return e.range&&e.range[t]?e.range[t]:e.range&&Array.isArray(e.range)?e.range:e.polar?pV(e,t):gV(e,t)}function Si(e){return e==null}function Se(e){return typeof e=="function"}function Nd(e){return Se(e)?e:e==null?t=>t:Z2(e)}function Bt(e,t,n){const r=e.theme&&e.theme[n]?e.theme[n]:{},i=ec(r,["style"]),o=vV(e);return K(o===void 0?{}:{horizontal:o},e,i,t)}function yV(e,t){return t?e==="x"?"y":"x":e}function ps(e,t){if(e)return Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{})}function a0(e,t,n){const r=t?e:0;let i=t||e;i||(i=0);const o=i-r,a=Math.abs(o),s=o/a||1,l=n||1,c=Math.max(Math.ceil(a/l),0);return Array.from(Array(c),(u,d)=>r+d*s*l)}function mo(e,t,n,r,i){n===void 0&&(n={}),r===void 0&&(r=[]),i===void 0&&(i=(c,u)=>c.concat(u));const o=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],a=(c,u,d)=>c.reduce((f,h,m)=>{let p=f;const y=h.type&&h.type.role,b=h.props.name||`${y}-${u[m]}`;if(h.props&&h.props.children){const x=Object.assign({},h.props,Ql(n,o)),S=h.type&&h.type.role==="stack"&&Se(h.type.getChildren)?h.type.getChildren(x):v.Children.toArray(h.props.children).map(w=>{const k=Object.assign({},w.props,Ql(x,o));return v.cloneElement(w,k)}),C=S.map((w,k)=>`${b}-${k}`),_=a(S,C,h);p=i(p,_)}else{const x=t(h,b,d);x&&(p=i(p,x))}return p},r),s=e.filter(v.isValidElement),l=s.map((c,u)=>u);return a(s,l)}function vV(e){if(e.horizontal!==void 0||!e.children)return e.horizontal;const t=n=>n.reduce((r,i)=>{const o=i.props||{};return r||o.horizontal||!o.children?r||o.horizontal:t(v.Children.toArray(o.children))},!1);return t(v.Children.toArray(e.children))}const P_={startsWith:["data-","aria-"],exactMatch:[]},bV=e=>{let t=!1;return P_.startsWith.forEach(n=>{new RegExp(`\\b(${n})(\\w|-)+`,"g").test(e)&&(t=!0)}),t},xV=e=>P_.exactMatch.includes(e),_V=e=>!!(bV(e)||xV(e));function Wd(e,t){if(e==null)throw new Error(t)}const $r=e=>{const t={...e};return Object.fromEntries(Object.entries(t).filter(n=>{let[r]=n;return _V(r)}).map(n=>{let[r,i]=n;return[r,ne(i,e)]}))},Bd=(e,t)=>E.cloneElement(e,$r(t));var SV=typeof Element<"u",CV=typeof Map=="function",wV=typeof Set=="function",EV=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Rd(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Rd(e[r],t[r]))return!1;return!0}var o;if(CV&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!Rd(r.value[1],t.get(r.value[0])))return!1;return!0}if(wV&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(EV&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(SV&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Rd(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var OV=function(t,n){try{return Rd(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const qn=Ne(OV);function j_(e){return Array.isArray(e)&&e.length>0}function zd(e){return Array.isArray(e)&&e.some(t=>typeof t=="string")}function ar(e){return Array.isArray(e)&&e.some(t=>t instanceof Date)}function kV(e){return j_(e)&&e.every(t=>typeof t=="string")}function Vd(e,t){return e&&t?e.filter(n=>!t.includes(n)):[]}function M_(e){return j_(e)&&e.every(Array.isArray)}function TV(e){return e.filter(t=>t!==void 0)}function sr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=e.concat(n);return ar(i)?new Date(Math.max(...i)):Math.max(...i)}function Mn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=e.concat(n);return ar(i)?new Date(Math.min(...i)):Math.min(...i)}function I_(e,t){return(e.key||t).toString()}function $_(e){return e.reduce((t,n,r)=>{const i=I_(n,r);return t[i]=n,t},{})}function L_(e,t){let n=!1;const r=Object.keys(e).reduce((i,o)=>(o in t||(n=!0,i[o]=!0),i),{});return n&&r}function AV(e,t){const n=e&&$_(e),r=t&&$_(t);return{entering:n&&L_(r,n),exiting:r&&L_(n,r)}}function s0(e){return e.type&&e.type.getData?e.type.getData(e.props):e.props&&e.props.data||!1}function F_(e,t){let n=!1,r=!1;const i=(s,l)=>{if(!l||s.type!==l.type)return{};const{entering:c,exiting:u}=AV(s0(s),s0(l))||{};return n=n||!!u,r=r||!!c,{entering:c||!1,exiting:u||!1}},o=(s,l)=>s.map((c,u)=>c&&c.props&&c.props.children&&l[u]?o(v.Children.toArray(s[u].props.children),v.Children.toArray(l[u].props.children)):i(c,l[u])),a=o(v.Children.toArray(e),v.Children.toArray(t));return{nodesWillExit:n,nodesWillEnter:r,childrenTransitions:a,nodesShouldEnter:!1}}function DV(e,t){const n=e.onEnter&&e.onEnter.after?e.onEnter.after:is;return{data:t.map((r,i)=>Object.assign({},r,n(r,i,t)))}}function PV(e,t,n,r){const i=Object.assign({},e,{onEnd:r});if(i&&i.onLoad&&!i.onLoad.duration)return{animate:i,data:n};const o=i.onLoad&&i.onLoad.before?i.onLoad.before:is,a=n.map((s,l)=>Object.assign({},s,o(s,l,n)));return{animate:i,data:a,clipWidth:0}}function jV(e,t,n){const r=Object.assign({},e,{onEnd:n});let i=t;if(r&&r.onLoad&&!r.onLoad.duration)return{animate:e,data:t};const o=e.onLoad&&e.onLoad.after?e.onLoad.after:is;return i=t.map((a,s)=>Object.assign({},a,o(a,s,t))),{animate:r,data:i}}function MV(e,t,n,r,i){const o=e&&e.onExit,a=Object.assign({},e,o);let s=n;if(r){e.onEnd=i;const l=e.onExit&&e.onExit.before?e.onExit.before:is;s=n.map((c,u)=>{const d=(c.key||u).toString();return r[d]?Object.assign({},c,l(c,u,n)):c})}return{animate:a,data:s}}function IV(e,t,n,r,i){let o=e,a=n;if(r){o=Object.assign({},e,{onEnd:i});const s=e.onEnter&&e.onEnter.before?e.onEnter.before:is;a=n.map((l,c)=>{const u=(l.key||c).toString();return r[u]?Object.assign({},l,s(l,c,n)):l})}return{animate:o,data:a}}function $V(e,t,n,r){const i=e&&e.onEnter,o=Object.assign({},e,i);let a=t;if(n){o.onEnd=r;const s=o.onEnter&&o.onEnter.after?o.onEnter.after:is;a=t.map((l,c)=>{const u=I_(l,c);return n[u]?Object.assign({},l,s(l,c,t)):l})}return{animate:o,data:a}}function N_(e,t,n){const r=t&&t.nodesWillExit,i=t&&t.nodesWillEnter,o=t&&t.nodesShouldEnter,a=t&&t.nodesShouldLoad,s=t&&t.nodesDoneLoad,l=t&&t.childrenTransitions||[],c={enter:e.animate&&e.animate.onEnter&&e.animate.onEnter.duration,exit:e.animate&&e.animate.onExit&&e.animate.onExit.duration,load:e.animate&&e.animate.onLoad&&e.animate.onLoad.duration,move:e.animate&&e.animate.duration},u=(m,p,y)=>a?jV(y,p,()=>{n({nodesShouldLoad:!1,nodesDoneLoad:!0})}):PV(y,m,p,()=>{n({nodesDoneLoad:!0})}),d=(m,p,y,b)=>MV(b,p,y,m,()=>{n({nodesWillExit:!1})}),f=(m,p,y,b)=>o?$V(b,y,m,()=>{n({nodesWillEnter:!1})}):IV(b,p,y,m,()=>{n({nodesShouldEnter:!0})}),h=function(m,p){const y=m.props.animate;if(!m.type)return{};const b=m.props&&m.props.polar&&m.type.defaultPolarTransitions||m.type.defaultTransitions;if(b){const x=y[p]&&y[p].duration;return x!==void 0?x:b[p]&&b[p].duration}return{}};return function(p,y){const b=s0(p)||[],x=K({},e.animate,p.props.animate),S=p.props.polar&&p.type.defaultPolarTransitions||p.type.defaultTransitions;x.onExit=K({},x.onExit,S&&S.onExit),x.onEnter=K({},x.onEnter,S&&S.onEnter),x.onLoad=K({},x.onLoad,S&&S.onLoad);const C=l[y]||l[0];if(s){if(r){const _=C&&C.exiting,w=c.exit!==void 0?c.exit:h(p,"onExit");return d(_,p,b,Object.assign({},x,_?{duration:w}:{delay:w}))}else if(i){const _=C&&C.entering,w=c.enter!==void 0?c.enter:h(p,"onEnter"),k=c.move!==void 0?c.move:p.props.animate&&p.props.animate.duration;return f(_,p,b,Object.assign({},x,{duration:o&&_?w:k}))}else if(!t&&x&&x.onExit)return DV(x,b)}else{const w={duration:c.load!==void 0?c.load:h(p,"onLoad")};return u(p,b,Object.assign({},x,w))}return{animate:x,data:b}}}function l0(){return l0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l0.apply(this,arguments)}class c0 extends v.Component{constructor(t,n){super(t,n),this.state={nodesShouldLoad:!1,nodesDoneLoad:!1};const r=this.props.children,i=r.props.polar;this.continuous=!i&&r.type&&r.type.continuous===!0,this.timer=this.context.transitionTimer}componentDidMount(){this.setState({nodesShouldLoad:!0})}shouldComponentUpdate(t){return qn(this.props,t)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,t),()=>this.timer.resumeAnimation())),!0}componentWillUnmount(){this.timer.stop()}getTransitionState(t,n){const{animate:r}=t;if(r){if(r.parentState)return{oldProps:r.parentState.nodesWillExit?t:null,nextProps:n}}else return{};const i=v.Children.toArray(t.children),o=v.Children.toArray(n.children),{nodesWillExit:a,nodesWillEnter:s,childrenTransitions:l,nodesShouldEnter:c}=F_(i,o);return{nodesWillExit:a,nodesWillEnter:s,childrenTransitions:l,nodesShouldEnter:c,oldProps:a?t:null,nextProps:n}}getDomainFromChildren(t,n){const r=l=>l.reduce((c,u)=>{if(u.type&&Se(u.type.getDomain)){const d=u.props&&u.type.getDomain(u.props,n);return d?c.concat(d):c}else if(u.props&&u.props.children)return c.concat(r(v.Children.toArray(u.props.children)));return c},[]),i=v.Children.toArray(t.children)[0],o=i.props||{},a=Array.isArray(o.domain)?o.domain:o.domain&&o.domain[n];if(!o.children&&a)return a;const s=r([i]);return s.length===0?[0,1]:[Mn(s),sr(s)]}pickProps(){return this.state?this.state.nodesWillExit?this.state.oldProps||this.props:this.props:this.props}pickDomainProps(t){var r;const n=(r=t.animate)==null?void 0:r.parentState;return n&&n.nodesWillExit?(this.continuous||n.continuous)&&(n.nextProps||this.state.nextProps)||t:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||t}getClipWidth(t,n){const r=()=>{const o=Wt(n.props,"x");return o?Math.abs(o[1]-o[0]):t.width},i=this.transitionProps?this.transitionProps.clipWidth:void 0;return i!==void 0?i:r()}render(){var d;const t=this.pickProps(),n=(d=this.props.animate)!=null&&d.getTransitions?this.props.animate.getTransitions:N_(t,this.state,f=>this.setState(f)),r=v.Children.toArray(t.children)[0],i=n(r);this.transitionProps=i;const o={x:this.getDomainFromChildren(this.pickDomainProps(t),"x"),y:this.getDomainFromChildren(t,"y")},a=this.getClipWidth(t,r),s=K({domain:o,clipWidth:a},i,r.props),c=(t.animationWhitelist||[]).concat(["clipWidth"]),u=c.length?Ql(s,c):s;return v.createElement(wz,l0({},s.animate,{data:u}),f=>{if(r.props.groupComponent){const h=this.continuous?v.cloneElement(r.props.groupComponent,{clipWidth:f.clipWidth||0}):r.props.groupComponent;return v.cloneElement(r,K({animate:null,animating:!0,groupComponent:h},f,s))}return v.cloneElement(r,K({animate:null,animating:!0},f,s))})}}ae(c0,"displayName","VictoryTransition"),ae(c0,"contextType",Id);function LV(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var FV=LV;function NV(e){return e!==e}var WV=NV;function BV(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var RV=BV,zV=FV,VV=WV,UV=RV;function HV(e,t,n){return t===t?UV(e,t,n):zV(e,VV,n)}var qV=HV,GV=qV;function YV(e,t){var n=e==null?0:e.length;return!!n&&GV(e,t,0)>-1}var KV=YV;function ZV(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var XV=ZV;function JV(){}var QV=JV,u0=Rx,eU=QV,tU=Bg,nU=1/0,rU=u0&&1/tU(new u0([,-0]))[1]==nU?function(e){return new u0(e)}:eU,iU=rU,oU=E2,aU=KV,sU=XV,lU=O2,cU=iU,uU=Bg,dU=200;function fU(e,t,n){var r=-1,i=aU,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=sU;else if(o>=dU){var c=t?null:cU(e);if(c)return uU(c);a=!1,i=lU,l=new oU}else l=t?[]:s;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,a&&d===d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}var W_=fU,hU=W_;function mU(e){return e&&e.length?hU(e):[]}var gU=mU;const oa=Ne(gU);var pU="Expected a function";function yU(e){if(typeof e!="function")throw new TypeError(pU);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var vU=yU,bU=zg,xU=Gg,_U=Vg,SU=I2,CU=Object.getOwnPropertySymbols,wU=CU?function(e){for(var t=[];e;)bU(t,_U(e)),e=xU(e);return t}:SU,B_=wU,EU=M2,OU=B_,kU=os;function TU(e){return EU(e,kU,OU)}var R_=TU,AU=md,DU=Vl,PU=O_,jU=R_;function MU(e,t){if(e==null)return{};var n=AU(jU(e),function(r){return[r]});return t=DU(t),PU(e,n,function(r,i){return t(r,i[0])})}var z_=MU;const Ud=Ne(z_);var IU=Vl,$U=vU,LU=z_;function FU(e,t){return LU(e,$U(IU(t)))}var NU=FU;const V_=Ne(NU),d0=/^onGlobal(.*)$/;function U_(e,t,n,r){const i=u=>{const f=(()=>{const h=u.reduce((m,p)=>p.target!==void 0?(Array.isArray(p.target)?p.target.includes(t):`${p.target}`==`${t}`)?m.concat(p):m:m.concat(p),[]);return n!==void 0&&t!=="parent"?h.filter(m=>{const p=m.eventKey,y=b=>b?`${b}`==`${n}`:!0;return Array.isArray(p)?p.some(b=>y(b)):y(p)}):h})();return Array.isArray(f)&&f.reduce((h,m)=>m?Object.assign(h,m.eventHandlers):h,{})},a=Array.isArray(this.componentEvents)?Array.isArray(e.events)?this.componentEvents.concat(...e.events):this.componentEvents:e.events,s=a&&Se(r)?r(i(a),t):void 0;if(!e.sharedEvents)return s;const l=e.sharedEvents.getEvents,c=e.sharedEvents.events&&l(i(e.sharedEvents.events),t);return Object.assign({},c,s)}function H_(e,t,n,r){if(bt(e))return{};const i=r||this.baseProps,o=(u,d)=>{const{childName:f,target:h,key:m}=u,p=d==="props"?i:this.state||{},y=f==null||!p[f]?p:p[f];return m==="parent"?y.parent:y[m]&&y[m][h]},a=(u,d)=>{const f=t==="parent"?u.childName:u.childName||n,h=u.target||t,m=x=>h==="parent"?"parent":u.eventKey==="all"?i[x]?Object.keys(i[x]).filter(S=>S!=="parent"):Object.keys(i).filter(S=>S!=="parent"):u.eventKey===void 0&&d==="parent"?i[x]?Object.keys(i[x]):Object.keys(i):u.eventKey!==void 0?u.eventKey:d,p=(x,S)=>{const C=this.state||{};if(!Se(u.mutation))return C;const _=o({childName:S,key:x,target:h},"props"),w=o({childName:S,key:x,target:h},"state"),k=u.mutation(Object.assign({},_,w),i),A=C[S]||{},j=P=>(P[x]&&P[x][h]&&delete P[x][h],P[x]&&!Object.keys(P[x]).length&&delete P[x],P),M=P=>h==="parent"?Object.assign(P,{[x]:Object.assign(P[x]||{},k)}):Object.assign(P,{[x]:Object.assign(P[x]||{},{[h]:k})}),T=P=>k?M(P):j(P);return S!=null?Object.assign(C,{[S]:T(A)}):T(C)},y=x=>{const S=m(x);return Array.isArray(S)?S.reduce((C,_)=>Object.assign(C,p(_,x)),{}):p(S,x)},b=f==="all"?Object.keys(i).filter(x=>x!=="parent"):f;return Array.isArray(b)?b.reduce((x,S)=>Object.assign(x,y(S)),{}):y(b)},s=(u,d)=>Array.isArray(u)?u.reduce((f,h)=>Object.assign({},f,a(h,d)),{}):a(u,d),l=u=>{const d=m=>Se(m.callback)&&m.callback,h=(Array.isArray(u)?u.map(m=>d(m)):[d(u)]).filter(m=>m!==!1);return h.length?()=>h.forEach(m=>m()):void 0},c=(u,d,f,h)=>{const m=e[h](u,d,f,this);if(!bt(m)){const p=l(m);this.setState(s(m,f),p)}};return Object.keys(e).reduce((u,d)=>(u[d]=c,u),{})}function q_(e,t,n){return e?Object.keys(e).reduce((r,i)=>{const o=a=>e[i](a,n,t,i);return r[i]=o,r},{}):{}}function G_(e,t,n){const r=this.state||{};return n?r[n]&&r[n][e]&&r[n][e][t]:e==="parent"?r[e]&&r[e][t]||r[e]:r[e]&&r[e][t]}function WU(e,t,n,r){return t===void 0&&(t={}),n===void 0&&(n={}),r.reduce((i,o)=>{const a=n[o],s=Y_(e,t[o],n[o],o);return i[o]=s||a,Ud(i,l=>!bt(l))},{})}function Y_(e,t,n,r){return t===void 0&&(t={}),n===void 0&&(n={}),Object.keys(t).reduce((o,a)=>{const s=n[a]||{},l=t[a]||{};if(a==="parent"){const u=K_(e,l,s,{eventKey:a,target:"parent"});o[a]=u!==void 0?Object.assign({},s,u):s}else{const c=oa(Object.keys(l).concat(Object.keys(s)));o[a]=c.reduce((u,d)=>{const f={eventKey:a,target:d,childName:r},h=K_(e,l[d],s[d],f);return u[d]=h!==void 0?Object.assign({},s[d],h):s[d],Ud(u,m=>!bt(m))},{})}return Ud(o,c=>!bt(c))},{})}function K_(e,t,n,r){const i=(l,c)=>typeof l[c]=="string"?l[c]==="all"||l[c]===r[c]:Array.isArray(l[c])?l[c].map(d=>`${d}`).includes(r[c]):!1;let o=Array.isArray(e)?e:[e];r.childName&&(o=e.filter(l=>i(l,"childName")));const a=o.filter(l=>i(l,"target"));if(bt(a))return;const s=a.filter(l=>i(l,"eventKey"));if(!bt(s))return s.reduce((l,c)=>{const d=(c&&Se(c.mutation)?c.mutation:()=>{})(Object.assign({},t,n));return Object.assign({},l,d)},{})}function f0(e,t){const n=Array.isArray(t)&&t.reduce((r,i)=>{const o=e[i],a=o&&o.type&&o.type.defaultEvents,s=Se(a)?a(o.props):a;return Array.isArray(s)?r.concat(...s):r},[]);return n&&n.length?n:void 0}function Hd(e){const t=e.match(d0);return t&&t[1]&&t[1].toLowerCase()}const Z_=e=>Ud(e,(t,n)=>d0.test(n)),X_=e=>V_(e,(t,n)=>d0.test(n)),J_=e=>Object.assign(e,{nativeEvent:e}),BU=e=>!Si(e._x)&&!Si(e._y),RU=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}];function aa(e,t){t===void 0&&(t={});class n extends e{constructor(o){super(o);ae(this,"state",{});ae(this,"getEventState",G_.bind(this));ae(this,"getScopedEvents",H_.bind(this));ae(this,"getEvents",(o,a,s)=>U_.call(this,o,a,s,this.getScopedEvents));ae(this,"externalMutations",this.getExternalMutations(this.props));ae(this,"calculatedState",this.getStateChanges(this.props));ae(this,"globalEvents",{});ae(this,"prevGlobalEventKeys",[]);ae(this,"boundGlobalEvents",{});this.cacheValues(this.getCalculatedValues(o))}shouldComponentUpdate(o){const a=this.getExternalMutations(o),s=this.props.animating||this.props.animate,l=!qn(a,this.externalMutations);if(s||l)return this.cacheValues(this.getCalculatedValues(o)),this.externalMutations=a,this.applyExternalMutations(o,a),!0;const c=this.getStateChanges(o);return qn(this.calculatedState,c)?qn(this.props,o)?!1:(this.cacheValues(this.getCalculatedValues(o)),!0):(this.cacheValues(this.getCalculatedValues(o)),!0)}componentDidMount(){const o=Object.keys(this.globalEvents);o.forEach(a=>this.addGlobalListener(a)),this.prevGlobalEventKeys=o}componentDidUpdate(o){const a=this.getStateChanges(o);this.calculatedState=a;const s=Object.keys(this.globalEvents);Vd(this.prevGlobalEventKeys,s).forEach(u=>this.removeGlobalListener(u)),Vd(s,this.prevGlobalEventKeys).forEach(u=>this.addGlobalListener(u)),this.prevGlobalEventKeys=s}componentWillUnmount(){this.prevGlobalEventKeys.forEach(o=>this.removeGlobalListener(o))}addGlobalListener(o){const a=s=>{const l=this.globalEvents[o];return l&&l(J_(s))};this.boundGlobalEvents[o]=a,window.addEventListener(Hd(o),a)}removeGlobalListener(o){window.removeEventListener(Hd(o),this.boundGlobalEvents[o])}getStateChanges(o){if(!this.hasEvents)return{};const a=(c,u)=>{const d=K({},this.getEventState(c,u),this.getSharedEventState(c,u));return bt(d)?void 0:d};return(t.components||RU).map(c=>{if(!(!o.standalone&&c.name==="parent"))return c.index!==void 0?a(c.index,c.name):this.dataKeys.map(u=>a(u,c.name)).filter(Boolean)}).filter(Boolean)}applyExternalMutations(o,a){if(!bt(a)){const s=o.externalEventMutations.reduce((c,u)=>Se(u.callback)?c.concat(u.callback):c,[]),l=s.length?()=>{s.forEach(c=>c())}:void 0;this.setState(a,l)}}getCalculatedValues(o){const{sharedEvents:a}=o,s=e.expectedComponents,l=f0(o,s),c=a&&Se(a.getEventState)?a.getEventState:()=>{},u=this.getBaseProps(o,c),d=Object.keys(u).filter(m=>m!=="parent"),f=o.events||o.sharedEvents||l,h=this.getAllEvents(o);return{componentEvents:l,getSharedEventState:c,baseProps:u,dataKeys:d,hasEvents:f,events:h}}getExternalMutations(o){const{sharedEvents:a,externalEventMutations:s}=o;return bt(s)||a?void 0:Y_(s,this.baseProps,this.state)}cacheValues(o){Object.keys(o).forEach(a=>{this[a]=o[a]})}getBaseProps(o,a){const l=(a||this.getSharedEventState.bind(this))("parent","parent"),c=this.getEventState("parent","parent"),u=K({},c,l),d=u.parentControlledProps,f=d?Ql(u,d):{},h=K({},f,o);return typeof e.getBaseProps=="function"?e.getBaseProps(h):{}}getAllEvents(o){return Array.isArray(this.componentEvents)?Array.isArray(o.events)?this.componentEvents.concat(...o.events):this.componentEvents:o.events}getComponentProps(o,a,s){const l=this.props.name||e.role,c=this.dataKeys&&this.dataKeys[s]||s,u=`${l}-${a}-${c}`,d=this.baseProps[c]&&this.baseProps[c][a]||this.baseProps[c];if(!d&&!this.hasEvents)return;const f=o&&typeof o=="object"&&"props"in o?o.props:void 0;if(this.hasEvents){const h=this.getEvents(this.props,a,c),m=K({index:s,key:u},this.getEventState(c,a),this.getSharedEventState(c,a),f,d,{id:u}),p=K({},q_(h,c,m),m.events);return Object.assign({},m,{events:p})}return K({index:s,key:u},f,d,{id:u})}renderContainer(o,a){const l=o.type&&o.type.role==="container"?this.getComponentProps(o,"parent","parent"):{};return l.events&&(this.globalEvents=Z_(l.events),l.events=X_(l.events)),v.cloneElement(o,l,a)}animateComponent(o,a){var c;const s=typeof o.animate=="object"&&((c=o.animate)==null?void 0:c.animationWhitelist)||a,l=this.constructor;return v.createElement(c0,{animate:o.animate,animationWhitelist:s},v.createElement(l,o))}renderContinuousData(o){const{dataComponent:a,labelComponent:s,groupComponent:l}=o,u=this.dataKeys.filter(h=>h!=="all").reduce((h,m)=>{let p=h;const y=this.getComponentProps(s,"labels",m);return y&&y.text!==void 0&&y.text!==null&&(p=p.concat(v.cloneElement(s,y))),p},[]),d=this.getComponentProps(a,"data","all"),f=[v.cloneElement(a,d),...u];return this.renderContainer(l,f)}renderData(o,a){a===void 0&&(a=BU);const{dataComponent:s,labelComponent:l,groupComponent:c}=o,u=this.dataKeys.reduce((h,m,p)=>{const y=this.getComponentProps(s,"data",p);return a(y.datum)&&h.push(v.cloneElement(s,y)),h},[]),d=this.dataKeys.map((h,m)=>{const p=this.getComponentProps(l,"labels",m);if(p.text!==void 0&&p.text!==null)return v.cloneElement(l,p)}).filter(Boolean),f=[...u,...d];return this.renderContainer(c,f)}}return n}function zU(e){return t=>{e.forEach(n=>{Se(n)?n(t):n!=null&&(n.current=t)})}}var VU=fo,UU=Mr,HU="[object Date]";function qU(e){return UU(e)&&VU(e)==HU}var GU=qU,YU=GU,KU=ns,Q_=Wl,eS=Q_&&Q_.isDate,ZU=eS?KU(eS):YU,XU=ZU;const tS=Ne(XU);var JU=ta;function QU(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!JU(s,l)){var l=s;o[i++]=a===0?0:a}}return o}var eH=QU,tH=eH;function nH(e){return e&&e.length?tH(e):[]}var rH=nH;const iH=Ne(rH);function oH(e){return e===void 0}var aH=oH;const sH=Ne(aH);var lH=Hg;function cH(e,t){return lH(e,t)}var uH=cH;const dH=Ne(uH);function go(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function fH(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function h0(e){let t,n,r;e.length!==2?(t=go,n=(s,l)=>go(e(s),l),r=(s,l)=>e(s)-l):(t=e===go||e===fH?e:hH,n=e,r=e);function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<0?c=d+1:u=d}while(c<u)}return c}function o(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function a(s,l,c=0,u=s.length){const d=i(s,l,c,u-1);return d>c&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:i,center:a,right:o}}function hH(){return 0}function nS(e){return e===null?NaN:+e}function*mH(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const rc=h0(go).right;h0(nS).center;class rS extends Map{constructor(t,n=yH){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(iS(this,t))}has(t){return super.has(iS(this,t))}set(t,n){return super.set(gH(this,t),n)}delete(t){return super.delete(pH(this,t))}}function iS({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function gH({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function pH({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function yH(e){return e!==null&&typeof e=="object"?e.valueOf():e}function vH(e=go){if(e===go)return oS;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function oS(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const bH=Math.sqrt(50),xH=Math.sqrt(10),_H=Math.sqrt(2);function qd(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=bH?10:o>=xH?5:o>=_H?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/a,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*a,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?qd(e,t,n*2):[s,l,c]}function m0(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,a]=r?qd(t,e,n):qd(e,t,n);if(!(o>=i))return[];const s=o-i+1,l=new Array(s);if(r)if(a<0)for(let c=0;c<s;++c)l[c]=(o-c)/-a;else for(let c=0;c<s;++c)l[c]=(o-c)*a;else if(a<0)for(let c=0;c<s;++c)l[c]=(i+c)/-a;else for(let c=0;c<s;++c)l[c]=(i+c)*a;return l}function g0(e,t,n){return t=+t,e=+e,n=+n,qd(e,t,n)[2]}function p0(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?g0(t,e,n):g0(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function aS(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function sS(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function lS(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?oS:vH(i);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,u=Math.log(l),d=.5*Math.exp(2*u/3),f=.5*Math.sqrt(u*d*(l-d)/l)*(c-l/2<0?-1:1),h=Math.max(n,Math.floor(t-c*d/l+f)),m=Math.min(r,Math.floor(t+(l-c)*d/l+f));lS(e,t,h,m,i)}const o=e[t];let a=n,s=r;for(ic(e,n,t),i(e[r],o)>0&&ic(e,n,r);a<s;){for(ic(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[n],o)===0?ic(e,n,s):(++s,ic(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function ic(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function SH(e,t,n){if(e=Float64Array.from(mH(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return sS(e);if(t>=1)return aS(e);var r,i=(r-1)*t,o=Math.floor(i),a=aS(lS(e,o).subarray(0,o+1)),s=sS(e.subarray(o+1));return a+(s-a)*(i-o)}}function CH(e,t,n=nS){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e),s=+n(e[o+1],o+1,e);return a+(s-a)*(i-o)}}function wH(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function lr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Ci(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const y0=Symbol("implicit");function v0(){var e=new rS,t=[],n=[],r=y0;function i(o){let a=e.get(o);if(a===void 0){if(r!==y0)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new rS;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return v0(t,n).unknown(r)},lr.apply(i,arguments),i}function b0(){var e=v0().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var f=t().length,h=i<r,m=h?i:r,p=h?r:i;o=(p-m)/Math.max(1,f-l+c*2),s&&(o=Math.floor(o)),m+=(p-m-o*(f-l))*u,a=o*(1-l),s&&(m=Math.round(m),a=Math.round(a));var y=wH(f).map(function(b){return m+o*b});return n(h?y.reverse():y)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,i]=f,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(f){return[r,i]=f,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(l=Math.min(1,c=+f),d()):l},e.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),d()):l},e.paddingOuter=function(f){return arguments.length?(c=+f,d()):c},e.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),d()):u},e.copy=function(){return b0(t(),[r,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},lr.apply(d(),arguments)}function cS(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return cS(t())},e}function EH(){return cS(b0.apply(null,arguments).paddingInner(1))}function OH(e){return function(){return e}}function Gd(e){return+e}var uS=[0,1];function Sn(e){return e}function x0(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:OH(isNaN(t)?NaN:.5)}function kH(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function TH(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=x0(i,r),o=n(a,o)):(r=x0(r,i),o=n(o,a)),function(s){return o(r(s))}}function AH(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=x0(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var l=rc(e,s,1,r)-1;return o[l](i[l](s))}}function oc(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Yd(){var e=uS,t=uS,n=Xr,r,i,o,a=Sn,s,l,c;function u(){var f=Math.min(e.length,t.length);return a!==Sn&&(a=kH(e[0],e[f-1])),s=f>2?AH:TH,l=c=null,d}function d(f){return f==null||isNaN(f=+f)?o:(l||(l=s(e.map(r),t,n)))(r(a(f)))}return d.invert=function(f){return a(i((c||(c=s(t,e.map(r),Td)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,Gd),u()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=e0,u()},d.clamp=function(f){return arguments.length?(a=f?!0:Sn,u()):a!==Sn},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(o=f,d):o},function(f,h){return r=f,i=h,u()}}function _0(){return Yd()(Sn,Sn)}function DH(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Kd(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ys(e){return e=Kd(Math.abs(e)),e?e[1]:NaN}function PH(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function jH(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var MH=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ac(e){if(!(t=MH.exec(e)))throw new Error("invalid format: "+e);var t;return new S0({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}ac.prototype=S0.prototype;function S0(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}S0.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function IH(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var dS;function $H(e,t){var n=Kd(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(dS=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Kd(e,Math.max(0,t+o-1))[0]}function fS(e,t){var n=Kd(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const hS={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:DH,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>fS(e*100,t),r:fS,s:$H,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function mS(e){return e}var gS=Array.prototype.map,pS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function LH(e){var t=e.grouping===void 0||e.thousands===void 0?mS:PH(gS.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?mS:jH(gS.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=ac(d);var f=d.fill,h=d.align,m=d.sign,p=d.symbol,y=d.zero,b=d.width,x=d.comma,S=d.precision,C=d.trim,_=d.type;_==="n"?(x=!0,_="g"):hS[_]||(S===void 0&&(S=12),C=!0,_="g"),(y||f==="0"&&h==="=")&&(y=!0,f="0",h="=");var w=p==="$"?n:p==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",k=p==="$"?r:/[%p]/.test(_)?a:"",A=hS[_],j=/[defgprs%]/.test(_);S=S===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function M(T){var P=w,D=k,I,$,W;if(_==="c")D=A(T)+D,T="";else{T=+T;var B=T<0||1/T<0;if(T=isNaN(T)?l:A(Math.abs(T),S),C&&(T=IH(T)),B&&+T==0&&m!=="+"&&(B=!1),P=(B?m==="("?m:s:m==="-"||m==="("?"":m)+P,D=(_==="s"?pS[8+dS/3]:"")+D+(B&&m==="("?")":""),j){for(I=-1,$=T.length;++I<$;)if(W=T.charCodeAt(I),48>W||W>57){D=(W===46?i+T.slice(I+1):T.slice(I))+D,T=T.slice(0,I);break}}}x&&!y&&(T=t(T,1/0));var U=P.length+T.length+D.length,V=U<b?new Array(b-U+1).join(f):"";switch(x&&y&&(T=t(V+T,V.length?b-D.length:1/0),V=""),h){case"<":T=P+T+D+V;break;case"=":T=P+V+T+D;break;case"^":T=V.slice(0,U=V.length>>1)+P+T+D+V.slice(U);break;default:T=V+P+T+D;break}return o(T)}return M.toString=function(){return d+""},M}function u(d,f){var h=c((d=ac(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(ys(f)/3)))*3,p=Math.pow(10,-m),y=pS[8+m/3];return function(b){return h(p*b)+y}}return{format:c,formatPrefix:u}}var Zd,C0,yS;FH({thousands:",",grouping:[3],currency:["$",""]});function FH(e){return Zd=LH(e),C0=Zd.format,yS=Zd.formatPrefix,Zd}function NH(e){return Math.max(0,-ys(Math.abs(e)))}function WH(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ys(t)/3)))*3-ys(Math.abs(e)))}function BH(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ys(t)-ys(e))+1}function vS(e,t,n,r){var i=p0(e,t,n),o;switch(r=ac(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=WH(i,a))&&(r.precision=o),yS(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=BH(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=NH(i))&&(r.precision=o-(r.type==="%")*2);break}}return C0(r)}function po(e){var t=e.domain;return e.ticks=function(n){var r=t();return m0(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return vS(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],s=r[o],l,c,u=10;for(s<a&&(c=a,a=s,s=c,c=i,i=o,o=c);u-- >0;){if(c=g0(a,s,n),c===l)return r[i]=a,r[o]=s,t(r);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function w0(){var e=_0();return e.copy=function(){return oc(e,w0())},lr.apply(e,arguments),po(e)}function bS(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Gd),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return bS(e).unknown(t)},e=arguments.length?Array.from(e,Gd):[0,1],po(n)}function xS(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function _S(e){return Math.log(e)}function SS(e){return Math.exp(e)}function RH(e){return-Math.log(-e)}function zH(e){return-Math.exp(-e)}function VH(e){return isFinite(e)?+("1e"+e):e<0?0:e}function UH(e){return e===10?VH:e===Math.E?Math.exp:t=>Math.pow(e,t)}function HH(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function CS(e){return(t,n)=>-e(-t,n)}function E0(e){const t=e(_S,SS),n=t.domain;let r=10,i,o;function a(){return i=HH(r),o=UH(r),n()[0]<0?(i=CS(i),o=CS(o),e(RH,zH)):e(_S,SS),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let f=i(c),h=i(u),m,p;const y=s==null?10:+s;let b=[];if(!(r%1)&&h-f<y){if(f=Math.floor(f),h=Math.ceil(h),c>0){for(;f<=h;++f)for(m=1;m<r;++m)if(p=f<0?m/o(-f):m*o(f),!(p<c)){if(p>u)break;b.push(p)}}else for(;f<=h;++f)for(m=r-1;m>=1;--m)if(p=f>0?m/o(-f):m*o(f),!(p<c)){if(p>u)break;b.push(p)}b.length*2<y&&(b=m0(c,u,y))}else b=m0(f,h,Math.min(h-f,y)).map(o);return d?b.reverse():b},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=ac(l)).precision==null&&(l.trim=!0),l=C0(l)),s===1/0)return l;const c=Math.max(1,r*s/t.ticks().length);return u=>{let d=u/o(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=c?l(u):""}},t.nice=()=>n(xS(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function wS(){const e=E0(Yd()).domain([1,10]);return e.copy=()=>oc(e,wS()).base(e.base()),lr.apply(e,arguments),e}function ES(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function OS(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function O0(e){var t=1,n=e(ES(t),OS(t));return n.constant=function(r){return arguments.length?e(ES(t=+r),OS(t)):t},po(n)}function kS(){var e=O0(Yd());return e.copy=function(){return oc(e,kS()).constant(e.constant())},lr.apply(e,arguments)}function TS(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function qH(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function GH(e){return e<0?-e*e:e*e}function k0(e){var t=e(Sn,Sn),n=1;function r(){return n===1?e(Sn,Sn):n===.5?e(qH,GH):e(TS(n),TS(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},po(t)}function T0(){var e=k0(Yd());return e.copy=function(){return oc(e,T0()).exponent(e.exponent())},lr.apply(e,arguments),e}function YH(){return T0.apply(null,arguments).exponent(.5)}function AS(e){return Math.sign(e)*e*e}function KH(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function DS(){var e=_0(),t=[0,1],n=!1,r;function i(o){var a=KH(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(AS(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,Gd)).map(AS)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return DS(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},lr.apply(i,arguments),po(i)}function PS(){var e=[],t=[],n=[],r;function i(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a<s;)n[a-1]=CH(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?r:t[rc(n,a)]}return o.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},o.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(go),i()},o.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return PS().domain(e).range(t).unknown(r)},lr.apply(o,arguments)}function jS(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(l){return l!=null&&l<=l?i[rc(r,l,0,n)]:o}function s(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},a.range=function(l){return arguments.length?(n=(i=Array.from(l)).length-1,s()):i.slice()},a.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},a.unknown=function(l){return arguments.length&&(o=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return jS().domain([e,t]).range(i).unknown(o)},lr.apply(po(a),arguments)}function MS(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[rc(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return MS().domain(e).range(t).unknown(n)},lr.apply(i,arguments)}const A0=new Date,D0=new Date;function Yt(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const l=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;let c;do l.push(c=new Date(+o)),t(o,s),e(o);while(c<o&&o<a);return l},i.filter=o=>Yt(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(A0.setTime(+o),D0.setTime(+a),e(A0),e(D0),Math.floor(n(A0,D0))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const Xd=Yt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Xd.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Yt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Xd),Xd.range;const wi=1e3,cr=wi*60,Ei=cr*60,Oi=Ei*24,P0=Oi*7,IS=Oi*30,j0=Oi*365,sa=Yt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*wi)},(e,t)=>(t-e)/wi,e=>e.getUTCSeconds());sa.range;const M0=Yt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*wi)},(e,t)=>{e.setTime(+e+t*cr)},(e,t)=>(t-e)/cr,e=>e.getMinutes());M0.range;const I0=Yt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*cr)},(e,t)=>(t-e)/cr,e=>e.getUTCMinutes());I0.range;const $0=Yt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*wi-e.getMinutes()*cr)},(e,t)=>{e.setTime(+e+t*Ei)},(e,t)=>(t-e)/Ei,e=>e.getHours());$0.range;const L0=Yt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ei)},(e,t)=>(t-e)/Ei,e=>e.getUTCHours());L0.range;const sc=Yt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*cr)/Oi,e=>e.getDate()-1);sc.range;const Jd=Yt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Oi,e=>e.getUTCDate()-1);Jd.range;const $S=Yt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Oi,e=>Math.floor(e/Oi));$S.range;function la(e){return Yt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*cr)/P0)}const Qd=la(0),ef=la(1),ZH=la(2),XH=la(3),vs=la(4),JH=la(5),QH=la(6);Qd.range,ef.range,ZH.range,XH.range,vs.range,JH.range,QH.range;function ca(e){return Yt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/P0)}const tf=ca(0),nf=ca(1),eq=ca(2),tq=ca(3),bs=ca(4),nq=ca(5),rq=ca(6);tf.range,nf.range,eq.range,tq.range,bs.range,nq.range,rq.range;const F0=Yt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());F0.range;const N0=Yt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());N0.range;const ki=Yt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ki.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Yt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),ki.range;const Ti=Yt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Ti.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Yt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),Ti.range;function LS(e,t,n,r,i,o){const a=[[sa,1,wi],[sa,5,5*wi],[sa,15,15*wi],[sa,30,30*wi],[o,1,cr],[o,5,5*cr],[o,15,15*cr],[o,30,30*cr],[i,1,Ei],[i,3,3*Ei],[i,6,6*Ei],[i,12,12*Ei],[r,1,Oi],[r,2,2*Oi],[n,1,P0],[t,1,IS],[t,3,3*IS],[e,1,j0]];function s(c,u,d){const f=u<c;f&&([c,u]=[u,c]);const h=d&&typeof d.range=="function"?d:l(c,u,d),m=h?h.range(c,+u+1):[];return f?m.reverse():m}function l(c,u,d){const f=Math.abs(u-c)/d,h=h0(([,,y])=>y).right(a,f);if(h===a.length)return e.every(p0(c/j0,u/j0,d));if(h===0)return Xd.every(Math.max(p0(c,u,d),1));const[m,p]=a[f/a[h-1][2]<a[h][2]/f?h-1:h];return m.every(p)}return[s,l]}const[iq,oq]=LS(Ti,N0,tf,$S,L0,I0),[aq,sq]=LS(ki,F0,Qd,sc,$0,M0);function W0(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function B0(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function lc(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function lq(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=cc(i),u=uc(i),d=cc(o),f=uc(o),h=cc(a),m=uc(a),p=cc(s),y=uc(s),b=cc(l),x=uc(l),S={a:B,A:U,b:V,B:F,c:null,d:zS,e:zS,f:Pq,g:Rq,G:Vq,H:Tq,I:Aq,j:Dq,L:VS,m:jq,M:Mq,p:H,q:X,Q:KS,s:ZS,S:Iq,u:$q,U:Lq,V:Fq,w:Nq,W:Wq,x:null,X:null,y:Bq,Y:zq,Z:Uq,"%":YS},C={a:J,A:Q,b:ee,B:ie,c:null,d:HS,e:HS,f:Yq,g:iG,G:aG,H:Hq,I:qq,j:Gq,L:qS,m:Kq,M:Zq,p:ue,q:he,Q:KS,s:ZS,S:Xq,u:Jq,U:Qq,V:eG,w:tG,W:nG,x:null,X:null,y:rG,Y:oG,Z:sG,"%":YS},_={a:M,A:T,b:P,B:D,c:I,d:BS,e:BS,f:wq,g:WS,G:NS,H:RS,I:RS,j:xq,L:Cq,m:bq,M:_q,p:j,q:vq,Q:Oq,s:kq,S:Sq,u:hq,U:mq,V:gq,w:fq,W:pq,x:$,X:W,y:WS,Y:NS,Z:yq,"%":Eq};S.x=w(n,S),S.X=w(r,S),S.c=w(t,S),C.x=w(n,C),C.X=w(r,C),C.c=w(t,C);function w(Z,re){return function(pe){var R=[],Ae=-1,ke=0,Ge=Z.length,Le,st,L;for(pe instanceof Date||(pe=new Date(+pe));++Ae<Ge;)Z.charCodeAt(Ae)===37&&(R.push(Z.slice(ke,Ae)),(st=FS[Le=Z.charAt(++Ae)])!=null?Le=Z.charAt(++Ae):st=Le==="e"?" ":"0",(L=re[Le])&&(Le=L(pe,st)),R.push(Le),ke=Ae+1);return R.push(Z.slice(ke,Ae)),R.join("")}}function k(Z,re){return function(pe){var R=lc(1900,void 0,1),Ae=A(R,Z,pe+="",0),ke,Ge;if(Ae!=pe.length)return null;if("Q"in R)return new Date(R.Q);if("s"in R)return new Date(R.s*1e3+("L"in R?R.L:0));if(re&&!("Z"in R)&&(R.Z=0),"p"in R&&(R.H=R.H%12+R.p*12),R.m===void 0&&(R.m="q"in R?R.q:0),"V"in R){if(R.V<1||R.V>53)return null;"w"in R||(R.w=1),"Z"in R?(ke=B0(lc(R.y,0,1)),Ge=ke.getUTCDay(),ke=Ge>4||Ge===0?nf.ceil(ke):nf(ke),ke=Jd.offset(ke,(R.V-1)*7),R.y=ke.getUTCFullYear(),R.m=ke.getUTCMonth(),R.d=ke.getUTCDate()+(R.w+6)%7):(ke=W0(lc(R.y,0,1)),Ge=ke.getDay(),ke=Ge>4||Ge===0?ef.ceil(ke):ef(ke),ke=sc.offset(ke,(R.V-1)*7),R.y=ke.getFullYear(),R.m=ke.getMonth(),R.d=ke.getDate()+(R.w+6)%7)}else("W"in R||"U"in R)&&("w"in R||(R.w="u"in R?R.u%7:"W"in R?1:0),Ge="Z"in R?B0(lc(R.y,0,1)).getUTCDay():W0(lc(R.y,0,1)).getDay(),R.m=0,R.d="W"in R?(R.w+6)%7+R.W*7-(Ge+5)%7:R.w+R.U*7-(Ge+6)%7);return"Z"in R?(R.H+=R.Z/100|0,R.M+=R.Z%100,B0(R)):W0(R)}}function A(Z,re,pe,R){for(var Ae=0,ke=re.length,Ge=pe.length,Le,st;Ae<ke;){if(R>=Ge)return-1;if(Le=re.charCodeAt(Ae++),Le===37){if(Le=re.charAt(Ae++),st=_[Le in FS?re.charAt(Ae++):Le],!st||(R=st(Z,pe,R))<0)return-1}else if(Le!=pe.charCodeAt(R++))return-1}return R}function j(Z,re,pe){var R=c.exec(re.slice(pe));return R?(Z.p=u.get(R[0].toLowerCase()),pe+R[0].length):-1}function M(Z,re,pe){var R=h.exec(re.slice(pe));return R?(Z.w=m.get(R[0].toLowerCase()),pe+R[0].length):-1}function T(Z,re,pe){var R=d.exec(re.slice(pe));return R?(Z.w=f.get(R[0].toLowerCase()),pe+R[0].length):-1}function P(Z,re,pe){var R=b.exec(re.slice(pe));return R?(Z.m=x.get(R[0].toLowerCase()),pe+R[0].length):-1}function D(Z,re,pe){var R=p.exec(re.slice(pe));return R?(Z.m=y.get(R[0].toLowerCase()),pe+R[0].length):-1}function I(Z,re,pe){return A(Z,t,re,pe)}function $(Z,re,pe){return A(Z,n,re,pe)}function W(Z,re,pe){return A(Z,r,re,pe)}function B(Z){return a[Z.getDay()]}function U(Z){return o[Z.getDay()]}function V(Z){return l[Z.getMonth()]}function F(Z){return s[Z.getMonth()]}function H(Z){return i[+(Z.getHours()>=12)]}function X(Z){return 1+~~(Z.getMonth()/3)}function J(Z){return a[Z.getUTCDay()]}function Q(Z){return o[Z.getUTCDay()]}function ee(Z){return l[Z.getUTCMonth()]}function ie(Z){return s[Z.getUTCMonth()]}function ue(Z){return i[+(Z.getUTCHours()>=12)]}function he(Z){return 1+~~(Z.getUTCMonth()/3)}return{format:function(Z){var re=w(Z+="",S);return re.toString=function(){return Z},re},parse:function(Z){var re=k(Z+="",!1);return re.toString=function(){return Z},re},utcFormat:function(Z){var re=w(Z+="",C);return re.toString=function(){return Z},re},utcParse:function(Z){var re=k(Z+="",!0);return re.toString=function(){return Z},re}}}var FS={"-":"",_:" ",0:"0"},en=/^\s*\d+/,cq=/^%/,uq=/[\\^$*+?|[\]().{}]/g;function Ke(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function dq(e){return e.replace(uq,"\\$&")}function cc(e){return new RegExp("^(?:"+e.map(dq).join("|")+")","i")}function uc(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function fq(e,t,n){var r=en.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function hq(e,t,n){var r=en.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function mq(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function gq(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function pq(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function NS(e,t,n){var r=en.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function WS(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function yq(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function vq(e,t,n){var r=en.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function bq(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function BS(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function xq(e,t,n){var r=en.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function RS(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function _q(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Sq(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Cq(e,t,n){var r=en.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function wq(e,t,n){var r=en.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Eq(e,t,n){var r=cq.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Oq(e,t,n){var r=en.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function kq(e,t,n){var r=en.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function zS(e,t){return Ke(e.getDate(),t,2)}function Tq(e,t){return Ke(e.getHours(),t,2)}function Aq(e,t){return Ke(e.getHours()%12||12,t,2)}function Dq(e,t){return Ke(1+sc.count(ki(e),e),t,3)}function VS(e,t){return Ke(e.getMilliseconds(),t,3)}function Pq(e,t){return VS(e,t)+"000"}function jq(e,t){return Ke(e.getMonth()+1,t,2)}function Mq(e,t){return Ke(e.getMinutes(),t,2)}function Iq(e,t){return Ke(e.getSeconds(),t,2)}function $q(e){var t=e.getDay();return t===0?7:t}function Lq(e,t){return Ke(Qd.count(ki(e)-1,e),t,2)}function US(e){var t=e.getDay();return t>=4||t===0?vs(e):vs.ceil(e)}function Fq(e,t){return e=US(e),Ke(vs.count(ki(e),e)+(ki(e).getDay()===4),t,2)}function Nq(e){return e.getDay()}function Wq(e,t){return Ke(ef.count(ki(e)-1,e),t,2)}function Bq(e,t){return Ke(e.getFullYear()%100,t,2)}function Rq(e,t){return e=US(e),Ke(e.getFullYear()%100,t,2)}function zq(e,t){return Ke(e.getFullYear()%1e4,t,4)}function Vq(e,t){var n=e.getDay();return e=n>=4||n===0?vs(e):vs.ceil(e),Ke(e.getFullYear()%1e4,t,4)}function Uq(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ke(t/60|0,"0",2)+Ke(t%60,"0",2)}function HS(e,t){return Ke(e.getUTCDate(),t,2)}function Hq(e,t){return Ke(e.getUTCHours(),t,2)}function qq(e,t){return Ke(e.getUTCHours()%12||12,t,2)}function Gq(e,t){return Ke(1+Jd.count(Ti(e),e),t,3)}function qS(e,t){return Ke(e.getUTCMilliseconds(),t,3)}function Yq(e,t){return qS(e,t)+"000"}function Kq(e,t){return Ke(e.getUTCMonth()+1,t,2)}function Zq(e,t){return Ke(e.getUTCMinutes(),t,2)}function Xq(e,t){return Ke(e.getUTCSeconds(),t,2)}function Jq(e){var t=e.getUTCDay();return t===0?7:t}function Qq(e,t){return Ke(tf.count(Ti(e)-1,e),t,2)}function GS(e){var t=e.getUTCDay();return t>=4||t===0?bs(e):bs.ceil(e)}function eG(e,t){return e=GS(e),Ke(bs.count(Ti(e),e)+(Ti(e).getUTCDay()===4),t,2)}function tG(e){return e.getUTCDay()}function nG(e,t){return Ke(nf.count(Ti(e)-1,e),t,2)}function rG(e,t){return Ke(e.getUTCFullYear()%100,t,2)}function iG(e,t){return e=GS(e),Ke(e.getUTCFullYear()%100,t,2)}function oG(e,t){return Ke(e.getUTCFullYear()%1e4,t,4)}function aG(e,t){var n=e.getUTCDay();return e=n>=4||n===0?bs(e):bs.ceil(e),Ke(e.getUTCFullYear()%1e4,t,4)}function sG(){return"+0000"}function YS(){return"%"}function KS(e){return+e}function ZS(e){return Math.floor(+e/1e3)}var xs,XS,JS;lG({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function lG(e){return xs=lq(e),XS=xs.format,xs.parse,JS=xs.utcFormat,xs.utcParse,xs}function cG(e){return new Date(e)}function uG(e){return e instanceof Date?+e:+new Date(+e)}function R0(e,t,n,r,i,o,a,s,l,c){var u=_0(),d=u.invert,f=u.domain,h=c(".%L"),m=c(":%S"),p=c("%I:%M"),y=c("%I %p"),b=c("%a %d"),x=c("%b %d"),S=c("%B"),C=c("%Y");function _(w){return(l(w)<w?h:s(w)<w?m:a(w)<w?p:o(w)<w?y:r(w)<w?i(w)<w?b:x:n(w)<w?S:C)(w)}return u.invert=function(w){return new Date(d(w))},u.domain=function(w){return arguments.length?f(Array.from(w,uG)):f().map(cG)},u.ticks=function(w){var k=f();return e(k[0],k[k.length-1],w??10)},u.tickFormat=function(w,k){return k==null?_:c(k)},u.nice=function(w){var k=f();return(!w||typeof w.range!="function")&&(w=t(k[0],k[k.length-1],w??10)),w?f(xS(k,w)):u},u.copy=function(){return oc(u,R0(e,t,n,r,i,o,a,s,l,c))},u}function dG(){return lr.apply(R0(aq,sq,ki,F0,Qd,sc,$0,M0,sa,XS).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function fG(){return lr.apply(R0(iq,oq,Ti,N0,tf,Jd,L0,I0,sa,JS).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function rf(){var e=0,t=1,n,r,i,o,a=Sn,s=!1,l;function c(d){return d==null||isNaN(d=+d)?l:a(i===0?.5:(d=(o(d)-n)*i,s?Math.max(0,Math.min(1,d)):d))}c.domain=function(d){return arguments.length?([e,t]=d,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(d){return arguments.length?(s=!!d,c):s},c.interpolator=function(d){return arguments.length?(a=d,c):a};function u(d){return function(f){var h,m;return arguments.length?([h,m]=f,a=d(h,m),c):[a(0),a(1)]}}return c.range=u(Xr),c.rangeRound=u(e0),c.unknown=function(d){return arguments.length?(l=d,c):l},function(d){return o=d,n=d(e),r=d(t),i=n===r?0:1/(r-n),c}}function yo(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function QS(){var e=po(rf()(Sn));return e.copy=function(){return yo(e,QS())},Ci.apply(e,arguments)}function eC(){var e=E0(rf()).domain([1,10]);return e.copy=function(){return yo(e,eC()).base(e.base())},Ci.apply(e,arguments)}function tC(){var e=O0(rf());return e.copy=function(){return yo(e,tC()).constant(e.constant())},Ci.apply(e,arguments)}function z0(){var e=k0(rf());return e.copy=function(){return yo(e,z0()).exponent(e.exponent())},Ci.apply(e,arguments)}function hG(){return z0.apply(null,arguments).exponent(.5)}function nC(){var e=[],t=Sn;function n(r){if(r!=null&&!isNaN(r=+r))return t((rc(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(go),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>SH(e,o/r))},n.copy=function(){return nC(t).domain(e)},Ci.apply(n,arguments)}function of(){var e=0,t=.5,n=1,r=1,i,o,a,s,l,c=Sn,u,d=!1,f;function h(p){return isNaN(p=+p)?f:(p=.5+((p=+u(p))-o)*(r*p<r*o?s:l),c(d?Math.max(0,Math.min(1,p)):p))}h.domain=function(p){return arguments.length?([e,t,n]=p,i=u(e=+e),o=u(t=+t),a=u(n=+n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,h):[e,t,n]},h.clamp=function(p){return arguments.length?(d=!!p,h):d},h.interpolator=function(p){return arguments.length?(c=p,h):c};function m(p){return function(y){var b,x,S;return arguments.length?([b,x,S]=y,c=gz(p,[b,x,S]),h):[c(0),c(.5),c(1)]}}return h.range=m(Xr),h.rangeRound=m(e0),h.unknown=function(p){return arguments.length?(f=p,h):f},function(p){return u=p,i=p(e),o=p(t),a=p(n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,h}}function rC(){var e=po(of()(Sn));return e.copy=function(){return yo(e,rC())},Ci.apply(e,arguments)}function iC(){var e=E0(of()).domain([.1,1,10]);return e.copy=function(){return yo(e,iC()).base(e.base())},Ci.apply(e,arguments)}function oC(){var e=O0(of());return e.copy=function(){return yo(e,oC()).constant(e.constant())},Ci.apply(e,arguments)}function V0(){var e=k0(of());return e.copy=function(){return yo(e,V0()).exponent(e.exponent())},Ci.apply(e,arguments)}function mG(){return V0.apply(null,arguments).exponent(.5)}const gG=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:b0,scaleDiverging:rC,scaleDivergingLog:iC,scaleDivergingPow:V0,scaleDivergingSqrt:mG,scaleDivergingSymlog:oC,scaleIdentity:bS,scaleImplicit:y0,scaleLinear:w0,scaleLog:wS,scaleOrdinal:v0,scalePoint:EH,scalePow:T0,scaleQuantile:PS,scaleQuantize:jS,scaleRadial:DS,scaleSequential:QS,scaleSequentialLog:eC,scaleSequentialPow:z0,scaleSequentialQuantile:nC,scaleSequentialSqrt:hG,scaleSequentialSymlog:tC,scaleSqrt:YH,scaleSymlog:kS,scaleThreshold:MS,scaleTime:dG,scaleUtc:fG,tickFormat:vS},Symbol.toStringTag,{value:"Module"})),pG=["linear","time","log","sqrt"];function yG(e){return`scale${(n=>n&&n[0].toUpperCase()+n.slice(1))(e)}`}function aC(e){return typeof e=="function"?Se(e.copy)&&Se(e.domain)&&Se(e.range):typeof e=="string"?pG.includes(e):!1}function sC(e,t){if(e.scale){if(e.scale.x||e.scale.y)return!!e.scale[t]}else return!1;return!0}function vG(e,t){if(!sC(e,t))return;const n=e.scale[t]||e.scale;return typeof n=="string"?n:cC(n)}function bG(e,t){let n;if(e.domain&&e.domain[t]?n=e.domain[t]:e.domain&&Array.isArray(e.domain)&&(n=e.domain),!!n)return ar(n)?"time":"linear"}function lC(e,t){if(!e.data)return"linear";const n=Nd(e[t]),r=e.data.map(i=>{const o=It(n(i))?n(i)[t]:n(i);return o!==void 0?o:i[t]});return ar(r)?"time":"linear"}function dc(e){if(aC(e)){const t=yG(e);return gG[t]()}return w0()}function ur(e,t){const n=fc(e,t);if(n)return typeof n=="string"?dc(n):n;const r=bG(e,t)||lC(e,t);return dc(r)}function fc(e,t){if(!sC(e,t))return;const n=e.scale[t]||e.scale;if(aC(n))return Se(n)?n:dc(n)}function af(e,t){return vG(e,t)||lC(e,t)}const xG=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function cC(e){if(typeof e=="string")return e;const t=xG.filter(n=>e[n.method]!==void 0)[0];return t?t.name:void 0}const _G="@@__IMMUTABLE_ITERABLE__@@",SG="@@__IMMUTABLE_RECORD__@@",CG="@@__IMMUTABLE_LIST__@@";function hc(e){return!!(e&&e[_G])}function wG(e){return!!(e&&e[SG])}function EG(e){return hc(e)||wG(e)}function OG(e){return!!(e&&e[CG])}function uC(e,t){return hc(e)?e.reduce((n,r,i)=>{let o=r;return t&&t[i]&&(o=uC(r)),n[i]=o,n},OG(e)?[]:{}):e}function U0(e){const t={errorX:!0,errorY:!0};return EG(e)?uC(e,t):e}function dC(e){return hc(e)?e.size:e.length}function fC(e,t){const r=(It(e.domain)?e.domain[t]:e.domain)||ur(e,t).domain(),i=e.samples||1,o=Math.max(...r),a=Math.min(...r),s=(o-a)/i,l=a0(a,o,s);return l[l.length-1]===o?l:l.concat(o)}function hC(e,t,n){if(n===void 0&&(n="ascending"),!t)return e;let r=t;return(t==="x"||t==="y")&&(r=`_${t}`),fs(e,r,n==="ascending"?"asc":"desc")}function kG(e,t){const n=1/Number.MAX_SAFE_INTEGER,r={x:af(t,"x"),y:af(t,"y")};if(r.x!=="log"&&r.y!=="log")return e;const i=(a,s)=>r[s]==="log"?a[`_${s}`]!==0:!0,o=a=>{const s=i(a,"x")?a._x:n,l=i(a,"y")?a._y:n,c=i(a,"y0")?a._y0:n;return Object.assign({},a,{_x:s,_y:l,_y0:c})};return e.map(a=>i(a,"x")&&i(a,"y")&&i(a,"y0")?a:o(a))}function TG(e){return Se(e)?e:e==null?()=>{}:Z2(e)}function AG(e,t){const n=!!e.eventKey,r=TG(e.eventKey);return t.map((i,o)=>{if(i.eventKey!==void 0)return i;if(n){const a=r(i,o);return a!==void 0?Object.assign({eventKey:a},i):i}return i})}function DG(e,t,n){const r=m=>m!==void 0,i=Mn(t.x),o=sr(t.x),a=Mn(t.y),s=sr(t.y),l=m=>p=>r(p)&&p<m,c=m=>p=>r(p)&&p>m,u=l(i),d=l(a),f=c(o),h=c(s);return e.map(m=>{let{_x:p,_y:y,_y0:b,_y1:x}=m;(u(p)||f(p))&&(p=null);const S=r(b)?b:n,C=r(x)?x:y;return r(C)?(!r(S)&&(d(C)||h(C))&&(y=null),(d(S)&&d(C)||h(S)&&h(C))&&(y=b=x=null),d(S)&&!d(C)&&(b=a),h(S)&&!h(C)&&(b=s),Object.assign({},m,V_({_x:p,_y:y,_y0:b,_y1:x},sH))):m})}function H0(e,t){const n=mC(e,t),r=_s(e,t),i=MG(e,t),o=oa([...n,...r,...i]);return o.length===0?null:o.reduce((a,s,l)=>(a[s]=l+1,a),{})}function PG(e,t,n){n===void 0&&(n=0);const r=dC(e);if(r>t){const i=Math.pow(2,Math.ceil(Math.log2(r/t)));return e.filter((o,a)=>(a+n)%i===0)}return e}function q0(e,t,n){if(!(Array.isArray(e)||hc(e))||dC(e)<1)return[];const i=["x","y","y0"];n=Array.isArray(n)?n:i;const o=f=>Nd(t[f]!==void 0?t[f]:f),a=n.reduce((f,h)=>(f[h]=o(h),f),{}),s=dH(n,i)&&t.x==="_x"&&t.y==="_y"&&t.y0==="_y0";let l;s===!1&&(l={x:n.indexOf("x")!==-1?H0(t,"x"):void 0,y:n.indexOf("y")!==-1?H0(t,"y"):void 0,y0:n.indexOf("y0")!==-1?H0(t,"y"):void 0});const c=s?e:e.reduce((f,h,m)=>{const p=U0(h),y={x:m,y:p},b=n.reduce((S,C)=>{const _=a[C](p),w=_!==void 0?_:y[C];return w!==void 0&&(typeof w=="string"&&l[C]?(S[`${C}Name`]=w,S[`_${C}`]=l[C][w]):S[`_${C}`]=w),S},{}),x=Object.assign({},b,p);return bt(x)||f.push(x),f},[]),u=hC(c,t.sortKey,t.sortOrder),d=kG(u,t);return AG(t,d)}function jG(e){const t=fC(e,"x"),n=fC(e,"y");return t.map((i,o)=>({x:i,y:n[o]}))}function G0(e,t){return e.categories&&!Array.isArray(e.categories)?e.categories[t]:e.categories}function mn(e){return e.data?q0(e.data,e):q0(jG(e),e)}function mC(e,t){const{tickValues:n,tickFormat:r}=e;let i;return!n||!Array.isArray(n)&&!n[t]?i=r&&Array.isArray(r)?r:[]:i=n[t]||n,i.filter(o=>typeof o=="string")}function _s(e,t){if(!e.categories)return[];const n=G0(e,t),r=n&&n.filter(i=>typeof i=="string");return r?TV(r):[]}function MG(e,t){if(!(Array.isArray(e.data)||hc(e.data)))return[];const r=e[t]===void 0?t:e[t],i=Nd(r),o=e.data.reduce((l,c)=>(l.push(U0(c)),l),[]);return hC(o,e.sortKey,e.sortOrder).reduce((l,c)=>{const u=U0(c);return l.push(i(u)),l},[]).filter(l=>typeof l=="string").reduce((l,c)=>(c!=null&&l.indexOf(c)===-1&&l.push(c),l),[])}function Ss(e){const t=i=>i&&i.type?i.type.role:"";let n=t(e);if(n==="portal"){const i=v.Children.toArray(e.props.children);n=i.length?t(i[0]):""}return["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(n)}function IG(e,t,n){return af(t,n)!=="log"?e:(o=>{const a=o[0]<0||o[1]<0?-1/Number.MAX_SAFE_INTEGER:1/Number.MAX_SAFE_INTEGER,s=o[0]===0?a:o[0],l=o[1]===0?a:o[1];return[s,l]})(e)}function $G(e,t){const n=r=>Array.isArray(r)?{left:r[0],right:r[1]}:{left:r,right:r};return It(e.domainPadding)?n(e.domainPadding[t]):n(e.domainPadding)}function LG(e,t){const n=`_${t}`;return e.flat().map(r=>r[n]&&r[n][1]!==void 0?r[n][1]:r[n])}function gC(e,t,n){n===void 0&&(n="min");const r=s=>n==="max"?Math.max(...s):Math.min(...s),i=n==="max"?-1/0:1/0;let o=!1;const a=e.flat().reduce((s,l)=>{const c=l[`_${t}0`]!==void 0?l[`_${t}0`]:l[`_${t}`],u=l[`_${t}1`]!==void 0?l[`_${t}1`]:l[`_${t}`],d=r([c,u]);return o=o||c instanceof Date||u instanceof Date,r([s,d])},i);return o?new Date(a):a}function FG(e,t,n){if(!t.domainPadding)return e;const r=fa(t,n),i=da(t,n),o=$G(t,n);if(!o.left&&!o.right)return e;const a=Mn(e),s=sr(e),l=yV(n,t.horizontal),c=Wt(t,l),u=Math.abs(c[0]-c[1]),d=Math.max(u-o.left-o.right,1),f=Math.abs(s.valueOf()-a.valueOf())/d*u,h={left:f*o.left/u,right:f*o.right/u};let m={min:a.valueOf()-h.left,max:s.valueOf()+h.right};const p=It(t.singleQuadrantDomainPadding)?t.singleQuadrantDomainPadding[n]:t.singleQuadrantDomainPadding,y=a>=0&&m.min<=0||s<=0&&m.max>=0,b=(S,C)=>C==="min"&&a>=0&&S<=0||C==="max"&&s<=0&&S>=0?0:S;if(y&&p!==!1){const S={left:Math.abs(s-a)*o.left/u,right:Math.abs(s-a)*o.right/u},C={min:b(a.valueOf()-S.left,"min"),max:b(s.valueOf()+S.right,"max")},_={left:Math.abs(C.max-C.min)*o.left/u,right:Math.abs(C.max-C.min)*o.right/u};m={min:b(a.valueOf()-_.left,"min"),max:b(s.valueOf()+_.right,"max")}}const x={min:r!==void 0?r:m.min,max:i!==void 0?i:m.max};return a instanceof Date||s instanceof Date?Ai(new Date(x.min),new Date(x.max)):Ai(x.min,x.max)}function Y0(e,t){const n=Se(e)?e:Z0,r=Se(t)?t:K0;return(i,o)=>{const a=X0(i,o);if(a)return r(a,i,o);const s=G0(i,o),l=s?NG(i,o,s):n(i,o);return l?r(l,i,o):void 0}}function K0(e,t,n){return IG(FG(e,t,n),t,n)}function ua(e,t){return Y0()(e,t)}function NG(e,t,n){const r=n||G0(e,t),{polar:i,startAngle:o=0,endAngle:a=360}=e;if(!r)return;const s=fa(e,t),l=da(e,t),c=zd(r)?_s(e,t):[],u=c.length===0?null:c.reduce((p,y,b)=>(p[y]=b+1,p),{}),d=u?r.map(p=>u[p]):r,f=s!==void 0?s:Mn(d),h=l!==void 0?l:sr(d),m=Ai(f,h);return i&&t==="x"&&Math.abs(o-a)===360?Q0(m,d):m}function Z0(e,t,n){const r=n||mn(e),{polar:i,startAngle:o=0,endAngle:a=360}=e,s=fa(e,t),l=da(e,t);if(r.length<1)return s!==void 0&&l!==void 0?Ai(s,l):void 0;const c=s!==void 0?s:gC(r,t,"min"),u=l!==void 0?l:gC(r,t,"max"),d=Ai(c,u);return i&&t==="x"&&Math.abs(o-a)===360?Q0(d,LG(r,t)):d}function Ai(e,t){const n=r=>{const i=r===0?2*Math.pow(10,-10):Math.pow(10,-10),o=1,a=r instanceof Date?new Date(Number(r)-o):Number(r)-i,s=r instanceof Date?new Date(Number(r)+o):Number(r)+i;return r===0?[0,s]:[a,s]};return Number(e)===Number(t)?n(t):[e,t]}function X0(e,t){const n=fa(e,t),r=da(e,t);if(It(e.domain)&&e.domain[t])return e.domain[t];if(Array.isArray(e.domain))return e.domain;if(n!==void 0&&r!==void 0)return Ai(n,r)}function J0(e,t){const n=X0(e,t);if(n)return n;const r=mn(e),i=r.reduce((l,c)=>c._y0<l?c._y0:l,1/0),o=l=>{if(t==="x")return l;const c=i!==1/0?i:0,u=da(e,t),d=fa(e,t),f=u!==void 0?u:sr(l,c),h=d!==void 0?d:Mn(l,c);return Ai(h,f)};return Y0(()=>Z0(e,t,r),l=>K0(o(l),e,t))(e,t)}function da(e,t){return It(e.maxDomain)&&e.maxDomain[t]!==void 0?e.maxDomain[t]:typeof e.maxDomain=="number"||tS(e.maxDomain)?e.maxDomain:void 0}function fa(e,t){return It(e.minDomain)&&e.minDomain[t]!==void 0?e.minDomain[t]:typeof e.minDomain=="number"||tS(e.minDomain)?e.minDomain:void 0}function Q0(e,t){const n=iH(t.sort((i,o)=>i-o)),r=n[1]-n[0];return[e[0],e[1]+r]}function pC(e){const t=i=>i&&i.type?i.type.role:"";let n=t(e);if(n==="portal"){const i=v.Children.toArray(e.props.children);n=i.length?t(i[0]):""}return["area","axis","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(n)}function WG(e){return e}function dr(e){const{dependentAxis:t}=e;return t?"y":"x"}function yC(e,t){const n=t||WG,r=i=>i.reduce((o,a)=>a.type&&a.type.role==="axis"&&n(a)?o.concat(a):a.props&&a.props.children?o.concat(r(v.Children.toArray(a.props.children))):o,[]);return r(e)}function vC(e,t){return yC(e,r=>r.type.getAxis(r.props)===t)[0]}function bC(e,t){const n=i=>t==="dependent"?i.props.dependentAxis:!i.props.dependentAxis,r=i=>i.reduce((o,a)=>a.type&&a.type.role==="axis"&&n(a)||a.props&&a.props.children&&r(v.Children.toArray(a.props.children)).length>0?o.concat(a):o,[]);return r(e)}function xC(e){const t=n=>{const r=Math.min(...n),i=Math.max(...n);return i<0?i:Math.max(0,r)};return{x:ar(e.x)?new Date(Math.min(...e.x)):t(e.x),y:ar(e.y)?new Date(Math.min(...e.y)):t(e.y)}}function _C(e,t){const n=()=>e<=0&&Math.max(...t)<=0?"negative":"positive";return ar(t)?"positive":n()}function sf(e){const t=e.orientation||(e.dependentAxis?"left":"bottom");return{top:!1,bottom:!1,left:!0,right:!0}[t]}function lf(e){return e.tickValues!==void 0&&zd(e.tickValues)}function BG(e){const{tickValues:t}=e,n=dr(e),r=e.stringMap&&e.stringMap[n],i=t&&!ar(t)?c=>c:void 0;if(!r)return lf(e)?(c,u)=>t[u]:i;const o=r&&D_(r),l=["",...fs(Object.values(r),c=>c).map(c=>o[c]),""];return c=>l[c]}function RG(e){const t=dr(e),n=e.stringMap&&e.stringMap[t],r=Array.isArray(e.categories)?e.categories:e.categories&&e.categories[t],i=r&&kV(r)?r.map(a=>n[a]):void 0,o=n&&Object.values(n);return i&&i.length!==0?i:o}function ep(e){const{tickValues:t,tickFormat:n}=e;if((t==null?void 0:t.length)===0)return[];const r=dr(e),i=e.stringMap&&e.stringMap[r],o=()=>{if(!(!n||!Array.isArray(n)))return zd(n)?n.map((c,u)=>u):n};let a=t;i&&(a=RG(e)),t&&zd(t)&&(a=i?t.map(c=>i[c]):a0(1,t.length+1));const s=a?oa(a):o(),l=c=>{const u=[],d=e.domain&&e.domain[r]||e.domain;if(c)return c.forEach((f,h)=>{Array.isArray(d)?f>=Mn(d)&&f<=sr(d)&&u.push({value:f,index:h}):u.push({value:f,index:h})}),u};return Array.isArray(s)&&s.length?l(s):void 0}function SC(e,t){const{tickFormat:n}=e,r=dr(e),i=e.stringMap&&e.stringMap[r];if(n){if(n&&Array.isArray(n)){const o=ep(e),a=o==null?void 0:o.map(l=>l.index),s=n.filter((l,c)=>a==null?void 0:a.includes(c));return(l,c)=>s[c]}else if(n&&Se(n))return i?(a,s,l)=>{const c=D_(i),u=l.map(d=>c[d]);return e.tickFormat(c[a],s,u)}:n}else{const o=BG(e),a=t.tickFormat&&Se(t.tickFormat)?t.tickFormat():s=>s;return o||a}return o=>o}function CC(e,t){if(!t||!Array.isArray(e)||e.length<=t)return e;const n=Math.floor(e.length/t);return e.filter((r,i)=>i%n===0)}function wC(e,t,n){n===void 0&&(n=!1);const{tickCount:r}=e,i=ep(e);if((i==null?void 0:i.length)===0)return[""];const o=i?i.map(a=>a.value):void 0;if(o)return CC(o,r);if(t.ticks&&Se(t.ticks)){const a=r||5,s=t.ticks(a),l=Array.isArray(s)&&s.length?s:t.domain(),c=CC(l,r);if(n){const u=c.filter(d=>d!==0);return u.length?u:c}return c}return t.domain()}function zG(e,t){const{polar:n,startAngle:r=0,endAngle:i=360}=e,o=ep(e),a=o&&(o==null?void 0:o.length)!==0?o.map(b=>b.value):void 0;if(!Array.isArray(a))return;const s=fa(e,t),l=da(e,t),c=lf(e),u=a.map(b=>Number(b)),d=c?1:Mn(u),f=c?a.length:sr(u),p=Ai(s!==void 0?s:d,l!==void 0?l:f),y=n&&t==="x"&&Math.abs(r-i)===360?Q0(p,u):p;return sf(e)&&!n&&y.reverse(),y}function Cs(e,t){const n=dr(e);if(!(t&&t!==n))return Y0(zG)(e,n)}function EC(e,t){if(!e.axisValue)return;const n=t==="x"?"y":"x",r=Ll(e.scale)&&Se(e.scale[n])?e.scale[n]:void 0;if(!r)return;const i=t==="x"?"y":"x",o=Ll(e.stringMap)&&e.stringMap[i],a=o&&typeof e.axisValue=="string"?o[e.axisValue]:e.axisValue;return r(a)}function cf(e,t){if(!Ll(e.theme))return Bt(e,t,"axis");let n="axis";if(e.dependentAxis&&e.theme.dependentAxis?n="dependentAxis":!e.dependentAxis&&e.theme.independentAxis&&(n="independentAxis"),n==="axis")return Bt(e,t,"axis");const r=K({},e.theme[n],e.theme.axis),i=Object.assign({},e.theme,{axis:r});return Bt(Object.assign({},e,{theme:i}),t,"axis")}function OC(){return{onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}}}function kC(){return{onLoad:{duration:2e3,before:()=>({_y:0,_y1:0,_y0:0}),after:e=>({_y:e._y,_y1:e._y1,_y0:e._y0})},onExit:{duration:500,before:(e,t,n)=>{const r=i=>(t===0?n[t+1]:n[t-1])[i];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:(e,t,n)=>{const r=i=>(t===0?n[t+1]:n[t-1])[i];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}},after:e=>({_x:e._x,_y:e._y,_y1:e._y1,_y0:e._y0})}}}function VG(){return{onLoad:{duration:2e3,before:()=>({opacity:0}),after:e=>e},onExit:{duration:600,before:()=>({opacity:0})},onEnter:{duration:600,before:()=>({opacity:0}),after:e=>e}}}function TC(e){const t=v.useRef();return v.useEffect(()=>{t.current=e}),t.current}const UG={nodesShouldLoad:!1,nodesDoneLoad:!1,animating:!0},AC=function(e){e===void 0&&(e=UG);const[t,n]=v.useState(e),r=v.useCallback(s=>{n(l=>({...l,...s}))},[n]),i=v.useCallback((s,l,c)=>{if(!(s!=null&&s.animate))return l.props.animate;const u=()=>{let m=t&&t.childrenTransitions;return m=M_(m)?m[c]:m,K({childrenTransitions:m},t)};let d=s.animate&&s.animate.getTransitions;const f=u(),h=s.animate&&s.animate.parentState||f;if(!d){const m=N_(s,f,p=>r(p));d=p=>m(p,c)}return K({getTransitions:d,parentState:h},s.animate,l.props.animate)},[t,r]),o=v.useCallback((s,l)=>{if(s!=null&&s.animate)if(s.animate.parentState){const u=s.animate.parentState.nodesWillExit?s:null,d=K({oldProps:u,nextProps:l},s.animate.parentState);r(d)}else{const c=v.Children.toArray(s.children),u=v.Children.toArray(l.children),d=b=>{const x=S=>S.type&&S.type.continuous;return Array.isArray(b)?b.some(x):x(b)},f=!s.polar&&c.some(b=>{var x;return d(b)||((x=b==null?void 0:b.props)==null?void 0:x.children)&&d(b.props.children)}),{nodesWillExit:h,nodesWillEnter:m,childrenTransitions:p,nodesShouldEnter:y}=F_(c,u);r({nodesWillExit:h,nodesWillEnter:m,nodesShouldEnter:y,childrenTransitions:M_(p)?p[0]:p,oldProps:h?s:void 0,nextProps:l,continuous:f})}},[r]),a=v.useCallback(s=>t&&t.nodesWillExit&&t.oldProps||s,[t]);return{state:t,setState:r,getAnimationProps:i,setAnimationState:o,getProps:a}};function HG(e,t){t===void 0&&(t={});const n=t._y>=0?1:-1,r=e.style&&e.style.labels||{};return t.verticalAnchor||r.verticalAnchor?t.verticalAnchor||r.verticalAnchor:e.horizontal?"middle":n>=0?"end":"start"}function qG(e,t){t===void 0&&(t={});const{style:n,horizontal:r}=e,i=t._y>=0?1:-1,o=n&&n.labels||{};return t.verticalAnchor||o.verticalAnchor?t.verticalAnchor||o.verticalAnchor:r?i>=0?"start":"end":"middle"}function GG(e,t){t===void 0&&(t={});const n=e.style&&e.style.labels||{};return t.angle===void 0?n.angle:t.angle}function YG(e,t){t===void 0&&(t={});const{horizontal:n,style:r}=e,i=r.labels||{},o=ne(i.padding,e)||0,a=t._y<0?-1:1;return{x:n?a*o:0,y:n?0:-1*a*o}}function KG(e,t){if(e.polar)return{};const n=YG(e,t);return{dx:n.x,dy:n.y}}function ZG(e,t){const{polar:n}=e,{x:r,y:i}=gs(e,t);if(!n)return{x:r,y:i};const o=XG(e,t);return{x:r+o.x,y:i+o.y}}function XG(e,t){const{style:n}=e,r=mc(e,t),i=n.labels||{},o=ne(i.padding,e)||0,a=ft(r);return{x:o*Math.cos(a),y:-o*Math.sin(a)}}function tp(e){const{labelComponent:t,labelPlacement:n,polar:r}=e,i=r?"perpendicular":"vertical";return n||t.props&&t.props.labelPlacement||i}function JG(e){return e<45||e>315?"right":e>=45&&e<=135?"top":e>135&&e<225?"left":"bottom"}function uf(e,t,n){return t===void 0&&(t={}),t.label!==void 0?t.label:Array.isArray(e.labels)?e.labels[n]:e.labels}function np(e,t){const n=tp(e);return n==="perpendicular"||n==="vertical"&&(t===90||t===270)?"middle":t<=90||t>270?"start":"end"}function DC(e,t){const n=tp(e),r=JG(t);return n==="parallel"||r==="left"||r==="right"?"middle":r==="top"?"end":"start"}function rp(e,t){const{labelPlacement:n,datum:r}=e;if(!n||n==="vertical")return 0;const i=t!==void 0?t%360:mc(e,r),o=i>90&&i<180||i>270?1:-1;let a=0;return i===0||i===180?a=90:i>0&&i<180?a=90-i:i>180&&i<360&&(a=270-i),a+o*(n==="perpendicular"?0:90)}function mc(e,t){const{x:n}=o0(t);return _i(e.scale.x(n))%360}function ip(e,t){const{scale:n,data:r,style:i,horizontal:o,polar:a,width:s,height:l,theme:c,labelComponent:u,disableInlineStyles:d}=e,f=r[t],h=mc(e,f),m=a?np(e,h):qG(e,f),p=a?DC(e,h):HG(e,f),y=GG(e,f),b=uf(e,f,t),x=tp(e),{x:S,y:C}=ZG(e,f),{dx:_,dy:w}=KG(e,f),k={angle:y,data:r,datum:f,disableInlineStyles:d,horizontal:o,index:t,polar:a,scale:n,labelPlacement:x,text:b,textAnchor:m,verticalAnchor:p,x:S,y:C,dx:_,dy:w,width:s,height:l,style:i.labels};if(!Ld(u))return k;const A=c&&c.tooltip||{};return K({},k,ec(A,["style"]))}function je(e){return function(){return e}}const PC=Math.abs,gn=Math.atan2,Di=Math.cos,QG=Math.max,ws=Math.min,In=Math.sin,xt=Math.sqrt,pn=1e-12,vo=Math.PI,df=vo/2,bo=2*vo;function eY(e){return e>1?0:e<-1?vo:Math.acos(e)}function jC(e){return e>=1?df:e<=-1?-df:Math.asin(e)}const op=Math.PI,ap=2*op,ha=1e-6,tY=ap-ha;function MC(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function nY(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return MC;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}let rY=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?MC:nY(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,l=r-t,c=i-n,u=a-t,d=s-n,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>ha)if(!(Math.abs(d*l-c*u)>ha)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-a,m=i-s,p=l*l+c*c,y=h*h+m*m,b=Math.sqrt(p),x=Math.sqrt(f),S=o*Math.tan((op-Math.acos((p+f-y)/(2*b*x)))/2),C=S/x,_=S/b;Math.abs(C-1)>ha&&this._append`L${t+C*u},${n+C*d}`,this._append`A${o},${o},0,0,${+(d*h>u*m)},${this._x1=t+_*l},${this._y1=n+_*c}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),c=t+s,u=n+l,d=1^a,f=a?i-o:o-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>ha||Math.abs(this._y1-u)>ha)&&this._append`L${c},${u}`,r&&(f<0&&(f=f%ap+ap),f>tY?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:f>ha&&this._append`A${r},${r},0,${+(f>=op)},${d},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function gc(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new rY(t)}function iY(e){return e.innerRadius}function oY(e){return e.outerRadius}function aY(e){return e.startAngle}function sY(e){return e.endAngle}function lY(e){return e&&e.padAngle}function cY(e,t,n,r,i,o,a,s){var l=n-e,c=r-t,u=a-i,d=s-o,f=d*l-u*c;if(!(f*f<pn))return f=(u*(t-o)-d*(e-i))/f,[e+f*l,t+f*c]}function ff(e,t,n,r,i,o,a){var s=e-n,l=t-r,c=(a?o:-o)/xt(s*s+l*l),u=c*l,d=-c*s,f=e+u,h=t+d,m=n+u,p=r+d,y=(f+m)/2,b=(h+p)/2,x=m-f,S=p-h,C=x*x+S*S,_=i-o,w=f*p-m*h,k=(S<0?-1:1)*xt(QG(0,_*_*C-w*w)),A=(w*S-x*k)/C,j=(-w*x-S*k)/C,M=(w*S+x*k)/C,T=(-w*x+S*k)/C,P=A-y,D=j-b,I=M-y,$=T-b;return P*P+D*D>I*I+$*$&&(A=M,j=T),{cx:A,cy:j,x01:-u,y01:-d,x11:A*(i/_-1),y11:j*(i/_-1)}}function sp(){var e=iY,t=oY,n=je(0),r=null,i=aY,o=sY,a=lY,s=null,l=gc(c);function c(){var u,d,f=+e.apply(this,arguments),h=+t.apply(this,arguments),m=i.apply(this,arguments)-df,p=o.apply(this,arguments)-df,y=PC(p-m),b=p>m;if(s||(s=u=l()),h<f&&(d=h,h=f,f=d),!(h>pn))s.moveTo(0,0);else if(y>bo-pn)s.moveTo(h*Di(m),h*In(m)),s.arc(0,0,h,m,p,!b),f>pn&&(s.moveTo(f*Di(p),f*In(p)),s.arc(0,0,f,p,m,b));else{var x=m,S=p,C=m,_=p,w=y,k=y,A=a.apply(this,arguments)/2,j=A>pn&&(r?+r.apply(this,arguments):xt(f*f+h*h)),M=ws(PC(h-f)/2,+n.apply(this,arguments)),T=M,P=M,D,I;if(j>pn){var $=jC(j/f*In(A)),W=jC(j/h*In(A));(w-=$*2)>pn?($*=b?1:-1,C+=$,_-=$):(w=0,C=_=(m+p)/2),(k-=W*2)>pn?(W*=b?1:-1,x+=W,S-=W):(k=0,x=S=(m+p)/2)}var B=h*Di(x),U=h*In(x),V=f*Di(_),F=f*In(_);if(M>pn){var H=h*Di(S),X=h*In(S),J=f*Di(C),Q=f*In(C),ee;if(y<vo)if(ee=cY(B,U,J,Q,H,X,V,F)){var ie=B-ee[0],ue=U-ee[1],he=H-ee[0],Z=X-ee[1],re=1/In(eY((ie*he+ue*Z)/(xt(ie*ie+ue*ue)*xt(he*he+Z*Z)))/2),pe=xt(ee[0]*ee[0]+ee[1]*ee[1]);T=ws(M,(f-pe)/(re-1)),P=ws(M,(h-pe)/(re+1))}else T=P=0}k>pn?P>pn?(D=ff(J,Q,B,U,h,P,b),I=ff(H,X,V,F,h,P,b),s.moveTo(D.cx+D.x01,D.cy+D.y01),P<M?s.arc(D.cx,D.cy,P,gn(D.y01,D.x01),gn(I.y01,I.x01),!b):(s.arc(D.cx,D.cy,P,gn(D.y01,D.x01),gn(D.y11,D.x11),!b),s.arc(0,0,h,gn(D.cy+D.y11,D.cx+D.x11),gn(I.cy+I.y11,I.cx+I.x11),!b),s.arc(I.cx,I.cy,P,gn(I.y11,I.x11),gn(I.y01,I.x01),!b))):(s.moveTo(B,U),s.arc(0,0,h,x,S,!b)):s.moveTo(B,U),!(f>pn)||!(w>pn)?s.lineTo(V,F):T>pn?(D=ff(V,F,H,X,f,-T,b),I=ff(B,U,J,Q,f,-T,b),s.lineTo(D.cx+D.x01,D.cy+D.y01),T<M?s.arc(D.cx,D.cy,T,gn(D.y01,D.x01),gn(I.y01,I.x01),!b):(s.arc(D.cx,D.cy,T,gn(D.y01,D.x01),gn(D.y11,D.x11),!b),s.arc(0,0,f,gn(D.cy+D.y11,D.cx+D.x11),gn(I.cy+I.y11,I.cx+I.x11),b),s.arc(I.cx,I.cy,T,gn(I.y11,I.x11),gn(I.y01,I.x01),!b))):s.arc(0,0,f,_,C,b)}if(s.closePath(),u)return s=null,u+""||null}return c.centroid=function(){var u=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-vo/2;return[Di(d)*u,In(d)*u]},c.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:je(+u),c):e},c.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:je(+u),c):t},c.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:je(+u),c):n},c.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:je(+u),c):r},c.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:je(+u),c):i},c.endAngle=function(u){return arguments.length?(o=typeof u=="function"?u:je(+u),c):o},c.padAngle=function(u){return arguments.length?(a=typeof u=="function"?u:je(+u),c):a},c.context=function(u){return arguments.length?(s=u??null,c):s},c}var uY=Array.prototype.slice;function hf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function IC(e){this._context=e}IC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function pc(e){return new IC(e)}function lp(e){return e[0]}function cp(e){return e[1]}function mf(e,t){var n=je(!0),r=null,i=pc,o=null,a=gc(s);e=typeof e=="function"?e:e===void 0?lp:je(e),t=typeof t=="function"?t:t===void 0?cp:je(t);function s(l){var c,u=(l=hf(l)).length,d,f=!1,h;for(r==null&&(o=i(h=a())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(d,c,l),+t(d,c,l));if(h)return o=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:je(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:je(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:je(!!l),s):n},s.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),s):r},s}function gf(e,t,n){var r=null,i=je(!0),o=null,a=pc,s=null,l=gc(c);e=typeof e=="function"?e:e===void 0?lp:je(+e),t=typeof t=="function"?t:je(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?cp:je(+n);function c(d){var f,h,m,p=(d=hf(d)).length,y,b=!1,x,S=new Array(p),C=new Array(p);for(o==null&&(s=a(x=l())),f=0;f<=p;++f){if(!(f<p&&i(y=d[f],f,d))===b)if(b=!b)h=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=f-1;m>=h;--m)s.point(S[m],C[m]);s.lineEnd(),s.areaEnd()}b&&(S[f]=+e(y,f,d),C[f]=+t(y,f,d),s.point(r?+r(y,f,d):S[f],n?+n(y,f,d):C[f]))}if(x)return s=null,x+""||null}function u(){return mf().defined(i).curve(a).context(o)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:je(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:je(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:je(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:je(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:je(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:je(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:je(!!d),c):i},c.curve=function(d){return arguments.length?(a=d,o!=null&&(s=a(o)),c):a},c.context=function(d){return arguments.length?(d==null?o=s=null:s=a(o=d),c):o},c}function dY(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function fY(e){return e}function $C(){var e=fY,t=dY,n=null,r=je(0),i=je(bo),o=je(0);function a(s){var l,c=(s=hf(s)).length,u,d,f=0,h=new Array(c),m=new Array(c),p=+r.apply(this,arguments),y=Math.min(bo,Math.max(-bo,i.apply(this,arguments)-p)),b,x=Math.min(Math.abs(y)/c,o.apply(this,arguments)),S=x*(y<0?-1:1),C;for(l=0;l<c;++l)(C=m[h[l]=l]=+e(s[l],l,s))>0&&(f+=C);for(t!=null?h.sort(function(_,w){return t(m[_],m[w])}):n!=null&&h.sort(function(_,w){return n(s[_],s[w])}),l=0,d=f?(y-c*S)/f:0;l<c;++l,p=b)u=h[l],C=m[u],b=p+(C>0?C*d:0)+S,m[u]={data:s[u],index:l,value:C,startAngle:p,endAngle:b,padAngle:x};return m}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:je(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:je(+s),a):r},a.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:je(+s),a):i},a.padAngle=function(s){return arguments.length?(o=typeof s=="function"?s:je(+s),a):o},a}var LC=up(pc);function FC(e){this._curve=e}FC.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function up(e){function t(n){return new FC(e(n))}return t._curve=e,t}function yc(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(n){return arguments.length?t(up(n)):t()._curve},e}function dp(){return yc(mf().curve(LC))}function fp(){var e=gf().curve(LC),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return yc(n())},delete e.lineX0,e.lineEndAngle=function(){return yc(r())},delete e.lineX1,e.lineInnerRadius=function(){return yc(i())},delete e.lineY0,e.lineOuterRadius=function(){return yc(o())},delete e.lineY1,e.curve=function(a){return arguments.length?t(up(a)):t()._curve},e}function vc(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}class NC{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}class hY{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,n){if(t=+t,n=+n,this._point===0)this._point=1;else{const r=vc(this._x0,this._y0),i=vc(this._x0,this._y0=(this._y0+n)/2),o=vc(t,this._y0),a=vc(t,n);this._context.moveTo(...r),this._context.bezierCurveTo(...i,...o,...a)}this._x0=t,this._y0=n}}function WC(e){return new NC(e,!0)}function BC(e){return new NC(e,!1)}function mY(e){return new hY(e)}function gY(e){return e.source}function pY(e){return e.target}function pf(e){let t=gY,n=pY,r=lp,i=cp,o=null,a=null,s=gc(l);function l(){let c;const u=uY.call(arguments),d=t.apply(this,u),f=n.apply(this,u);if(o==null&&(a=e(c=s())),a.lineStart(),u[0]=d,a.point(+r.apply(this,u),+i.apply(this,u)),u[0]=f,a.point(+r.apply(this,u),+i.apply(this,u)),a.lineEnd(),c)return a=null,c+""||null}return l.source=function(c){return arguments.length?(t=c,l):t},l.target=function(c){return arguments.length?(n=c,l):n},l.x=function(c){return arguments.length?(r=typeof c=="function"?c:je(+c),l):r},l.y=function(c){return arguments.length?(i=typeof c=="function"?c:je(+c),l):i},l.context=function(c){return arguments.length?(c==null?o=a=null:a=e(o=c),l):o},l}function yY(){return pf(WC)}function vY(){return pf(BC)}function bY(){const e=pf(mY);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}const xY=xt(3),RC={draw(e,t){const n=xt(t+ws(t/28,.75))*.59436,r=n/2,i=r*xY;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-i,-r),e.lineTo(i,r),e.moveTo(-i,r),e.lineTo(i,-r)}},yf={draw(e,t){const n=xt(t/vo);e.moveTo(n,0),e.arc(0,0,n,0,bo)}},zC={draw(e,t){const n=xt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},VC=xt(1/3),_Y=VC*2,UC={draw(e,t){const n=xt(t/_Y),r=n*VC;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},HC={draw(e,t){const n=xt(t)*.62625;e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},qC={draw(e,t){const n=xt(t-ws(t/7,2))*.87559;e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},GC={draw(e,t){const n=xt(t),r=-n/2;e.rect(r,r,n,n)}},YC={draw(e,t){const n=xt(t)*.4431;e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}},SY=.8908130915292852,KC=In(vo/10)/In(7*vo/10),CY=In(bo/10)*KC,wY=-Di(bo/10)*KC,ZC={draw(e,t){const n=xt(t*SY),r=CY*n,i=wY*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=bo*o/5,s=Di(a),l=In(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*i,l*r+s*i)}e.closePath()}},hp=xt(3),XC={draw(e,t){const n=-xt(t/(hp*3));e.moveTo(0,n*2),e.lineTo(-hp*n,-n),e.lineTo(hp*n,-n),e.closePath()}},EY=xt(3),JC={draw(e,t){const n=xt(t)*.6824,r=n/2,i=n*EY/2;e.moveTo(0,-n),e.lineTo(i,r),e.lineTo(-i,r),e.closePath()}},fr=-.5,hr=xt(3)/2,mp=1/xt(12),OY=(mp/2+1)*3,QC={draw(e,t){const n=xt(t/OY),r=n/2,i=n*mp,o=r,a=n*mp+n,s=-o,l=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,l),e.lineTo(fr*r-hr*i,hr*r+fr*i),e.lineTo(fr*o-hr*a,hr*o+fr*a),e.lineTo(fr*s-hr*l,hr*s+fr*l),e.lineTo(fr*r+hr*i,fr*i-hr*r),e.lineTo(fr*o+hr*a,fr*a-hr*o),e.lineTo(fr*s+hr*l,fr*l-hr*s),e.closePath()}},gp={draw(e,t){const n=xt(t-ws(t/6,1.7))*.6189;e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}},ew=[yf,zC,UC,GC,ZC,XC,QC],kY=[yf,qC,gp,JC,RC,YC,HC];function TY(e,t){let n=null,r=gc(i);e=typeof e=="function"?e:je(e||yf),t=typeof t=="function"?t:je(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:je(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:je(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function xo(){}function vf(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function bf(e){this._context=e}bf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:vf(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:vf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function AY(e){return new bf(e)}function tw(e){this._context=e}tw.prototype={areaStart:xo,areaEnd:xo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:vf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function DY(e){return new tw(e)}function nw(e){this._context=e}nw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:vf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function PY(e){return new nw(e)}function rw(e,t){this._basis=new bf(e),this._beta=t}rw.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],o=e[n]-r,a=t[n]-i,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*o),this._beta*t[s]+(1-this._beta)*(i+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const jY=function e(t){function n(r){return t===1?new bf(r):new rw(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function xf(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function pp(e,t){this._context=e,this._k=(1-t)/6}pp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:xf(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:xf(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const MY=function e(t){function n(r){return new pp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function yp(e,t){this._context=e,this._k=(1-t)/6}yp.prototype={areaStart:xo,areaEnd:xo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:xf(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const IY=function e(t){function n(r){return new yp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function vp(e,t){this._context=e,this._k=(1-t)/6}vp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:xf(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const $Y=function e(t){function n(r){return new vp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function bp(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>pn){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>pn){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function iw(e,t){this._context=e,this._alpha=t}iw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:bp(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const LY=function e(t){function n(r){return t?new iw(r,t):new pp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function ow(e,t){this._context=e,this._alpha=t}ow.prototype={areaStart:xo,areaEnd:xo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:bp(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const FY=function e(t){function n(r){return t?new ow(r,t):new yp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function aw(e,t){this._context=e,this._alpha=t}aw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:bp(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const NY=function e(t){function n(r){return t?new aw(r,t):new vp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function sw(e){this._context=e}sw.prototype={areaStart:xo,areaEnd:xo,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function WY(e){return new sw(e)}function lw(e){return e<0?-1:1}function cw(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(lw(o)+lw(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function uw(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function xp(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function _f(e){this._context=e}_f.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:xp(this,this._t0,uw(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,xp(this,uw(this,n=cw(this,e,t)),n);break;default:xp(this,this._t0,n=cw(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function dw(e){this._context=new fw(e)}(dw.prototype=Object.create(_f.prototype)).point=function(e,t){_f.prototype.point.call(this,t,e)};function fw(e){this._context=e}fw.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function BY(e){return new _f(e)}function RY(e){return new dw(e)}function hw(e){this._context=e}hw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=mw(e),i=mw(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function mw(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function zY(e){return new hw(e)}function Sf(e,t){this._context=e,this._t=t}Sf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function VY(e){return new Sf(e,.5)}function UY(e){return new Sf(e,0)}function HY(e){return new Sf(e,1)}function Es(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Os(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function qY(e,t){return e[t]}function GY(e){const t=[];return t.key=e,t}function YY(){var e=je([]),t=Os,n=Es,r=qY;function i(o){var a=Array.from(e.apply(this,arguments),GY),s,l=a.length,c=-1,u;for(const d of o)for(s=0,++c;s<l;++s)(a[s][c]=[0,+r(d,a[s].key,c,o)]).data=d;for(s=0,u=hf(t(a));s<l;++s)a[u[s]].index=s;return n(a,u),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:je(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:je(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?Os:typeof o=="function"?o:je(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??Es,i):n},i}function KY(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}Es(e,t)}}function ZY(e,t){if((l=e.length)>0)for(var n,r=0,i,o,a,s,l,c=e[t[0]].length;r<c;++r)for(a=s=0,n=0;n<l;++n)(o=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=a,i[1]=a+=o):o<0?(i[1]=s,i[0]=s+=o):(i[0]=0,i[1]=o)}function XY(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,s=0;a<i;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}Es(e,t)}}function JY(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var s=0,l=0,c=0;s<a;++s){for(var u=e[t[s]],d=u[r][1]||0,f=u[r-1][1]||0,h=(d-f)/2,m=0;m<s;++m){var p=e[t[m]],y=p[r][1]||0,b=p[r-1][1]||0;h+=y-b}l+=d,c+=h*d}i[r-1][1]+=i[r-1][0]=n,l&&(n-=c/l)}i[r-1][1]+=i[r-1][0]=n,Es(e,t)}}function gw(e){var t=e.map(QY);return Os(e).sort(function(n,r){return t[n]-t[r]})}function QY(e){for(var t=-1,n=0,r=e.length,i,o=-1/0;++t<r;)(i=+e[t][1])>o&&(o=i,n=t);return n}function pw(e){var t=e.map(yw);return Os(e).sort(function(n,r){return t[n]-t[r]})}function yw(e){for(var t=0,n=-1,r=e.length,i;++n<r;)(i=+e[n][1])&&(t+=i);return t}function eK(e){return pw(e).reverse()}function tK(e){var t=e.length,n,r,i=e.map(yw),o=gw(e),a=0,s=0,l=[],c=[];for(n=0;n<t;++n)r=o[n],a<s?(a+=i[r],l.push(r)):(s+=i[r],c.push(r));return c.reverse().concat(l)}function nK(e){return Os(e).reverse()}const rK=Object.freeze(Object.defineProperty({__proto__:null,arc:sp,area:gf,areaRadial:fp,curveBasis:AY,curveBasisClosed:DY,curveBasisOpen:PY,curveBumpX:WC,curveBumpY:BC,curveBundle:jY,curveCardinal:MY,curveCardinalClosed:IY,curveCardinalOpen:$Y,curveCatmullRom:LY,curveCatmullRomClosed:FY,curveCatmullRomOpen:NY,curveLinear:pc,curveLinearClosed:WY,curveMonotoneX:BY,curveMonotoneY:RY,curveNatural:zY,curveStep:VY,curveStepAfter:HY,curveStepBefore:UY,line:mf,lineRadial:dp,link:pf,linkHorizontal:yY,linkRadial:bY,linkVertical:vY,pie:$C,pointRadial:vc,radialArea:fp,radialLine:dp,stack:YY,stackOffsetDiverging:ZY,stackOffsetExpand:KY,stackOffsetNone:Es,stackOffsetSilhouette:XY,stackOffsetWiggle:JY,stackOrderAppearance:gw,stackOrderAscending:pw,stackOrderDescending:eK,stackOrderInsideOut:tK,stackOrderNone:Os,stackOrderReverse:nK,symbol:TY,symbolAsterisk:RC,symbolCircle:yf,symbolCross:zC,symbolDiamond:UC,symbolDiamond2:HC,symbolPlus:qC,symbolSquare:GC,symbolSquare2:YC,symbolStar:ZC,symbolTimes:gp,symbolTriangle:XC,symbolTriangle2:JC,symbolWye:QC,symbolX:gp,symbols:ew,symbolsFill:ew,symbolsStroke:kY},Symbol.toStringTag,{value:"Module"})),vw=e=>{const t=e._y1!==void 0?e._y1:e._y;return t!=null&&e._y0!==null},bw=e=>t=>e.x(t._x1!==void 0?t._x1:t._x),_p=e=>t=>e.y(t._y1!==void 0?t._y1:t._y),iK=e=>t=>-1*e.x(t._x1!==void 0?t._x1:t._x)+Math.PI/2,xw=e=>`curve${(n=>n&&n[0].toUpperCase()+n.slice(1))(e)}`,oK=e=>`${xw(e)}Closed`,Cf=e=>{const{interpolation:t}=e;if(typeof t=="function")return t;if(typeof t=="string"){const{polar:n,openCurve:r=!n}=e,i=r?xw(t):oK(t);return rK[i]}return pc},_w=e=>{const{polar:t,scale:n,horizontal:r}=e;return t?dp().defined(vw).curve(Cf(e)).angle(iK(n)).radius(_p(n)):mf().defined(vw).curve(Cf(e)).x(r?_p(n):bw(n)).y(r?bw(n):_p(n))};function Sp(e){process.env.NODE_ENV!=="production"&&console&&console.warn&&console.warn(e)}function aK(e,t,n){return`M ${e}, ${t}
|
158
|
+
*/var Ex;function mI(){return Ex||(Ex=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function S(R){return typeof R=="string"||typeof R=="function"||R===r||R===c||R===o||R===i||R===d||R===f||typeof R=="object"&&R!==null&&(R.$$typeof===m||R.$$typeof===h||R.$$typeof===a||R.$$typeof===s||R.$$typeof===u||R.$$typeof===y||R.$$typeof===b||R.$$typeof===x||R.$$typeof===p)}function C(R){if(typeof R=="object"&&R!==null){var Ae=R.$$typeof;switch(Ae){case t:var ke=R.type;switch(ke){case l:case c:case r:case o:case i:case d:return ke;default:var Ge=ke&&ke.$$typeof;switch(Ge){case s:case u:case m:case h:case a:return Ge;default:return Ae}}case n:return Ae}}}var _=l,w=c,k=s,A=a,j=t,M=u,T=r,P=m,D=h,I=n,$=o,W=i,B=d,U=!1;function V(R){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),F(R)||C(R)===l}function F(R){return C(R)===c}function H(R){return C(R)===s}function X(R){return C(R)===a}function J(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function Q(R){return C(R)===u}function ee(R){return C(R)===r}function ie(R){return C(R)===m}function ue(R){return C(R)===h}function he(R){return C(R)===n}function Z(R){return C(R)===o}function re(R){return C(R)===i}function pe(R){return C(R)===d}tt.AsyncMode=_,tt.ConcurrentMode=w,tt.ContextConsumer=k,tt.ContextProvider=A,tt.Element=j,tt.ForwardRef=M,tt.Fragment=T,tt.Lazy=P,tt.Memo=D,tt.Portal=I,tt.Profiler=$,tt.StrictMode=W,tt.Suspense=B,tt.isAsyncMode=V,tt.isConcurrentMode=F,tt.isContextConsumer=H,tt.isContextProvider=X,tt.isElement=J,tt.isForwardRef=Q,tt.isFragment=ee,tt.isLazy=ie,tt.isMemo=ue,tt.isPortal=he,tt.isProfiler=Z,tt.isStrictMode=re,tt.isSuspense=pe,tt.isValidElementType=S,tt.typeOf=C}()),tt}process.env.NODE_ENV==="production"?yg.exports=hI():yg.exports=mI();var vg=yg.exports,bg=vg,gI={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},pI={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},yI={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ox={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},xg={};xg[bg.ForwardRef]=yI,xg[bg.Memo]=Ox;function kx(e){return bg.isMemo(e)?Ox:xg[e.$$typeof]||gI}var vI=Object.defineProperty,bI=Object.getOwnPropertyNames,Tx=Object.getOwnPropertySymbols,xI=Object.getOwnPropertyDescriptor,_I=Object.getPrototypeOf,Ax=Object.prototype;function Dx(e,t,n){if(typeof t!="string"){if(Ax){var r=_I(t);r&&r!==Ax&&Dx(e,r,n)}var i=bI(t);Tx&&(i=i.concat(Tx(t)));for(var o=kx(e),a=kx(t),s=0;s<i.length;++s){var l=i[s];if(!pI[l]&&!(n&&n[l])&&!(a&&a[l])&&!(o&&o[l])){var c=xI(t,l);try{vI(e,l,c)}catch{}}}}return e}var SI=Dx;const an=Ne(SI),Px={name:"--pf-v5-chart-legend--Margin",value:16,var:"var(--pf-v5-chart-legend--Margin, 16)"};var CI=Object.prototype;function wI(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||CI;return e===n}var ld=wI;function EI(e,t){return function(n){return e(t(n))}}var jx=EI,OI=jx,kI=OI(Object.keys,Object),TI=kI,AI=ld,DI=TI,PI=Object.prototype,jI=PI.hasOwnProperty;function MI(e){if(!AI(e))return DI(e);var t=[];for(var n in Object(e))jI.call(e,n)&&n!="constructor"&&t.push(n);return t}var Mx=MI,II=typeof Xs=="object"&&Xs&&Xs.Object===Object&&Xs,Ix=II,$I=Ix,LI=typeof self=="object"&&self&&self.Object===Object&&self,FI=$I||LI||Function("return this")(),jr=FI,NI=jr,WI=NI.Symbol,Qa=WI,$x=Qa,Lx=Object.prototype,BI=Lx.hasOwnProperty,RI=Lx.toString,$l=$x?$x.toStringTag:void 0;function zI(e){var t=BI.call(e,$l),n=e[$l];try{e[$l]=void 0;var r=!0}catch{}var i=RI.call(e);return r&&(t?e[$l]=n:delete e[$l]),i}var VI=zI,UI=Object.prototype,HI=UI.toString;function qI(e){return HI.call(e)}var GI=qI,Fx=Qa,YI=VI,KI=GI,ZI="[object Null]",XI="[object Undefined]",Nx=Fx?Fx.toStringTag:void 0;function JI(e){return e==null?e===void 0?XI:ZI:Nx&&Nx in Object(e)?YI(e):KI(e)}var fo=JI;function QI(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Pn=QI;const Ll=Ne(Pn);var e$=fo,t$=Pn,n$="[object AsyncFunction]",r$="[object Function]",i$="[object GeneratorFunction]",o$="[object Proxy]";function a$(e){if(!t$(e))return!1;var t=e$(e);return t==r$||t==i$||t==n$||t==o$}var _g=a$,s$=jr,l$=s$["__core-js_shared__"],c$=l$,Sg=c$,Wx=function(){var e=/[^.]+$/.exec(Sg&&Sg.keys&&Sg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function u$(e){return!!Wx&&Wx in e}var d$=u$,f$=Function.prototype,h$=f$.toString;function m$(e){if(e!=null){try{return h$.call(e)}catch{}try{return e+""}catch{}}return""}var Bx=m$,g$=_g,p$=d$,y$=Pn,v$=Bx,b$=/[\\^$.*+?()[\]{}|]/g,x$=/^\[object .+?Constructor\]$/,_$=Function.prototype,S$=Object.prototype,C$=_$.toString,w$=S$.hasOwnProperty,E$=RegExp("^"+C$.call(w$).replace(b$,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function O$(e){if(!y$(e)||p$(e))return!1;var t=g$(e)?E$:x$;return t.test(v$(e))}var k$=O$;function T$(e,t){return e==null?void 0:e[t]}var A$=T$,D$=k$,P$=A$;function j$(e,t){var n=P$(e,t);return D$(n)?n:void 0}var Jo=j$,M$=Jo,I$=jr,$$=M$(I$,"DataView"),L$=$$,F$=Jo,N$=jr,W$=F$(N$,"Map"),Cg=W$,B$=Jo,R$=jr,z$=B$(R$,"Promise"),V$=z$,U$=Jo,H$=jr,q$=U$(H$,"Set"),Rx=q$,G$=Jo,Y$=jr,K$=G$(Y$,"WeakMap"),Z$=K$,wg=L$,Eg=Cg,Og=V$,kg=Rx,Tg=Z$,zx=fo,es=Bx,Vx="[object Map]",X$="[object Object]",Ux="[object Promise]",Hx="[object Set]",qx="[object WeakMap]",Gx="[object DataView]",J$=es(wg),Q$=es(Eg),eL=es(Og),tL=es(kg),nL=es(Tg),Qo=zx;(wg&&Qo(new wg(new ArrayBuffer(1)))!=Gx||Eg&&Qo(new Eg)!=Vx||Og&&Qo(Og.resolve())!=Ux||kg&&Qo(new kg)!=Hx||Tg&&Qo(new Tg)!=qx)&&(Qo=function(e){var t=zx(e),n=t==X$?e.constructor:void 0,r=n?es(n):"";if(r)switch(r){case J$:return Gx;case Q$:return Vx;case eL:return Ux;case tL:return Hx;case nL:return qx}return t});var ts=Qo;function rL(e){return e!=null&&typeof e=="object"}var Mr=rL,iL=fo,oL=Mr,aL="[object Arguments]";function sL(e){return oL(e)&&iL(e)==aL}var lL=sL,Yx=lL,cL=Mr,Kx=Object.prototype,uL=Kx.hasOwnProperty,dL=Kx.propertyIsEnumerable,fL=Yx(function(){return arguments}())?Yx:function(e){return cL(e)&&uL.call(e,"callee")&&!dL.call(e,"callee")},Fl=fL,hL=Array.isArray,_n=hL,mL=9007199254740991;function gL(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=mL}var Ag=gL,pL=_g,yL=Ag;function vL(e){return e!=null&&yL(e.length)&&!pL(e)}var ea=vL,cd={exports:{}};function bL(){return!1}var xL=bL;cd.exports,function(e,t){var n=jr,r=xL,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c}(cd,cd.exports);var Nl=cd.exports,_L=fo,SL=Ag,CL=Mr,wL="[object Arguments]",EL="[object Array]",OL="[object Boolean]",kL="[object Date]",TL="[object Error]",AL="[object Function]",DL="[object Map]",PL="[object Number]",jL="[object Object]",ML="[object RegExp]",IL="[object Set]",$L="[object String]",LL="[object WeakMap]",FL="[object ArrayBuffer]",NL="[object DataView]",WL="[object Float32Array]",BL="[object Float64Array]",RL="[object Int8Array]",zL="[object Int16Array]",VL="[object Int32Array]",UL="[object Uint8Array]",HL="[object Uint8ClampedArray]",qL="[object Uint16Array]",GL="[object Uint32Array]",vt={};vt[WL]=vt[BL]=vt[RL]=vt[zL]=vt[VL]=vt[UL]=vt[HL]=vt[qL]=vt[GL]=!0,vt[wL]=vt[EL]=vt[FL]=vt[OL]=vt[NL]=vt[kL]=vt[TL]=vt[AL]=vt[DL]=vt[PL]=vt[jL]=vt[ML]=vt[IL]=vt[$L]=vt[LL]=!1;function YL(e){return CL(e)&&SL(e.length)&&!!vt[_L(e)]}var KL=YL;function ZL(e){return function(t){return e(t)}}var ns=ZL,ud={exports:{}};ud.exports,function(e,t){var n=Ix,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s}(ud,ud.exports);var Wl=ud.exports,XL=KL,JL=ns,Zx=Wl,Xx=Zx&&Zx.isTypedArray,QL=Xx?JL(Xx):XL,dd=QL,e4=Mx,t4=ts,n4=Fl,r4=_n,i4=ea,o4=Nl,a4=ld,s4=dd,l4="[object Map]",c4="[object Set]",u4=Object.prototype,d4=u4.hasOwnProperty;function f4(e){if(e==null)return!0;if(i4(e)&&(r4(e)||typeof e=="string"||typeof e.splice=="function"||o4(e)||s4(e)||n4(e)))return!e.length;var t=t4(e);if(t==l4||t==c4)return!e.size;if(a4(e))return!e4(e).length;for(var n in e)if(d4.call(e,n))return!1;return!0}var h4=f4;const bt=Ne(h4);function m4(e){return e}var rs=m4;const is=Ne(rs);function g4(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var p4=g4,y4=p4,Jx=Math.max;function v4(e,t,n){return t=Jx(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Jx(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),y4(e,this,s)}}var Qx=v4;function b4(e){return function(){return e}}var x4=b4,_4=Jo,S4=function(){try{var e=_4(Object,"defineProperty");return e({},"",{}),e}catch{}}(),e2=S4,C4=x4,t2=e2,w4=rs,E4=t2?function(e,t){return t2(e,"toString",{configurable:!0,enumerable:!1,value:C4(t),writable:!0})}:w4,O4=E4,k4=800,T4=16,A4=Date.now;function D4(e){var t=0,n=0;return function(){var r=A4(),i=T4-(r-n);if(n=r,i>0){if(++t>=k4)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var P4=D4,j4=O4,M4=P4,I4=M4(j4),n2=I4,$4=rs,L4=Qx,F4=n2;function N4(e,t){return F4(L4(e,t,$4),e+"")}var Dg=N4;function W4(e,t){return e===t||e!==e&&t!==t}var ta=W4,B4=9007199254740991,R4=/^(?:0|[1-9]\d*)$/;function z4(e,t){var n=typeof e;return t=t??B4,!!t&&(n=="number"||n!="symbol"&&R4.test(e))&&e>-1&&e%1==0&&e<t}var fd=z4,V4=ta,U4=ea,H4=fd,q4=Pn;function G4(e,t,n){if(!q4(n))return!1;var r=typeof t;return(r=="number"?U4(n)&&H4(t,n.length):r=="string"&&t in n)?V4(n[t],e):!1}var Pg=G4;function Y4(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var K4=Y4,Z4=K4,X4=Fl,J4=_n,Q4=Nl,eF=fd,tF=dd,nF=Object.prototype,rF=nF.hasOwnProperty;function iF(e,t){var n=J4(e),r=!n&&X4(e),i=!n&&!r&&Q4(e),o=!n&&!r&&!i&&tF(e),a=n||r||i||o,s=a?Z4(e.length,String):[],l=s.length;for(var c in e)(t||rF.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||eF(c,l)))&&s.push(c);return s}var r2=iF;function oF(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var aF=oF,sF=Pn,lF=ld,cF=aF,uF=Object.prototype,dF=uF.hasOwnProperty;function fF(e){if(!sF(e))return cF(e);var t=lF(e),n=[];for(var r in e)r=="constructor"&&(t||!dF.call(e,r))||n.push(r);return n}var hF=fF,mF=r2,gF=hF,pF=ea;function yF(e){return pF(e)?mF(e,!0):gF(e)}var os=yF,vF=Dg,bF=ta,xF=Pg,_F=os,i2=Object.prototype,SF=i2.hasOwnProperty,CF=vF(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&xF(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],a=_F(o),s=-1,l=a.length;++s<l;){var c=a[s],u=e[c];(u===void 0||bF(u,i2[c])&&!SF.call(e,c))&&(e[c]=o[c])}return e}),wF=CF;const K=Ne(wF),EF=e=>+e;function OF(e){return e*e}function kF(e){return e*(2-e)}function o2(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function TF(e){return e*e*e}function AF(e){return--e*e*e+1}function a2(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var jg=3,DF=function e(t){t=+t;function n(r){return Math.pow(r,t)}return n.exponent=e,n}(jg),PF=function e(t){t=+t;function n(r){return 1-Math.pow(1-r,t)}return n.exponent=e,n}(jg),s2=function e(t){t=+t;function n(r){return((r*=2)<=1?Math.pow(r,t):2-Math.pow(2-r,t))/2}return n.exponent=e,n}(jg),l2=Math.PI,c2=l2/2;function jF(e){return+e==1?1:1-Math.cos(e*c2)}function MF(e){return Math.sin(e*c2)}function u2(e){return(1-Math.cos(l2*e))/2}function ho(e){return(Math.pow(2,-10*e)-.0009765625)*1.0009775171065494}function IF(e){return ho(1-+e)}function $F(e){return 1-ho(e)}function d2(e){return((e*=2)<=1?ho(1-e):2-ho(e-1))/2}function LF(e){return 1-Math.sqrt(1-e*e)}function FF(e){return Math.sqrt(1- --e*e)}function f2(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var Mg=4/11,NF=6/11,WF=8/11,BF=3/4,RF=9/11,zF=10/11,VF=15/16,UF=21/22,HF=63/64,hd=1/Mg/Mg;function qF(e){return 1-Bl(1-e)}function Bl(e){return(e=+e)<Mg?hd*e*e:e<WF?hd*(e-=NF)*e+BF:e<zF?hd*(e-=RF)*e+VF:hd*(e-=UF)*e+HF}function GF(e){return((e*=2)<=1?1-Bl(1-e):Bl(e-1)+1)/2}var Ig=1.70158,YF=function e(t){t=+t;function n(r){return(r=+r)*r*(t*(r-1)+r)}return n.overshoot=e,n}(Ig),KF=function e(t){t=+t;function n(r){return--r*r*((r+1)*t+r)+1}return n.overshoot=e,n}(Ig),h2=function e(t){t=+t;function n(r){return((r*=2)<1?r*r*((t+1)*r-t):(r-=2)*r*((t+1)*r+t)+2)/2}return n.overshoot=e,n}(Ig),as=2*Math.PI,$g=1,Lg=.3,ZF=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=as);function i(o){return t*ho(- --o)*Math.sin((r-o)/n)}return i.amplitude=function(o){return e(o,n*as)},i.period=function(o){return e(t,o)},i}($g,Lg),m2=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=as);function i(o){return 1-t*ho(o=+o)*Math.sin((o+r)/n)}return i.amplitude=function(o){return e(o,n*as)},i.period=function(o){return e(t,o)},i}($g,Lg),XF=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=as);function i(o){return((o=o*2-1)<0?t*ho(-o)*Math.sin((r-o)/n):2-t*ho(o)*Math.sin((r+o)/n))/2}return i.amplitude=function(o){return e(o,n*as)},i.period=function(o){return e(t,o)},i}($g,Lg);const JF=Object.freeze(Object.defineProperty({__proto__:null,easeBack:h2,easeBackIn:YF,easeBackInOut:h2,easeBackOut:KF,easeBounce:Bl,easeBounceIn:qF,easeBounceInOut:GF,easeBounceOut:Bl,easeCircle:f2,easeCircleIn:LF,easeCircleInOut:f2,easeCircleOut:FF,easeCubic:a2,easeCubicIn:TF,easeCubicInOut:a2,easeCubicOut:AF,easeElastic:m2,easeElasticIn:ZF,easeElasticInOut:XF,easeElasticOut:m2,easeExp:d2,easeExpIn:IF,easeExpInOut:d2,easeExpOut:$F,easeLinear:EF,easePoly:s2,easePolyIn:DF,easePolyInOut:s2,easePolyOut:PF,easeQuad:o2,easeQuadIn:OF,easeQuadInOut:o2,easeQuadOut:kF,easeSin:u2,easeSinIn:jF,easeSinInOut:u2,easeSinOut:MF},Symbol.toStringTag,{value:"Module"}));function QF(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var md=QF,e8=fo,t8=Mr,n8="[object Symbol]";function r8(e){return typeof e=="symbol"||t8(e)&&e8(e)==n8}var Rl=r8,i8=_n,o8=Rl,a8=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s8=/^\w*$/;function l8(e,t){if(i8(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||o8(e)?!0:s8.test(e)||!a8.test(e)||t!=null&&e in Object(t)}var Fg=l8,c8=Jo,u8=c8(Object,"create"),gd=u8,g2=gd;function d8(){this.__data__=g2?g2(null):{},this.size=0}var f8=d8;function h8(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var m8=h8,g8=gd,p8="__lodash_hash_undefined__",y8=Object.prototype,v8=y8.hasOwnProperty;function b8(e){var t=this.__data__;if(g8){var n=t[e];return n===p8?void 0:n}return v8.call(t,e)?t[e]:void 0}var x8=b8,_8=gd,S8=Object.prototype,C8=S8.hasOwnProperty;function w8(e){var t=this.__data__;return _8?t[e]!==void 0:C8.call(t,e)}var E8=w8,O8=gd,k8="__lodash_hash_undefined__";function T8(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=O8&&t===void 0?k8:t,this}var A8=T8,D8=f8,P8=m8,j8=x8,M8=E8,I8=A8;function ss(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ss.prototype.clear=D8,ss.prototype.delete=P8,ss.prototype.get=j8,ss.prototype.has=M8,ss.prototype.set=I8;var $8=ss;function L8(){this.__data__=[],this.size=0}var F8=L8,N8=ta;function W8(e,t){for(var n=e.length;n--;)if(N8(e[n][0],t))return n;return-1}var pd=W8,B8=pd,R8=Array.prototype,z8=R8.splice;function V8(e){var t=this.__data__,n=B8(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():z8.call(t,n,1),--this.size,!0}var U8=V8,H8=pd;function q8(e){var t=this.__data__,n=H8(t,e);return n<0?void 0:t[n][1]}var G8=q8,Y8=pd;function K8(e){return Y8(this.__data__,e)>-1}var Z8=K8,X8=pd;function J8(e,t){var n=this.__data__,r=X8(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Q8=J8,eN=F8,tN=U8,nN=G8,rN=Z8,iN=Q8;function ls(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ls.prototype.clear=eN,ls.prototype.delete=tN,ls.prototype.get=nN,ls.prototype.has=rN,ls.prototype.set=iN;var yd=ls,p2=$8,oN=yd,aN=Cg;function sN(){this.size=0,this.__data__={hash:new p2,map:new(aN||oN),string:new p2}}var lN=sN;function cN(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var uN=cN,dN=uN;function fN(e,t){var n=e.__data__;return dN(t)?n[typeof t=="string"?"string":"hash"]:n.map}var vd=fN,hN=vd;function mN(e){var t=hN(this,e).delete(e);return this.size-=t?1:0,t}var gN=mN,pN=vd;function yN(e){return pN(this,e).get(e)}var vN=yN,bN=vd;function xN(e){return bN(this,e).has(e)}var _N=xN,SN=vd;function CN(e,t){var n=SN(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var wN=CN,EN=lN,ON=gN,kN=vN,TN=_N,AN=wN;function cs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}cs.prototype.clear=EN,cs.prototype.delete=ON,cs.prototype.get=kN,cs.prototype.has=TN,cs.prototype.set=AN;var Ng=cs,y2=Ng,DN="Expected a function";function Wg(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(DN);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Wg.Cache||y2),n}Wg.Cache=y2;var v2=Wg;const b2=Ne(v2);var PN=v2,jN=500;function MN(e){var t=PN(e,function(r){return n.size===jN&&n.clear(),r}),n=t.cache;return t}var IN=MN,$N=IN,LN=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,FN=/\\(\\)?/g,NN=$N(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(LN,function(n,r,i,o){t.push(i?o.replace(FN,"$1"):r||n)}),t}),WN=NN,x2=Qa,BN=md,RN=_n,zN=Rl,VN=1/0,_2=x2?x2.prototype:void 0,S2=_2?_2.toString:void 0;function C2(e){if(typeof e=="string")return e;if(RN(e))return BN(e,C2)+"";if(zN(e))return S2?S2.call(e):"";var t=e+"";return t=="0"&&1/e==-VN?"-0":t}var UN=C2,HN=UN;function qN(e){return e==null?"":HN(e)}var w2=qN,GN=_n,YN=Fg,KN=WN,ZN=w2;function XN(e,t){return GN(e)?e:YN(e,t)?[e]:KN(ZN(e))}var bd=XN,JN=Rl,QN=1/0;function e9(e){if(typeof e=="string"||JN(e))return e;var t=e+"";return t=="0"&&1/e==-QN?"-0":t}var zl=e9,t9=bd,n9=zl;function r9(e,t){t=t9(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[n9(t[n++])];return n&&n==r?e:void 0}var xd=r9,i9=yd;function o9(){this.__data__=new i9,this.size=0}var a9=o9;function s9(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var l9=s9;function c9(e){return this.__data__.get(e)}var u9=c9;function d9(e){return this.__data__.has(e)}var f9=d9,h9=yd,m9=Cg,g9=Ng,p9=200;function y9(e,t){var n=this.__data__;if(n instanceof h9){var r=n.__data__;if(!m9||r.length<p9-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new g9(r)}return n.set(e,t),this.size=n.size,this}var v9=y9,b9=yd,x9=a9,_9=l9,S9=u9,C9=f9,w9=v9;function us(e){var t=this.__data__=new b9(e);this.size=t.size}us.prototype.clear=x9,us.prototype.delete=_9,us.prototype.get=S9,us.prototype.has=C9,us.prototype.set=w9;var _d=us,E9="__lodash_hash_undefined__";function O9(e){return this.__data__.set(e,E9),this}var k9=O9;function T9(e){return this.__data__.has(e)}var A9=T9,D9=Ng,P9=k9,j9=A9;function Sd(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new D9;++t<n;)this.add(e[t])}Sd.prototype.add=Sd.prototype.push=P9,Sd.prototype.has=j9;var E2=Sd;function M9(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var I9=M9;function $9(e,t){return e.has(t)}var O2=$9,L9=E2,F9=I9,N9=O2,W9=1,B9=2;function R9(e,t,n,r,i,o){var a=n&W9,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,h=n&B9?new L9:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var m=e[d],p=t[d];if(r)var y=a?r(p,m,d,t,e,o):r(m,p,d,e,t,o);if(y!==void 0){if(y)continue;f=!1;break}if(h){if(!F9(t,function(b,x){if(!N9(h,x)&&(m===b||i(m,b,n,r,o)))return h.push(x)})){f=!1;break}}else if(!(m===p||i(m,p,n,r,o))){f=!1;break}}return o.delete(e),o.delete(t),f}var k2=R9,z9=jr,V9=z9.Uint8Array,T2=V9;function U9(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var A2=U9;function H9(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Bg=H9,D2=Qa,P2=T2,q9=ta,G9=k2,Y9=A2,K9=Bg,Z9=1,X9=2,J9="[object Boolean]",Q9="[object Date]",eW="[object Error]",tW="[object Map]",nW="[object Number]",rW="[object RegExp]",iW="[object Set]",oW="[object String]",aW="[object Symbol]",sW="[object ArrayBuffer]",lW="[object DataView]",j2=D2?D2.prototype:void 0,Rg=j2?j2.valueOf:void 0;function cW(e,t,n,r,i,o,a){switch(n){case lW:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case sW:return!(e.byteLength!=t.byteLength||!o(new P2(e),new P2(t)));case J9:case Q9:case nW:return q9(+e,+t);case eW:return e.name==t.name&&e.message==t.message;case rW:case oW:return e==t+"";case tW:var s=Y9;case iW:var l=r&Z9;if(s||(s=K9),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=X9,a.set(e,t);var u=G9(s(e),s(t),r,i,o,a);return a.delete(e),u;case aW:if(Rg)return Rg.call(e)==Rg.call(t)}return!1}var uW=cW;function dW(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var zg=dW,fW=zg,hW=_n;function mW(e,t,n){var r=t(e);return hW(e)?r:fW(r,n(e))}var M2=mW;function gW(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}var pW=gW;function yW(){return[]}var I2=yW,vW=pW,bW=I2,xW=Object.prototype,_W=xW.propertyIsEnumerable,$2=Object.getOwnPropertySymbols,SW=$2?function(e){return e==null?[]:(e=Object(e),vW($2(e),function(t){return _W.call(e,t)}))}:bW,Vg=SW,CW=r2,wW=Mx,EW=ea;function OW(e){return EW(e)?CW(e):wW(e)}var ds=OW,kW=M2,TW=Vg,AW=ds;function DW(e){return kW(e,AW,TW)}var L2=DW,F2=L2,PW=1,jW=Object.prototype,MW=jW.hasOwnProperty;function IW(e,t,n,r,i,o){var a=n&PW,s=F2(e),l=s.length,c=F2(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var f=s[d];if(!(a?f in t:MW.call(t,f)))return!1}var h=o.get(e),m=o.get(t);if(h&&m)return h==t&&m==e;var p=!0;o.set(e,t),o.set(t,e);for(var y=a;++d<l;){f=s[d];var b=e[f],x=t[f];if(r)var S=a?r(x,b,f,t,e,o):r(b,x,f,e,t,o);if(!(S===void 0?b===x||i(b,x,n,r,o):S)){p=!1;break}y||(y=f=="constructor")}if(p&&!y){var C=e.constructor,_=t.constructor;C!=_&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof _=="function"&&_ instanceof _)&&(p=!1)}return o.delete(e),o.delete(t),p}var $W=IW,Ug=_d,LW=k2,FW=uW,NW=$W,N2=ts,W2=_n,B2=Nl,WW=dd,BW=1,R2="[object Arguments]",z2="[object Array]",Cd="[object Object]",RW=Object.prototype,V2=RW.hasOwnProperty;function zW(e,t,n,r,i,o){var a=W2(e),s=W2(t),l=a?z2:N2(e),c=s?z2:N2(t);l=l==R2?Cd:l,c=c==R2?Cd:c;var u=l==Cd,d=c==Cd,f=l==c;if(f&&B2(e)){if(!B2(t))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new Ug),a||WW(e)?LW(e,t,n,r,i,o):FW(e,t,l,n,r,i,o);if(!(n&BW)){var h=u&&V2.call(e,"__wrapped__"),m=d&&V2.call(t,"__wrapped__");if(h||m){var p=h?e.value():e,y=m?t.value():t;return o||(o=new Ug),i(p,y,n,r,o)}}return f?(o||(o=new Ug),NW(e,t,n,r,i,o)):!1}var VW=zW,UW=VW,U2=Mr;function H2(e,t,n,r,i){return e===t?!0:e==null||t==null||!U2(e)&&!U2(t)?e!==e&&t!==t:UW(e,t,n,r,H2,i)}var Hg=H2,HW=_d,qW=Hg,GW=1,YW=2;function KW(e,t,n,r){var i=n.length,o=i,a=!r;if(e==null)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var l=s[0],c=e[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return!1}else{var d=new HW;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?qW(u,c,GW|YW,r,d):f))return!1}}return!0}var ZW=KW,XW=Pn;function JW(e){return e===e&&!XW(e)}var q2=JW,QW=q2,eB=ds;function tB(e){for(var t=eB(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,QW(i)]}return t}var nB=tB;function rB(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var G2=rB,iB=ZW,oB=nB,aB=G2;function sB(e){var t=oB(e);return t.length==1&&t[0][2]?aB(t[0][0],t[0][1]):function(n){return n===e||iB(n,e,t)}}var lB=sB,cB=xd;function uB(e,t,n){var r=e==null?void 0:cB(e,t);return r===void 0?n:r}var dB=uB;function fB(e,t){return e!=null&&t in Object(e)}var hB=fB,mB=bd,gB=Fl,pB=_n,yB=fd,vB=Ag,bB=zl;function xB(e,t,n){t=mB(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=bB(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&vB(i)&&yB(a,i)&&(pB(e)||gB(e)))}var _B=xB,SB=hB,CB=_B;function wB(e,t){return e!=null&&CB(e,t,SB)}var Y2=wB,EB=Hg,OB=dB,kB=Y2,TB=Fg,AB=q2,DB=G2,PB=zl,jB=1,MB=2;function IB(e,t){return TB(e)&&AB(t)?DB(PB(e),t):function(n){var r=OB(n,e);return r===void 0&&r===t?kB(n,e):EB(t,r,jB|MB)}}var $B=IB;function LB(e){return function(t){return t==null?void 0:t[e]}}var FB=LB,NB=xd;function WB(e){return function(t){return NB(t,e)}}var BB=WB,RB=FB,zB=BB,VB=Fg,UB=zl;function HB(e){return VB(e)?RB(UB(e)):zB(e)}var K2=HB;const Z2=Ne(K2);var qB=lB,GB=$B,YB=rs,KB=_n,ZB=K2;function XB(e){return typeof e=="function"?e:e==null?YB:typeof e=="object"?KB(e)?GB(e[0],e[1]):qB(e):ZB(e)}var Vl=XB;function JB(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var QB=JB,eR=QB,tR=eR(),X2=tR,nR=X2,rR=ds;function iR(e,t){return e&&nR(e,t,rR)}var J2=iR,oR=ea;function aR(e,t){return function(n,r){if(n==null)return n;if(!oR(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}var sR=aR,lR=J2,cR=sR,uR=cR(lR),Q2=uR,dR=Q2,fR=ea;function hR(e,t){var n=-1,r=fR(e)?Array(e.length):[];return dR(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var mR=hR;function gR(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var pR=gR,e_=Rl;function yR(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=e_(e),a=t!==void 0,s=t===null,l=t===t,c=e_(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}var vR=yR,bR=vR;function xR(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=bR(i[r],o[r]);if(l){if(r>=s)return l;var c=n[r];return l*(c=="desc"?-1:1)}}return e.index-t.index}var _R=xR,qg=md,SR=xd,CR=Vl,wR=mR,ER=pR,OR=ns,kR=_R,TR=rs,AR=_n;function DR(e,t,n){t.length?t=qg(t,function(o){return AR(o)?function(a){return SR(a,o.length===1?o[0]:o)}:o}):t=[TR];var r=-1;t=qg(t,OR(CR));var i=wR(e,function(o,a,s){var l=qg(t,function(c){return c(o)});return{criteria:l,index:++r,value:o}});return ER(i,function(o,a){return kR(o,a,n)})}var PR=DR,jR=PR,t_=_n;function MR(e,t,n,r){return e==null?[]:(t_(t)||(t=t==null?[]:[t]),n=r?void 0:n,t_(n)||(n=n==null?[]:[n]),jR(e,t,n))}var IR=MR;const fs=Ne(IR);var $R=jx,LR=$R(Object.getPrototypeOf,Object),Gg=LR,FR=fo,NR=Gg,WR=Mr,BR="[object Object]",RR=Function.prototype,zR=Object.prototype,n_=RR.toString,VR=zR.hasOwnProperty,UR=n_.call(Object);function HR(e){if(!WR(e)||FR(e)!=BR)return!1;var t=NR(e);if(t===null)return!0;var n=VR.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&n_.call(n)==UR}var r_=HR;const It=Ne(r_);function Yg(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function i_(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ul(){}var Hl=.7,wd=1/Hl,hs="\\s*([+-]?\\d+)\\s*",ql="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Zr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qR=/^#([0-9a-f]{3,8})$/,GR=new RegExp(`^rgb\\(${hs},${hs},${hs}\\)$`),YR=new RegExp(`^rgb\\(${Zr},${Zr},${Zr}\\)$`),KR=new RegExp(`^rgba\\(${hs},${hs},${hs},${ql}\\)$`),ZR=new RegExp(`^rgba\\(${Zr},${Zr},${Zr},${ql}\\)$`),XR=new RegExp(`^hsl\\(${ql},${Zr},${Zr}\\)$`),JR=new RegExp(`^hsla\\(${ql},${Zr},${Zr},${ql}\\)$`),o_={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Yg(Ul,Gl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:a_,formatHex:a_,formatHex8:QR,formatHsl:ez,formatRgb:s_,toString:s_});function a_(){return this.rgb().formatHex()}function QR(){return this.rgb().formatHex8()}function ez(){return f_(this).formatHsl()}function s_(){return this.rgb().formatRgb()}function Gl(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=qR.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?l_(t):n===3?new jn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ed(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ed(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=GR.exec(e))?new jn(t[1],t[2],t[3],1):(t=YR.exec(e))?new jn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=KR.exec(e))?Ed(t[1],t[2],t[3],t[4]):(t=ZR.exec(e))?Ed(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=XR.exec(e))?d_(t[1],t[2]/100,t[3]/100,1):(t=JR.exec(e))?d_(t[1],t[2]/100,t[3]/100,t[4]):o_.hasOwnProperty(e)?l_(o_[e]):e==="transparent"?new jn(NaN,NaN,NaN,0):null}function l_(e){return new jn(e>>16&255,e>>8&255,e&255,1)}function Ed(e,t,n,r){return r<=0&&(e=t=n=NaN),new jn(e,t,n,r)}function tz(e){return e instanceof Ul||(e=Gl(e)),e?(e=e.rgb(),new jn(e.r,e.g,e.b,e.opacity)):new jn}function Kg(e,t,n,r){return arguments.length===1?tz(e):new jn(e,t,n,r??1)}function jn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Yg(jn,Kg,i_(Ul,{brighter(e){return e=e==null?wd:Math.pow(wd,e),new jn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Hl:Math.pow(Hl,e),new jn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new jn(na(this.r),na(this.g),na(this.b),Od(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:c_,formatHex:c_,formatHex8:nz,formatRgb:u_,toString:u_}));function c_(){return`#${ra(this.r)}${ra(this.g)}${ra(this.b)}`}function nz(){return`#${ra(this.r)}${ra(this.g)}${ra(this.b)}${ra((isNaN(this.opacity)?1:this.opacity)*255)}`}function u_(){const e=Od(this.opacity);return`${e===1?"rgb(":"rgba("}${na(this.r)}, ${na(this.g)}, ${na(this.b)}${e===1?")":`, ${e})`}`}function Od(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function na(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ra(e){return e=na(e),(e<16?"0":"")+e.toString(16)}function d_(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ir(e,t,n,r)}function f_(e){if(e instanceof Ir)return new Ir(e.h,e.s,e.l,e.opacity);if(e instanceof Ul||(e=Gl(e)),!e)return new Ir;if(e instanceof Ir)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Ir(a,s,l,e.opacity)}function rz(e,t,n,r){return arguments.length===1?f_(e):new Ir(e,t,n,r??1)}function Ir(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Yg(Ir,rz,i_(Ul,{brighter(e){return e=e==null?wd:Math.pow(wd,e),new Ir(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Hl:Math.pow(Hl,e),new Ir(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new jn(Zg(e>=240?e-240:e+120,i,r),Zg(e,i,r),Zg(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Ir(h_(this.h),kd(this.s),kd(this.l),Od(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Od(this.opacity);return`${e===1?"hsl(":"hsla("}${h_(this.h)}, ${kd(this.s)*100}%, ${kd(this.l)*100}%${e===1?")":`, ${e})`}`}}));function h_(e){return e=(e||0)%360,e<0?e+360:e}function kd(e){return Math.max(0,Math.min(1,e||0))}function Zg(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Xg=e=>()=>e;function iz(e,t){return function(n){return e+n*t}}function oz(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function az(e){return(e=+e)==1?m_:function(t,n){return n-t?oz(t,n,e):Xg(isNaN(t)?n:t)}}function m_(e,t){var n=t-e;return n?iz(e,n):Xg(isNaN(e)?t:e)}const g_=function e(t){var n=az(t);function r(i,o){var a=n((i=Kg(i)).r,(o=Kg(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),c=m_(i.opacity,o.opacity);return function(u){return i.r=a(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function sz(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function lz(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function cz(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=Xr(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function uz(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Td(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function dz(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Xr(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Jg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qg=new RegExp(Jg.source,"g");function fz(e){return function(){return e}}function hz(e){return function(t){return e(t)+""}}function mz(e,t){var n=Jg.lastIndex=Qg.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=Jg.exec(e))&&(i=Qg.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:Td(r,i)})),n=Qg.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?hz(l[0].x):fz(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}function Xr(e,t){var n=typeof t,r;return t==null||n==="boolean"?Xg(t):(n==="number"?Td:n==="string"?(r=Gl(t))?(t=r,g_):mz:t instanceof Gl?g_:t instanceof Date?uz:lz(t)?sz:Array.isArray(t)?cz:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?dz:Td)(e,t)}function e0(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function gz(e,t){t===void 0&&(t=e,e=Xr);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return o[s](a-s)}}const Ad=function(e){if(e!==null)switch(typeof e){case"undefined":return!1;case"number":return!isNaN(e)&&e!==Number.POSITIVE_INFINITY&&e!==Number.NEGATIVE_INFINITY;case"string":return!0;case"boolean":return!1;case"object":return e instanceof Date||Array.isArray(e)||It(e);case"function":return!0}return!1},p_=function(e,t,n){return n===void 0&&(n=0),function(r){return r<n?e:t}},y_=function(e,t){return function(n){return n>=1?t:function(){const r=typeof e=="function"?e.apply(this,arguments):e,i=typeof t=="function"?t.apply(this,arguments):t;return Xr(r,i)(n)}}},v_=function(e,t){const n=(c,u)=>c===u||!Ad(c)||!Ad(u)?p_(c,u):typeof c=="function"||typeof u=="function"?y_(c,u):typeof c=="object"&&It(c)||typeof u=="object"&&It(u)?v_(c,u):Xr(c,u),r=c=>Array.isArray(c)?fs(c,"key"):c,i={},o={};let a=e,s=t,l;(a===null||typeof a!="object")&&(a={}),(s===null||typeof s!="object")&&(s={});for(l in s)l in a?i[l]=n(r(a[l]),r(s[l])):o[l]=s[l];return function(c){for(l in i)o[l]=i[l](c);return o}},pz=function(e,t){const n=r=>typeof r=="string"?r.replace(/,/g,""):r;return Xr(n(e),n(t))},yz=function(e,t){return e===t||!Ad(e)||!Ad(t)?p_(e,t):typeof e=="function"||typeof t=="function"?y_(e,t):It(e)||It(t)?v_(e,t):typeof e=="string"||typeof t=="string"?pz(e,t):Xr(e,t)};var ms=0,Yl=0,Kl=0,b_=1e3,Dd,Zl,Pd=0,ia=0,jd=0,Xl=typeof performance=="object"&&performance.now?performance:Date,x_=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Md(){return ia||(x_(vz),ia=Xl.now()+jd)}function vz(){ia=0}function t0(){this._call=this._time=this._next=null}t0.prototype=__.prototype={constructor:t0,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Md():+n)+(t==null?0:+t),!this._next&&Zl!==this&&(Zl?Zl._next=this:Dd=this,Zl=this),this._call=e,this._time=n,n0()},stop:function(){this._call&&(this._call=null,this._time=1/0,n0())}};function __(e,t,n){var r=new t0;return r.restart(e,t,n),r}function bz(){Md(),++ms;for(var e=Dd,t;e;)(t=ia-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ms}function S_(){ia=(Pd=Xl.now())+jd,ms=Yl=0;try{bz()}finally{ms=0,_z(),ia=0}}function xz(){var e=Xl.now(),t=e-Pd;t>b_&&(jd-=t,Pd=e)}function _z(){for(var e,t=Dd,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Dd=n);Zl=e,n0(r)}function n0(e){if(!ms){Yl&&(Yl=clearTimeout(Yl));var t=e-ia;t>24?(e<1/0&&(Yl=setTimeout(S_,e-Xl.now()-jd)),Kl&&(Kl=clearInterval(Kl))):(Kl||(Pd=Xl.now(),Kl=setInterval(xz,b_)),ms=1,x_(S_))}}class C_{constructor(){ae(this,"loop",()=>{this.subscribers.forEach(t=>{t.callback(Md()-t.startTime,t.duration)})});this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}bypassAnimation(){this.shouldAnimate=!1}resumeAnimation(){this.shouldAnimate=!0}start(){this.timer||(this.timer=__(this.loop))}stop(){this.timer&&(this.timer.stop(),this.timer=null)}subscribe(t,n){const r=this.subscribers.push({startTime:Md(),callback:t,duration:this.shouldAnimate?n:0});return this.activeSubscriptions++,this.start(),r}unsubscribe(t){t!==null&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),this.activeSubscriptions===0&&this.stop()}}const Id=v.createContext({transitionTimer:new C_,animationTimer:new C_});Id.displayName="TimerContext";const Sz=e=>`ease${e.charAt(0).toUpperCase()+e.slice(1)}`,Cz=1e3,wz=e=>{let{duration:t=Cz,easing:n="quadInOut",delay:r=0,data:i,children:o,onEnd:a}=e;const[s,l]=v.useState({data:Array.isArray(i)?i[0]:i,animationInfo:{progress:0,animating:!1}}),c=v.useContext(Id).animationTimer,u=v.useRef(Array.isArray(i)?i.slice(1):[]),d=v.useRef(null),f=v.useRef(void 0),h=JF[Sz(n)];v.useEffect(()=>(u.current.length&&m(),()=>{f.current?c.unsubscribe(f.current):c.stop()}),[]),v.useEffect(()=>{d.current&&s.animationInfo&&s.animationInfo.progress<1?l({data:d.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}):(c.unsubscribe(f.current),u.current=Array.isArray(i)?i:[i],m())},[i]);const m=()=>{if(u.current.length){const y=u.current[0];d.current=yz(s.data,y),r?setTimeout(()=>{f.current=c.subscribe(p,t)},r):f.current=c.subscribe(p,t)}else a&&a()},p=y=>{if(!d.current)return;const b=t?y/t:1;if(b>=1){l({data:d.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),f.current&&c.unsubscribe(f.current),u.current.shift(),m();return}l({data:d.current(h(b)),animationInfo:{progress:b,animating:b<1}})};return o(s.data,s.animationInfo)};var Ez=w2,Oz=0;function kz(e){var t=++Oz;return Ez(e)+t}var Tz=kz;const Jl=Ne(Tz);function r0(){return r0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r0.apply(this,arguments)}const Az=v.forwardRef((e,t)=>v.createElement("svg",r0({ref:t},e)));var w_=e2;function Dz(e,t,n){t=="__proto__"&&w_?w_(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var $d=Dz,Pz=$d,jz=ta,Mz=Object.prototype,Iz=Mz.hasOwnProperty;function $z(e,t,n){var r=e[t];(!(Iz.call(e,t)&&jz(r,n))||n===void 0&&!(t in e))&&Pz(e,t,n)}var i0=$z,Lz=i0,Fz=bd,Nz=fd,E_=Pn,Wz=zl;function Bz(e,t,n,r){if(!E_(e))return e;t=Fz(t,e);for(var i=-1,o=t.length,a=o-1,s=e;s!=null&&++i<o;){var l=Wz(t[i]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=a){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=E_(u)?u:Nz(t[i+1])?[]:{})}Lz(s,l,c),s=s[l]}return e}var Rz=Bz,zz=xd,Vz=Rz,Uz=bd;function Hz(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=zz(e,a);n(s,a)&&Vz(o,Uz(a,e),s)}return o}var O_=Hz,qz=O_,Gz=Y2;function Yz(e,t){return qz(e,t,function(n,r){return Gz(e,r)})}var Kz=Yz,k_=Qa,Zz=Fl,Xz=_n,T_=k_?k_.isConcatSpreadable:void 0;function Jz(e){return Xz(e)||Zz(e)||!!(T_&&e&&e[T_])}var Qz=Jz,eV=zg,tV=Qz;function A_(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=tV),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?A_(s,t-1,n,r,i):eV(i,s):r||(i[i.length]=s)}return i}var nV=A_,rV=nV;function iV(e){var t=e==null?0:e.length;return t?rV(e,1):[]}var oV=iV,aV=oV,sV=Qx,lV=n2;function cV(e){return lV(sV(e,void 0,aV),e+"")}var uV=cV,dV=Kz,fV=uV,hV=fV(function(e,t){return e==null?{}:dV(e,t)}),mV=hV;const Ql=Ne(mV);function gV(e,t){const n=t!=="x",r=_t(e);return n?[e.height-r.bottom,r.top]:[r.left,e.width-r.right]}function pV(e,t){if(t==="x"){const n=ft(e.startAngle||0),r=ft(e.endAngle||360);return[n,r]}return[e.innerRadius||0,Jr(e)]}function D_(e){return Object.entries(e).reduce((t,n)=>(t[n[1]]=n[0],t),{})}function ec(e,t){t===void 0&&(t=[]);const n={};for(const r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o0(e){const t=h=>h!==void 0,{_x:n,_x1:r,_x0:i,_voronoiX:o,_y:a,_y1:s,_y0:l,_voronoiY:c}=e,u=t(r)?r:n,d=t(s)?s:a,f={x:t(o)?o:u,x0:t(i)?i:n,y:t(c)?c:d,y0:t(l)?l:a};return K({},f,e)}function gs(e,t){const{scale:n,polar:r,horizontal:i}=e,o=o0(t),a=e.origin||{x:0,y:0},s=i?n.y(o.y):n.x(o.x),l=i?n.y(o.y0):n.x(o.x0),c=i?n.x(o.x):n.y(o.y),u=i?n.x(o.x0):n.y(o.y0);return{x:r?c*Math.cos(s)+a.x:s,x0:r?u*Math.cos(l)+a.x:l,y:r?-c*Math.sin(s)+a.y:c,y0:r?-u*Math.sin(l)+a.x:u}}function _t(e,t){t===void 0&&(t="padding");const n=e[t],r=typeof n=="number"?n:0,i=typeof n=="object"?n:{};return{top:i.top||r,bottom:i.bottom||r,left:i.left||r,right:i.right||r}}function Ld(e){return(e&&e.type&&e.type.role)==="tooltip"}function Fd(e,t){const{theme:n={},labelComponent:r}=e,i=n[t]&&n[t].style||{};if(!Ld(r))return i;const o=n.tooltip&&n.tooltip.style||{},a=K({},o,i.labels);return K({},{labels:a},i)}function tc(e,t){const n="100%",r="100%";if(!e)return K({parent:{height:r,width:n}},t);const{data:i,labels:o,parent:a}=e,s=t&&t.parent||{},l=t&&t.labels||{},c=t&&t.data||{};return{parent:K({},a,s,{width:n,height:r}),labels:K({},o,l),data:K({},i,c)}}function ne(e,t){return Se(e)?e(t):e}function lt(e,t){return t.disableInlineStyles?{}:!e||!Object.keys(e).some(n=>Se(e[n]))?e:Object.keys(e).reduce((n,r)=>(n[r]=ne(e[r],t),n),{})}function ft(e){return typeof e=="number"?e*(Math.PI/180):e}function _i(e){return typeof e=="number"?e/(Math.PI/180):e}function Jr(e){const{left:t,right:n,top:r,bottom:i}=_t(e),{width:o,height:a}=e;return Math.min(o-t-n,a-r-i)/2}function nc(e){const{width:t,height:n}=e,{top:r,bottom:i,left:o,right:a}=_t(e),s=Math.min(t-o-a,n-r-i)/2,l=t/2+o-a,c=n/2+r-i;return{x:l+s>t?s+o-a:l,y:c+s>n?s+r-i:c}}function Wt(e,t){return e.range&&e.range[t]?e.range[t]:e.range&&Array.isArray(e.range)?e.range:e.polar?pV(e,t):gV(e,t)}function Si(e){return e==null}function Se(e){return typeof e=="function"}function Nd(e){return Se(e)?e:e==null?t=>t:Z2(e)}function Bt(e,t,n){const r=e.theme&&e.theme[n]?e.theme[n]:{},i=ec(r,["style"]),o=vV(e);return K(o===void 0?{}:{horizontal:o},e,i,t)}function yV(e,t){return t?e==="x"?"y":"x":e}function ps(e,t){if(e)return Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{})}function a0(e,t,n){const r=t?e:0;let i=t||e;i||(i=0);const o=i-r,a=Math.abs(o),s=o/a||1,l=n||1,c=Math.max(Math.ceil(a/l),0);return Array.from(Array(c),(u,d)=>r+d*s*l)}function mo(e,t,n,r,i){n===void 0&&(n={}),r===void 0&&(r=[]),i===void 0&&(i=(c,u)=>c.concat(u));const o=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],a=(c,u,d)=>c.reduce((f,h,m)=>{let p=f;const y=h.type&&h.type.role,b=h.props.name||`${y}-${u[m]}`;if(h.props&&h.props.children){const x=Object.assign({},h.props,Ql(n,o)),S=h.type&&h.type.role==="stack"&&Se(h.type.getChildren)?h.type.getChildren(x):v.Children.toArray(h.props.children).map(w=>{const k=Object.assign({},w.props,Ql(x,o));return v.cloneElement(w,k)}),C=S.map((w,k)=>`${b}-${k}`),_=a(S,C,h);p=i(p,_)}else{const x=t(h,b,d);x&&(p=i(p,x))}return p},r),s=e.filter(v.isValidElement),l=s.map((c,u)=>u);return a(s,l)}function vV(e){if(e.horizontal!==void 0||!e.children)return e.horizontal;const t=n=>n.reduce((r,i)=>{const o=i.props||{};return r||o.horizontal||!o.children?r||o.horizontal:t(v.Children.toArray(o.children))},!1);return t(v.Children.toArray(e.children))}const P_={startsWith:["data-","aria-"],exactMatch:[]},bV=e=>{let t=!1;return P_.startsWith.forEach(n=>{new RegExp(`\\b(${n})(\\w|-)+`,"g").test(e)&&(t=!0)}),t},xV=e=>P_.exactMatch.includes(e),_V=e=>!!(bV(e)||xV(e));function Wd(e,t){if(e==null)throw new Error(t)}const $r=e=>{const t={...e};return Object.fromEntries(Object.entries(t).filter(n=>{let[r]=n;return _V(r)}).map(n=>{let[r,i]=n;return[r,ne(i,e)]}))},Bd=(e,t)=>E.cloneElement(e,$r(t));var SV=typeof Element<"u",CV=typeof Map=="function",wV=typeof Set=="function",EV=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Rd(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Rd(e[r],t[r]))return!1;return!0}var o;if(CV&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!Rd(r.value[1],t.get(r.value[0])))return!1;return!0}if(wV&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(EV&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(SV&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Rd(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var OV=function(t,n){try{return Rd(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const qn=Ne(OV);function j_(e){return Array.isArray(e)&&e.length>0}function zd(e){return Array.isArray(e)&&e.some(t=>typeof t=="string")}function ar(e){return Array.isArray(e)&&e.some(t=>t instanceof Date)}function kV(e){return j_(e)&&e.every(t=>typeof t=="string")}function Vd(e,t){return e&&t?e.filter(n=>!t.includes(n)):[]}function M_(e){return j_(e)&&e.every(Array.isArray)}function TV(e){return e.filter(t=>t!==void 0)}function sr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=e.concat(n);return ar(i)?new Date(Math.max(...i)):Math.max(...i)}function Mn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=e.concat(n);return ar(i)?new Date(Math.min(...i)):Math.min(...i)}function I_(e,t){return(e.key||t).toString()}function $_(e){return e.reduce((t,n,r)=>{const i=I_(n,r);return t[i]=n,t},{})}function L_(e,t){let n=!1;const r=Object.keys(e).reduce((i,o)=>(o in t||(n=!0,i[o]=!0),i),{});return n&&r}function AV(e,t){const n=e&&$_(e),r=t&&$_(t);return{entering:n&&L_(r,n),exiting:r&&L_(n,r)}}function s0(e){return e.type&&e.type.getData?e.type.getData(e.props):e.props&&e.props.data||!1}function F_(e,t){let n=!1,r=!1;const i=(s,l)=>{if(!l||s.type!==l.type)return{};const{entering:c,exiting:u}=AV(s0(s),s0(l))||{};return n=n||!!u,r=r||!!c,{entering:c||!1,exiting:u||!1}},o=(s,l)=>s.map((c,u)=>c&&c.props&&c.props.children&&l[u]?o(v.Children.toArray(s[u].props.children),v.Children.toArray(l[u].props.children)):i(c,l[u])),a=o(v.Children.toArray(e),v.Children.toArray(t));return{nodesWillExit:n,nodesWillEnter:r,childrenTransitions:a,nodesShouldEnter:!1}}function DV(e,t){const n=e.onEnter&&e.onEnter.after?e.onEnter.after:is;return{data:t.map((r,i)=>Object.assign({},r,n(r,i,t)))}}function PV(e,t,n,r){const i=Object.assign({},e,{onEnd:r});if(i&&i.onLoad&&!i.onLoad.duration)return{animate:i,data:n};const o=i.onLoad&&i.onLoad.before?i.onLoad.before:is,a=n.map((s,l)=>Object.assign({},s,o(s,l,n)));return{animate:i,data:a,clipWidth:0}}function jV(e,t,n){const r=Object.assign({},e,{onEnd:n});let i=t;if(r&&r.onLoad&&!r.onLoad.duration)return{animate:e,data:t};const o=e.onLoad&&e.onLoad.after?e.onLoad.after:is;return i=t.map((a,s)=>Object.assign({},a,o(a,s,t))),{animate:r,data:i}}function MV(e,t,n,r,i){const o=e&&e.onExit,a=Object.assign({},e,o);let s=n;if(r){e.onEnd=i;const l=e.onExit&&e.onExit.before?e.onExit.before:is;s=n.map((c,u)=>{const d=(c.key||u).toString();return r[d]?Object.assign({},c,l(c,u,n)):c})}return{animate:a,data:s}}function IV(e,t,n,r,i){let o=e,a=n;if(r){o=Object.assign({},e,{onEnd:i});const s=e.onEnter&&e.onEnter.before?e.onEnter.before:is;a=n.map((l,c)=>{const u=(l.key||c).toString();return r[u]?Object.assign({},l,s(l,c,n)):l})}return{animate:o,data:a}}function $V(e,t,n,r){const i=e&&e.onEnter,o=Object.assign({},e,i);let a=t;if(n){o.onEnd=r;const s=o.onEnter&&o.onEnter.after?o.onEnter.after:is;a=t.map((l,c)=>{const u=I_(l,c);return n[u]?Object.assign({},l,s(l,c,t)):l})}return{animate:o,data:a}}function N_(e,t,n){const r=t&&t.nodesWillExit,i=t&&t.nodesWillEnter,o=t&&t.nodesShouldEnter,a=t&&t.nodesShouldLoad,s=t&&t.nodesDoneLoad,l=t&&t.childrenTransitions||[],c={enter:e.animate&&e.animate.onEnter&&e.animate.onEnter.duration,exit:e.animate&&e.animate.onExit&&e.animate.onExit.duration,load:e.animate&&e.animate.onLoad&&e.animate.onLoad.duration,move:e.animate&&e.animate.duration},u=(m,p,y)=>a?jV(y,p,()=>{n({nodesShouldLoad:!1,nodesDoneLoad:!0})}):PV(y,m,p,()=>{n({nodesDoneLoad:!0})}),d=(m,p,y,b)=>MV(b,p,y,m,()=>{n({nodesWillExit:!1})}),f=(m,p,y,b)=>o?$V(b,y,m,()=>{n({nodesWillEnter:!1})}):IV(b,p,y,m,()=>{n({nodesShouldEnter:!0})}),h=function(m,p){const y=m.props.animate;if(!m.type)return{};const b=m.props&&m.props.polar&&m.type.defaultPolarTransitions||m.type.defaultTransitions;if(b){const x=y[p]&&y[p].duration;return x!==void 0?x:b[p]&&b[p].duration}return{}};return function(p,y){const b=s0(p)||[],x=K({},e.animate,p.props.animate),S=p.props.polar&&p.type.defaultPolarTransitions||p.type.defaultTransitions;x.onExit=K({},x.onExit,S&&S.onExit),x.onEnter=K({},x.onEnter,S&&S.onEnter),x.onLoad=K({},x.onLoad,S&&S.onLoad);const C=l[y]||l[0];if(s){if(r){const _=C&&C.exiting,w=c.exit!==void 0?c.exit:h(p,"onExit");return d(_,p,b,Object.assign({},x,_?{duration:w}:{delay:w}))}else if(i){const _=C&&C.entering,w=c.enter!==void 0?c.enter:h(p,"onEnter"),k=c.move!==void 0?c.move:p.props.animate&&p.props.animate.duration;return f(_,p,b,Object.assign({},x,{duration:o&&_?w:k}))}else if(!t&&x&&x.onExit)return DV(x,b)}else{const w={duration:c.load!==void 0?c.load:h(p,"onLoad")};return u(p,b,Object.assign({},x,w))}return{animate:x,data:b}}}function l0(){return l0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l0.apply(this,arguments)}class c0 extends v.Component{constructor(t,n){super(t,n),this.state={nodesShouldLoad:!1,nodesDoneLoad:!1};const r=this.props.children,i=r.props.polar;this.continuous=!i&&r.type&&r.type.continuous===!0,this.timer=this.context.transitionTimer}componentDidMount(){this.setState({nodesShouldLoad:!0})}shouldComponentUpdate(t){return qn(this.props,t)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,t),()=>this.timer.resumeAnimation())),!0}componentWillUnmount(){this.timer.stop()}getTransitionState(t,n){const{animate:r}=t;if(r){if(r.parentState)return{oldProps:r.parentState.nodesWillExit?t:null,nextProps:n}}else return{};const i=v.Children.toArray(t.children),o=v.Children.toArray(n.children),{nodesWillExit:a,nodesWillEnter:s,childrenTransitions:l,nodesShouldEnter:c}=F_(i,o);return{nodesWillExit:a,nodesWillEnter:s,childrenTransitions:l,nodesShouldEnter:c,oldProps:a?t:null,nextProps:n}}getDomainFromChildren(t,n){const r=l=>l.reduce((c,u)=>{if(u.type&&Se(u.type.getDomain)){const d=u.props&&u.type.getDomain(u.props,n);return d?c.concat(d):c}else if(u.props&&u.props.children)return c.concat(r(v.Children.toArray(u.props.children)));return c},[]),i=v.Children.toArray(t.children)[0],o=i.props||{},a=Array.isArray(o.domain)?o.domain:o.domain&&o.domain[n];if(!o.children&&a)return a;const s=r([i]);return s.length===0?[0,1]:[Mn(s),sr(s)]}pickProps(){return this.state?this.state.nodesWillExit?this.state.oldProps||this.props:this.props:this.props}pickDomainProps(t){var r;const n=(r=t.animate)==null?void 0:r.parentState;return n&&n.nodesWillExit?(this.continuous||n.continuous)&&(n.nextProps||this.state.nextProps)||t:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||t}getClipWidth(t,n){const r=()=>{const o=Wt(n.props,"x");return o?Math.abs(o[1]-o[0]):t.width},i=this.transitionProps?this.transitionProps.clipWidth:void 0;return i!==void 0?i:r()}render(){var d;const t=this.pickProps(),n=(d=this.props.animate)!=null&&d.getTransitions?this.props.animate.getTransitions:N_(t,this.state,f=>this.setState(f)),r=v.Children.toArray(t.children)[0],i=n(r);this.transitionProps=i;const o={x:this.getDomainFromChildren(this.pickDomainProps(t),"x"),y:this.getDomainFromChildren(t,"y")},a=this.getClipWidth(t,r),s=K({domain:o,clipWidth:a},i,r.props),c=(t.animationWhitelist||[]).concat(["clipWidth"]),u=c.length?Ql(s,c):s;return v.createElement(wz,l0({},s.animate,{data:u}),f=>{if(r.props.groupComponent){const h=this.continuous?v.cloneElement(r.props.groupComponent,{clipWidth:f.clipWidth||0}):r.props.groupComponent;return v.cloneElement(r,K({animate:null,animating:!0,groupComponent:h},f,s))}return v.cloneElement(r,K({animate:null,animating:!0},f,s))})}}ae(c0,"displayName","VictoryTransition"),ae(c0,"contextType",Id);function LV(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var FV=LV;function NV(e){return e!==e}var WV=NV;function BV(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var RV=BV,zV=FV,VV=WV,UV=RV;function HV(e,t,n){return t===t?UV(e,t,n):zV(e,VV,n)}var qV=HV,GV=qV;function YV(e,t){var n=e==null?0:e.length;return!!n&&GV(e,t,0)>-1}var KV=YV;function ZV(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var XV=ZV;function JV(){}var QV=JV,u0=Rx,eU=QV,tU=Bg,nU=1/0,rU=u0&&1/tU(new u0([,-0]))[1]==nU?function(e){return new u0(e)}:eU,iU=rU,oU=E2,aU=KV,sU=XV,lU=O2,cU=iU,uU=Bg,dU=200;function fU(e,t,n){var r=-1,i=aU,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=sU;else if(o>=dU){var c=t?null:cU(e);if(c)return uU(c);a=!1,i=lU,l=new oU}else l=t?[]:s;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,a&&d===d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}var W_=fU,hU=W_;function mU(e){return e&&e.length?hU(e):[]}var gU=mU;const oa=Ne(gU);var pU="Expected a function";function yU(e){if(typeof e!="function")throw new TypeError(pU);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var vU=yU,bU=zg,xU=Gg,_U=Vg,SU=I2,CU=Object.getOwnPropertySymbols,wU=CU?function(e){for(var t=[];e;)bU(t,_U(e)),e=xU(e);return t}:SU,B_=wU,EU=M2,OU=B_,kU=os;function TU(e){return EU(e,kU,OU)}var R_=TU,AU=md,DU=Vl,PU=O_,jU=R_;function MU(e,t){if(e==null)return{};var n=AU(jU(e),function(r){return[r]});return t=DU(t),PU(e,n,function(r,i){return t(r,i[0])})}var z_=MU;const Ud=Ne(z_);var IU=Vl,$U=vU,LU=z_;function FU(e,t){return LU(e,$U(IU(t)))}var NU=FU;const V_=Ne(NU),d0=/^onGlobal(.*)$/;function U_(e,t,n,r){const i=u=>{const f=(()=>{const h=u.reduce((m,p)=>p.target!==void 0?(Array.isArray(p.target)?p.target.includes(t):`${p.target}`==`${t}`)?m.concat(p):m:m.concat(p),[]);return n!==void 0&&t!=="parent"?h.filter(m=>{const p=m.eventKey,y=b=>b?`${b}`==`${n}`:!0;return Array.isArray(p)?p.some(b=>y(b)):y(p)}):h})();return Array.isArray(f)&&f.reduce((h,m)=>m?Object.assign(h,m.eventHandlers):h,{})},a=Array.isArray(this.componentEvents)?Array.isArray(e.events)?this.componentEvents.concat(...e.events):this.componentEvents:e.events,s=a&&Se(r)?r(i(a),t):void 0;if(!e.sharedEvents)return s;const l=e.sharedEvents.getEvents,c=e.sharedEvents.events&&l(i(e.sharedEvents.events),t);return Object.assign({},c,s)}function H_(e,t,n,r){if(bt(e))return{};const i=r||this.baseProps,o=(u,d)=>{const{childName:f,target:h,key:m}=u,p=d==="props"?i:this.state||{},y=f==null||!p[f]?p:p[f];return m==="parent"?y.parent:y[m]&&y[m][h]},a=(u,d)=>{const f=t==="parent"?u.childName:u.childName||n,h=u.target||t,m=x=>h==="parent"?"parent":u.eventKey==="all"?i[x]?Object.keys(i[x]).filter(S=>S!=="parent"):Object.keys(i).filter(S=>S!=="parent"):u.eventKey===void 0&&d==="parent"?i[x]?Object.keys(i[x]):Object.keys(i):u.eventKey!==void 0?u.eventKey:d,p=(x,S)=>{const C=this.state||{};if(!Se(u.mutation))return C;const _=o({childName:S,key:x,target:h},"props"),w=o({childName:S,key:x,target:h},"state"),k=u.mutation(Object.assign({},_,w),i),A=C[S]||{},j=P=>(P[x]&&P[x][h]&&delete P[x][h],P[x]&&!Object.keys(P[x]).length&&delete P[x],P),M=P=>h==="parent"?Object.assign(P,{[x]:Object.assign(P[x]||{},k)}):Object.assign(P,{[x]:Object.assign(P[x]||{},{[h]:k})}),T=P=>k?M(P):j(P);return S!=null?Object.assign(C,{[S]:T(A)}):T(C)},y=x=>{const S=m(x);return Array.isArray(S)?S.reduce((C,_)=>Object.assign(C,p(_,x)),{}):p(S,x)},b=f==="all"?Object.keys(i).filter(x=>x!=="parent"):f;return Array.isArray(b)?b.reduce((x,S)=>Object.assign(x,y(S)),{}):y(b)},s=(u,d)=>Array.isArray(u)?u.reduce((f,h)=>Object.assign({},f,a(h,d)),{}):a(u,d),l=u=>{const d=m=>Se(m.callback)&&m.callback,h=(Array.isArray(u)?u.map(m=>d(m)):[d(u)]).filter(m=>m!==!1);return h.length?()=>h.forEach(m=>m()):void 0},c=(u,d,f,h)=>{const m=e[h](u,d,f,this);if(!bt(m)){const p=l(m);this.setState(s(m,f),p)}};return Object.keys(e).reduce((u,d)=>(u[d]=c,u),{})}function q_(e,t,n){return e?Object.keys(e).reduce((r,i)=>{const o=a=>e[i](a,n,t,i);return r[i]=o,r},{}):{}}function G_(e,t,n){const r=this.state||{};return n?r[n]&&r[n][e]&&r[n][e][t]:e==="parent"?r[e]&&r[e][t]||r[e]:r[e]&&r[e][t]}function WU(e,t,n,r){return t===void 0&&(t={}),n===void 0&&(n={}),r.reduce((i,o)=>{const a=n[o],s=Y_(e,t[o],n[o],o);return i[o]=s||a,Ud(i,l=>!bt(l))},{})}function Y_(e,t,n,r){return t===void 0&&(t={}),n===void 0&&(n={}),Object.keys(t).reduce((o,a)=>{const s=n[a]||{},l=t[a]||{};if(a==="parent"){const u=K_(e,l,s,{eventKey:a,target:"parent"});o[a]=u!==void 0?Object.assign({},s,u):s}else{const c=oa(Object.keys(l).concat(Object.keys(s)));o[a]=c.reduce((u,d)=>{const f={eventKey:a,target:d,childName:r},h=K_(e,l[d],s[d],f);return u[d]=h!==void 0?Object.assign({},s[d],h):s[d],Ud(u,m=>!bt(m))},{})}return Ud(o,c=>!bt(c))},{})}function K_(e,t,n,r){const i=(l,c)=>typeof l[c]=="string"?l[c]==="all"||l[c]===r[c]:Array.isArray(l[c])?l[c].map(d=>`${d}`).includes(r[c]):!1;let o=Array.isArray(e)?e:[e];r.childName&&(o=e.filter(l=>i(l,"childName")));const a=o.filter(l=>i(l,"target"));if(bt(a))return;const s=a.filter(l=>i(l,"eventKey"));if(!bt(s))return s.reduce((l,c)=>{const d=(c&&Se(c.mutation)?c.mutation:()=>{})(Object.assign({},t,n));return Object.assign({},l,d)},{})}function f0(e,t){const n=Array.isArray(t)&&t.reduce((r,i)=>{const o=e[i],a=o&&o.type&&o.type.defaultEvents,s=Se(a)?a(o.props):a;return Array.isArray(s)?r.concat(...s):r},[]);return n&&n.length?n:void 0}function Hd(e){const t=e.match(d0);return t&&t[1]&&t[1].toLowerCase()}const Z_=e=>Ud(e,(t,n)=>d0.test(n)),X_=e=>V_(e,(t,n)=>d0.test(n)),J_=e=>Object.assign(e,{nativeEvent:e}),BU=e=>!Si(e._x)&&!Si(e._y),RU=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}];function aa(e,t){t===void 0&&(t={});class n extends e{constructor(o){super(o);ae(this,"state",{});ae(this,"getEventState",G_.bind(this));ae(this,"getScopedEvents",H_.bind(this));ae(this,"getEvents",(o,a,s)=>U_.call(this,o,a,s,this.getScopedEvents));ae(this,"externalMutations",this.getExternalMutations(this.props));ae(this,"calculatedState",this.getStateChanges(this.props));ae(this,"globalEvents",{});ae(this,"prevGlobalEventKeys",[]);ae(this,"boundGlobalEvents",{});this.cacheValues(this.getCalculatedValues(o))}shouldComponentUpdate(o){const a=this.getExternalMutations(o),s=this.props.animating||this.props.animate,l=!qn(a,this.externalMutations);if(s||l)return this.cacheValues(this.getCalculatedValues(o)),this.externalMutations=a,this.applyExternalMutations(o,a),!0;const c=this.getStateChanges(o);return qn(this.calculatedState,c)?qn(this.props,o)?!1:(this.cacheValues(this.getCalculatedValues(o)),!0):(this.cacheValues(this.getCalculatedValues(o)),!0)}componentDidMount(){const o=Object.keys(this.globalEvents);o.forEach(a=>this.addGlobalListener(a)),this.prevGlobalEventKeys=o}componentDidUpdate(o){const a=this.getStateChanges(o);this.calculatedState=a;const s=Object.keys(this.globalEvents);Vd(this.prevGlobalEventKeys,s).forEach(u=>this.removeGlobalListener(u)),Vd(s,this.prevGlobalEventKeys).forEach(u=>this.addGlobalListener(u)),this.prevGlobalEventKeys=s}componentWillUnmount(){this.prevGlobalEventKeys.forEach(o=>this.removeGlobalListener(o))}addGlobalListener(o){const a=s=>{const l=this.globalEvents[o];return l&&l(J_(s))};this.boundGlobalEvents[o]=a,window.addEventListener(Hd(o),a)}removeGlobalListener(o){window.removeEventListener(Hd(o),this.boundGlobalEvents[o])}getStateChanges(o){if(!this.hasEvents)return{};const a=(c,u)=>{const d=K({},this.getEventState(c,u),this.getSharedEventState(c,u));return bt(d)?void 0:d};return(t.components||RU).map(c=>{if(!(!o.standalone&&c.name==="parent"))return c.index!==void 0?a(c.index,c.name):this.dataKeys.map(u=>a(u,c.name)).filter(Boolean)}).filter(Boolean)}applyExternalMutations(o,a){if(!bt(a)){const s=o.externalEventMutations.reduce((c,u)=>Se(u.callback)?c.concat(u.callback):c,[]),l=s.length?()=>{s.forEach(c=>c())}:void 0;this.setState(a,l)}}getCalculatedValues(o){const{sharedEvents:a}=o,s=e.expectedComponents,l=f0(o,s),c=a&&Se(a.getEventState)?a.getEventState:()=>{},u=this.getBaseProps(o,c),d=Object.keys(u).filter(m=>m!=="parent"),f=o.events||o.sharedEvents||l,h=this.getAllEvents(o);return{componentEvents:l,getSharedEventState:c,baseProps:u,dataKeys:d,hasEvents:f,events:h}}getExternalMutations(o){const{sharedEvents:a,externalEventMutations:s}=o;return bt(s)||a?void 0:Y_(s,this.baseProps,this.state)}cacheValues(o){Object.keys(o).forEach(a=>{this[a]=o[a]})}getBaseProps(o,a){const l=(a||this.getSharedEventState.bind(this))("parent","parent"),c=this.getEventState("parent","parent"),u=K({},c,l),d=u.parentControlledProps,f=d?Ql(u,d):{},h=K({},f,o);return typeof e.getBaseProps=="function"?e.getBaseProps(h):{}}getAllEvents(o){return Array.isArray(this.componentEvents)?Array.isArray(o.events)?this.componentEvents.concat(...o.events):this.componentEvents:o.events}getComponentProps(o,a,s){const l=this.props.name||e.role,c=this.dataKeys&&this.dataKeys[s]||s,u=`${l}-${a}-${c}`,d=this.baseProps[c]&&this.baseProps[c][a]||this.baseProps[c];if(!d&&!this.hasEvents)return;const f=o&&typeof o=="object"&&"props"in o?o.props:void 0;if(this.hasEvents){const h=this.getEvents(this.props,a,c),m=K({index:s,key:u},this.getEventState(c,a),this.getSharedEventState(c,a),f,d,{id:u}),p=K({},q_(h,c,m),m.events);return Object.assign({},m,{events:p})}return K({index:s,key:u},f,d,{id:u})}renderContainer(o,a){const l=o.type&&o.type.role==="container"?this.getComponentProps(o,"parent","parent"):{};return l.events&&(this.globalEvents=Z_(l.events),l.events=X_(l.events)),v.cloneElement(o,l,a)}animateComponent(o,a){var c;const s=typeof o.animate=="object"&&((c=o.animate)==null?void 0:c.animationWhitelist)||a,l=this.constructor;return v.createElement(c0,{animate:o.animate,animationWhitelist:s},v.createElement(l,o))}renderContinuousData(o){const{dataComponent:a,labelComponent:s,groupComponent:l}=o,u=this.dataKeys.filter(h=>h!=="all").reduce((h,m)=>{let p=h;const y=this.getComponentProps(s,"labels",m);return y&&y.text!==void 0&&y.text!==null&&(p=p.concat(v.cloneElement(s,y))),p},[]),d=this.getComponentProps(a,"data","all"),f=[v.cloneElement(a,d),...u];return this.renderContainer(l,f)}renderData(o,a){a===void 0&&(a=BU);const{dataComponent:s,labelComponent:l,groupComponent:c}=o,u=this.dataKeys.reduce((h,m,p)=>{const y=this.getComponentProps(s,"data",p);return a(y.datum)&&h.push(v.cloneElement(s,y)),h},[]),d=this.dataKeys.map((h,m)=>{const p=this.getComponentProps(l,"labels",m);if(p.text!==void 0&&p.text!==null)return v.cloneElement(l,p)}).filter(Boolean),f=[...u,...d];return this.renderContainer(c,f)}}return n}function zU(e){return t=>{e.forEach(n=>{Se(n)?n(t):n!=null&&(n.current=t)})}}var VU=fo,UU=Mr,HU="[object Date]";function qU(e){return UU(e)&&VU(e)==HU}var GU=qU,YU=GU,KU=ns,Q_=Wl,eS=Q_&&Q_.isDate,ZU=eS?KU(eS):YU,XU=ZU;const tS=Ne(XU);var JU=ta;function QU(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!JU(s,l)){var l=s;o[i++]=a===0?0:a}}return o}var eH=QU,tH=eH;function nH(e){return e&&e.length?tH(e):[]}var rH=nH;const iH=Ne(rH);function oH(e){return e===void 0}var aH=oH;const sH=Ne(aH);var lH=Hg;function cH(e,t){return lH(e,t)}var uH=cH;const dH=Ne(uH);function go(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function fH(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function h0(e){let t,n,r;e.length!==2?(t=go,n=(s,l)=>go(e(s),l),r=(s,l)=>e(s)-l):(t=e===go||e===fH?e:hH,n=e,r=e);function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<0?c=d+1:u=d}while(c<u)}return c}function o(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function a(s,l,c=0,u=s.length){const d=i(s,l,c,u-1);return d>c&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:i,center:a,right:o}}function hH(){return 0}function nS(e){return e===null?NaN:+e}function*mH(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const rc=h0(go).right;h0(nS).center;class rS extends Map{constructor(t,n=yH){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(iS(this,t))}has(t){return super.has(iS(this,t))}set(t,n){return super.set(gH(this,t),n)}delete(t){return super.delete(pH(this,t))}}function iS({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function gH({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function pH({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function yH(e){return e!==null&&typeof e=="object"?e.valueOf():e}function vH(e=go){if(e===go)return oS;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function oS(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const bH=Math.sqrt(50),xH=Math.sqrt(10),_H=Math.sqrt(2);function qd(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=bH?10:o>=xH?5:o>=_H?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/a,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*a,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?qd(e,t,n*2):[s,l,c]}function m0(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,a]=r?qd(t,e,n):qd(e,t,n);if(!(o>=i))return[];const s=o-i+1,l=new Array(s);if(r)if(a<0)for(let c=0;c<s;++c)l[c]=(o-c)/-a;else for(let c=0;c<s;++c)l[c]=(o-c)*a;else if(a<0)for(let c=0;c<s;++c)l[c]=(i+c)/-a;else for(let c=0;c<s;++c)l[c]=(i+c)*a;return l}function g0(e,t,n){return t=+t,e=+e,n=+n,qd(e,t,n)[2]}function p0(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?g0(t,e,n):g0(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function aS(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function sS(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function lS(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?oS:vH(i);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,u=Math.log(l),d=.5*Math.exp(2*u/3),f=.5*Math.sqrt(u*d*(l-d)/l)*(c-l/2<0?-1:1),h=Math.max(n,Math.floor(t-c*d/l+f)),m=Math.min(r,Math.floor(t+(l-c)*d/l+f));lS(e,t,h,m,i)}const o=e[t];let a=n,s=r;for(ic(e,n,t),i(e[r],o)>0&&ic(e,n,r);a<s;){for(ic(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[n],o)===0?ic(e,n,s):(++s,ic(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function ic(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function SH(e,t,n){if(e=Float64Array.from(mH(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return sS(e);if(t>=1)return aS(e);var r,i=(r-1)*t,o=Math.floor(i),a=aS(lS(e,o).subarray(0,o+1)),s=sS(e.subarray(o+1));return a+(s-a)*(i-o)}}function CH(e,t,n=nS){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e),s=+n(e[o+1],o+1,e);return a+(s-a)*(i-o)}}function wH(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function lr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Ci(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const y0=Symbol("implicit");function v0(){var e=new rS,t=[],n=[],r=y0;function i(o){let a=e.get(o);if(a===void 0){if(r!==y0)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new rS;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return v0(t,n).unknown(r)},lr.apply(i,arguments),i}function b0(){var e=v0().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var f=t().length,h=i<r,m=h?i:r,p=h?r:i;o=(p-m)/Math.max(1,f-l+c*2),s&&(o=Math.floor(o)),m+=(p-m-o*(f-l))*u,a=o*(1-l),s&&(m=Math.round(m),a=Math.round(a));var y=wH(f).map(function(b){return m+o*b});return n(h?y.reverse():y)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,i]=f,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(f){return[r,i]=f,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(l=Math.min(1,c=+f),d()):l},e.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),d()):l},e.paddingOuter=function(f){return arguments.length?(c=+f,d()):c},e.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),d()):u},e.copy=function(){return b0(t(),[r,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},lr.apply(d(),arguments)}function cS(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return cS(t())},e}function EH(){return cS(b0.apply(null,arguments).paddingInner(1))}function OH(e){return function(){return e}}function Gd(e){return+e}var uS=[0,1];function Sn(e){return e}function x0(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:OH(isNaN(t)?NaN:.5)}function kH(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function TH(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=x0(i,r),o=n(a,o)):(r=x0(r,i),o=n(o,a)),function(s){return o(r(s))}}function AH(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=x0(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var l=rc(e,s,1,r)-1;return o[l](i[l](s))}}function oc(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Yd(){var e=uS,t=uS,n=Xr,r,i,o,a=Sn,s,l,c;function u(){var f=Math.min(e.length,t.length);return a!==Sn&&(a=kH(e[0],e[f-1])),s=f>2?AH:TH,l=c=null,d}function d(f){return f==null||isNaN(f=+f)?o:(l||(l=s(e.map(r),t,n)))(r(a(f)))}return d.invert=function(f){return a(i((c||(c=s(t,e.map(r),Td)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,Gd),u()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=e0,u()},d.clamp=function(f){return arguments.length?(a=f?!0:Sn,u()):a!==Sn},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(o=f,d):o},function(f,h){return r=f,i=h,u()}}function _0(){return Yd()(Sn,Sn)}function DH(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Kd(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ys(e){return e=Kd(Math.abs(e)),e?e[1]:NaN}function PH(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function jH(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var MH=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ac(e){if(!(t=MH.exec(e)))throw new Error("invalid format: "+e);var t;return new S0({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}ac.prototype=S0.prototype;function S0(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}S0.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function IH(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var dS;function $H(e,t){var n=Kd(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(dS=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Kd(e,Math.max(0,t+o-1))[0]}function fS(e,t){var n=Kd(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const hS={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:DH,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>fS(e*100,t),r:fS,s:$H,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function mS(e){return e}var gS=Array.prototype.map,pS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function LH(e){var t=e.grouping===void 0||e.thousands===void 0?mS:PH(gS.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?mS:jH(gS.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=ac(d);var f=d.fill,h=d.align,m=d.sign,p=d.symbol,y=d.zero,b=d.width,x=d.comma,S=d.precision,C=d.trim,_=d.type;_==="n"?(x=!0,_="g"):hS[_]||(S===void 0&&(S=12),C=!0,_="g"),(y||f==="0"&&h==="=")&&(y=!0,f="0",h="=");var w=p==="$"?n:p==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",k=p==="$"?r:/[%p]/.test(_)?a:"",A=hS[_],j=/[defgprs%]/.test(_);S=S===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function M(T){var P=w,D=k,I,$,W;if(_==="c")D=A(T)+D,T="";else{T=+T;var B=T<0||1/T<0;if(T=isNaN(T)?l:A(Math.abs(T),S),C&&(T=IH(T)),B&&+T==0&&m!=="+"&&(B=!1),P=(B?m==="("?m:s:m==="-"||m==="("?"":m)+P,D=(_==="s"?pS[8+dS/3]:"")+D+(B&&m==="("?")":""),j){for(I=-1,$=T.length;++I<$;)if(W=T.charCodeAt(I),48>W||W>57){D=(W===46?i+T.slice(I+1):T.slice(I))+D,T=T.slice(0,I);break}}}x&&!y&&(T=t(T,1/0));var U=P.length+T.length+D.length,V=U<b?new Array(b-U+1).join(f):"";switch(x&&y&&(T=t(V+T,V.length?b-D.length:1/0),V=""),h){case"<":T=P+T+D+V;break;case"=":T=P+V+T+D;break;case"^":T=V.slice(0,U=V.length>>1)+P+T+D+V.slice(U);break;default:T=V+P+T+D;break}return o(T)}return M.toString=function(){return d+""},M}function u(d,f){var h=c((d=ac(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(ys(f)/3)))*3,p=Math.pow(10,-m),y=pS[8+m/3];return function(b){return h(p*b)+y}}return{format:c,formatPrefix:u}}var Zd,C0,yS;FH({thousands:",",grouping:[3],currency:["$",""]});function FH(e){return Zd=LH(e),C0=Zd.format,yS=Zd.formatPrefix,Zd}function NH(e){return Math.max(0,-ys(Math.abs(e)))}function WH(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ys(t)/3)))*3-ys(Math.abs(e)))}function BH(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ys(t)-ys(e))+1}function vS(e,t,n,r){var i=p0(e,t,n),o;switch(r=ac(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=WH(i,a))&&(r.precision=o),yS(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=BH(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=NH(i))&&(r.precision=o-(r.type==="%")*2);break}}return C0(r)}function po(e){var t=e.domain;return e.ticks=function(n){var r=t();return m0(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return vS(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],s=r[o],l,c,u=10;for(s<a&&(c=a,a=s,s=c,c=i,i=o,o=c);u-- >0;){if(c=g0(a,s,n),c===l)return r[i]=a,r[o]=s,t(r);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function w0(){var e=_0();return e.copy=function(){return oc(e,w0())},lr.apply(e,arguments),po(e)}function bS(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Gd),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return bS(e).unknown(t)},e=arguments.length?Array.from(e,Gd):[0,1],po(n)}function xS(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function _S(e){return Math.log(e)}function SS(e){return Math.exp(e)}function RH(e){return-Math.log(-e)}function zH(e){return-Math.exp(-e)}function VH(e){return isFinite(e)?+("1e"+e):e<0?0:e}function UH(e){return e===10?VH:e===Math.E?Math.exp:t=>Math.pow(e,t)}function HH(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function CS(e){return(t,n)=>-e(-t,n)}function E0(e){const t=e(_S,SS),n=t.domain;let r=10,i,o;function a(){return i=HH(r),o=UH(r),n()[0]<0?(i=CS(i),o=CS(o),e(RH,zH)):e(_S,SS),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let f=i(c),h=i(u),m,p;const y=s==null?10:+s;let b=[];if(!(r%1)&&h-f<y){if(f=Math.floor(f),h=Math.ceil(h),c>0){for(;f<=h;++f)for(m=1;m<r;++m)if(p=f<0?m/o(-f):m*o(f),!(p<c)){if(p>u)break;b.push(p)}}else for(;f<=h;++f)for(m=r-1;m>=1;--m)if(p=f>0?m/o(-f):m*o(f),!(p<c)){if(p>u)break;b.push(p)}b.length*2<y&&(b=m0(c,u,y))}else b=m0(f,h,Math.min(h-f,y)).map(o);return d?b.reverse():b},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=ac(l)).precision==null&&(l.trim=!0),l=C0(l)),s===1/0)return l;const c=Math.max(1,r*s/t.ticks().length);return u=>{let d=u/o(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=c?l(u):""}},t.nice=()=>n(xS(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function wS(){const e=E0(Yd()).domain([1,10]);return e.copy=()=>oc(e,wS()).base(e.base()),lr.apply(e,arguments),e}function ES(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function OS(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function O0(e){var t=1,n=e(ES(t),OS(t));return n.constant=function(r){return arguments.length?e(ES(t=+r),OS(t)):t},po(n)}function kS(){var e=O0(Yd());return e.copy=function(){return oc(e,kS()).constant(e.constant())},lr.apply(e,arguments)}function TS(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function qH(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function GH(e){return e<0?-e*e:e*e}function k0(e){var t=e(Sn,Sn),n=1;function r(){return n===1?e(Sn,Sn):n===.5?e(qH,GH):e(TS(n),TS(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},po(t)}function T0(){var e=k0(Yd());return e.copy=function(){return oc(e,T0()).exponent(e.exponent())},lr.apply(e,arguments),e}function YH(){return T0.apply(null,arguments).exponent(.5)}function AS(e){return Math.sign(e)*e*e}function KH(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function DS(){var e=_0(),t=[0,1],n=!1,r;function i(o){var a=KH(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(AS(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,Gd)).map(AS)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return DS(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},lr.apply(i,arguments),po(i)}function PS(){var e=[],t=[],n=[],r;function i(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a<s;)n[a-1]=CH(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?r:t[rc(n,a)]}return o.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},o.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(go),i()},o.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return PS().domain(e).range(t).unknown(r)},lr.apply(o,arguments)}function jS(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(l){return l!=null&&l<=l?i[rc(r,l,0,n)]:o}function s(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},a.range=function(l){return arguments.length?(n=(i=Array.from(l)).length-1,s()):i.slice()},a.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},a.unknown=function(l){return arguments.length&&(o=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return jS().domain([e,t]).range(i).unknown(o)},lr.apply(po(a),arguments)}function MS(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[rc(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return MS().domain(e).range(t).unknown(n)},lr.apply(i,arguments)}const A0=new Date,D0=new Date;function Yt(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const l=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;let c;do l.push(c=new Date(+o)),t(o,s),e(o);while(c<o&&o<a);return l},i.filter=o=>Yt(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(A0.setTime(+o),D0.setTime(+a),e(A0),e(D0),Math.floor(n(A0,D0))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const Xd=Yt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Xd.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Yt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Xd),Xd.range;const wi=1e3,cr=wi*60,Ei=cr*60,Oi=Ei*24,P0=Oi*7,IS=Oi*30,j0=Oi*365,sa=Yt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*wi)},(e,t)=>(t-e)/wi,e=>e.getUTCSeconds());sa.range;const M0=Yt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*wi)},(e,t)=>{e.setTime(+e+t*cr)},(e,t)=>(t-e)/cr,e=>e.getMinutes());M0.range;const I0=Yt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*cr)},(e,t)=>(t-e)/cr,e=>e.getUTCMinutes());I0.range;const $0=Yt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*wi-e.getMinutes()*cr)},(e,t)=>{e.setTime(+e+t*Ei)},(e,t)=>(t-e)/Ei,e=>e.getHours());$0.range;const L0=Yt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ei)},(e,t)=>(t-e)/Ei,e=>e.getUTCHours());L0.range;const sc=Yt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*cr)/Oi,e=>e.getDate()-1);sc.range;const Jd=Yt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Oi,e=>e.getUTCDate()-1);Jd.range;const $S=Yt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Oi,e=>Math.floor(e/Oi));$S.range;function la(e){return Yt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*cr)/P0)}const Qd=la(0),ef=la(1),ZH=la(2),XH=la(3),vs=la(4),JH=la(5),QH=la(6);Qd.range,ef.range,ZH.range,XH.range,vs.range,JH.range,QH.range;function ca(e){return Yt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/P0)}const tf=ca(0),nf=ca(1),eq=ca(2),tq=ca(3),bs=ca(4),nq=ca(5),rq=ca(6);tf.range,nf.range,eq.range,tq.range,bs.range,nq.range,rq.range;const F0=Yt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());F0.range;const N0=Yt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());N0.range;const ki=Yt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ki.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Yt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),ki.range;const Ti=Yt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Ti.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Yt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),Ti.range;function LS(e,t,n,r,i,o){const a=[[sa,1,wi],[sa,5,5*wi],[sa,15,15*wi],[sa,30,30*wi],[o,1,cr],[o,5,5*cr],[o,15,15*cr],[o,30,30*cr],[i,1,Ei],[i,3,3*Ei],[i,6,6*Ei],[i,12,12*Ei],[r,1,Oi],[r,2,2*Oi],[n,1,P0],[t,1,IS],[t,3,3*IS],[e,1,j0]];function s(c,u,d){const f=u<c;f&&([c,u]=[u,c]);const h=d&&typeof d.range=="function"?d:l(c,u,d),m=h?h.range(c,+u+1):[];return f?m.reverse():m}function l(c,u,d){const f=Math.abs(u-c)/d,h=h0(([,,y])=>y).right(a,f);if(h===a.length)return e.every(p0(c/j0,u/j0,d));if(h===0)return Xd.every(Math.max(p0(c,u,d),1));const[m,p]=a[f/a[h-1][2]<a[h][2]/f?h-1:h];return m.every(p)}return[s,l]}const[iq,oq]=LS(Ti,N0,tf,$S,L0,I0),[aq,sq]=LS(ki,F0,Qd,sc,$0,M0);function W0(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function B0(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function lc(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function lq(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=cc(i),u=uc(i),d=cc(o),f=uc(o),h=cc(a),m=uc(a),p=cc(s),y=uc(s),b=cc(l),x=uc(l),S={a:B,A:U,b:V,B:F,c:null,d:zS,e:zS,f:Pq,g:Rq,G:Vq,H:Tq,I:Aq,j:Dq,L:VS,m:jq,M:Mq,p:H,q:X,Q:KS,s:ZS,S:Iq,u:$q,U:Lq,V:Fq,w:Nq,W:Wq,x:null,X:null,y:Bq,Y:zq,Z:Uq,"%":YS},C={a:J,A:Q,b:ee,B:ie,c:null,d:HS,e:HS,f:Yq,g:iG,G:aG,H:Hq,I:qq,j:Gq,L:qS,m:Kq,M:Zq,p:ue,q:he,Q:KS,s:ZS,S:Xq,u:Jq,U:Qq,V:eG,w:tG,W:nG,x:null,X:null,y:rG,Y:oG,Z:sG,"%":YS},_={a:M,A:T,b:P,B:D,c:I,d:BS,e:BS,f:wq,g:WS,G:NS,H:RS,I:RS,j:xq,L:Cq,m:bq,M:_q,p:j,q:vq,Q:Oq,s:kq,S:Sq,u:hq,U:mq,V:gq,w:fq,W:pq,x:$,X:W,y:WS,Y:NS,Z:yq,"%":Eq};S.x=w(n,S),S.X=w(r,S),S.c=w(t,S),C.x=w(n,C),C.X=w(r,C),C.c=w(t,C);function w(Z,re){return function(pe){var R=[],Ae=-1,ke=0,Ge=Z.length,Le,st,L;for(pe instanceof Date||(pe=new Date(+pe));++Ae<Ge;)Z.charCodeAt(Ae)===37&&(R.push(Z.slice(ke,Ae)),(st=FS[Le=Z.charAt(++Ae)])!=null?Le=Z.charAt(++Ae):st=Le==="e"?" ":"0",(L=re[Le])&&(Le=L(pe,st)),R.push(Le),ke=Ae+1);return R.push(Z.slice(ke,Ae)),R.join("")}}function k(Z,re){return function(pe){var R=lc(1900,void 0,1),Ae=A(R,Z,pe+="",0),ke,Ge;if(Ae!=pe.length)return null;if("Q"in R)return new Date(R.Q);if("s"in R)return new Date(R.s*1e3+("L"in R?R.L:0));if(re&&!("Z"in R)&&(R.Z=0),"p"in R&&(R.H=R.H%12+R.p*12),R.m===void 0&&(R.m="q"in R?R.q:0),"V"in R){if(R.V<1||R.V>53)return null;"w"in R||(R.w=1),"Z"in R?(ke=B0(lc(R.y,0,1)),Ge=ke.getUTCDay(),ke=Ge>4||Ge===0?nf.ceil(ke):nf(ke),ke=Jd.offset(ke,(R.V-1)*7),R.y=ke.getUTCFullYear(),R.m=ke.getUTCMonth(),R.d=ke.getUTCDate()+(R.w+6)%7):(ke=W0(lc(R.y,0,1)),Ge=ke.getDay(),ke=Ge>4||Ge===0?ef.ceil(ke):ef(ke),ke=sc.offset(ke,(R.V-1)*7),R.y=ke.getFullYear(),R.m=ke.getMonth(),R.d=ke.getDate()+(R.w+6)%7)}else("W"in R||"U"in R)&&("w"in R||(R.w="u"in R?R.u%7:"W"in R?1:0),Ge="Z"in R?B0(lc(R.y,0,1)).getUTCDay():W0(lc(R.y,0,1)).getDay(),R.m=0,R.d="W"in R?(R.w+6)%7+R.W*7-(Ge+5)%7:R.w+R.U*7-(Ge+6)%7);return"Z"in R?(R.H+=R.Z/100|0,R.M+=R.Z%100,B0(R)):W0(R)}}function A(Z,re,pe,R){for(var Ae=0,ke=re.length,Ge=pe.length,Le,st;Ae<ke;){if(R>=Ge)return-1;if(Le=re.charCodeAt(Ae++),Le===37){if(Le=re.charAt(Ae++),st=_[Le in FS?re.charAt(Ae++):Le],!st||(R=st(Z,pe,R))<0)return-1}else if(Le!=pe.charCodeAt(R++))return-1}return R}function j(Z,re,pe){var R=c.exec(re.slice(pe));return R?(Z.p=u.get(R[0].toLowerCase()),pe+R[0].length):-1}function M(Z,re,pe){var R=h.exec(re.slice(pe));return R?(Z.w=m.get(R[0].toLowerCase()),pe+R[0].length):-1}function T(Z,re,pe){var R=d.exec(re.slice(pe));return R?(Z.w=f.get(R[0].toLowerCase()),pe+R[0].length):-1}function P(Z,re,pe){var R=b.exec(re.slice(pe));return R?(Z.m=x.get(R[0].toLowerCase()),pe+R[0].length):-1}function D(Z,re,pe){var R=p.exec(re.slice(pe));return R?(Z.m=y.get(R[0].toLowerCase()),pe+R[0].length):-1}function I(Z,re,pe){return A(Z,t,re,pe)}function $(Z,re,pe){return A(Z,n,re,pe)}function W(Z,re,pe){return A(Z,r,re,pe)}function B(Z){return a[Z.getDay()]}function U(Z){return o[Z.getDay()]}function V(Z){return l[Z.getMonth()]}function F(Z){return s[Z.getMonth()]}function H(Z){return i[+(Z.getHours()>=12)]}function X(Z){return 1+~~(Z.getMonth()/3)}function J(Z){return a[Z.getUTCDay()]}function Q(Z){return o[Z.getUTCDay()]}function ee(Z){return l[Z.getUTCMonth()]}function ie(Z){return s[Z.getUTCMonth()]}function ue(Z){return i[+(Z.getUTCHours()>=12)]}function he(Z){return 1+~~(Z.getUTCMonth()/3)}return{format:function(Z){var re=w(Z+="",S);return re.toString=function(){return Z},re},parse:function(Z){var re=k(Z+="",!1);return re.toString=function(){return Z},re},utcFormat:function(Z){var re=w(Z+="",C);return re.toString=function(){return Z},re},utcParse:function(Z){var re=k(Z+="",!0);return re.toString=function(){return Z},re}}}var FS={"-":"",_:" ",0:"0"},en=/^\s*\d+/,cq=/^%/,uq=/[\\^$*+?|[\]().{}]/g;function Ke(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function dq(e){return e.replace(uq,"\\$&")}function cc(e){return new RegExp("^(?:"+e.map(dq).join("|")+")","i")}function uc(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function fq(e,t,n){var r=en.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function hq(e,t,n){var r=en.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function mq(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function gq(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function pq(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function NS(e,t,n){var r=en.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function WS(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function yq(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function vq(e,t,n){var r=en.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function bq(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function BS(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function xq(e,t,n){var r=en.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function RS(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function _q(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Sq(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Cq(e,t,n){var r=en.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function wq(e,t,n){var r=en.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Eq(e,t,n){var r=cq.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Oq(e,t,n){var r=en.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function kq(e,t,n){var r=en.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function zS(e,t){return Ke(e.getDate(),t,2)}function Tq(e,t){return Ke(e.getHours(),t,2)}function Aq(e,t){return Ke(e.getHours()%12||12,t,2)}function Dq(e,t){return Ke(1+sc.count(ki(e),e),t,3)}function VS(e,t){return Ke(e.getMilliseconds(),t,3)}function Pq(e,t){return VS(e,t)+"000"}function jq(e,t){return Ke(e.getMonth()+1,t,2)}function Mq(e,t){return Ke(e.getMinutes(),t,2)}function Iq(e,t){return Ke(e.getSeconds(),t,2)}function $q(e){var t=e.getDay();return t===0?7:t}function Lq(e,t){return Ke(Qd.count(ki(e)-1,e),t,2)}function US(e){var t=e.getDay();return t>=4||t===0?vs(e):vs.ceil(e)}function Fq(e,t){return e=US(e),Ke(vs.count(ki(e),e)+(ki(e).getDay()===4),t,2)}function Nq(e){return e.getDay()}function Wq(e,t){return Ke(ef.count(ki(e)-1,e),t,2)}function Bq(e,t){return Ke(e.getFullYear()%100,t,2)}function Rq(e,t){return e=US(e),Ke(e.getFullYear()%100,t,2)}function zq(e,t){return Ke(e.getFullYear()%1e4,t,4)}function Vq(e,t){var n=e.getDay();return e=n>=4||n===0?vs(e):vs.ceil(e),Ke(e.getFullYear()%1e4,t,4)}function Uq(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ke(t/60|0,"0",2)+Ke(t%60,"0",2)}function HS(e,t){return Ke(e.getUTCDate(),t,2)}function Hq(e,t){return Ke(e.getUTCHours(),t,2)}function qq(e,t){return Ke(e.getUTCHours()%12||12,t,2)}function Gq(e,t){return Ke(1+Jd.count(Ti(e),e),t,3)}function qS(e,t){return Ke(e.getUTCMilliseconds(),t,3)}function Yq(e,t){return qS(e,t)+"000"}function Kq(e,t){return Ke(e.getUTCMonth()+1,t,2)}function Zq(e,t){return Ke(e.getUTCMinutes(),t,2)}function Xq(e,t){return Ke(e.getUTCSeconds(),t,2)}function Jq(e){var t=e.getUTCDay();return t===0?7:t}function Qq(e,t){return Ke(tf.count(Ti(e)-1,e),t,2)}function GS(e){var t=e.getUTCDay();return t>=4||t===0?bs(e):bs.ceil(e)}function eG(e,t){return e=GS(e),Ke(bs.count(Ti(e),e)+(Ti(e).getUTCDay()===4),t,2)}function tG(e){return e.getUTCDay()}function nG(e,t){return Ke(nf.count(Ti(e)-1,e),t,2)}function rG(e,t){return Ke(e.getUTCFullYear()%100,t,2)}function iG(e,t){return e=GS(e),Ke(e.getUTCFullYear()%100,t,2)}function oG(e,t){return Ke(e.getUTCFullYear()%1e4,t,4)}function aG(e,t){var n=e.getUTCDay();return e=n>=4||n===0?bs(e):bs.ceil(e),Ke(e.getUTCFullYear()%1e4,t,4)}function sG(){return"+0000"}function YS(){return"%"}function KS(e){return+e}function ZS(e){return Math.floor(+e/1e3)}var xs,XS,JS;lG({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function lG(e){return xs=lq(e),XS=xs.format,xs.parse,JS=xs.utcFormat,xs.utcParse,xs}function cG(e){return new Date(e)}function uG(e){return e instanceof Date?+e:+new Date(+e)}function R0(e,t,n,r,i,o,a,s,l,c){var u=_0(),d=u.invert,f=u.domain,h=c(".%L"),m=c(":%S"),p=c("%I:%M"),y=c("%I %p"),b=c("%a %d"),x=c("%b %d"),S=c("%B"),C=c("%Y");function _(w){return(l(w)<w?h:s(w)<w?m:a(w)<w?p:o(w)<w?y:r(w)<w?i(w)<w?b:x:n(w)<w?S:C)(w)}return u.invert=function(w){return new Date(d(w))},u.domain=function(w){return arguments.length?f(Array.from(w,uG)):f().map(cG)},u.ticks=function(w){var k=f();return e(k[0],k[k.length-1],w??10)},u.tickFormat=function(w,k){return k==null?_:c(k)},u.nice=function(w){var k=f();return(!w||typeof w.range!="function")&&(w=t(k[0],k[k.length-1],w??10)),w?f(xS(k,w)):u},u.copy=function(){return oc(u,R0(e,t,n,r,i,o,a,s,l,c))},u}function dG(){return lr.apply(R0(aq,sq,ki,F0,Qd,sc,$0,M0,sa,XS).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function fG(){return lr.apply(R0(iq,oq,Ti,N0,tf,Jd,L0,I0,sa,JS).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function rf(){var e=0,t=1,n,r,i,o,a=Sn,s=!1,l;function c(d){return d==null||isNaN(d=+d)?l:a(i===0?.5:(d=(o(d)-n)*i,s?Math.max(0,Math.min(1,d)):d))}c.domain=function(d){return arguments.length?([e,t]=d,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(d){return arguments.length?(s=!!d,c):s},c.interpolator=function(d){return arguments.length?(a=d,c):a};function u(d){return function(f){var h,m;return arguments.length?([h,m]=f,a=d(h,m),c):[a(0),a(1)]}}return c.range=u(Xr),c.rangeRound=u(e0),c.unknown=function(d){return arguments.length?(l=d,c):l},function(d){return o=d,n=d(e),r=d(t),i=n===r?0:1/(r-n),c}}function yo(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function QS(){var e=po(rf()(Sn));return e.copy=function(){return yo(e,QS())},Ci.apply(e,arguments)}function eC(){var e=E0(rf()).domain([1,10]);return e.copy=function(){return yo(e,eC()).base(e.base())},Ci.apply(e,arguments)}function tC(){var e=O0(rf());return e.copy=function(){return yo(e,tC()).constant(e.constant())},Ci.apply(e,arguments)}function z0(){var e=k0(rf());return e.copy=function(){return yo(e,z0()).exponent(e.exponent())},Ci.apply(e,arguments)}function hG(){return z0.apply(null,arguments).exponent(.5)}function nC(){var e=[],t=Sn;function n(r){if(r!=null&&!isNaN(r=+r))return t((rc(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(go),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>SH(e,o/r))},n.copy=function(){return nC(t).domain(e)},Ci.apply(n,arguments)}function of(){var e=0,t=.5,n=1,r=1,i,o,a,s,l,c=Sn,u,d=!1,f;function h(p){return isNaN(p=+p)?f:(p=.5+((p=+u(p))-o)*(r*p<r*o?s:l),c(d?Math.max(0,Math.min(1,p)):p))}h.domain=function(p){return arguments.length?([e,t,n]=p,i=u(e=+e),o=u(t=+t),a=u(n=+n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,h):[e,t,n]},h.clamp=function(p){return arguments.length?(d=!!p,h):d},h.interpolator=function(p){return arguments.length?(c=p,h):c};function m(p){return function(y){var b,x,S;return arguments.length?([b,x,S]=y,c=gz(p,[b,x,S]),h):[c(0),c(.5),c(1)]}}return h.range=m(Xr),h.rangeRound=m(e0),h.unknown=function(p){return arguments.length?(f=p,h):f},function(p){return u=p,i=p(e),o=p(t),a=p(n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,h}}function rC(){var e=po(of()(Sn));return e.copy=function(){return yo(e,rC())},Ci.apply(e,arguments)}function iC(){var e=E0(of()).domain([.1,1,10]);return e.copy=function(){return yo(e,iC()).base(e.base())},Ci.apply(e,arguments)}function oC(){var e=O0(of());return e.copy=function(){return yo(e,oC()).constant(e.constant())},Ci.apply(e,arguments)}function V0(){var e=k0(of());return e.copy=function(){return yo(e,V0()).exponent(e.exponent())},Ci.apply(e,arguments)}function mG(){return V0.apply(null,arguments).exponent(.5)}const gG=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:b0,scaleDiverging:rC,scaleDivergingLog:iC,scaleDivergingPow:V0,scaleDivergingSqrt:mG,scaleDivergingSymlog:oC,scaleIdentity:bS,scaleImplicit:y0,scaleLinear:w0,scaleLog:wS,scaleOrdinal:v0,scalePoint:EH,scalePow:T0,scaleQuantile:PS,scaleQuantize:jS,scaleRadial:DS,scaleSequential:QS,scaleSequentialLog:eC,scaleSequentialPow:z0,scaleSequentialQuantile:nC,scaleSequentialSqrt:hG,scaleSequentialSymlog:tC,scaleSqrt:YH,scaleSymlog:kS,scaleThreshold:MS,scaleTime:dG,scaleUtc:fG,tickFormat:vS},Symbol.toStringTag,{value:"Module"})),pG=["linear","time","log","sqrt"];function yG(e){return`scale${(n=>n&&n[0].toUpperCase()+n.slice(1))(e)}`}function aC(e){return typeof e=="function"?Se(e.copy)&&Se(e.domain)&&Se(e.range):typeof e=="string"?pG.includes(e):!1}function sC(e,t){if(e.scale){if(e.scale.x||e.scale.y)return!!e.scale[t]}else return!1;return!0}function vG(e,t){if(!sC(e,t))return;const n=e.scale[t]||e.scale;return typeof n=="string"?n:cC(n)}function bG(e,t){let n;if(e.domain&&e.domain[t]?n=e.domain[t]:e.domain&&Array.isArray(e.domain)&&(n=e.domain),!!n)return ar(n)?"time":"linear"}function lC(e,t){if(!e.data)return"linear";const n=Nd(e[t]),r=e.data.map(i=>{const o=It(n(i))?n(i)[t]:n(i);return o!==void 0?o:i[t]});return ar(r)?"time":"linear"}function dc(e){if(aC(e)){const t=yG(e);return gG[t]()}return w0()}function ur(e,t){const n=fc(e,t);if(n)return typeof n=="string"?dc(n):n;const r=bG(e,t)||lC(e,t);return dc(r)}function fc(e,t){if(!sC(e,t))return;const n=e.scale[t]||e.scale;if(aC(n))return Se(n)?n:dc(n)}function af(e,t){return vG(e,t)||lC(e,t)}const xG=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function cC(e){if(typeof e=="string")return e;const t=xG.filter(n=>e[n.method]!==void 0)[0];return t?t.name:void 0}const _G="@@__IMMUTABLE_ITERABLE__@@",SG="@@__IMMUTABLE_RECORD__@@",CG="@@__IMMUTABLE_LIST__@@";function hc(e){return!!(e&&e[_G])}function wG(e){return!!(e&&e[SG])}function EG(e){return hc(e)||wG(e)}function OG(e){return!!(e&&e[CG])}function uC(e,t){return hc(e)?e.reduce((n,r,i)=>{let o=r;return t&&t[i]&&(o=uC(r)),n[i]=o,n},OG(e)?[]:{}):e}function U0(e){const t={errorX:!0,errorY:!0};return EG(e)?uC(e,t):e}function dC(e){return hc(e)?e.size:e.length}function fC(e,t){const r=(It(e.domain)?e.domain[t]:e.domain)||ur(e,t).domain(),i=e.samples||1,o=Math.max(...r),a=Math.min(...r),s=(o-a)/i,l=a0(a,o,s);return l[l.length-1]===o?l:l.concat(o)}function hC(e,t,n){if(n===void 0&&(n="ascending"),!t)return e;let r=t;return(t==="x"||t==="y")&&(r=`_${t}`),fs(e,r,n==="ascending"?"asc":"desc")}function kG(e,t){const n=1/Number.MAX_SAFE_INTEGER,r={x:af(t,"x"),y:af(t,"y")};if(r.x!=="log"&&r.y!=="log")return e;const i=(a,s)=>r[s]==="log"?a[`_${s}`]!==0:!0,o=a=>{const s=i(a,"x")?a._x:n,l=i(a,"y")?a._y:n,c=i(a,"y0")?a._y0:n;return Object.assign({},a,{_x:s,_y:l,_y0:c})};return e.map(a=>i(a,"x")&&i(a,"y")&&i(a,"y0")?a:o(a))}function TG(e){return Se(e)?e:e==null?()=>{}:Z2(e)}function AG(e,t){const n=!!e.eventKey,r=TG(e.eventKey);return t.map((i,o)=>{if(i.eventKey!==void 0)return i;if(n){const a=r(i,o);return a!==void 0?Object.assign({eventKey:a},i):i}return i})}function DG(e,t,n){const r=m=>m!==void 0,i=Mn(t.x),o=sr(t.x),a=Mn(t.y),s=sr(t.y),l=m=>p=>r(p)&&p<m,c=m=>p=>r(p)&&p>m,u=l(i),d=l(a),f=c(o),h=c(s);return e.map(m=>{let{_x:p,_y:y,_y0:b,_y1:x}=m;(u(p)||f(p))&&(p=null);const S=r(b)?b:n,C=r(x)?x:y;return r(C)?(!r(S)&&(d(C)||h(C))&&(y=null),(d(S)&&d(C)||h(S)&&h(C))&&(y=b=x=null),d(S)&&!d(C)&&(b=a),h(S)&&!h(C)&&(b=s),Object.assign({},m,V_({_x:p,_y:y,_y0:b,_y1:x},sH))):m})}function H0(e,t){const n=mC(e,t),r=_s(e,t),i=MG(e,t),o=oa([...n,...r,...i]);return o.length===0?null:o.reduce((a,s,l)=>(a[s]=l+1,a),{})}function PG(e,t,n){n===void 0&&(n=0);const r=dC(e);if(r>t){const i=Math.pow(2,Math.ceil(Math.log2(r/t)));return e.filter((o,a)=>(a+n)%i===0)}return e}function q0(e,t,n){if(!(Array.isArray(e)||hc(e))||dC(e)<1)return[];const i=["x","y","y0"];n=Array.isArray(n)?n:i;const o=f=>Nd(t[f]!==void 0?t[f]:f),a=n.reduce((f,h)=>(f[h]=o(h),f),{}),s=dH(n,i)&&t.x==="_x"&&t.y==="_y"&&t.y0==="_y0";let l;s===!1&&(l={x:n.indexOf("x")!==-1?H0(t,"x"):void 0,y:n.indexOf("y")!==-1?H0(t,"y"):void 0,y0:n.indexOf("y0")!==-1?H0(t,"y"):void 0});const c=s?e:e.reduce((f,h,m)=>{const p=U0(h),y={x:m,y:p},b=n.reduce((S,C)=>{const _=a[C](p),w=_!==void 0?_:y[C];return w!==void 0&&(typeof w=="string"&&l[C]?(S[`${C}Name`]=w,S[`_${C}`]=l[C][w]):S[`_${C}`]=w),S},{}),x=Object.assign({},b,p);return bt(x)||f.push(x),f},[]),u=hC(c,t.sortKey,t.sortOrder),d=kG(u,t);return AG(t,d)}function jG(e){const t=fC(e,"x"),n=fC(e,"y");return t.map((i,o)=>({x:i,y:n[o]}))}function G0(e,t){return e.categories&&!Array.isArray(e.categories)?e.categories[t]:e.categories}function mn(e){return e.data?q0(e.data,e):q0(jG(e),e)}function mC(e,t){const{tickValues:n,tickFormat:r}=e;let i;return!n||!Array.isArray(n)&&!n[t]?i=r&&Array.isArray(r)?r:[]:i=n[t]||n,i.filter(o=>typeof o=="string")}function _s(e,t){if(!e.categories)return[];const n=G0(e,t),r=n&&n.filter(i=>typeof i=="string");return r?TV(r):[]}function MG(e,t){if(!(Array.isArray(e.data)||hc(e.data)))return[];const r=e[t]===void 0?t:e[t],i=Nd(r),o=e.data.reduce((l,c)=>(l.push(U0(c)),l),[]);return hC(o,e.sortKey,e.sortOrder).reduce((l,c)=>{const u=U0(c);return l.push(i(u)),l},[]).filter(l=>typeof l=="string").reduce((l,c)=>(c!=null&&l.indexOf(c)===-1&&l.push(c),l),[])}function Ss(e){const t=i=>i&&i.type?i.type.role:"";let n=t(e);if(n==="portal"){const i=v.Children.toArray(e.props.children);n=i.length?t(i[0]):""}return["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(n)}function IG(e,t,n){return af(t,n)!=="log"?e:(o=>{const a=o[0]<0||o[1]<0?-1/Number.MAX_SAFE_INTEGER:1/Number.MAX_SAFE_INTEGER,s=o[0]===0?a:o[0],l=o[1]===0?a:o[1];return[s,l]})(e)}function $G(e,t){const n=r=>Array.isArray(r)?{left:r[0],right:r[1]}:{left:r,right:r};return It(e.domainPadding)?n(e.domainPadding[t]):n(e.domainPadding)}function LG(e,t){const n=`_${t}`;return e.flat().map(r=>r[n]&&r[n][1]!==void 0?r[n][1]:r[n])}function gC(e,t,n){n===void 0&&(n="min");const r=s=>n==="max"?Math.max(...s):Math.min(...s),i=n==="max"?-1/0:1/0;let o=!1;const a=e.flat().reduce((s,l)=>{const c=l[`_${t}0`]!==void 0?l[`_${t}0`]:l[`_${t}`],u=l[`_${t}1`]!==void 0?l[`_${t}1`]:l[`_${t}`],d=r([c,u]);return o=o||c instanceof Date||u instanceof Date,r([s,d])},i);return o?new Date(a):a}function FG(e,t,n){if(!t.domainPadding)return e;const r=fa(t,n),i=da(t,n),o=$G(t,n);if(!o.left&&!o.right)return e;const a=Mn(e),s=sr(e),l=yV(n,t.horizontal),c=Wt(t,l),u=Math.abs(c[0]-c[1]),d=Math.max(u-o.left-o.right,1),f=Math.abs(s.valueOf()-a.valueOf())/d*u,h={left:f*o.left/u,right:f*o.right/u};let m={min:a.valueOf()-h.left,max:s.valueOf()+h.right};const p=It(t.singleQuadrantDomainPadding)?t.singleQuadrantDomainPadding[n]:t.singleQuadrantDomainPadding,y=a>=0&&m.min<=0||s<=0&&m.max>=0,b=(S,C)=>C==="min"&&a>=0&&S<=0||C==="max"&&s<=0&&S>=0?0:S;if(y&&p!==!1){const S={left:Math.abs(s-a)*o.left/u,right:Math.abs(s-a)*o.right/u},C={min:b(a.valueOf()-S.left,"min"),max:b(s.valueOf()+S.right,"max")},_={left:Math.abs(C.max-C.min)*o.left/u,right:Math.abs(C.max-C.min)*o.right/u};m={min:b(a.valueOf()-_.left,"min"),max:b(s.valueOf()+_.right,"max")}}const x={min:r!==void 0?r:m.min,max:i!==void 0?i:m.max};return a instanceof Date||s instanceof Date?Ai(new Date(x.min),new Date(x.max)):Ai(x.min,x.max)}function Y0(e,t){const n=Se(e)?e:Z0,r=Se(t)?t:K0;return(i,o)=>{const a=X0(i,o);if(a)return r(a,i,o);const s=G0(i,o),l=s?NG(i,o,s):n(i,o);return l?r(l,i,o):void 0}}function K0(e,t,n){return IG(FG(e,t,n),t,n)}function ua(e,t){return Y0()(e,t)}function NG(e,t,n){const r=n||G0(e,t),{polar:i,startAngle:o=0,endAngle:a=360}=e;if(!r)return;const s=fa(e,t),l=da(e,t),c=zd(r)?_s(e,t):[],u=c.length===0?null:c.reduce((p,y,b)=>(p[y]=b+1,p),{}),d=u?r.map(p=>u[p]):r,f=s!==void 0?s:Mn(d),h=l!==void 0?l:sr(d),m=Ai(f,h);return i&&t==="x"&&Math.abs(o-a)===360?Q0(m,d):m}function Z0(e,t,n){const r=n||mn(e),{polar:i,startAngle:o=0,endAngle:a=360}=e,s=fa(e,t),l=da(e,t);if(r.length<1)return s!==void 0&&l!==void 0?Ai(s,l):void 0;const c=s!==void 0?s:gC(r,t,"min"),u=l!==void 0?l:gC(r,t,"max"),d=Ai(c,u);return i&&t==="x"&&Math.abs(o-a)===360?Q0(d,LG(r,t)):d}function Ai(e,t){const n=r=>{const i=r===0?2*Math.pow(10,-10):Math.pow(10,-10),o=1,a=r instanceof Date?new Date(Number(r)-o):Number(r)-i,s=r instanceof Date?new Date(Number(r)+o):Number(r)+i;return r===0?[0,s]:[a,s]};return Number(e)===Number(t)?n(t):[e,t]}function X0(e,t){const n=fa(e,t),r=da(e,t);if(It(e.domain)&&e.domain[t])return e.domain[t];if(Array.isArray(e.domain))return e.domain;if(n!==void 0&&r!==void 0)return Ai(n,r)}function J0(e,t){const n=X0(e,t);if(n)return n;const r=mn(e),i=r.reduce((l,c)=>c._y0<l?c._y0:l,1/0),o=l=>{if(t==="x")return l;const c=i!==1/0?i:0,u=da(e,t),d=fa(e,t),f=u!==void 0?u:sr(l,c),h=d!==void 0?d:Mn(l,c);return Ai(h,f)};return Y0(()=>Z0(e,t,r),l=>K0(o(l),e,t))(e,t)}function da(e,t){return It(e.maxDomain)&&e.maxDomain[t]!==void 0?e.maxDomain[t]:typeof e.maxDomain=="number"||tS(e.maxDomain)?e.maxDomain:void 0}function fa(e,t){return It(e.minDomain)&&e.minDomain[t]!==void 0?e.minDomain[t]:typeof e.minDomain=="number"||tS(e.minDomain)?e.minDomain:void 0}function Q0(e,t){const n=iH(t.sort((i,o)=>i-o)),r=n[1]-n[0];return[e[0],e[1]+r]}function pC(e){const t=i=>i&&i.type?i.type.role:"";let n=t(e);if(n==="portal"){const i=v.Children.toArray(e.props.children);n=i.length?t(i[0]):""}return["area","axis","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(n)}function WG(e){return e}function dr(e){const{dependentAxis:t}=e;return t?"y":"x"}function yC(e,t){const n=t||WG,r=i=>i.reduce((o,a)=>a.type&&a.type.role==="axis"&&n(a)?o.concat(a):a.props&&a.props.children?o.concat(r(v.Children.toArray(a.props.children))):o,[]);return r(e)}function vC(e,t){return yC(e,r=>r.type.getAxis(r.props)===t)[0]}function bC(e,t){const n=i=>t==="dependent"?i.props.dependentAxis:!i.props.dependentAxis,r=i=>i.reduce((o,a)=>a.type&&a.type.role==="axis"&&n(a)||a.props&&a.props.children&&r(v.Children.toArray(a.props.children)).length>0?o.concat(a):o,[]);return r(e)}function xC(e){const t=n=>{const r=Math.min(...n),i=Math.max(...n);return i<0?i:Math.max(0,r)};return{x:ar(e.x)?new Date(Math.min(...e.x)):t(e.x),y:ar(e.y)?new Date(Math.min(...e.y)):t(e.y)}}function _C(e,t){const n=()=>e<=0&&Math.max(...t)<=0?"negative":"positive";return ar(t)?"positive":n()}function sf(e){const t=e.orientation||(e.dependentAxis?"left":"bottom");return{top:!1,bottom:!1,left:!0,right:!0}[t]}function lf(e){return e.tickValues!==void 0&&zd(e.tickValues)}function BG(e){const{tickValues:t}=e,n=dr(e),r=e.stringMap&&e.stringMap[n],i=t&&!ar(t)?c=>c:void 0;if(!r)return lf(e)?(c,u)=>t[u]:i;const o=r&&D_(r),l=["",...fs(Object.values(r),c=>c).map(c=>o[c]),""];return c=>l[c]}function RG(e){const t=dr(e),n=e.stringMap&&e.stringMap[t],r=Array.isArray(e.categories)?e.categories:e.categories&&e.categories[t],i=r&&kV(r)?r.map(a=>n[a]):void 0,o=n&&Object.values(n);return i&&i.length!==0?i:o}function ep(e){const{tickValues:t,tickFormat:n}=e;if((t==null?void 0:t.length)===0)return[];const r=dr(e),i=e.stringMap&&e.stringMap[r],o=()=>{if(!(!n||!Array.isArray(n)))return zd(n)?n.map((c,u)=>u):n};let a=t;i&&(a=RG(e)),t&&zd(t)&&(a=i?t.map(c=>i[c]):a0(1,t.length+1));const s=a?oa(a):o(),l=c=>{const u=[],d=e.domain&&e.domain[r]||e.domain;if(c)return c.forEach((f,h)=>{Array.isArray(d)?f>=Mn(d)&&f<=sr(d)&&u.push({value:f,index:h}):u.push({value:f,index:h})}),u};return Array.isArray(s)&&s.length?l(s):void 0}function SC(e,t){const{tickFormat:n}=e,r=dr(e),i=e.stringMap&&e.stringMap[r];if(n){if(n&&Array.isArray(n)){const o=ep(e),a=o==null?void 0:o.map(l=>l.index),s=n.filter((l,c)=>a==null?void 0:a.includes(c));return(l,c)=>s[c]}else if(n&&Se(n))return i?(a,s,l)=>{const c=D_(i),u=l.map(d=>c[d]);return e.tickFormat(c[a],s,u)}:n}else{const o=BG(e),a=t.tickFormat&&Se(t.tickFormat)?t.tickFormat():s=>s;return o||a}return o=>o}function CC(e,t){if(!t||!Array.isArray(e)||e.length<=t)return e;const n=Math.floor(e.length/t);return e.filter((r,i)=>i%n===0)}function wC(e,t,n){n===void 0&&(n=!1);const{tickCount:r}=e,i=ep(e);if((i==null?void 0:i.length)===0)return[""];const o=i?i.map(a=>a.value):void 0;if(o)return CC(o,r);if(t.ticks&&Se(t.ticks)){const a=r||5,s=t.ticks(a),l=Array.isArray(s)&&s.length?s:t.domain(),c=CC(l,r);if(n){const u=c.filter(d=>d!==0);return u.length?u:c}return c}return t.domain()}function zG(e,t){const{polar:n,startAngle:r=0,endAngle:i=360}=e,o=ep(e),a=o&&(o==null?void 0:o.length)!==0?o.map(b=>b.value):void 0;if(!Array.isArray(a))return;const s=fa(e,t),l=da(e,t),c=lf(e),u=a.map(b=>Number(b)),d=c?1:Mn(u),f=c?a.length:sr(u),p=Ai(s!==void 0?s:d,l!==void 0?l:f),y=n&&t==="x"&&Math.abs(r-i)===360?Q0(p,u):p;return sf(e)&&!n&&y.reverse(),y}function Cs(e,t){const n=dr(e);if(!(t&&t!==n))return Y0(zG)(e,n)}function EC(e,t){if(!e.axisValue)return;const n=t==="x"?"y":"x",r=Ll(e.scale)&&Se(e.scale[n])?e.scale[n]:void 0;if(!r)return;const i=t==="x"?"y":"x",o=Ll(e.stringMap)&&e.stringMap[i],a=o&&typeof e.axisValue=="string"?o[e.axisValue]:e.axisValue;return r(a)}function cf(e,t){if(!Ll(e.theme))return Bt(e,t,"axis");let n="axis";if(e.dependentAxis&&e.theme.dependentAxis?n="dependentAxis":!e.dependentAxis&&e.theme.independentAxis&&(n="independentAxis"),n==="axis")return Bt(e,t,"axis");const r=K({},e.theme[n],e.theme.axis),i=Object.assign({},e.theme,{axis:r});return Bt(Object.assign({},e,{theme:i}),t,"axis")}function OC(){return{onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}}}function kC(){return{onLoad:{duration:2e3,before:()=>({_y:0,_y1:0,_y0:0}),after:e=>({_y:e._y,_y1:e._y1,_y0:e._y0})},onExit:{duration:500,before:(e,t,n)=>{const r=i=>(t===0?n[t+1]:n[t-1])[i];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:(e,t,n)=>{const r=i=>(t===0?n[t+1]:n[t-1])[i];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}},after:e=>({_x:e._x,_y:e._y,_y1:e._y1,_y0:e._y0})}}}function VG(){return{onLoad:{duration:2e3,before:()=>({opacity:0}),after:e=>e},onExit:{duration:600,before:()=>({opacity:0})},onEnter:{duration:600,before:()=>({opacity:0}),after:e=>e}}}function TC(e){const t=v.useRef();return v.useEffect(()=>{t.current=e}),t.current}const UG={nodesShouldLoad:!1,nodesDoneLoad:!1,animating:!0},AC=function(e){e===void 0&&(e=UG);const[t,n]=v.useState(e),r=v.useCallback(s=>{n(l=>({...l,...s}))},[n]),i=v.useCallback((s,l,c)=>{if(!(s!=null&&s.animate))return l.props.animate;const u=()=>{let m=t&&t.childrenTransitions;return m=M_(m)?m[c]:m,K({childrenTransitions:m},t)};let d=s.animate&&s.animate.getTransitions;const f=u(),h=s.animate&&s.animate.parentState||f;if(!d){const m=N_(s,f,p=>r(p));d=p=>m(p,c)}return K({getTransitions:d,parentState:h},s.animate,l.props.animate)},[t,r]),o=v.useCallback((s,l)=>{if(s!=null&&s.animate)if(s.animate.parentState){const u=s.animate.parentState.nodesWillExit?s:null,d=K({oldProps:u,nextProps:l},s.animate.parentState);r(d)}else{const c=v.Children.toArray(s.children),u=v.Children.toArray(l.children),d=b=>{const x=S=>S.type&&S.type.continuous;return Array.isArray(b)?b.some(x):x(b)},f=!s.polar&&c.some(b=>{var x;return d(b)||((x=b==null?void 0:b.props)==null?void 0:x.children)&&d(b.props.children)}),{nodesWillExit:h,nodesWillEnter:m,childrenTransitions:p,nodesShouldEnter:y}=F_(c,u);r({nodesWillExit:h,nodesWillEnter:m,nodesShouldEnter:y,childrenTransitions:M_(p)?p[0]:p,oldProps:h?s:void 0,nextProps:l,continuous:f})}},[r]),a=v.useCallback(s=>t&&t.nodesWillExit&&t.oldProps||s,[t]);return{state:t,setState:r,getAnimationProps:i,setAnimationState:o,getProps:a}};function HG(e,t){t===void 0&&(t={});const n=t._y>=0?1:-1,r=e.style&&e.style.labels||{};return t.verticalAnchor||r.verticalAnchor?t.verticalAnchor||r.verticalAnchor:e.horizontal?"middle":n>=0?"end":"start"}function qG(e,t){t===void 0&&(t={});const{style:n,horizontal:r}=e,i=t._y>=0?1:-1,o=n&&n.labels||{};return t.verticalAnchor||o.verticalAnchor?t.verticalAnchor||o.verticalAnchor:r?i>=0?"start":"end":"middle"}function GG(e,t){t===void 0&&(t={});const n=e.style&&e.style.labels||{};return t.angle===void 0?n.angle:t.angle}function YG(e,t){t===void 0&&(t={});const{horizontal:n,style:r}=e,i=r.labels||{},o=ne(i.padding,e)||0,a=t._y<0?-1:1;return{x:n?a*o:0,y:n?0:-1*a*o}}function KG(e,t){if(e.polar)return{};const n=YG(e,t);return{dx:n.x,dy:n.y}}function ZG(e,t){const{polar:n}=e,{x:r,y:i}=gs(e,t);if(!n)return{x:r,y:i};const o=XG(e,t);return{x:r+o.x,y:i+o.y}}function XG(e,t){const{style:n}=e,r=mc(e,t),i=n.labels||{},o=ne(i.padding,e)||0,a=ft(r);return{x:o*Math.cos(a),y:-o*Math.sin(a)}}function tp(e){const{labelComponent:t,labelPlacement:n,polar:r}=e,i=r?"perpendicular":"vertical";return n||t.props&&t.props.labelPlacement||i}function JG(e){return e<45||e>315?"right":e>=45&&e<=135?"top":e>135&&e<225?"left":"bottom"}function uf(e,t,n){return t===void 0&&(t={}),t.label!==void 0?t.label:Array.isArray(e.labels)?e.labels[n]:e.labels}function np(e,t){const n=tp(e);return n==="perpendicular"||n==="vertical"&&(t===90||t===270)?"middle":t<=90||t>270?"start":"end"}function DC(e,t){const n=tp(e),r=JG(t);return n==="parallel"||r==="left"||r==="right"?"middle":r==="top"?"end":"start"}function rp(e,t){const{labelPlacement:n,datum:r}=e;if(!n||n==="vertical")return 0;const i=t!==void 0?t%360:mc(e,r),o=i>90&&i<180||i>270?1:-1;let a=0;return i===0||i===180?a=90:i>0&&i<180?a=90-i:i>180&&i<360&&(a=270-i),a+o*(n==="perpendicular"?0:90)}function mc(e,t){const{x:n}=o0(t);return _i(e.scale.x(n))%360}function ip(e,t){const{scale:n,data:r,style:i,horizontal:o,polar:a,width:s,height:l,theme:c,labelComponent:u,disableInlineStyles:d}=e,f=r[t],h=mc(e,f),m=a?np(e,h):qG(e,f),p=a?DC(e,h):HG(e,f),y=GG(e,f),b=uf(e,f,t),x=tp(e),{x:S,y:C}=ZG(e,f),{dx:_,dy:w}=KG(e,f),k={angle:y,data:r,datum:f,disableInlineStyles:d,horizontal:o,index:t,polar:a,scale:n,labelPlacement:x,text:b,textAnchor:m,verticalAnchor:p,x:S,y:C,dx:_,dy:w,width:s,height:l,style:i.labels};if(!Ld(u))return k;const A=c&&c.tooltip||{};return K({},k,ec(A,["style"]))}function je(e){return function(){return e}}const PC=Math.abs,gn=Math.atan2,Di=Math.cos,QG=Math.max,ws=Math.min,In=Math.sin,xt=Math.sqrt,pn=1e-12,vo=Math.PI,df=vo/2,bo=2*vo;function eY(e){return e>1?0:e<-1?vo:Math.acos(e)}function jC(e){return e>=1?df:e<=-1?-df:Math.asin(e)}const op=Math.PI,ap=2*op,ha=1e-6,tY=ap-ha;function MC(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function nY(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return MC;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}let rY=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?MC:nY(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,l=r-t,c=i-n,u=a-t,d=s-n,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>ha)if(!(Math.abs(d*l-c*u)>ha)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-a,m=i-s,p=l*l+c*c,y=h*h+m*m,b=Math.sqrt(p),x=Math.sqrt(f),S=o*Math.tan((op-Math.acos((p+f-y)/(2*b*x)))/2),C=S/x,_=S/b;Math.abs(C-1)>ha&&this._append`L${t+C*u},${n+C*d}`,this._append`A${o},${o},0,0,${+(d*h>u*m)},${this._x1=t+_*l},${this._y1=n+_*c}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),c=t+s,u=n+l,d=1^a,f=a?i-o:o-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>ha||Math.abs(this._y1-u)>ha)&&this._append`L${c},${u}`,r&&(f<0&&(f=f%ap+ap),f>tY?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:f>ha&&this._append`A${r},${r},0,${+(f>=op)},${d},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function gc(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new rY(t)}function iY(e){return e.innerRadius}function oY(e){return e.outerRadius}function aY(e){return e.startAngle}function sY(e){return e.endAngle}function lY(e){return e&&e.padAngle}function cY(e,t,n,r,i,o,a,s){var l=n-e,c=r-t,u=a-i,d=s-o,f=d*l-u*c;if(!(f*f<pn))return f=(u*(t-o)-d*(e-i))/f,[e+f*l,t+f*c]}function ff(e,t,n,r,i,o,a){var s=e-n,l=t-r,c=(a?o:-o)/xt(s*s+l*l),u=c*l,d=-c*s,f=e+u,h=t+d,m=n+u,p=r+d,y=(f+m)/2,b=(h+p)/2,x=m-f,S=p-h,C=x*x+S*S,_=i-o,w=f*p-m*h,k=(S<0?-1:1)*xt(QG(0,_*_*C-w*w)),A=(w*S-x*k)/C,j=(-w*x-S*k)/C,M=(w*S+x*k)/C,T=(-w*x+S*k)/C,P=A-y,D=j-b,I=M-y,$=T-b;return P*P+D*D>I*I+$*$&&(A=M,j=T),{cx:A,cy:j,x01:-u,y01:-d,x11:A*(i/_-1),y11:j*(i/_-1)}}function sp(){var e=iY,t=oY,n=je(0),r=null,i=aY,o=sY,a=lY,s=null,l=gc(c);function c(){var u,d,f=+e.apply(this,arguments),h=+t.apply(this,arguments),m=i.apply(this,arguments)-df,p=o.apply(this,arguments)-df,y=PC(p-m),b=p>m;if(s||(s=u=l()),h<f&&(d=h,h=f,f=d),!(h>pn))s.moveTo(0,0);else if(y>bo-pn)s.moveTo(h*Di(m),h*In(m)),s.arc(0,0,h,m,p,!b),f>pn&&(s.moveTo(f*Di(p),f*In(p)),s.arc(0,0,f,p,m,b));else{var x=m,S=p,C=m,_=p,w=y,k=y,A=a.apply(this,arguments)/2,j=A>pn&&(r?+r.apply(this,arguments):xt(f*f+h*h)),M=ws(PC(h-f)/2,+n.apply(this,arguments)),T=M,P=M,D,I;if(j>pn){var $=jC(j/f*In(A)),W=jC(j/h*In(A));(w-=$*2)>pn?($*=b?1:-1,C+=$,_-=$):(w=0,C=_=(m+p)/2),(k-=W*2)>pn?(W*=b?1:-1,x+=W,S-=W):(k=0,x=S=(m+p)/2)}var B=h*Di(x),U=h*In(x),V=f*Di(_),F=f*In(_);if(M>pn){var H=h*Di(S),X=h*In(S),J=f*Di(C),Q=f*In(C),ee;if(y<vo)if(ee=cY(B,U,J,Q,H,X,V,F)){var ie=B-ee[0],ue=U-ee[1],he=H-ee[0],Z=X-ee[1],re=1/In(eY((ie*he+ue*Z)/(xt(ie*ie+ue*ue)*xt(he*he+Z*Z)))/2),pe=xt(ee[0]*ee[0]+ee[1]*ee[1]);T=ws(M,(f-pe)/(re-1)),P=ws(M,(h-pe)/(re+1))}else T=P=0}k>pn?P>pn?(D=ff(J,Q,B,U,h,P,b),I=ff(H,X,V,F,h,P,b),s.moveTo(D.cx+D.x01,D.cy+D.y01),P<M?s.arc(D.cx,D.cy,P,gn(D.y01,D.x01),gn(I.y01,I.x01),!b):(s.arc(D.cx,D.cy,P,gn(D.y01,D.x01),gn(D.y11,D.x11),!b),s.arc(0,0,h,gn(D.cy+D.y11,D.cx+D.x11),gn(I.cy+I.y11,I.cx+I.x11),!b),s.arc(I.cx,I.cy,P,gn(I.y11,I.x11),gn(I.y01,I.x01),!b))):(s.moveTo(B,U),s.arc(0,0,h,x,S,!b)):s.moveTo(B,U),!(f>pn)||!(w>pn)?s.lineTo(V,F):T>pn?(D=ff(V,F,H,X,f,-T,b),I=ff(B,U,J,Q,f,-T,b),s.lineTo(D.cx+D.x01,D.cy+D.y01),T<M?s.arc(D.cx,D.cy,T,gn(D.y01,D.x01),gn(I.y01,I.x01),!b):(s.arc(D.cx,D.cy,T,gn(D.y01,D.x01),gn(D.y11,D.x11),!b),s.arc(0,0,f,gn(D.cy+D.y11,D.cx+D.x11),gn(I.cy+I.y11,I.cx+I.x11),b),s.arc(I.cx,I.cy,T,gn(I.y11,I.x11),gn(I.y01,I.x01),!b))):s.arc(0,0,f,_,C,b)}if(s.closePath(),u)return s=null,u+""||null}return c.centroid=function(){var u=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-vo/2;return[Di(d)*u,In(d)*u]},c.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:je(+u),c):e},c.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:je(+u),c):t},c.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:je(+u),c):n},c.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:je(+u),c):r},c.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:je(+u),c):i},c.endAngle=function(u){return arguments.length?(o=typeof u=="function"?u:je(+u),c):o},c.padAngle=function(u){return arguments.length?(a=typeof u=="function"?u:je(+u),c):a},c.context=function(u){return arguments.length?(s=u??null,c):s},c}var uY=Array.prototype.slice;function hf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function IC(e){this._context=e}IC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function pc(e){return new IC(e)}function lp(e){return e[0]}function cp(e){return e[1]}function mf(e,t){var n=je(!0),r=null,i=pc,o=null,a=gc(s);e=typeof e=="function"?e:e===void 0?lp:je(e),t=typeof t=="function"?t:t===void 0?cp:je(t);function s(l){var c,u=(l=hf(l)).length,d,f=!1,h;for(r==null&&(o=i(h=a())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(d,c,l),+t(d,c,l));if(h)return o=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:je(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:je(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:je(!!l),s):n},s.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),s):r},s}function gf(e,t,n){var r=null,i=je(!0),o=null,a=pc,s=null,l=gc(c);e=typeof e=="function"?e:e===void 0?lp:je(+e),t=typeof t=="function"?t:je(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?cp:je(+n);function c(d){var f,h,m,p=(d=hf(d)).length,y,b=!1,x,S=new Array(p),C=new Array(p);for(o==null&&(s=a(x=l())),f=0;f<=p;++f){if(!(f<p&&i(y=d[f],f,d))===b)if(b=!b)h=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=f-1;m>=h;--m)s.point(S[m],C[m]);s.lineEnd(),s.areaEnd()}b&&(S[f]=+e(y,f,d),C[f]=+t(y,f,d),s.point(r?+r(y,f,d):S[f],n?+n(y,f,d):C[f]))}if(x)return s=null,x+""||null}function u(){return mf().defined(i).curve(a).context(o)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:je(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:je(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:je(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:je(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:je(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:je(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:je(!!d),c):i},c.curve=function(d){return arguments.length?(a=d,o!=null&&(s=a(o)),c):a},c.context=function(d){return arguments.length?(d==null?o=s=null:s=a(o=d),c):o},c}function dY(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function fY(e){return e}function $C(){var e=fY,t=dY,n=null,r=je(0),i=je(bo),o=je(0);function a(s){var l,c=(s=hf(s)).length,u,d,f=0,h=new Array(c),m=new Array(c),p=+r.apply(this,arguments),y=Math.min(bo,Math.max(-bo,i.apply(this,arguments)-p)),b,x=Math.min(Math.abs(y)/c,o.apply(this,arguments)),S=x*(y<0?-1:1),C;for(l=0;l<c;++l)(C=m[h[l]=l]=+e(s[l],l,s))>0&&(f+=C);for(t!=null?h.sort(function(_,w){return t(m[_],m[w])}):n!=null&&h.sort(function(_,w){return n(s[_],s[w])}),l=0,d=f?(y-c*S)/f:0;l<c;++l,p=b)u=h[l],C=m[u],b=p+(C>0?C*d:0)+S,m[u]={data:s[u],index:l,value:C,startAngle:p,endAngle:b,padAngle:x};return m}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:je(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:je(+s),a):r},a.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:je(+s),a):i},a.padAngle=function(s){return arguments.length?(o=typeof s=="function"?s:je(+s),a):o},a}var LC=up(pc);function FC(e){this._curve=e}FC.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function up(e){function t(n){return new FC(e(n))}return t._curve=e,t}function yc(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(n){return arguments.length?t(up(n)):t()._curve},e}function dp(){return yc(mf().curve(LC))}function fp(){var e=gf().curve(LC),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return yc(n())},delete e.lineX0,e.lineEndAngle=function(){return yc(r())},delete e.lineX1,e.lineInnerRadius=function(){return yc(i())},delete e.lineY0,e.lineOuterRadius=function(){return yc(o())},delete e.lineY1,e.curve=function(a){return arguments.length?t(up(a)):t()._curve},e}function vc(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}class NC{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}class hY{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,n){if(t=+t,n=+n,this._point===0)this._point=1;else{const r=vc(this._x0,this._y0),i=vc(this._x0,this._y0=(this._y0+n)/2),o=vc(t,this._y0),a=vc(t,n);this._context.moveTo(...r),this._context.bezierCurveTo(...i,...o,...a)}this._x0=t,this._y0=n}}function WC(e){return new NC(e,!0)}function BC(e){return new NC(e,!1)}function mY(e){return new hY(e)}function gY(e){return e.source}function pY(e){return e.target}function pf(e){let t=gY,n=pY,r=lp,i=cp,o=null,a=null,s=gc(l);function l(){let c;const u=uY.call(arguments),d=t.apply(this,u),f=n.apply(this,u);if(o==null&&(a=e(c=s())),a.lineStart(),u[0]=d,a.point(+r.apply(this,u),+i.apply(this,u)),u[0]=f,a.point(+r.apply(this,u),+i.apply(this,u)),a.lineEnd(),c)return a=null,c+""||null}return l.source=function(c){return arguments.length?(t=c,l):t},l.target=function(c){return arguments.length?(n=c,l):n},l.x=function(c){return arguments.length?(r=typeof c=="function"?c:je(+c),l):r},l.y=function(c){return arguments.length?(i=typeof c=="function"?c:je(+c),l):i},l.context=function(c){return arguments.length?(c==null?o=a=null:a=e(o=c),l):o},l}function yY(){return pf(WC)}function vY(){return pf(BC)}function bY(){const e=pf(mY);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}const xY=xt(3),RC={draw(e,t){const n=xt(t+ws(t/28,.75))*.59436,r=n/2,i=r*xY;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-i,-r),e.lineTo(i,r),e.moveTo(-i,r),e.lineTo(i,-r)}},yf={draw(e,t){const n=xt(t/vo);e.moveTo(n,0),e.arc(0,0,n,0,bo)}},zC={draw(e,t){const n=xt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},VC=xt(1/3),_Y=VC*2,UC={draw(e,t){const n=xt(t/_Y),r=n*VC;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},HC={draw(e,t){const n=xt(t)*.62625;e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},qC={draw(e,t){const n=xt(t-ws(t/7,2))*.87559;e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},GC={draw(e,t){const n=xt(t),r=-n/2;e.rect(r,r,n,n)}},YC={draw(e,t){const n=xt(t)*.4431;e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}},SY=.8908130915292852,KC=In(vo/10)/In(7*vo/10),CY=In(bo/10)*KC,wY=-Di(bo/10)*KC,ZC={draw(e,t){const n=xt(t*SY),r=CY*n,i=wY*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=bo*o/5,s=Di(a),l=In(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*i,l*r+s*i)}e.closePath()}},hp=xt(3),XC={draw(e,t){const n=-xt(t/(hp*3));e.moveTo(0,n*2),e.lineTo(-hp*n,-n),e.lineTo(hp*n,-n),e.closePath()}},EY=xt(3),JC={draw(e,t){const n=xt(t)*.6824,r=n/2,i=n*EY/2;e.moveTo(0,-n),e.lineTo(i,r),e.lineTo(-i,r),e.closePath()}},fr=-.5,hr=xt(3)/2,mp=1/xt(12),OY=(mp/2+1)*3,QC={draw(e,t){const n=xt(t/OY),r=n/2,i=n*mp,o=r,a=n*mp+n,s=-o,l=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,l),e.lineTo(fr*r-hr*i,hr*r+fr*i),e.lineTo(fr*o-hr*a,hr*o+fr*a),e.lineTo(fr*s-hr*l,hr*s+fr*l),e.lineTo(fr*r+hr*i,fr*i-hr*r),e.lineTo(fr*o+hr*a,fr*a-hr*o),e.lineTo(fr*s+hr*l,fr*l-hr*s),e.closePath()}},gp={draw(e,t){const n=xt(t-ws(t/6,1.7))*.6189;e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}},ew=[yf,zC,UC,GC,ZC,XC,QC],kY=[yf,qC,gp,JC,RC,YC,HC];function TY(e,t){let n=null,r=gc(i);e=typeof e=="function"?e:je(e||yf),t=typeof t=="function"?t:je(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:je(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:je(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function xo(){}function vf(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function bf(e){this._context=e}bf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:vf(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:vf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function AY(e){return new bf(e)}function tw(e){this._context=e}tw.prototype={areaStart:xo,areaEnd:xo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:vf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function DY(e){return new tw(e)}function nw(e){this._context=e}nw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:vf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function PY(e){return new nw(e)}function rw(e,t){this._basis=new bf(e),this._beta=t}rw.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],o=e[n]-r,a=t[n]-i,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*o),this._beta*t[s]+(1-this._beta)*(i+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const jY=function e(t){function n(r){return t===1?new bf(r):new rw(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function xf(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function pp(e,t){this._context=e,this._k=(1-t)/6}pp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:xf(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:xf(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const MY=function e(t){function n(r){return new pp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function yp(e,t){this._context=e,this._k=(1-t)/6}yp.prototype={areaStart:xo,areaEnd:xo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:xf(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const IY=function e(t){function n(r){return new yp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function vp(e,t){this._context=e,this._k=(1-t)/6}vp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:xf(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const $Y=function e(t){function n(r){return new vp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function bp(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>pn){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>pn){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function iw(e,t){this._context=e,this._alpha=t}iw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:bp(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const LY=function e(t){function n(r){return t?new iw(r,t):new pp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function ow(e,t){this._context=e,this._alpha=t}ow.prototype={areaStart:xo,areaEnd:xo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:bp(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const FY=function e(t){function n(r){return t?new ow(r,t):new yp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function aw(e,t){this._context=e,this._alpha=t}aw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:bp(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const NY=function e(t){function n(r){return t?new aw(r,t):new vp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function sw(e){this._context=e}sw.prototype={areaStart:xo,areaEnd:xo,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function WY(e){return new sw(e)}function lw(e){return e<0?-1:1}function cw(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(lw(o)+lw(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function uw(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function xp(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function _f(e){this._context=e}_f.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:xp(this,this._t0,uw(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,xp(this,uw(this,n=cw(this,e,t)),n);break;default:xp(this,this._t0,n=cw(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function dw(e){this._context=new fw(e)}(dw.prototype=Object.create(_f.prototype)).point=function(e,t){_f.prototype.point.call(this,t,e)};function fw(e){this._context=e}fw.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function BY(e){return new _f(e)}function RY(e){return new dw(e)}function hw(e){this._context=e}hw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=mw(e),i=mw(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function mw(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function zY(e){return new hw(e)}function Sf(e,t){this._context=e,this._t=t}Sf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function VY(e){return new Sf(e,.5)}function UY(e){return new Sf(e,0)}function HY(e){return new Sf(e,1)}function Es(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Os(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function qY(e,t){return e[t]}function GY(e){const t=[];return t.key=e,t}function YY(){var e=je([]),t=Os,n=Es,r=qY;function i(o){var a=Array.from(e.apply(this,arguments),GY),s,l=a.length,c=-1,u;for(const d of o)for(s=0,++c;s<l;++s)(a[s][c]=[0,+r(d,a[s].key,c,o)]).data=d;for(s=0,u=hf(t(a));s<l;++s)a[u[s]].index=s;return n(a,u),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:je(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:je(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?Os:typeof o=="function"?o:je(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??Es,i):n},i}function KY(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}Es(e,t)}}function ZY(e,t){if((l=e.length)>0)for(var n,r=0,i,o,a,s,l,c=e[t[0]].length;r<c;++r)for(a=s=0,n=0;n<l;++n)(o=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=a,i[1]=a+=o):o<0?(i[1]=s,i[0]=s+=o):(i[0]=0,i[1]=o)}function XY(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,s=0;a<i;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}Es(e,t)}}function JY(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var s=0,l=0,c=0;s<a;++s){for(var u=e[t[s]],d=u[r][1]||0,f=u[r-1][1]||0,h=(d-f)/2,m=0;m<s;++m){var p=e[t[m]],y=p[r][1]||0,b=p[r-1][1]||0;h+=y-b}l+=d,c+=h*d}i[r-1][1]+=i[r-1][0]=n,l&&(n-=c/l)}i[r-1][1]+=i[r-1][0]=n,Es(e,t)}}function gw(e){var t=e.map(QY);return Os(e).sort(function(n,r){return t[n]-t[r]})}function QY(e){for(var t=-1,n=0,r=e.length,i,o=-1/0;++t<r;)(i=+e[t][1])>o&&(o=i,n=t);return n}function pw(e){var t=e.map(yw);return Os(e).sort(function(n,r){return t[n]-t[r]})}function yw(e){for(var t=0,n=-1,r=e.length,i;++n<r;)(i=+e[n][1])&&(t+=i);return t}function eK(e){return pw(e).reverse()}function tK(e){var t=e.length,n,r,i=e.map(yw),o=gw(e),a=0,s=0,l=[],c=[];for(n=0;n<t;++n)r=o[n],a<s?(a+=i[r],l.push(r)):(s+=i[r],c.push(r));return c.reverse().concat(l)}function nK(e){return Os(e).reverse()}const rK=Object.freeze(Object.defineProperty({__proto__:null,arc:sp,area:gf,areaRadial:fp,curveBasis:AY,curveBasisClosed:DY,curveBasisOpen:PY,curveBumpX:WC,curveBumpY:BC,curveBundle:jY,curveCardinal:MY,curveCardinalClosed:IY,curveCardinalOpen:$Y,curveCatmullRom:LY,curveCatmullRomClosed:FY,curveCatmullRomOpen:NY,curveLinear:pc,curveLinearClosed:WY,curveMonotoneX:BY,curveMonotoneY:RY,curveNatural:zY,curveStep:VY,curveStepAfter:HY,curveStepBefore:UY,line:mf,lineRadial:dp,link:pf,linkHorizontal:yY,linkRadial:bY,linkVertical:vY,pie:$C,pointRadial:vc,radialArea:fp,radialLine:dp,stack:YY,stackOffsetDiverging:ZY,stackOffsetExpand:KY,stackOffsetNone:Es,stackOffsetSilhouette:XY,stackOffsetWiggle:JY,stackOrderAppearance:gw,stackOrderAscending:pw,stackOrderDescending:eK,stackOrderInsideOut:tK,stackOrderNone:Os,stackOrderReverse:nK,symbol:TY,symbolAsterisk:RC,symbolCircle:yf,symbolCross:zC,symbolDiamond:UC,symbolDiamond2:HC,symbolPlus:qC,symbolSquare:GC,symbolSquare2:YC,symbolStar:ZC,symbolTimes:gp,symbolTriangle:XC,symbolTriangle2:JC,symbolWye:QC,symbolX:gp,symbols:ew,symbolsFill:ew,symbolsStroke:kY},Symbol.toStringTag,{value:"Module"})),vw=e=>{const t=e._y1!==void 0?e._y1:e._y;return t!=null&&e._y0!==null},bw=e=>t=>e.x(t._x1!==void 0?t._x1:t._x),_p=e=>t=>e.y(t._y1!==void 0?t._y1:t._y),iK=e=>t=>-1*e.x(t._x1!==void 0?t._x1:t._x)+Math.PI/2,xw=e=>`curve${(n=>n&&n[0].toUpperCase()+n.slice(1))(e)}`,oK=e=>`${xw(e)}Closed`,Cf=e=>{const{interpolation:t}=e;if(typeof t=="function")return t;if(typeof t=="string"){const{polar:n,openCurve:r=!n}=e,i=r?xw(t):oK(t);return rK[i]}return pc},_w=e=>{const{polar:t,scale:n,horizontal:r}=e;return t?dp().defined(vw).curve(Cf(e)).angle(iK(n)).radius(_p(n)):mf().defined(vw).curve(Cf(e)).x(r?_p(n):bw(n)).y(r?bw(n):_p(n))};function Sp(e){process.env.NODE_ENV!=="production"&&console&&console.warn&&console.warn(e)}function aK(e,t,n){return`M ${e}, ${t}
|
159
159
|
m ${-n}, 0
|
160
160
|
a ${n}, ${n} 0 1,0 ${n*2},0
|
161
161
|
a ${n}, ${n} 0 1,0 ${-n*2},0`}function sK(e,t,n){const r=.87*n,i=e-r,o=t+r,a=e+r-i;return`M ${i}, ${o}
|