@gram-ai/elements 1.35.0 → 1.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/assistant-ui/markdown-text.d.ts +1 -1
- package/dist/components/assistant-ui/thinking-indicator.d.ts +8 -0
- package/dist/components/ui/tool-ui.d.ts +3 -1
- package/dist/elements.cjs +1 -1
- package/dist/elements.css +1 -1
- package/dist/elements.js +2 -2
- package/dist/hooks/useGramThreadListAdapter.d.ts +8 -0
- package/dist/{index-Dz13dSDa.js → index-Bv-yE4G1.js} +2874 -2803
- package/dist/index-Bv-yE4G1.js.map +1 -0
- package/dist/{index-D0jIGQr7.cjs → index-CGBkMd0d.cjs} +48 -48
- package/dist/index-CGBkMd0d.cjs.map +1 -0
- package/dist/index-Dpk3C8VH.cjs +194 -0
- package/dist/index-Dpk3C8VH.cjs.map +1 -0
- package/dist/{index-BhIowiZF.js → index-Em1Ot0b6.js} +8665 -8534
- package/dist/index-Em1Ot0b6.js.map +1 -0
- package/dist/plugins.cjs +1 -1
- package/dist/plugins.js +1 -1
- package/dist/{profiler-CtGKTWWP.js → profiler-BnInDjd4.js} +2 -2
- package/dist/{profiler-CtGKTWWP.js.map → profiler-BnInDjd4.js.map} +1 -1
- package/dist/{profiler-l7_HjTyw.cjs → profiler-DIwReaSQ.cjs} +2 -2
- package/dist/{profiler-l7_HjTyw.cjs.map → profiler-DIwReaSQ.cjs.map} +1 -1
- package/dist/{startRecording-DEw2Aeq4.cjs → startRecording-Cg4fxzWw.cjs} +2 -2
- package/dist/{startRecording-DEw2Aeq4.cjs.map → startRecording-Cg4fxzWw.cjs.map} +1 -1
- package/dist/{startRecording-iYEL0-vr.js → startRecording-P_J6QFPD.js} +2 -2
- package/dist/{startRecording-iYEL0-vr.js.map → startRecording-P_J6QFPD.js.map} +1 -1
- package/dist/types/index.d.ts +8 -0
- package/package.json +4 -4
- package/src/components/ShadowRoot.tsx +26 -0
- package/src/components/assistant-ui/thinking-indicator.tsx +175 -0
- package/src/components/assistant-ui/thread.tsx +2 -16
- package/src/components/assistant-ui/tool-fallback.tsx +8 -8
- package/src/components/assistant-ui/tool-group.tsx +4 -13
- package/src/components/ui/tool-ui.tsx +50 -31
- package/src/contexts/ElementsProvider.tsx +31 -5
- package/src/global.css +55 -16
- package/src/hooks/useGramThreadListAdapter.tsx +29 -9
- package/src/types/index.ts +9 -0
- package/dist/index-BhIowiZF.js.map +0 -1
- package/dist/index-D0jIGQr7.cjs.map +0 -1
- package/dist/index-Dz13dSDa.js.map +0 -1
- package/dist/index-PXd3rs95.cjs +0 -194
- package/dist/index-PXd3rs95.cjs.map +0 -1
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
"use strict";const _=require("react/jsx-runtime"),O=require("react"),XO=require("react-dom");function ZO(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const E=ZO(O),Js=ZO(XO);var io=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Oe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function JO(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=JO(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function le(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=JO(e))&&(n&&(n+=" "),n+=t);return n}const EC=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},TC=(e,t)=>({classGroupId:e,validator:t}),QO=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),No="-",Um=[],CC="arbitrary..",jC=e=>{const t=RC(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return IC(o);const s=o.split(No),c=s[0]===""&&s.length>1?1:0;return eA(s,c,t)},getConflictingClassGroupIds:(o,s)=>{if(s){const c=n[o],u=r[o];return c?u?EC(u,c):c:u||Um}return r[o]||Um}}},eA=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const i=e[t],a=r.nextPart.get(i);if(a){const u=eA(e,t+1,a);if(u)return u}const o=r.validators;if(o===null)return;const s=t===0?e.join(No):e.slice(t).join(No),c=o.length;for(let u=0;u<c;u++){const l=o[u];if(l.validator(s))return l.classGroupId}},IC=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?CC+n:void 0})(),RC=e=>{const{theme:t,classGroups:r}=e;return kC(r,t)},kC=(e,t)=>{const r=QO();for(const n in e){const i=e[n];nv(i,r,n,t)}return r},nv=(e,t,r,n)=>{const i=e.length;for(let a=0;a<i;a++){const o=e[a];MC(o,t,r,n)}},MC=(e,t,r,n)=>{if(typeof e=="string"){$C(e,t,r);return}if(typeof e=="function"){NC(e,t,r,n);return}DC(e,t,r,n)},$C=(e,t,r)=>{const n=e===""?t:tA(t,e);n.classGroupId=r},NC=(e,t,r,n)=>{if(LC(e)){nv(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(TC(r,e))},DC=(e,t,r,n)=>{const i=Object.entries(e),a=i.length;for(let o=0;o<a;o++){const[s,c]=i[o];nv(c,tA(t,s),r,n)}},tA=(e,t)=>{let r=e;const n=t.split(No),i=n.length;for(let a=0;a<i;a++){const o=n[a];let s=r.nextPart.get(o);s||(s=QO(),r.nextPart.set(o,s)),r=s}return r},LC=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,BC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const i=(a,o)=>{r[a]=o,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(a){let o=r[a];if(o!==void 0)return o;if((o=n[a])!==void 0)return i(a,o),o},set(a,o){a in r?r[a]=o:i(a,o)}}},gp="!",Hm=":",qC=[],Vm=(e,t,r,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:i}),FC=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=i=>{const a=[];let o=0,s=0,c=0,u;const l=i.length;for(let v=0;v<l;v++){const p=i[v];if(o===0&&s===0){if(p===Hm){a.push(i.slice(c,v)),c=v+1;continue}if(p==="/"){u=v;continue}}p==="["?o++:p==="]"?o--:p==="("?s++:p===")"&&s--}const f=a.length===0?i:i.slice(c);let d=f,h=!1;f.endsWith(gp)?(d=f.slice(0,-1),h=!0):f.startsWith(gp)&&(d=f.slice(1),h=!0);const m=u&&u>c?u-c:void 0;return Vm(a,h,d,m)};if(t){const i=t+Hm,a=n;n=o=>o.startsWith(i)?a(o.slice(i.length)):Vm(qC,!1,o,void 0,!0)}if(r){const i=n;n=a=>r({className:a,parseClassName:i})}return n},zC=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let i=[];for(let a=0;a<r.length;a++){const o=r[a],s=o[0]==="[",c=t.has(o);s||c?(i.length>0&&(i.sort(),n.push(...i),i=[]),n.push(o)):i.push(o)}return i.length>0&&(i.sort(),n.push(...i)),n}},WC=e=>({cache:BC(e.cacheSize),parseClassName:FC(e),sortModifiers:zC(e),...jC(e)}),UC=/\s+/,HC=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(UC);let c="";for(let u=s.length-1;u>=0;u-=1){const l=s[u],{isExternal:f,modifiers:d,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:v}=r(l);if(f){c=l+(c.length>0?" "+c:c);continue}let p=!!v,g=n(p?m.substring(0,v):m);if(!g){if(!p){c=l+(c.length>0?" "+c:c);continue}if(g=n(m),!g){c=l+(c.length>0?" "+c:c);continue}p=!1}const b=d.length===0?"":d.length===1?d[0]:a(d).join(":"),x=h?b+gp:b,w=x+g;if(o.indexOf(w)>-1)continue;o.push(w);const y=i(g,p);for(let S=0;S<y.length;++S){const A=y[S];o.push(x+A)}c=l+(c.length>0?" "+c:c)}return c},VC=(...e)=>{let t=0,r,n,i="";for(;t<e.length;)(r=e[t++])&&(n=rA(r))&&(i&&(i+=" "),i+=n);return i},rA=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=rA(e[n]))&&(r&&(r+=" "),r+=t);return r},KC=(e,...t)=>{let r,n,i,a;const o=c=>{const u=t.reduce((l,f)=>f(l),e());return r=WC(u),n=r.cache.get,i=r.cache.set,a=s,s(c)},s=c=>{const u=n(c);if(u)return u;const l=HC(c,r);return i(c,l),l};return a=o,(...c)=>a(VC(...c))},GC=[],Be=e=>{const t=r=>r[e]||GC;return t.isThemeGetter=!0,t},nA=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,iA=/^\((?:(\w[\w-]*):)?(.+)\)$/i,YC=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,XC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ZC=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,JC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,QC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ej=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,br=e=>YC.test(e),pe=e=>!!e&&!Number.isNaN(Number(e)),xr=e=>!!e&&Number.isInteger(Number(e)),Xc=e=>e.endsWith("%")&&pe(e.slice(0,-1)),Jt=e=>XC.test(e),aA=()=>!0,tj=e=>ZC.test(e)&&!JC.test(e),iv=()=>!1,rj=e=>QC.test(e),nj=e=>ej.test(e),ij=e=>!ne(e)&&!ie(e),aj=e=>Mr(e,cA,iv),ne=e=>nA.test(e),Vr=e=>Mr(e,uA,tj),Km=e=>Mr(e,pj,pe),oj=e=>Mr(e,fA,aA),sj=e=>Mr(e,lA,iv),Gm=e=>Mr(e,oA,iv),cj=e=>Mr(e,sA,nj),ao=e=>Mr(e,dA,rj),ie=e=>iA.test(e),$i=e=>hn(e,uA),uj=e=>hn(e,lA),Ym=e=>hn(e,oA),lj=e=>hn(e,cA),fj=e=>hn(e,sA),oo=e=>hn(e,dA,!0),dj=e=>hn(e,fA,!0),Mr=(e,t,r)=>{const n=nA.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},hn=(e,t,r=!1)=>{const n=iA.exec(e);return n?n[1]?t(n[1]):r:!1},oA=e=>e==="position"||e==="percentage",sA=e=>e==="image"||e==="url",cA=e=>e==="length"||e==="size"||e==="bg-size",uA=e=>e==="length",pj=e=>e==="number",lA=e=>e==="family-name",fA=e=>e==="number"||e==="weight",dA=e=>e==="shadow",hj=()=>{const e=Be("color"),t=Be("font"),r=Be("text"),n=Be("font-weight"),i=Be("tracking"),a=Be("leading"),o=Be("breakpoint"),s=Be("container"),c=Be("spacing"),u=Be("radius"),l=Be("shadow"),f=Be("inset-shadow"),d=Be("text-shadow"),h=Be("drop-shadow"),m=Be("blur"),v=Be("perspective"),p=Be("aspect"),g=Be("ease"),b=Be("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],y=()=>[...w(),ie,ne],S=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],P=()=>[ie,ne,c],T=()=>[br,"full","auto",...P()],R=()=>[xr,"none","subgrid",ie,ne],C=()=>["auto",{span:["full",xr,ie,ne]},xr,ie,ne],j=()=>[xr,"auto",ie,ne],k=()=>["auto","min","max","fr",ie,ne],N=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],D=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",...P()],L=()=>[br,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],B=()=>[br,"screen","full","dvw","lvw","svw","min","max","fit",...P()],W=()=>[br,"screen","full","lh","dvh","lvh","svh","min","max","fit",...P()],I=()=>[e,ie,ne],F=()=>[...w(),Ym,Gm,{position:[ie,ne]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],G=()=>["auto","cover","contain",lj,aj,{size:[ie,ne]}],Z=()=>[Xc,$i,Vr],J=()=>["","none","full",u,ie,ne],Q=()=>["",pe,$i,Vr],K=()=>["solid","dashed","dotted","double"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>[pe,Xc,Ym,Gm],H=()=>["","none",m,ie,ne],X=()=>["none",pe,ie,ne],M=()=>["none",pe,ie,ne],ce=()=>[pe,ie,ne],V=()=>[br,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Jt],breakpoint:[Jt],color:[aA],container:[Jt],"drop-shadow":[Jt],ease:["in","out","in-out"],font:[ij],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Jt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Jt],shadow:[Jt],spacing:["px",pe],text:[Jt],"text-shadow":[Jt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",br,ne,ie,p]}],container:["container"],columns:[{columns:[pe,ne,ie,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[xr,"auto",ie,ne]}],basis:[{basis:[br,"full","auto",s,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[pe,br,"auto","initial","none",ne]}],grow:[{grow:["",pe,ie,ne]}],shrink:[{shrink:["",pe,ie,ne]}],order:[{order:[xr,"first","last","none",ie,ne]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:C()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:C()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...N(),"normal"]}],"justify-items":[{"justify-items":[...D(),"normal"]}],"justify-self":[{"justify-self":["auto",...D()]}],"align-content":[{content:["normal",...N()]}],"align-items":[{items:[...D(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...D(),{baseline:["","last"]}]}],"place-content":[{"place-content":N()}],"place-items":[{"place-items":[...D(),"baseline"]}],"place-self":[{"place-self":["auto",...D()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pbs:[{pbs:P()}],pbe:[{pbe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mbs:[{mbs:$()}],mbe:[{mbe:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],"inline-size":[{inline:["auto",...B()]}],"min-inline-size":[{"min-inline":["auto",...B()]}],"max-inline-size":[{"max-inline":["none",...B()]}],"block-size":[{block:["auto",...W()]}],"min-block-size":[{"min-block":["auto",...W()]}],"max-block-size":[{"max-block":["none",...W()]}],w:[{w:[s,"screen",...L()]}],"min-w":[{"min-w":[s,"screen","none",...L()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",r,$i,Vr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,dj,oj]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Xc,ne]}],"font-family":[{font:[uj,sj,t]}],"font-features":[{"font-features":[ne]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,ie,ne]}],"line-clamp":[{"line-clamp":[pe,"none",ie,Km]}],leading:[{leading:[a,...P()]}],"list-image":[{"list-image":["none",ie,ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ie,ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:[pe,"from-font","auto",ie,Vr]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[pe,"auto",ie,ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie,ne]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ie,ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:G()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},xr,ie,ne],radial:["",ie,ne],conic:[xr,ie,ne]},fj,cj]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:Z()}],"gradient-via-pos":[{via:Z()}],"gradient-to-pos":[{to:Z()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:J()}],"rounded-s":[{"rounded-s":J()}],"rounded-e":[{"rounded-e":J()}],"rounded-t":[{"rounded-t":J()}],"rounded-r":[{"rounded-r":J()}],"rounded-b":[{"rounded-b":J()}],"rounded-l":[{"rounded-l":J()}],"rounded-ss":[{"rounded-ss":J()}],"rounded-se":[{"rounded-se":J()}],"rounded-ee":[{"rounded-ee":J()}],"rounded-es":[{"rounded-es":J()}],"rounded-tl":[{"rounded-tl":J()}],"rounded-tr":[{"rounded-tr":J()}],"rounded-br":[{"rounded-br":J()}],"rounded-bl":[{"rounded-bl":J()}],"border-w":[{border:Q()}],"border-w-x":[{"border-x":Q()}],"border-w-y":[{"border-y":Q()}],"border-w-s":[{"border-s":Q()}],"border-w-e":[{"border-e":Q()}],"border-w-bs":[{"border-bs":Q()}],"border-w-be":[{"border-be":Q()}],"border-w-t":[{"border-t":Q()}],"border-w-r":[{"border-r":Q()}],"border-w-b":[{"border-b":Q()}],"border-w-l":[{"border-l":Q()}],"divide-x":[{"divide-x":Q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...K(),"hidden","none"]}],"divide-style":[{divide:[...K(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...K(),"none","hidden"]}],"outline-offset":[{"outline-offset":[pe,ie,ne]}],"outline-w":[{outline:["",pe,$i,Vr]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",l,oo,ao]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",f,oo,ao]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[pe,Vr]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",d,oo,ao]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[pe,ie,ne]}],"mix-blend":[{"mix-blend":[...ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ee()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":q()}],"mask-image-linear-to-pos":[{"mask-linear-to":q()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":q()}],"mask-image-t-to-pos":[{"mask-t-to":q()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":q()}],"mask-image-r-to-pos":[{"mask-r-to":q()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":q()}],"mask-image-b-to-pos":[{"mask-b-to":q()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":q()}],"mask-image-l-to-pos":[{"mask-l-to":q()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":q()}],"mask-image-x-to-pos":[{"mask-x-to":q()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":q()}],"mask-image-y-to-pos":[{"mask-y-to":q()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[ie,ne]}],"mask-image-radial-from-pos":[{"mask-radial-from":q()}],"mask-image-radial-to-pos":[{"mask-radial-to":q()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":q()}],"mask-image-conic-to-pos":[{"mask-conic-to":q()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:G()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ie,ne]}],filter:[{filter:["","none",ie,ne]}],blur:[{blur:H()}],brightness:[{brightness:[pe,ie,ne]}],contrast:[{contrast:[pe,ie,ne]}],"drop-shadow":[{"drop-shadow":["","none",h,oo,ao]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",pe,ie,ne]}],"hue-rotate":[{"hue-rotate":[pe,ie,ne]}],invert:[{invert:["",pe,ie,ne]}],saturate:[{saturate:[pe,ie,ne]}],sepia:[{sepia:["",pe,ie,ne]}],"backdrop-filter":[{"backdrop-filter":["","none",ie,ne]}],"backdrop-blur":[{"backdrop-blur":H()}],"backdrop-brightness":[{"backdrop-brightness":[pe,ie,ne]}],"backdrop-contrast":[{"backdrop-contrast":[pe,ie,ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",pe,ie,ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[pe,ie,ne]}],"backdrop-invert":[{"backdrop-invert":["",pe,ie,ne]}],"backdrop-opacity":[{"backdrop-opacity":[pe,ie,ne]}],"backdrop-saturate":[{"backdrop-saturate":[pe,ie,ne]}],"backdrop-sepia":[{"backdrop-sepia":["",pe,ie,ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ie,ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[pe,"initial",ie,ne]}],ease:[{ease:["linear","initial",g,ie,ne]}],delay:[{delay:[pe,ie,ne]}],animate:[{animate:["none",b,ie,ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,ie,ne]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:X()}],"rotate-x":[{"rotate-x":X()}],"rotate-y":[{"rotate-y":X()}],"rotate-z":[{"rotate-z":X()}],scale:[{scale:M()}],"scale-x":[{"scale-x":M()}],"scale-y":[{"scale-y":M()}],"scale-z":[{"scale-z":M()}],"scale-3d":["scale-3d"],skew:[{skew:ce()}],"skew-x":[{"skew-x":ce()}],"skew-y":[{"skew-y":ce()}],transform:[{transform:[ie,ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:V()}],"translate-x":[{"translate-x":V()}],"translate-y":[{"translate-y":V()}],"translate-z":[{"translate-z":V()}],"translate-none":["translate-none"],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ie,ne]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mbs":[{"scroll-mbs":P()}],"scroll-mbe":[{"scroll-mbe":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pbs":[{"scroll-pbs":P()}],"scroll-pbe":[{"scroll-pbe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ie,ne]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[pe,$i,Vr,Km]}],stroke:[{stroke:["none",...I()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},vj=KC(hj);function ae(...e){return vj(le(e))}function mj(e){throw new Error(`Unexpected value: ${String(e)}`)}function yj(e,t){if(!e)throw new Error(t)}function gj(e,t){return new Promise((r,n)=>{if(t?.aborted){n(new DOMException("Aborted","AbortError"));return}const i=()=>{clearTimeout(a),t?.removeEventListener("abort",i),n(new DOMException("Aborted","AbortError"))},a=setTimeout(()=>{t?.removeEventListener("abort",i),r()},e);t?.addEventListener("abort",i,{once:!0})})}const pA=O.createContext(null),bj=()=>{const e=O.useContext(pA);if(!e)throw new Error("useChatId must be used within ElementsProvider");return e.chatId},hA=O.createContext(void 0),xj=O.createContext(null),av=()=>{const e=O.useContext(hA);if(!e)throw new Error("useElements must be used within a ElementsProvider");return e},wj={compact:{"p-xs":"p-1","p-sm":"p-1.5","p-md":"p-2","p-lg":"p-2.5","p-xl":"p-3","px-xs":"px-1","px-sm":"px-1.5","px-md":"px-2","px-lg":"px-2.5","px-xl":"px-3","py-xs":"py-1","py-sm":"py-1.5","py-md":"py-2","py-lg":"py-2.5","py-xl":"py-3","gap-sm":"gap-1","gap-md":"gap-1.5","gap-lg":"gap-2","gap-xl":"gap-2.5","h-header":"h-10","h-input":"min-h-10","text-base":"text-sm","text-title":"text-xl","text-subtitle":"text-sm"},normal:{"p-xs":"p-1","p-sm":"p-2","p-md":"p-3","p-lg":"p-4","p-xl":"p-6","px-xs":"px-1","px-sm":"px-2","px-md":"px-3","px-lg":"px-4","px-xl":"px-6","py-xs":"py-1","py-sm":"py-2","py-md":"py-3","py-lg":"py-4","py-xl":"py-6","gap-sm":"gap-1.5","gap-md":"gap-2","gap-lg":"gap-3","gap-xl":"gap-4","h-header":"h-12","h-input":"min-h-12","text-base":"text-base","text-title":"text-2xl","text-subtitle":"text-base"},spacious:{"p-xs":"p-2","p-sm":"p-3","p-md":"p-4","p-lg":"p-6","p-xl":"p-10","px-xs":"px-2","px-sm":"px-3","px-md":"px-4","px-lg":"px-6","px-xl":"px-10","py-xs":"py-2","py-sm":"py-3","py-md":"py-4","py-lg":"py-6","py-xl":"py-10","gap-sm":"gap-2","gap-md":"gap-3","gap-lg":"gap-4","gap-xl":"gap-6","h-header":"h-14","h-input":"min-h-16","text-base":"text-lg","text-title":"text-3xl","text-subtitle":"text-lg"}},ov=()=>{const{config:e}=av(),t=e.theme?.density??"normal";return r=>wj[t][r]};function vA(e){return typeof e=="object"&&e!==null&&"type"in e&&typeof e.type=="string"}const mA=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();const Sj=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Oj=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase());const Xm=e=>{const t=Oj(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Zc={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Aj=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},_j=O.createContext({}),Pj=()=>O.useContext(_j),Ej=O.forwardRef(({color:e,size:t,strokeWidth:r,absoluteStrokeWidth:n,className:i="",children:a,iconNode:o,...s},c)=>{const{size:u=24,strokeWidth:l=2,absoluteStrokeWidth:f=!1,color:d="currentColor",className:h=""}=Pj()??{},m=n??f?Number(r??l)*24/Number(t??u):r??l;return O.createElement("svg",{ref:c,...Zc,width:t??u??Zc.width,height:t??u??Zc.height,stroke:e??d,strokeWidth:m,className:mA("lucide",h,i),...!a&&!Aj(s)&&{"aria-hidden":"true"},...s},[...o.map(([v,p])=>O.createElement(v,p)),...Array.isArray(a)?a:[a]])});const za=(e,t)=>{const r=O.forwardRef(({className:n,...i},a)=>O.createElement(Ej,{ref:a,iconNode:t,className:mA(`lucide-${Sj(Xm(e))}`,`lucide-${e}`,n),...i}));return r.displayName=Xm(e),r};const Tj=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],sv=za("check",Tj);const Cj=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Qs=za("chevron-down",Cj);const jj=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],yA=za("chevron-up",jj);const Ij=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],cv=za("circle-alert",Ij),Rj={sharp:{sm:"rounded-sm",md:"rounded",lg:"rounded-md",xl:"rounded-lg",full:"rounded-lg"},soft:{sm:"rounded",md:"rounded-lg",lg:"rounded-xl",xl:"rounded-2xl",full:"rounded-full"},round:{sm:"rounded-lg",md:"rounded-xl",lg:"rounded-2xl",xl:"rounded-3xl",full:"rounded-full"}},gA=()=>{const{config:e}=av(),t=e.theme?.radius??"soft";return r=>Rj[t][r]},Do=({children:e,className:t,title:r})=>{const n=gA();return _.jsx("div",{className:"@container my-4 w-full first:mt-0",children:_.jsxs("div",{className:ae("w-full overflow-hidden border border-border after:hidden @sm:max-w-md @md:max-w-lg @lg:max-w-xl @xl:max-w-2xl",n("lg"),t),children:[_.jsxs("div",{className:"flex h-8 items-center gap-2 border-b border-border bg-muted/50 px-3",children:[_.jsxs("div",{className:"flex items-center gap-1.5",children:[_.jsx("div",{className:"size-3 rounded-full bg-[#FF5F57]"}),_.jsx("div",{className:"size-3 rounded-full bg-[#FEBC2E]"}),_.jsx("div",{className:"size-3 rounded-full bg-[#28C840]"})]}),r&&_.jsx("span",{className:"flex-1 text-center text-xs font-medium text-muted-foreground",children:r})]}),e]})})},kj=({text:e,className:t})=>_.jsx(Do,{className:t,children:_.jsx("div",{className:ae("relative flex min-h-[400px] items-center justify-center bg-background"),children:_.jsx("span",{className:"shimmer text-sm text-muted-foreground",children:e})})});var Jc,Zm;function it(){if(Zm)return Jc;Zm=1;var e=Array.isArray;return Jc=e,Jc}var Qc,Jm;function bA(){if(Jm)return Qc;Jm=1;var e=typeof io=="object"&&io&&io.Object===Object&&io;return Qc=e,Qc}var eu,Qm;function Vt(){if(Qm)return eu;Qm=1;var e=bA(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return eu=r,eu}var tu,ey;function Wa(){if(ey)return tu;ey=1;var e=Vt(),t=e.Symbol;return tu=t,tu}var ru,ty;function Mj(){if(ty)return ru;ty=1;var e=Wa(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var s=r.call(o,i),c=o[i];try{o[i]=void 0;var u=!0}catch{}var l=n.call(o);return u&&(s?o[i]=c:delete o[i]),l}return ru=a,ru}var nu,ry;function $j(){if(ry)return nu;ry=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return nu=r,nu}var iu,ny;function vr(){if(ny)return iu;ny=1;var e=Wa(),t=Mj(),r=$j(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:n:a&&a in Object(s)?t(s):r(s)}return iu=o,iu}var au,iy;function mr(){if(iy)return au;iy=1;function e(t){return t!=null&&typeof t=="object"}return au=e,au}var ou,ay;function gi(){if(ay)return ou;ay=1;var e=vr(),t=mr(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return ou=n,ou}var su,oy;function uv(){if(oy)return su;oy=1;var e=it(),t=gi(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return su=i,su}var cu,sy;function $r(){if(sy)return cu;sy=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return cu=e,cu}var uu,cy;function lv(){if(cy)return uu;cy=1;var e=vr(),t=$r(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(s){if(!t(s))return!1;var c=e(s);return c==n||c==i||c==r||c==a}return uu=o,uu}var lu,uy;function Nj(){if(uy)return lu;uy=1;var e=Vt(),t=e["__core-js_shared__"];return lu=t,lu}var fu,ly;function Dj(){if(ly)return fu;ly=1;var e=Nj(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return fu=r,fu}var du,fy;function xA(){if(fy)return du;fy=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return du=r,du}var pu,dy;function Lj(){if(dy)return pu;dy=1;var e=lv(),t=Dj(),r=$r(),n=xA(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,c=o.toString,u=s.hasOwnProperty,l=RegExp("^"+c.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(d){if(!r(d)||t(d))return!1;var h=e(d)?l:a;return h.test(n(d))}return pu=f,pu}var hu,py;function Bj(){if(py)return hu;py=1;function e(t,r){return t?.[r]}return hu=e,hu}var vu,hy;function vn(){if(hy)return vu;hy=1;var e=Lj(),t=Bj();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return vu=r,vu}var mu,vy;function ec(){if(vy)return mu;vy=1;var e=vn(),t=e(Object,"create");return mu=t,mu}var yu,my;function qj(){if(my)return yu;my=1;var e=ec();function t(){this.__data__=e?e(null):{},this.size=0}return yu=t,yu}var gu,yy;function Fj(){if(yy)return gu;yy=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return gu=e,gu}var bu,gy;function zj(){if(gy)return bu;gy=1;var e=ec(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var s=o[a];return s===t?void 0:s}return n.call(o,a)?o[a]:void 0}return bu=i,bu}var xu,by;function Wj(){if(by)return xu;by=1;var e=ec(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return xu=n,xu}var wu,xy;function Uj(){if(xy)return wu;xy=1;var e=ec(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return wu=r,wu}var Su,wy;function Hj(){if(wy)return Su;wy=1;var e=qj(),t=Fj(),r=zj(),n=Wj(),i=Uj();function a(o){var s=-1,c=o==null?0:o.length;for(this.clear();++s<c;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Su=a,Su}var Ou,Sy;function Vj(){if(Sy)return Ou;Sy=1;function e(){this.__data__=[],this.size=0}return Ou=e,Ou}var Au,Oy;function fv(){if(Oy)return Au;Oy=1;function e(t,r){return t===r||t!==t&&r!==r}return Au=e,Au}var _u,Ay;function tc(){if(Ay)return _u;Ay=1;var e=fv();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return _u=t,_u}var Pu,_y;function Kj(){if(_y)return Pu;_y=1;var e=tc(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():r.call(a,o,1),--this.size,!0}return Pu=n,Pu}var Eu,Py;function Gj(){if(Py)return Eu;Py=1;var e=tc();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Eu=t,Eu}var Tu,Ey;function Yj(){if(Ey)return Tu;Ey=1;var e=tc();function t(r){return e(this.__data__,r)>-1}return Tu=t,Tu}var Cu,Ty;function Xj(){if(Ty)return Cu;Ty=1;var e=tc();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Cu=t,Cu}var ju,Cy;function rc(){if(Cy)return ju;Cy=1;var e=Vj(),t=Kj(),r=Gj(),n=Yj(),i=Xj();function a(o){var s=-1,c=o==null?0:o.length;for(this.clear();++s<c;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,ju=a,ju}var Iu,jy;function dv(){if(jy)return Iu;jy=1;var e=vn(),t=Vt(),r=e(t,"Map");return Iu=r,Iu}var Ru,Iy;function Zj(){if(Iy)return Ru;Iy=1;var e=Hj(),t=rc(),r=dv();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Ru=n,Ru}var ku,Ry;function Jj(){if(Ry)return ku;Ry=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return ku=e,ku}var Mu,ky;function nc(){if(ky)return Mu;ky=1;var e=Jj();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Mu=t,Mu}var $u,My;function Qj(){if(My)return $u;My=1;var e=nc();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return $u=t,$u}var Nu,$y;function eI(){if($y)return Nu;$y=1;var e=nc();function t(r){return e(this,r).get(r)}return Nu=t,Nu}var Du,Ny;function tI(){if(Ny)return Du;Ny=1;var e=nc();function t(r){return e(this,r).has(r)}return Du=t,Du}var Lu,Dy;function rI(){if(Dy)return Lu;Dy=1;var e=nc();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Lu=t,Lu}var Bu,Ly;function pv(){if(Ly)return Bu;Ly=1;var e=Zj(),t=Qj(),r=eI(),n=tI(),i=rI();function a(o){var s=-1,c=o==null?0:o.length;for(this.clear();++s<c;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Bu=a,Bu}var qu,By;function wA(){if(By)return qu;By=1;var e=pv(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,s=i?i.apply(this,o):o[0],c=a.cache;if(c.has(s))return c.get(s);var u=n.apply(this,o);return a.cache=c.set(s,u)||c,u};return a.cache=new(r.Cache||e),a}return r.Cache=e,qu=r,qu}var Fu,qy;function nI(){if(qy)return Fu;qy=1;var e=wA(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Fu=r,Fu}var zu,Fy;function iI(){if(Fy)return zu;Fy=1;var e=nI(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,s,c,u){a.push(c?u.replace(r,"$1"):s||o)}),a});return zu=n,zu}var Wu,zy;function hv(){if(zy)return Wu;zy=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return Wu=e,Wu}var Uu,Wy;function aI(){if(Wy)return Uu;Wy=1;var e=Wa(),t=hv(),r=it(),n=gi(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(s){if(typeof s=="string")return s;if(r(s))return t(s,o)+"";if(n(s))return a?a.call(s):"";var c=s+"";return c=="0"&&1/s==-1/0?"-0":c}return Uu=o,Uu}var Hu,Uy;function SA(){if(Uy)return Hu;Uy=1;var e=aI();function t(r){return r==null?"":e(r)}return Hu=t,Hu}var Vu,Hy;function OA(){if(Hy)return Vu;Hy=1;var e=it(),t=uv(),r=iI(),n=SA();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Vu=i,Vu}var Ku,Vy;function ic(){if(Vy)return Ku;Vy=1;var e=gi();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Ku=t,Ku}var Gu,Ky;function vv(){if(Ky)return Gu;Ky=1;var e=OA(),t=ic();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return Gu=r,Gu}var Yu,Gy;function AA(){if(Gy)return Yu;Gy=1;var e=vv();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Yu=t,Yu}var oI=AA();const lt=Oe(oI);var Xu,Yy;function sI(){if(Yy)return Xu;Yy=1;function e(t){return t==null}return Xu=e,Xu}var cI=sI();const se=Oe(cI);var Zu,Xy;function uI(){if(Xy)return Zu;Xy=1;var e=vr(),t=it(),r=mr(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Zu=i,Zu}var lI=uI();const sn=Oe(lI);var fI=lv();const oe=Oe(fI);var dI=$r();const bi=Oe(dI);var so={exports:{}},ge={};var Zy;function pI(){if(Zy)return ge;Zy=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function v(p){if(typeof p=="object"&&p!==null){var g=p.$$typeof;switch(g){case e:switch(p=p.type,p){case r:case i:case n:case u:case l:return p;default:switch(p=p&&p.$$typeof,p){case s:case o:case c:case d:case f:case a:return p;default:return g}}case t:return g}}}return ge.ContextConsumer=o,ge.ContextProvider=a,ge.Element=e,ge.ForwardRef=c,ge.Fragment=r,ge.Lazy=d,ge.Memo=f,ge.Portal=t,ge.Profiler=i,ge.StrictMode=n,ge.Suspense=u,ge.SuspenseList=l,ge.isAsyncMode=function(){return!1},ge.isConcurrentMode=function(){return!1},ge.isContextConsumer=function(p){return v(p)===o},ge.isContextProvider=function(p){return v(p)===a},ge.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},ge.isForwardRef=function(p){return v(p)===c},ge.isFragment=function(p){return v(p)===r},ge.isLazy=function(p){return v(p)===d},ge.isMemo=function(p){return v(p)===f},ge.isPortal=function(p){return v(p)===t},ge.isProfiler=function(p){return v(p)===i},ge.isStrictMode=function(p){return v(p)===n},ge.isSuspense=function(p){return v(p)===u},ge.isSuspenseList=function(p){return v(p)===l},ge.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===n||p===u||p===l||p===h||typeof p=="object"&&p!==null&&(p.$$typeof===d||p.$$typeof===f||p.$$typeof===a||p.$$typeof===o||p.$$typeof===c||p.$$typeof===m||p.getModuleId!==void 0)},ge.typeOf=v,ge}var be={};var Jy;function hI(){return Jy||(Jy=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=!1,v=!1,p=!1,g=!1,b=!1,x;x=Symbol.for("react.module.reference");function w(V){return!!(typeof V=="string"||typeof V=="function"||V===r||V===i||b||V===n||V===u||V===l||g||V===h||m||v||p||typeof V=="object"&&V!==null&&(V.$$typeof===d||V.$$typeof===f||V.$$typeof===a||V.$$typeof===o||V.$$typeof===c||V.$$typeof===x||V.getModuleId!==void 0))}function y(V){if(typeof V=="object"&&V!==null){var ye=V.$$typeof;switch(ye){case e:var Ae=V.type;switch(Ae){case r:case i:case n:case u:case l:return Ae;default:var $e=Ae&&Ae.$$typeof;switch($e){case s:case o:case c:case d:case f:case a:return $e;default:return ye}}case t:return ye}}}var S=o,A=a,P=e,T=c,R=r,C=d,j=f,k=t,N=i,D=n,$=u,L=l,B=!1,W=!1;function I(V){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function F(V){return W||(W=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function U(V){return y(V)===o}function G(V){return y(V)===a}function Z(V){return typeof V=="object"&&V!==null&&V.$$typeof===e}function J(V){return y(V)===c}function Q(V){return y(V)===r}function K(V){return y(V)===d}function ee(V){return y(V)===f}function q(V){return y(V)===t}function H(V){return y(V)===i}function X(V){return y(V)===n}function M(V){return y(V)===u}function ce(V){return y(V)===l}be.ContextConsumer=S,be.ContextProvider=A,be.Element=P,be.ForwardRef=T,be.Fragment=R,be.Lazy=C,be.Memo=j,be.Portal=k,be.Profiler=N,be.StrictMode=D,be.Suspense=$,be.SuspenseList=L,be.isAsyncMode=I,be.isConcurrentMode=F,be.isContextConsumer=U,be.isContextProvider=G,be.isElement=Z,be.isForwardRef=J,be.isFragment=Q,be.isLazy=K,be.isMemo=ee,be.isPortal=q,be.isProfiler=H,be.isStrictMode=X,be.isSuspense=M,be.isSuspenseList=ce,be.isValidElementType=w,be.typeOf=y})()),be}var Qy;function vI(){return Qy||(Qy=1,process.env.NODE_ENV==="production"?so.exports=pI():so.exports=hI()),so.exports}var mI=vI(),Ju,eg;function _A(){if(eg)return Ju;eg=1;var e=vr(),t=mr(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Ju=n,Ju}var Qu,tg;function yI(){if(tg)return Qu;tg=1;var e=_A();function t(r){return e(r)&&r!=+r}return Qu=t,Qu}var gI=yI();const xi=Oe(gI);var bI=_A();const xI=Oe(bI);var Je=function(t){return t===0?0:t>0?1:-1},Qr=function(t){return sn(t)&&t.indexOf("%")===t.length-1},Y=function(t){return xI(t)&&!xi(t)},wI=function(t){return se(t)},ze=function(t){return Y(t)||sn(t)},SI=0,Nr=function(t){var r=++SI;return"".concat(t||"").concat(r)},Qe=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Y(t)&&!sn(t))return n;var a;if(Qr(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return xi(a)&&(a=n),i&&a>r&&(a=r),a},Ar=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},OI=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},Pe=function(t,r){return Y(t)&&Y(r)?function(n){return t+n*(r-t)}:function(){return r}};function Lo(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):lt(n,t))===r})}var AI=function(t){if(!t||!t.length)return null;for(var r=t.length,n=0,i=0,a=0,o=0,s=1/0,c=-1/0,u=0,l=0,f=0;f<r;f++)u=t[f].cx||0,l=t[f].cy||0,n+=u,i+=l,a+=u*l,o+=u*u,s=Math.min(s,u),c=Math.max(c,u);var d=r*o!==n*n?(r*a-n*i)/(r*o-n*n):0;return{xmin:s,xmax:c,a:d,b:(i-d*n)/r}},_I=function(t,r){return Y(t)&&Y(r)?t-r:sn(t)&&sn(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Mn(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function bp(e){"@babel/helpers - typeof";return bp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bp(e)}var PI=["viewBox","children"],EI=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],rg=["points","pathLength"],el={svg:PI,polygon:rg,polyline:rg},mv=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Bo=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(O.isValidElement(t)&&(n=t.props),!bi(n))return null;var i={};return Object.keys(n).forEach(function(a){mv.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},TI=function(t,r,n){return function(i){return t(r,n,i),null}},Ir=function(t,r,n){if(!bi(t)||bp(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];mv.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=TI(o,r,n))}),i},CI=["children"],jI=["children"];function ng(e,t){if(e==null)return{};var r=II(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function II(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function xp(e){"@babel/helpers - typeof";return xp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xp(e)}var ig={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},ar=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},ag=null,tl=null,yv=function e(t){if(t===ag&&Array.isArray(tl))return tl;var r=[];return O.Children.forEach(t,function(n){se(n)||(mI.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),tl=r,ag=t,r};function tt(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return ar(i)}):n=[ar(t)],yv(e).forEach(function(i){var a=lt(i,"type.displayName")||lt(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function st(e,t){var r=tt(e,t);return r&&r[0]}var og=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!Y(n)||n<=0||!Y(i)||i<=0)},RI=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],kI=function(t){return t&&t.type&&sn(t.type)&&RI.indexOf(t.type)>=0},PA=function(t){return t&&xp(t)==="object"&&"clipDot"in t},MI=function(t,r,n,i){var a,o=(a=el?.[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!oe(t)&&(i&&o.includes(r)||EI.includes(r))||n&&mv.includes(r)},te=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(O.isValidElement(t)&&(i=t.props),!bi(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;MI((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},wp=function e(t,r){if(t===r)return!0;var n=O.Children.count(t);if(n!==O.Children.count(r))return!1;if(n===0)return!0;if(n===1)return sg(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!sg(a,o))return!1}return!0},sg=function(t,r){if(se(t)&&se(r))return!0;if(!se(t)&&!se(r)){var n=t.props||{},i=n.children,a=ng(n,CI),o=r.props||{},s=o.children,c=ng(o,jI);return i&&s?Mn(a,c)&&wp(i,s):!i&&!s?Mn(a,c):!1}return!1},cg=function(t,r){var n=[],i={};return yv(t).forEach(function(a,o){if(kI(a))n.push(a);else if(a){var s=ar(a.type),c=r[s]||{},u=c.handler,l=c.once;if(u&&(!l||!i[s])){var f=u(a,s,o);n.push(f),i[s]=!0}}}),n},$I=function(t){var r=t&&t.type;return r&&ig[r]?ig[r]:null},NI=function(t,r){return yv(r).indexOf(t)},DI=["children","width","height","viewBox","className","style","title","desc"];function Sp(){return Sp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sp.apply(this,arguments)}function LI(e,t){if(e==null)return{};var r=BI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Op(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,c=e.desc,u=LI(e,DI),l=i||{width:r,height:n,x:0,y:0},f=le("recharts-surface",a);return O.createElement("svg",Sp({},te(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(l.x," ").concat(l.y," ").concat(l.width," ").concat(l.height)}),O.createElement("title",null,s),O.createElement("desc",null,c),t)}var qI=["children","className"];function Ap(){return Ap=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ap.apply(this,arguments)}function FI(e,t){if(e==null)return{};var r=zI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var fe=O.forwardRef(function(e,t){var r=e.children,n=e.className,i=FI(e,qI),a=le("recharts-layer",n);return O.createElement("g",Ap({className:a},te(i,!0),{ref:t}),r)}),WI=process.env.NODE_ENV!=="production",Tt=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(WI&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,function(){return i[o++]}))}},rl,ug;function UI(){if(ug)return rl;ug=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return rl=e,rl}var nl,lg;function HI(){if(lg)return nl;lg=1;var e=UI();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return nl=t,nl}var il,fg;function EA(){if(fg)return il;fg=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+i+a+"]");function c(u){return s.test(u)}return il=c,il}var al,dg;function VI(){if(dg)return al;dg=1;function e(t){return t.split("")}return al=e,al}var ol,pg;function KI(){if(pg)return ol;pg=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",s="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",u="(?:"+s+"|"+c+")",l="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",m=u+"?",v="["+a+"]?",p="(?:"+h+"(?:"+[l,f,d].join("|")+")"+v+m+")*",g=v+m+p,b="(?:"+[l+s+"?",s,f,d,o].join("|")+")",x=RegExp(c+"(?="+c+")|"+b+g,"g");function w(y){return y.match(x)||[]}return ol=w,ol}var sl,hg;function GI(){if(hg)return sl;hg=1;var e=VI(),t=EA(),r=KI();function n(i){return t(i)?r(i):e(i)}return sl=n,sl}var cl,vg;function YI(){if(vg)return cl;vg=1;var e=HI(),t=EA(),r=GI(),n=SA();function i(a){return function(o){o=n(o);var s=t(o)?r(o):void 0,c=s?s[0]:o.charAt(0),u=s?e(s,1).join(""):o.slice(1);return c[a]()+u}}return cl=i,cl}var ul,mg;function XI(){if(mg)return ul;mg=1;var e=YI(),t=e("toUpperCase");return ul=t,ul}var ZI=XI();const ac=Oe(ZI);function je(e){return function(){return e}}const TA=Math.cos,qo=Math.sin,kt=Math.sqrt,Fo=Math.PI,oc=2*Fo,_p=Math.PI,Pp=2*_p,Xr=1e-6,JI=Pp-Xr;function CA(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function QI(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return CA;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class eR{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?CA:QI(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,c=n-t,u=i-r,l=o-t,f=s-r,d=l*l+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Xr)if(!(Math.abs(f*c-u*l)>Xr)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,m=i-s,v=c*c+u*u,p=h*h+m*m,g=Math.sqrt(v),b=Math.sqrt(d),x=a*Math.tan((_p-Math.acos((v+d-p)/(2*g*b)))/2),w=x/b,y=x/g;Math.abs(w-1)>Xr&&this._append`L${t+w*l},${r+w*f}`,this._append`A${a},${a},0,0,${+(f*h>l*m)},${this._x1=t+y*c},${this._y1=r+y*u}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),c=n*Math.sin(i),u=t+s,l=r+c,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${u},${l}`:(Math.abs(this._x1-u)>Xr||Math.abs(this._y1-l)>Xr)&&this._append`L${u},${l}`,n&&(d<0&&(d=d%Pp+Pp),d>JI?this._append`A${n},${n},0,1,${f},${t-s},${r-c}A${n},${n},0,1,${f},${this._x1=u},${this._y1=l}`:d>Xr&&this._append`A${n},${n},0,${+(d>=_p)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function gv(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new eR(t)}function bv(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function jA(e){this._context=e}jA.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 sc(e){return new jA(e)}function IA(e){return e[0]}function RA(e){return e[1]}function kA(e,t){var r=je(!0),n=null,i=sc,a=null,o=gv(s);e=typeof e=="function"?e:e===void 0?IA:je(e),t=typeof t=="function"?t:t===void 0?RA:je(t);function s(c){var u,l=(c=bv(c)).length,f,d=!1,h;for(n==null&&(a=i(h=o())),u=0;u<=l;++u)!(u<l&&r(f=c[u],u,c))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,u,c),+t(f,u,c));if(h)return a=null,h+""||null}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:je(+c),s):e},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:je(+c),s):t},s.defined=function(c){return arguments.length?(r=typeof c=="function"?c:je(!!c),s):r},s.curve=function(c){return arguments.length?(i=c,n!=null&&(a=i(n)),s):i},s.context=function(c){return arguments.length?(c==null?n=a=null:a=i(n=c),s):n},s}function co(e,t,r){var n=null,i=je(!0),a=null,o=sc,s=null,c=gv(u);e=typeof e=="function"?e:e===void 0?IA:je(+e),t=typeof t=="function"?t:je(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?RA:je(+r);function u(f){var d,h,m,v=(f=bv(f)).length,p,g=!1,b,x=new Array(v),w=new Array(v);for(a==null&&(s=o(b=c())),d=0;d<=v;++d){if(!(d<v&&i(p=f[d],d,f))===g)if(g=!g)h=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=d-1;m>=h;--m)s.point(x[m],w[m]);s.lineEnd(),s.areaEnd()}g&&(x[d]=+e(p,d,f),w[d]=+t(p,d,f),s.point(n?+n(p,d,f):x[d],r?+r(p,d,f):w[d]))}if(b)return s=null,b+""||null}function l(){return kA().defined(i).curve(o).context(a)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:je(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:je(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:je(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:je(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:je(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:je(+f),u):r},u.lineX0=u.lineY0=function(){return l().x(e).y(t)},u.lineY1=function(){return l().x(e).y(r)},u.lineX1=function(){return l().x(n).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:je(!!f),u):i},u.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),u):o},u.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),u):a},u}class MA{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function tR(e){return new MA(e,!0)}function rR(e){return new MA(e,!1)}const xv={draw(e,t){const r=kt(t/Fo);e.moveTo(r,0),e.arc(0,0,r,0,oc)}},nR={draw(e,t){const r=kt(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},$A=kt(1/3),iR=$A*2,aR={draw(e,t){const r=kt(t/iR),n=r*$A;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},oR={draw(e,t){const r=kt(t),n=-r/2;e.rect(n,n,r,r)}},sR=.8908130915292852,NA=qo(Fo/10)/qo(7*Fo/10),cR=qo(oc/10)*NA,uR=-TA(oc/10)*NA,lR={draw(e,t){const r=kt(t*sR),n=cR*r,i=uR*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=oc*a/5,s=TA(o),c=qo(o);e.lineTo(c*r,-s*r),e.lineTo(s*n-c*i,c*n+s*i)}e.closePath()}},ll=kt(3),fR={draw(e,t){const r=-kt(t/(ll*3));e.moveTo(0,r*2),e.lineTo(-ll*r,-r),e.lineTo(ll*r,-r),e.closePath()}},pt=-.5,ht=kt(3)/2,Ep=1/kt(12),dR=(Ep/2+1)*3,pR={draw(e,t){const r=kt(t/dR),n=r/2,i=r*Ep,a=n,o=r*Ep+r,s=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,c),e.lineTo(pt*n-ht*i,ht*n+pt*i),e.lineTo(pt*a-ht*o,ht*a+pt*o),e.lineTo(pt*s-ht*c,ht*s+pt*c),e.lineTo(pt*n+ht*i,pt*i-ht*n),e.lineTo(pt*a+ht*o,pt*o-ht*a),e.lineTo(pt*s+ht*c,pt*c-ht*s),e.closePath()}};function hR(e,t){let r=null,n=gv(i);e=typeof e=="function"?e:je(e||xv),t=typeof t=="function"?t:je(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:je(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:je(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function zo(){}function Wo(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function DA(e){this._context=e}DA.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:Wo(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:Wo(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function vR(e){return new DA(e)}function LA(e){this._context=e}LA.prototype={areaStart:zo,areaEnd:zo,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:Wo(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function mR(e){return new LA(e)}function BA(e){this._context=e}BA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Wo(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function yR(e){return new BA(e)}function qA(e){this._context=e}qA.prototype={areaStart:zo,areaEnd:zo,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 gR(e){return new qA(e)}function yg(e){return e<0?-1:1}function gg(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(yg(a)+yg(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function bg(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function fl(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function Uo(e){this._context=e}Uo.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:fl(this,this._t0,bg(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,fl(this,bg(this,r=gg(this,e,t)),r);break;default:fl(this,this._t0,r=gg(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function FA(e){this._context=new zA(e)}(FA.prototype=Object.create(Uo.prototype)).point=function(e,t){Uo.prototype.point.call(this,t,e)};function zA(e){this._context=e}zA.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function bR(e){return new Uo(e)}function xR(e){return new FA(e)}function WA(e){this._context=e}WA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=xg(e),i=xg(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function xg(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function wR(e){return new WA(e)}function cc(e,t){this._context=e,this._t=t}cc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function SR(e){return new cc(e,.5)}function OR(e){return new cc(e,0)}function AR(e){return new cc(e,1)}function Bn(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Tp(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function _R(e,t){return e[t]}function PR(e){const t=[];return t.key=e,t}function ER(){var e=je([]),t=Tp,r=Bn,n=_R;function i(a){var o=Array.from(e.apply(this,arguments),PR),s,c=o.length,u=-1,l;for(const f of a)for(s=0,++u;s<c;++s)(o[s][u]=[0,+n(f,o[s].key,u,a)]).data=f;for(s=0,l=bv(t(o));s<c;++s)o[l[s]].index=s;return r(o,l),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:je(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:je(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Tp:typeof a=="function"?a:je(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Bn,i):r},i}function TR(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Bn(e,t)}}function CR(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}Bn(e,t)}}function jR(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var s=0,c=0,u=0;s<o;++s){for(var l=e[t[s]],f=l[n][1]||0,d=l[n-1][1]||0,h=(f-d)/2,m=0;m<s;++m){var v=e[t[m]],p=v[n][1]||0,g=v[n-1][1]||0;h+=p-g}c+=f,u+=h*f}i[n-1][1]+=i[n-1][0]=r,c&&(r-=u/c)}i[n-1][1]+=i[n-1][0]=r,Bn(e,t)}}function ia(e){"@babel/helpers - typeof";return ia=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ia(e)}var IR=["type","size","sizeType"];function Cp(){return Cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cp.apply(this,arguments)}function wg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Sg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wg(Object(r),!0).forEach(function(n){RR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RR(e,t,r){return t=kR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kR(e){var t=MR(e,"string");return ia(t)=="symbol"?t:t+""}function MR(e,t){if(ia(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ia(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $R(e,t){if(e==null)return{};var r=NR(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function NR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var UA={symbolCircle:xv,symbolCross:nR,symbolDiamond:aR,symbolSquare:oR,symbolStar:lR,symbolTriangle:fR,symbolWye:pR},DR=Math.PI/180,LR=function(t){var r="symbol".concat(ac(t));return UA[r]||xv},BR=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*DR;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},qR=function(t,r){UA["symbol".concat(ac(t))]=r},uc=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,c=$R(t,IR),u=Sg(Sg({},c),{},{type:n,size:a,sizeType:s}),l=function(){var p=LR(n),g=hR().type(p).size(BR(a,s,n));return g()},f=u.className,d=u.cx,h=u.cy,m=te(u,!0);return d===+d&&h===+h&&a===+a?O.createElement("path",Cp({},m,{className:le("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(h,")"),d:l()})):null};uc.registerSymbol=qR;function qn(e){"@babel/helpers - typeof";return qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qn(e)}function jp(){return jp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jp.apply(this,arguments)}function Og(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function FR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Og(Object(r),!0).forEach(function(n){aa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Og(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,VA(n.key),n)}}function UR(e,t,r){return t&&WR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function HR(e,t,r){return t=Ho(t),VR(e,HA()?Reflect.construct(t,r||[],Ho(e).constructor):t.apply(e,r))}function VR(e,t){if(t&&(qn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return KR(e)}function KR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(HA=function(){return!!e})()}function Ho(e){return Ho=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ho(e)}function GR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ip(e,t)}function Ip(e,t){return Ip=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ip(e,t)}function aa(e,t,r){return t=VA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VA(e){var t=YR(e,"string");return qn(t)=="symbol"?t:t+""}function YR(e,t){if(qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vt=32,wv=(function(e){function t(){return zR(this,t),HR(this,t,arguments)}return GR(t,e),UR(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=vt/2,o=vt/6,s=vt/3,c=n.inactive?i:n.color;if(n.type==="plainline")return O.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:vt,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return O.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(s,`
|
|
1
|
+
"use strict";const _=require("react/jsx-runtime"),A=require("react"),XO=require("react-dom");function ZO(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const E=ZO(A),Js=ZO(XO);var io=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Oe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function JO(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=JO(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function le(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=JO(e))&&(n&&(n+=" "),n+=t);return n}const EC=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},TC=(e,t)=>({classGroupId:e,validator:t}),QO=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),No="-",Um=[],CC="arbitrary..",jC=e=>{const t=kC(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return IC(o);const s=o.split(No),c=s[0]===""&&s.length>1?1:0;return eA(s,c,t)},getConflictingClassGroupIds:(o,s)=>{if(s){const c=n[o],u=r[o];return c?u?EC(u,c):c:u||Um}return r[o]||Um}}},eA=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const i=e[t],a=r.nextPart.get(i);if(a){const u=eA(e,t+1,a);if(u)return u}const o=r.validators;if(o===null)return;const s=t===0?e.join(No):e.slice(t).join(No),c=o.length;for(let u=0;u<c;u++){const l=o[u];if(l.validator(s))return l.classGroupId}},IC=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?CC+n:void 0})(),kC=e=>{const{theme:t,classGroups:r}=e;return RC(r,t)},RC=(e,t)=>{const r=QO();for(const n in e){const i=e[n];nv(i,r,n,t)}return r},nv=(e,t,r,n)=>{const i=e.length;for(let a=0;a<i;a++){const o=e[a];MC(o,t,r,n)}},MC=(e,t,r,n)=>{if(typeof e=="string"){$C(e,t,r);return}if(typeof e=="function"){NC(e,t,r,n);return}DC(e,t,r,n)},$C=(e,t,r)=>{const n=e===""?t:tA(t,e);n.classGroupId=r},NC=(e,t,r,n)=>{if(LC(e)){nv(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(TC(r,e))},DC=(e,t,r,n)=>{const i=Object.entries(e),a=i.length;for(let o=0;o<a;o++){const[s,c]=i[o];nv(c,tA(t,s),r,n)}},tA=(e,t)=>{let r=e;const n=t.split(No),i=n.length;for(let a=0;a<i;a++){const o=n[a];let s=r.nextPart.get(o);s||(s=QO(),r.nextPart.set(o,s)),r=s}return r},LC=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,BC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const i=(a,o)=>{r[a]=o,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(a){let o=r[a];if(o!==void 0)return o;if((o=n[a])!==void 0)return i(a,o),o},set(a,o){a in r?r[a]=o:i(a,o)}}},gp="!",Hm=":",qC=[],Vm=(e,t,r,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:i}),FC=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=i=>{const a=[];let o=0,s=0,c=0,u;const l=i.length;for(let v=0;v<l;v++){const p=i[v];if(o===0&&s===0){if(p===Hm){a.push(i.slice(c,v)),c=v+1;continue}if(p==="/"){u=v;continue}}p==="["?o++:p==="]"?o--:p==="("?s++:p===")"&&s--}const f=a.length===0?i:i.slice(c);let d=f,h=!1;f.endsWith(gp)?(d=f.slice(0,-1),h=!0):f.startsWith(gp)&&(d=f.slice(1),h=!0);const m=u&&u>c?u-c:void 0;return Vm(a,h,d,m)};if(t){const i=t+Hm,a=n;n=o=>o.startsWith(i)?a(o.slice(i.length)):Vm(qC,!1,o,void 0,!0)}if(r){const i=n;n=a=>r({className:a,parseClassName:i})}return n},zC=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let i=[];for(let a=0;a<r.length;a++){const o=r[a],s=o[0]==="[",c=t.has(o);s||c?(i.length>0&&(i.sort(),n.push(...i),i=[]),n.push(o)):i.push(o)}return i.length>0&&(i.sort(),n.push(...i)),n}},WC=e=>({cache:BC(e.cacheSize),parseClassName:FC(e),sortModifiers:zC(e),postfixLookupClassGroupIds:UC(e),...jC(e)}),UC=e=>{const t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let n=0;n<r.length;n++)t[r[n]]=!0;return t},HC=/\s+/,VC=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(HC);let u="";for(let l=c.length-1;l>=0;l-=1){const f=c[l],{isExternal:d,modifiers:h,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:p}=r(f);if(d){u=f+(u.length>0?" "+u:u);continue}let g=!!p,b;if(g){const O=v.substring(0,p);b=n(O);const P=b&&o[b]?n(v):void 0;P&&P!==b&&(b=P,g=!1)}else b=n(v);if(!b){if(!g){u=f+(u.length>0?" "+u:u);continue}if(b=n(v),!b){u=f+(u.length>0?" "+u:u);continue}g=!1}const x=h.length===0?"":h.length===1?h[0]:a(h).join(":"),w=m?x+gp:x,y=w+b;if(s.indexOf(y)>-1)continue;s.push(y);const S=i(b,g);for(let O=0;O<S.length;++O){const P=S[O];s.push(w+P)}u=f+(u.length>0?" "+u:u)}return u},KC=(...e)=>{let t=0,r,n,i="";for(;t<e.length;)(r=e[t++])&&(n=rA(r))&&(i&&(i+=" "),i+=n);return i},rA=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=rA(e[n]))&&(r&&(r+=" "),r+=t);return r},GC=(e,...t)=>{let r,n,i,a;const o=c=>{const u=t.reduce((l,f)=>f(l),e());return r=WC(u),n=r.cache.get,i=r.cache.set,a=s,s(c)},s=c=>{const u=n(c);if(u)return u;const l=VC(c,r);return i(c,l),l};return a=o,(...c)=>a(KC(...c))},YC=[],Be=e=>{const t=r=>r[e]||YC;return t.isThemeGetter=!0,t},nA=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,iA=/^\((?:(\w[\w-]*):)?(.+)\)$/i,XC=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ZC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,JC=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,QC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ej=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xr=e=>XC.test(e),pe=e=>!!e&&!Number.isNaN(Number(e)),Nt=e=>!!e&&Number.isInteger(Number(e)),Xc=e=>e.endsWith("%")&&pe(e.slice(0,-1)),Qt=e=>ZC.test(e),aA=()=>!0,rj=e=>JC.test(e)&&!QC.test(e),iv=()=>!1,nj=e=>ej.test(e),ij=e=>tj.test(e),aj=e=>!te(e)&&!ne(e),oj=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),sj=e=>Mr(e,cA,iv),te=e=>nA.test(e),Vr=e=>Mr(e,uA,rj),Km=e=>Mr(e,vj,pe),cj=e=>Mr(e,fA,aA),uj=e=>Mr(e,lA,iv),Gm=e=>Mr(e,oA,iv),lj=e=>Mr(e,sA,ij),ao=e=>Mr(e,dA,nj),ne=e=>iA.test(e),$i=e=>hn(e,uA),fj=e=>hn(e,lA),Ym=e=>hn(e,oA),dj=e=>hn(e,cA),pj=e=>hn(e,sA),oo=e=>hn(e,dA,!0),hj=e=>hn(e,fA,!0),Mr=(e,t,r)=>{const n=nA.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},hn=(e,t,r=!1)=>{const n=iA.exec(e);return n?n[1]?t(n[1]):r:!1},oA=e=>e==="position"||e==="percentage",sA=e=>e==="image"||e==="url",cA=e=>e==="length"||e==="size"||e==="bg-size",uA=e=>e==="length",vj=e=>e==="number",lA=e=>e==="family-name",fA=e=>e==="number"||e==="weight",dA=e=>e==="shadow",mj=()=>{const e=Be("color"),t=Be("font"),r=Be("text"),n=Be("font-weight"),i=Be("tracking"),a=Be("leading"),o=Be("breakpoint"),s=Be("container"),c=Be("spacing"),u=Be("radius"),l=Be("shadow"),f=Be("inset-shadow"),d=Be("text-shadow"),h=Be("drop-shadow"),m=Be("blur"),v=Be("perspective"),p=Be("aspect"),g=Be("ease"),b=Be("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],y=()=>[...w(),ne,te],S=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],P=()=>[ne,te,c],T=()=>[xr,"full","auto",...P()],k=()=>[Nt,"none","subgrid",ne,te],C=()=>["auto",{span:["full",Nt,ne,te]},Nt,ne,te],j=()=>[Nt,"auto",ne,te],R=()=>["auto","min","max","fr",ne,te],N=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],D=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",...P()],L=()=>[xr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],B=()=>[xr,"screen","full","dvw","lvw","svw","min","max","fit",...P()],W=()=>[xr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...P()],I=()=>[e,ne,te],F=()=>[...w(),Ym,Gm,{position:[ne,te]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],G=()=>["auto","cover","contain",dj,sj,{size:[ne,te]}],Z=()=>[Xc,$i,Vr],J=()=>["","none","full",u,ne,te],Q=()=>["",pe,$i,Vr],K=()=>["solid","dashed","dotted","double"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>[pe,Xc,Ym,Gm],H=()=>["","none",m,ne,te],X=()=>["none",pe,ne,te],M=()=>["none",pe,ne,te],ce=()=>[pe,ne,te],V=()=>[xr,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Qt],breakpoint:[Qt],color:[aA],container:[Qt],"drop-shadow":[Qt],ease:["in","out","in-out"],font:[aj],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Qt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Qt],shadow:[Qt],spacing:["px",pe],text:[Qt],"text-shadow":[Qt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xr,te,ne,p]}],container:["container"],"container-type":[{"@container":["","normal","size",ne,te]}],"container-named":[oj],columns:[{columns:[pe,te,ne,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[Nt,"auto",ne,te]}],basis:[{basis:[xr,"full","auto",s,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[pe,xr,"auto","initial","none",te]}],grow:[{grow:["",pe,ne,te]}],shrink:[{shrink:["",pe,ne,te]}],order:[{order:[Nt,"first","last","none",ne,te]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:C()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:C()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":R()}],"auto-rows":[{"auto-rows":R()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...N(),"normal"]}],"justify-items":[{"justify-items":[...D(),"normal"]}],"justify-self":[{"justify-self":["auto",...D()]}],"align-content":[{content:["normal",...N()]}],"align-items":[{items:[...D(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...D(),{baseline:["","last"]}]}],"place-content":[{"place-content":N()}],"place-items":[{"place-items":[...D(),"baseline"]}],"place-self":[{"place-self":["auto",...D()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pbs:[{pbs:P()}],pbe:[{pbe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mbs:[{mbs:$()}],mbe:[{mbe:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],"inline-size":[{inline:["auto",...B()]}],"min-inline-size":[{"min-inline":["auto",...B()]}],"max-inline-size":[{"max-inline":["none",...B()]}],"block-size":[{block:["auto",...W()]}],"min-block-size":[{"min-block":["auto",...W()]}],"max-block-size":[{"max-block":["none",...W()]}],w:[{w:[s,"screen",...L()]}],"min-w":[{"min-w":[s,"screen","none",...L()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",r,$i,Vr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,hj,cj]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Xc,te]}],"font-family":[{font:[fj,uj,t]}],"font-features":[{"font-features":[te]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,ne,te]}],"line-clamp":[{"line-clamp":[pe,"none",ne,Km]}],leading:[{leading:[a,...P()]}],"list-image":[{"list-image":["none",ne,te]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ne,te]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:[pe,"from-font","auto",ne,Vr]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[pe,"auto",ne,te]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"tab-size":[{tab:[Nt,ne,te]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ne,te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ne,te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:G()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Nt,ne,te],radial:["",ne,te],conic:[Nt,ne,te]},pj,lj]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:Z()}],"gradient-via-pos":[{via:Z()}],"gradient-to-pos":[{to:Z()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:J()}],"rounded-s":[{"rounded-s":J()}],"rounded-e":[{"rounded-e":J()}],"rounded-t":[{"rounded-t":J()}],"rounded-r":[{"rounded-r":J()}],"rounded-b":[{"rounded-b":J()}],"rounded-l":[{"rounded-l":J()}],"rounded-ss":[{"rounded-ss":J()}],"rounded-se":[{"rounded-se":J()}],"rounded-ee":[{"rounded-ee":J()}],"rounded-es":[{"rounded-es":J()}],"rounded-tl":[{"rounded-tl":J()}],"rounded-tr":[{"rounded-tr":J()}],"rounded-br":[{"rounded-br":J()}],"rounded-bl":[{"rounded-bl":J()}],"border-w":[{border:Q()}],"border-w-x":[{"border-x":Q()}],"border-w-y":[{"border-y":Q()}],"border-w-s":[{"border-s":Q()}],"border-w-e":[{"border-e":Q()}],"border-w-bs":[{"border-bs":Q()}],"border-w-be":[{"border-be":Q()}],"border-w-t":[{"border-t":Q()}],"border-w-r":[{"border-r":Q()}],"border-w-b":[{"border-b":Q()}],"border-w-l":[{"border-l":Q()}],"divide-x":[{"divide-x":Q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...K(),"hidden","none"]}],"divide-style":[{divide:[...K(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...K(),"none","hidden"]}],"outline-offset":[{"outline-offset":[pe,ne,te]}],"outline-w":[{outline:["",pe,$i,Vr]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",l,oo,ao]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",f,oo,ao]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[pe,Vr]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",d,oo,ao]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[pe,ne,te]}],"mix-blend":[{"mix-blend":[...ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ee()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":q()}],"mask-image-linear-to-pos":[{"mask-linear-to":q()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":q()}],"mask-image-t-to-pos":[{"mask-t-to":q()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":q()}],"mask-image-r-to-pos":[{"mask-r-to":q()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":q()}],"mask-image-b-to-pos":[{"mask-b-to":q()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":q()}],"mask-image-l-to-pos":[{"mask-l-to":q()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":q()}],"mask-image-x-to-pos":[{"mask-x-to":q()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":q()}],"mask-image-y-to-pos":[{"mask-y-to":q()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[ne,te]}],"mask-image-radial-from-pos":[{"mask-radial-from":q()}],"mask-image-radial-to-pos":[{"mask-radial-to":q()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":q()}],"mask-image-conic-to-pos":[{"mask-conic-to":q()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:G()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ne,te]}],filter:[{filter:["","none",ne,te]}],blur:[{blur:H()}],brightness:[{brightness:[pe,ne,te]}],contrast:[{contrast:[pe,ne,te]}],"drop-shadow":[{"drop-shadow":["","none",h,oo,ao]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",pe,ne,te]}],"hue-rotate":[{"hue-rotate":[pe,ne,te]}],invert:[{invert:["",pe,ne,te]}],saturate:[{saturate:[pe,ne,te]}],sepia:[{sepia:["",pe,ne,te]}],"backdrop-filter":[{"backdrop-filter":["","none",ne,te]}],"backdrop-blur":[{"backdrop-blur":H()}],"backdrop-brightness":[{"backdrop-brightness":[pe,ne,te]}],"backdrop-contrast":[{"backdrop-contrast":[pe,ne,te]}],"backdrop-grayscale":[{"backdrop-grayscale":["",pe,ne,te]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[pe,ne,te]}],"backdrop-invert":[{"backdrop-invert":["",pe,ne,te]}],"backdrop-opacity":[{"backdrop-opacity":[pe,ne,te]}],"backdrop-saturate":[{"backdrop-saturate":[pe,ne,te]}],"backdrop-sepia":[{"backdrop-sepia":["",pe,ne,te]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ne,te]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[pe,"initial",ne,te]}],ease:[{ease:["linear","initial",g,ne,te]}],delay:[{delay:[pe,ne,te]}],animate:[{animate:["none",b,ne,te]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,ne,te]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:X()}],"rotate-x":[{"rotate-x":X()}],"rotate-y":[{"rotate-y":X()}],"rotate-z":[{"rotate-z":X()}],scale:[{scale:M()}],"scale-x":[{"scale-x":M()}],"scale-y":[{"scale-y":M()}],"scale-z":[{"scale-z":M()}],"scale-3d":["scale-3d"],skew:[{skew:ce()}],"skew-x":[{"skew-x":ce()}],"skew-y":[{"skew-y":ce()}],transform:[{transform:[ne,te,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:V()}],"translate-x":[{"translate-x":V()}],"translate-y":[{"translate-y":V()}],"translate-z":[{"translate-z":V()}],"translate-none":["translate-none"],zoom:[{zoom:[Nt,ne,te]}],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ne,te]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":I()}],"scrollbar-track-color":[{"scrollbar-track":I()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mbs":[{"scroll-mbs":P()}],"scroll-mbe":[{"scroll-mbe":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pbs":[{"scroll-pbs":P()}],"scroll-pbe":[{"scroll-pbe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ne,te]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[pe,$i,Vr,Km]}],stroke:[{stroke:["none",...I()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},yj=GC(mj);function ae(...e){return yj(le(e))}function gj(e){throw new Error(`Unexpected value: ${String(e)}`)}function bj(e,t){if(!e)throw new Error(t)}function xj(e,t){return new Promise((r,n)=>{if(t?.aborted){n(new DOMException("Aborted","AbortError"));return}const i=()=>{clearTimeout(a),t?.removeEventListener("abort",i),n(new DOMException("Aborted","AbortError"))},a=setTimeout(()=>{t?.removeEventListener("abort",i),r()},e);t?.addEventListener("abort",i,{once:!0})})}const pA=A.createContext(null),wj=()=>{const e=A.useContext(pA);if(!e)throw new Error("useChatId must be used within ElementsProvider");return e.chatId},hA=A.createContext(void 0),Sj=A.createContext(null),av=()=>{const e=A.useContext(hA);if(!e)throw new Error("useElements must be used within a ElementsProvider");return e},Oj={compact:{"p-xs":"p-1","p-sm":"p-1.5","p-md":"p-2","p-lg":"p-2.5","p-xl":"p-3","px-xs":"px-1","px-sm":"px-1.5","px-md":"px-2","px-lg":"px-2.5","px-xl":"px-3","py-xs":"py-1","py-sm":"py-1.5","py-md":"py-2","py-lg":"py-2.5","py-xl":"py-3","gap-sm":"gap-1","gap-md":"gap-1.5","gap-lg":"gap-2","gap-xl":"gap-2.5","h-header":"h-10","h-input":"min-h-10","text-base":"text-sm","text-title":"text-xl","text-subtitle":"text-sm"},normal:{"p-xs":"p-1","p-sm":"p-2","p-md":"p-3","p-lg":"p-4","p-xl":"p-6","px-xs":"px-1","px-sm":"px-2","px-md":"px-3","px-lg":"px-4","px-xl":"px-6","py-xs":"py-1","py-sm":"py-2","py-md":"py-3","py-lg":"py-4","py-xl":"py-6","gap-sm":"gap-1.5","gap-md":"gap-2","gap-lg":"gap-3","gap-xl":"gap-4","h-header":"h-12","h-input":"min-h-12","text-base":"text-base","text-title":"text-2xl","text-subtitle":"text-base"},spacious:{"p-xs":"p-2","p-sm":"p-3","p-md":"p-4","p-lg":"p-6","p-xl":"p-10","px-xs":"px-2","px-sm":"px-3","px-md":"px-4","px-lg":"px-6","px-xl":"px-10","py-xs":"py-2","py-sm":"py-3","py-md":"py-4","py-lg":"py-6","py-xl":"py-10","gap-sm":"gap-2","gap-md":"gap-3","gap-lg":"gap-4","gap-xl":"gap-6","h-header":"h-14","h-input":"min-h-16","text-base":"text-lg","text-title":"text-3xl","text-subtitle":"text-lg"}},ov=()=>{const{config:e}=av(),t=e.theme?.density??"normal";return r=>Oj[t][r]};function vA(e){return typeof e=="object"&&e!==null&&"type"in e&&typeof e.type=="string"}const mA=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();const Aj=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const _j=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase());const Xm=e=>{const t=_j(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Zc={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Pj=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},Ej=A.createContext({}),Tj=()=>A.useContext(Ej),Cj=A.forwardRef(({color:e,size:t,strokeWidth:r,absoluteStrokeWidth:n,className:i="",children:a,iconNode:o,...s},c)=>{const{size:u=24,strokeWidth:l=2,absoluteStrokeWidth:f=!1,color:d="currentColor",className:h=""}=Tj()??{},m=n??f?Number(r??l)*24/Number(t??u):r??l;return A.createElement("svg",{ref:c,...Zc,width:t??u??Zc.width,height:t??u??Zc.height,stroke:e??d,strokeWidth:m,className:mA("lucide",h,i),...!a&&!Pj(s)&&{"aria-hidden":"true"},...s},[...o.map(([v,p])=>A.createElement(v,p)),...Array.isArray(a)?a:[a]])});const za=(e,t)=>{const r=A.forwardRef(({className:n,...i},a)=>A.createElement(Cj,{ref:a,iconNode:t,className:mA(`lucide-${Aj(Xm(e))}`,`lucide-${e}`,n),...i}));return r.displayName=Xm(e),r};const jj=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],sv=za("check",jj);const Ij=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Qs=za("chevron-down",Ij);const kj=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],yA=za("chevron-up",kj);const Rj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],cv=za("circle-alert",Rj),Mj={sharp:{sm:"rounded-sm",md:"rounded",lg:"rounded-md",xl:"rounded-lg",full:"rounded-lg"},soft:{sm:"rounded",md:"rounded-lg",lg:"rounded-xl",xl:"rounded-2xl",full:"rounded-full"},round:{sm:"rounded-lg",md:"rounded-xl",lg:"rounded-2xl",xl:"rounded-3xl",full:"rounded-full"}},gA=()=>{const{config:e}=av(),t=e.theme?.radius??"soft";return r=>Mj[t][r]},Do=({children:e,className:t,title:r})=>{const n=gA();return _.jsx("div",{className:"@container my-4 w-full first:mt-0",children:_.jsxs("div",{className:ae("w-full overflow-hidden border border-border after:hidden @sm:max-w-md @md:max-w-lg @lg:max-w-xl @xl:max-w-2xl",n("lg"),t),children:[_.jsxs("div",{className:"flex h-8 items-center gap-2 border-b border-border bg-muted/50 px-3",children:[_.jsxs("div",{className:"flex items-center gap-1.5",children:[_.jsx("div",{className:"size-3 rounded-full bg-[#FF5F57]"}),_.jsx("div",{className:"size-3 rounded-full bg-[#FEBC2E]"}),_.jsx("div",{className:"size-3 rounded-full bg-[#28C840]"})]}),r&&_.jsx("span",{className:"flex-1 text-center text-xs font-medium text-muted-foreground",children:r})]}),e]})})},$j=({text:e,className:t})=>_.jsx(Do,{className:t,children:_.jsx("div",{className:ae("relative flex min-h-[400px] items-center justify-center bg-background"),children:_.jsx("span",{className:"shimmer text-sm text-muted-foreground",children:e})})});var Jc,Zm;function it(){if(Zm)return Jc;Zm=1;var e=Array.isArray;return Jc=e,Jc}var Qc,Jm;function bA(){if(Jm)return Qc;Jm=1;var e=typeof io=="object"&&io&&io.Object===Object&&io;return Qc=e,Qc}var eu,Qm;function Kt(){if(Qm)return eu;Qm=1;var e=bA(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return eu=r,eu}var tu,ey;function Wa(){if(ey)return tu;ey=1;var e=Kt(),t=e.Symbol;return tu=t,tu}var ru,ty;function Nj(){if(ty)return ru;ty=1;var e=Wa(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var s=r.call(o,i),c=o[i];try{o[i]=void 0;var u=!0}catch{}var l=n.call(o);return u&&(s?o[i]=c:delete o[i]),l}return ru=a,ru}var nu,ry;function Dj(){if(ry)return nu;ry=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return nu=r,nu}var iu,ny;function mr(){if(ny)return iu;ny=1;var e=Wa(),t=Nj(),r=Dj(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:n:a&&a in Object(s)?t(s):r(s)}return iu=o,iu}var au,iy;function yr(){if(iy)return au;iy=1;function e(t){return t!=null&&typeof t=="object"}return au=e,au}var ou,ay;function gi(){if(ay)return ou;ay=1;var e=mr(),t=yr(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return ou=n,ou}var su,oy;function uv(){if(oy)return su;oy=1;var e=it(),t=gi(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return su=i,su}var cu,sy;function $r(){if(sy)return cu;sy=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return cu=e,cu}var uu,cy;function lv(){if(cy)return uu;cy=1;var e=mr(),t=$r(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(s){if(!t(s))return!1;var c=e(s);return c==n||c==i||c==r||c==a}return uu=o,uu}var lu,uy;function Lj(){if(uy)return lu;uy=1;var e=Kt(),t=e["__core-js_shared__"];return lu=t,lu}var fu,ly;function Bj(){if(ly)return fu;ly=1;var e=Lj(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return fu=r,fu}var du,fy;function xA(){if(fy)return du;fy=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return du=r,du}var pu,dy;function qj(){if(dy)return pu;dy=1;var e=lv(),t=Bj(),r=$r(),n=xA(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,c=o.toString,u=s.hasOwnProperty,l=RegExp("^"+c.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(d){if(!r(d)||t(d))return!1;var h=e(d)?l:a;return h.test(n(d))}return pu=f,pu}var hu,py;function Fj(){if(py)return hu;py=1;function e(t,r){return t?.[r]}return hu=e,hu}var vu,hy;function vn(){if(hy)return vu;hy=1;var e=qj(),t=Fj();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return vu=r,vu}var mu,vy;function ec(){if(vy)return mu;vy=1;var e=vn(),t=e(Object,"create");return mu=t,mu}var yu,my;function zj(){if(my)return yu;my=1;var e=ec();function t(){this.__data__=e?e(null):{},this.size=0}return yu=t,yu}var gu,yy;function Wj(){if(yy)return gu;yy=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return gu=e,gu}var bu,gy;function Uj(){if(gy)return bu;gy=1;var e=ec(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var s=o[a];return s===t?void 0:s}return n.call(o,a)?o[a]:void 0}return bu=i,bu}var xu,by;function Hj(){if(by)return xu;by=1;var e=ec(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return xu=n,xu}var wu,xy;function Vj(){if(xy)return wu;xy=1;var e=ec(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return wu=r,wu}var Su,wy;function Kj(){if(wy)return Su;wy=1;var e=zj(),t=Wj(),r=Uj(),n=Hj(),i=Vj();function a(o){var s=-1,c=o==null?0:o.length;for(this.clear();++s<c;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Su=a,Su}var Ou,Sy;function Gj(){if(Sy)return Ou;Sy=1;function e(){this.__data__=[],this.size=0}return Ou=e,Ou}var Au,Oy;function fv(){if(Oy)return Au;Oy=1;function e(t,r){return t===r||t!==t&&r!==r}return Au=e,Au}var _u,Ay;function tc(){if(Ay)return _u;Ay=1;var e=fv();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return _u=t,_u}var Pu,_y;function Yj(){if(_y)return Pu;_y=1;var e=tc(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():r.call(a,o,1),--this.size,!0}return Pu=n,Pu}var Eu,Py;function Xj(){if(Py)return Eu;Py=1;var e=tc();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Eu=t,Eu}var Tu,Ey;function Zj(){if(Ey)return Tu;Ey=1;var e=tc();function t(r){return e(this.__data__,r)>-1}return Tu=t,Tu}var Cu,Ty;function Jj(){if(Ty)return Cu;Ty=1;var e=tc();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Cu=t,Cu}var ju,Cy;function rc(){if(Cy)return ju;Cy=1;var e=Gj(),t=Yj(),r=Xj(),n=Zj(),i=Jj();function a(o){var s=-1,c=o==null?0:o.length;for(this.clear();++s<c;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,ju=a,ju}var Iu,jy;function dv(){if(jy)return Iu;jy=1;var e=vn(),t=Kt(),r=e(t,"Map");return Iu=r,Iu}var ku,Iy;function Qj(){if(Iy)return ku;Iy=1;var e=Kj(),t=rc(),r=dv();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return ku=n,ku}var Ru,ky;function eI(){if(ky)return Ru;ky=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Ru=e,Ru}var Mu,Ry;function nc(){if(Ry)return Mu;Ry=1;var e=eI();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Mu=t,Mu}var $u,My;function tI(){if(My)return $u;My=1;var e=nc();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return $u=t,$u}var Nu,$y;function rI(){if($y)return Nu;$y=1;var e=nc();function t(r){return e(this,r).get(r)}return Nu=t,Nu}var Du,Ny;function nI(){if(Ny)return Du;Ny=1;var e=nc();function t(r){return e(this,r).has(r)}return Du=t,Du}var Lu,Dy;function iI(){if(Dy)return Lu;Dy=1;var e=nc();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Lu=t,Lu}var Bu,Ly;function pv(){if(Ly)return Bu;Ly=1;var e=Qj(),t=tI(),r=rI(),n=nI(),i=iI();function a(o){var s=-1,c=o==null?0:o.length;for(this.clear();++s<c;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Bu=a,Bu}var qu,By;function wA(){if(By)return qu;By=1;var e=pv(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,s=i?i.apply(this,o):o[0],c=a.cache;if(c.has(s))return c.get(s);var u=n.apply(this,o);return a.cache=c.set(s,u)||c,u};return a.cache=new(r.Cache||e),a}return r.Cache=e,qu=r,qu}var Fu,qy;function aI(){if(qy)return Fu;qy=1;var e=wA(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Fu=r,Fu}var zu,Fy;function oI(){if(Fy)return zu;Fy=1;var e=aI(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,s,c,u){a.push(c?u.replace(r,"$1"):s||o)}),a});return zu=n,zu}var Wu,zy;function hv(){if(zy)return Wu;zy=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return Wu=e,Wu}var Uu,Wy;function sI(){if(Wy)return Uu;Wy=1;var e=Wa(),t=hv(),r=it(),n=gi(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(s){if(typeof s=="string")return s;if(r(s))return t(s,o)+"";if(n(s))return a?a.call(s):"";var c=s+"";return c=="0"&&1/s==-1/0?"-0":c}return Uu=o,Uu}var Hu,Uy;function SA(){if(Uy)return Hu;Uy=1;var e=sI();function t(r){return r==null?"":e(r)}return Hu=t,Hu}var Vu,Hy;function OA(){if(Hy)return Vu;Hy=1;var e=it(),t=uv(),r=oI(),n=SA();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Vu=i,Vu}var Ku,Vy;function ic(){if(Vy)return Ku;Vy=1;var e=gi();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Ku=t,Ku}var Gu,Ky;function vv(){if(Ky)return Gu;Ky=1;var e=OA(),t=ic();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return Gu=r,Gu}var Yu,Gy;function AA(){if(Gy)return Yu;Gy=1;var e=vv();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Yu=t,Yu}var cI=AA();const lt=Oe(cI);var Xu,Yy;function uI(){if(Yy)return Xu;Yy=1;function e(t){return t==null}return Xu=e,Xu}var lI=uI();const se=Oe(lI);var Zu,Xy;function fI(){if(Xy)return Zu;Xy=1;var e=mr(),t=it(),r=yr(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Zu=i,Zu}var dI=fI();const sn=Oe(dI);var pI=lv();const oe=Oe(pI);var hI=$r();const bi=Oe(hI);var so={exports:{}},ge={};var Zy;function vI(){if(Zy)return ge;Zy=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function v(p){if(typeof p=="object"&&p!==null){var g=p.$$typeof;switch(g){case e:switch(p=p.type,p){case r:case i:case n:case u:case l:return p;default:switch(p=p&&p.$$typeof,p){case s:case o:case c:case d:case f:case a:return p;default:return g}}case t:return g}}}return ge.ContextConsumer=o,ge.ContextProvider=a,ge.Element=e,ge.ForwardRef=c,ge.Fragment=r,ge.Lazy=d,ge.Memo=f,ge.Portal=t,ge.Profiler=i,ge.StrictMode=n,ge.Suspense=u,ge.SuspenseList=l,ge.isAsyncMode=function(){return!1},ge.isConcurrentMode=function(){return!1},ge.isContextConsumer=function(p){return v(p)===o},ge.isContextProvider=function(p){return v(p)===a},ge.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},ge.isForwardRef=function(p){return v(p)===c},ge.isFragment=function(p){return v(p)===r},ge.isLazy=function(p){return v(p)===d},ge.isMemo=function(p){return v(p)===f},ge.isPortal=function(p){return v(p)===t},ge.isProfiler=function(p){return v(p)===i},ge.isStrictMode=function(p){return v(p)===n},ge.isSuspense=function(p){return v(p)===u},ge.isSuspenseList=function(p){return v(p)===l},ge.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===n||p===u||p===l||p===h||typeof p=="object"&&p!==null&&(p.$$typeof===d||p.$$typeof===f||p.$$typeof===a||p.$$typeof===o||p.$$typeof===c||p.$$typeof===m||p.getModuleId!==void 0)},ge.typeOf=v,ge}var be={};var Jy;function mI(){return Jy||(Jy=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=!1,v=!1,p=!1,g=!1,b=!1,x;x=Symbol.for("react.module.reference");function w(V){return!!(typeof V=="string"||typeof V=="function"||V===r||V===i||b||V===n||V===u||V===l||g||V===h||m||v||p||typeof V=="object"&&V!==null&&(V.$$typeof===d||V.$$typeof===f||V.$$typeof===a||V.$$typeof===o||V.$$typeof===c||V.$$typeof===x||V.getModuleId!==void 0))}function y(V){if(typeof V=="object"&&V!==null){var ye=V.$$typeof;switch(ye){case e:var Ae=V.type;switch(Ae){case r:case i:case n:case u:case l:return Ae;default:var $e=Ae&&Ae.$$typeof;switch($e){case s:case o:case c:case d:case f:case a:return $e;default:return ye}}case t:return ye}}}var S=o,O=a,P=e,T=c,k=r,C=d,j=f,R=t,N=i,D=n,$=u,L=l,B=!1,W=!1;function I(V){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function F(V){return W||(W=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function U(V){return y(V)===o}function G(V){return y(V)===a}function Z(V){return typeof V=="object"&&V!==null&&V.$$typeof===e}function J(V){return y(V)===c}function Q(V){return y(V)===r}function K(V){return y(V)===d}function ee(V){return y(V)===f}function q(V){return y(V)===t}function H(V){return y(V)===i}function X(V){return y(V)===n}function M(V){return y(V)===u}function ce(V){return y(V)===l}be.ContextConsumer=S,be.ContextProvider=O,be.Element=P,be.ForwardRef=T,be.Fragment=k,be.Lazy=C,be.Memo=j,be.Portal=R,be.Profiler=N,be.StrictMode=D,be.Suspense=$,be.SuspenseList=L,be.isAsyncMode=I,be.isConcurrentMode=F,be.isContextConsumer=U,be.isContextProvider=G,be.isElement=Z,be.isForwardRef=J,be.isFragment=Q,be.isLazy=K,be.isMemo=ee,be.isPortal=q,be.isProfiler=H,be.isStrictMode=X,be.isSuspense=M,be.isSuspenseList=ce,be.isValidElementType=w,be.typeOf=y})()),be}var Qy;function yI(){return Qy||(Qy=1,process.env.NODE_ENV==="production"?so.exports=vI():so.exports=mI()),so.exports}var gI=yI(),Ju,eg;function _A(){if(eg)return Ju;eg=1;var e=mr(),t=yr(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Ju=n,Ju}var Qu,tg;function bI(){if(tg)return Qu;tg=1;var e=_A();function t(r){return e(r)&&r!=+r}return Qu=t,Qu}var xI=bI();const xi=Oe(xI);var wI=_A();const SI=Oe(wI);var Je=function(t){return t===0?0:t>0?1:-1},Qr=function(t){return sn(t)&&t.indexOf("%")===t.length-1},Y=function(t){return SI(t)&&!xi(t)},OI=function(t){return se(t)},ze=function(t){return Y(t)||sn(t)},AI=0,Nr=function(t){var r=++AI;return"".concat(t||"").concat(r)},Qe=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Y(t)&&!sn(t))return n;var a;if(Qr(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return xi(a)&&(a=n),i&&a>r&&(a=r),a},Ar=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},_I=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},Pe=function(t,r){return Y(t)&&Y(r)?function(n){return t+n*(r-t)}:function(){return r}};function Lo(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):lt(n,t))===r})}var PI=function(t){if(!t||!t.length)return null;for(var r=t.length,n=0,i=0,a=0,o=0,s=1/0,c=-1/0,u=0,l=0,f=0;f<r;f++)u=t[f].cx||0,l=t[f].cy||0,n+=u,i+=l,a+=u*l,o+=u*u,s=Math.min(s,u),c=Math.max(c,u);var d=r*o!==n*n?(r*a-n*i)/(r*o-n*n):0;return{xmin:s,xmax:c,a:d,b:(i-d*n)/r}},EI=function(t,r){return Y(t)&&Y(r)?t-r:sn(t)&&sn(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Mn(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function bp(e){"@babel/helpers - typeof";return bp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bp(e)}var TI=["viewBox","children"],CI=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],rg=["points","pathLength"],el={svg:TI,polygon:rg,polyline:rg},mv=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Bo=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(A.isValidElement(t)&&(n=t.props),!bi(n))return null;var i={};return Object.keys(n).forEach(function(a){mv.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},jI=function(t,r,n){return function(i){return t(r,n,i),null}},Ir=function(t,r,n){if(!bi(t)||bp(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];mv.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=jI(o,r,n))}),i},II=["children"],kI=["children"];function ng(e,t){if(e==null)return{};var r=RI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function RI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function xp(e){"@babel/helpers - typeof";return xp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xp(e)}var ig={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},or=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},ag=null,tl=null,yv=function e(t){if(t===ag&&Array.isArray(tl))return tl;var r=[];return A.Children.forEach(t,function(n){se(n)||(gI.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),tl=r,ag=t,r};function tt(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return or(i)}):n=[or(t)],yv(e).forEach(function(i){var a=lt(i,"type.displayName")||lt(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function st(e,t){var r=tt(e,t);return r&&r[0]}var og=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!Y(n)||n<=0||!Y(i)||i<=0)},MI=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],$I=function(t){return t&&t.type&&sn(t.type)&&MI.indexOf(t.type)>=0},PA=function(t){return t&&xp(t)==="object"&&"clipDot"in t},NI=function(t,r,n,i){var a,o=(a=el?.[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!oe(t)&&(i&&o.includes(r)||CI.includes(r))||n&&mv.includes(r)},re=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(A.isValidElement(t)&&(i=t.props),!bi(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;NI((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},wp=function e(t,r){if(t===r)return!0;var n=A.Children.count(t);if(n!==A.Children.count(r))return!1;if(n===0)return!0;if(n===1)return sg(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!sg(a,o))return!1}return!0},sg=function(t,r){if(se(t)&&se(r))return!0;if(!se(t)&&!se(r)){var n=t.props||{},i=n.children,a=ng(n,II),o=r.props||{},s=o.children,c=ng(o,kI);return i&&s?Mn(a,c)&&wp(i,s):!i&&!s?Mn(a,c):!1}return!1},cg=function(t,r){var n=[],i={};return yv(t).forEach(function(a,o){if($I(a))n.push(a);else if(a){var s=or(a.type),c=r[s]||{},u=c.handler,l=c.once;if(u&&(!l||!i[s])){var f=u(a,s,o);n.push(f),i[s]=!0}}}),n},DI=function(t){var r=t&&t.type;return r&&ig[r]?ig[r]:null},LI=function(t,r){return yv(r).indexOf(t)},BI=["children","width","height","viewBox","className","style","title","desc"];function Sp(){return Sp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sp.apply(this,arguments)}function qI(e,t){if(e==null)return{};var r=FI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function FI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Op(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,c=e.desc,u=qI(e,BI),l=i||{width:r,height:n,x:0,y:0},f=le("recharts-surface",a);return A.createElement("svg",Sp({},re(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(l.x," ").concat(l.y," ").concat(l.width," ").concat(l.height)}),A.createElement("title",null,s),A.createElement("desc",null,c),t)}var zI=["children","className"];function Ap(){return Ap=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ap.apply(this,arguments)}function WI(e,t){if(e==null)return{};var r=UI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function UI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var fe=A.forwardRef(function(e,t){var r=e.children,n=e.className,i=WI(e,zI),a=le("recharts-layer",n);return A.createElement("g",Ap({className:a},re(i,!0),{ref:t}),r)}),HI=process.env.NODE_ENV!=="production",Tt=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(HI&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,function(){return i[o++]}))}},rl,ug;function VI(){if(ug)return rl;ug=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return rl=e,rl}var nl,lg;function KI(){if(lg)return nl;lg=1;var e=VI();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return nl=t,nl}var il,fg;function EA(){if(fg)return il;fg=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+i+a+"]");function c(u){return s.test(u)}return il=c,il}var al,dg;function GI(){if(dg)return al;dg=1;function e(t){return t.split("")}return al=e,al}var ol,pg;function YI(){if(pg)return ol;pg=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",s="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",u="(?:"+s+"|"+c+")",l="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",m=u+"?",v="["+a+"]?",p="(?:"+h+"(?:"+[l,f,d].join("|")+")"+v+m+")*",g=v+m+p,b="(?:"+[l+s+"?",s,f,d,o].join("|")+")",x=RegExp(c+"(?="+c+")|"+b+g,"g");function w(y){return y.match(x)||[]}return ol=w,ol}var sl,hg;function XI(){if(hg)return sl;hg=1;var e=GI(),t=EA(),r=YI();function n(i){return t(i)?r(i):e(i)}return sl=n,sl}var cl,vg;function ZI(){if(vg)return cl;vg=1;var e=KI(),t=EA(),r=XI(),n=SA();function i(a){return function(o){o=n(o);var s=t(o)?r(o):void 0,c=s?s[0]:o.charAt(0),u=s?e(s,1).join(""):o.slice(1);return c[a]()+u}}return cl=i,cl}var ul,mg;function JI(){if(mg)return ul;mg=1;var e=ZI(),t=e("toUpperCase");return ul=t,ul}var QI=JI();const ac=Oe(QI);function je(e){return function(){return e}}const TA=Math.cos,qo=Math.sin,Rt=Math.sqrt,Fo=Math.PI,oc=2*Fo,_p=Math.PI,Pp=2*_p,Xr=1e-6,ek=Pp-Xr;function CA(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function tk(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return CA;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class rk{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?CA:tk(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,c=n-t,u=i-r,l=o-t,f=s-r,d=l*l+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Xr)if(!(Math.abs(f*c-u*l)>Xr)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,m=i-s,v=c*c+u*u,p=h*h+m*m,g=Math.sqrt(v),b=Math.sqrt(d),x=a*Math.tan((_p-Math.acos((v+d-p)/(2*g*b)))/2),w=x/b,y=x/g;Math.abs(w-1)>Xr&&this._append`L${t+w*l},${r+w*f}`,this._append`A${a},${a},0,0,${+(f*h>l*m)},${this._x1=t+y*c},${this._y1=r+y*u}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),c=n*Math.sin(i),u=t+s,l=r+c,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${u},${l}`:(Math.abs(this._x1-u)>Xr||Math.abs(this._y1-l)>Xr)&&this._append`L${u},${l}`,n&&(d<0&&(d=d%Pp+Pp),d>ek?this._append`A${n},${n},0,1,${f},${t-s},${r-c}A${n},${n},0,1,${f},${this._x1=u},${this._y1=l}`:d>Xr&&this._append`A${n},${n},0,${+(d>=_p)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function gv(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new rk(t)}function bv(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function jA(e){this._context=e}jA.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 sc(e){return new jA(e)}function IA(e){return e[0]}function kA(e){return e[1]}function RA(e,t){var r=je(!0),n=null,i=sc,a=null,o=gv(s);e=typeof e=="function"?e:e===void 0?IA:je(e),t=typeof t=="function"?t:t===void 0?kA:je(t);function s(c){var u,l=(c=bv(c)).length,f,d=!1,h;for(n==null&&(a=i(h=o())),u=0;u<=l;++u)!(u<l&&r(f=c[u],u,c))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,u,c),+t(f,u,c));if(h)return a=null,h+""||null}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:je(+c),s):e},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:je(+c),s):t},s.defined=function(c){return arguments.length?(r=typeof c=="function"?c:je(!!c),s):r},s.curve=function(c){return arguments.length?(i=c,n!=null&&(a=i(n)),s):i},s.context=function(c){return arguments.length?(c==null?n=a=null:a=i(n=c),s):n},s}function co(e,t,r){var n=null,i=je(!0),a=null,o=sc,s=null,c=gv(u);e=typeof e=="function"?e:e===void 0?IA:je(+e),t=typeof t=="function"?t:je(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?kA:je(+r);function u(f){var d,h,m,v=(f=bv(f)).length,p,g=!1,b,x=new Array(v),w=new Array(v);for(a==null&&(s=o(b=c())),d=0;d<=v;++d){if(!(d<v&&i(p=f[d],d,f))===g)if(g=!g)h=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=d-1;m>=h;--m)s.point(x[m],w[m]);s.lineEnd(),s.areaEnd()}g&&(x[d]=+e(p,d,f),w[d]=+t(p,d,f),s.point(n?+n(p,d,f):x[d],r?+r(p,d,f):w[d]))}if(b)return s=null,b+""||null}function l(){return RA().defined(i).curve(o).context(a)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:je(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:je(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:je(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:je(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:je(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:je(+f),u):r},u.lineX0=u.lineY0=function(){return l().x(e).y(t)},u.lineY1=function(){return l().x(e).y(r)},u.lineX1=function(){return l().x(n).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:je(!!f),u):i},u.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),u):o},u.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),u):a},u}class MA{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function nk(e){return new MA(e,!0)}function ik(e){return new MA(e,!1)}const xv={draw(e,t){const r=Rt(t/Fo);e.moveTo(r,0),e.arc(0,0,r,0,oc)}},ak={draw(e,t){const r=Rt(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},$A=Rt(1/3),ok=$A*2,sk={draw(e,t){const r=Rt(t/ok),n=r*$A;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},ck={draw(e,t){const r=Rt(t),n=-r/2;e.rect(n,n,r,r)}},uk=.8908130915292852,NA=qo(Fo/10)/qo(7*Fo/10),lk=qo(oc/10)*NA,fk=-TA(oc/10)*NA,dk={draw(e,t){const r=Rt(t*uk),n=lk*r,i=fk*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=oc*a/5,s=TA(o),c=qo(o);e.lineTo(c*r,-s*r),e.lineTo(s*n-c*i,c*n+s*i)}e.closePath()}},ll=Rt(3),pk={draw(e,t){const r=-Rt(t/(ll*3));e.moveTo(0,r*2),e.lineTo(-ll*r,-r),e.lineTo(ll*r,-r),e.closePath()}},pt=-.5,ht=Rt(3)/2,Ep=1/Rt(12),hk=(Ep/2+1)*3,vk={draw(e,t){const r=Rt(t/hk),n=r/2,i=r*Ep,a=n,o=r*Ep+r,s=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,c),e.lineTo(pt*n-ht*i,ht*n+pt*i),e.lineTo(pt*a-ht*o,ht*a+pt*o),e.lineTo(pt*s-ht*c,ht*s+pt*c),e.lineTo(pt*n+ht*i,pt*i-ht*n),e.lineTo(pt*a+ht*o,pt*o-ht*a),e.lineTo(pt*s+ht*c,pt*c-ht*s),e.closePath()}};function mk(e,t){let r=null,n=gv(i);e=typeof e=="function"?e:je(e||xv),t=typeof t=="function"?t:je(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:je(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:je(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function zo(){}function Wo(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function DA(e){this._context=e}DA.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:Wo(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:Wo(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function yk(e){return new DA(e)}function LA(e){this._context=e}LA.prototype={areaStart:zo,areaEnd:zo,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:Wo(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gk(e){return new LA(e)}function BA(e){this._context=e}BA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Wo(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function bk(e){return new BA(e)}function qA(e){this._context=e}qA.prototype={areaStart:zo,areaEnd:zo,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 xk(e){return new qA(e)}function yg(e){return e<0?-1:1}function gg(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(yg(a)+yg(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function bg(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function fl(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function Uo(e){this._context=e}Uo.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:fl(this,this._t0,bg(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,fl(this,bg(this,r=gg(this,e,t)),r);break;default:fl(this,this._t0,r=gg(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function FA(e){this._context=new zA(e)}(FA.prototype=Object.create(Uo.prototype)).point=function(e,t){Uo.prototype.point.call(this,t,e)};function zA(e){this._context=e}zA.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function wk(e){return new Uo(e)}function Sk(e){return new FA(e)}function WA(e){this._context=e}WA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=xg(e),i=xg(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function xg(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Ok(e){return new WA(e)}function cc(e,t){this._context=e,this._t=t}cc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Ak(e){return new cc(e,.5)}function _k(e){return new cc(e,0)}function Pk(e){return new cc(e,1)}function Bn(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Tp(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Ek(e,t){return e[t]}function Tk(e){const t=[];return t.key=e,t}function Ck(){var e=je([]),t=Tp,r=Bn,n=Ek;function i(a){var o=Array.from(e.apply(this,arguments),Tk),s,c=o.length,u=-1,l;for(const f of a)for(s=0,++u;s<c;++s)(o[s][u]=[0,+n(f,o[s].key,u,a)]).data=f;for(s=0,l=bv(t(o));s<c;++s)o[l[s]].index=s;return r(o,l),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:je(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:je(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Tp:typeof a=="function"?a:je(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Bn,i):r},i}function jk(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Bn(e,t)}}function Ik(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}Bn(e,t)}}function kk(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var s=0,c=0,u=0;s<o;++s){for(var l=e[t[s]],f=l[n][1]||0,d=l[n-1][1]||0,h=(f-d)/2,m=0;m<s;++m){var v=e[t[m]],p=v[n][1]||0,g=v[n-1][1]||0;h+=p-g}c+=f,u+=h*f}i[n-1][1]+=i[n-1][0]=r,c&&(r-=u/c)}i[n-1][1]+=i[n-1][0]=r,Bn(e,t)}}function ia(e){"@babel/helpers - typeof";return ia=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ia(e)}var Rk=["type","size","sizeType"];function Cp(){return Cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cp.apply(this,arguments)}function wg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Sg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wg(Object(r),!0).forEach(function(n){Mk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mk(e,t,r){return t=$k(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $k(e){var t=Nk(e,"string");return ia(t)=="symbol"?t:t+""}function Nk(e,t){if(ia(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ia(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dk(e,t){if(e==null)return{};var r=Lk(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Lk(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var UA={symbolCircle:xv,symbolCross:ak,symbolDiamond:sk,symbolSquare:ck,symbolStar:dk,symbolTriangle:pk,symbolWye:vk},Bk=Math.PI/180,qk=function(t){var r="symbol".concat(ac(t));return UA[r]||xv},Fk=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*Bk;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},zk=function(t,r){UA["symbol".concat(ac(t))]=r},uc=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,c=Dk(t,Rk),u=Sg(Sg({},c),{},{type:n,size:a,sizeType:s}),l=function(){var p=qk(n),g=mk().type(p).size(Fk(a,s,n));return g()},f=u.className,d=u.cx,h=u.cy,m=re(u,!0);return d===+d&&h===+h&&a===+a?A.createElement("path",Cp({},m,{className:le("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(h,")"),d:l()})):null};uc.registerSymbol=zk;function qn(e){"@babel/helpers - typeof";return qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qn(e)}function jp(){return jp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jp.apply(this,arguments)}function Og(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wk(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Og(Object(r),!0).forEach(function(n){aa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Og(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Uk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,VA(n.key),n)}}function Vk(e,t,r){return t&&Hk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kk(e,t,r){return t=Ho(t),Gk(e,HA()?Reflect.construct(t,r||[],Ho(e).constructor):t.apply(e,r))}function Gk(e,t){if(t&&(qn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yk(e)}function Yk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(HA=function(){return!!e})()}function Ho(e){return Ho=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ho(e)}function Xk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ip(e,t)}function Ip(e,t){return Ip=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ip(e,t)}function aa(e,t,r){return t=VA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VA(e){var t=Zk(e,"string");return qn(t)=="symbol"?t:t+""}function Zk(e,t){if(qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vt=32,wv=(function(e){function t(){return Uk(this,t),Kk(this,t,arguments)}return Xk(t,e),Vk(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=vt/2,o=vt/6,s=vt/3,c=n.inactive?i:n.color;if(n.type==="plainline")return A.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:vt,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return A.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(s,`
|
|
2
2
|
A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(a,`
|
|
3
3
|
H`).concat(vt,"M").concat(2*s,",").concat(a,`
|
|
4
|
-
A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return O.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(vt/8,"h").concat(vt,"v").concat(vt*3/4,"h").concat(-vt,"z"),className:"recharts-legend-icon"});if(O.isValidElement(n.legendIcon)){var u=FR({},n);return delete u.legendIcon,O.cloneElement(n.legendIcon,u)}return O.createElement(uc,{fill:c,cx:a,cy:a,size:vt,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,s=i.layout,c=i.formatter,u=i.inactiveColor,l={x:0,y:0,width:vt,height:vt},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(h,m){var v=h.formatter||c,p=le(aa(aa({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",h.inactive));if(h.type==="none")return null;var g=oe(h.value)?null:h.value;Tt(!oe(h.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var b=h.inactive?u:h.color;return O.createElement("li",jp({className:p,style:f,key:"legend-item-".concat(m)},Ir(n.props,h,m)),O.createElement(Op,{width:o,height:o,viewBox:l,style:d},n.renderIcon(h)),O.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},v?v(g,h,m):g))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return O.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(O.PureComponent);aa(wv,"displayName","Legend");aa(wv,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var dl,Ag;function XR(){if(Ag)return dl;Ag=1;var e=rc();function t(){this.__data__=new e,this.size=0}return dl=t,dl}var pl,_g;function ZR(){if(_g)return pl;_g=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return pl=e,pl}var hl,Pg;function JR(){if(Pg)return hl;Pg=1;function e(t){return this.__data__.get(t)}return hl=e,hl}var vl,Eg;function QR(){if(Eg)return vl;Eg=1;function e(t){return this.__data__.has(t)}return vl=e,vl}var ml,Tg;function ek(){if(Tg)return ml;Tg=1;var e=rc(),t=dv(),r=pv(),n=200;function i(a,o){var s=this.__data__;if(s instanceof e){var c=s.__data__;if(!t||c.length<n-1)return c.push([a,o]),this.size=++s.size,this;s=this.__data__=new r(c)}return s.set(a,o),this.size=s.size,this}return ml=i,ml}var yl,Cg;function KA(){if(Cg)return yl;Cg=1;var e=rc(),t=XR(),r=ZR(),n=JR(),i=QR(),a=ek();function o(s){var c=this.__data__=new e(s);this.size=c.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,yl=o,yl}var gl,jg;function tk(){if(jg)return gl;jg=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return gl=t,gl}var bl,Ig;function rk(){if(Ig)return bl;Ig=1;function e(t){return this.__data__.has(t)}return bl=e,bl}var xl,Rg;function GA(){if(Rg)return xl;Rg=1;var e=pv(),t=tk(),r=rk();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,xl=n,xl}var wl,kg;function YA(){if(kg)return wl;kg=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return wl=e,wl}var Sl,Mg;function XA(){if(Mg)return Sl;Mg=1;function e(t,r){return t.has(r)}return Sl=e,Sl}var Ol,$g;function ZA(){if($g)return Ol;$g=1;var e=GA(),t=YA(),r=XA(),n=1,i=2;function a(o,s,c,u,l,f){var d=c&n,h=o.length,m=s.length;if(h!=m&&!(d&&m>h))return!1;var v=f.get(o),p=f.get(s);if(v&&p)return v==s&&p==o;var g=-1,b=!0,x=c&i?new e:void 0;for(f.set(o,s),f.set(s,o);++g<h;){var w=o[g],y=s[g];if(u)var S=d?u(y,w,g,s,o,f):u(w,y,g,o,s,f);if(S!==void 0){if(S)continue;b=!1;break}if(x){if(!t(s,function(A,P){if(!r(x,P)&&(w===A||l(w,A,c,u,f)))return x.push(P)})){b=!1;break}}else if(!(w===y||l(w,y,c,u,f))){b=!1;break}}return f.delete(o),f.delete(s),b}return Ol=a,Ol}var Al,Ng;function nk(){if(Ng)return Al;Ng=1;var e=Vt(),t=e.Uint8Array;return Al=t,Al}var _l,Dg;function ik(){if(Dg)return _l;Dg=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return _l=e,_l}var Pl,Lg;function Sv(){if(Lg)return Pl;Lg=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return Pl=e,Pl}var El,Bg;function ak(){if(Bg)return El;Bg=1;var e=Wa(),t=nk(),r=fv(),n=ZA(),i=ik(),a=Sv(),o=1,s=2,c="[object Boolean]",u="[object Date]",l="[object Error]",f="[object Map]",d="[object Number]",h="[object RegExp]",m="[object Set]",v="[object String]",p="[object Symbol]",g="[object ArrayBuffer]",b="[object DataView]",x=e?e.prototype:void 0,w=x?x.valueOf:void 0;function y(S,A,P,T,R,C,j){switch(P){case b:if(S.byteLength!=A.byteLength||S.byteOffset!=A.byteOffset)return!1;S=S.buffer,A=A.buffer;case g:return!(S.byteLength!=A.byteLength||!C(new t(S),new t(A)));case c:case u:case d:return r(+S,+A);case l:return S.name==A.name&&S.message==A.message;case h:case v:return S==A+"";case f:var k=i;case m:var N=T&o;if(k||(k=a),S.size!=A.size&&!N)return!1;var D=j.get(S);if(D)return D==A;T|=s,j.set(S,A);var $=n(k(S),k(A),T,R,C,j);return j.delete(S),$;case p:if(w)return w.call(S)==w.call(A)}return!1}return El=y,El}var Tl,qg;function JA(){if(qg)return Tl;qg=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return Tl=e,Tl}var Cl,Fg;function ok(){if(Fg)return Cl;Fg=1;var e=JA(),t=it();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return Cl=r,Cl}var jl,zg;function sk(){if(zg)return jl;zg=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var s=t[n];r(s,n,t)&&(o[a++]=s)}return o}return jl=e,jl}var Il,Wg;function ck(){if(Wg)return Il;Wg=1;function e(){return[]}return Il=e,Il}var Rl,Ug;function uk(){if(Ug)return Rl;Ug=1;var e=sk(),t=ck(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(s){return n.call(o,s)}))}:t;return Rl=a,Rl}var kl,Hg;function lk(){if(Hg)return kl;Hg=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return kl=e,kl}var Ml,Vg;function fk(){if(Vg)return Ml;Vg=1;var e=vr(),t=mr(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Ml=n,Ml}var $l,Kg;function Ov(){if(Kg)return $l;Kg=1;var e=fk(),t=mr(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return $l=a,$l}var Hi={exports:{}},Nl,Gg;function dk(){if(Gg)return Nl;Gg=1;function e(){return!1}return Nl=e,Nl}Hi.exports;var Yg;function QA(){return Yg||(Yg=1,(function(e,t){var r=Vt(),n=dk(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,c=s?s.isBuffer:void 0,u=c||n;e.exports=u})(Hi,Hi.exports)),Hi.exports}var Dl,Xg;function Av(){if(Xg)return Dl;Xg=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Dl=r,Dl}var Ll,Zg;function _v(){if(Zg)return Ll;Zg=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Ll=t,Ll}var Bl,Jg;function pk(){if(Jg)return Bl;Jg=1;var e=vr(),t=_v(),r=mr(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",c="[object Function]",u="[object Map]",l="[object Number]",f="[object Object]",d="[object RegExp]",h="[object Set]",m="[object String]",v="[object WeakMap]",p="[object ArrayBuffer]",g="[object DataView]",b="[object Float32Array]",x="[object Float64Array]",w="[object Int8Array]",y="[object Int16Array]",S="[object Int32Array]",A="[object Uint8Array]",P="[object Uint8ClampedArray]",T="[object Uint16Array]",R="[object Uint32Array]",C={};C[b]=C[x]=C[w]=C[y]=C[S]=C[A]=C[P]=C[T]=C[R]=!0,C[n]=C[i]=C[p]=C[a]=C[g]=C[o]=C[s]=C[c]=C[u]=C[l]=C[f]=C[d]=C[h]=C[m]=C[v]=!1;function j(k){return r(k)&&t(k.length)&&!!C[e(k)]}return Bl=j,Bl}var ql,Qg;function e_(){if(Qg)return ql;Qg=1;function e(t){return function(r){return t(r)}}return ql=e,ql}var Vi={exports:{}};Vi.exports;var eb;function hk(){return eb||(eb=1,(function(e,t){var r=bA(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=(function(){try{var c=i&&i.require&&i.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}})();e.exports=s})(Vi,Vi.exports)),Vi.exports}var Fl,tb;function t_(){if(tb)return Fl;tb=1;var e=pk(),t=e_(),r=hk(),n=r&&r.isTypedArray,i=n?t(n):e;return Fl=i,Fl}var zl,rb;function vk(){if(rb)return zl;rb=1;var e=lk(),t=Ov(),r=it(),n=QA(),i=Av(),a=t_(),o=Object.prototype,s=o.hasOwnProperty;function c(u,l){var f=r(u),d=!f&&t(u),h=!f&&!d&&n(u),m=!f&&!d&&!h&&a(u),v=f||d||h||m,p=v?e(u.length,String):[],g=p.length;for(var b in u)(l||s.call(u,b))&&!(v&&(b=="length"||h&&(b=="offset"||b=="parent")||m&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||i(b,g)))&&p.push(b);return p}return zl=c,zl}var Wl,nb;function mk(){if(nb)return Wl;nb=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Wl=t,Wl}var Ul,ib;function r_(){if(ib)return Ul;ib=1;function e(t,r){return function(n){return t(r(n))}}return Ul=e,Ul}var Hl,ab;function yk(){if(ab)return Hl;ab=1;var e=r_(),t=e(Object.keys,Object);return Hl=t,Hl}var Vl,ob;function gk(){if(ob)return Vl;ob=1;var e=mk(),t=yk(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&o.push(s);return o}return Vl=i,Vl}var Kl,sb;function Ua(){if(sb)return Kl;sb=1;var e=lv(),t=_v();function r(n){return n!=null&&t(n.length)&&!e(n)}return Kl=r,Kl}var Gl,cb;function lc(){if(cb)return Gl;cb=1;var e=vk(),t=gk(),r=Ua();function n(i){return r(i)?e(i):t(i)}return Gl=n,Gl}var Yl,ub;function bk(){if(ub)return Yl;ub=1;var e=ok(),t=uk(),r=lc();function n(i){return e(i,r,t)}return Yl=n,Yl}var Xl,lb;function xk(){if(lb)return Xl;lb=1;var e=bk(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,s,c,u,l){var f=s&t,d=e(a),h=d.length,m=e(o),v=m.length;if(h!=v&&!f)return!1;for(var p=h;p--;){var g=d[p];if(!(f?g in o:n.call(o,g)))return!1}var b=l.get(a),x=l.get(o);if(b&&x)return b==o&&x==a;var w=!0;l.set(a,o),l.set(o,a);for(var y=f;++p<h;){g=d[p];var S=a[g],A=o[g];if(c)var P=f?c(A,S,g,o,a,l):c(S,A,g,a,o,l);if(!(P===void 0?S===A||u(S,A,s,c,l):P)){w=!1;break}y||(y=g=="constructor")}if(w&&!y){var T=a.constructor,R=o.constructor;T!=R&&"constructor"in a&&"constructor"in o&&!(typeof T=="function"&&T instanceof T&&typeof R=="function"&&R instanceof R)&&(w=!1)}return l.delete(a),l.delete(o),w}return Xl=i,Xl}var Zl,fb;function wk(){if(fb)return Zl;fb=1;var e=vn(),t=Vt(),r=e(t,"DataView");return Zl=r,Zl}var Jl,db;function Sk(){if(db)return Jl;db=1;var e=vn(),t=Vt(),r=e(t,"Promise");return Jl=r,Jl}var Ql,pb;function n_(){if(pb)return Ql;pb=1;var e=vn(),t=Vt(),r=e(t,"Set");return Ql=r,Ql}var ef,hb;function Ok(){if(hb)return ef;hb=1;var e=vn(),t=Vt(),r=e(t,"WeakMap");return ef=r,ef}var tf,vb;function Ak(){if(vb)return tf;vb=1;var e=wk(),t=dv(),r=Sk(),n=n_(),i=Ok(),a=vr(),o=xA(),s="[object Map]",c="[object Object]",u="[object Promise]",l="[object Set]",f="[object WeakMap]",d="[object DataView]",h=o(e),m=o(t),v=o(r),p=o(n),g=o(i),b=a;return(e&&b(new e(new ArrayBuffer(1)))!=d||t&&b(new t)!=s||r&&b(r.resolve())!=u||n&&b(new n)!=l||i&&b(new i)!=f)&&(b=function(x){var w=a(x),y=w==c?x.constructor:void 0,S=y?o(y):"";if(S)switch(S){case h:return d;case m:return s;case v:return u;case p:return l;case g:return f}return w}),tf=b,tf}var rf,mb;function _k(){if(mb)return rf;mb=1;var e=KA(),t=ZA(),r=ak(),n=xk(),i=Ak(),a=it(),o=QA(),s=t_(),c=1,u="[object Arguments]",l="[object Array]",f="[object Object]",d=Object.prototype,h=d.hasOwnProperty;function m(v,p,g,b,x,w){var y=a(v),S=a(p),A=y?l:i(v),P=S?l:i(p);A=A==u?f:A,P=P==u?f:P;var T=A==f,R=P==f,C=A==P;if(C&&o(v)){if(!o(p))return!1;y=!0,T=!1}if(C&&!T)return w||(w=new e),y||s(v)?t(v,p,g,b,x,w):r(v,p,A,g,b,x,w);if(!(g&c)){var j=T&&h.call(v,"__wrapped__"),k=R&&h.call(p,"__wrapped__");if(j||k){var N=j?v.value():v,D=k?p.value():p;return w||(w=new e),x(N,D,g,b,w)}}return C?(w||(w=new e),n(v,p,g,b,x,w)):!1}return rf=m,rf}var nf,yb;function Pv(){if(yb)return nf;yb=1;var e=_k(),t=mr();function r(n,i,a,o,s){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,s)}return nf=r,nf}var af,gb;function Pk(){if(gb)return af;gb=1;var e=KA(),t=Pv(),r=1,n=2;function i(a,o,s,c){var u=s.length,l=u,f=!c;if(a==null)return!l;for(a=Object(a);u--;){var d=s[u];if(f&&d[2]?d[1]!==a[d[0]]:!(d[0]in a))return!1}for(;++u<l;){d=s[u];var h=d[0],m=a[h],v=d[1];if(f&&d[2]){if(m===void 0&&!(h in a))return!1}else{var p=new e;if(c)var g=c(m,v,h,a,o,p);if(!(g===void 0?t(v,m,r|n,c,p):g))return!1}}return!0}return af=i,af}var of,bb;function i_(){if(bb)return of;bb=1;var e=$r();function t(r){return r===r&&!e(r)}return of=t,of}var sf,xb;function Ek(){if(xb)return sf;xb=1;var e=i_(),t=lc();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],s=n[o];i[a]=[o,s,e(s)]}return i}return sf=r,sf}var cf,wb;function a_(){if(wb)return cf;wb=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return cf=e,cf}var uf,Sb;function Tk(){if(Sb)return uf;Sb=1;var e=Pk(),t=Ek(),r=a_();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return uf=n,uf}var lf,Ob;function Ck(){if(Ob)return lf;Ob=1;function e(t,r){return t!=null&&r in Object(t)}return lf=e,lf}var ff,Ab;function jk(){if(Ab)return ff;Ab=1;var e=OA(),t=Ov(),r=it(),n=Av(),i=_v(),a=ic();function o(s,c,u){c=e(c,s);for(var l=-1,f=c.length,d=!1;++l<f;){var h=a(c[l]);if(!(d=s!=null&&u(s,h)))break;s=s[h]}return d||++l!=f?d:(f=s==null?0:s.length,!!f&&i(f)&&n(h,f)&&(r(s)||t(s)))}return ff=o,ff}var df,_b;function Ik(){if(_b)return df;_b=1;var e=Ck(),t=jk();function r(n,i){return n!=null&&t(n,i,e)}return df=r,df}var pf,Pb;function Rk(){if(Pb)return pf;Pb=1;var e=Pv(),t=AA(),r=Ik(),n=uv(),i=i_(),a=a_(),o=ic(),s=1,c=2;function u(l,f){return n(l)&&i(f)?a(o(l),f):function(d){var h=t(d,l);return h===void 0&&h===f?r(d,l):e(f,h,s|c)}}return pf=u,pf}var hf,Eb;function wi(){if(Eb)return hf;Eb=1;function e(t){return t}return hf=e,hf}var vf,Tb;function kk(){if(Tb)return vf;Tb=1;function e(t){return function(r){return r?.[t]}}return vf=e,vf}var mf,Cb;function Mk(){if(Cb)return mf;Cb=1;var e=vv();function t(r){return function(n){return e(n,r)}}return mf=t,mf}var yf,jb;function $k(){if(jb)return yf;jb=1;var e=kk(),t=Mk(),r=uv(),n=ic();function i(a){return r(a)?e(n(a)):t(a)}return yf=i,yf}var gf,Ib;function Kt(){if(Ib)return gf;Ib=1;var e=Tk(),t=Rk(),r=wi(),n=it(),i=$k();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return gf=a,gf}var bf,Rb;function o_(){if(Rb)return bf;Rb=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return bf=e,bf}var xf,kb;function Nk(){if(kb)return xf;kb=1;function e(t){return t!==t}return xf=e,xf}var wf,Mb;function Dk(){if(Mb)return wf;Mb=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return wf=e,wf}var Sf,$b;function Lk(){if($b)return Sf;$b=1;var e=o_(),t=Nk(),r=Dk();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return Sf=n,Sf}var Of,Nb;function Bk(){if(Nb)return Of;Nb=1;var e=Lk();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return Of=t,Of}var Af,Db;function qk(){if(Db)return Af;Db=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return Af=e,Af}var _f,Lb;function Fk(){if(Lb)return _f;Lb=1;function e(){}return _f=e,_f}var Pf,Bb;function zk(){if(Bb)return Pf;Bb=1;var e=n_(),t=Fk(),r=Sv(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return Pf=i,Pf}var Ef,qb;function Wk(){if(qb)return Ef;qb=1;var e=GA(),t=Bk(),r=qk(),n=XA(),i=zk(),a=Sv(),o=200;function s(c,u,l){var f=-1,d=t,h=c.length,m=!0,v=[],p=v;if(l)m=!1,d=r;else if(h>=o){var g=u?null:i(c);if(g)return a(g);m=!1,d=n,p=new e}else p=u?[]:v;e:for(;++f<h;){var b=c[f],x=u?u(b):b;if(b=l||b!==0?b:0,m&&x===x){for(var w=p.length;w--;)if(p[w]===x)continue e;u&&p.push(x),v.push(b)}else d(p,x,l)||(p!==v&&p.push(x),v.push(b))}return v}return Ef=s,Ef}var Tf,Fb;function Uk(){if(Fb)return Tf;Fb=1;var e=Kt(),t=Wk();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return Tf=r,Tf}var Hk=Uk();const zb=Oe(Hk);function s_(e,t,r){return t===!0?zb(e,r):oe(t)?zb(e,t):e}function Fn(e){"@babel/helpers - typeof";return Fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fn(e)}var Vk=["ref"];function Wb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wb(Object(r),!0).forEach(function(n){fc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ub(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u_(n.key),n)}}function Gk(e,t,r){return t&&Ub(e.prototype,t),r&&Ub(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yk(e,t,r){return t=Vo(t),Xk(e,c_()?Reflect.construct(t,r||[],Vo(e).constructor):t.apply(e,r))}function Xk(e,t){if(t&&(Fn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zk(e)}function Zk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(c_=function(){return!!e})()}function Vo(e){return Vo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vo(e)}function Jk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rp(e,t)}function Rp(e,t){return Rp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Rp(e,t)}function fc(e,t,r){return t=u_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u_(e){var t=Qk(e,"string");return Fn(t)=="symbol"?t:t+""}function Qk(e,t){if(Fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function eM(e,t){if(e==null)return{};var r=tM(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tM(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function rM(e){return e.value}function nM(e,t){if(O.isValidElement(e))return O.cloneElement(e,t);if(typeof e=="function")return O.createElement(e,t);t.ref;var r=eM(t,Vk);return O.createElement(wv,r)}var Hb=1,bt=(function(e){function t(){var r;Kk(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Yk(this,t,[].concat(i)),fc(r,"lastBoundingBox",{width:-1,height:-1}),r}return Jk(t,e),Gk(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>Hb||Math.abs(i.height-this.lastBoundingBox.height)>Hb)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Qt({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,c=i.margin,u=i.chartWidth,l=i.chartHeight,f,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var h=this.getBBoxSnapshot();f={left:((u||0)-h.width)/2}}else f=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var m=this.getBBoxSnapshot();d={top:((l||0)-m.height)/2}}else d=s==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Qt(Qt({},f),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,c=i.wrapperStyle,u=i.payloadUniqBy,l=i.payload,f=Qt(Qt({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(c)),c);return O.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(h){n.wrapperNode=h}},nM(a,Qt(Qt({},this.props),{},{payload:s_(l,u,rM)})))}}],[{key:"getWithHeight",value:function(n,i){var a=Qt(Qt({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&Y(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(O.PureComponent);fc(bt,"displayName","Legend");fc(bt,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Cf,Vb;function iM(){if(Vb)return Cf;Vb=1;var e=Wa(),t=Ov(),r=it(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Cf=i,Cf}var jf,Kb;function l_(){if(Kb)return jf;Kb=1;var e=JA(),t=iM();function r(n,i,a,o,s){var c=-1,u=n.length;for(a||(a=t),s||(s=[]);++c<u;){var l=n[c];i>0&&a(l)?i>1?r(l,i-1,a,o,s):e(s,l):o||(s[s.length]=l)}return s}return jf=r,jf}var If,Gb;function aM(){if(Gb)return If;Gb=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),s=i(r),c=s.length;c--;){var u=s[t?c:++a];if(n(o[u],u,o)===!1)break}return r}}return If=e,If}var Rf,Yb;function oM(){if(Yb)return Rf;Yb=1;var e=aM(),t=e();return Rf=t,Rf}var kf,Xb;function f_(){if(Xb)return kf;Xb=1;var e=oM(),t=lc();function r(n,i){return n&&e(n,i,t)}return kf=r,kf}var Mf,Zb;function sM(){if(Zb)return Mf;Zb=1;var e=Ua();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,s=n?o:-1,c=Object(i);(n?s--:++s<o)&&a(c[s],s,c)!==!1;);return i}}return Mf=t,Mf}var $f,Jb;function Ev(){if(Jb)return $f;Jb=1;var e=f_(),t=sM(),r=t(e);return $f=r,$f}var Nf,Qb;function d_(){if(Qb)return Nf;Qb=1;var e=Ev(),t=Ua();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(s,c,u){o[++a]=i(s,c,u)}),o}return Nf=r,Nf}var Df,ex;function cM(){if(ex)return Df;ex=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Df=e,Df}var Lf,tx;function uM(){if(tx)return Lf;tx=1;var e=gi();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,s=e(r),c=n!==void 0,u=n===null,l=n===n,f=e(n);if(!u&&!f&&!s&&r>n||s&&c&&l&&!u&&!f||a&&c&&l||!i&&l||!o)return 1;if(!a&&!s&&!f&&r<n||f&&i&&o&&!a&&!s||u&&i&&o||!c&&o||!l)return-1}return 0}return Lf=t,Lf}var Bf,rx;function lM(){if(rx)return Bf;rx=1;var e=uM();function t(r,n,i){for(var a=-1,o=r.criteria,s=n.criteria,c=o.length,u=i.length;++a<c;){var l=e(o[a],s[a]);if(l){if(a>=u)return l;var f=i[a];return l*(f=="desc"?-1:1)}}return r.index-n.index}return Bf=t,Bf}var qf,nx;function fM(){if(nx)return qf;nx=1;var e=hv(),t=vv(),r=Kt(),n=d_(),i=cM(),a=e_(),o=lM(),s=wi(),c=it();function u(l,f,d){f.length?f=e(f,function(v){return c(v)?function(p){return t(p,v.length===1?v[0]:v)}:v}):f=[s];var h=-1;f=e(f,a(r));var m=n(l,function(v,p,g){var b=e(f,function(x){return x(v)});return{criteria:b,index:++h,value:v}});return i(m,function(v,p){return o(v,p,d)})}return qf=u,qf}var Ff,ix;function dM(){if(ix)return Ff;ix=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Ff=e,Ff}var zf,ax;function pM(){if(ax)return zf;ax=1;var e=dM(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,s=-1,c=t(o.length-i,0),u=Array(c);++s<c;)u[s]=o[i+s];s=-1;for(var l=Array(i+1);++s<i;)l[s]=o[s];return l[i]=a(u),e(n,this,l)}}return zf=r,zf}var Wf,ox;function hM(){if(ox)return Wf;ox=1;function e(t){return function(){return t}}return Wf=e,Wf}var Uf,sx;function p_(){if(sx)return Uf;sx=1;var e=vn(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Uf=t,Uf}var Hf,cx;function vM(){if(cx)return Hf;cx=1;var e=hM(),t=p_(),r=wi(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Hf=n,Hf}var Vf,ux;function mM(){if(ux)return Vf;ux=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var s=r(),c=t-(s-o);if(o=s,c>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Vf=n,Vf}var Kf,lx;function yM(){if(lx)return Kf;lx=1;var e=vM(),t=mM(),r=t(e);return Kf=r,Kf}var Gf,fx;function gM(){if(fx)return Gf;fx=1;var e=wi(),t=pM(),r=yM();function n(i,a){return r(t(i,a,e),i+"")}return Gf=n,Gf}var Yf,dx;function dc(){if(dx)return Yf;dx=1;var e=fv(),t=Ua(),r=Av(),n=$r();function i(a,o,s){if(!n(s))return!1;var c=typeof o;return(c=="number"?t(s)&&r(o,s.length):c=="string"&&o in s)?e(s[o],a):!1}return Yf=i,Yf}var Xf,px;function bM(){if(px)return Xf;px=1;var e=l_(),t=fM(),r=gM(),n=dc(),i=r(function(a,o){if(a==null)return[];var s=o.length;return s>1&&n(a,o[0],o[1])?o=[]:s>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return Xf=i,Xf}var xM=bM();const Tv=Oe(xM);function oa(e){"@babel/helpers - typeof";return oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oa(e)}function kp(){return kp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kp.apply(this,arguments)}function wM(e,t){return _M(e)||AM(e,t)||OM(e,t)||SM()}function SM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
5
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OM(e,t){if(e){if(typeof e=="string")return hx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hx(e,t)}}function hx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function AM(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function _M(e){if(Array.isArray(e))return e}function vx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vx(Object(r),!0).forEach(function(n){PM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PM(e,t,r){return t=EM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EM(e){var t=TM(e,"string");return oa(t)=="symbol"?t:t+""}function TM(e,t){if(oa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function CM(e){return Array.isArray(e)&&ze(e[0])&&ze(e[1])?e.join(" ~ "):e}var jM=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,s=o===void 0?{}:o,c=t.labelStyle,u=c===void 0?{}:c,l=t.payload,f=t.formatter,d=t.itemSorter,h=t.wrapperClassName,m=t.labelClassName,v=t.label,p=t.labelFormatter,g=t.accessibilityLayer,b=g===void 0?!1:g,x=function(){if(l&&l.length){var j={padding:0,margin:0},k=(d?Tv(l,d):l).map(function(N,D){if(N.type==="none")return null;var $=Zf({display:"block",paddingTop:4,paddingBottom:4,color:N.color||"#000"},s),L=N.formatter||f||CM,B=N.value,W=N.name,I=B,F=W;if(L&&I!=null&&F!=null){var U=L(B,W,N,D,l);if(Array.isArray(U)){var G=wM(U,2);I=G[0],F=G[1]}else I=U}return O.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(D),style:$},ze(F)?O.createElement("span",{className:"recharts-tooltip-item-name"},F):null,ze(F)?O.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,O.createElement("span",{className:"recharts-tooltip-item-value"},I),O.createElement("span",{className:"recharts-tooltip-item-unit"},N.unit||""))});return O.createElement("ul",{className:"recharts-tooltip-item-list",style:j},k)}return null},w=Zf({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),y=Zf({margin:0},u),S=!se(v),A=S?v:"",P=le("recharts-default-tooltip",h),T=le("recharts-tooltip-label",m);S&&p&&l!==void 0&&l!==null&&(A=p(v,l));var R=b?{role:"status","aria-live":"assertive"}:{};return O.createElement("div",kp({className:P,style:w},R),O.createElement("p",{className:T,style:y},O.isValidElement(A)?A:"".concat(A)),x())};function sa(e){"@babel/helpers - typeof";return sa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sa(e)}function uo(e,t,r){return t=IM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IM(e){var t=RM(e,"string");return sa(t)=="symbol"?t:t+""}function RM(e,t){if(sa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ni="recharts-tooltip-wrapper",kM={visibility:"hidden"};function MM(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return le(Ni,uo(uo(uo(uo({},"".concat(Ni,"-right"),Y(r)&&t&&Y(t.x)&&r>=t.x),"".concat(Ni,"-left"),Y(r)&&t&&Y(t.x)&&r<t.x),"".concat(Ni,"-bottom"),Y(n)&&t&&Y(t.y)&&n>=t.y),"".concat(Ni,"-top"),Y(n)&&t&&Y(t.y)&&n<t.y))}function mx(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,u=e.viewBoxDimension;if(a&&Y(a[n]))return a[n];var l=r[n]-s-i,f=r[n]+i;if(t[n])return o[n]?l:f;if(o[n]){var d=l,h=c[n];return d<h?Math.max(f,c[n]):Math.max(l,c[n])}var m=f+s,v=c[n]+u;return m>v?Math.max(l,c[n]):Math.max(f,c[n])}function $M(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function NM(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,c=e.viewBox,u,l,f;return o.height>0&&o.width>0&&r?(l=mx({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),f=mx({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),u=$M({translateX:l,translateY:f,useTranslate3d:s})):u=kM,{cssProperties:u,cssClasses:MM({translateX:l,translateY:f,coordinate:r})}}function zn(e){"@babel/helpers - typeof";return zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zn(e)}function yx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yx(Object(r),!0).forEach(function(n){$p(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LM(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,v_(n.key),n)}}function BM(e,t,r){return t&&LM(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qM(e,t,r){return t=Ko(t),FM(e,h_()?Reflect.construct(t,r||[],Ko(e).constructor):t.apply(e,r))}function FM(e,t){if(t&&(zn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zM(e)}function zM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(h_=function(){return!!e})()}function Ko(e){return Ko=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ko(e)}function WM(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mp(e,t)}function Mp(e,t){return Mp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Mp(e,t)}function $p(e,t,r){return t=v_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v_(e){var t=UM(e,"string");return zn(t)=="symbol"?t:t+""}function UM(e,t){if(zn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var bx=1,HM=(function(e){function t(){var r;DM(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=qM(this,t,[].concat(i)),$p(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),$p(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,c,u,l;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(c=r.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&s!==void 0?s:0,y:(u=(l=r.props.coordinate)===null||l===void 0?void 0:l.y)!==null&&u!==void 0?u:0}})}}),r}return WM(t,e),BM(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>bx||Math.abs(n.height-this.state.lastBoundingBox.height)>bx)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,c=i.animationEasing,u=i.children,l=i.coordinate,f=i.hasPayload,d=i.isAnimationActive,h=i.offset,m=i.position,v=i.reverseDirection,p=i.useTranslate3d,g=i.viewBox,b=i.wrapperStyle,x=NM({allowEscapeViewBox:o,coordinate:l,offsetTopLeft:h,position:m,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:p,viewBox:g}),w=x.cssClasses,y=x.cssProperties,S=gx(gx({transition:d&&a?"transform ".concat(s,"ms ").concat(c):void 0},y),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},b);return O.createElement("div",{tabIndex:-1,className:w,style:S,ref:function(P){n.wrapperNode=P}},u)}}])})(O.PureComponent),VM=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Gt={isSsr:VM()};function Wn(e){"@babel/helpers - typeof";return Wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wn(e)}function xx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xx(Object(r),!0).forEach(function(n){Cv(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GM(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y_(n.key),n)}}function YM(e,t,r){return t&&GM(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function XM(e,t,r){return t=Go(t),ZM(e,m_()?Reflect.construct(t,r||[],Go(e).constructor):t.apply(e,r))}function ZM(e,t){if(t&&(Wn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return JM(e)}function JM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(m_=function(){return!!e})()}function Go(e){return Go=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Go(e)}function QM(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Np(e,t)}function Np(e,t){return Np=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Np(e,t)}function Cv(e,t,r){return t=y_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y_(e){var t=e$(e,"string");return Wn(t)=="symbol"?t:t+""}function e$(e,t){if(Wn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function t$(e){return e.dataKey}function r$(e,t){return O.isValidElement(e)?O.cloneElement(e,t):typeof e=="function"?O.createElement(e,t):O.createElement(jM,t)}var Ye=(function(e){function t(){return KM(this,t),XM(this,t,arguments)}return QM(t,e),YM(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,c=i.animationEasing,u=i.content,l=i.coordinate,f=i.filterNull,d=i.isAnimationActive,h=i.offset,m=i.payload,v=i.payloadUniqBy,p=i.position,g=i.reverseDirection,b=i.useTranslate3d,x=i.viewBox,w=i.wrapperStyle,y=m??[];f&&y.length&&(y=s_(m.filter(function(A){return A.value!=null&&(A.hide!==!0||n.props.includeHidden)}),v,t$));var S=y.length>0;return O.createElement(HM,{allowEscapeViewBox:o,animationDuration:s,animationEasing:c,isAnimationActive:d,active:a,coordinate:l,hasPayload:S,offset:h,position:p,reverseDirection:g,useTranslate3d:b,viewBox:x,wrapperStyle:w},r$(u,wx(wx({},this.props),{},{payload:y})))}}])})(O.PureComponent);Cv(Ye,"displayName","Tooltip");Cv(Ye,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Gt.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Jf,Sx;function n$(){if(Sx)return Jf;Sx=1;var e=Vt(),t=function(){return e.Date.now()};return Jf=t,Jf}var Qf,Ox;function i$(){if(Ox)return Qf;Ox=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Qf=t,Qf}var ed,Ax;function a$(){if(Ax)return ed;Ax=1;var e=i$(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return ed=r,ed}var td,_x;function g_(){if(_x)return td;_x=1;var e=a$(),t=$r(),r=gi(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function c(u){if(typeof u=="number")return u;if(r(u))return n;if(t(u)){var l=typeof u.valueOf=="function"?u.valueOf():u;u=t(l)?l+"":l}if(typeof u!="string")return u===0?u:+u;u=e(u);var f=a.test(u);return f||o.test(u)?s(u.slice(2),f?2:8):i.test(u)?n:+u}return td=c,td}var rd,Px;function o$(){if(Px)return rd;Px=1;var e=$r(),t=n$(),r=g_(),n="Expected a function",i=Math.max,a=Math.min;function o(s,c,u){var l,f,d,h,m,v,p=0,g=!1,b=!1,x=!0;if(typeof s!="function")throw new TypeError(n);c=r(c)||0,e(u)&&(g=!!u.leading,b="maxWait"in u,d=b?i(r(u.maxWait)||0,c):d,x="trailing"in u?!!u.trailing:x);function w(k){var N=l,D=f;return l=f=void 0,p=k,h=s.apply(D,N),h}function y(k){return p=k,m=setTimeout(P,c),g?w(k):h}function S(k){var N=k-v,D=k-p,$=c-N;return b?a($,d-D):$}function A(k){var N=k-v,D=k-p;return v===void 0||N>=c||N<0||b&&D>=d}function P(){var k=t();if(A(k))return T(k);m=setTimeout(P,S(k))}function T(k){return m=void 0,x&&l?w(k):(l=f=void 0,h)}function R(){m!==void 0&&clearTimeout(m),p=0,l=v=f=m=void 0}function C(){return m===void 0?h:T(t())}function j(){var k=t(),N=A(k);if(l=arguments,f=this,v=k,N){if(m===void 0)return y(v);if(b)return clearTimeout(m),m=setTimeout(P,c),w(v)}return m===void 0&&(m=setTimeout(P,c)),h}return j.cancel=R,j.flush=C,j}return rd=o,rd}var nd,Ex;function s$(){if(Ex)return nd;Ex=1;var e=o$(),t=$r(),r="Expected a function";function n(i,a,o){var s=!0,c=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(s="leading"in o?!!o.leading:s,c="trailing"in o?!!o.trailing:c),e(i,a,{leading:s,maxWait:a,trailing:c})}return nd=n,nd}var c$=s$();const b_=Oe(c$);function ca(e){"@babel/helpers - typeof";return ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ca(e)}function Tx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tx(Object(r),!0).forEach(function(n){u$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function u$(e,t,r){return t=l$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l$(e){var t=f$(e,"string");return ca(t)=="symbol"?t:t+""}function f$(e,t){if(ca(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ca(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function d$(e,t){return m$(e)||v$(e,t)||h$(e,t)||p$()}function p$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
7
|
-
maybe you don't need to use a ResponsiveContainer.`,o,c),Tt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var D=Qr(o)?
|
|
4
|
+
A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return A.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(vt/8,"h").concat(vt,"v").concat(vt*3/4,"h").concat(-vt,"z"),className:"recharts-legend-icon"});if(A.isValidElement(n.legendIcon)){var u=Wk({},n);return delete u.legendIcon,A.cloneElement(n.legendIcon,u)}return A.createElement(uc,{fill:c,cx:a,cy:a,size:vt,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,s=i.layout,c=i.formatter,u=i.inactiveColor,l={x:0,y:0,width:vt,height:vt},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(h,m){var v=h.formatter||c,p=le(aa(aa({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",h.inactive));if(h.type==="none")return null;var g=oe(h.value)?null:h.value;Tt(!oe(h.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var b=h.inactive?u:h.color;return A.createElement("li",jp({className:p,style:f,key:"legend-item-".concat(m)},Ir(n.props,h,m)),A.createElement(Op,{width:o,height:o,viewBox:l,style:d},n.renderIcon(h)),A.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},v?v(g,h,m):g))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return A.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(A.PureComponent);aa(wv,"displayName","Legend");aa(wv,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var dl,Ag;function Jk(){if(Ag)return dl;Ag=1;var e=rc();function t(){this.__data__=new e,this.size=0}return dl=t,dl}var pl,_g;function Qk(){if(_g)return pl;_g=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return pl=e,pl}var hl,Pg;function eR(){if(Pg)return hl;Pg=1;function e(t){return this.__data__.get(t)}return hl=e,hl}var vl,Eg;function tR(){if(Eg)return vl;Eg=1;function e(t){return this.__data__.has(t)}return vl=e,vl}var ml,Tg;function rR(){if(Tg)return ml;Tg=1;var e=rc(),t=dv(),r=pv(),n=200;function i(a,o){var s=this.__data__;if(s instanceof e){var c=s.__data__;if(!t||c.length<n-1)return c.push([a,o]),this.size=++s.size,this;s=this.__data__=new r(c)}return s.set(a,o),this.size=s.size,this}return ml=i,ml}var yl,Cg;function KA(){if(Cg)return yl;Cg=1;var e=rc(),t=Jk(),r=Qk(),n=eR(),i=tR(),a=rR();function o(s){var c=this.__data__=new e(s);this.size=c.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,yl=o,yl}var gl,jg;function nR(){if(jg)return gl;jg=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return gl=t,gl}var bl,Ig;function iR(){if(Ig)return bl;Ig=1;function e(t){return this.__data__.has(t)}return bl=e,bl}var xl,kg;function GA(){if(kg)return xl;kg=1;var e=pv(),t=nR(),r=iR();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,xl=n,xl}var wl,Rg;function YA(){if(Rg)return wl;Rg=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return wl=e,wl}var Sl,Mg;function XA(){if(Mg)return Sl;Mg=1;function e(t,r){return t.has(r)}return Sl=e,Sl}var Ol,$g;function ZA(){if($g)return Ol;$g=1;var e=GA(),t=YA(),r=XA(),n=1,i=2;function a(o,s,c,u,l,f){var d=c&n,h=o.length,m=s.length;if(h!=m&&!(d&&m>h))return!1;var v=f.get(o),p=f.get(s);if(v&&p)return v==s&&p==o;var g=-1,b=!0,x=c&i?new e:void 0;for(f.set(o,s),f.set(s,o);++g<h;){var w=o[g],y=s[g];if(u)var S=d?u(y,w,g,s,o,f):u(w,y,g,o,s,f);if(S!==void 0){if(S)continue;b=!1;break}if(x){if(!t(s,function(O,P){if(!r(x,P)&&(w===O||l(w,O,c,u,f)))return x.push(P)})){b=!1;break}}else if(!(w===y||l(w,y,c,u,f))){b=!1;break}}return f.delete(o),f.delete(s),b}return Ol=a,Ol}var Al,Ng;function aR(){if(Ng)return Al;Ng=1;var e=Kt(),t=e.Uint8Array;return Al=t,Al}var _l,Dg;function oR(){if(Dg)return _l;Dg=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return _l=e,_l}var Pl,Lg;function Sv(){if(Lg)return Pl;Lg=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return Pl=e,Pl}var El,Bg;function sR(){if(Bg)return El;Bg=1;var e=Wa(),t=aR(),r=fv(),n=ZA(),i=oR(),a=Sv(),o=1,s=2,c="[object Boolean]",u="[object Date]",l="[object Error]",f="[object Map]",d="[object Number]",h="[object RegExp]",m="[object Set]",v="[object String]",p="[object Symbol]",g="[object ArrayBuffer]",b="[object DataView]",x=e?e.prototype:void 0,w=x?x.valueOf:void 0;function y(S,O,P,T,k,C,j){switch(P){case b:if(S.byteLength!=O.byteLength||S.byteOffset!=O.byteOffset)return!1;S=S.buffer,O=O.buffer;case g:return!(S.byteLength!=O.byteLength||!C(new t(S),new t(O)));case c:case u:case d:return r(+S,+O);case l:return S.name==O.name&&S.message==O.message;case h:case v:return S==O+"";case f:var R=i;case m:var N=T&o;if(R||(R=a),S.size!=O.size&&!N)return!1;var D=j.get(S);if(D)return D==O;T|=s,j.set(S,O);var $=n(R(S),R(O),T,k,C,j);return j.delete(S),$;case p:if(w)return w.call(S)==w.call(O)}return!1}return El=y,El}var Tl,qg;function JA(){if(qg)return Tl;qg=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return Tl=e,Tl}var Cl,Fg;function cR(){if(Fg)return Cl;Fg=1;var e=JA(),t=it();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return Cl=r,Cl}var jl,zg;function uR(){if(zg)return jl;zg=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var s=t[n];r(s,n,t)&&(o[a++]=s)}return o}return jl=e,jl}var Il,Wg;function lR(){if(Wg)return Il;Wg=1;function e(){return[]}return Il=e,Il}var kl,Ug;function fR(){if(Ug)return kl;Ug=1;var e=uR(),t=lR(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(s){return n.call(o,s)}))}:t;return kl=a,kl}var Rl,Hg;function dR(){if(Hg)return Rl;Hg=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Rl=e,Rl}var Ml,Vg;function pR(){if(Vg)return Ml;Vg=1;var e=mr(),t=yr(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Ml=n,Ml}var $l,Kg;function Ov(){if(Kg)return $l;Kg=1;var e=pR(),t=yr(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return $l=a,$l}var Hi={exports:{}},Nl,Gg;function hR(){if(Gg)return Nl;Gg=1;function e(){return!1}return Nl=e,Nl}Hi.exports;var Yg;function QA(){return Yg||(Yg=1,(function(e,t){var r=Kt(),n=hR(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,c=s?s.isBuffer:void 0,u=c||n;e.exports=u})(Hi,Hi.exports)),Hi.exports}var Dl,Xg;function Av(){if(Xg)return Dl;Xg=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Dl=r,Dl}var Ll,Zg;function _v(){if(Zg)return Ll;Zg=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Ll=t,Ll}var Bl,Jg;function vR(){if(Jg)return Bl;Jg=1;var e=mr(),t=_v(),r=yr(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",c="[object Function]",u="[object Map]",l="[object Number]",f="[object Object]",d="[object RegExp]",h="[object Set]",m="[object String]",v="[object WeakMap]",p="[object ArrayBuffer]",g="[object DataView]",b="[object Float32Array]",x="[object Float64Array]",w="[object Int8Array]",y="[object Int16Array]",S="[object Int32Array]",O="[object Uint8Array]",P="[object Uint8ClampedArray]",T="[object Uint16Array]",k="[object Uint32Array]",C={};C[b]=C[x]=C[w]=C[y]=C[S]=C[O]=C[P]=C[T]=C[k]=!0,C[n]=C[i]=C[p]=C[a]=C[g]=C[o]=C[s]=C[c]=C[u]=C[l]=C[f]=C[d]=C[h]=C[m]=C[v]=!1;function j(R){return r(R)&&t(R.length)&&!!C[e(R)]}return Bl=j,Bl}var ql,Qg;function e_(){if(Qg)return ql;Qg=1;function e(t){return function(r){return t(r)}}return ql=e,ql}var Vi={exports:{}};Vi.exports;var eb;function mR(){return eb||(eb=1,(function(e,t){var r=bA(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=(function(){try{var c=i&&i.require&&i.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}})();e.exports=s})(Vi,Vi.exports)),Vi.exports}var Fl,tb;function t_(){if(tb)return Fl;tb=1;var e=vR(),t=e_(),r=mR(),n=r&&r.isTypedArray,i=n?t(n):e;return Fl=i,Fl}var zl,rb;function yR(){if(rb)return zl;rb=1;var e=dR(),t=Ov(),r=it(),n=QA(),i=Av(),a=t_(),o=Object.prototype,s=o.hasOwnProperty;function c(u,l){var f=r(u),d=!f&&t(u),h=!f&&!d&&n(u),m=!f&&!d&&!h&&a(u),v=f||d||h||m,p=v?e(u.length,String):[],g=p.length;for(var b in u)(l||s.call(u,b))&&!(v&&(b=="length"||h&&(b=="offset"||b=="parent")||m&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||i(b,g)))&&p.push(b);return p}return zl=c,zl}var Wl,nb;function gR(){if(nb)return Wl;nb=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Wl=t,Wl}var Ul,ib;function r_(){if(ib)return Ul;ib=1;function e(t,r){return function(n){return t(r(n))}}return Ul=e,Ul}var Hl,ab;function bR(){if(ab)return Hl;ab=1;var e=r_(),t=e(Object.keys,Object);return Hl=t,Hl}var Vl,ob;function xR(){if(ob)return Vl;ob=1;var e=gR(),t=bR(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&o.push(s);return o}return Vl=i,Vl}var Kl,sb;function Ua(){if(sb)return Kl;sb=1;var e=lv(),t=_v();function r(n){return n!=null&&t(n.length)&&!e(n)}return Kl=r,Kl}var Gl,cb;function lc(){if(cb)return Gl;cb=1;var e=yR(),t=xR(),r=Ua();function n(i){return r(i)?e(i):t(i)}return Gl=n,Gl}var Yl,ub;function wR(){if(ub)return Yl;ub=1;var e=cR(),t=fR(),r=lc();function n(i){return e(i,r,t)}return Yl=n,Yl}var Xl,lb;function SR(){if(lb)return Xl;lb=1;var e=wR(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,s,c,u,l){var f=s&t,d=e(a),h=d.length,m=e(o),v=m.length;if(h!=v&&!f)return!1;for(var p=h;p--;){var g=d[p];if(!(f?g in o:n.call(o,g)))return!1}var b=l.get(a),x=l.get(o);if(b&&x)return b==o&&x==a;var w=!0;l.set(a,o),l.set(o,a);for(var y=f;++p<h;){g=d[p];var S=a[g],O=o[g];if(c)var P=f?c(O,S,g,o,a,l):c(S,O,g,a,o,l);if(!(P===void 0?S===O||u(S,O,s,c,l):P)){w=!1;break}y||(y=g=="constructor")}if(w&&!y){var T=a.constructor,k=o.constructor;T!=k&&"constructor"in a&&"constructor"in o&&!(typeof T=="function"&&T instanceof T&&typeof k=="function"&&k instanceof k)&&(w=!1)}return l.delete(a),l.delete(o),w}return Xl=i,Xl}var Zl,fb;function OR(){if(fb)return Zl;fb=1;var e=vn(),t=Kt(),r=e(t,"DataView");return Zl=r,Zl}var Jl,db;function AR(){if(db)return Jl;db=1;var e=vn(),t=Kt(),r=e(t,"Promise");return Jl=r,Jl}var Ql,pb;function n_(){if(pb)return Ql;pb=1;var e=vn(),t=Kt(),r=e(t,"Set");return Ql=r,Ql}var ef,hb;function _R(){if(hb)return ef;hb=1;var e=vn(),t=Kt(),r=e(t,"WeakMap");return ef=r,ef}var tf,vb;function PR(){if(vb)return tf;vb=1;var e=OR(),t=dv(),r=AR(),n=n_(),i=_R(),a=mr(),o=xA(),s="[object Map]",c="[object Object]",u="[object Promise]",l="[object Set]",f="[object WeakMap]",d="[object DataView]",h=o(e),m=o(t),v=o(r),p=o(n),g=o(i),b=a;return(e&&b(new e(new ArrayBuffer(1)))!=d||t&&b(new t)!=s||r&&b(r.resolve())!=u||n&&b(new n)!=l||i&&b(new i)!=f)&&(b=function(x){var w=a(x),y=w==c?x.constructor:void 0,S=y?o(y):"";if(S)switch(S){case h:return d;case m:return s;case v:return u;case p:return l;case g:return f}return w}),tf=b,tf}var rf,mb;function ER(){if(mb)return rf;mb=1;var e=KA(),t=ZA(),r=sR(),n=SR(),i=PR(),a=it(),o=QA(),s=t_(),c=1,u="[object Arguments]",l="[object Array]",f="[object Object]",d=Object.prototype,h=d.hasOwnProperty;function m(v,p,g,b,x,w){var y=a(v),S=a(p),O=y?l:i(v),P=S?l:i(p);O=O==u?f:O,P=P==u?f:P;var T=O==f,k=P==f,C=O==P;if(C&&o(v)){if(!o(p))return!1;y=!0,T=!1}if(C&&!T)return w||(w=new e),y||s(v)?t(v,p,g,b,x,w):r(v,p,O,g,b,x,w);if(!(g&c)){var j=T&&h.call(v,"__wrapped__"),R=k&&h.call(p,"__wrapped__");if(j||R){var N=j?v.value():v,D=R?p.value():p;return w||(w=new e),x(N,D,g,b,w)}}return C?(w||(w=new e),n(v,p,g,b,x,w)):!1}return rf=m,rf}var nf,yb;function Pv(){if(yb)return nf;yb=1;var e=ER(),t=yr();function r(n,i,a,o,s){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,s)}return nf=r,nf}var af,gb;function TR(){if(gb)return af;gb=1;var e=KA(),t=Pv(),r=1,n=2;function i(a,o,s,c){var u=s.length,l=u,f=!c;if(a==null)return!l;for(a=Object(a);u--;){var d=s[u];if(f&&d[2]?d[1]!==a[d[0]]:!(d[0]in a))return!1}for(;++u<l;){d=s[u];var h=d[0],m=a[h],v=d[1];if(f&&d[2]){if(m===void 0&&!(h in a))return!1}else{var p=new e;if(c)var g=c(m,v,h,a,o,p);if(!(g===void 0?t(v,m,r|n,c,p):g))return!1}}return!0}return af=i,af}var of,bb;function i_(){if(bb)return of;bb=1;var e=$r();function t(r){return r===r&&!e(r)}return of=t,of}var sf,xb;function CR(){if(xb)return sf;xb=1;var e=i_(),t=lc();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],s=n[o];i[a]=[o,s,e(s)]}return i}return sf=r,sf}var cf,wb;function a_(){if(wb)return cf;wb=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return cf=e,cf}var uf,Sb;function jR(){if(Sb)return uf;Sb=1;var e=TR(),t=CR(),r=a_();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return uf=n,uf}var lf,Ob;function IR(){if(Ob)return lf;Ob=1;function e(t,r){return t!=null&&r in Object(t)}return lf=e,lf}var ff,Ab;function kR(){if(Ab)return ff;Ab=1;var e=OA(),t=Ov(),r=it(),n=Av(),i=_v(),a=ic();function o(s,c,u){c=e(c,s);for(var l=-1,f=c.length,d=!1;++l<f;){var h=a(c[l]);if(!(d=s!=null&&u(s,h)))break;s=s[h]}return d||++l!=f?d:(f=s==null?0:s.length,!!f&&i(f)&&n(h,f)&&(r(s)||t(s)))}return ff=o,ff}var df,_b;function RR(){if(_b)return df;_b=1;var e=IR(),t=kR();function r(n,i){return n!=null&&t(n,i,e)}return df=r,df}var pf,Pb;function MR(){if(Pb)return pf;Pb=1;var e=Pv(),t=AA(),r=RR(),n=uv(),i=i_(),a=a_(),o=ic(),s=1,c=2;function u(l,f){return n(l)&&i(f)?a(o(l),f):function(d){var h=t(d,l);return h===void 0&&h===f?r(d,l):e(f,h,s|c)}}return pf=u,pf}var hf,Eb;function wi(){if(Eb)return hf;Eb=1;function e(t){return t}return hf=e,hf}var vf,Tb;function $R(){if(Tb)return vf;Tb=1;function e(t){return function(r){return r?.[t]}}return vf=e,vf}var mf,Cb;function NR(){if(Cb)return mf;Cb=1;var e=vv();function t(r){return function(n){return e(n,r)}}return mf=t,mf}var yf,jb;function DR(){if(jb)return yf;jb=1;var e=$R(),t=NR(),r=uv(),n=ic();function i(a){return r(a)?e(n(a)):t(a)}return yf=i,yf}var gf,Ib;function Gt(){if(Ib)return gf;Ib=1;var e=jR(),t=MR(),r=wi(),n=it(),i=DR();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return gf=a,gf}var bf,kb;function o_(){if(kb)return bf;kb=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return bf=e,bf}var xf,Rb;function LR(){if(Rb)return xf;Rb=1;function e(t){return t!==t}return xf=e,xf}var wf,Mb;function BR(){if(Mb)return wf;Mb=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return wf=e,wf}var Sf,$b;function qR(){if($b)return Sf;$b=1;var e=o_(),t=LR(),r=BR();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return Sf=n,Sf}var Of,Nb;function FR(){if(Nb)return Of;Nb=1;var e=qR();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return Of=t,Of}var Af,Db;function zR(){if(Db)return Af;Db=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return Af=e,Af}var _f,Lb;function WR(){if(Lb)return _f;Lb=1;function e(){}return _f=e,_f}var Pf,Bb;function UR(){if(Bb)return Pf;Bb=1;var e=n_(),t=WR(),r=Sv(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return Pf=i,Pf}var Ef,qb;function HR(){if(qb)return Ef;qb=1;var e=GA(),t=FR(),r=zR(),n=XA(),i=UR(),a=Sv(),o=200;function s(c,u,l){var f=-1,d=t,h=c.length,m=!0,v=[],p=v;if(l)m=!1,d=r;else if(h>=o){var g=u?null:i(c);if(g)return a(g);m=!1,d=n,p=new e}else p=u?[]:v;e:for(;++f<h;){var b=c[f],x=u?u(b):b;if(b=l||b!==0?b:0,m&&x===x){for(var w=p.length;w--;)if(p[w]===x)continue e;u&&p.push(x),v.push(b)}else d(p,x,l)||(p!==v&&p.push(x),v.push(b))}return v}return Ef=s,Ef}var Tf,Fb;function VR(){if(Fb)return Tf;Fb=1;var e=Gt(),t=HR();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return Tf=r,Tf}var KR=VR();const zb=Oe(KR);function s_(e,t,r){return t===!0?zb(e,r):oe(t)?zb(e,t):e}function Fn(e){"@babel/helpers - typeof";return Fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fn(e)}var GR=["ref"];function Wb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function er(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wb(Object(r),!0).forEach(function(n){fc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ub(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u_(n.key),n)}}function XR(e,t,r){return t&&Ub(e.prototype,t),r&&Ub(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZR(e,t,r){return t=Vo(t),JR(e,c_()?Reflect.construct(t,r||[],Vo(e).constructor):t.apply(e,r))}function JR(e,t){if(t&&(Fn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return QR(e)}function QR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(c_=function(){return!!e})()}function Vo(e){return Vo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vo(e)}function eM(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kp(e,t)}function kp(e,t){return kp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kp(e,t)}function fc(e,t,r){return t=u_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u_(e){var t=tM(e,"string");return Fn(t)=="symbol"?t:t+""}function tM(e,t){if(Fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function rM(e,t){if(e==null)return{};var r=nM(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nM(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function iM(e){return e.value}function aM(e,t){if(A.isValidElement(e))return A.cloneElement(e,t);if(typeof e=="function")return A.createElement(e,t);t.ref;var r=rM(t,GR);return A.createElement(wv,r)}var Hb=1,bt=(function(e){function t(){var r;YR(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=ZR(this,t,[].concat(i)),fc(r,"lastBoundingBox",{width:-1,height:-1}),r}return eM(t,e),XR(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>Hb||Math.abs(i.height-this.lastBoundingBox.height)>Hb)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?er({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,c=i.margin,u=i.chartWidth,l=i.chartHeight,f,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var h=this.getBBoxSnapshot();f={left:((u||0)-h.width)/2}}else f=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var m=this.getBBoxSnapshot();d={top:((l||0)-m.height)/2}}else d=s==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return er(er({},f),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,c=i.wrapperStyle,u=i.payloadUniqBy,l=i.payload,f=er(er({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(c)),c);return A.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(h){n.wrapperNode=h}},aM(a,er(er({},this.props),{},{payload:s_(l,u,iM)})))}}],[{key:"getWithHeight",value:function(n,i){var a=er(er({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&Y(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(A.PureComponent);fc(bt,"displayName","Legend");fc(bt,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Cf,Vb;function oM(){if(Vb)return Cf;Vb=1;var e=Wa(),t=Ov(),r=it(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Cf=i,Cf}var jf,Kb;function l_(){if(Kb)return jf;Kb=1;var e=JA(),t=oM();function r(n,i,a,o,s){var c=-1,u=n.length;for(a||(a=t),s||(s=[]);++c<u;){var l=n[c];i>0&&a(l)?i>1?r(l,i-1,a,o,s):e(s,l):o||(s[s.length]=l)}return s}return jf=r,jf}var If,Gb;function sM(){if(Gb)return If;Gb=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),s=i(r),c=s.length;c--;){var u=s[t?c:++a];if(n(o[u],u,o)===!1)break}return r}}return If=e,If}var kf,Yb;function cM(){if(Yb)return kf;Yb=1;var e=sM(),t=e();return kf=t,kf}var Rf,Xb;function f_(){if(Xb)return Rf;Xb=1;var e=cM(),t=lc();function r(n,i){return n&&e(n,i,t)}return Rf=r,Rf}var Mf,Zb;function uM(){if(Zb)return Mf;Zb=1;var e=Ua();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,s=n?o:-1,c=Object(i);(n?s--:++s<o)&&a(c[s],s,c)!==!1;);return i}}return Mf=t,Mf}var $f,Jb;function Ev(){if(Jb)return $f;Jb=1;var e=f_(),t=uM(),r=t(e);return $f=r,$f}var Nf,Qb;function d_(){if(Qb)return Nf;Qb=1;var e=Ev(),t=Ua();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(s,c,u){o[++a]=i(s,c,u)}),o}return Nf=r,Nf}var Df,ex;function lM(){if(ex)return Df;ex=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Df=e,Df}var Lf,tx;function fM(){if(tx)return Lf;tx=1;var e=gi();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,s=e(r),c=n!==void 0,u=n===null,l=n===n,f=e(n);if(!u&&!f&&!s&&r>n||s&&c&&l&&!u&&!f||a&&c&&l||!i&&l||!o)return 1;if(!a&&!s&&!f&&r<n||f&&i&&o&&!a&&!s||u&&i&&o||!c&&o||!l)return-1}return 0}return Lf=t,Lf}var Bf,rx;function dM(){if(rx)return Bf;rx=1;var e=fM();function t(r,n,i){for(var a=-1,o=r.criteria,s=n.criteria,c=o.length,u=i.length;++a<c;){var l=e(o[a],s[a]);if(l){if(a>=u)return l;var f=i[a];return l*(f=="desc"?-1:1)}}return r.index-n.index}return Bf=t,Bf}var qf,nx;function pM(){if(nx)return qf;nx=1;var e=hv(),t=vv(),r=Gt(),n=d_(),i=lM(),a=e_(),o=dM(),s=wi(),c=it();function u(l,f,d){f.length?f=e(f,function(v){return c(v)?function(p){return t(p,v.length===1?v[0]:v)}:v}):f=[s];var h=-1;f=e(f,a(r));var m=n(l,function(v,p,g){var b=e(f,function(x){return x(v)});return{criteria:b,index:++h,value:v}});return i(m,function(v,p){return o(v,p,d)})}return qf=u,qf}var Ff,ix;function hM(){if(ix)return Ff;ix=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Ff=e,Ff}var zf,ax;function vM(){if(ax)return zf;ax=1;var e=hM(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,s=-1,c=t(o.length-i,0),u=Array(c);++s<c;)u[s]=o[i+s];s=-1;for(var l=Array(i+1);++s<i;)l[s]=o[s];return l[i]=a(u),e(n,this,l)}}return zf=r,zf}var Wf,ox;function mM(){if(ox)return Wf;ox=1;function e(t){return function(){return t}}return Wf=e,Wf}var Uf,sx;function p_(){if(sx)return Uf;sx=1;var e=vn(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Uf=t,Uf}var Hf,cx;function yM(){if(cx)return Hf;cx=1;var e=mM(),t=p_(),r=wi(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Hf=n,Hf}var Vf,ux;function gM(){if(ux)return Vf;ux=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var s=r(),c=t-(s-o);if(o=s,c>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Vf=n,Vf}var Kf,lx;function bM(){if(lx)return Kf;lx=1;var e=yM(),t=gM(),r=t(e);return Kf=r,Kf}var Gf,fx;function xM(){if(fx)return Gf;fx=1;var e=wi(),t=vM(),r=bM();function n(i,a){return r(t(i,a,e),i+"")}return Gf=n,Gf}var Yf,dx;function dc(){if(dx)return Yf;dx=1;var e=fv(),t=Ua(),r=Av(),n=$r();function i(a,o,s){if(!n(s))return!1;var c=typeof o;return(c=="number"?t(s)&&r(o,s.length):c=="string"&&o in s)?e(s[o],a):!1}return Yf=i,Yf}var Xf,px;function wM(){if(px)return Xf;px=1;var e=l_(),t=pM(),r=xM(),n=dc(),i=r(function(a,o){if(a==null)return[];var s=o.length;return s>1&&n(a,o[0],o[1])?o=[]:s>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return Xf=i,Xf}var SM=wM();const Tv=Oe(SM);function oa(e){"@babel/helpers - typeof";return oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oa(e)}function Rp(){return Rp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rp.apply(this,arguments)}function OM(e,t){return EM(e)||PM(e,t)||_M(e,t)||AM()}function AM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
5
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _M(e,t){if(e){if(typeof e=="string")return hx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hx(e,t)}}function hx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function PM(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function EM(e){if(Array.isArray(e))return e}function vx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vx(Object(r),!0).forEach(function(n){TM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TM(e,t,r){return t=CM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CM(e){var t=jM(e,"string");return oa(t)=="symbol"?t:t+""}function jM(e,t){if(oa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function IM(e){return Array.isArray(e)&&ze(e[0])&&ze(e[1])?e.join(" ~ "):e}var kM=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,s=o===void 0?{}:o,c=t.labelStyle,u=c===void 0?{}:c,l=t.payload,f=t.formatter,d=t.itemSorter,h=t.wrapperClassName,m=t.labelClassName,v=t.label,p=t.labelFormatter,g=t.accessibilityLayer,b=g===void 0?!1:g,x=function(){if(l&&l.length){var j={padding:0,margin:0},R=(d?Tv(l,d):l).map(function(N,D){if(N.type==="none")return null;var $=Zf({display:"block",paddingTop:4,paddingBottom:4,color:N.color||"#000"},s),L=N.formatter||f||IM,B=N.value,W=N.name,I=B,F=W;if(L&&I!=null&&F!=null){var U=L(B,W,N,D,l);if(Array.isArray(U)){var G=OM(U,2);I=G[0],F=G[1]}else I=U}return A.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(D),style:$},ze(F)?A.createElement("span",{className:"recharts-tooltip-item-name"},F):null,ze(F)?A.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,A.createElement("span",{className:"recharts-tooltip-item-value"},I),A.createElement("span",{className:"recharts-tooltip-item-unit"},N.unit||""))});return A.createElement("ul",{className:"recharts-tooltip-item-list",style:j},R)}return null},w=Zf({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),y=Zf({margin:0},u),S=!se(v),O=S?v:"",P=le("recharts-default-tooltip",h),T=le("recharts-tooltip-label",m);S&&p&&l!==void 0&&l!==null&&(O=p(v,l));var k=b?{role:"status","aria-live":"assertive"}:{};return A.createElement("div",Rp({className:P,style:w},k),A.createElement("p",{className:T,style:y},A.isValidElement(O)?O:"".concat(O)),x())};function sa(e){"@babel/helpers - typeof";return sa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sa(e)}function uo(e,t,r){return t=RM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RM(e){var t=MM(e,"string");return sa(t)=="symbol"?t:t+""}function MM(e,t){if(sa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ni="recharts-tooltip-wrapper",$M={visibility:"hidden"};function NM(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return le(Ni,uo(uo(uo(uo({},"".concat(Ni,"-right"),Y(r)&&t&&Y(t.x)&&r>=t.x),"".concat(Ni,"-left"),Y(r)&&t&&Y(t.x)&&r<t.x),"".concat(Ni,"-bottom"),Y(n)&&t&&Y(t.y)&&n>=t.y),"".concat(Ni,"-top"),Y(n)&&t&&Y(t.y)&&n<t.y))}function mx(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,u=e.viewBoxDimension;if(a&&Y(a[n]))return a[n];var l=r[n]-s-i,f=r[n]+i;if(t[n])return o[n]?l:f;if(o[n]){var d=l,h=c[n];return d<h?Math.max(f,c[n]):Math.max(l,c[n])}var m=f+s,v=c[n]+u;return m>v?Math.max(l,c[n]):Math.max(f,c[n])}function DM(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function LM(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,c=e.viewBox,u,l,f;return o.height>0&&o.width>0&&r?(l=mx({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),f=mx({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),u=DM({translateX:l,translateY:f,useTranslate3d:s})):u=$M,{cssProperties:u,cssClasses:NM({translateX:l,translateY:f,coordinate:r})}}function zn(e){"@babel/helpers - typeof";return zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zn(e)}function yx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yx(Object(r),!0).forEach(function(n){$p(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qM(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,v_(n.key),n)}}function FM(e,t,r){return t&&qM(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zM(e,t,r){return t=Ko(t),WM(e,h_()?Reflect.construct(t,r||[],Ko(e).constructor):t.apply(e,r))}function WM(e,t){if(t&&(zn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return UM(e)}function UM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(h_=function(){return!!e})()}function Ko(e){return Ko=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ko(e)}function HM(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mp(e,t)}function Mp(e,t){return Mp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Mp(e,t)}function $p(e,t,r){return t=v_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v_(e){var t=VM(e,"string");return zn(t)=="symbol"?t:t+""}function VM(e,t){if(zn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var bx=1,KM=(function(e){function t(){var r;BM(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=zM(this,t,[].concat(i)),$p(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),$p(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,c,u,l;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(c=r.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&s!==void 0?s:0,y:(u=(l=r.props.coordinate)===null||l===void 0?void 0:l.y)!==null&&u!==void 0?u:0}})}}),r}return HM(t,e),FM(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>bx||Math.abs(n.height-this.state.lastBoundingBox.height)>bx)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,c=i.animationEasing,u=i.children,l=i.coordinate,f=i.hasPayload,d=i.isAnimationActive,h=i.offset,m=i.position,v=i.reverseDirection,p=i.useTranslate3d,g=i.viewBox,b=i.wrapperStyle,x=LM({allowEscapeViewBox:o,coordinate:l,offsetTopLeft:h,position:m,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:p,viewBox:g}),w=x.cssClasses,y=x.cssProperties,S=gx(gx({transition:d&&a?"transform ".concat(s,"ms ").concat(c):void 0},y),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},b);return A.createElement("div",{tabIndex:-1,className:w,style:S,ref:function(P){n.wrapperNode=P}},u)}}])})(A.PureComponent),GM=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Yt={isSsr:GM()};function Wn(e){"@babel/helpers - typeof";return Wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wn(e)}function xx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xx(Object(r),!0).forEach(function(n){Cv(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XM(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y_(n.key),n)}}function ZM(e,t,r){return t&&XM(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function JM(e,t,r){return t=Go(t),QM(e,m_()?Reflect.construct(t,r||[],Go(e).constructor):t.apply(e,r))}function QM(e,t){if(t&&(Wn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return e$(e)}function e$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(m_=function(){return!!e})()}function Go(e){return Go=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Go(e)}function t$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Np(e,t)}function Np(e,t){return Np=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Np(e,t)}function Cv(e,t,r){return t=y_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y_(e){var t=r$(e,"string");return Wn(t)=="symbol"?t:t+""}function r$(e,t){if(Wn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function n$(e){return e.dataKey}function i$(e,t){return A.isValidElement(e)?A.cloneElement(e,t):typeof e=="function"?A.createElement(e,t):A.createElement(kM,t)}var Ye=(function(e){function t(){return YM(this,t),JM(this,t,arguments)}return t$(t,e),ZM(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,c=i.animationEasing,u=i.content,l=i.coordinate,f=i.filterNull,d=i.isAnimationActive,h=i.offset,m=i.payload,v=i.payloadUniqBy,p=i.position,g=i.reverseDirection,b=i.useTranslate3d,x=i.viewBox,w=i.wrapperStyle,y=m??[];f&&y.length&&(y=s_(m.filter(function(O){return O.value!=null&&(O.hide!==!0||n.props.includeHidden)}),v,n$));var S=y.length>0;return A.createElement(KM,{allowEscapeViewBox:o,animationDuration:s,animationEasing:c,isAnimationActive:d,active:a,coordinate:l,hasPayload:S,offset:h,position:p,reverseDirection:g,useTranslate3d:b,viewBox:x,wrapperStyle:w},i$(u,wx(wx({},this.props),{},{payload:y})))}}])})(A.PureComponent);Cv(Ye,"displayName","Tooltip");Cv(Ye,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Yt.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Jf,Sx;function a$(){if(Sx)return Jf;Sx=1;var e=Kt(),t=function(){return e.Date.now()};return Jf=t,Jf}var Qf,Ox;function o$(){if(Ox)return Qf;Ox=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Qf=t,Qf}var ed,Ax;function s$(){if(Ax)return ed;Ax=1;var e=o$(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return ed=r,ed}var td,_x;function g_(){if(_x)return td;_x=1;var e=s$(),t=$r(),r=gi(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function c(u){if(typeof u=="number")return u;if(r(u))return n;if(t(u)){var l=typeof u.valueOf=="function"?u.valueOf():u;u=t(l)?l+"":l}if(typeof u!="string")return u===0?u:+u;u=e(u);var f=a.test(u);return f||o.test(u)?s(u.slice(2),f?2:8):i.test(u)?n:+u}return td=c,td}var rd,Px;function c$(){if(Px)return rd;Px=1;var e=$r(),t=a$(),r=g_(),n="Expected a function",i=Math.max,a=Math.min;function o(s,c,u){var l,f,d,h,m,v,p=0,g=!1,b=!1,x=!0;if(typeof s!="function")throw new TypeError(n);c=r(c)||0,e(u)&&(g=!!u.leading,b="maxWait"in u,d=b?i(r(u.maxWait)||0,c):d,x="trailing"in u?!!u.trailing:x);function w(R){var N=l,D=f;return l=f=void 0,p=R,h=s.apply(D,N),h}function y(R){return p=R,m=setTimeout(P,c),g?w(R):h}function S(R){var N=R-v,D=R-p,$=c-N;return b?a($,d-D):$}function O(R){var N=R-v,D=R-p;return v===void 0||N>=c||N<0||b&&D>=d}function P(){var R=t();if(O(R))return T(R);m=setTimeout(P,S(R))}function T(R){return m=void 0,x&&l?w(R):(l=f=void 0,h)}function k(){m!==void 0&&clearTimeout(m),p=0,l=v=f=m=void 0}function C(){return m===void 0?h:T(t())}function j(){var R=t(),N=O(R);if(l=arguments,f=this,v=R,N){if(m===void 0)return y(v);if(b)return clearTimeout(m),m=setTimeout(P,c),w(v)}return m===void 0&&(m=setTimeout(P,c)),h}return j.cancel=k,j.flush=C,j}return rd=o,rd}var nd,Ex;function u$(){if(Ex)return nd;Ex=1;var e=c$(),t=$r(),r="Expected a function";function n(i,a,o){var s=!0,c=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(s="leading"in o?!!o.leading:s,c="trailing"in o?!!o.trailing:c),e(i,a,{leading:s,maxWait:a,trailing:c})}return nd=n,nd}var l$=u$();const b_=Oe(l$);function ca(e){"@babel/helpers - typeof";return ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ca(e)}function Tx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tx(Object(r),!0).forEach(function(n){f$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f$(e,t,r){return t=d$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d$(e){var t=p$(e,"string");return ca(t)=="symbol"?t:t+""}function p$(e,t){if(ca(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ca(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function h$(e,t){return g$(e)||y$(e,t)||m$(e,t)||v$()}function v$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m$(e,t){if(e){if(typeof e=="string")return Cx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cx(e,t)}}function Cx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function y$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function g$(e){if(Array.isArray(e))return e}var mn=A.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,s=e.height,c=s===void 0?"100%":s,u=e.minWidth,l=u===void 0?0:u,f=e.minHeight,d=e.maxHeight,h=e.children,m=e.debounce,v=m===void 0?0:m,p=e.id,g=e.className,b=e.onResize,x=e.style,w=x===void 0?{}:x,y=A.useRef(null),S=A.useRef();S.current=b,A.useImperativeHandle(t,function(){return Object.defineProperty(y.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),y.current},configurable:!0})});var O=A.useState({containerWidth:i.width,containerHeight:i.height}),P=h$(O,2),T=P[0],k=P[1],C=A.useCallback(function(R,N){k(function(D){var $=Math.round(R),L=Math.round(N);return D.containerWidth===$&&D.containerHeight===L?D:{containerWidth:$,containerHeight:L}})},[]);A.useEffect(function(){var R=function(W){var I,F=W[0].contentRect,U=F.width,G=F.height;C(U,G),(I=S.current)===null||I===void 0||I.call(S,U,G)};v>0&&(R=b_(R,v,{trailing:!0,leading:!1}));var N=new ResizeObserver(R),D=y.current.getBoundingClientRect(),$=D.width,L=D.height;return C($,L),N.observe(y.current),function(){N.disconnect()}},[C,v]);var j=A.useMemo(function(){var R=T.containerWidth,N=T.containerHeight;if(R<0||N<0)return null;Tt(Qr(o)||Qr(c),`The width(%s) and height(%s) are both fixed numbers,
|
|
7
|
+
maybe you don't need to use a ResponsiveContainer.`,o,c),Tt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var D=Qr(o)?R:o,$=Qr(c)?N:c;r&&r>0&&(D?$=D/r:$&&(D=$*r),d&&$>d&&($=d)),Tt(D>0||$>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
8
8
|
please check the style of container, or the props width(%s) and height(%s),
|
|
9
9
|
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
10
|
-
height and width.`,D,$,o,c,l,f,r);var L=!Array.isArray(h)&&
|
|
11
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
12
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W$(e,t){if(e){if(typeof e=="string")return Bx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bx(e,t)}}function Bx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function U$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function H$(e){if(Array.isArray(e))return e}var S_=/[ \f\n\r\t\v\u2028\u2029]+/,O_=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];se(r)||(n?a=r.toString().split(""):a=r.toString().split(S_));var o=a.map(function(c){return{word:c,width:Yi(c,i).width}}),s=n?0:Yi(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},V$=function(t,r,n,i,a){var o=t.maxLines,s=t.children,c=t.style,u=t.breakAll,l=Y(o),f=s,d=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return D.reduce(function($,L){var B=L.word,W=L.width,I=$[$.length-1];if(I&&(i==null||a||I.width+W+n<Number(i)))I.words.push(B),I.width+=W+n;else{var F={words:[B],width:W};$.push(F)}return $},[])},h=d(r),m=function(D){return D.reduce(function($,L){return $.width>L.width?$:L})};if(!l)return h;for(var v="…",p=function(D){var $=f.slice(0,D),L=O_({breakAll:u,style:c,children:$+v}).wordsWithComputedWidth,B=d(L),W=B.length>o||m(B).width>Number(i);return[W,B]},g=0,b=f.length-1,x=0,w;g<=b&&x<=f.length-1;){var y=Math.floor((g+b)/2),S=y-1,A=p(S),P=Lx(A,2),T=P[0],R=P[1],C=p(y),j=Lx(C,1),k=j[0];if(!T&&!k&&(g=y+1),T&&k&&(b=y-1),!T&&k){w=R;break}x++}return w||h},qx=function(t){var r=se(t)?[]:t.toString().split(S_);return[{words:r}]},K$=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!Gt.isSsr){var c,u,l=O_({breakAll:o,children:i,style:a});if(l){var f=l.wordsWithComputedWidth,d=l.spaceWidth;c=f,u=d}else return qx(i);return V$({breakAll:o,children:i,maxLines:s,style:a},c,u,r,n)}return qx(i)},Fx="#808080",cn=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,c=t.capHeight,u=c===void 0?"0.71em":c,l=t.scaleToFit,f=l===void 0?!1:l,d=t.textAnchor,h=d===void 0?"start":d,m=t.verticalAnchor,v=m===void 0?"end":m,p=t.fill,g=p===void 0?Fx:p,b=Dx(t,B$),x=O.useMemo(function(){return K$({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:f,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,f,b.style,b.width]),w=b.dx,y=b.dy,S=b.angle,A=b.className,P=b.breakAll,T=Dx(b,q$);if(!ze(n)||!ze(a))return null;var R=n+(Y(w)?w:0),C=a+(Y(y)?y:0),j;switch(v){case"start":j=id("calc(".concat(u,")"));break;case"middle":j=id("calc(".concat((x.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:j=id("calc(".concat(x.length-1," * -").concat(s,")"));break}var k=[];if(f){var N=x[0].width,D=b.width;k.push("scale(".concat((Y(D)?D/N:1)/N,")"))}return S&&k.push("rotate(".concat(S,", ").concat(R,", ").concat(C,")")),k.length&&(T.transform=k.join(" ")),O.createElement("text",Lp({},te(T,!0),{x:R,y:C,className:le("recharts-text",A),textAnchor:h,fill:g.includes("url")?Fx:g}),x.map(function($,L){var B=$.words.join(P?"":" ");return O.createElement("tspan",{x:R,dy:L===0?j:s,key:"".concat(B,"-").concat(L)},B)}))};function Tr(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function G$(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function jv(e){let t,r,n;e.length!==2?(t=Tr,r=(s,c)=>Tr(e(s),c),n=(s,c)=>e(s)-c):(t=e===Tr||e===G$?e:Y$,r=e,n=e);function i(s,c,u=0,l=s.length){if(u<l){if(t(c,c)!==0)return l;do{const f=u+l>>>1;r(s[f],c)<0?u=f+1:l=f}while(u<l)}return u}function a(s,c,u=0,l=s.length){if(u<l){if(t(c,c)!==0)return l;do{const f=u+l>>>1;r(s[f],c)<=0?u=f+1:l=f}while(u<l)}return u}function o(s,c,u=0,l=s.length){const f=i(s,c,u,l-1);return f>u&&n(s[f-1],c)>-n(s[f],c)?f-1:f}return{left:i,center:o,right:a}}function Y$(){return 0}function A_(e){return e===null?NaN:+e}function*X$(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const Z$=jv(Tr),Ha=Z$.right;jv(A_).center;class zx extends Map{constructor(t,r=eN){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Wx(this,t))}has(t){return super.has(Wx(this,t))}set(t,r){return super.set(J$(this,t),r)}delete(t){return super.delete(Q$(this,t))}}function Wx({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function J$({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function Q$({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function eN(e){return e!==null&&typeof e=="object"?e.valueOf():e}function tN(e=Tr){if(e===Tr)return __;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function __(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const rN=Math.sqrt(50),nN=Math.sqrt(10),iN=Math.sqrt(2);function Xo(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=rN?10:a>=nN?5:a>=iN?2:1;let s,c,u;return i<0?(u=Math.pow(10,-i)/o,s=Math.round(e*u),c=Math.round(t*u),s/u<e&&++s,c/u>t&&--c,u=-u):(u=Math.pow(10,i)*o,s=Math.round(e/u),c=Math.round(t/u),s*u<e&&++s,c*u>t&&--c),c<s&&.5<=r&&r<2?Xo(e,t,r*2):[s,c,u]}function Bp(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?Xo(t,e,r):Xo(e,t,r);if(!(a>=i))return[];const s=a-i+1,c=new Array(s);if(n)if(o<0)for(let u=0;u<s;++u)c[u]=(a-u)/-o;else for(let u=0;u<s;++u)c[u]=(a-u)*o;else if(o<0)for(let u=0;u<s;++u)c[u]=(i+u)/-o;else for(let u=0;u<s;++u)c[u]=(i+u)*o;return c}function qp(e,t,r){return t=+t,e=+e,r=+r,Xo(e,t,r)[2]}function Fp(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?qp(t,e,r):qp(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Ux(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Hx(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function P_(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?__:tN(i);n>r;){if(n-r>600){const c=n-r+1,u=t-r+1,l=Math.log(c),f=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*f*(c-f)/c)*(u-c/2<0?-1:1),h=Math.max(r,Math.floor(t-u*f/c+d)),m=Math.min(n,Math.floor(t+(c-u)*f/c+d));P_(e,t,h,m,i)}const a=e[t];let o=r,s=n;for(Di(e,r,t),i(e[n],a)>0&&Di(e,r,n);o<s;){for(Di(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?Di(e,r,s):(++s,Di(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Di(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function aN(e,t,r){if(e=Float64Array.from(X$(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Hx(e);if(t>=1)return Ux(e);var n,i=(n-1)*t,a=Math.floor(i),o=Ux(P_(e,a).subarray(0,a+1)),s=Hx(e.subarray(a+1));return o+(s-o)*(i-a)}}function oN(e,t,r=A_){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function sN(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function St(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function yr(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 zp=Symbol("implicit");function Iv(){var e=new zx,t=[],r=[],n=zp;function i(a){let o=e.get(a);if(o===void 0){if(n!==zp)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new zx;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Iv(t,r).unknown(n)},St.apply(i,arguments),i}function fa(){var e=Iv().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,c=0,u=0,l=.5;delete e.unknown;function f(){var d=t().length,h=i<n,m=h?i:n,v=h?n:i;a=(v-m)/Math.max(1,d-c+u*2),s&&(a=Math.floor(a)),m+=(v-m-a*(d-c))*l,o=a*(1-c),s&&(m=Math.round(m),o=Math.round(o));var p=sN(d).map(function(g){return m+a*g});return r(h?p.reverse():p)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(s=!!d,f()):s},e.padding=function(d){return arguments.length?(c=Math.min(1,u=+d),f()):c},e.paddingInner=function(d){return arguments.length?(c=Math.min(1,d),f()):c},e.paddingOuter=function(d){return arguments.length?(u=+d,f()):u},e.align=function(d){return arguments.length?(l=Math.max(0,Math.min(1,d)),f()):l},e.copy=function(){return fa(t(),[n,i]).round(s).paddingInner(c).paddingOuter(u).align(l)},St.apply(f(),arguments)}function E_(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return E_(t())},e}function Xi(){return E_(fa.apply(null,arguments).paddingInner(1))}function Rv(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function T_(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Va(){}var da=.7,Zo=1/da,$n="\\s*([+-]?\\d+)\\s*",pa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",qt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",cN=/^#([0-9a-f]{3,8})$/,uN=new RegExp(`^rgb\\(${$n},${$n},${$n}\\)$`),lN=new RegExp(`^rgb\\(${qt},${qt},${qt}\\)$`),fN=new RegExp(`^rgba\\(${$n},${$n},${$n},${pa}\\)$`),dN=new RegExp(`^rgba\\(${qt},${qt},${qt},${pa}\\)$`),pN=new RegExp(`^hsl\\(${pa},${qt},${qt}\\)$`),hN=new RegExp(`^hsla\\(${pa},${qt},${qt},${pa}\\)$`),Vx={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};Rv(Va,ha,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Kx,formatHex:Kx,formatHex8:vN,formatHsl:mN,formatRgb:Gx,toString:Gx});function Kx(){return this.rgb().formatHex()}function vN(){return this.rgb().formatHex8()}function mN(){return C_(this).formatHsl()}function Gx(){return this.rgb().formatRgb()}function ha(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=cN.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Yx(t):r===3?new rt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?po(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?po(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=uN.exec(e))?new rt(t[1],t[2],t[3],1):(t=lN.exec(e))?new rt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=fN.exec(e))?po(t[1],t[2],t[3],t[4]):(t=dN.exec(e))?po(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=pN.exec(e))?Jx(t[1],t[2]/100,t[3]/100,1):(t=hN.exec(e))?Jx(t[1],t[2]/100,t[3]/100,t[4]):Vx.hasOwnProperty(e)?Yx(Vx[e]):e==="transparent"?new rt(NaN,NaN,NaN,0):null}function Yx(e){return new rt(e>>16&255,e>>8&255,e&255,1)}function po(e,t,r,n){return n<=0&&(e=t=r=NaN),new rt(e,t,r,n)}function yN(e){return e instanceof Va||(e=ha(e)),e?(e=e.rgb(),new rt(e.r,e.g,e.b,e.opacity)):new rt}function Wp(e,t,r,n){return arguments.length===1?yN(e):new rt(e,t,r,n??1)}function rt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Rv(rt,Wp,T_(Va,{brighter(e){return e=e==null?Zo:Math.pow(Zo,e),new rt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?da:Math.pow(da,e),new rt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new rt(an(this.r),an(this.g),an(this.b),Jo(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:Xx,formatHex:Xx,formatHex8:gN,formatRgb:Zx,toString:Zx}));function Xx(){return`#${en(this.r)}${en(this.g)}${en(this.b)}`}function gN(){return`#${en(this.r)}${en(this.g)}${en(this.b)}${en((isNaN(this.opacity)?1:this.opacity)*255)}`}function Zx(){const e=Jo(this.opacity);return`${e===1?"rgb(":"rgba("}${an(this.r)}, ${an(this.g)}, ${an(this.b)}${e===1?")":`, ${e})`}`}function Jo(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function an(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function en(e){return e=an(e),(e<16?"0":"")+e.toString(16)}function Jx(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Et(e,t,r,n)}function C_(e){if(e instanceof Et)return new Et(e.h,e.s,e.l,e.opacity);if(e instanceof Va||(e=ha(e)),!e)return new Et;if(e instanceof Et)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,c=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new Et(o,s,c,e.opacity)}function bN(e,t,r,n){return arguments.length===1?C_(e):new Et(e,t,r,n??1)}function Et(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Rv(Et,bN,T_(Va,{brighter(e){return e=e==null?Zo:Math.pow(Zo,e),new Et(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?da:Math.pow(da,e),new Et(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new rt(ad(e>=240?e-240:e+120,i,n),ad(e,i,n),ad(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Et(Qx(this.h),ho(this.s),ho(this.l),Jo(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=Jo(this.opacity);return`${e===1?"hsl(":"hsla("}${Qx(this.h)}, ${ho(this.s)*100}%, ${ho(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Qx(e){return e=(e||0)%360,e<0?e+360:e}function ho(e){return Math.max(0,Math.min(1,e||0))}function ad(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const kv=e=>()=>e;function xN(e,t){return function(r){return e+r*t}}function wN(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function SN(e){return(e=+e)==1?j_:function(t,r){return r-t?wN(t,r,e):kv(isNaN(t)?r:t)}}function j_(e,t){var r=t-e;return r?xN(e,r):kv(isNaN(e)?t:e)}const e0=(function e(t){var r=SN(t);function n(i,a){var o=r((i=Wp(i)).r,(a=Wp(a)).r),s=r(i.g,a.g),c=r(i.b,a.b),u=j_(i.opacity,a.opacity);return function(l){return i.r=o(l),i.g=s(l),i.b=c(l),i.opacity=u(l),i+""}}return n.gamma=e,n})(1);function ON(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function AN(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function _N(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=Si(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function PN(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Qo(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function EN(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Si(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Up=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,od=new RegExp(Up.source,"g");function TN(e){return function(){return e}}function CN(e){return function(t){return e(t)+""}}function jN(e,t){var r=Up.lastIndex=od.lastIndex=0,n,i,a,o=-1,s=[],c=[];for(e=e+"",t=t+"";(n=Up.exec(e))&&(i=od.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:Qo(n,i)})),r=od.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?CN(c[0].x):TN(t):(t=c.length,function(u){for(var l=0,f;l<t;++l)s[(f=c[l]).i]=f.x(u);return s.join("")})}function Si(e,t){var r=typeof t,n;return t==null||r==="boolean"?kv(t):(r==="number"?Qo:r==="string"?(n=ha(t))?(t=n,e0):jN:t instanceof ha?e0:t instanceof Date?PN:AN(t)?ON:Array.isArray(t)?_N:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?EN:Qo)(e,t)}function Mv(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function IN(e,t){t===void 0&&(t=e,e=Si);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}function RN(e){return function(){return e}}function es(e){return+e}var t0=[0,1];function et(e){return e}function Hp(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:RN(isNaN(t)?NaN:.5)}function kN(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function MN(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Hp(i,n),a=r(o,a)):(n=Hp(n,i),a=r(a,o)),function(s){return a(n(s))}}function $N(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=Hp(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var c=Ha(e,s,1,n)-1;return a[c](i[c](s))}}function Ka(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function pc(){var e=t0,t=t0,r=Si,n,i,a,o=et,s,c,u;function l(){var d=Math.min(e.length,t.length);return o!==et&&(o=kN(e[0],e[d-1])),s=d>2?$N:MN,c=u=null,f}function f(d){return d==null||isNaN(d=+d)?a:(c||(c=s(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((u||(u=s(t,e.map(n),Qo)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,es),l()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),l()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=Mv,l()},f.clamp=function(d){return arguments.length?(o=d?!0:et,l()):o!==et},f.interpolate=function(d){return arguments.length?(r=d,l()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,h){return n=d,i=h,l()}}function $v(){return pc()(et,et)}function NN(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ts(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Un(e){return e=ts(Math.abs(e)),e?e[1]:NaN}function DN(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>n&&(s=Math.max(1,n-c)),a.push(r.substring(i-=s,i+s)),!((c+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function LN(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var BN=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function va(e){if(!(t=BN.exec(e)))throw new Error("invalid format: "+e);var t;return new Nv({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]})}va.prototype=Nv.prototype;function Nv(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+""}Nv.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 qN(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var I_;function FN(e,t){var r=ts(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(I_=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+ts(e,Math.max(0,t+a-1))[0]}function r0(e,t){var r=ts(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const n0={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:NN,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)=>r0(e*100,t),r:r0,s:FN,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function i0(e){return e}var a0=Array.prototype.map,o0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function zN(e){var t=e.grouping===void 0||e.thousands===void 0?i0:DN(a0.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?i0:LN(a0.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function u(f){f=va(f);var d=f.fill,h=f.align,m=f.sign,v=f.symbol,p=f.zero,g=f.width,b=f.comma,x=f.precision,w=f.trim,y=f.type;y==="n"?(b=!0,y="g"):n0[y]||(x===void 0&&(x=12),w=!0,y="g"),(p||d==="0"&&h==="=")&&(p=!0,d="0",h="=");var S=v==="$"?r:v==="#"&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",A=v==="$"?n:/[%p]/.test(y)?o:"",P=n0[y],T=/[defgprs%]/.test(y);x=x===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function R(C){var j=S,k=A,N,D,$;if(y==="c")k=P(C)+k,C="";else{C=+C;var L=C<0||1/C<0;if(C=isNaN(C)?c:P(Math.abs(C),x),w&&(C=qN(C)),L&&+C==0&&m!=="+"&&(L=!1),j=(L?m==="("?m:s:m==="-"||m==="("?"":m)+j,k=(y==="s"?o0[8+I_/3]:"")+k+(L&&m==="("?")":""),T){for(N=-1,D=C.length;++N<D;)if($=C.charCodeAt(N),48>$||$>57){k=($===46?i+C.slice(N+1):C.slice(N))+k,C=C.slice(0,N);break}}}b&&!p&&(C=t(C,1/0));var B=j.length+C.length+k.length,W=B<g?new Array(g-B+1).join(d):"";switch(b&&p&&(C=t(W+C,W.length?g-k.length:1/0),W=""),h){case"<":C=j+C+k+W;break;case"=":C=j+W+C+k;break;case"^":C=W.slice(0,B=W.length>>1)+j+C+k+W.slice(B);break;default:C=W+j+C+k;break}return a(C)}return R.toString=function(){return f+""},R}function l(f,d){var h=u((f=va(f),f.type="f",f)),m=Math.max(-8,Math.min(8,Math.floor(Un(d)/3)))*3,v=Math.pow(10,-m),p=o0[8+m/3];return function(g){return h(v*g)+p}}return{format:u,formatPrefix:l}}var vo,Dv,R_;WN({thousands:",",grouping:[3],currency:["$",""]});function WN(e){return vo=zN(e),Dv=vo.format,R_=vo.formatPrefix,vo}function UN(e){return Math.max(0,-Un(Math.abs(e)))}function HN(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Un(t)/3)))*3-Un(Math.abs(e)))}function VN(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Un(t)-Un(e))+1}function k_(e,t,r,n){var i=Fp(e,t,r),a;switch(n=va(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=HN(i,o))&&(n.precision=a),R_(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=VN(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=UN(i))&&(n.precision=a-(n.type==="%")*2);break}}return Dv(n)}function Lr(e){var t=e.domain;return e.ticks=function(r){var n=t();return Bp(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return k_(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],c,u,l=10;for(s<o&&(u=o,o=s,s=u,u=i,i=a,a=u);l-- >0;){if(u=qp(o,s,r),u===c)return n[i]=o,n[a]=s,t(n);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;c=u}return e},e}function rs(){var e=$v();return e.copy=function(){return Ka(e,rs())},St.apply(e,arguments),Lr(e)}function M_(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,es),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return M_(e).unknown(t)},e=arguments.length?Array.from(e,es):[0,1],Lr(r)}function $_(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function s0(e){return Math.log(e)}function c0(e){return Math.exp(e)}function KN(e){return-Math.log(-e)}function GN(e){return-Math.exp(-e)}function YN(e){return isFinite(e)?+("1e"+e):e<0?0:e}function XN(e){return e===10?YN:e===Math.E?Math.exp:t=>Math.pow(e,t)}function ZN(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 u0(e){return(t,r)=>-e(-t,r)}function Lv(e){const t=e(s0,c0),r=t.domain;let n=10,i,a;function o(){return i=ZN(n),a=XN(n),r()[0]<0?(i=u0(i),a=u0(a),e(KN,GN)):e(s0,c0),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const c=r();let u=c[0],l=c[c.length-1];const f=l<u;f&&([u,l]=[l,u]);let d=i(u),h=i(l),m,v;const p=s==null?10:+s;let g=[];if(!(n%1)&&h-d<p){if(d=Math.floor(d),h=Math.ceil(h),u>0){for(;d<=h;++d)for(m=1;m<n;++m)if(v=d<0?m/a(-d):m*a(d),!(v<u)){if(v>l)break;g.push(v)}}else for(;d<=h;++d)for(m=n-1;m>=1;--m)if(v=d>0?m/a(-d):m*a(d),!(v<u)){if(v>l)break;g.push(v)}g.length*2<p&&(g=Bp(u,l,p))}else g=Bp(d,h,Math.min(h-d,p)).map(a);return f?g.reverse():g},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=va(c)).precision==null&&(c.trim=!0),c=Dv(c)),s===1/0)return c;const u=Math.max(1,n*s/t.ticks().length);return l=>{let f=l/a(Math.round(i(l)));return f*n<n-.5&&(f*=n),f<=u?c(l):""}},t.nice=()=>r($_(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function N_(){const e=Lv(pc()).domain([1,10]);return e.copy=()=>Ka(e,N_()).base(e.base()),St.apply(e,arguments),e}function l0(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function f0(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Bv(e){var t=1,r=e(l0(t),f0(t));return r.constant=function(n){return arguments.length?e(l0(t=+n),f0(t)):t},Lr(r)}function D_(){var e=Bv(pc());return e.copy=function(){return Ka(e,D_()).constant(e.constant())},St.apply(e,arguments)}function d0(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function JN(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function QN(e){return e<0?-e*e:e*e}function qv(e){var t=e(et,et),r=1;function n(){return r===1?e(et,et):r===.5?e(JN,QN):e(d0(r),d0(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Lr(t)}function Fv(){var e=qv(pc());return e.copy=function(){return Ka(e,Fv()).exponent(e.exponent())},St.apply(e,arguments),e}function eD(){return Fv.apply(null,arguments).exponent(.5)}function p0(e){return Math.sign(e)*e*e}function tD(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function L_(){var e=$v(),t=[0,1],r=!1,n;function i(a){var o=tD(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(p0(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,es)).map(p0)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return L_(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},St.apply(i,arguments),Lr(i)}function B_(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=oN(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Ha(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Tr),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return B_().domain(e).range(t).unknown(n)},St.apply(a,arguments)}function q_(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(c){return c!=null&&c<=c?i[Ha(n,c,0,r)]:a}function s(){var c=-1;for(n=new Array(r);++c<r;)n[c]=((c+1)*t-(c-r)*e)/(r+1);return o}return o.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,s()):[e,t]},o.range=function(c){return arguments.length?(r=(i=Array.from(c)).length-1,s()):i.slice()},o.invertExtent=function(c){var u=i.indexOf(c);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(c){return arguments.length&&(a=c),o},o.thresholds=function(){return n.slice()},o.copy=function(){return q_().domain([e,t]).range(i).unknown(a)},St.apply(Lr(o),arguments)}function F_(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Ha(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return F_().domain(e).range(t).unknown(r)},St.apply(i,arguments)}const sd=new Date,cd=new Date;function We(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const c=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return c;let u;do c.push(u=new Date(+a)),t(a,s),e(a);while(u<a&&a<o);return c},i.filter=a=>We(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(sd.setTime(+a),cd.setTime(+o),e(sd),e(cd),Math.floor(r(sd,cd))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const ns=We(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ns.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?We(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ns);ns.range;const rr=1e3,gt=rr*60,nr=gt*60,sr=nr*24,zv=sr*7,h0=sr*30,ud=sr*365,tn=We(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*rr)},(e,t)=>(t-e)/rr,e=>e.getUTCSeconds());tn.range;const Wv=We(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*rr)},(e,t)=>{e.setTime(+e+t*gt)},(e,t)=>(t-e)/gt,e=>e.getMinutes());Wv.range;const Uv=We(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*gt)},(e,t)=>(t-e)/gt,e=>e.getUTCMinutes());Uv.range;const Hv=We(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*rr-e.getMinutes()*gt)},(e,t)=>{e.setTime(+e+t*nr)},(e,t)=>(t-e)/nr,e=>e.getHours());Hv.range;const Vv=We(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*nr)},(e,t)=>(t-e)/nr,e=>e.getUTCHours());Vv.range;const Ga=We(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*gt)/sr,e=>e.getDate()-1);Ga.range;const hc=We(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/sr,e=>e.getUTCDate()-1);hc.range;const z_=We(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/sr,e=>Math.floor(e/sr));z_.range;function yn(e){return We(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*gt)/zv)}const vc=yn(0),is=yn(1),rD=yn(2),nD=yn(3),Hn=yn(4),iD=yn(5),aD=yn(6);vc.range;is.range;rD.range;nD.range;Hn.range;iD.range;aD.range;function gn(e){return We(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/zv)}const mc=gn(0),as=gn(1),oD=gn(2),sD=gn(3),Vn=gn(4),cD=gn(5),uD=gn(6);mc.range;as.range;oD.range;sD.range;Vn.range;cD.range;uD.range;const Kv=We(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());Kv.range;const Gv=We(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());Gv.range;const cr=We(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());cr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:We(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});cr.range;const ur=We(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());ur.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:We(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});ur.range;function W_(e,t,r,n,i,a){const o=[[tn,1,rr],[tn,5,5*rr],[tn,15,15*rr],[tn,30,30*rr],[a,1,gt],[a,5,5*gt],[a,15,15*gt],[a,30,30*gt],[i,1,nr],[i,3,3*nr],[i,6,6*nr],[i,12,12*nr],[n,1,sr],[n,2,2*sr],[r,1,zv],[t,1,h0],[t,3,3*h0],[e,1,ud]];function s(u,l,f){const d=l<u;d&&([u,l]=[l,u]);const h=f&&typeof f.range=="function"?f:c(u,l,f),m=h?h.range(u,+l+1):[];return d?m.reverse():m}function c(u,l,f){const d=Math.abs(l-u)/f,h=jv(([,,p])=>p).right(o,d);if(h===o.length)return e.every(Fp(u/ud,l/ud,f));if(h===0)return ns.every(Math.max(Fp(u,l,f),1));const[m,v]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return m.every(v)}return[s,c]}const[lD,fD]=W_(ur,Gv,mc,z_,Vv,Uv),[dD,pD]=W_(cr,Kv,vc,Ga,Hv,Wv);function ld(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 fd(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 Li(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function hD(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,u=Bi(i),l=qi(i),f=Bi(a),d=qi(a),h=Bi(o),m=qi(o),v=Bi(s),p=qi(s),g=Bi(c),b=qi(c),x={a:L,A:B,b:W,B:I,c:null,d:x0,e:x0,f:DD,g:KD,G:YD,H:MD,I:$D,j:ND,L:U_,m:LD,M:BD,p:F,q:U,Q:O0,s:A0,S:qD,u:FD,U:zD,V:WD,w:UD,W:HD,x:null,X:null,y:VD,Y:GD,Z:XD,"%":S0},w={a:G,A:Z,b:J,B:Q,c:null,d:w0,e:w0,f:eL,g:lL,G:dL,H:ZD,I:JD,j:QD,L:V_,m:tL,M:rL,p:K,q:ee,Q:O0,s:A0,S:nL,u:iL,U:aL,V:oL,w:sL,W:cL,x:null,X:null,y:uL,Y:fL,Z:pL,"%":S0},y={a:R,A:C,b:j,B:k,c:N,d:g0,e:g0,f:jD,g:y0,G:m0,H:b0,I:b0,j:PD,L:CD,m:_D,M:ED,p:T,q:AD,Q:RD,s:kD,S:TD,u:bD,U:xD,V:wD,w:gD,W:SD,x:D,X:$,y:y0,Y:m0,Z:OD,"%":ID};x.x=S(r,x),x.X=S(n,x),x.c=S(t,x),w.x=S(r,w),w.X=S(n,w),w.c=S(t,w);function S(q,H){return function(X){var M=[],ce=-1,V=0,ye=q.length,Ae,$e,gr;for(X instanceof Date||(X=new Date(+X));++ce<ye;)q.charCodeAt(ce)===37&&(M.push(q.slice(V,ce)),($e=v0[Ae=q.charAt(++ce)])!=null?Ae=q.charAt(++ce):$e=Ae==="e"?" ":"0",(gr=H[Ae])&&(Ae=gr(X,$e)),M.push(Ae),V=ce+1);return M.push(q.slice(V,ce)),M.join("")}}function A(q,H){return function(X){var M=Li(1900,void 0,1),ce=P(M,q,X+="",0),V,ye;if(ce!=X.length)return null;if("Q"in M)return new Date(M.Q);if("s"in M)return new Date(M.s*1e3+("L"in M?M.L:0));if(H&&!("Z"in M)&&(M.Z=0),"p"in M&&(M.H=M.H%12+M.p*12),M.m===void 0&&(M.m="q"in M?M.q:0),"V"in M){if(M.V<1||M.V>53)return null;"w"in M||(M.w=1),"Z"in M?(V=fd(Li(M.y,0,1)),ye=V.getUTCDay(),V=ye>4||ye===0?as.ceil(V):as(V),V=hc.offset(V,(M.V-1)*7),M.y=V.getUTCFullYear(),M.m=V.getUTCMonth(),M.d=V.getUTCDate()+(M.w+6)%7):(V=ld(Li(M.y,0,1)),ye=V.getDay(),V=ye>4||ye===0?is.ceil(V):is(V),V=Ga.offset(V,(M.V-1)*7),M.y=V.getFullYear(),M.m=V.getMonth(),M.d=V.getDate()+(M.w+6)%7)}else("W"in M||"U"in M)&&("w"in M||(M.w="u"in M?M.u%7:"W"in M?1:0),ye="Z"in M?fd(Li(M.y,0,1)).getUTCDay():ld(Li(M.y,0,1)).getDay(),M.m=0,M.d="W"in M?(M.w+6)%7+M.W*7-(ye+5)%7:M.w+M.U*7-(ye+6)%7);return"Z"in M?(M.H+=M.Z/100|0,M.M+=M.Z%100,fd(M)):ld(M)}}function P(q,H,X,M){for(var ce=0,V=H.length,ye=X.length,Ae,$e;ce<V;){if(M>=ye)return-1;if(Ae=H.charCodeAt(ce++),Ae===37){if(Ae=H.charAt(ce++),$e=y[Ae in v0?H.charAt(ce++):Ae],!$e||(M=$e(q,X,M))<0)return-1}else if(Ae!=X.charCodeAt(M++))return-1}return M}function T(q,H,X){var M=u.exec(H.slice(X));return M?(q.p=l.get(M[0].toLowerCase()),X+M[0].length):-1}function R(q,H,X){var M=h.exec(H.slice(X));return M?(q.w=m.get(M[0].toLowerCase()),X+M[0].length):-1}function C(q,H,X){var M=f.exec(H.slice(X));return M?(q.w=d.get(M[0].toLowerCase()),X+M[0].length):-1}function j(q,H,X){var M=g.exec(H.slice(X));return M?(q.m=b.get(M[0].toLowerCase()),X+M[0].length):-1}function k(q,H,X){var M=v.exec(H.slice(X));return M?(q.m=p.get(M[0].toLowerCase()),X+M[0].length):-1}function N(q,H,X){return P(q,t,H,X)}function D(q,H,X){return P(q,r,H,X)}function $(q,H,X){return P(q,n,H,X)}function L(q){return o[q.getDay()]}function B(q){return a[q.getDay()]}function W(q){return c[q.getMonth()]}function I(q){return s[q.getMonth()]}function F(q){return i[+(q.getHours()>=12)]}function U(q){return 1+~~(q.getMonth()/3)}function G(q){return o[q.getUTCDay()]}function Z(q){return a[q.getUTCDay()]}function J(q){return c[q.getUTCMonth()]}function Q(q){return s[q.getUTCMonth()]}function K(q){return i[+(q.getUTCHours()>=12)]}function ee(q){return 1+~~(q.getUTCMonth()/3)}return{format:function(q){var H=S(q+="",x);return H.toString=function(){return q},H},parse:function(q){var H=A(q+="",!1);return H.toString=function(){return q},H},utcFormat:function(q){var H=S(q+="",w);return H.toString=function(){return q},H},utcParse:function(q){var H=A(q+="",!0);return H.toString=function(){return q},H}}}var v0={"-":"",_:" ",0:"0"},Ve=/^\s*\d+/,vD=/^%/,mD=/[\\^$*+?|[\]().{}]/g;function ve(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function yD(e){return e.replace(mD,"\\$&")}function Bi(e){return new RegExp("^(?:"+e.map(yD).join("|")+")","i")}function qi(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function gD(e,t,r){var n=Ve.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function bD(e,t,r){var n=Ve.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function xD(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function wD(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function SD(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function m0(e,t,r){var n=Ve.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function y0(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function OD(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function AD(e,t,r){var n=Ve.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function _D(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function g0(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function PD(e,t,r){var n=Ve.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function b0(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function ED(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function TD(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function CD(e,t,r){var n=Ve.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function jD(e,t,r){var n=Ve.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function ID(e,t,r){var n=vD.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function RD(e,t,r){var n=Ve.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function kD(e,t,r){var n=Ve.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function x0(e,t){return ve(e.getDate(),t,2)}function MD(e,t){return ve(e.getHours(),t,2)}function $D(e,t){return ve(e.getHours()%12||12,t,2)}function ND(e,t){return ve(1+Ga.count(cr(e),e),t,3)}function U_(e,t){return ve(e.getMilliseconds(),t,3)}function DD(e,t){return U_(e,t)+"000"}function LD(e,t){return ve(e.getMonth()+1,t,2)}function BD(e,t){return ve(e.getMinutes(),t,2)}function qD(e,t){return ve(e.getSeconds(),t,2)}function FD(e){var t=e.getDay();return t===0?7:t}function zD(e,t){return ve(vc.count(cr(e)-1,e),t,2)}function H_(e){var t=e.getDay();return t>=4||t===0?Hn(e):Hn.ceil(e)}function WD(e,t){return e=H_(e),ve(Hn.count(cr(e),e)+(cr(e).getDay()===4),t,2)}function UD(e){return e.getDay()}function HD(e,t){return ve(is.count(cr(e)-1,e),t,2)}function VD(e,t){return ve(e.getFullYear()%100,t,2)}function KD(e,t){return e=H_(e),ve(e.getFullYear()%100,t,2)}function GD(e,t){return ve(e.getFullYear()%1e4,t,4)}function YD(e,t){var r=e.getDay();return e=r>=4||r===0?Hn(e):Hn.ceil(e),ve(e.getFullYear()%1e4,t,4)}function XD(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ve(t/60|0,"0",2)+ve(t%60,"0",2)}function w0(e,t){return ve(e.getUTCDate(),t,2)}function ZD(e,t){return ve(e.getUTCHours(),t,2)}function JD(e,t){return ve(e.getUTCHours()%12||12,t,2)}function QD(e,t){return ve(1+hc.count(ur(e),e),t,3)}function V_(e,t){return ve(e.getUTCMilliseconds(),t,3)}function eL(e,t){return V_(e,t)+"000"}function tL(e,t){return ve(e.getUTCMonth()+1,t,2)}function rL(e,t){return ve(e.getUTCMinutes(),t,2)}function nL(e,t){return ve(e.getUTCSeconds(),t,2)}function iL(e){var t=e.getUTCDay();return t===0?7:t}function aL(e,t){return ve(mc.count(ur(e)-1,e),t,2)}function K_(e){var t=e.getUTCDay();return t>=4||t===0?Vn(e):Vn.ceil(e)}function oL(e,t){return e=K_(e),ve(Vn.count(ur(e),e)+(ur(e).getUTCDay()===4),t,2)}function sL(e){return e.getUTCDay()}function cL(e,t){return ve(as.count(ur(e)-1,e),t,2)}function uL(e,t){return ve(e.getUTCFullYear()%100,t,2)}function lL(e,t){return e=K_(e),ve(e.getUTCFullYear()%100,t,2)}function fL(e,t){return ve(e.getUTCFullYear()%1e4,t,4)}function dL(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Vn(e):Vn.ceil(e),ve(e.getUTCFullYear()%1e4,t,4)}function pL(){return"+0000"}function S0(){return"%"}function O0(e){return+e}function A0(e){return Math.floor(+e/1e3)}var On,G_,Y_;hL({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 hL(e){return On=hD(e),G_=On.format,On.parse,Y_=On.utcFormat,On.utcParse,On}function vL(e){return new Date(e)}function mL(e){return e instanceof Date?+e:+new Date(+e)}function Yv(e,t,r,n,i,a,o,s,c,u){var l=$v(),f=l.invert,d=l.domain,h=u(".%L"),m=u(":%S"),v=u("%I:%M"),p=u("%I %p"),g=u("%a %d"),b=u("%b %d"),x=u("%B"),w=u("%Y");function y(S){return(c(S)<S?h:s(S)<S?m:o(S)<S?v:a(S)<S?p:n(S)<S?i(S)<S?g:b:r(S)<S?x:w)(S)}return l.invert=function(S){return new Date(f(S))},l.domain=function(S){return arguments.length?d(Array.from(S,mL)):d().map(vL)},l.ticks=function(S){var A=d();return e(A[0],A[A.length-1],S??10)},l.tickFormat=function(S,A){return A==null?y:u(A)},l.nice=function(S){var A=d();return(!S||typeof S.range!="function")&&(S=t(A[0],A[A.length-1],S??10)),S?d($_(A,S)):l},l.copy=function(){return Ka(l,Yv(e,t,r,n,i,a,o,s,c,u))},l}function yL(){return St.apply(Yv(dD,pD,cr,Kv,vc,Ga,Hv,Wv,tn,G_).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function gL(){return St.apply(Yv(lD,fD,ur,Gv,mc,hc,Vv,Uv,tn,Y_).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function yc(){var e=0,t=1,r,n,i,a,o=et,s=!1,c;function u(f){return f==null||isNaN(f=+f)?c:o(i===0?.5:(f=(a(f)-r)*i,s?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(f){return arguments.length?(s=!!f,u):s},u.interpolator=function(f){return arguments.length?(o=f,u):o};function l(f){return function(d){var h,m;return arguments.length?([h,m]=d,o=f(h,m),u):[o(0),o(1)]}}return u.range=l(Si),u.rangeRound=l(Mv),u.unknown=function(f){return arguments.length?(c=f,u):c},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),u}}function Br(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function X_(){var e=Lr(yc()(et));return e.copy=function(){return Br(e,X_())},yr.apply(e,arguments)}function Z_(){var e=Lv(yc()).domain([1,10]);return e.copy=function(){return Br(e,Z_()).base(e.base())},yr.apply(e,arguments)}function J_(){var e=Bv(yc());return e.copy=function(){return Br(e,J_()).constant(e.constant())},yr.apply(e,arguments)}function Xv(){var e=qv(yc());return e.copy=function(){return Br(e,Xv()).exponent(e.exponent())},yr.apply(e,arguments)}function bL(){return Xv.apply(null,arguments).exponent(.5)}function Q_(){var e=[],t=et;function r(n){if(n!=null&&!isNaN(n=+n))return t((Ha(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Tr),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>aN(e,a/n))},r.copy=function(){return Q_(t).domain(e)},yr.apply(r,arguments)}function gc(){var e=0,t=.5,r=1,n=1,i,a,o,s,c,u=et,l,f=!1,d;function h(v){return isNaN(v=+v)?d:(v=.5+((v=+l(v))-a)*(n*v<n*a?s:c),u(f?Math.max(0,Math.min(1,v)):v))}h.domain=function(v){return arguments.length?([e,t,r]=v,i=l(e=+e),a=l(t=+t),o=l(r=+r),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,h):[e,t,r]},h.clamp=function(v){return arguments.length?(f=!!v,h):f},h.interpolator=function(v){return arguments.length?(u=v,h):u};function m(v){return function(p){var g,b,x;return arguments.length?([g,b,x]=p,u=IN(v,[g,b,x]),h):[u(0),u(.5),u(1)]}}return h.range=m(Si),h.rangeRound=m(Mv),h.unknown=function(v){return arguments.length?(d=v,h):d},function(v){return l=v,i=v(e),a=v(t),o=v(r),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,h}}function eP(){var e=Lr(gc()(et));return e.copy=function(){return Br(e,eP())},yr.apply(e,arguments)}function tP(){var e=Lv(gc()).domain([.1,1,10]);return e.copy=function(){return Br(e,tP()).base(e.base())},yr.apply(e,arguments)}function rP(){var e=Bv(gc());return e.copy=function(){return Br(e,rP()).constant(e.constant())},yr.apply(e,arguments)}function Zv(){var e=qv(gc());return e.copy=function(){return Br(e,Zv()).exponent(e.exponent())},yr.apply(e,arguments)}function xL(){return Zv.apply(null,arguments).exponent(.5)}const _0=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:fa,scaleDiverging:eP,scaleDivergingLog:tP,scaleDivergingPow:Zv,scaleDivergingSqrt:xL,scaleDivergingSymlog:rP,scaleIdentity:M_,scaleImplicit:zp,scaleLinear:rs,scaleLog:N_,scaleOrdinal:Iv,scalePoint:Xi,scalePow:Fv,scaleQuantile:B_,scaleQuantize:q_,scaleRadial:L_,scaleSequential:X_,scaleSequentialLog:Z_,scaleSequentialPow:Xv,scaleSequentialQuantile:Q_,scaleSequentialSqrt:bL,scaleSequentialSymlog:J_,scaleSqrt:eD,scaleSymlog:D_,scaleThreshold:F_,scaleTime:yL,scaleUtc:gL,tickFormat:k_},Symbol.toStringTag,{value:"Module"}));var dd,P0;function bc(){if(P0)return dd;P0=1;var e=gi();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var s=r[a],c=n(s);if(c!=null&&(u===void 0?c===c&&!e(c):i(c,u)))var u=c,l=s}return l}return dd=t,dd}var pd,E0;function nP(){if(E0)return pd;E0=1;function e(t,r){return t>r}return pd=e,pd}var hd,T0;function wL(){if(T0)return hd;T0=1;var e=bc(),t=nP(),r=wi();function n(i){return i&&i.length?e(i,r,t):void 0}return hd=n,hd}var SL=wL();const _r=Oe(SL);var vd,C0;function iP(){if(C0)return vd;C0=1;function e(t,r){return t<r}return vd=e,vd}var md,j0;function OL(){if(j0)return md;j0=1;var e=bc(),t=iP(),r=wi();function n(i){return i&&i.length?e(i,r,t):void 0}return md=n,md}var AL=OL();const xc=Oe(AL);var yd,I0;function _L(){if(I0)return yd;I0=1;var e=hv(),t=Kt(),r=d_(),n=it();function i(a,o){var s=n(a)?e:r;return s(a,t(o,3))}return yd=i,yd}var gd,R0;function PL(){if(R0)return gd;R0=1;var e=l_(),t=_L();function r(n,i){return e(t(n,i),1)}return gd=r,gd}var EL=PL();const TL=Oe(EL);var bd,k0;function CL(){if(k0)return bd;k0=1;var e=Pv();function t(r,n){return e(r,n)}return bd=t,bd}var jL=CL();const lr=Oe(jL);var Oi=1e9,IL={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Qv,Re=!0,wt="[DecimalError] ",on=wt+"Invalid argument: ",Jv=wt+"Exponent out of range: ",Ai=Math.floor,Zr=Math.pow,RL=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ut,Ue=1e7,Ie=7,aP=9007199254740991,os=Ai(aP/Ie),re={};re.absoluteValue=re.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};re.comparedTo=re.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};re.decimalPlaces=re.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Ie;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};re.dividedBy=re.div=function(e){return or(this,new this.constructor(e))};re.dividedToIntegerBy=re.idiv=function(e){var t=this,r=t.constructor;return Te(or(t,new r(e),0,1),r.precision)};re.equals=re.eq=function(e){return!this.cmp(e)};re.exponent=function(){return Le(this)};re.greaterThan=re.gt=function(e){return this.cmp(e)>0};re.greaterThanOrEqualTo=re.gte=function(e){return this.cmp(e)>=0};re.isInteger=re.isint=function(){return this.e>this.d.length-2};re.isNegative=re.isneg=function(){return this.s<0};re.isPositive=re.ispos=function(){return this.s>0};re.isZero=function(){return this.s===0};re.lessThan=re.lt=function(e){return this.cmp(e)<0};re.lessThanOrEqualTo=re.lte=function(e){return this.cmp(e)<1};re.logarithm=re.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(ut))throw Error(wt+"NaN");if(r.s<1)throw Error(wt+(r.s?"NaN":"-Infinity"));return r.eq(ut)?new n(0):(Re=!1,t=or(ma(r,a),ma(e,a),a),Re=!0,Te(t,i))};re.minus=re.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?cP(t,e):oP(t,(e.s=-e.s,e))};re.modulo=re.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(wt+"NaN");return r.s?(Re=!1,t=or(r,e,0,1).times(e),Re=!0,r.minus(t)):Te(new n(r),i)};re.naturalExponential=re.exp=function(){return sP(this)};re.naturalLogarithm=re.ln=function(){return ma(this)};re.negated=re.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};re.plus=re.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?oP(t,e):cP(t,(e.s=-e.s,e))};re.precision=re.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(on+e);if(t=Le(i)+1,n=i.d.length-1,r=n*Ie+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};re.squareRoot=re.sqrt=function(){var e,t,r,n,i,a,o,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(wt+"NaN")}for(e=Le(s),Re=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Dt(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ai((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t)):n=new c(i.toString()),r=c.precision,i=o=r+3;;)if(a=n,n=a.plus(or(s,a,o+2)).times(.5),Dt(a.d).slice(0,o)===(t=Dt(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Te(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return Re=!0,Te(n,r)};re.times=re.mul=function(e){var t,r,n,i,a,o,s,c,u,l=this,f=l.constructor,d=l.d,h=(e=new f(e)).d;if(!l.s||!e.s)return new f(0);for(e.s*=l.s,r=l.e+e.e,c=d.length,u=h.length,c<u&&(a=d,d=h,h=a,o=c,c=u,u=o),a=[],o=c+u,n=o;n--;)a.push(0);for(n=u;--n>=0;){for(t=0,i=c+n;i>n;)s=a[i]+h[n]*d[i-n-1]+t,a[i--]=s%Ue|0,t=s/Ue|0;a[i]=(a[i]+t)%Ue|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Re?Te(e,f.precision):e};re.toDecimalPlaces=re.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Wt(e,0,Oi),t===void 0?t=n.rounding:Wt(t,0,8),Te(r,e+Le(r)+1,t))};re.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=un(n,!0):(Wt(e,0,Oi),t===void 0?t=i.rounding:Wt(t,0,8),n=Te(new i(n),e+1,t),r=un(n,!0,e+1)),r};re.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?un(i):(Wt(e,0,Oi),t===void 0?t=a.rounding:Wt(t,0,8),n=Te(new a(i),e+Le(i)+1,t),r=un(n.abs(),!1,e+Le(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};re.toInteger=re.toint=function(){var e=this,t=e.constructor;return Te(new t(e),Le(e)+1,t.rounding)};re.toNumber=function(){return+this};re.toPower=re.pow=function(e){var t,r,n,i,a,o,s=this,c=s.constructor,u=12,l=+(e=new c(e));if(!e.s)return new c(ut);if(s=new c(s),!s.s){if(e.s<1)throw Error(wt+"Infinity");return s}if(s.eq(ut))return s;if(n=c.precision,e.eq(ut))return Te(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=l<0?-l:l)<=aP){for(i=new c(ut),t=Math.ceil(n/Ie+4),Re=!1;r%2&&(i=i.times(s),$0(i.d,t)),r=Ai(r/2),r!==0;)s=s.times(s),$0(s.d,t);return Re=!0,e.s<0?new c(ut).div(i):Te(i,n)}}else if(a<0)throw Error(wt+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,Re=!1,i=e.times(ma(s,n+u)),Re=!0,i=sP(i),i.s=a,i};re.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Le(i),n=un(i,r<=a.toExpNeg||r>=a.toExpPos)):(Wt(e,1,Oi),t===void 0?t=a.rounding:Wt(t,0,8),i=Te(new a(i),e,t),r=Le(i),n=un(i,e<=r||r<=a.toExpNeg,e)),n};re.toSignificantDigits=re.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Wt(e,1,Oi),t===void 0?t=n.rounding:Wt(t,0,8)),Te(new n(r),e,t)};re.toString=re.valueOf=re.val=re.toJSON=re[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Le(e),r=e.constructor;return un(e,t<=r.toExpNeg||t>=r.toExpPos)};function oP(e,t){var r,n,i,a,o,s,c,u,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),Re?Te(t,f):t;if(c=e.d,u=t.d,o=e.e,i=t.e,c=c.slice(),a=o-i,a){for(a<0?(n=c,a=-a,s=u.length):(n=u,i=o,s=c.length),o=Math.ceil(f/Ie),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=c.length,a=u.length,s-a<0&&(a=s,n=u,u=c,c=n),r=0;a;)r=(c[--a]=c[a]+u[a]+r)/Ue|0,c[a]%=Ue;for(r&&(c.unshift(r),++i),s=c.length;c[--s]==0;)c.pop();return t.d=c,t.e=i,Re?Te(t,f):t}function Wt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(on+e)}function Dt(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=Ie-n.length,r&&(a+=Or(r)),a+=n;o=e[t],n=o+"",r=Ie-n.length,r&&(a+=Or(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var or=(function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%Ue|0,o=a/Ue|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,c;if(a!=o)c=a>o?1:-1;else for(s=c=0;s<a;s++)if(n[s]!=i[s]){c=n[s]>i[s]?1:-1;break}return c}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Ue+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,c,u,l,f,d,h,m,v,p,g,b,x,w,y,S,A,P,T=n.constructor,R=n.s==i.s?1:-1,C=n.d,j=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(wt+"Division by zero");for(c=n.e-i.e,A=j.length,y=C.length,h=new T(R),m=h.d=[],u=0;j[u]==(C[u]||0);)++u;if(j[u]>(C[u]||0)&&--c,a==null?b=a=T.precision:o?b=a+(Le(n)-Le(i))+1:b=a,b<0)return new T(0);if(b=b/Ie+2|0,u=0,A==1)for(l=0,j=j[0],b++;(u<y||l)&&b--;u++)x=l*Ue+(C[u]||0),m[u]=x/j|0,l=x%j|0;else{for(l=Ue/(j[0]+1)|0,l>1&&(j=e(j,l),C=e(C,l),A=j.length,y=C.length),w=A,v=C.slice(0,A),p=v.length;p<A;)v[p++]=0;P=j.slice(),P.unshift(0),S=j[0],j[1]>=Ue/2&&++S;do l=0,s=t(j,v,A,p),s<0?(g=v[0],A!=p&&(g=g*Ue+(v[1]||0)),l=g/S|0,l>1?(l>=Ue&&(l=Ue-1),f=e(j,l),d=f.length,p=v.length,s=t(f,v,d,p),s==1&&(l--,r(f,A<d?P:j,d))):(l==0&&(s=l=1),f=j.slice()),d=f.length,d<p&&f.unshift(0),r(v,f,p),s==-1&&(p=v.length,s=t(j,v,A,p),s<1&&(l++,r(v,A<p?P:j,p))),p=v.length):s===0&&(l++,v=[0]),m[u++]=l,s&&v[0]?v[p++]=C[w]||0:(v=[C[w]],p=1);while((w++<y||v[0]!==void 0)&&b--)}return m[0]||m.shift(),h.e=c,Te(h,o?a+Le(h)+1:a)}})();function sP(e,t){var r,n,i,a,o,s,c=0,u=0,l=e.constructor,f=l.precision;if(Le(e)>16)throw Error(Jv+Le(e));if(!e.s)return new l(ut);for(Re=!1,s=f,o=new l(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Zr(2,u))/Math.LN10*2+5|0,s+=n,r=i=a=new l(ut),l.precision=s;;){if(i=Te(i.times(e),s),r=r.times(++c),o=a.plus(or(i,r,s)),Dt(o.d).slice(0,s)===Dt(a.d).slice(0,s)){for(;u--;)a=Te(a.times(a),s);return l.precision=f,t==null?(Re=!0,Te(a,f)):a}a=o}}function Le(e){for(var t=e.e*Ie,r=e.d[0];r>=10;r/=10)t++;return t}function xd(e,t,r){if(t>e.LN10.sd())throw Re=!0,r&&(e.precision=r),Error(wt+"LN10 precision limit exceeded");return Te(new e(e.LN10),t)}function Or(e){for(var t="";e--;)t+="0";return t}function ma(e,t){var r,n,i,a,o,s,c,u,l,f=1,d=10,h=e,m=h.d,v=h.constructor,p=v.precision;if(h.s<1)throw Error(wt+(h.s?"NaN":"-Infinity"));if(h.eq(ut))return new v(0);if(t==null?(Re=!1,u=p):u=t,h.eq(10))return t==null&&(Re=!0),xd(v,u);if(u+=d,v.precision=u,r=Dt(m),n=r.charAt(0),a=Le(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=Dt(h.d),n=r.charAt(0),f++;a=Le(h),n>1?(h=new v("0."+r),a++):h=new v(n+"."+r.slice(1))}else return c=xd(v,u+2,p).times(a+""),h=ma(new v(n+"."+r.slice(1)),u-d).plus(c),v.precision=p,t==null?(Re=!0,Te(h,p)):h;for(s=o=h=or(h.minus(ut),h.plus(ut),u),l=Te(h.times(h),u),i=3;;){if(o=Te(o.times(l),u),c=s.plus(or(o,new v(i),u)),Dt(c.d).slice(0,u)===Dt(s.d).slice(0,u))return s=s.times(2),a!==0&&(s=s.plus(xd(v,u+2,p).times(a+""))),s=or(s,new v(f),u),v.precision=p,t==null?(Re=!0,Te(s,p)):s;s=c,i+=2}}function M0(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Ai(r/Ie),e.d=[],n=(r+1)%Ie,r<0&&(n+=Ie),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Ie;n<i;)e.d.push(+t.slice(n,n+=Ie));t=t.slice(n),n=Ie-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Re&&(e.e>os||e.e<-os))throw Error(Jv+r)}else e.s=0,e.e=0,e.d=[0];return e}function Te(e,t,r){var n,i,a,o,s,c,u,l,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=Ie,i=t,u=f[l=0];else{if(l=Math.ceil((n+1)/Ie),a=f.length,l>=a)return e;for(u=a=f[l],o=1;a>=10;a/=10)o++;n%=Ie,i=n-Ie+o}if(r!==void 0&&(a=Zr(10,o-i-1),s=u/a%10|0,c=t<0||f[l+1]!==void 0||u%a,c=r<4?(s||c)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||c||r==6&&(n>0?i>0?u/Zr(10,o-i):0:f[l-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return c?(a=Le(e),f.length=1,t=t-a-1,f[0]=Zr(10,(Ie-t%Ie)%Ie),e.e=Ai(-t/Ie)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=l,a=1,l--):(f.length=l+1,a=Zr(10,Ie-n),f[l]=i>0?(u/Zr(10,o-i)%Zr(10,i)|0)*a:0),c)for(;;)if(l==0){(f[0]+=a)==Ue&&(f[0]=1,++e.e);break}else{if(f[l]+=a,f[l]!=Ue)break;f[l--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(Re&&(e.e>os||e.e<-os))throw Error(Jv+Le(e));return e}function cP(e,t){var r,n,i,a,o,s,c,u,l,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Re?Te(t,h):t;if(c=e.d,f=t.d,n=t.e,u=e.e,c=c.slice(),o=u-n,o){for(l=o<0,l?(r=c,o=-o,s=f.length):(r=f,n=u,s=c.length),i=Math.max(Math.ceil(h/Ie),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=c.length,s=f.length,l=i<s,l&&(s=i),i=0;i<s;i++)if(c[i]!=f[i]){l=c[i]<f[i];break}o=0}for(l&&(r=c,c=f,f=r,t.s=-t.s),s=c.length,i=f.length-s;i>0;--i)c[s++]=0;for(i=f.length;i>o;){if(c[--i]<f[i]){for(a=i;a&&c[--a]===0;)c[a]=Ue-1;--c[a],c[i]+=Ue}c[i]-=f[i]}for(;c[--s]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(t.d=c,t.e=n,Re?Te(t,h):t):new d(0)}function un(e,t,r){var n,i=Le(e),a=Dt(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Or(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Or(-i-1)+a,r&&(n=r-o)>0&&(a+=Or(n))):i>=o?(a+=Or(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Or(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Or(n))),e.s<0?"-"+a:a}function $0(e,t){if(e.length>t)return e.length=t,!0}function uP(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(on+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return M0(o,a.toString())}else if(typeof a!="string")throw Error(on+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,RL.test(a))M0(o,a);else throw Error(on+a)}if(i.prototype=re,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=uP,i.config=i.set=kL,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function kL(e){if(!e||typeof e!="object")throw Error(wt+"Object expected");var t,r,n,i=["precision",1,Oi,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Ai(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(on+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(on+r+": "+n);return this}var Qv=uP(IL);ut=new Qv(1);const _e=Qv;function ML(e){return LL(e)||DL(e)||NL(e)||$L()}function $L(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
13
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
14
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
15
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pP(e,t){if(e){if(typeof e=="string")return Xp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xp(e,t)}}function Xp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function
|
|
16
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
17
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function P2(e,t){if(e){if(typeof e=="string")return Jp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jp(e,t)}}function E2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function T2(e){if(Array.isArray(e))return Jp(e)}function Jp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function q0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?q0(Object(r),!0).forEach(function(n){Nn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nn(e,t,r){return t=C2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C2(e){var t=j2(e,"string");return ba(t)=="symbol"?t:t+""}function j2(e,t){if(ba(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ba(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ee(e,t,r){return se(e)||se(t)?r:ze(t)?lt(e,t,r):oe(t)?t(e):r}function Zi(e,t,r,n){var i=TL(e,function(s){return Ee(s,t)});if(r==="number"){var a=i.filter(function(s){return Y(s)||parseFloat(s)});return a.length?[xc(a),_r(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!se(s)}):i;return o.map(function(s){return ze(s)||s instanceof Date?s:""})}var I2=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n?.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var c=a.range,u=0;u<s;u++){var l=u>0?i[u-1].coordinate:i[s-1].coordinate,f=i[u].coordinate,d=u>=s-1?i[0].coordinate:i[u+1].coordinate,h=void 0;if(Je(f-l)!==Je(d-f)){var m=[];if(Je(d-f)===Je(c[1]-c[0])){h=d;var v=f+c[1]-c[0];m[0]=Math.min(v,(v+l)/2),m[1]=Math.max(v,(v+l)/2)}else{h=l;var p=d+c[1]-c[0];m[0]=Math.min(f,(p+f)/2),m[1]=Math.max(f,(p+f)/2)}var g=[Math.min(f,(h+f)/2),Math.max(f,(h+f)/2)];if(t>g[0]&&t<=g[1]||t>=m[0]&&t<=m[1]){o=i[u].index;break}}else{var b=Math.min(l,d),x=Math.max(l,d);if(t>(b+f)/2&&t<=(x+f)/2){o=i[u].index;break}}}else for(var w=0;w<s;w++)if(w===0&&t<=(n[w].coordinate+n[w+1].coordinate)/2||w>0&&w<s-1&&t>(n[w].coordinate+n[w-1].coordinate)/2&&t<=(n[w].coordinate+n[w+1].coordinate)/2||w===s-1&&t>(n[w].coordinate+n[w-1].coordinate)/2){o=n[w].index;break}return o},em=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Me(Me({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,c;switch(i){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:s;break;default:c=s;break}return c},R2=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),c=0,u=s.length;c<u;c++)for(var l=a[s[c]].stackGroups,f=Object.keys(l),d=0,h=f.length;d<h;d++){var m=l[f[d]],v=m.items,p=m.cateAxisId,g=v.filter(function(A){return ar(A.type).indexOf("Bar")>=0});if(g&&g.length){var b=g[0].type.defaultProps,x=b!==void 0?Me(Me({},b),g[0].props):g[0].props,w=x.barSize,y=x[p];o[y]||(o[y]=[]);var S=se(w)?r:w;o[y].push({item:g[0],stackList:g.slice(1),barSize:se(S)?void 0:Qe(S,n,0)})}}return o},k2=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,c=o.length;if(c<1)return null;var u=Qe(r,i,0,!0),l,f=[];if(o[0].barSize===+o[0].barSize){var d=!1,h=i/c,m=o.reduce(function(w,y){return w+y.barSize||0},0);m+=(c-1)*u,m>=i&&(m-=(c-1)*u,u=0),m>=i&&h>0&&(d=!0,h*=.9,m=c*h);var v=(i-m)/2>>0,p={offset:v-u,size:0};l=o.reduce(function(w,y){var S={item:y.item,position:{offset:p.offset+p.size+u,size:d?h:y.barSize}},A=[].concat(B0(w),[S]);return p=A[A.length-1].position,y.stackList&&y.stackList.length&&y.stackList.forEach(function(P){A.push({item:P,position:p})}),A},f)}else{var g=Qe(n,i,0,!0);i-2*g-(c-1)*u<=0&&(u=0);var b=(i-2*g-(c-1)*u)/c;b>1&&(b>>=0);var x=s===+s?Math.min(b,s):b;l=o.reduce(function(w,y,S){var A=[].concat(B0(w),[{item:y.item,position:{offset:g+(b+u)*S+(b-x)/2,size:x}}]);return y.stackList&&y.stackList.length&&y.stackList.forEach(function(P){A.push({item:P,position:A[A.length-1].position})}),A},f)}return l},M2=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,c=o-(s.left||0)-(s.right||0),u=xP({children:a,legendWidth:c});if(u){var l=i||{},f=l.width,d=l.height,h=u.align,m=u.verticalAlign,v=u.layout;if((v==="vertical"||v==="horizontal"&&m==="middle")&&h!=="center"&&Y(t[h]))return Me(Me({},t),{},Nn({},h,t[h]+(f||0)));if((v==="horizontal"||v==="vertical"&&h==="center")&&m!=="middle"&&Y(t[m]))return Me(Me({},t),{},Nn({},m,t[m]+(d||0)))}return t},$2=function(t,r,n){return se(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},wP=function(t,r,n,i,a){var o=r.props.children,s=tt(o,_i).filter(function(u){return $2(i,a,u.props.direction)});if(s&&s.length){var c=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,l){var f=Ee(l,n);if(se(f))return u;var d=Array.isArray(f)?[xc(f),_r(f)]:[f,f],h=c.reduce(function(m,v){var p=Ee(l,v,0),g=d[0]-Math.abs(Array.isArray(p)?p[0]:p),b=d[1]+Math.abs(Array.isArray(p)?p[1]:p);return[Math.min(g,m[0]),Math.max(b,m[1])]},[1/0,-1/0]);return[Math.min(h[0],u[0]),Math.max(h[1],u[1])]},[1/0,-1/0])}return null},N2=function(t,r,n,i,a){var o=r.map(function(s){return wP(t,s,n,a,i)}).filter(function(s){return!se(s)});return o&&o.length?o.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]):null},SP=function(t,r,n,i,a){var o=r.map(function(c){var u=c.props.dataKey;return n==="number"&&u&&wP(t,c,u,i)||Zi(t,u,n,a)});if(n==="number")return o.reduce(function(c,u){return[Math.min(c[0],u[0]),Math.max(c[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(c,u){for(var l=0,f=u.length;l<f;l++)s[u[l]]||(s[u[l]]=!0,c.push(u[l]));return c},[])},OP=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},AP=function(t,r,n,i){if(i)return t.map(function(c){return c.coordinate});var a,o,s=t.map(function(c){return c.coordinate===r&&(a=!0),c.coordinate===n&&(o=!0),c.coordinate});return a||s.push(r),o||s.push(n),s},ir=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,c=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/c:0;if(u=t.axisType==="angleAxis"&&s?.length>=2?Je(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var l=(t.ticks||t.niceTicks).map(function(f){var d=a?a.indexOf(f):f;return{coordinate:i(d)+u,value:f,offset:u}});return l.filter(function(f){return!xi(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:i(f)+u,value:f,index:d,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+u,value:f,offset:u}}):i.domain().map(function(f,d){return{coordinate:i(f)+u,value:a?a[f]:f,index:d,offset:u}})},Sd=new WeakMap,mo=function(t,r){if(typeof r!="function")return t;Sd.has(t)||Sd.set(t,new WeakMap);var n=Sd.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},_P=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:fa(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:rs(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Xi(),realScaleType:"point"}:a==="category"?{scale:fa(),realScaleType:"band"}:{scale:rs(),realScaleType:"linear"};if(sn(i)){var c="scale".concat(ac(i));return{scale:(_0[c]||Xi)(),realScaleType:_0[c]?c:"point"}}return oe(i)?{scale:i}:{scale:Xi(),realScaleType:"point"}},F0=1e-4,PP=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-F0,o=Math.max(i[0],i[1])+F0,s=t(r[0]),c=t(r[n-1]);(s<a||s>o||c<a||c>o)&&t.domain([r[0],r[n-1]])}},D2=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},L2=function(t,r){if(!r||r.length!==2||!Y(r[0])||!Y(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!Y(t[0])||t[0]<n)&&(a[0]=n),(!Y(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},B2=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,s=0;s<r;++s){var c=xi(t[s][n][1])?t[s][n][0]:t[s][n][1];c>=0?(t[s][n][0]=a,t[s][n][1]=a+c,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+c,o=t[s][n][1])}},q2=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var s=xi(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},F2={sign:B2,expand:TR,none:Bn,silhouette:CR,wiggle:jR,positive:q2},z2=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=F2[n],o=ER().keys(i).value(function(s,c){return+Ee(s,c,0)}).order(Tp).offset(a);return o(t)},W2=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,c={},u=s.reduce(function(f,d){var h,m=(h=d.type)!==null&&h!==void 0&&h.defaultProps?Me(Me({},d.type.defaultProps),d.props):d.props,v=m.stackId,p=m.hide;if(p)return f;var g=m[n],b=f[g]||{hasStack:!1,stackGroups:{}};if(ze(v)){var x=b.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};x.items.push(d),b.hasStack=!0,b.stackGroups[v]=x}else b.stackGroups[Nr("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return Me(Me({},f),{},Nn({},g,b))},c),l={};return Object.keys(u).reduce(function(f,d){var h=u[d];if(h.hasStack){var m={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(v,p){var g=h.stackGroups[p];return Me(Me({},v),{},Nn({},p,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:z2(t,g.items,a)}))},m)}return Me(Me({},f),{},Nn({},d,h))},l)},EP=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,c=n||r.scale;if(c!=="auto"&&c!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var l=n2(u,a,s);return t.domain([xc(l),_r(l)]),{niceTicks:l}}if(a&&i==="number"){var f=t.domain(),d=i2(f,a,s);return{niceTicks:d}}return null};function Gn(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!se(i[t.dataKey])){var s=Lo(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=Ee(i,se(o)?t.dataKey:o);return se(c)?null:t.scale(c)}var z0=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var c=Ee(o,r.dataKey,r.domain[s]);return se(c)?null:r.scale(c)-a/2+i},U2=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},H2=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Me(Me({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(ze(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},V2=function(t){return t.reduce(function(r,n){return[xc(n.concat([r[0]]).filter(Y)),_r(n.concat([r[1]]).filter(Y))]},[1/0,-1/0])},TP=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,c=s.reduce(function(u,l){var f=V2(l.slice(r,n+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},W0=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,U0=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Qp=function(t,r,n){if(oe(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(Y(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(W0.test(t[0])){var a=+W0.exec(t[0])[1];i[0]=r[0]-a}else oe(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(Y(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(U0.test(t[1])){var o=+U0.exec(t[1])[1];i[1]=r[1]+o}else oe(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},us=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=Tv(r,function(f){return f.coordinate}),o=1/0,s=1,c=a.length;s<c;s++){var u=a[s],l=a[s-1];o=Math.min((u.coordinate||0)-(l.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},H0=function(t,r,n){return!t||!t.length||lr(t,lt(n,"type.defaultProps.domain"))?r:t},CP=function(t,r){var n=t.type.defaultProps?Me(Me({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,c=n.tooltipType,u=n.chartType,l=n.hide;return Me(Me({},te(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:em(t),value:Ee(r,i),type:c,payload:r,chartType:u,hide:l})};function xa(e){"@babel/helpers - typeof";return xa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xa(e)}function V0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function er(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?V0(Object(r),!0).forEach(function(n){jP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jP(e,t,r){return t=K2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K2(e){var t=G2(e,"string");return xa(t)=="symbol"?t:t+""}function G2(e,t){if(xa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Y2(e,t){return Q2(e)||J2(e,t)||Z2(e,t)||X2()}function X2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
18
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
19
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
10
|
+
height and width.`,D,$,o,c,l,f,r);var L=!Array.isArray(h)&&or(h.type).endsWith("Chart");return A.Children.map(h,function(B){return A.isValidElement(B)?A.cloneElement(B,lo({width:D,height:$},L?{style:lo({height:"100%",width:"100%",maxHeight:$,maxWidth:D},B.props.style)}:{})):B})},[r,h,c,d,f,l,T,o]);return A.createElement("div",{id:p?"".concat(p):void 0,className:le("recharts-responsive-container",g),style:lo(lo({},w),{},{width:o,height:c,minWidth:l,minHeight:f,maxHeight:d}),ref:y},j)}),Dr=function(t){return null};Dr.displayName="Cell";function ua(e){"@babel/helpers - typeof";return ua=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ua(e)}function jx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jx(Object(r),!0).forEach(function(n){b$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b$(e,t,r){return t=x$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x$(e){var t=w$(e,"string");return ua(t)=="symbol"?t:t+""}function w$(e,t){if(ua(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ua(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Sn={widthCache:{},cacheCount:0},S$=2e3,O$={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Ix="recharts_measurement_span";function A$(e){var t=Dp({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Yi=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Yt.isSsr)return{width:0,height:0};var n=A$(r),i=JSON.stringify({text:t,copyStyle:n});if(Sn.widthCache[i])return Sn.widthCache[i];try{var a=document.getElementById(Ix);a||(a=document.createElement("span"),a.setAttribute("id",Ix),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Dp(Dp({},O$),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),c={width:s.width,height:s.height};return Sn.widthCache[i]=c,++Sn.cacheCount>S$&&(Sn.cacheCount=0,Sn.widthCache={}),c}catch{return{width:0,height:0}}},_$=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function la(e){"@babel/helpers - typeof";return la=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},la(e)}function Yo(e,t){return C$(e)||T$(e,t)||E$(e,t)||P$()}function P$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
11
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E$(e,t){if(e){if(typeof e=="string")return kx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kx(e,t)}}function kx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function T$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function C$(e){if(Array.isArray(e))return e}function j$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rx(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,k$(n.key),n)}}function I$(e,t,r){return t&&Rx(e.prototype,t),r&&Rx(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function k$(e){var t=R$(e,"string");return la(t)=="symbol"?t:t+""}function R$(e,t){if(la(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(la(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Mx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,$x=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,M$=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,$$=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,x_={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},N$=Object.keys(x_),Cn="NaN";function D$(e,t){return e*x_[t]}var fo=(function(){function e(t,r){j$(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!M$.test(r)&&(this.num=NaN,this.unit=""),N$.includes(r)&&(this.num=D$(t,r),this.unit="px")}return I$(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=$$.exec(r))!==null&&n!==void 0?n:[],a=Yo(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])})();function w_(e){if(e.includes(Cn))return Cn;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Mx.exec(t))!==null&&r!==void 0?r:[],i=Yo(n,4),a=i[1],o=i[2],s=i[3],c=fo.parse(a??""),u=fo.parse(s??""),l=o==="*"?c.multiply(u):c.divide(u);if(l.isNaN())return Cn;t=t.replace(Mx,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,d=(f=$x.exec(t))!==null&&f!==void 0?f:[],h=Yo(d,4),m=h[1],v=h[2],p=h[3],g=fo.parse(m??""),b=fo.parse(p??""),x=v==="+"?g.add(b):g.subtract(b);if(x.isNaN())return Cn;t=t.replace($x,x.toString())}return t}var Nx=/\(([^()]*)\)/;function L$(e){for(var t=e;t.includes("(");){var r=Nx.exec(t),n=Yo(r,2),i=n[1];t=t.replace(Nx,w_(i))}return t}function B$(e){var t=e.replace(/\s+/g,"");return t=L$(t),t=w_(t),t}function q$(e){try{return B$(e)}catch{return Cn}}function id(e){var t=q$(e.slice(5,-1));return t===Cn?"":t}var F$=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],z$=["dx","dy","angle","className","breakAll"];function Lp(){return Lp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lp.apply(this,arguments)}function Dx(e,t){if(e==null)return{};var r=W$(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function W$(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Lx(e,t){return K$(e)||V$(e,t)||H$(e,t)||U$()}function U$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
12
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H$(e,t){if(e){if(typeof e=="string")return Bx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bx(e,t)}}function Bx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function V$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function K$(e){if(Array.isArray(e))return e}var S_=/[ \f\n\r\t\v\u2028\u2029]+/,O_=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];se(r)||(n?a=r.toString().split(""):a=r.toString().split(S_));var o=a.map(function(c){return{word:c,width:Yi(c,i).width}}),s=n?0:Yi(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},G$=function(t,r,n,i,a){var o=t.maxLines,s=t.children,c=t.style,u=t.breakAll,l=Y(o),f=s,d=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return D.reduce(function($,L){var B=L.word,W=L.width,I=$[$.length-1];if(I&&(i==null||a||I.width+W+n<Number(i)))I.words.push(B),I.width+=W+n;else{var F={words:[B],width:W};$.push(F)}return $},[])},h=d(r),m=function(D){return D.reduce(function($,L){return $.width>L.width?$:L})};if(!l)return h;for(var v="…",p=function(D){var $=f.slice(0,D),L=O_({breakAll:u,style:c,children:$+v}).wordsWithComputedWidth,B=d(L),W=B.length>o||m(B).width>Number(i);return[W,B]},g=0,b=f.length-1,x=0,w;g<=b&&x<=f.length-1;){var y=Math.floor((g+b)/2),S=y-1,O=p(S),P=Lx(O,2),T=P[0],k=P[1],C=p(y),j=Lx(C,1),R=j[0];if(!T&&!R&&(g=y+1),T&&R&&(b=y-1),!T&&R){w=k;break}x++}return w||h},qx=function(t){var r=se(t)?[]:t.toString().split(S_);return[{words:r}]},Y$=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!Yt.isSsr){var c,u,l=O_({breakAll:o,children:i,style:a});if(l){var f=l.wordsWithComputedWidth,d=l.spaceWidth;c=f,u=d}else return qx(i);return G$({breakAll:o,children:i,maxLines:s,style:a},c,u,r,n)}return qx(i)},Fx="#808080",cn=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,c=t.capHeight,u=c===void 0?"0.71em":c,l=t.scaleToFit,f=l===void 0?!1:l,d=t.textAnchor,h=d===void 0?"start":d,m=t.verticalAnchor,v=m===void 0?"end":m,p=t.fill,g=p===void 0?Fx:p,b=Dx(t,F$),x=A.useMemo(function(){return Y$({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:f,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,f,b.style,b.width]),w=b.dx,y=b.dy,S=b.angle,O=b.className,P=b.breakAll,T=Dx(b,z$);if(!ze(n)||!ze(a))return null;var k=n+(Y(w)?w:0),C=a+(Y(y)?y:0),j;switch(v){case"start":j=id("calc(".concat(u,")"));break;case"middle":j=id("calc(".concat((x.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:j=id("calc(".concat(x.length-1," * -").concat(s,")"));break}var R=[];if(f){var N=x[0].width,D=b.width;R.push("scale(".concat((Y(D)?D/N:1)/N,")"))}return S&&R.push("rotate(".concat(S,", ").concat(k,", ").concat(C,")")),R.length&&(T.transform=R.join(" ")),A.createElement("text",Lp({},re(T,!0),{x:k,y:C,className:le("recharts-text",O),textAnchor:h,fill:g.includes("url")?Fx:g}),x.map(function($,L){var B=$.words.join(P?"":" ");return A.createElement("tspan",{x:k,dy:L===0?j:s,key:"".concat(B,"-").concat(L)},B)}))};function Tr(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function X$(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function jv(e){let t,r,n;e.length!==2?(t=Tr,r=(s,c)=>Tr(e(s),c),n=(s,c)=>e(s)-c):(t=e===Tr||e===X$?e:Z$,r=e,n=e);function i(s,c,u=0,l=s.length){if(u<l){if(t(c,c)!==0)return l;do{const f=u+l>>>1;r(s[f],c)<0?u=f+1:l=f}while(u<l)}return u}function a(s,c,u=0,l=s.length){if(u<l){if(t(c,c)!==0)return l;do{const f=u+l>>>1;r(s[f],c)<=0?u=f+1:l=f}while(u<l)}return u}function o(s,c,u=0,l=s.length){const f=i(s,c,u,l-1);return f>u&&n(s[f-1],c)>-n(s[f],c)?f-1:f}return{left:i,center:o,right:a}}function Z$(){return 0}function A_(e){return e===null?NaN:+e}function*J$(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const Q$=jv(Tr),Ha=Q$.right;jv(A_).center;class zx extends Map{constructor(t,r=rN){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Wx(this,t))}has(t){return super.has(Wx(this,t))}set(t,r){return super.set(eN(this,t),r)}delete(t){return super.delete(tN(this,t))}}function Wx({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function eN({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function tN({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function rN(e){return e!==null&&typeof e=="object"?e.valueOf():e}function nN(e=Tr){if(e===Tr)return __;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function __(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const iN=Math.sqrt(50),aN=Math.sqrt(10),oN=Math.sqrt(2);function Xo(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=iN?10:a>=aN?5:a>=oN?2:1;let s,c,u;return i<0?(u=Math.pow(10,-i)/o,s=Math.round(e*u),c=Math.round(t*u),s/u<e&&++s,c/u>t&&--c,u=-u):(u=Math.pow(10,i)*o,s=Math.round(e/u),c=Math.round(t/u),s*u<e&&++s,c*u>t&&--c),c<s&&.5<=r&&r<2?Xo(e,t,r*2):[s,c,u]}function Bp(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?Xo(t,e,r):Xo(e,t,r);if(!(a>=i))return[];const s=a-i+1,c=new Array(s);if(n)if(o<0)for(let u=0;u<s;++u)c[u]=(a-u)/-o;else for(let u=0;u<s;++u)c[u]=(a-u)*o;else if(o<0)for(let u=0;u<s;++u)c[u]=(i+u)/-o;else for(let u=0;u<s;++u)c[u]=(i+u)*o;return c}function qp(e,t,r){return t=+t,e=+e,r=+r,Xo(e,t,r)[2]}function Fp(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?qp(t,e,r):qp(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Ux(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Hx(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function P_(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?__:nN(i);n>r;){if(n-r>600){const c=n-r+1,u=t-r+1,l=Math.log(c),f=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*f*(c-f)/c)*(u-c/2<0?-1:1),h=Math.max(r,Math.floor(t-u*f/c+d)),m=Math.min(n,Math.floor(t+(c-u)*f/c+d));P_(e,t,h,m,i)}const a=e[t];let o=r,s=n;for(Di(e,r,t),i(e[n],a)>0&&Di(e,r,n);o<s;){for(Di(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?Di(e,r,s):(++s,Di(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Di(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function sN(e,t,r){if(e=Float64Array.from(J$(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Hx(e);if(t>=1)return Ux(e);var n,i=(n-1)*t,a=Math.floor(i),o=Ux(P_(e,a).subarray(0,a+1)),s=Hx(e.subarray(a+1));return o+(s-o)*(i-a)}}function cN(e,t,r=A_){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function uN(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function St(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function gr(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 zp=Symbol("implicit");function Iv(){var e=new zx,t=[],r=[],n=zp;function i(a){let o=e.get(a);if(o===void 0){if(n!==zp)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new zx;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Iv(t,r).unknown(n)},St.apply(i,arguments),i}function fa(){var e=Iv().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,c=0,u=0,l=.5;delete e.unknown;function f(){var d=t().length,h=i<n,m=h?i:n,v=h?n:i;a=(v-m)/Math.max(1,d-c+u*2),s&&(a=Math.floor(a)),m+=(v-m-a*(d-c))*l,o=a*(1-c),s&&(m=Math.round(m),o=Math.round(o));var p=uN(d).map(function(g){return m+a*g});return r(h?p.reverse():p)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(s=!!d,f()):s},e.padding=function(d){return arguments.length?(c=Math.min(1,u=+d),f()):c},e.paddingInner=function(d){return arguments.length?(c=Math.min(1,d),f()):c},e.paddingOuter=function(d){return arguments.length?(u=+d,f()):u},e.align=function(d){return arguments.length?(l=Math.max(0,Math.min(1,d)),f()):l},e.copy=function(){return fa(t(),[n,i]).round(s).paddingInner(c).paddingOuter(u).align(l)},St.apply(f(),arguments)}function E_(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return E_(t())},e}function Xi(){return E_(fa.apply(null,arguments).paddingInner(1))}function kv(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function T_(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Va(){}var da=.7,Zo=1/da,$n="\\s*([+-]?\\d+)\\s*",pa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ft="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",lN=/^#([0-9a-f]{3,8})$/,fN=new RegExp(`^rgb\\(${$n},${$n},${$n}\\)$`),dN=new RegExp(`^rgb\\(${Ft},${Ft},${Ft}\\)$`),pN=new RegExp(`^rgba\\(${$n},${$n},${$n},${pa}\\)$`),hN=new RegExp(`^rgba\\(${Ft},${Ft},${Ft},${pa}\\)$`),vN=new RegExp(`^hsl\\(${pa},${Ft},${Ft}\\)$`),mN=new RegExp(`^hsla\\(${pa},${Ft},${Ft},${pa}\\)$`),Vx={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};kv(Va,ha,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Kx,formatHex:Kx,formatHex8:yN,formatHsl:gN,formatRgb:Gx,toString:Gx});function Kx(){return this.rgb().formatHex()}function yN(){return this.rgb().formatHex8()}function gN(){return C_(this).formatHsl()}function Gx(){return this.rgb().formatRgb()}function ha(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=lN.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Yx(t):r===3?new rt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?po(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?po(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=fN.exec(e))?new rt(t[1],t[2],t[3],1):(t=dN.exec(e))?new rt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=pN.exec(e))?po(t[1],t[2],t[3],t[4]):(t=hN.exec(e))?po(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=vN.exec(e))?Jx(t[1],t[2]/100,t[3]/100,1):(t=mN.exec(e))?Jx(t[1],t[2]/100,t[3]/100,t[4]):Vx.hasOwnProperty(e)?Yx(Vx[e]):e==="transparent"?new rt(NaN,NaN,NaN,0):null}function Yx(e){return new rt(e>>16&255,e>>8&255,e&255,1)}function po(e,t,r,n){return n<=0&&(e=t=r=NaN),new rt(e,t,r,n)}function bN(e){return e instanceof Va||(e=ha(e)),e?(e=e.rgb(),new rt(e.r,e.g,e.b,e.opacity)):new rt}function Wp(e,t,r,n){return arguments.length===1?bN(e):new rt(e,t,r,n??1)}function rt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}kv(rt,Wp,T_(Va,{brighter(e){return e=e==null?Zo:Math.pow(Zo,e),new rt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?da:Math.pow(da,e),new rt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new rt(an(this.r),an(this.g),an(this.b),Jo(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:Xx,formatHex:Xx,formatHex8:xN,formatRgb:Zx,toString:Zx}));function Xx(){return`#${en(this.r)}${en(this.g)}${en(this.b)}`}function xN(){return`#${en(this.r)}${en(this.g)}${en(this.b)}${en((isNaN(this.opacity)?1:this.opacity)*255)}`}function Zx(){const e=Jo(this.opacity);return`${e===1?"rgb(":"rgba("}${an(this.r)}, ${an(this.g)}, ${an(this.b)}${e===1?")":`, ${e})`}`}function Jo(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function an(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function en(e){return e=an(e),(e<16?"0":"")+e.toString(16)}function Jx(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Et(e,t,r,n)}function C_(e){if(e instanceof Et)return new Et(e.h,e.s,e.l,e.opacity);if(e instanceof Va||(e=ha(e)),!e)return new Et;if(e instanceof Et)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,c=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new Et(o,s,c,e.opacity)}function wN(e,t,r,n){return arguments.length===1?C_(e):new Et(e,t,r,n??1)}function Et(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}kv(Et,wN,T_(Va,{brighter(e){return e=e==null?Zo:Math.pow(Zo,e),new Et(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?da:Math.pow(da,e),new Et(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new rt(ad(e>=240?e-240:e+120,i,n),ad(e,i,n),ad(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Et(Qx(this.h),ho(this.s),ho(this.l),Jo(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=Jo(this.opacity);return`${e===1?"hsl(":"hsla("}${Qx(this.h)}, ${ho(this.s)*100}%, ${ho(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Qx(e){return e=(e||0)%360,e<0?e+360:e}function ho(e){return Math.max(0,Math.min(1,e||0))}function ad(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Rv=e=>()=>e;function SN(e,t){return function(r){return e+r*t}}function ON(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function AN(e){return(e=+e)==1?j_:function(t,r){return r-t?ON(t,r,e):Rv(isNaN(t)?r:t)}}function j_(e,t){var r=t-e;return r?SN(e,r):Rv(isNaN(e)?t:e)}const e0=(function e(t){var r=AN(t);function n(i,a){var o=r((i=Wp(i)).r,(a=Wp(a)).r),s=r(i.g,a.g),c=r(i.b,a.b),u=j_(i.opacity,a.opacity);return function(l){return i.r=o(l),i.g=s(l),i.b=c(l),i.opacity=u(l),i+""}}return n.gamma=e,n})(1);function _N(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function PN(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function EN(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=Si(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function TN(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Qo(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function CN(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Si(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Up=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,od=new RegExp(Up.source,"g");function jN(e){return function(){return e}}function IN(e){return function(t){return e(t)+""}}function kN(e,t){var r=Up.lastIndex=od.lastIndex=0,n,i,a,o=-1,s=[],c=[];for(e=e+"",t=t+"";(n=Up.exec(e))&&(i=od.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:Qo(n,i)})),r=od.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?IN(c[0].x):jN(t):(t=c.length,function(u){for(var l=0,f;l<t;++l)s[(f=c[l]).i]=f.x(u);return s.join("")})}function Si(e,t){var r=typeof t,n;return t==null||r==="boolean"?Rv(t):(r==="number"?Qo:r==="string"?(n=ha(t))?(t=n,e0):kN:t instanceof ha?e0:t instanceof Date?TN:PN(t)?_N:Array.isArray(t)?EN:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?CN:Qo)(e,t)}function Mv(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function RN(e,t){t===void 0&&(t=e,e=Si);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}function MN(e){return function(){return e}}function es(e){return+e}var t0=[0,1];function et(e){return e}function Hp(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:MN(isNaN(t)?NaN:.5)}function $N(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function NN(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Hp(i,n),a=r(o,a)):(n=Hp(n,i),a=r(a,o)),function(s){return a(n(s))}}function DN(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=Hp(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var c=Ha(e,s,1,n)-1;return a[c](i[c](s))}}function Ka(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function pc(){var e=t0,t=t0,r=Si,n,i,a,o=et,s,c,u;function l(){var d=Math.min(e.length,t.length);return o!==et&&(o=$N(e[0],e[d-1])),s=d>2?DN:NN,c=u=null,f}function f(d){return d==null||isNaN(d=+d)?a:(c||(c=s(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((u||(u=s(t,e.map(n),Qo)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,es),l()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),l()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=Mv,l()},f.clamp=function(d){return arguments.length?(o=d?!0:et,l()):o!==et},f.interpolate=function(d){return arguments.length?(r=d,l()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,h){return n=d,i=h,l()}}function $v(){return pc()(et,et)}function LN(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ts(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Un(e){return e=ts(Math.abs(e)),e?e[1]:NaN}function BN(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>n&&(s=Math.max(1,n-c)),a.push(r.substring(i-=s,i+s)),!((c+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function qN(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var FN=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function va(e){if(!(t=FN.exec(e)))throw new Error("invalid format: "+e);var t;return new Nv({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]})}va.prototype=Nv.prototype;function Nv(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+""}Nv.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 zN(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var I_;function WN(e,t){var r=ts(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(I_=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+ts(e,Math.max(0,t+a-1))[0]}function r0(e,t){var r=ts(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const n0={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:LN,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)=>r0(e*100,t),r:r0,s:WN,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function i0(e){return e}var a0=Array.prototype.map,o0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function UN(e){var t=e.grouping===void 0||e.thousands===void 0?i0:BN(a0.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?i0:qN(a0.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function u(f){f=va(f);var d=f.fill,h=f.align,m=f.sign,v=f.symbol,p=f.zero,g=f.width,b=f.comma,x=f.precision,w=f.trim,y=f.type;y==="n"?(b=!0,y="g"):n0[y]||(x===void 0&&(x=12),w=!0,y="g"),(p||d==="0"&&h==="=")&&(p=!0,d="0",h="=");var S=v==="$"?r:v==="#"&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",O=v==="$"?n:/[%p]/.test(y)?o:"",P=n0[y],T=/[defgprs%]/.test(y);x=x===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function k(C){var j=S,R=O,N,D,$;if(y==="c")R=P(C)+R,C="";else{C=+C;var L=C<0||1/C<0;if(C=isNaN(C)?c:P(Math.abs(C),x),w&&(C=zN(C)),L&&+C==0&&m!=="+"&&(L=!1),j=(L?m==="("?m:s:m==="-"||m==="("?"":m)+j,R=(y==="s"?o0[8+I_/3]:"")+R+(L&&m==="("?")":""),T){for(N=-1,D=C.length;++N<D;)if($=C.charCodeAt(N),48>$||$>57){R=($===46?i+C.slice(N+1):C.slice(N))+R,C=C.slice(0,N);break}}}b&&!p&&(C=t(C,1/0));var B=j.length+C.length+R.length,W=B<g?new Array(g-B+1).join(d):"";switch(b&&p&&(C=t(W+C,W.length?g-R.length:1/0),W=""),h){case"<":C=j+C+R+W;break;case"=":C=j+W+C+R;break;case"^":C=W.slice(0,B=W.length>>1)+j+C+R+W.slice(B);break;default:C=W+j+C+R;break}return a(C)}return k.toString=function(){return f+""},k}function l(f,d){var h=u((f=va(f),f.type="f",f)),m=Math.max(-8,Math.min(8,Math.floor(Un(d)/3)))*3,v=Math.pow(10,-m),p=o0[8+m/3];return function(g){return h(v*g)+p}}return{format:u,formatPrefix:l}}var vo,Dv,k_;HN({thousands:",",grouping:[3],currency:["$",""]});function HN(e){return vo=UN(e),Dv=vo.format,k_=vo.formatPrefix,vo}function VN(e){return Math.max(0,-Un(Math.abs(e)))}function KN(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Un(t)/3)))*3-Un(Math.abs(e)))}function GN(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Un(t)-Un(e))+1}function R_(e,t,r,n){var i=Fp(e,t,r),a;switch(n=va(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=KN(i,o))&&(n.precision=a),k_(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=GN(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=VN(i))&&(n.precision=a-(n.type==="%")*2);break}}return Dv(n)}function Lr(e){var t=e.domain;return e.ticks=function(r){var n=t();return Bp(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return R_(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],c,u,l=10;for(s<o&&(u=o,o=s,s=u,u=i,i=a,a=u);l-- >0;){if(u=qp(o,s,r),u===c)return n[i]=o,n[a]=s,t(n);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;c=u}return e},e}function rs(){var e=$v();return e.copy=function(){return Ka(e,rs())},St.apply(e,arguments),Lr(e)}function M_(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,es),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return M_(e).unknown(t)},e=arguments.length?Array.from(e,es):[0,1],Lr(r)}function $_(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function s0(e){return Math.log(e)}function c0(e){return Math.exp(e)}function YN(e){return-Math.log(-e)}function XN(e){return-Math.exp(-e)}function ZN(e){return isFinite(e)?+("1e"+e):e<0?0:e}function JN(e){return e===10?ZN:e===Math.E?Math.exp:t=>Math.pow(e,t)}function QN(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 u0(e){return(t,r)=>-e(-t,r)}function Lv(e){const t=e(s0,c0),r=t.domain;let n=10,i,a;function o(){return i=QN(n),a=JN(n),r()[0]<0?(i=u0(i),a=u0(a),e(YN,XN)):e(s0,c0),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const c=r();let u=c[0],l=c[c.length-1];const f=l<u;f&&([u,l]=[l,u]);let d=i(u),h=i(l),m,v;const p=s==null?10:+s;let g=[];if(!(n%1)&&h-d<p){if(d=Math.floor(d),h=Math.ceil(h),u>0){for(;d<=h;++d)for(m=1;m<n;++m)if(v=d<0?m/a(-d):m*a(d),!(v<u)){if(v>l)break;g.push(v)}}else for(;d<=h;++d)for(m=n-1;m>=1;--m)if(v=d>0?m/a(-d):m*a(d),!(v<u)){if(v>l)break;g.push(v)}g.length*2<p&&(g=Bp(u,l,p))}else g=Bp(d,h,Math.min(h-d,p)).map(a);return f?g.reverse():g},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=va(c)).precision==null&&(c.trim=!0),c=Dv(c)),s===1/0)return c;const u=Math.max(1,n*s/t.ticks().length);return l=>{let f=l/a(Math.round(i(l)));return f*n<n-.5&&(f*=n),f<=u?c(l):""}},t.nice=()=>r($_(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function N_(){const e=Lv(pc()).domain([1,10]);return e.copy=()=>Ka(e,N_()).base(e.base()),St.apply(e,arguments),e}function l0(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function f0(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Bv(e){var t=1,r=e(l0(t),f0(t));return r.constant=function(n){return arguments.length?e(l0(t=+n),f0(t)):t},Lr(r)}function D_(){var e=Bv(pc());return e.copy=function(){return Ka(e,D_()).constant(e.constant())},St.apply(e,arguments)}function d0(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function eD(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function tD(e){return e<0?-e*e:e*e}function qv(e){var t=e(et,et),r=1;function n(){return r===1?e(et,et):r===.5?e(eD,tD):e(d0(r),d0(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Lr(t)}function Fv(){var e=qv(pc());return e.copy=function(){return Ka(e,Fv()).exponent(e.exponent())},St.apply(e,arguments),e}function rD(){return Fv.apply(null,arguments).exponent(.5)}function p0(e){return Math.sign(e)*e*e}function nD(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function L_(){var e=$v(),t=[0,1],r=!1,n;function i(a){var o=nD(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(p0(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,es)).map(p0)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return L_(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},St.apply(i,arguments),Lr(i)}function B_(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=cN(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Ha(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Tr),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return B_().domain(e).range(t).unknown(n)},St.apply(a,arguments)}function q_(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(c){return c!=null&&c<=c?i[Ha(n,c,0,r)]:a}function s(){var c=-1;for(n=new Array(r);++c<r;)n[c]=((c+1)*t-(c-r)*e)/(r+1);return o}return o.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,s()):[e,t]},o.range=function(c){return arguments.length?(r=(i=Array.from(c)).length-1,s()):i.slice()},o.invertExtent=function(c){var u=i.indexOf(c);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(c){return arguments.length&&(a=c),o},o.thresholds=function(){return n.slice()},o.copy=function(){return q_().domain([e,t]).range(i).unknown(a)},St.apply(Lr(o),arguments)}function F_(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Ha(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return F_().domain(e).range(t).unknown(r)},St.apply(i,arguments)}const sd=new Date,cd=new Date;function We(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const c=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return c;let u;do c.push(u=new Date(+a)),t(a,s),e(a);while(u<a&&a<o);return c},i.filter=a=>We(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(sd.setTime(+a),cd.setTime(+o),e(sd),e(cd),Math.floor(r(sd,cd))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const ns=We(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ns.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?We(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ns);ns.range;const nr=1e3,gt=nr*60,ir=gt*60,cr=ir*24,zv=cr*7,h0=cr*30,ud=cr*365,tn=We(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*nr)},(e,t)=>(t-e)/nr,e=>e.getUTCSeconds());tn.range;const Wv=We(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*nr)},(e,t)=>{e.setTime(+e+t*gt)},(e,t)=>(t-e)/gt,e=>e.getMinutes());Wv.range;const Uv=We(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*gt)},(e,t)=>(t-e)/gt,e=>e.getUTCMinutes());Uv.range;const Hv=We(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*nr-e.getMinutes()*gt)},(e,t)=>{e.setTime(+e+t*ir)},(e,t)=>(t-e)/ir,e=>e.getHours());Hv.range;const Vv=We(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ir)},(e,t)=>(t-e)/ir,e=>e.getUTCHours());Vv.range;const Ga=We(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*gt)/cr,e=>e.getDate()-1);Ga.range;const hc=We(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/cr,e=>e.getUTCDate()-1);hc.range;const z_=We(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/cr,e=>Math.floor(e/cr));z_.range;function yn(e){return We(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*gt)/zv)}const vc=yn(0),is=yn(1),iD=yn(2),aD=yn(3),Hn=yn(4),oD=yn(5),sD=yn(6);vc.range;is.range;iD.range;aD.range;Hn.range;oD.range;sD.range;function gn(e){return We(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/zv)}const mc=gn(0),as=gn(1),cD=gn(2),uD=gn(3),Vn=gn(4),lD=gn(5),fD=gn(6);mc.range;as.range;cD.range;uD.range;Vn.range;lD.range;fD.range;const Kv=We(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());Kv.range;const Gv=We(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());Gv.range;const ur=We(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());ur.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:We(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});ur.range;const lr=We(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());lr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:We(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});lr.range;function W_(e,t,r,n,i,a){const o=[[tn,1,nr],[tn,5,5*nr],[tn,15,15*nr],[tn,30,30*nr],[a,1,gt],[a,5,5*gt],[a,15,15*gt],[a,30,30*gt],[i,1,ir],[i,3,3*ir],[i,6,6*ir],[i,12,12*ir],[n,1,cr],[n,2,2*cr],[r,1,zv],[t,1,h0],[t,3,3*h0],[e,1,ud]];function s(u,l,f){const d=l<u;d&&([u,l]=[l,u]);const h=f&&typeof f.range=="function"?f:c(u,l,f),m=h?h.range(u,+l+1):[];return d?m.reverse():m}function c(u,l,f){const d=Math.abs(l-u)/f,h=jv(([,,p])=>p).right(o,d);if(h===o.length)return e.every(Fp(u/ud,l/ud,f));if(h===0)return ns.every(Math.max(Fp(u,l,f),1));const[m,v]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return m.every(v)}return[s,c]}const[dD,pD]=W_(lr,Gv,mc,z_,Vv,Uv),[hD,vD]=W_(ur,Kv,vc,Ga,Hv,Wv);function ld(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 fd(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 Li(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function mD(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,u=Bi(i),l=qi(i),f=Bi(a),d=qi(a),h=Bi(o),m=qi(o),v=Bi(s),p=qi(s),g=Bi(c),b=qi(c),x={a:L,A:B,b:W,B:I,c:null,d:x0,e:x0,f:BD,g:YD,G:ZD,H:ND,I:DD,j:LD,L:U_,m:qD,M:FD,p:F,q:U,Q:O0,s:A0,S:zD,u:WD,U:UD,V:HD,w:VD,W:KD,x:null,X:null,y:GD,Y:XD,Z:JD,"%":S0},w={a:G,A:Z,b:J,B:Q,c:null,d:w0,e:w0,f:rL,g:dL,G:hL,H:QD,I:eL,j:tL,L:V_,m:nL,M:iL,p:K,q:ee,Q:O0,s:A0,S:aL,u:oL,U:sL,V:cL,w:uL,W:lL,x:null,X:null,y:fL,Y:pL,Z:vL,"%":S0},y={a:k,A:C,b:j,B:R,c:N,d:g0,e:g0,f:kD,g:y0,G:m0,H:b0,I:b0,j:TD,L:ID,m:ED,M:CD,p:T,q:PD,Q:MD,s:$D,S:jD,u:wD,U:SD,V:OD,w:xD,W:AD,x:D,X:$,y:y0,Y:m0,Z:_D,"%":RD};x.x=S(r,x),x.X=S(n,x),x.c=S(t,x),w.x=S(r,w),w.X=S(n,w),w.c=S(t,w);function S(q,H){return function(X){var M=[],ce=-1,V=0,ye=q.length,Ae,$e,br;for(X instanceof Date||(X=new Date(+X));++ce<ye;)q.charCodeAt(ce)===37&&(M.push(q.slice(V,ce)),($e=v0[Ae=q.charAt(++ce)])!=null?Ae=q.charAt(++ce):$e=Ae==="e"?" ":"0",(br=H[Ae])&&(Ae=br(X,$e)),M.push(Ae),V=ce+1);return M.push(q.slice(V,ce)),M.join("")}}function O(q,H){return function(X){var M=Li(1900,void 0,1),ce=P(M,q,X+="",0),V,ye;if(ce!=X.length)return null;if("Q"in M)return new Date(M.Q);if("s"in M)return new Date(M.s*1e3+("L"in M?M.L:0));if(H&&!("Z"in M)&&(M.Z=0),"p"in M&&(M.H=M.H%12+M.p*12),M.m===void 0&&(M.m="q"in M?M.q:0),"V"in M){if(M.V<1||M.V>53)return null;"w"in M||(M.w=1),"Z"in M?(V=fd(Li(M.y,0,1)),ye=V.getUTCDay(),V=ye>4||ye===0?as.ceil(V):as(V),V=hc.offset(V,(M.V-1)*7),M.y=V.getUTCFullYear(),M.m=V.getUTCMonth(),M.d=V.getUTCDate()+(M.w+6)%7):(V=ld(Li(M.y,0,1)),ye=V.getDay(),V=ye>4||ye===0?is.ceil(V):is(V),V=Ga.offset(V,(M.V-1)*7),M.y=V.getFullYear(),M.m=V.getMonth(),M.d=V.getDate()+(M.w+6)%7)}else("W"in M||"U"in M)&&("w"in M||(M.w="u"in M?M.u%7:"W"in M?1:0),ye="Z"in M?fd(Li(M.y,0,1)).getUTCDay():ld(Li(M.y,0,1)).getDay(),M.m=0,M.d="W"in M?(M.w+6)%7+M.W*7-(ye+5)%7:M.w+M.U*7-(ye+6)%7);return"Z"in M?(M.H+=M.Z/100|0,M.M+=M.Z%100,fd(M)):ld(M)}}function P(q,H,X,M){for(var ce=0,V=H.length,ye=X.length,Ae,$e;ce<V;){if(M>=ye)return-1;if(Ae=H.charCodeAt(ce++),Ae===37){if(Ae=H.charAt(ce++),$e=y[Ae in v0?H.charAt(ce++):Ae],!$e||(M=$e(q,X,M))<0)return-1}else if(Ae!=X.charCodeAt(M++))return-1}return M}function T(q,H,X){var M=u.exec(H.slice(X));return M?(q.p=l.get(M[0].toLowerCase()),X+M[0].length):-1}function k(q,H,X){var M=h.exec(H.slice(X));return M?(q.w=m.get(M[0].toLowerCase()),X+M[0].length):-1}function C(q,H,X){var M=f.exec(H.slice(X));return M?(q.w=d.get(M[0].toLowerCase()),X+M[0].length):-1}function j(q,H,X){var M=g.exec(H.slice(X));return M?(q.m=b.get(M[0].toLowerCase()),X+M[0].length):-1}function R(q,H,X){var M=v.exec(H.slice(X));return M?(q.m=p.get(M[0].toLowerCase()),X+M[0].length):-1}function N(q,H,X){return P(q,t,H,X)}function D(q,H,X){return P(q,r,H,X)}function $(q,H,X){return P(q,n,H,X)}function L(q){return o[q.getDay()]}function B(q){return a[q.getDay()]}function W(q){return c[q.getMonth()]}function I(q){return s[q.getMonth()]}function F(q){return i[+(q.getHours()>=12)]}function U(q){return 1+~~(q.getMonth()/3)}function G(q){return o[q.getUTCDay()]}function Z(q){return a[q.getUTCDay()]}function J(q){return c[q.getUTCMonth()]}function Q(q){return s[q.getUTCMonth()]}function K(q){return i[+(q.getUTCHours()>=12)]}function ee(q){return 1+~~(q.getUTCMonth()/3)}return{format:function(q){var H=S(q+="",x);return H.toString=function(){return q},H},parse:function(q){var H=O(q+="",!1);return H.toString=function(){return q},H},utcFormat:function(q){var H=S(q+="",w);return H.toString=function(){return q},H},utcParse:function(q){var H=O(q+="",!0);return H.toString=function(){return q},H}}}var v0={"-":"",_:" ",0:"0"},Ve=/^\s*\d+/,yD=/^%/,gD=/[\\^$*+?|[\]().{}]/g;function ve(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function bD(e){return e.replace(gD,"\\$&")}function Bi(e){return new RegExp("^(?:"+e.map(bD).join("|")+")","i")}function qi(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function xD(e,t,r){var n=Ve.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function wD(e,t,r){var n=Ve.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function SD(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function OD(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function AD(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function m0(e,t,r){var n=Ve.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function y0(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function _D(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function PD(e,t,r){var n=Ve.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function ED(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function g0(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function TD(e,t,r){var n=Ve.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function b0(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function CD(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function jD(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function ID(e,t,r){var n=Ve.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function kD(e,t,r){var n=Ve.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function RD(e,t,r){var n=yD.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function MD(e,t,r){var n=Ve.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function $D(e,t,r){var n=Ve.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function x0(e,t){return ve(e.getDate(),t,2)}function ND(e,t){return ve(e.getHours(),t,2)}function DD(e,t){return ve(e.getHours()%12||12,t,2)}function LD(e,t){return ve(1+Ga.count(ur(e),e),t,3)}function U_(e,t){return ve(e.getMilliseconds(),t,3)}function BD(e,t){return U_(e,t)+"000"}function qD(e,t){return ve(e.getMonth()+1,t,2)}function FD(e,t){return ve(e.getMinutes(),t,2)}function zD(e,t){return ve(e.getSeconds(),t,2)}function WD(e){var t=e.getDay();return t===0?7:t}function UD(e,t){return ve(vc.count(ur(e)-1,e),t,2)}function H_(e){var t=e.getDay();return t>=4||t===0?Hn(e):Hn.ceil(e)}function HD(e,t){return e=H_(e),ve(Hn.count(ur(e),e)+(ur(e).getDay()===4),t,2)}function VD(e){return e.getDay()}function KD(e,t){return ve(is.count(ur(e)-1,e),t,2)}function GD(e,t){return ve(e.getFullYear()%100,t,2)}function YD(e,t){return e=H_(e),ve(e.getFullYear()%100,t,2)}function XD(e,t){return ve(e.getFullYear()%1e4,t,4)}function ZD(e,t){var r=e.getDay();return e=r>=4||r===0?Hn(e):Hn.ceil(e),ve(e.getFullYear()%1e4,t,4)}function JD(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ve(t/60|0,"0",2)+ve(t%60,"0",2)}function w0(e,t){return ve(e.getUTCDate(),t,2)}function QD(e,t){return ve(e.getUTCHours(),t,2)}function eL(e,t){return ve(e.getUTCHours()%12||12,t,2)}function tL(e,t){return ve(1+hc.count(lr(e),e),t,3)}function V_(e,t){return ve(e.getUTCMilliseconds(),t,3)}function rL(e,t){return V_(e,t)+"000"}function nL(e,t){return ve(e.getUTCMonth()+1,t,2)}function iL(e,t){return ve(e.getUTCMinutes(),t,2)}function aL(e,t){return ve(e.getUTCSeconds(),t,2)}function oL(e){var t=e.getUTCDay();return t===0?7:t}function sL(e,t){return ve(mc.count(lr(e)-1,e),t,2)}function K_(e){var t=e.getUTCDay();return t>=4||t===0?Vn(e):Vn.ceil(e)}function cL(e,t){return e=K_(e),ve(Vn.count(lr(e),e)+(lr(e).getUTCDay()===4),t,2)}function uL(e){return e.getUTCDay()}function lL(e,t){return ve(as.count(lr(e)-1,e),t,2)}function fL(e,t){return ve(e.getUTCFullYear()%100,t,2)}function dL(e,t){return e=K_(e),ve(e.getUTCFullYear()%100,t,2)}function pL(e,t){return ve(e.getUTCFullYear()%1e4,t,4)}function hL(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Vn(e):Vn.ceil(e),ve(e.getUTCFullYear()%1e4,t,4)}function vL(){return"+0000"}function S0(){return"%"}function O0(e){return+e}function A0(e){return Math.floor(+e/1e3)}var On,G_,Y_;mL({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 mL(e){return On=mD(e),G_=On.format,On.parse,Y_=On.utcFormat,On.utcParse,On}function yL(e){return new Date(e)}function gL(e){return e instanceof Date?+e:+new Date(+e)}function Yv(e,t,r,n,i,a,o,s,c,u){var l=$v(),f=l.invert,d=l.domain,h=u(".%L"),m=u(":%S"),v=u("%I:%M"),p=u("%I %p"),g=u("%a %d"),b=u("%b %d"),x=u("%B"),w=u("%Y");function y(S){return(c(S)<S?h:s(S)<S?m:o(S)<S?v:a(S)<S?p:n(S)<S?i(S)<S?g:b:r(S)<S?x:w)(S)}return l.invert=function(S){return new Date(f(S))},l.domain=function(S){return arguments.length?d(Array.from(S,gL)):d().map(yL)},l.ticks=function(S){var O=d();return e(O[0],O[O.length-1],S??10)},l.tickFormat=function(S,O){return O==null?y:u(O)},l.nice=function(S){var O=d();return(!S||typeof S.range!="function")&&(S=t(O[0],O[O.length-1],S??10)),S?d($_(O,S)):l},l.copy=function(){return Ka(l,Yv(e,t,r,n,i,a,o,s,c,u))},l}function bL(){return St.apply(Yv(hD,vD,ur,Kv,vc,Ga,Hv,Wv,tn,G_).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function xL(){return St.apply(Yv(dD,pD,lr,Gv,mc,hc,Vv,Uv,tn,Y_).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function yc(){var e=0,t=1,r,n,i,a,o=et,s=!1,c;function u(f){return f==null||isNaN(f=+f)?c:o(i===0?.5:(f=(a(f)-r)*i,s?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(f){return arguments.length?(s=!!f,u):s},u.interpolator=function(f){return arguments.length?(o=f,u):o};function l(f){return function(d){var h,m;return arguments.length?([h,m]=d,o=f(h,m),u):[o(0),o(1)]}}return u.range=l(Si),u.rangeRound=l(Mv),u.unknown=function(f){return arguments.length?(c=f,u):c},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),u}}function Br(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function X_(){var e=Lr(yc()(et));return e.copy=function(){return Br(e,X_())},gr.apply(e,arguments)}function Z_(){var e=Lv(yc()).domain([1,10]);return e.copy=function(){return Br(e,Z_()).base(e.base())},gr.apply(e,arguments)}function J_(){var e=Bv(yc());return e.copy=function(){return Br(e,J_()).constant(e.constant())},gr.apply(e,arguments)}function Xv(){var e=qv(yc());return e.copy=function(){return Br(e,Xv()).exponent(e.exponent())},gr.apply(e,arguments)}function wL(){return Xv.apply(null,arguments).exponent(.5)}function Q_(){var e=[],t=et;function r(n){if(n!=null&&!isNaN(n=+n))return t((Ha(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Tr),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>sN(e,a/n))},r.copy=function(){return Q_(t).domain(e)},gr.apply(r,arguments)}function gc(){var e=0,t=.5,r=1,n=1,i,a,o,s,c,u=et,l,f=!1,d;function h(v){return isNaN(v=+v)?d:(v=.5+((v=+l(v))-a)*(n*v<n*a?s:c),u(f?Math.max(0,Math.min(1,v)):v))}h.domain=function(v){return arguments.length?([e,t,r]=v,i=l(e=+e),a=l(t=+t),o=l(r=+r),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,h):[e,t,r]},h.clamp=function(v){return arguments.length?(f=!!v,h):f},h.interpolator=function(v){return arguments.length?(u=v,h):u};function m(v){return function(p){var g,b,x;return arguments.length?([g,b,x]=p,u=RN(v,[g,b,x]),h):[u(0),u(.5),u(1)]}}return h.range=m(Si),h.rangeRound=m(Mv),h.unknown=function(v){return arguments.length?(d=v,h):d},function(v){return l=v,i=v(e),a=v(t),o=v(r),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,h}}function eP(){var e=Lr(gc()(et));return e.copy=function(){return Br(e,eP())},gr.apply(e,arguments)}function tP(){var e=Lv(gc()).domain([.1,1,10]);return e.copy=function(){return Br(e,tP()).base(e.base())},gr.apply(e,arguments)}function rP(){var e=Bv(gc());return e.copy=function(){return Br(e,rP()).constant(e.constant())},gr.apply(e,arguments)}function Zv(){var e=qv(gc());return e.copy=function(){return Br(e,Zv()).exponent(e.exponent())},gr.apply(e,arguments)}function SL(){return Zv.apply(null,arguments).exponent(.5)}const _0=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:fa,scaleDiverging:eP,scaleDivergingLog:tP,scaleDivergingPow:Zv,scaleDivergingSqrt:SL,scaleDivergingSymlog:rP,scaleIdentity:M_,scaleImplicit:zp,scaleLinear:rs,scaleLog:N_,scaleOrdinal:Iv,scalePoint:Xi,scalePow:Fv,scaleQuantile:B_,scaleQuantize:q_,scaleRadial:L_,scaleSequential:X_,scaleSequentialLog:Z_,scaleSequentialPow:Xv,scaleSequentialQuantile:Q_,scaleSequentialSqrt:wL,scaleSequentialSymlog:J_,scaleSqrt:rD,scaleSymlog:D_,scaleThreshold:F_,scaleTime:bL,scaleUtc:xL,tickFormat:R_},Symbol.toStringTag,{value:"Module"}));var dd,P0;function bc(){if(P0)return dd;P0=1;var e=gi();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var s=r[a],c=n(s);if(c!=null&&(u===void 0?c===c&&!e(c):i(c,u)))var u=c,l=s}return l}return dd=t,dd}var pd,E0;function nP(){if(E0)return pd;E0=1;function e(t,r){return t>r}return pd=e,pd}var hd,T0;function OL(){if(T0)return hd;T0=1;var e=bc(),t=nP(),r=wi();function n(i){return i&&i.length?e(i,r,t):void 0}return hd=n,hd}var AL=OL();const _r=Oe(AL);var vd,C0;function iP(){if(C0)return vd;C0=1;function e(t,r){return t<r}return vd=e,vd}var md,j0;function _L(){if(j0)return md;j0=1;var e=bc(),t=iP(),r=wi();function n(i){return i&&i.length?e(i,r,t):void 0}return md=n,md}var PL=_L();const xc=Oe(PL);var yd,I0;function EL(){if(I0)return yd;I0=1;var e=hv(),t=Gt(),r=d_(),n=it();function i(a,o){var s=n(a)?e:r;return s(a,t(o,3))}return yd=i,yd}var gd,k0;function TL(){if(k0)return gd;k0=1;var e=l_(),t=EL();function r(n,i){return e(t(n,i),1)}return gd=r,gd}var CL=TL();const jL=Oe(CL);var bd,R0;function IL(){if(R0)return bd;R0=1;var e=Pv();function t(r,n){return e(r,n)}return bd=t,bd}var kL=IL();const fr=Oe(kL);var Oi=1e9,RL={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Qv,ke=!0,wt="[DecimalError] ",on=wt+"Invalid argument: ",Jv=wt+"Exponent out of range: ",Ai=Math.floor,Zr=Math.pow,ML=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ut,Ue=1e7,Ie=7,aP=9007199254740991,os=Ai(aP/Ie),ie={};ie.absoluteValue=ie.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ie.comparedTo=ie.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};ie.decimalPlaces=ie.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Ie;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};ie.dividedBy=ie.div=function(e){return sr(this,new this.constructor(e))};ie.dividedToIntegerBy=ie.idiv=function(e){var t=this,r=t.constructor;return Te(sr(t,new r(e),0,1),r.precision)};ie.equals=ie.eq=function(e){return!this.cmp(e)};ie.exponent=function(){return Le(this)};ie.greaterThan=ie.gt=function(e){return this.cmp(e)>0};ie.greaterThanOrEqualTo=ie.gte=function(e){return this.cmp(e)>=0};ie.isInteger=ie.isint=function(){return this.e>this.d.length-2};ie.isNegative=ie.isneg=function(){return this.s<0};ie.isPositive=ie.ispos=function(){return this.s>0};ie.isZero=function(){return this.s===0};ie.lessThan=ie.lt=function(e){return this.cmp(e)<0};ie.lessThanOrEqualTo=ie.lte=function(e){return this.cmp(e)<1};ie.logarithm=ie.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(ut))throw Error(wt+"NaN");if(r.s<1)throw Error(wt+(r.s?"NaN":"-Infinity"));return r.eq(ut)?new n(0):(ke=!1,t=sr(ma(r,a),ma(e,a),a),ke=!0,Te(t,i))};ie.minus=ie.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?cP(t,e):oP(t,(e.s=-e.s,e))};ie.modulo=ie.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(wt+"NaN");return r.s?(ke=!1,t=sr(r,e,0,1).times(e),ke=!0,r.minus(t)):Te(new n(r),i)};ie.naturalExponential=ie.exp=function(){return sP(this)};ie.naturalLogarithm=ie.ln=function(){return ma(this)};ie.negated=ie.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ie.plus=ie.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?oP(t,e):cP(t,(e.s=-e.s,e))};ie.precision=ie.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(on+e);if(t=Le(i)+1,n=i.d.length-1,r=n*Ie+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};ie.squareRoot=ie.sqrt=function(){var e,t,r,n,i,a,o,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(wt+"NaN")}for(e=Le(s),ke=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Lt(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ai((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t)):n=new c(i.toString()),r=c.precision,i=o=r+3;;)if(a=n,n=a.plus(sr(s,a,o+2)).times(.5),Lt(a.d).slice(0,o)===(t=Lt(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Te(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return ke=!0,Te(n,r)};ie.times=ie.mul=function(e){var t,r,n,i,a,o,s,c,u,l=this,f=l.constructor,d=l.d,h=(e=new f(e)).d;if(!l.s||!e.s)return new f(0);for(e.s*=l.s,r=l.e+e.e,c=d.length,u=h.length,c<u&&(a=d,d=h,h=a,o=c,c=u,u=o),a=[],o=c+u,n=o;n--;)a.push(0);for(n=u;--n>=0;){for(t=0,i=c+n;i>n;)s=a[i]+h[n]*d[i-n-1]+t,a[i--]=s%Ue|0,t=s/Ue|0;a[i]=(a[i]+t)%Ue|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,ke?Te(e,f.precision):e};ie.toDecimalPlaces=ie.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Ut(e,0,Oi),t===void 0?t=n.rounding:Ut(t,0,8),Te(r,e+Le(r)+1,t))};ie.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=un(n,!0):(Ut(e,0,Oi),t===void 0?t=i.rounding:Ut(t,0,8),n=Te(new i(n),e+1,t),r=un(n,!0,e+1)),r};ie.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?un(i):(Ut(e,0,Oi),t===void 0?t=a.rounding:Ut(t,0,8),n=Te(new a(i),e+Le(i)+1,t),r=un(n.abs(),!1,e+Le(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};ie.toInteger=ie.toint=function(){var e=this,t=e.constructor;return Te(new t(e),Le(e)+1,t.rounding)};ie.toNumber=function(){return+this};ie.toPower=ie.pow=function(e){var t,r,n,i,a,o,s=this,c=s.constructor,u=12,l=+(e=new c(e));if(!e.s)return new c(ut);if(s=new c(s),!s.s){if(e.s<1)throw Error(wt+"Infinity");return s}if(s.eq(ut))return s;if(n=c.precision,e.eq(ut))return Te(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=l<0?-l:l)<=aP){for(i=new c(ut),t=Math.ceil(n/Ie+4),ke=!1;r%2&&(i=i.times(s),$0(i.d,t)),r=Ai(r/2),r!==0;)s=s.times(s),$0(s.d,t);return ke=!0,e.s<0?new c(ut).div(i):Te(i,n)}}else if(a<0)throw Error(wt+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,ke=!1,i=e.times(ma(s,n+u)),ke=!0,i=sP(i),i.s=a,i};ie.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Le(i),n=un(i,r<=a.toExpNeg||r>=a.toExpPos)):(Ut(e,1,Oi),t===void 0?t=a.rounding:Ut(t,0,8),i=Te(new a(i),e,t),r=Le(i),n=un(i,e<=r||r<=a.toExpNeg,e)),n};ie.toSignificantDigits=ie.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Ut(e,1,Oi),t===void 0?t=n.rounding:Ut(t,0,8)),Te(new n(r),e,t)};ie.toString=ie.valueOf=ie.val=ie.toJSON=ie[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Le(e),r=e.constructor;return un(e,t<=r.toExpNeg||t>=r.toExpPos)};function oP(e,t){var r,n,i,a,o,s,c,u,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),ke?Te(t,f):t;if(c=e.d,u=t.d,o=e.e,i=t.e,c=c.slice(),a=o-i,a){for(a<0?(n=c,a=-a,s=u.length):(n=u,i=o,s=c.length),o=Math.ceil(f/Ie),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=c.length,a=u.length,s-a<0&&(a=s,n=u,u=c,c=n),r=0;a;)r=(c[--a]=c[a]+u[a]+r)/Ue|0,c[a]%=Ue;for(r&&(c.unshift(r),++i),s=c.length;c[--s]==0;)c.pop();return t.d=c,t.e=i,ke?Te(t,f):t}function Ut(e,t,r){if(e!==~~e||e<t||e>r)throw Error(on+e)}function Lt(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=Ie-n.length,r&&(a+=Or(r)),a+=n;o=e[t],n=o+"",r=Ie-n.length,r&&(a+=Or(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var sr=(function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%Ue|0,o=a/Ue|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,c;if(a!=o)c=a>o?1:-1;else for(s=c=0;s<a;s++)if(n[s]!=i[s]){c=n[s]>i[s]?1:-1;break}return c}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Ue+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,c,u,l,f,d,h,m,v,p,g,b,x,w,y,S,O,P,T=n.constructor,k=n.s==i.s?1:-1,C=n.d,j=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(wt+"Division by zero");for(c=n.e-i.e,O=j.length,y=C.length,h=new T(k),m=h.d=[],u=0;j[u]==(C[u]||0);)++u;if(j[u]>(C[u]||0)&&--c,a==null?b=a=T.precision:o?b=a+(Le(n)-Le(i))+1:b=a,b<0)return new T(0);if(b=b/Ie+2|0,u=0,O==1)for(l=0,j=j[0],b++;(u<y||l)&&b--;u++)x=l*Ue+(C[u]||0),m[u]=x/j|0,l=x%j|0;else{for(l=Ue/(j[0]+1)|0,l>1&&(j=e(j,l),C=e(C,l),O=j.length,y=C.length),w=O,v=C.slice(0,O),p=v.length;p<O;)v[p++]=0;P=j.slice(),P.unshift(0),S=j[0],j[1]>=Ue/2&&++S;do l=0,s=t(j,v,O,p),s<0?(g=v[0],O!=p&&(g=g*Ue+(v[1]||0)),l=g/S|0,l>1?(l>=Ue&&(l=Ue-1),f=e(j,l),d=f.length,p=v.length,s=t(f,v,d,p),s==1&&(l--,r(f,O<d?P:j,d))):(l==0&&(s=l=1),f=j.slice()),d=f.length,d<p&&f.unshift(0),r(v,f,p),s==-1&&(p=v.length,s=t(j,v,O,p),s<1&&(l++,r(v,O<p?P:j,p))),p=v.length):s===0&&(l++,v=[0]),m[u++]=l,s&&v[0]?v[p++]=C[w]||0:(v=[C[w]],p=1);while((w++<y||v[0]!==void 0)&&b--)}return m[0]||m.shift(),h.e=c,Te(h,o?a+Le(h)+1:a)}})();function sP(e,t){var r,n,i,a,o,s,c=0,u=0,l=e.constructor,f=l.precision;if(Le(e)>16)throw Error(Jv+Le(e));if(!e.s)return new l(ut);for(ke=!1,s=f,o=new l(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Zr(2,u))/Math.LN10*2+5|0,s+=n,r=i=a=new l(ut),l.precision=s;;){if(i=Te(i.times(e),s),r=r.times(++c),o=a.plus(sr(i,r,s)),Lt(o.d).slice(0,s)===Lt(a.d).slice(0,s)){for(;u--;)a=Te(a.times(a),s);return l.precision=f,t==null?(ke=!0,Te(a,f)):a}a=o}}function Le(e){for(var t=e.e*Ie,r=e.d[0];r>=10;r/=10)t++;return t}function xd(e,t,r){if(t>e.LN10.sd())throw ke=!0,r&&(e.precision=r),Error(wt+"LN10 precision limit exceeded");return Te(new e(e.LN10),t)}function Or(e){for(var t="";e--;)t+="0";return t}function ma(e,t){var r,n,i,a,o,s,c,u,l,f=1,d=10,h=e,m=h.d,v=h.constructor,p=v.precision;if(h.s<1)throw Error(wt+(h.s?"NaN":"-Infinity"));if(h.eq(ut))return new v(0);if(t==null?(ke=!1,u=p):u=t,h.eq(10))return t==null&&(ke=!0),xd(v,u);if(u+=d,v.precision=u,r=Lt(m),n=r.charAt(0),a=Le(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=Lt(h.d),n=r.charAt(0),f++;a=Le(h),n>1?(h=new v("0."+r),a++):h=new v(n+"."+r.slice(1))}else return c=xd(v,u+2,p).times(a+""),h=ma(new v(n+"."+r.slice(1)),u-d).plus(c),v.precision=p,t==null?(ke=!0,Te(h,p)):h;for(s=o=h=sr(h.minus(ut),h.plus(ut),u),l=Te(h.times(h),u),i=3;;){if(o=Te(o.times(l),u),c=s.plus(sr(o,new v(i),u)),Lt(c.d).slice(0,u)===Lt(s.d).slice(0,u))return s=s.times(2),a!==0&&(s=s.plus(xd(v,u+2,p).times(a+""))),s=sr(s,new v(f),u),v.precision=p,t==null?(ke=!0,Te(s,p)):s;s=c,i+=2}}function M0(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Ai(r/Ie),e.d=[],n=(r+1)%Ie,r<0&&(n+=Ie),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Ie;n<i;)e.d.push(+t.slice(n,n+=Ie));t=t.slice(n),n=Ie-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),ke&&(e.e>os||e.e<-os))throw Error(Jv+r)}else e.s=0,e.e=0,e.d=[0];return e}function Te(e,t,r){var n,i,a,o,s,c,u,l,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=Ie,i=t,u=f[l=0];else{if(l=Math.ceil((n+1)/Ie),a=f.length,l>=a)return e;for(u=a=f[l],o=1;a>=10;a/=10)o++;n%=Ie,i=n-Ie+o}if(r!==void 0&&(a=Zr(10,o-i-1),s=u/a%10|0,c=t<0||f[l+1]!==void 0||u%a,c=r<4?(s||c)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||c||r==6&&(n>0?i>0?u/Zr(10,o-i):0:f[l-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return c?(a=Le(e),f.length=1,t=t-a-1,f[0]=Zr(10,(Ie-t%Ie)%Ie),e.e=Ai(-t/Ie)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=l,a=1,l--):(f.length=l+1,a=Zr(10,Ie-n),f[l]=i>0?(u/Zr(10,o-i)%Zr(10,i)|0)*a:0),c)for(;;)if(l==0){(f[0]+=a)==Ue&&(f[0]=1,++e.e);break}else{if(f[l]+=a,f[l]!=Ue)break;f[l--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(ke&&(e.e>os||e.e<-os))throw Error(Jv+Le(e));return e}function cP(e,t){var r,n,i,a,o,s,c,u,l,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),ke?Te(t,h):t;if(c=e.d,f=t.d,n=t.e,u=e.e,c=c.slice(),o=u-n,o){for(l=o<0,l?(r=c,o=-o,s=f.length):(r=f,n=u,s=c.length),i=Math.max(Math.ceil(h/Ie),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=c.length,s=f.length,l=i<s,l&&(s=i),i=0;i<s;i++)if(c[i]!=f[i]){l=c[i]<f[i];break}o=0}for(l&&(r=c,c=f,f=r,t.s=-t.s),s=c.length,i=f.length-s;i>0;--i)c[s++]=0;for(i=f.length;i>o;){if(c[--i]<f[i]){for(a=i;a&&c[--a]===0;)c[a]=Ue-1;--c[a],c[i]+=Ue}c[i]-=f[i]}for(;c[--s]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(t.d=c,t.e=n,ke?Te(t,h):t):new d(0)}function un(e,t,r){var n,i=Le(e),a=Lt(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Or(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Or(-i-1)+a,r&&(n=r-o)>0&&(a+=Or(n))):i>=o?(a+=Or(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Or(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Or(n))),e.s<0?"-"+a:a}function $0(e,t){if(e.length>t)return e.length=t,!0}function uP(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(on+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return M0(o,a.toString())}else if(typeof a!="string")throw Error(on+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,ML.test(a))M0(o,a);else throw Error(on+a)}if(i.prototype=ie,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=uP,i.config=i.set=$L,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function $L(e){if(!e||typeof e!="object")throw Error(wt+"Object expected");var t,r,n,i=["precision",1,Oi,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Ai(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(on+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(on+r+": "+n);return this}var Qv=uP(RL);ut=new Qv(1);const _e=Qv;function NL(e){return qL(e)||BL(e)||LL(e)||DL()}function DL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LL(e,t){if(e){if(typeof e=="string")return Vp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vp(e,t)}}function BL(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function qL(e){if(Array.isArray(e))return Vp(e)}function Vp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var FL=function(t){return t},lP={},fP=function(t){return t===lP},N0=function(t){return function r(){return arguments.length===0||arguments.length===1&&fP(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},zL=function e(t,r){return t===1?r:N0(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(s){return s!==lP}).length;return o>=t?r.apply(void 0,i):e(t-o,N0(function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var l=i.map(function(f){return fP(f)?c.shift():f});return r.apply(void 0,NL(l).concat(c))}))})},wc=function(t){return zL(t.length,t)},Kp=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},WL=wc(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),UL=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return FL;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(s,c){return c(s)},a.apply(void 0,arguments))}},Gp=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},dP=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(s,c){return s===r[c]})||(r=a,n=t.apply(void 0,a)),n}};function HL(e){var t;return e===0?t=1:t=Math.floor(new _e(e).abs().log(10).toNumber())+1,t}function VL(e,t,r){for(var n=new _e(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var KL=wc(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),GL=wc(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),YL=wc(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Sc={rangeStep:VL,getDigitCount:HL,interpolateNumber:KL,uninterpolateNumber:GL,uninterpolateTruncation:YL};function Yp(e){return JL(e)||ZL(e)||pP(e)||XL()}function XL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZL(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function JL(e){if(Array.isArray(e))return Xp(e)}function ya(e,t){return t2(e)||e2(e,t)||pP(e,t)||QL()}function QL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
15
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pP(e,t){if(e){if(typeof e=="string")return Xp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xp(e,t)}}function Xp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function e2(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(c){i=!0,a=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function t2(e){if(Array.isArray(e))return e}function hP(e){var t=ya(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function vP(e,t,r){if(e.lte(0))return new _e(0);var n=Sc.getDigitCount(e.toNumber()),i=new _e(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new _e(Math.ceil(a.div(o).toNumber())).add(r).mul(o),c=s.mul(i);return t?c:new _e(Math.ceil(c))}function r2(e,t,r){var n=1,i=new _e(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new _e(10).pow(Sc.getDigitCount(e)-1),i=new _e(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new _e(Math.floor(e)))}else e===0?i=new _e(Math.floor((t-1)/2)):r||(i=new _e(Math.floor(e)));var o=Math.floor((t-1)/2),s=UL(WL(function(c){return i.add(new _e(c-o).mul(n)).toNumber()}),Kp);return s(0,t)}function mP(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new _e(0),tickMin:new _e(0),tickMax:new _e(0)};var a=vP(new _e(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new _e(0):(o=new _e(e).add(t).div(2),o=o.sub(new _e(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new _e(t).sub(o).div(a).toNumber()),u=s+c+1;return u>r?mP(e,t,r,n,i+1):(u<r&&(c=t>0?c+(r-u):c,s=t>0?s:s+(r-u)),{step:a,tickMin:o.sub(new _e(s).mul(a)),tickMax:o.add(new _e(c).mul(a))})}function n2(e){var t=ya(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=hP([r,n]),c=ya(s,2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var f=l===1/0?[u].concat(Yp(Kp(0,i-1).map(function(){return 1/0}))):[].concat(Yp(Kp(0,i-1).map(function(){return-1/0})),[l]);return r>n?Gp(f):f}if(u===l)return r2(u,i,a);var d=mP(u,l,o,a),h=d.step,m=d.tickMin,v=d.tickMax,p=Sc.rangeStep(m,v.add(new _e(.1).mul(h)),h);return r>n?Gp(p):p}function i2(e,t){var r=ya(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=hP([n,i]),s=ya(o,2),c=s[0],u=s[1];if(c===-1/0||u===1/0)return[n,i];if(c===u)return[c];var l=Math.max(t,2),f=vP(new _e(u).sub(c).div(l-1),a,0),d=[].concat(Yp(Sc.rangeStep(new _e(c),new _e(u).sub(new _e(.99).mul(f)),f)),[u]);return n>i?Gp(d):d}var a2=dP(n2),o2=dP(i2),s2=process.env.NODE_ENV==="production",wd="Invariant failed";function nt(e,t){if(s2)throw new Error(wd);var r=typeof t=="function"?t():t,n=r?"".concat(wd,": ").concat(r):wd;throw new Error(n)}var c2=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Kn(e){"@babel/helpers - typeof";return Kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kn(e)}function ss(){return ss=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ss.apply(this,arguments)}function u2(e,t){return p2(e)||d2(e,t)||f2(e,t)||l2()}function l2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
16
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f2(e,t){if(e){if(typeof e=="string")return D0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return D0(e,t)}}function D0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function d2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function p2(e){if(Array.isArray(e))return e}function h2(e,t){if(e==null)return{};var r=v2(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function v2(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function m2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bP(n.key),n)}}function g2(e,t,r){return t&&y2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function b2(e,t,r){return t=cs(t),x2(e,yP()?Reflect.construct(t,r||[],cs(e).constructor):t.apply(e,r))}function x2(e,t){if(t&&(Kn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return w2(e)}function w2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yP=function(){return!!e})()}function cs(e){return cs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cs(e)}function S2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zp(e,t)}function Zp(e,t){return Zp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zp(e,t)}function gP(e,t,r){return t=bP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bP(e){var t=O2(e,"string");return Kn(t)=="symbol"?t:t+""}function O2(e,t){if(Kn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _i=(function(e){function t(){return m2(this,t),b2(this,t,arguments)}return S2(t,e),g2(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,c=n.data,u=n.dataPointFormatter,l=n.xAxis,f=n.yAxis,d=h2(n,c2),h=re(d,!1);this.props.direction==="x"&&l.type!=="number"&&(process.env.NODE_ENV!=="production"?nt(!1,'ErrorBar requires Axis type property to be "number".'):nt());var m=c.map(function(v){var p=u(v,s),g=p.x,b=p.y,x=p.value,w=p.errorVal;if(!w)return null;var y=[],S,O;if(Array.isArray(w)){var P=u2(w,2);S=P[0],O=P[1]}else S=O=w;if(a==="vertical"){var T=l.scale,k=b+i,C=k+o,j=k-o,R=T(x-S),N=T(x+O);y.push({x1:N,y1:C,x2:N,y2:j}),y.push({x1:R,y1:k,x2:N,y2:k}),y.push({x1:R,y1:C,x2:R,y2:j})}else if(a==="horizontal"){var D=f.scale,$=g+i,L=$-o,B=$+o,W=D(x-S),I=D(x+O);y.push({x1:L,y1:I,x2:B,y2:I}),y.push({x1:$,y1:W,x2:$,y2:I}),y.push({x1:L,y1:W,x2:B,y2:W})}return A.createElement(fe,ss({className:"recharts-errorBar",key:"bar-".concat(y.map(function(F){return"".concat(F.x1,"-").concat(F.x2,"-").concat(F.y1,"-").concat(F.y2)}))},h),y.map(function(F){return A.createElement("line",ss({},F,{key:"line-".concat(F.x1,"-").concat(F.x2,"-").concat(F.y1,"-").concat(F.y2)}))}))});return A.createElement(fe,{className:"recharts-errorBars"},m)}}])})(A.Component);gP(_i,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});gP(_i,"displayName","ErrorBar");function ga(e){"@babel/helpers - typeof";return ga=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ga(e)}function L0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?L0(Object(r),!0).forEach(function(n){A2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function A2(e,t,r){return t=_2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _2(e){var t=P2(e,"string");return ga(t)=="symbol"?t:t+""}function P2(e,t){if(ga(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ga(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xP=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=st(r,bt);if(!o)return null;var s=bt.defaultProps,c=s!==void 0?Kr(Kr({},s),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:a==="children"?u=(n||[]).reduce(function(l,f){var d=f.item,h=f.props,m=h.sectors||h.data||[];return l.concat(m.map(function(v){return{type:o.props.iconType||d.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):u=(n||[]).map(function(l){var f=l.item,d=f.type.defaultProps,h=d!==void 0?Kr(Kr({},d),f.props):{},m=h.dataKey,v=h.name,p=h.legendType,g=h.hide;return{inactive:g,dataKey:m,type:c.iconType||p||"square",color:em(f),value:v||m,payload:h}}),Kr(Kr(Kr({},c),bt.getWithHeight(o,i)),{},{payload:u,item:o})};function ba(e){"@babel/helpers - typeof";return ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ba(e)}function B0(e){return j2(e)||C2(e)||T2(e)||E2()}function E2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
17
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T2(e,t){if(e){if(typeof e=="string")return Jp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jp(e,t)}}function C2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function j2(e){if(Array.isArray(e))return Jp(e)}function Jp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function q0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?q0(Object(r),!0).forEach(function(n){Nn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nn(e,t,r){return t=I2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I2(e){var t=k2(e,"string");return ba(t)=="symbol"?t:t+""}function k2(e,t){if(ba(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ba(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ee(e,t,r){return se(e)||se(t)?r:ze(t)?lt(e,t,r):oe(t)?t(e):r}function Zi(e,t,r,n){var i=jL(e,function(s){return Ee(s,t)});if(r==="number"){var a=i.filter(function(s){return Y(s)||parseFloat(s)});return a.length?[xc(a),_r(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!se(s)}):i;return o.map(function(s){return ze(s)||s instanceof Date?s:""})}var R2=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n?.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var c=a.range,u=0;u<s;u++){var l=u>0?i[u-1].coordinate:i[s-1].coordinate,f=i[u].coordinate,d=u>=s-1?i[0].coordinate:i[u+1].coordinate,h=void 0;if(Je(f-l)!==Je(d-f)){var m=[];if(Je(d-f)===Je(c[1]-c[0])){h=d;var v=f+c[1]-c[0];m[0]=Math.min(v,(v+l)/2),m[1]=Math.max(v,(v+l)/2)}else{h=l;var p=d+c[1]-c[0];m[0]=Math.min(f,(p+f)/2),m[1]=Math.max(f,(p+f)/2)}var g=[Math.min(f,(h+f)/2),Math.max(f,(h+f)/2)];if(t>g[0]&&t<=g[1]||t>=m[0]&&t<=m[1]){o=i[u].index;break}}else{var b=Math.min(l,d),x=Math.max(l,d);if(t>(b+f)/2&&t<=(x+f)/2){o=i[u].index;break}}}else for(var w=0;w<s;w++)if(w===0&&t<=(n[w].coordinate+n[w+1].coordinate)/2||w>0&&w<s-1&&t>(n[w].coordinate+n[w-1].coordinate)/2&&t<=(n[w].coordinate+n[w+1].coordinate)/2||w===s-1&&t>(n[w].coordinate+n[w-1].coordinate)/2){o=n[w].index;break}return o},em=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Me(Me({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,c;switch(i){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:s;break;default:c=s;break}return c},M2=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),c=0,u=s.length;c<u;c++)for(var l=a[s[c]].stackGroups,f=Object.keys(l),d=0,h=f.length;d<h;d++){var m=l[f[d]],v=m.items,p=m.cateAxisId,g=v.filter(function(O){return or(O.type).indexOf("Bar")>=0});if(g&&g.length){var b=g[0].type.defaultProps,x=b!==void 0?Me(Me({},b),g[0].props):g[0].props,w=x.barSize,y=x[p];o[y]||(o[y]=[]);var S=se(w)?r:w;o[y].push({item:g[0],stackList:g.slice(1),barSize:se(S)?void 0:Qe(S,n,0)})}}return o},$2=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,c=o.length;if(c<1)return null;var u=Qe(r,i,0,!0),l,f=[];if(o[0].barSize===+o[0].barSize){var d=!1,h=i/c,m=o.reduce(function(w,y){return w+y.barSize||0},0);m+=(c-1)*u,m>=i&&(m-=(c-1)*u,u=0),m>=i&&h>0&&(d=!0,h*=.9,m=c*h);var v=(i-m)/2>>0,p={offset:v-u,size:0};l=o.reduce(function(w,y){var S={item:y.item,position:{offset:p.offset+p.size+u,size:d?h:y.barSize}},O=[].concat(B0(w),[S]);return p=O[O.length-1].position,y.stackList&&y.stackList.length&&y.stackList.forEach(function(P){O.push({item:P,position:p})}),O},f)}else{var g=Qe(n,i,0,!0);i-2*g-(c-1)*u<=0&&(u=0);var b=(i-2*g-(c-1)*u)/c;b>1&&(b>>=0);var x=s===+s?Math.min(b,s):b;l=o.reduce(function(w,y,S){var O=[].concat(B0(w),[{item:y.item,position:{offset:g+(b+u)*S+(b-x)/2,size:x}}]);return y.stackList&&y.stackList.length&&y.stackList.forEach(function(P){O.push({item:P,position:O[O.length-1].position})}),O},f)}return l},N2=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,c=o-(s.left||0)-(s.right||0),u=xP({children:a,legendWidth:c});if(u){var l=i||{},f=l.width,d=l.height,h=u.align,m=u.verticalAlign,v=u.layout;if((v==="vertical"||v==="horizontal"&&m==="middle")&&h!=="center"&&Y(t[h]))return Me(Me({},t),{},Nn({},h,t[h]+(f||0)));if((v==="horizontal"||v==="vertical"&&h==="center")&&m!=="middle"&&Y(t[m]))return Me(Me({},t),{},Nn({},m,t[m]+(d||0)))}return t},D2=function(t,r,n){return se(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},wP=function(t,r,n,i,a){var o=r.props.children,s=tt(o,_i).filter(function(u){return D2(i,a,u.props.direction)});if(s&&s.length){var c=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,l){var f=Ee(l,n);if(se(f))return u;var d=Array.isArray(f)?[xc(f),_r(f)]:[f,f],h=c.reduce(function(m,v){var p=Ee(l,v,0),g=d[0]-Math.abs(Array.isArray(p)?p[0]:p),b=d[1]+Math.abs(Array.isArray(p)?p[1]:p);return[Math.min(g,m[0]),Math.max(b,m[1])]},[1/0,-1/0]);return[Math.min(h[0],u[0]),Math.max(h[1],u[1])]},[1/0,-1/0])}return null},L2=function(t,r,n,i,a){var o=r.map(function(s){return wP(t,s,n,a,i)}).filter(function(s){return!se(s)});return o&&o.length?o.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]):null},SP=function(t,r,n,i,a){var o=r.map(function(c){var u=c.props.dataKey;return n==="number"&&u&&wP(t,c,u,i)||Zi(t,u,n,a)});if(n==="number")return o.reduce(function(c,u){return[Math.min(c[0],u[0]),Math.max(c[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(c,u){for(var l=0,f=u.length;l<f;l++)s[u[l]]||(s[u[l]]=!0,c.push(u[l]));return c},[])},OP=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},AP=function(t,r,n,i){if(i)return t.map(function(c){return c.coordinate});var a,o,s=t.map(function(c){return c.coordinate===r&&(a=!0),c.coordinate===n&&(o=!0),c.coordinate});return a||s.push(r),o||s.push(n),s},ar=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,c=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/c:0;if(u=t.axisType==="angleAxis"&&s?.length>=2?Je(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var l=(t.ticks||t.niceTicks).map(function(f){var d=a?a.indexOf(f):f;return{coordinate:i(d)+u,value:f,offset:u}});return l.filter(function(f){return!xi(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:i(f)+u,value:f,index:d,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+u,value:f,offset:u}}):i.domain().map(function(f,d){return{coordinate:i(f)+u,value:a?a[f]:f,index:d,offset:u}})},Sd=new WeakMap,mo=function(t,r){if(typeof r!="function")return t;Sd.has(t)||Sd.set(t,new WeakMap);var n=Sd.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},_P=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:fa(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:rs(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Xi(),realScaleType:"point"}:a==="category"?{scale:fa(),realScaleType:"band"}:{scale:rs(),realScaleType:"linear"};if(sn(i)){var c="scale".concat(ac(i));return{scale:(_0[c]||Xi)(),realScaleType:_0[c]?c:"point"}}return oe(i)?{scale:i}:{scale:Xi(),realScaleType:"point"}},F0=1e-4,PP=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-F0,o=Math.max(i[0],i[1])+F0,s=t(r[0]),c=t(r[n-1]);(s<a||s>o||c<a||c>o)&&t.domain([r[0],r[n-1]])}},B2=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},q2=function(t,r){if(!r||r.length!==2||!Y(r[0])||!Y(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!Y(t[0])||t[0]<n)&&(a[0]=n),(!Y(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},F2=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,s=0;s<r;++s){var c=xi(t[s][n][1])?t[s][n][0]:t[s][n][1];c>=0?(t[s][n][0]=a,t[s][n][1]=a+c,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+c,o=t[s][n][1])}},z2=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var s=xi(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},W2={sign:F2,expand:jk,none:Bn,silhouette:Ik,wiggle:kk,positive:z2},U2=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=W2[n],o=Ck().keys(i).value(function(s,c){return+Ee(s,c,0)}).order(Tp).offset(a);return o(t)},H2=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,c={},u=s.reduce(function(f,d){var h,m=(h=d.type)!==null&&h!==void 0&&h.defaultProps?Me(Me({},d.type.defaultProps),d.props):d.props,v=m.stackId,p=m.hide;if(p)return f;var g=m[n],b=f[g]||{hasStack:!1,stackGroups:{}};if(ze(v)){var x=b.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};x.items.push(d),b.hasStack=!0,b.stackGroups[v]=x}else b.stackGroups[Nr("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return Me(Me({},f),{},Nn({},g,b))},c),l={};return Object.keys(u).reduce(function(f,d){var h=u[d];if(h.hasStack){var m={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(v,p){var g=h.stackGroups[p];return Me(Me({},v),{},Nn({},p,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:U2(t,g.items,a)}))},m)}return Me(Me({},f),{},Nn({},d,h))},l)},EP=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,c=n||r.scale;if(c!=="auto"&&c!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var l=a2(u,a,s);return t.domain([xc(l),_r(l)]),{niceTicks:l}}if(a&&i==="number"){var f=t.domain(),d=o2(f,a,s);return{niceTicks:d}}return null};function Gn(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!se(i[t.dataKey])){var s=Lo(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=Ee(i,se(o)?t.dataKey:o);return se(c)?null:t.scale(c)}var z0=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var c=Ee(o,r.dataKey,r.domain[s]);return se(c)?null:r.scale(c)-a/2+i},V2=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},K2=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Me(Me({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(ze(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},G2=function(t){return t.reduce(function(r,n){return[xc(n.concat([r[0]]).filter(Y)),_r(n.concat([r[1]]).filter(Y))]},[1/0,-1/0])},TP=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,c=s.reduce(function(u,l){var f=G2(l.slice(r,n+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},W0=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,U0=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Qp=function(t,r,n){if(oe(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(Y(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(W0.test(t[0])){var a=+W0.exec(t[0])[1];i[0]=r[0]-a}else oe(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(Y(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(U0.test(t[1])){var o=+U0.exec(t[1])[1];i[1]=r[1]+o}else oe(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},us=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=Tv(r,function(f){return f.coordinate}),o=1/0,s=1,c=a.length;s<c;s++){var u=a[s],l=a[s-1];o=Math.min((u.coordinate||0)-(l.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},H0=function(t,r,n){return!t||!t.length||fr(t,lt(n,"type.defaultProps.domain"))?r:t},CP=function(t,r){var n=t.type.defaultProps?Me(Me({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,c=n.tooltipType,u=n.chartType,l=n.hide;return Me(Me({},re(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:em(t),value:Ee(r,i),type:c,payload:r,chartType:u,hide:l})};function xa(e){"@babel/helpers - typeof";return xa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xa(e)}function V0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?V0(Object(r),!0).forEach(function(n){jP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jP(e,t,r){return t=Y2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y2(e){var t=X2(e,"string");return xa(t)=="symbol"?t:t+""}function X2(e,t){if(xa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Z2(e,t){return tB(e)||eB(e,t)||Q2(e,t)||J2()}function J2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
18
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q2(e,t){if(e){if(typeof e=="string")return K0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return K0(e,t)}}function K0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function eB(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function tB(e){if(Array.isArray(e))return e}var ls=Math.PI/180,rB=function(t){return t*180/Math.PI},me=function(t,r,n,i){return{x:t+Math.cos(-ls*i)*n,y:r+Math.sin(-ls*i)*n}},IP=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},kP=function(t,r,n,i,a){var o=t.width,s=t.height,c=t.startAngle,u=t.endAngle,l=Qe(t.cx,o,o/2),f=Qe(t.cy,s,s/2),d=IP(o,s,n),h=Qe(t.innerRadius,d,0),m=Qe(t.outerRadius,d,d*.8),v=Object.keys(r);return v.reduce(function(p,g){var b=r[g],x=b.domain,w=b.reversed,y;if(se(b.range))i==="angleAxis"?y=[c,u]:i==="radiusAxis"&&(y=[h,m]),w&&(y=[y[1],y[0]]);else{y=b.range;var S=y,O=Z2(S,2);c=O[0],u=O[1]}var P=_P(b,a),T=P.realScaleType,k=P.scale;k.domain(x).range(y),PP(k);var C=EP(k,tr(tr({},b),{},{realScaleType:T})),j=tr(tr(tr({},b),C),{},{range:y,radius:m,realScaleType:T,scale:k,cx:l,cy:f,innerRadius:h,outerRadius:m,startAngle:c,endAngle:u});return tr(tr({},p),{},jP({},g,j))},{})},nB=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},iB=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=nB({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var c=(n-a)/s,u=Math.acos(c);return i>o&&(u=2*Math.PI-u),{radius:s,angle:rB(u),angleInRadian:u}},aB=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},oB=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},G0=function(t,r){var n=t.x,i=t.y,a=iB({x:n,y:i},r),o=a.radius,s=a.angle,c=r.innerRadius,u=r.outerRadius;if(o<c||o>u)return!1;if(o===0)return!0;var l=aB(r),f=l.startAngle,d=l.endAngle,h=s,m;if(f<=d){for(;h>d;)h-=360;for(;h<f;)h+=360;m=h>=f&&h<=d}else{for(;h>f;)h-=360;for(;h<d;)h+=360;m=h>=d&&h<=f}return m?tr(tr({},r),{},{radius:o,angle:oB(h,r)}):null},RP=function(t){return!A.isValidElement(t)&&!oe(t)&&typeof t!="boolean"?t.className:""};function wa(e){"@babel/helpers - typeof";return wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wa(e)}var sB=["offset"];function cB(e){return dB(e)||fB(e)||lB(e)||uB()}function uB(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
19
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lB(e,t){if(e){if(typeof e=="string")return eh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eh(e,t)}}function fB(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dB(e){if(Array.isArray(e))return eh(e)}function eh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pB(e,t){if(e==null)return{};var r=hB(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hB(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Y0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Y0(Object(r),!0).forEach(function(n){vB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vB(e,t,r){return t=mB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mB(e){var t=yB(e,"string");return wa(t)=="symbol"?t:t+""}function yB(e,t){if(wa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sa(){return Sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sa.apply(this,arguments)}var gB=function(t){var r=t.value,n=t.formatter,i=se(t.children)?r:t.children;return oe(n)?n(i):i},bB=function(t,r){var n=Je(r-t),i=Math.min(Math.abs(r-t),360);return n*i},xB=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,c=a,u=c.cx,l=c.cy,f=c.innerRadius,d=c.outerRadius,h=c.startAngle,m=c.endAngle,v=c.clockWise,p=(f+d)/2,g=bB(h,m),b=g>=0?1:-1,x,w;i==="insideStart"?(x=h+b*o,w=v):i==="insideEnd"?(x=m-b*o,w=!v):i==="end"&&(x=m+b*o,w=v),w=g<=0?w:!w;var y=me(u,l,p,x),S=me(u,l,p,x+(w?1:-1)*359),O="M".concat(y.x,",").concat(y.y,`
|
|
20
20
|
A`).concat(p,",").concat(p,",0,1,").concat(w?0:1,`,
|
|
21
|
-
`).concat(S.x,",").concat(S.y),P=se(t.id)?Nr("recharts-radial-line-"):t.id;return
|
|
22
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
21
|
+
`).concat(S.x,",").concat(S.y),P=se(t.id)?Nr("recharts-radial-line-"):t.id;return A.createElement("text",Sa({},n,{dominantBaseline:"central",className:le("recharts-radial-bar-label",s)}),A.createElement("defs",null,A.createElement("path",{id:P,d:O})),A.createElement("textPath",{xlinkHref:"#".concat(P)},r))},wB=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,c=a.innerRadius,u=a.outerRadius,l=a.startAngle,f=a.endAngle,d=(l+f)/2;if(i==="outside"){var h=me(o,s,u+n,d),m=h.x,v=h.y;return{x:m,y:v,textAnchor:m>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var p=(c+u)/2,g=me(o,s,p,d),b=g.x,x=g.y;return{x:b,y:x,textAnchor:"middle",verticalAnchor:"middle"}},SB=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,c=o.y,u=o.width,l=o.height,f=l>=0?1:-1,d=f*i,h=f>0?"end":"start",m=f>0?"start":"end",v=u>=0?1:-1,p=v*i,g=v>0?"end":"start",b=v>0?"start":"end";if(a==="top"){var x={x:s+u/2,y:c-f*i,textAnchor:"middle",verticalAnchor:h};return Fe(Fe({},x),n?{height:Math.max(c-n.y,0),width:u}:{})}if(a==="bottom"){var w={x:s+u/2,y:c+l+d,textAnchor:"middle",verticalAnchor:m};return Fe(Fe({},w),n?{height:Math.max(n.y+n.height-(c+l),0),width:u}:{})}if(a==="left"){var y={x:s-p,y:c+l/2,textAnchor:g,verticalAnchor:"middle"};return Fe(Fe({},y),n?{width:Math.max(y.x-n.x,0),height:l}:{})}if(a==="right"){var S={x:s+u+p,y:c+l/2,textAnchor:b,verticalAnchor:"middle"};return Fe(Fe({},S),n?{width:Math.max(n.x+n.width-S.x,0),height:l}:{})}var O=n?{width:u,height:l}:{};return a==="insideLeft"?Fe({x:s+p,y:c+l/2,textAnchor:b,verticalAnchor:"middle"},O):a==="insideRight"?Fe({x:s+u-p,y:c+l/2,textAnchor:g,verticalAnchor:"middle"},O):a==="insideTop"?Fe({x:s+u/2,y:c+d,textAnchor:"middle",verticalAnchor:m},O):a==="insideBottom"?Fe({x:s+u/2,y:c+l-d,textAnchor:"middle",verticalAnchor:h},O):a==="insideTopLeft"?Fe({x:s+p,y:c+d,textAnchor:b,verticalAnchor:m},O):a==="insideTopRight"?Fe({x:s+u-p,y:c+d,textAnchor:g,verticalAnchor:m},O):a==="insideBottomLeft"?Fe({x:s+p,y:c+l-d,textAnchor:b,verticalAnchor:h},O):a==="insideBottomRight"?Fe({x:s+u-p,y:c+l-d,textAnchor:g,verticalAnchor:h},O):bi(a)&&(Y(a.x)||Qr(a.x))&&(Y(a.y)||Qr(a.y))?Fe({x:s+Qe(a.x,u),y:c+Qe(a.y,l),textAnchor:"end",verticalAnchor:"end"},O):Fe({x:s+u/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},O)},OB=function(t){return"cx"in t&&Y(t.cx)};function He(e){var t=e.offset,r=t===void 0?5:t,n=pB(e,sB),i=Fe({offset:r},n),a=i.viewBox,o=i.position,s=i.value,c=i.children,u=i.content,l=i.className,f=l===void 0?"":l,d=i.textBreakAll;if(!a||se(s)&&se(c)&&!A.isValidElement(u)&&!oe(u))return null;if(A.isValidElement(u))return A.cloneElement(u,i);var h;if(oe(u)){if(h=A.createElement(u,i),A.isValidElement(h))return h}else h=gB(i);var m=OB(a),v=re(i,!0);if(m&&(o==="insideStart"||o==="insideEnd"||o==="end"))return xB(i,h,v);var p=m?wB(i):SB(i);return A.createElement(cn,Sa({className:le("recharts-label",f)},v,p,{breakAll:d}),h)}He.displayName="Label";var MP=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,c=t.radius,u=t.innerRadius,l=t.outerRadius,f=t.x,d=t.y,h=t.top,m=t.left,v=t.width,p=t.height,g=t.clockWise,b=t.labelViewBox;if(b)return b;if(Y(v)&&Y(p)){if(Y(f)&&Y(d))return{x:f,y:d,width:v,height:p};if(Y(h)&&Y(m))return{x:h,y:m,width:v,height:p}}return Y(f)&&Y(d)?{x:f,y:d,width:0,height:0}:Y(r)&&Y(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:l||c||s||0,clockWise:g}:t.viewBox?t.viewBox:{}},AB=function(t,r){return t?t===!0?A.createElement(He,{key:"label-implicit",viewBox:r}):ze(t)?A.createElement(He,{key:"label-implicit",viewBox:r,value:t}):A.isValidElement(t)?t.type===He?A.cloneElement(t,{key:"label-implicit",viewBox:r}):A.createElement(He,{key:"label-implicit",content:t,viewBox:r}):oe(t)?A.createElement(He,{key:"label-implicit",content:t,viewBox:r}):bi(t)?A.createElement(He,Sa({viewBox:r},t,{key:"label-implicit"})):null:null},_B=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=MP(t),o=tt(i,He).map(function(c,u){return A.cloneElement(c,{viewBox:r||a,key:"label-".concat(u)})});if(!n)return o;var s=AB(t.label,r||a);return[s].concat(cB(o))};He.parseViewBox=MP;He.renderCallByParent=_B;var Od,X0;function PB(){if(X0)return Od;X0=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Od=e,Od}var EB=PB();const $P=Oe(EB);function Oa(e){"@babel/helpers - typeof";return Oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oa(e)}var TB=["valueAccessor"],CB=["data","dataKey","clockWise","id","textBreakAll"];function jB(e){return MB(e)||RB(e)||kB(e)||IB()}function IB(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
22
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kB(e,t){if(e){if(typeof e=="string")return th(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return th(e,t)}}function RB(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function MB(e){if(Array.isArray(e))return th(e)}function th(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fs(){return fs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fs.apply(this,arguments)}function Z0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function J0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Z0(Object(r),!0).forEach(function(n){$B(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $B(e,t,r){return t=NB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NB(e){var t=DB(e,"string");return Oa(t)=="symbol"?t:t+""}function DB(e,t){if(Oa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Oa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Q0(e,t){if(e==null)return{};var r=LB(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function LB(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var BB=function(t){return Array.isArray(t.value)?$P(t.value):t.value};function xt(e){var t=e.valueAccessor,r=t===void 0?BB:t,n=Q0(e,TB),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,c=n.textBreakAll,u=Q0(n,CB);return!i||!i.length?null:A.createElement(fe,{className:"recharts-label-list"},i.map(function(l,f){var d=se(a)?r(l,f):Ee(l&&l.payload,a),h=se(s)?{}:{id:"".concat(s,"-").concat(f)};return A.createElement(He,fs({},re(l,!0),u,h,{parentViewBox:l.parentViewBox,value:d,textBreakAll:c,viewBox:He.parseViewBox(se(o)?l:J0(J0({},l),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}xt.displayName="LabelList";function qB(e,t){return e?e===!0?A.createElement(xt,{key:"labelList-implicit",data:t}):A.isValidElement(e)||oe(e)?A.createElement(xt,{key:"labelList-implicit",data:t,content:e}):bi(e)?A.createElement(xt,fs({data:t},e,{key:"labelList-implicit"})):null:null}function FB(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=tt(n,xt).map(function(o,s){return A.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=qB(e.label,t);return[a].concat(jB(i))}xt.renderCallByParent=FB;function Aa(e){"@babel/helpers - typeof";return Aa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Aa(e)}function rh(){return rh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rh.apply(this,arguments)}function ew(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ew(Object(r),!0).forEach(function(n){zB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ew(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zB(e,t,r){return t=WB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WB(e){var t=UB(e,"string");return Aa(t)=="symbol"?t:t+""}function UB(e,t){if(Aa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Aa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HB=function(t,r){var n=Je(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},yo=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,l=c*(s?1:-1)+i,f=Math.asin(c/l)/ls,d=u?a:a+o*f,h=me(r,n,l,d),m=me(r,n,i,d),v=u?a-o*f:a,p=me(r,n,l*Math.cos(f*ls),v);return{center:h,circleTangency:m,lineTangency:p,theta:f}},NP=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,c=HB(o,s),u=o+c,l=me(r,n,a,o),f=me(r,n,a,u),d="M ".concat(l.x,",").concat(l.y,`
|
|
23
23
|
A `).concat(a,",").concat(a,`,0,
|
|
24
24
|
`).concat(+(Math.abs(c)>180),",").concat(+(o>u),`,
|
|
25
25
|
`).concat(f.x,",").concat(f.y,`
|
|
26
26
|
`);if(i>0){var h=me(r,n,i,o),m=me(r,n,i,u);d+="L ".concat(m.x,",").concat(m.y,`
|
|
27
27
|
A `).concat(i,",").concat(i,`,0,
|
|
28
28
|
`).concat(+(Math.abs(c)>180),",").concat(+(o<=u),`,
|
|
29
|
-
`).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},
|
|
29
|
+
`).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},VB=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,l=t.endAngle,f=Je(l-u),d=yo({cx:r,cy:n,radius:a,angle:u,sign:f,cornerRadius:o,cornerIsExternal:c}),h=d.circleTangency,m=d.lineTangency,v=d.theta,p=yo({cx:r,cy:n,radius:a,angle:l,sign:-f,cornerRadius:o,cornerIsExternal:c}),g=p.circleTangency,b=p.lineTangency,x=p.theta,w=c?Math.abs(u-l):Math.abs(u-l)-v-x;if(w<0)return s?"M ".concat(m.x,",").concat(m.y,`
|
|
30
30
|
a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
|
|
31
31
|
a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
|
|
32
32
|
`):NP({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:u,endAngle:l});var y="M ".concat(m.x,",").concat(m.y,`
|
|
33
33
|
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(h.x,",").concat(h.y,`
|
|
34
34
|
A`).concat(a,",").concat(a,",0,").concat(+(w>180),",").concat(+(f<0),",").concat(g.x,",").concat(g.y,`
|
|
35
35
|
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(b.x,",").concat(b.y,`
|
|
36
|
-
`);if(i>0){var S=yo({cx:r,cy:n,radius:i,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),
|
|
36
|
+
`);if(i>0){var S=yo({cx:r,cy:n,radius:i,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),O=S.circleTangency,P=S.lineTangency,T=S.theta,k=yo({cx:r,cy:n,radius:i,angle:l,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),C=k.circleTangency,j=k.lineTangency,R=k.theta,N=c?Math.abs(u-l):Math.abs(u-l)-T-R;if(N<0&&o===0)return"".concat(y,"L").concat(r,",").concat(n,"Z");y+="L".concat(j.x,",").concat(j.y,`
|
|
37
37
|
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(C.x,",").concat(C.y,`
|
|
38
|
-
A`).concat(i,",").concat(i,",0,").concat(+(N>180),",").concat(+(f>0),",").concat(
|
|
39
|
-
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(P.x,",").concat(P.y,"Z")}else y+="L".concat(r,",").concat(n,"Z");return y},HB={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},DP=function(t){var r=tw(tw({},HB),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,c=r.forceCornerRadius,u=r.cornerIsExternal,l=r.startAngle,f=r.endAngle,d=r.className;if(o<a||l===f)return null;var h=le("recharts-sector",d),m=o-a,v=Qe(s,m,0,!0),p;return v>0&&Math.abs(l-f)<360?p=UB({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,m/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:l,endAngle:f}):p=NP({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:l,endAngle:f}),O.createElement("path",rh({},te(r,!0),{className:h,d:p,role:"img"}))};function _a(e){"@babel/helpers - typeof";return _a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_a(e)}function nh(){return nh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nh.apply(this,arguments)}function rw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rw(Object(r),!0).forEach(function(n){VB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VB(e,t,r){return t=KB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KB(e){var t=GB(e,"string");return _a(t)=="symbol"?t:t+""}function GB(e,t){if(_a(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_a(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iw={curveBasisClosed:mR,curveBasisOpen:yR,curveBasis:vR,curveBumpX:tR,curveBumpY:rR,curveLinearClosed:gR,curveLinear:sc,curveMonotoneX:bR,curveMonotoneY:xR,curveNatural:wR,curveStep:SR,curveStepAfter:AR,curveStepBefore:OR},go=function(t){return t.x===+t.x&&t.y===+t.y},Fi=function(t){return t.x},zi=function(t){return t.y},YB=function(t,r){if(oe(t))return t;var n="curve".concat(ac(t));return(n==="curveMonotone"||n==="curveBump")&&r?iw["".concat(n).concat(r==="vertical"?"Y":"X")]:iw[n]||sc},XB=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,s=t.layout,c=t.connectNulls,u=c===void 0?!1:c,l=YB(n,s),f=u?a.filter(function(v){return go(v)}):a,d;if(Array.isArray(o)){var h=u?o.filter(function(v){return go(v)}):o,m=f.map(function(v,p){return nw(nw({},v),{},{base:h[p]})});return s==="vertical"?d=co().y(zi).x1(Fi).x0(function(v){return v.base.x}):d=co().x(Fi).y1(zi).y0(function(v){return v.base.y}),d.defined(go).curve(l),d(m)}return s==="vertical"&&Y(o)?d=co().y(zi).x1(Fi).x0(o):Y(o)?d=co().x(Fi).y1(zi).y0(o):d=kA().x(Fi).y(zi),d.defined(go).curve(l),d(f)},Cr=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?XB(t):i;return E.createElement("path",nh({},te(t,!1),Bo(t),{className:le("recharts-curve",r),d:o,ref:a}))},bo={exports:{}},xo={exports:{}},xe={};var aw;function ZB(){if(aw)return xe;aw=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(y){if(typeof y=="object"&&y!==null){var S=y.$$typeof;switch(S){case t:switch(y=y.type,y){case c:case u:case n:case a:case i:case f:return y;default:switch(y=y&&y.$$typeof,y){case s:case l:case m:case h:case o:return y;default:return S}}case r:return S}}}function w(y){return x(y)===u}return xe.AsyncMode=c,xe.ConcurrentMode=u,xe.ContextConsumer=s,xe.ContextProvider=o,xe.Element=t,xe.ForwardRef=l,xe.Fragment=n,xe.Lazy=m,xe.Memo=h,xe.Portal=r,xe.Profiler=a,xe.StrictMode=i,xe.Suspense=f,xe.isAsyncMode=function(y){return w(y)||x(y)===c},xe.isConcurrentMode=w,xe.isContextConsumer=function(y){return x(y)===s},xe.isContextProvider=function(y){return x(y)===o},xe.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},xe.isForwardRef=function(y){return x(y)===l},xe.isFragment=function(y){return x(y)===n},xe.isLazy=function(y){return x(y)===m},xe.isMemo=function(y){return x(y)===h},xe.isPortal=function(y){return x(y)===r},xe.isProfiler=function(y){return x(y)===a},xe.isStrictMode=function(y){return x(y)===i},xe.isSuspense=function(y){return x(y)===f},xe.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===u||y===a||y===i||y===f||y===d||typeof y=="object"&&y!==null&&(y.$$typeof===m||y.$$typeof===h||y.$$typeof===o||y.$$typeof===s||y.$$typeof===l||y.$$typeof===p||y.$$typeof===g||y.$$typeof===b||y.$$typeof===v)},xe.typeOf=x,xe}var we={};var ow;function JB(){return ow||(ow=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(M){return typeof M=="string"||typeof M=="function"||M===n||M===u||M===a||M===i||M===f||M===d||typeof M=="object"&&M!==null&&(M.$$typeof===m||M.$$typeof===h||M.$$typeof===o||M.$$typeof===s||M.$$typeof===l||M.$$typeof===p||M.$$typeof===g||M.$$typeof===b||M.$$typeof===v)}function w(M){if(typeof M=="object"&&M!==null){var ce=M.$$typeof;switch(ce){case t:var V=M.type;switch(V){case c:case u:case n:case a:case i:case f:return V;default:var ye=V&&V.$$typeof;switch(ye){case s:case l:case m:case h:case o:return ye;default:return ce}}case r:return ce}}}var y=c,S=u,A=s,P=o,T=t,R=l,C=n,j=m,k=h,N=r,D=a,$=i,L=f,B=!1;function W(M){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(M)||w(M)===c}function I(M){return w(M)===u}function F(M){return w(M)===s}function U(M){return w(M)===o}function G(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function Z(M){return w(M)===l}function J(M){return w(M)===n}function Q(M){return w(M)===m}function K(M){return w(M)===h}function ee(M){return w(M)===r}function q(M){return w(M)===a}function H(M){return w(M)===i}function X(M){return w(M)===f}we.AsyncMode=y,we.ConcurrentMode=S,we.ContextConsumer=A,we.ContextProvider=P,we.Element=T,we.ForwardRef=R,we.Fragment=C,we.Lazy=j,we.Memo=k,we.Portal=N,we.Profiler=D,we.StrictMode=$,we.Suspense=L,we.isAsyncMode=W,we.isConcurrentMode=I,we.isContextConsumer=F,we.isContextProvider=U,we.isElement=G,we.isForwardRef=Z,we.isFragment=J,we.isLazy=Q,we.isMemo=K,we.isPortal=ee,we.isProfiler=q,we.isStrictMode=H,we.isSuspense=X,we.isValidElementType=x,we.typeOf=w})()),we}var sw;function LP(){return sw||(sw=1,process.env.NODE_ENV==="production"?xo.exports=ZB():xo.exports=JB()),xo.exports}var Ad,cw;function QB(){if(cw)return Ad;cw=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(o).map(function(l){return o[l]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(l){u[l]=l}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ad=i()?Object.assign:function(a,o){for(var s,c=n(a),u,l=1;l<arguments.length;l++){s=Object(arguments[l]);for(var f in s)t.call(s,f)&&(c[f]=s[f]);if(e){u=e(s);for(var d=0;d<u.length;d++)r.call(s,u[d])&&(c[u[d]]=s[u[d]])}}return c},Ad}var _d,uw;function tm(){if(uw)return _d;uw=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return _d=e,_d}var Pd,lw;function BP(){return lw||(lw=1,Pd=Function.call.bind(Object.prototype.hasOwnProperty)),Pd}var Ed,fw;function eq(){if(fw)return Ed;fw=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=tm(),r={},n=BP();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,c,u){if(process.env.NODE_ENV!=="production"){for(var l in a)if(n(a,l)){var f;try{if(typeof a[l]!="function"){var d=Error((c||"React class")+": "+s+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=a[l](o,l,c,s,null,t)}catch(m){f=m}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var h=u?u():"";e("Failed "+s+" type: "+f.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Ed=i,Ed}var Td,dw;function tq(){if(dw)return Td;dw=1;var e=LP(),t=QB(),r=tm(),n=BP(),i=eq(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function o(){return null}return Td=function(s,c){var u=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function f(I){var F=I&&(u&&I[u]||I[l]);if(typeof F=="function")return F}var d="<<anonymous>>",h={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:b(),arrayOf:x,element:w(),elementType:y(),instanceOf:S,node:R(),objectOf:P,oneOf:A,oneOfType:T,shape:j,exact:k};function m(I,F){return I===F?I!==0||1/I===1/F:I!==I&&F!==F}function v(I,F){this.message=I,this.data=F&&typeof F=="object"?F:{},this.stack=""}v.prototype=Error.prototype;function p(I){if(process.env.NODE_ENV!=="production")var F={},U=0;function G(J,Q,K,ee,q,H,X){if(ee=ee||d,H=H||K,X!==r){if(c){var M=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw M.name="Invariant Violation",M}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ce=ee+":"+K;!F[ce]&&U<3&&(a("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+ee+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),F[ce]=!0,U++)}}return Q[K]==null?J?Q[K]===null?new v("The "+q+" `"+H+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new v("The "+q+" `"+H+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:I(Q,K,ee,q,H)}var Z=G.bind(null,!1);return Z.isRequired=G.bind(null,!0),Z}function g(I){function F(U,G,Z,J,Q,K){var ee=U[G],q=$(ee);if(q!==I){var H=L(ee);return new v("Invalid "+J+" `"+Q+"` of type "+("`"+H+"` supplied to `"+Z+"`, expected ")+("`"+I+"`."),{expectedType:I})}return null}return p(F)}function b(){return p(o)}function x(I){function F(U,G,Z,J,Q){if(typeof I!="function")return new v("Property `"+Q+"` of component `"+Z+"` has invalid PropType notation inside arrayOf.");var K=U[G];if(!Array.isArray(K)){var ee=$(K);return new v("Invalid "+J+" `"+Q+"` of type "+("`"+ee+"` supplied to `"+Z+"`, expected an array."))}for(var q=0;q<K.length;q++){var H=I(K,q,Z,J,Q+"["+q+"]",r);if(H instanceof Error)return H}return null}return p(F)}function w(){function I(F,U,G,Z,J){var Q=F[U];if(!s(Q)){var K=$(Q);return new v("Invalid "+Z+" `"+J+"` of type "+("`"+K+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return p(I)}function y(){function I(F,U,G,Z,J){var Q=F[U];if(!e.isValidElementType(Q)){var K=$(Q);return new v("Invalid "+Z+" `"+J+"` of type "+("`"+K+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return p(I)}function S(I){function F(U,G,Z,J,Q){if(!(U[G]instanceof I)){var K=I.name||d,ee=W(U[G]);return new v("Invalid "+J+" `"+Q+"` of type "+("`"+ee+"` supplied to `"+Z+"`, expected ")+("instance of `"+K+"`."))}return null}return p(F)}function A(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function F(U,G,Z,J,Q){for(var K=U[G],ee=0;ee<I.length;ee++)if(m(K,I[ee]))return null;var q=JSON.stringify(I,function(X,M){var ce=L(M);return ce==="symbol"?String(M):M});return new v("Invalid "+J+" `"+Q+"` of value `"+String(K)+"` "+("supplied to `"+Z+"`, expected one of "+q+"."))}return p(F)}function P(I){function F(U,G,Z,J,Q){if(typeof I!="function")return new v("Property `"+Q+"` of component `"+Z+"` has invalid PropType notation inside objectOf.");var K=U[G],ee=$(K);if(ee!=="object")return new v("Invalid "+J+" `"+Q+"` of type "+("`"+ee+"` supplied to `"+Z+"`, expected an object."));for(var q in K)if(n(K,q)){var H=I(K,q,Z,J,Q+"."+q,r);if(H instanceof Error)return H}return null}return p(F)}function T(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var F=0;F<I.length;F++){var U=I[F];if(typeof U!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(U)+" at index "+F+"."),o}function G(Z,J,Q,K,ee){for(var q=[],H=0;H<I.length;H++){var X=I[H],M=X(Z,J,Q,K,ee,r);if(M==null)return null;M.data&&n(M.data,"expectedType")&&q.push(M.data.expectedType)}var ce=q.length>0?", expected one of type ["+q.join(", ")+"]":"";return new v("Invalid "+K+" `"+ee+"` supplied to "+("`"+Q+"`"+ce+"."))}return p(G)}function R(){function I(F,U,G,Z,J){return N(F[U])?null:new v("Invalid "+Z+" `"+J+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return p(I)}function C(I,F,U,G,Z){return new v((I||"React class")+": "+F+" type `"+U+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Z+"`.")}function j(I){function F(U,G,Z,J,Q){var K=U[G],ee=$(K);if(ee!=="object")return new v("Invalid "+J+" `"+Q+"` of type `"+ee+"` "+("supplied to `"+Z+"`, expected `object`."));for(var q in I){var H=I[q];if(typeof H!="function")return C(Z,J,Q,q,L(H));var X=H(K,q,Z,J,Q+"."+q,r);if(X)return X}return null}return p(F)}function k(I){function F(U,G,Z,J,Q){var K=U[G],ee=$(K);if(ee!=="object")return new v("Invalid "+J+" `"+Q+"` of type `"+ee+"` "+("supplied to `"+Z+"`, expected `object`."));var q=t({},U[G],I);for(var H in q){var X=I[H];if(n(I,H)&&typeof X!="function")return C(Z,J,Q,H,L(X));if(!X)return new v("Invalid "+J+" `"+Q+"` key `"+H+"` supplied to `"+Z+"`.\nBad object: "+JSON.stringify(U[G],null," ")+`
|
|
40
|
-
Valid keys: `+JSON.stringify(Object.keys(I),null," "));var M=X(K,H,Z,J,Q+"."+H,r);if(M)return M}return null}return p(F)}function N(I){switch(typeof I){case"number":case"string":case"undefined":return!0;case"boolean":return!I;case"object":if(Array.isArray(I))return I.every(N);if(I===null||s(I))return!0;var F=f(I);if(F){var U=F.call(I),G;if(F!==I.entries){for(;!(G=U.next()).done;)if(!N(G.value))return!1}else for(;!(G=U.next()).done;){var Z=G.value;if(Z&&!N(Z[1]))return!1}}else return!1;return!0;default:return!1}}function D(I,F){return I==="symbol"?!0:F?F["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&F instanceof Symbol:!1}function $(I){var F=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":D(F,I)?"symbol":F}function L(I){if(typeof I>"u"||I===null)return""+I;var F=$(I);if(F==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return F}function B(I){var F=L(I);switch(F){case"array":case"object":return"an "+F;case"boolean":case"date":case"regexp":return"a "+F;default:return F}}function W(I){return!I.constructor||!I.constructor.name?d:I.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Td}var Cd,pw;function
|
|
41
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
42
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
43
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zP(e,t){if(e){if(typeof e=="string")return ah(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ah(e,t)}}function
|
|
44
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
45
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HP(e,t){if(e){if(typeof e=="string")return sh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sh(e,t)}}function sh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function
|
|
46
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
47
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
38
|
+
A`).concat(i,",").concat(i,",0,").concat(+(N>180),",").concat(+(f>0),",").concat(O.x,",").concat(O.y,`
|
|
39
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(P.x,",").concat(P.y,"Z")}else y+="L".concat(r,",").concat(n,"Z");return y},KB={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},DP=function(t){var r=tw(tw({},KB),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,c=r.forceCornerRadius,u=r.cornerIsExternal,l=r.startAngle,f=r.endAngle,d=r.className;if(o<a||l===f)return null;var h=le("recharts-sector",d),m=o-a,v=Qe(s,m,0,!0),p;return v>0&&Math.abs(l-f)<360?p=VB({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,m/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:l,endAngle:f}):p=NP({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:l,endAngle:f}),A.createElement("path",rh({},re(r,!0),{className:h,d:p,role:"img"}))};function _a(e){"@babel/helpers - typeof";return _a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_a(e)}function nh(){return nh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nh.apply(this,arguments)}function rw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rw(Object(r),!0).forEach(function(n){GB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GB(e,t,r){return t=YB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YB(e){var t=XB(e,"string");return _a(t)=="symbol"?t:t+""}function XB(e,t){if(_a(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_a(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iw={curveBasisClosed:gk,curveBasisOpen:bk,curveBasis:yk,curveBumpX:nk,curveBumpY:ik,curveLinearClosed:xk,curveLinear:sc,curveMonotoneX:wk,curveMonotoneY:Sk,curveNatural:Ok,curveStep:Ak,curveStepAfter:Pk,curveStepBefore:_k},go=function(t){return t.x===+t.x&&t.y===+t.y},Fi=function(t){return t.x},zi=function(t){return t.y},ZB=function(t,r){if(oe(t))return t;var n="curve".concat(ac(t));return(n==="curveMonotone"||n==="curveBump")&&r?iw["".concat(n).concat(r==="vertical"?"Y":"X")]:iw[n]||sc},JB=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,s=t.layout,c=t.connectNulls,u=c===void 0?!1:c,l=ZB(n,s),f=u?a.filter(function(v){return go(v)}):a,d;if(Array.isArray(o)){var h=u?o.filter(function(v){return go(v)}):o,m=f.map(function(v,p){return nw(nw({},v),{},{base:h[p]})});return s==="vertical"?d=co().y(zi).x1(Fi).x0(function(v){return v.base.x}):d=co().x(Fi).y1(zi).y0(function(v){return v.base.y}),d.defined(go).curve(l),d(m)}return s==="vertical"&&Y(o)?d=co().y(zi).x1(Fi).x0(o):Y(o)?d=co().x(Fi).y1(zi).y0(o):d=RA().x(Fi).y(zi),d.defined(go).curve(l),d(f)},Cr=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?JB(t):i;return E.createElement("path",nh({},re(t,!1),Bo(t),{className:le("recharts-curve",r),d:o,ref:a}))},bo={exports:{}},xo={exports:{}},xe={};var aw;function QB(){if(aw)return xe;aw=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(y){if(typeof y=="object"&&y!==null){var S=y.$$typeof;switch(S){case t:switch(y=y.type,y){case c:case u:case n:case a:case i:case f:return y;default:switch(y=y&&y.$$typeof,y){case s:case l:case m:case h:case o:return y;default:return S}}case r:return S}}}function w(y){return x(y)===u}return xe.AsyncMode=c,xe.ConcurrentMode=u,xe.ContextConsumer=s,xe.ContextProvider=o,xe.Element=t,xe.ForwardRef=l,xe.Fragment=n,xe.Lazy=m,xe.Memo=h,xe.Portal=r,xe.Profiler=a,xe.StrictMode=i,xe.Suspense=f,xe.isAsyncMode=function(y){return w(y)||x(y)===c},xe.isConcurrentMode=w,xe.isContextConsumer=function(y){return x(y)===s},xe.isContextProvider=function(y){return x(y)===o},xe.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},xe.isForwardRef=function(y){return x(y)===l},xe.isFragment=function(y){return x(y)===n},xe.isLazy=function(y){return x(y)===m},xe.isMemo=function(y){return x(y)===h},xe.isPortal=function(y){return x(y)===r},xe.isProfiler=function(y){return x(y)===a},xe.isStrictMode=function(y){return x(y)===i},xe.isSuspense=function(y){return x(y)===f},xe.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===u||y===a||y===i||y===f||y===d||typeof y=="object"&&y!==null&&(y.$$typeof===m||y.$$typeof===h||y.$$typeof===o||y.$$typeof===s||y.$$typeof===l||y.$$typeof===p||y.$$typeof===g||y.$$typeof===b||y.$$typeof===v)},xe.typeOf=x,xe}var we={};var ow;function eq(){return ow||(ow=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(M){return typeof M=="string"||typeof M=="function"||M===n||M===u||M===a||M===i||M===f||M===d||typeof M=="object"&&M!==null&&(M.$$typeof===m||M.$$typeof===h||M.$$typeof===o||M.$$typeof===s||M.$$typeof===l||M.$$typeof===p||M.$$typeof===g||M.$$typeof===b||M.$$typeof===v)}function w(M){if(typeof M=="object"&&M!==null){var ce=M.$$typeof;switch(ce){case t:var V=M.type;switch(V){case c:case u:case n:case a:case i:case f:return V;default:var ye=V&&V.$$typeof;switch(ye){case s:case l:case m:case h:case o:return ye;default:return ce}}case r:return ce}}}var y=c,S=u,O=s,P=o,T=t,k=l,C=n,j=m,R=h,N=r,D=a,$=i,L=f,B=!1;function W(M){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(M)||w(M)===c}function I(M){return w(M)===u}function F(M){return w(M)===s}function U(M){return w(M)===o}function G(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function Z(M){return w(M)===l}function J(M){return w(M)===n}function Q(M){return w(M)===m}function K(M){return w(M)===h}function ee(M){return w(M)===r}function q(M){return w(M)===a}function H(M){return w(M)===i}function X(M){return w(M)===f}we.AsyncMode=y,we.ConcurrentMode=S,we.ContextConsumer=O,we.ContextProvider=P,we.Element=T,we.ForwardRef=k,we.Fragment=C,we.Lazy=j,we.Memo=R,we.Portal=N,we.Profiler=D,we.StrictMode=$,we.Suspense=L,we.isAsyncMode=W,we.isConcurrentMode=I,we.isContextConsumer=F,we.isContextProvider=U,we.isElement=G,we.isForwardRef=Z,we.isFragment=J,we.isLazy=Q,we.isMemo=K,we.isPortal=ee,we.isProfiler=q,we.isStrictMode=H,we.isSuspense=X,we.isValidElementType=x,we.typeOf=w})()),we}var sw;function LP(){return sw||(sw=1,process.env.NODE_ENV==="production"?xo.exports=QB():xo.exports=eq()),xo.exports}var Ad,cw;function tq(){if(cw)return Ad;cw=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(o).map(function(l){return o[l]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(l){u[l]=l}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ad=i()?Object.assign:function(a,o){for(var s,c=n(a),u,l=1;l<arguments.length;l++){s=Object(arguments[l]);for(var f in s)t.call(s,f)&&(c[f]=s[f]);if(e){u=e(s);for(var d=0;d<u.length;d++)r.call(s,u[d])&&(c[u[d]]=s[u[d]])}}return c},Ad}var _d,uw;function tm(){if(uw)return _d;uw=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return _d=e,_d}var Pd,lw;function BP(){return lw||(lw=1,Pd=Function.call.bind(Object.prototype.hasOwnProperty)),Pd}var Ed,fw;function rq(){if(fw)return Ed;fw=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=tm(),r={},n=BP();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,c,u){if(process.env.NODE_ENV!=="production"){for(var l in a)if(n(a,l)){var f;try{if(typeof a[l]!="function"){var d=Error((c||"React class")+": "+s+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=a[l](o,l,c,s,null,t)}catch(m){f=m}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var h=u?u():"";e("Failed "+s+" type: "+f.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Ed=i,Ed}var Td,dw;function nq(){if(dw)return Td;dw=1;var e=LP(),t=tq(),r=tm(),n=BP(),i=rq(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function o(){return null}return Td=function(s,c){var u=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function f(I){var F=I&&(u&&I[u]||I[l]);if(typeof F=="function")return F}var d="<<anonymous>>",h={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:b(),arrayOf:x,element:w(),elementType:y(),instanceOf:S,node:k(),objectOf:P,oneOf:O,oneOfType:T,shape:j,exact:R};function m(I,F){return I===F?I!==0||1/I===1/F:I!==I&&F!==F}function v(I,F){this.message=I,this.data=F&&typeof F=="object"?F:{},this.stack=""}v.prototype=Error.prototype;function p(I){if(process.env.NODE_ENV!=="production")var F={},U=0;function G(J,Q,K,ee,q,H,X){if(ee=ee||d,H=H||K,X!==r){if(c){var M=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw M.name="Invariant Violation",M}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ce=ee+":"+K;!F[ce]&&U<3&&(a("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+ee+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),F[ce]=!0,U++)}}return Q[K]==null?J?Q[K]===null?new v("The "+q+" `"+H+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new v("The "+q+" `"+H+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:I(Q,K,ee,q,H)}var Z=G.bind(null,!1);return Z.isRequired=G.bind(null,!0),Z}function g(I){function F(U,G,Z,J,Q,K){var ee=U[G],q=$(ee);if(q!==I){var H=L(ee);return new v("Invalid "+J+" `"+Q+"` of type "+("`"+H+"` supplied to `"+Z+"`, expected ")+("`"+I+"`."),{expectedType:I})}return null}return p(F)}function b(){return p(o)}function x(I){function F(U,G,Z,J,Q){if(typeof I!="function")return new v("Property `"+Q+"` of component `"+Z+"` has invalid PropType notation inside arrayOf.");var K=U[G];if(!Array.isArray(K)){var ee=$(K);return new v("Invalid "+J+" `"+Q+"` of type "+("`"+ee+"` supplied to `"+Z+"`, expected an array."))}for(var q=0;q<K.length;q++){var H=I(K,q,Z,J,Q+"["+q+"]",r);if(H instanceof Error)return H}return null}return p(F)}function w(){function I(F,U,G,Z,J){var Q=F[U];if(!s(Q)){var K=$(Q);return new v("Invalid "+Z+" `"+J+"` of type "+("`"+K+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return p(I)}function y(){function I(F,U,G,Z,J){var Q=F[U];if(!e.isValidElementType(Q)){var K=$(Q);return new v("Invalid "+Z+" `"+J+"` of type "+("`"+K+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return p(I)}function S(I){function F(U,G,Z,J,Q){if(!(U[G]instanceof I)){var K=I.name||d,ee=W(U[G]);return new v("Invalid "+J+" `"+Q+"` of type "+("`"+ee+"` supplied to `"+Z+"`, expected ")+("instance of `"+K+"`."))}return null}return p(F)}function O(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function F(U,G,Z,J,Q){for(var K=U[G],ee=0;ee<I.length;ee++)if(m(K,I[ee]))return null;var q=JSON.stringify(I,function(X,M){var ce=L(M);return ce==="symbol"?String(M):M});return new v("Invalid "+J+" `"+Q+"` of value `"+String(K)+"` "+("supplied to `"+Z+"`, expected one of "+q+"."))}return p(F)}function P(I){function F(U,G,Z,J,Q){if(typeof I!="function")return new v("Property `"+Q+"` of component `"+Z+"` has invalid PropType notation inside objectOf.");var K=U[G],ee=$(K);if(ee!=="object")return new v("Invalid "+J+" `"+Q+"` of type "+("`"+ee+"` supplied to `"+Z+"`, expected an object."));for(var q in K)if(n(K,q)){var H=I(K,q,Z,J,Q+"."+q,r);if(H instanceof Error)return H}return null}return p(F)}function T(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var F=0;F<I.length;F++){var U=I[F];if(typeof U!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(U)+" at index "+F+"."),o}function G(Z,J,Q,K,ee){for(var q=[],H=0;H<I.length;H++){var X=I[H],M=X(Z,J,Q,K,ee,r);if(M==null)return null;M.data&&n(M.data,"expectedType")&&q.push(M.data.expectedType)}var ce=q.length>0?", expected one of type ["+q.join(", ")+"]":"";return new v("Invalid "+K+" `"+ee+"` supplied to "+("`"+Q+"`"+ce+"."))}return p(G)}function k(){function I(F,U,G,Z,J){return N(F[U])?null:new v("Invalid "+Z+" `"+J+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return p(I)}function C(I,F,U,G,Z){return new v((I||"React class")+": "+F+" type `"+U+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Z+"`.")}function j(I){function F(U,G,Z,J,Q){var K=U[G],ee=$(K);if(ee!=="object")return new v("Invalid "+J+" `"+Q+"` of type `"+ee+"` "+("supplied to `"+Z+"`, expected `object`."));for(var q in I){var H=I[q];if(typeof H!="function")return C(Z,J,Q,q,L(H));var X=H(K,q,Z,J,Q+"."+q,r);if(X)return X}return null}return p(F)}function R(I){function F(U,G,Z,J,Q){var K=U[G],ee=$(K);if(ee!=="object")return new v("Invalid "+J+" `"+Q+"` of type `"+ee+"` "+("supplied to `"+Z+"`, expected `object`."));var q=t({},U[G],I);for(var H in q){var X=I[H];if(n(I,H)&&typeof X!="function")return C(Z,J,Q,H,L(X));if(!X)return new v("Invalid "+J+" `"+Q+"` key `"+H+"` supplied to `"+Z+"`.\nBad object: "+JSON.stringify(U[G],null," ")+`
|
|
40
|
+
Valid keys: `+JSON.stringify(Object.keys(I),null," "));var M=X(K,H,Z,J,Q+"."+H,r);if(M)return M}return null}return p(F)}function N(I){switch(typeof I){case"number":case"string":case"undefined":return!0;case"boolean":return!I;case"object":if(Array.isArray(I))return I.every(N);if(I===null||s(I))return!0;var F=f(I);if(F){var U=F.call(I),G;if(F!==I.entries){for(;!(G=U.next()).done;)if(!N(G.value))return!1}else for(;!(G=U.next()).done;){var Z=G.value;if(Z&&!N(Z[1]))return!1}}else return!1;return!0;default:return!1}}function D(I,F){return I==="symbol"?!0:F?F["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&F instanceof Symbol:!1}function $(I){var F=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":D(F,I)?"symbol":F}function L(I){if(typeof I>"u"||I===null)return""+I;var F=$(I);if(F==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return F}function B(I){var F=L(I);switch(F){case"array":case"object":return"an "+F;case"boolean":case"date":case"regexp":return"a "+F;default:return F}}function W(I){return!I.constructor||!I.constructor.name?d:I.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Td}var Cd,pw;function iq(){if(pw)return Cd;pw=1;var e=tm();function t(){}function r(){}return r.resetWarningCache=t,Cd=function(){function n(o,s,c,u,l,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Cd}var hw;function aq(){if(hw)return bo.exports;if(hw=1,process.env.NODE_ENV!=="production"){var e=LP(),t=!0;bo.exports=nq()(e.isElement,t)}else bo.exports=iq()();return bo.exports}var oq=aq();const Se=Oe(oq),{getOwnPropertyNames:sq,getOwnPropertySymbols:cq}=Object,{hasOwnProperty:uq}=Object.prototype;function jd(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function wo(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,o=a.get(r),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);const c=e(r,n,i);return a.delete(r),a.delete(n),c}}function lq(e){return e?.[Symbol.toStringTag]}function vw(e){return sq(e).concat(cq(e))}const fq=Object.hasOwn||((e,t)=>uq.call(e,t));function bn(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const dq="__v",pq="__o",hq="_owner",{getOwnPropertyDescriptor:mw,keys:yw}=Object;function vq(e,t){return e.byteLength===t.byteLength&&ds(new Uint8Array(e),new Uint8Array(t))}function mq(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function yq(e,t){return e.byteLength===t.byteLength&&ds(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function gq(e,t){return bn(e.getTime(),t.getTime())}function bq(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function xq(e,t){return e===t}function gw(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,s,c=0;for(;(o=a.next())&&!o.done;){const u=t.entries();let l=!1,f=0;for(;(s=u.next())&&!s.done;){if(i[f]){f++;continue}const d=o.value,h=s.value;if(r.equals(d[0],h[0],c,f,e,t,r)&&r.equals(d[1],h[1],d[0],h[0],e,t,r)){l=i[f]=!0;break}f++}if(!l)return!1;c++}return!0}const wq=bn;function Sq(e,t,r){const n=yw(e);let i=n.length;if(yw(t).length!==i)return!1;for(;i-- >0;)if(!qP(e,t,r,n[i]))return!1;return!0}function Wi(e,t,r){const n=vw(e);let i=n.length;if(vw(t).length!==i)return!1;let a,o,s;for(;i-- >0;)if(a=n[i],!qP(e,t,r,a)||(o=mw(e,a),s=mw(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function Oq(e,t){return bn(e.valueOf(),t.valueOf())}function Aq(e,t){return e.source===t.source&&e.flags===t.flags}function bw(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,s;for(;(o=a.next())&&!o.done;){const c=t.values();let u=!1,l=0;for(;(s=c.next())&&!s.done;){if(!i[l]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){u=i[l]=!0;break}l++}if(!u)return!1}return!0}function ds(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function _q(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function qP(e,t,r,n){return(n===hq||n===pq||n===dq)&&(e.$$typeof||t.$$typeof)?!0:fq(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const Pq="[object ArrayBuffer]",Eq="[object Arguments]",Tq="[object Boolean]",Cq="[object DataView]",jq="[object Date]",Iq="[object Error]",kq="[object Map]",Rq="[object Number]",Mq="[object Object]",$q="[object RegExp]",Nq="[object Set]",Dq="[object String]",Lq={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},Bq="[object URL]",qq=Object.prototype.toString;function Fq({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:c,arePrimitiveWrappersEqual:u,areRegExpsEqual:l,areSetsEqual:f,areTypedArraysEqual:d,areUrlsEqual:h,unknownTagComparators:m}){return function(p,g,b){if(p===g)return!0;if(p==null||g==null)return!1;const x=typeof p;if(x!==typeof g)return!1;if(x!=="object")return x==="number"?s(p,g,b):x==="function"?a(p,g,b):!1;const w=p.constructor;if(w!==g.constructor)return!1;if(w===Object)return c(p,g,b);if(Array.isArray(p))return t(p,g,b);if(w===Date)return n(p,g,b);if(w===RegExp)return l(p,g,b);if(w===Map)return o(p,g,b);if(w===Set)return f(p,g,b);const y=qq.call(p);if(y===jq)return n(p,g,b);if(y===$q)return l(p,g,b);if(y===kq)return o(p,g,b);if(y===Nq)return f(p,g,b);if(y===Mq)return typeof p.then!="function"&&typeof g.then!="function"&&c(p,g,b);if(y===Bq)return h(p,g,b);if(y===Iq)return i(p,g,b);if(y===Eq)return c(p,g,b);if(Lq[y])return d(p,g,b);if(y===Pq)return e(p,g,b);if(y===Cq)return r(p,g,b);if(y===Tq||y===Rq||y===Dq)return u(p,g,b);if(m){let S=m[y];if(!S){const O=lq(p);O&&(S=m[O])}if(S)return S(p,g,b)}return!1}}function zq({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:vq,areArraysEqual:r?Wi:mq,areDataViewsEqual:yq,areDatesEqual:gq,areErrorsEqual:bq,areFunctionsEqual:xq,areMapsEqual:r?jd(gw,Wi):gw,areNumbersEqual:wq,areObjectsEqual:r?Wi:Sq,arePrimitiveWrappersEqual:Oq,areRegExpsEqual:Aq,areSetsEqual:r?jd(bw,Wi):bw,areTypedArraysEqual:r?jd(ds,Wi):ds,areUrlsEqual:_q,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=wo(n.areArraysEqual),a=wo(n.areMapsEqual),o=wo(n.areObjectsEqual),s=wo(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:s})}return n}function Wq(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function Uq({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(s,c){const{cache:u=e?new WeakMap:void 0,meta:l}=r();return t(s,c,{cache:u,equals:n,meta:l,strict:i})};if(e)return function(s,c){return t(s,c,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(s,c){return t(s,c,a)}}const Hq=qr();qr({strict:!0});qr({circular:!0});qr({circular:!0,strict:!0});qr({createInternalComparator:()=>bn});qr({strict:!0,createInternalComparator:()=>bn});qr({circular:!0,createInternalComparator:()=>bn});qr({circular:!0,createInternalComparator:()=>bn,strict:!0});function qr(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=zq(e),o=Fq(a),s=r?r(o):Wq(o);return Uq({circular:t,comparator:o,createState:n,equals:s,strict:i})}function Vq(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function xw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):Vq(i)};requestAnimationFrame(n)}function ih(e){"@babel/helpers - typeof";return ih=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ih(e)}function Kq(e){return Zq(e)||Xq(e)||Yq(e)||Gq()}function Gq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
41
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yq(e,t){if(e){if(typeof e=="string")return ww(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ww(e,t)}}function ww(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Xq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zq(e){if(Array.isArray(e))return e}function Jq(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,s=Kq(o),c=s[0],u=s.slice(1);if(typeof c=="number"){xw(i.bind(null,u),c);return}i(c),xw(i.bind(null,u));return}ih(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function Pa(e){"@babel/helpers - typeof";return Pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pa(e)}function Sw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ow(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sw(Object(r),!0).forEach(function(n){FP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FP(e,t,r){return t=Qq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qq(e){var t=eF(e,"string");return Pa(t)==="symbol"?t:String(t)}function eF(e,t){if(Pa(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pa(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tF=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},rF=function(t){return t},nF=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Ji=function(t,r){return Object.keys(r).reduce(function(n,i){return Ow(Ow({},n),{},FP({},i,t(i,r[i])))},{})},Aw=function(t,r,n){return t.map(function(i){return"".concat(nF(i)," ").concat(r,"ms ").concat(n)}).join(",")},iF=process.env.NODE_ENV!=="production",ps=function(t,r,n,i,a,o,s,c){if(iF&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,a,o,s,c],l=0;console.warn(r.replace(/%s/g,function(){return u[l++]}))}};function aF(e,t){return cF(e)||sF(e,t)||zP(e,t)||oF()}function oF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
42
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sF(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function cF(e){if(Array.isArray(e))return e}function uF(e){return dF(e)||fF(e)||zP(e)||lF()}function lF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
43
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zP(e,t){if(e){if(typeof e=="string")return ah(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ah(e,t)}}function fF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dF(e){if(Array.isArray(e))return ah(e)}function ah(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var hs=1e-4,WP=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},UP=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},_w=function(t,r){return function(n){var i=WP(t,r);return UP(i,n)}},pF=function(t,r){return function(n){var i=WP(t,r),a=[].concat(uF(i.map(function(o,s){return o*s}).slice(1)),[0]);return UP(a,n)}},Pw=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,s=1;break;case"ease":i=.25,a=.1,o=.25,s=1;break;case"ease-in":i=.42,a=0,o=1,s=1;break;case"ease-out":i=.42,a=0,o=.58,s=1;break;case"ease-in-out":i=0,a=0,o=.58,s=1;break;default:{var c=r[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var u=c[1].split(")")[0].split(",").map(function(p){return parseFloat(p)}),l=aF(u,4);i=l[0],a=l[1],o=l[2],s=l[3]}else ps(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",r)}}ps([i,o,a,s].every(function(p){return typeof p=="number"&&p>=0&&p<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var f=_w(i,o),d=_w(a,s),h=pF(i,o),m=function(g){return g>1?1:g<0?0:g},v=function(g){for(var b=g>1?1:g,x=b,w=0;w<8;++w){var y=f(x)-b,S=h(x);if(Math.abs(y-b)<hs||S<hs)return d(x);x=m(x-y/S)}return d(x)};return v.isStepper=!1,v},hF=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,c=function(l,f,d){var h=-(l-f)*n,m=d*a,v=d+(h-m)*s/1e3,p=d*s/1e3+l;return Math.abs(p-f)<hs&&Math.abs(v)<hs?[f,0]:[p,v]};return c.isStepper=!0,c.dt=s,c},vF=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Pw(i);case"spring":return hF();default:if(i.split("(")[0]==="cubic-bezier")return Pw(i);ps(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",r)}return typeof i=="function"?i:(ps(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function Ea(e){"@babel/helpers - typeof";return Ea=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ea(e)}function Ew(e){return gF(e)||yF(e)||HP(e)||mF()}function mF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
44
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gF(e){if(Array.isArray(e))return sh(e)}function Tw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tw(Object(r),!0).forEach(function(n){oh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oh(e,t,r){return t=bF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bF(e){var t=xF(e,"string");return Ea(t)==="symbol"?t:String(t)}function xF(e,t){if(Ea(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ea(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wF(e,t){return AF(e)||OF(e,t)||HP(e,t)||SF()}function SF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
45
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HP(e,t){if(e){if(typeof e=="string")return sh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sh(e,t)}}function sh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function OF(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function AF(e){if(Array.isArray(e))return e}var vs=function(t,r,n){return t+(r-t)*n},ch=function(t){var r=t.from,n=t.to;return r!==n},_F=function e(t,r,n){var i=Ji(function(a,o){if(ch(o)){var s=t(o.from,o.to,o.velocity),c=wF(s,2),u=c[0],l=c[1];return Ke(Ke({},o),{},{from:u,velocity:l})}return o},r);return n<1?Ji(function(a,o){return ch(o)?Ke(Ke({},o),{},{velocity:vs(o.velocity,i[a].velocity,n),from:vs(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const PF=(function(e,t,r,n,i){var a=tF(e,t),o=a.reduce(function(p,g){return Ke(Ke({},p),{},oh({},g,[e[g],t[g]]))},{}),s=a.reduce(function(p,g){return Ke(Ke({},p),{},oh({},g,{from:e[g],velocity:0,to:t[g]}))},{}),c=-1,u,l,f=function(){return null},d=function(){return Ji(function(g,b){return b.from},s)},h=function(){return!Object.values(s).filter(ch).length},m=function(g){u||(u=g);var b=g-u,x=b/r.dt;s=_F(r,s,x),i(Ke(Ke(Ke({},e),t),d())),u=g,h()||(c=requestAnimationFrame(f))},v=function(g){l||(l=g);var b=(g-l)/n,x=Ji(function(y,S){return vs.apply(void 0,Ew(S).concat([r(b)]))},o);if(i(Ke(Ke(Ke({},e),t),x)),b<1)c=requestAnimationFrame(f);else{var w=Ji(function(y,S){return vs.apply(void 0,Ew(S).concat([r(1)]))},o);i(Ke(Ke(Ke({},e),t),w))}};return f=r.isStepper?m:v,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(c)}}});function Yn(e){"@babel/helpers - typeof";return Yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yn(e)}var EF=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function TF(e,t){if(e==null)return{};var r=CF(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CF(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Id(e){return RF(e)||kF(e)||IF(e)||jF()}function jF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
46
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IF(e,t){if(e){if(typeof e=="string")return uh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uh(e,t)}}function kF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function RF(e){if(Array.isArray(e))return uh(e)}function uh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Cw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ot(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cw(Object(r),!0).forEach(function(n){Ki(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ki(e,t,r){return t=VP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $F(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,VP(n.key),n)}}function NF(e,t,r){return t&&$F(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function VP(e){var t=DF(e,"string");return Yn(t)==="symbol"?t:String(t)}function DF(e,t){if(Yn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lh(e,t)}function lh(e,t){return lh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},lh(e,t)}function BF(e){var t=qF();return function(){var n=ms(e),i;if(t){var a=ms(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return fh(this,i)}}function fh(e,t){if(t&&(Yn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dh(e)}function dh(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qF(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ms(e){return ms=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ms(e)}var dt=(function(e){LF(r,e);var t=BF(r);function r(n,i){var a;MF(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,c=o.attributeName,u=o.from,l=o.to,f=o.steps,d=o.children,h=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(dh(a)),a.changeStyle=a.changeStyle.bind(dh(a)),!s||h<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:l}),fh(a);if(f&&f.length)a.state={style:f[0].style};else if(u){if(typeof d=="function")return a.state={style:u},fh(a);a.state={style:c?Ki({},c,u):u}}else a.state={style:{}};return a}return NF(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,c=a.attributeName,u=a.shouldReAnimate,l=a.to,f=a.from,d=this.state.style;if(s){if(!o){var h={style:c?Ki({},c,l):l};this.state&&d&&(c&&d[c]!==l||!c&&d!==l)&&this.setState(h);return}if(!(Hq(i.to,l)&&i.canBegin&&i.isActive)){var m=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=m||u?f:i.to;if(this.state&&d){var p={style:c?Ki({},c,v):v};(c&&d[c]!==v||!c&&d!==v)&&this.setState(p)}this.runAnimation(Ot(Ot({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,c=i.duration,u=i.easing,l=i.begin,f=i.onAnimationEnd,d=i.onAnimationStart,h=PF(o,s,vF(u),c,this.changeStyle),m=function(){a.stopJSAnimation=h()};this.manager.start([d,l,m,c,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,c=i.onAnimationStart,u=o[0],l=u.style,f=u.duration,d=f===void 0?0:f,h=function(v,p,g){if(g===0)return v;var b=p.duration,x=p.easing,w=x===void 0?"ease":x,y=p.style,S=p.properties,O=p.onAnimationEnd,P=g>0?o[g-1]:p,T=S||Object.keys(y);if(typeof w=="function"||w==="spring")return[].concat(Id(v),[a.runJSAnimation.bind(a,{from:P.style,to:y,duration:b,easing:w}),b]);var k=Aw(T,b,w),C=Ot(Ot(Ot({},P.style),y),{},{transition:k});return[].concat(Id(v),[C,b,O]).filter(rF)};return this.manager.start([c].concat(Id(o.reduce(h,[l,Math.max(d,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Jq());var a=i.begin,o=i.duration,s=i.attributeName,c=i.to,u=i.easing,l=i.onAnimationStart,f=i.onAnimationEnd,d=i.steps,h=i.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof u=="function"||typeof h=="function"||u==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var v=s?Ki({},s,c):c,p=Aw(Object.keys(v),o,u);m.start([l,a,Ot(Ot({},v),{},{transition:p}),o,f])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var c=TF(i,EF),u=A.Children.count(a),l=this.state.style;if(typeof a=="function")return a(l);if(!s||u===0||o<=0)return a;var f=function(h){var m=h.props,v=m.style,p=v===void 0?{}:v,g=m.className,b=A.cloneElement(h,Ot(Ot({},c),{},{style:Ot(Ot({},p),l),className:g}));return b};return u===1?f(A.Children.only(a)):A.createElement("div",null,A.Children.map(a,function(d){return f(d)}))}}]),r})(A.PureComponent);dt.displayName="Animate";dt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};dt.propTypes={from:Se.oneOfType([Se.object,Se.string]),to:Se.oneOfType([Se.object,Se.string]),attributeName:Se.string,duration:Se.number,begin:Se.number,easing:Se.oneOfType([Se.string,Se.func]),steps:Se.arrayOf(Se.shape({duration:Se.number.isRequired,style:Se.object.isRequired,easing:Se.oneOfType([Se.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Se.func]),properties:Se.arrayOf("string"),onAnimationEnd:Se.func})),children:Se.oneOfType([Se.node,Se.func]),isActive:Se.bool,canBegin:Se.bool,onAnimationEnd:Se.func,shouldReAnimate:Se.bool,onAnimationStart:Se.func,onAnimationReStart:Se.func};function Ta(e){"@babel/helpers - typeof";return Ta=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ta(e)}function ys(){return ys=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ys.apply(this,arguments)}function FF(e,t){return HF(e)||UF(e,t)||WF(e,t)||zF()}function zF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
47
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WF(e,t){if(e){if(typeof e=="string")return jw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jw(e,t)}}function jw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function UF(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function HF(e){if(Array.isArray(e))return e}function Iw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Iw(Object(r),!0).forEach(function(n){VF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Iw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VF(e,t,r){return t=KF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KF(e){var t=GF(e,"string");return Ta(t)=="symbol"?t:t+""}function GF(e,t){if(Ta(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ta(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rw=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,c=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<0?1:0,l;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],d=0,h=4;d<h;d++)f[d]=a[d]>o?o:a[d];l="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(l+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+c*f[0],",").concat(r)),l+="L ".concat(t+n-c*f[1],",").concat(r),f[1]>0&&(l+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`,
|
|
48
48
|
`).concat(t+n,",").concat(r+s*f[1])),l+="L ".concat(t+n,",").concat(r+i-s*f[2]),f[2]>0&&(l+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`,
|
|
49
49
|
`).concat(t+n-c*f[2],",").concat(r+i)),l+="L ".concat(t+c*f[3],",").concat(r+i),f[3]>0&&(l+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`,
|
|
50
50
|
`).concat(t,",").concat(r+i-s*f[3])),l+="Z"}else if(o>0&&a===+a&&a>0){var m=Math.min(o,a);l="M ".concat(t,",").concat(r+s*m,`
|
|
@@ -54,16 +54,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
54
54
|
L `).concat(t+n,",").concat(r+i-s*m,`
|
|
55
55
|
A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+n-c*m,",").concat(r+i,`
|
|
56
56
|
L `).concat(t+c*m,",").concat(r+i,`
|
|
57
|
-
A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*m," Z")}else l="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return l},
|
|
58
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QF(e,t){if(e){if(typeof e=="string")return ph(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ph(e,t)}}function ez(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tz(e){if(Array.isArray(e))return ph(e)}function ph(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var $w=function(t){return t&&t.x===+t.x&&t.y===+t.y},rz=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){$w(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),$w(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Qi=function(t,r){var n=rz(t);r&&(n=[n.reduce(function(a,o){return[].concat(Mw(a),Mw(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,s,c){return"".concat(o).concat(c===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},nz=function(t,r,n){var i=Qi(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Qi(r.reverse(),n).slice(1))},KP=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=XF(t,YF);if(!r||!r.length)return null;var s=le("recharts-polygon",n);if(i&&i.length){var c=o.stroke&&o.stroke!=="none",u=nz(r,i,a);return O.createElement("g",{className:s},O.createElement("path",jn({},te(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),c?O.createElement("path",jn({},te(o,!0),{fill:"none",d:Qi(r,a)})):null,c?O.createElement("path",jn({},te(o,!0),{fill:"none",d:Qi(i,a)})):null)}var l=Qi(r,a);return O.createElement("path",jn({},te(o,!0),{fill:l.slice(-1)==="Z"?o.fill:"none",className:s,d:l}))};function hh(){return hh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hh.apply(this,arguments)}var Pi=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=le("recharts-dot",a);return r===+r&&n===+n&&i===+i?E.createElement("circle",hh({},te(t,!1),Bo(t),{className:o,cx:r,cy:n,r:i})):null};function Ca(e){"@babel/helpers - typeof";return Ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ca(e)}var iz=["x","y","top","left","width","height","className"];function vh(){return vh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vh.apply(this,arguments)}function Nw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function az(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nw(Object(r),!0).forEach(function(n){oz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oz(e,t,r){return t=sz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sz(e){var t=cz(e,"string");return Ca(t)=="symbol"?t:t+""}function cz(e,t){if(Ca(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ca(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uz(e,t){if(e==null)return{};var r=lz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var fz=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},dz=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,c=t.left,u=c===void 0?0:c,l=t.width,f=l===void 0?0:l,d=t.height,h=d===void 0?0:d,m=t.className,v=uz(t,iz),p=az({x:n,y:a,top:s,left:u,width:f,height:h},v);return!Y(n)||!Y(a)||!Y(f)||!Y(h)||!Y(s)||!Y(u)?null:O.createElement("path",vh({},te(p,!0),{className:le("recharts-cross",m),d:fz(n,a,f,h,s,u)}))},pz=["cx","cy","innerRadius","outerRadius","gridType","radialLines"];function ja(e){"@babel/helpers - typeof";return ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ja(e)}function hz(e,t){if(e==null)return{};var r=vz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function fr(){return fr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fr.apply(this,arguments)}function Dw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ia(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dw(Object(r),!0).forEach(function(n){mz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mz(e,t,r){return t=yz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yz(e){var t=gz(e,"string");return ja(t)=="symbol"?t:t+""}function gz(e,t){if(ja(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ja(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bz=function(t,r,n,i){var a="";return i.forEach(function(o,s){var c=me(r,n,t,o);s?a+="L ".concat(c.x,",").concat(c.y):a+="M ".concat(c.x,",").concat(c.y)}),a+="Z",a},xz=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.polarAngles,s=t.radialLines;if(!o||!o.length||!s)return null;var c=Ia({stroke:"#ccc"},te(t,!1));return O.createElement("g",{className:"recharts-polar-grid-angle"},o.map(function(u){var l=me(r,n,i,u),f=me(r,n,a,u);return O.createElement("line",fr({},c,{key:"line-".concat(u),x1:l.x,y1:l.y,x2:f.x,y2:f.y}))}))},wz=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.index,o=Ia(Ia({stroke:"#ccc"},te(t,!1)),{},{fill:"none"});return O.createElement("circle",fr({},o,{className:le("recharts-polar-grid-concentric-circle",t.className),key:"circle-".concat(a),cx:r,cy:n,r:i}))},Sz=function(t){var r=t.radius,n=t.index,i=Ia(Ia({stroke:"#ccc"},te(t,!1)),{},{fill:"none"});return O.createElement("path",fr({},i,{className:le("recharts-polar-grid-concentric-polygon",t.className),key:"path-".concat(n),d:bz(r,t.cx,t.cy,t.polarAngles)}))},Oz=function(t){var r=t.polarRadius,n=t.gridType;return!r||!r.length?null:O.createElement("g",{className:"recharts-polar-grid-concentric"},r.map(function(i,a){var o=a;return n==="circle"?O.createElement(wz,fr({key:o},t,{radius:i,index:a})):O.createElement(Sz,fr({key:o},t,{radius:i,index:a}))}))},GP=function(t){var r=t.cx,n=r===void 0?0:r,i=t.cy,a=i===void 0?0:i,o=t.innerRadius,s=o===void 0?0:o,c=t.outerRadius,u=c===void 0?0:c,l=t.gridType,f=l===void 0?"polygon":l,d=t.radialLines,h=d===void 0?!0:d,m=hz(t,pz);return u<=0?null:O.createElement("g",{className:"recharts-polar-grid"},O.createElement(xz,fr({cx:n,cy:a,innerRadius:s,outerRadius:u,gridType:f,radialLines:h},m)),O.createElement(Oz,fr({cx:n,cy:a,innerRadius:s,outerRadius:u,gridType:f,radialLines:h},m)))};GP.displayName="PolarGrid";var Rd,Lw;function Az(){if(Lw)return Rd;Lw=1;var e=bc(),t=nP(),r=Kt();function n(i,a){return i&&i.length?e(i,r(a,2),t):void 0}return Rd=n,Rd}var _z=Az();const Pz=Oe(_z);var kd,Bw;function Ez(){if(Bw)return kd;Bw=1;var e=bc(),t=Kt(),r=iP();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return kd=n,kd}var Tz=Ez();const Cz=Oe(Tz);var jz=["cx","cy","angle","ticks","axisLine"],Iz=["ticks","tick","angle","tickFormatter","stroke"];function Xn(e){"@babel/helpers - typeof";return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xn(e)}function ea(){return ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ea.apply(this,arguments)}function qw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qw(Object(r),!0).forEach(function(n){Oc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fw(e,t){if(e==null)return{};var r=Rz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Rz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function kz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,XP(n.key),n)}}function Mz(e,t,r){return t&&zw(e.prototype,t),r&&zw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function $z(e,t,r){return t=gs(t),Nz(e,YP()?Reflect.construct(t,r||[],gs(e).constructor):t.apply(e,r))}function Nz(e,t){if(t&&(Xn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dz(e)}function Dz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YP=function(){return!!e})()}function gs(e){return gs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gs(e)}function Lz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mh(e,t)}function mh(e,t){return mh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mh(e,t)}function Oc(e,t,r){return t=XP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XP(e){var t=Bz(e,"string");return Xn(t)=="symbol"?t:t+""}function Bz(e,t){if(Xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ei=(function(e){function t(){return kz(this,t),$z(this,t,arguments)}return Lz(t,e),Mz(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,s=a.cx,c=a.cy;return me(s,c,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,c=Pz(s,function(l){return l.coordinate||0}),u=Cz(s,function(l){return l.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:u.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,c=n.axisLine,u=Fw(n,jz),l=s.reduce(function(m,v){return[Math.min(m[0],v.coordinate),Math.max(m[1],v.coordinate)]},[1/0,-1/0]),f=me(i,a,l[0],o),d=me(i,a,l[1],o),h=Gr(Gr(Gr({},te(u,!1)),{},{fill:"none"},te(c,!1)),{},{x1:f.x,y1:f.y,x2:d.x,y2:d.y});return O.createElement("line",ea({className:"recharts-polar-radius-axis-line"},h))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.angle,c=i.tickFormatter,u=i.stroke,l=Fw(i,Iz),f=this.getTickTextAnchor(),d=te(l,!1),h=te(o,!1),m=a.map(function(v,p){var g=n.getTickValueCoord(v),b=Gr(Gr(Gr(Gr({textAnchor:f,transform:"rotate(".concat(90-s,", ").concat(g.x,", ").concat(g.y,")")},d),{},{stroke:"none",fill:u},h),{},{index:p},g),{},{payload:v});return O.createElement(fe,ea({className:le("recharts-polar-radius-axis-tick",kP(o)),key:"tick-".concat(v.coordinate)},Ir(n.props,v,p)),t.renderTickItem(o,b,c?c(v.value,p):v.value))});return O.createElement(fe,{className:"recharts-polar-radius-axis-ticks"},m)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:O.createElement(fe,{className:le("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),He.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return O.isValidElement(n)?o=O.cloneElement(n,i):oe(n)?o=n(i):o=O.createElement(cn,ea({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])})(O.PureComponent);Oc(Ei,"displayName","PolarRadiusAxis");Oc(Ei,"axisType","radiusAxis");Oc(Ei,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Zn(e){"@babel/helpers - typeof";return Zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zn(e)}function Jr(){return Jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jr.apply(this,arguments)}function Ww(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Yr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ww(Object(r),!0).forEach(function(n){Ac(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ww(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,JP(n.key),n)}}function Fz(e,t,r){return t&&Uw(e.prototype,t),r&&Uw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function zz(e,t,r){return t=bs(t),Wz(e,ZP()?Reflect.construct(t,r||[],bs(e).constructor):t.apply(e,r))}function Wz(e,t){if(t&&(Zn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Uz(e)}function Uz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZP=function(){return!!e})()}function bs(e){return bs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},bs(e)}function Hz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yh(e,t)}function yh(e,t){return yh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},yh(e,t)}function Ac(e,t,r){return t=JP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JP(e){var t=Vz(e,"string");return Zn(t)=="symbol"?t:t+""}function Vz(e,t){if(Zn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Kz=Math.PI/180,Hw=1e-5,Ti=(function(e){function t(){return qz(this,t),zz(this,t,arguments)}return Hz(t,e),Fz(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,s=i.radius,c=i.orientation,u=i.tickSize,l=u||8,f=me(a,o,s,n.coordinate),d=me(a,o,s+(c==="inner"?-1:1)*l,n.coordinate);return{x1:f.x,y1:f.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*Kz),o;return a>Hw?o=i==="outer"?"start":"end":a<-Hw?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,s=n.axisLine,c=n.axisLineType,u=Yr(Yr({},te(this.props,!1)),{},{fill:"none"},te(s,!1));if(c==="circle")return O.createElement(Pi,Jr({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:a,r:o}));var l=this.props.ticks,f=l.map(function(d){return me(i,a,o,d.coordinate)});return O.createElement(KP,Jr({className:"recharts-polar-angle-axis-line"},u,{points:f}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.tickLine,c=i.tickFormatter,u=i.stroke,l=te(this.props,!1),f=te(o,!1),d=Yr(Yr({},l),{},{fill:"none"},te(s,!1)),h=a.map(function(m,v){var p=n.getTickLineCoord(m),g=n.getTickTextAnchor(m),b=Yr(Yr(Yr({textAnchor:g},l),{},{stroke:"none",fill:u},f),{},{index:v,payload:m,x:p.x2,y:p.y2});return O.createElement(fe,Jr({className:le("recharts-polar-angle-axis-tick",kP(o)),key:"tick-".concat(m.coordinate)},Ir(n.props,m,v)),s&&O.createElement("line",Jr({className:"recharts-polar-angle-axis-tick-line"},d,p)),o&&t.renderTickItem(o,b,c?c(m.value,v):m.value))});return O.createElement(fe,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:O.createElement(fe,{className:le("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return O.isValidElement(n)?o=O.cloneElement(n,i):oe(n)?o=n(i):o=O.createElement(cn,Jr({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])})(O.PureComponent);Ac(Ti,"displayName","PolarAngleAxis");Ac(Ti,"axisType","angleAxis");Ac(Ti,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Md,Vw;function Gz(){if(Vw)return Md;Vw=1;var e=r_(),t=e(Object.getPrototypeOf,Object);return Md=t,Md}var $d,Kw;function Yz(){if(Kw)return $d;Kw=1;var e=vr(),t=Gz(),r=mr(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,s=a.hasOwnProperty,c=o.call(Object);function u(l){if(!r(l)||e(l)!=n)return!1;var f=t(l);if(f===null)return!0;var d=s.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&o.call(d)==c}return $d=u,$d}var Xz=Yz();const Zz=Oe(Xz);var Nd,Gw;function Jz(){if(Gw)return Nd;Gw=1;var e=vr(),t=mr(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Nd=n,Nd}var Qz=Jz();const eW=Oe(Qz);function Ra(e){"@babel/helpers - typeof";return Ra=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ra(e)}function xs(){return xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xs.apply(this,arguments)}function tW(e,t){return aW(e)||iW(e,t)||nW(e,t)||rW()}function rW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
59
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nW(e,t){if(e){if(typeof e=="string")return Yw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yw(e,t)}}function Yw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function iW(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function aW(e){if(Array.isArray(e))return e}function Xw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xw(Object(r),!0).forEach(function(n){oW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oW(e,t,r){return t=sW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sW(e){var t=cW(e,"string");return Ra(t)=="symbol"?t:t+""}function cW(e,t){if(Ra(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ra(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jw=function(t,r,n,i,a){var o=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+a),s+="L ".concat(t+n-o/2-i,",").concat(r+a),s+="L ".concat(t,",").concat(r," Z"),s},uW={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},lW=function(t){var r=Zw(Zw({},uW),t),n=O.useRef(),i=O.useState(-1),a=tW(i,2),o=a[0],s=a[1];O.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&s(x)}catch{}},[]);var c=r.x,u=r.y,l=r.upperWidth,f=r.lowerWidth,d=r.height,h=r.className,m=r.animationEasing,v=r.animationDuration,p=r.animationBegin,g=r.isUpdateAnimationActive;if(c!==+c||u!==+u||l!==+l||f!==+f||d!==+d||l===0&&f===0||d===0)return null;var b=le("recharts-trapezoid",h);return g?O.createElement(dt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:c,y:u},to:{upperWidth:l,lowerWidth:f,height:d,x:c,y:u},duration:v,animationEasing:m,isActive:g},function(x){var w=x.upperWidth,y=x.lowerWidth,S=x.height,A=x.x,P=x.y;return O.createElement(dt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,easing:m},O.createElement("path",xs({},te(r,!0),{className:b,d:Jw(A,P,w,y,S),ref:n})))}):O.createElement("g",null,O.createElement("path",xs({},te(r,!0),{className:b,d:Jw(c,u,l,f,d)})))},fW=["option","shapeType","propTransformer","activeClassName","isActive"];function ka(e){"@babel/helpers - typeof";return ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ka(e)}function dW(e,t){if(e==null)return{};var r=pW(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Qw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ws(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qw(Object(r),!0).forEach(function(n){hW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hW(e,t,r){return t=vW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vW(e){var t=mW(e,"string");return ka(t)=="symbol"?t:t+""}function mW(e,t){if(ka(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ka(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yW(e,t){return ws(ws({},t),e)}function gW(e,t){return e==="symbols"}function eS(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return O.createElement(rm,r);case"trapezoid":return O.createElement(lW,r);case"sector":return O.createElement(DP,r);case"symbols":if(gW(t))return O.createElement(uc,r);break;default:return null}}function bW(e){return O.isValidElement(e)?e.props:e}function Ss(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?yW:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,c=dW(e,fW),u;if(O.isValidElement(t))u=O.cloneElement(t,ws(ws({},c),bW(t)));else if(oe(t))u=t(c);else if(Zz(t)&&!eW(t)){var l=i(t,c);u=O.createElement(eS,{shapeType:r,elementProps:l})}else{var f=c;u=O.createElement(eS,{shapeType:r,elementProps:f})}return s?O.createElement(fe,{className:o},u):u}function _c(e,t){return t!=null&&"trapezoids"in e.props}function Pc(e,t){return t!=null&&"sectors"in e.props}function Ma(e,t){return t!=null&&"points"in e.props}function xW(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function wW(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function SW(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function OW(e,t){var r;return _c(e,t)?r=xW:Pc(e,t)?r=wW:Ma(e,t)&&(r=SW),r}function AW(e,t){var r;return _c(e,t)?r="trapezoids":Pc(e,t)?r="sectors":Ma(e,t)&&(r="points"),r}function _W(e,t){if(_c(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(Pc(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Ma(e,t)?t.payload:{}}function PW(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=AW(r,t),a=_W(r,t),o=n.filter(function(c,u){var l=lr(a,c),f=r.props[i].filter(function(m){var v=OW(r,t);return v(m,t)}),d=r.props[i].indexOf(f[f.length-1]),h=u===d;return l&&h}),s=n.indexOf(o[o.length-1]);return s}var Ro;function Jn(e){"@babel/helpers - typeof";return Jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jn(e)}function In(){return In=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},In.apply(this,arguments)}function tS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tS(Object(r),!0).forEach(function(n){yt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function EW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,e1(n.key),n)}}function TW(e,t,r){return t&&rS(e.prototype,t),r&&rS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function CW(e,t,r){return t=Os(t),jW(e,QP()?Reflect.construct(t,r||[],Os(e).constructor):t.apply(e,r))}function jW(e,t){if(t&&(Jn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IW(e)}function IW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QP=function(){return!!e})()}function Os(e){return Os=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Os(e)}function RW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gh(e,t)}function gh(e,t){return gh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gh(e,t)}function yt(e,t,r){return t=e1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e1(e){var t=kW(e,"string");return Jn(t)=="symbol"?t:t+""}function kW(e,t){if(Jn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Yt=(function(e){function t(r){var n;return EW(this,t),n=CW(this,t,[r]),yt(n,"pieRef",null),yt(n,"sectorRefs",[]),yt(n,"id",Nr("recharts-pie-")),yt(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),oe(i)&&i()}),yt(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),oe(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return RW(t,e),TW(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,s=a.labelLine,c=a.dataKey,u=a.valueKey,l=te(this.props,!1),f=te(o,!1),d=te(s,!1),h=o&&o.offsetRadius||20,m=n.map(function(v,p){var g=(v.startAngle+v.endAngle)/2,b=me(v.cx,v.cy,v.outerRadius+h,g),x=Ce(Ce(Ce(Ce({},l),v),{},{stroke:"none"},f),{},{index:p,textAnchor:t.getTextAnchor(b.x,v.cx)},b),w=Ce(Ce(Ce(Ce({},l),v),{},{fill:"none",stroke:v.fill},d),{},{index:p,points:[me(v.cx,v.cy,v.outerRadius,g),b]}),y=c;return se(c)&&se(u)?y="value":se(c)&&(y=u),O.createElement(fe,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(p)},s&&t.renderLabelLineItem(s,w,"line"),t.renderLabelItem(o,x,Ee(v,y)))});return O.createElement(fe,{className:"recharts-pie-labels"},m)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,s=a.blendStroke,c=a.inactiveShape;return n.map(function(u,l){if(u?.startAngle===0&&u?.endAngle===0&&n.length!==1)return null;var f=i.isActiveIndex(l),d=c&&i.hasActiveIndex()?c:null,h=f?o:d,m=Ce(Ce({},u),{},{stroke:s?u.fill:u.stroke,tabIndex:-1});return O.createElement(fe,In({ref:function(p){p&&!i.sectorRefs.includes(p)&&i.sectorRefs.push(p)},tabIndex:-1,className:"recharts-pie-sector"},Ir(i.props,u,l),{key:"sector-".concat(u?.startAngle,"-").concat(u?.endAngle,"-").concat(u.midAngle,"-").concat(l)}),O.createElement(Ss,In({option:h,isActive:f,shapeType:"sector"},m)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,u=i.animationEasing,l=i.animationId,f=this.state,d=f.prevSectors,h=f.prevIsAnimationActive;return O.createElement(dt,{begin:s,duration:c,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(l,"-").concat(h),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(m){var v=m.t,p=[],g=a&&a[0],b=g.startAngle;return a.forEach(function(x,w){var y=d&&d[w],S=w>0?lt(x,"paddingAngle",0):0;if(y){var A=Pe(y.endAngle-y.startAngle,x.endAngle-x.startAngle),P=Ce(Ce({},x),{},{startAngle:b+S,endAngle:b+A(v)+S});p.push(P),b=P.endAngle}else{var T=x.endAngle,R=x.startAngle,C=Pe(0,T-R),j=C(v),k=Ce(Ce({},x),{},{startAngle:b+S,endAngle:b+j+S});p.push(k),b=k.endAngle}}),O.createElement(fe,null,n.renderSectorsStatically(p))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var s=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!lr(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,s=i.className,c=i.label,u=i.cx,l=i.cy,f=i.innerRadius,d=i.outerRadius,h=i.isAnimationActive,m=this.state.isAnimationFinished;if(a||!o||!o.length||!Y(u)||!Y(l)||!Y(f)||!Y(d))return null;var v=le("recharts-pie",s);return O.createElement(fe,{tabIndex:this.props.rootTabIndex,className:v,ref:function(g){n.pieRef=g}},this.renderSectors(),c&&this.renderLabels(o),He.renderCallByParent(this.props,null,!1),(!h||m)&&xt.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(O.isValidElement(n))return O.cloneElement(n,i);if(oe(n))return n(i);var o=le("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return O.createElement(Cr,In({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(O.isValidElement(n))return O.cloneElement(n,i);var o=a;if(oe(n)&&(o=n(i),O.isValidElement(o)))return o;var s=le("recharts-pie-label-text",typeof n!="boolean"&&!oe(n)?n.className:"");return O.createElement(cn,In({},i,{alignmentBaseline:"middle",className:s}),o)}}])})(O.PureComponent);Ro=Yt;yt(Yt,"displayName","Pie");yt(Yt,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Gt.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});yt(Yt,"parseDeltaAngle",function(e,t){var r=Je(t-e),n=Math.min(Math.abs(t-e),360);return r*n});yt(Yt,"getRealPieData",function(e){var t=e.data,r=e.children,n=te(e,!1),i=tt(r,Dr);return t&&t.length?t.map(function(a,o){return Ce(Ce(Ce({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return Ce(Ce({},n),a.props)}):[]});yt(Yt,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=IP(i,a),s=n+Qe(e.cx,i,i/2),c=r+Qe(e.cy,a,a/2),u=Qe(e.innerRadius,o,0),l=Qe(e.outerRadius,o,o*.8),f=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:s,cy:c,innerRadius:u,outerRadius:l,maxRadius:f}});yt(Yt,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?Ce(Ce({},t.type.defaultProps),t.props):t.props,i=Ro.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,s=n.endAngle,c=n.paddingAngle,u=n.dataKey,l=n.nameKey,f=n.valueKey,d=n.tooltipType,h=Math.abs(n.minAngle),m=Ro.parseCoordinateOfPie(n,r),v=Ro.parseDeltaAngle(o,s),p=Math.abs(v),g=u;se(u)&&se(f)?(Tt(!1,`Use "dataKey" to specify the value of pie,
|
|
57
|
+
A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*m," Z")}else l="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return l},YF=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,c=r.height;if(Math.abs(s)>0&&Math.abs(c)>0){var u=Math.min(a,a+s),l=Math.max(a,a+s),f=Math.min(o,o+c),d=Math.max(o,o+c);return n>=u&&n<=l&&i>=f&&i<=d}return!1},XF={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},rm=function(t){var r=kw(kw({},XF),t),n=A.useRef(),i=A.useState(-1),a=FF(i,2),o=a[0],s=a[1];A.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&s(w)}catch{}},[]);var c=r.x,u=r.y,l=r.width,f=r.height,d=r.radius,h=r.className,m=r.animationEasing,v=r.animationDuration,p=r.animationBegin,g=r.isAnimationActive,b=r.isUpdateAnimationActive;if(c!==+c||u!==+u||l!==+l||f!==+f||l===0||f===0)return null;var x=le("recharts-rectangle",h);return b?A.createElement(dt,{canBegin:o>0,from:{width:l,height:f,x:c,y:u},to:{width:l,height:f,x:c,y:u},duration:v,animationEasing:m,isActive:b},function(w){var y=w.width,S=w.height,O=w.x,P=w.y;return A.createElement(dt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,isActive:g,easing:m},A.createElement("path",ys({},re(r,!0),{className:x,d:Rw(O,P,y,S,d),ref:n})))}):A.createElement("path",ys({},re(r,!0),{className:x,d:Rw(c,u,l,f,d)}))},ZF=["points","className","baseLinePoints","connectNulls"];function jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jn.apply(this,arguments)}function JF(e,t){if(e==null)return{};var r=QF(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function QF(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Mw(e){return nz(e)||rz(e)||tz(e)||ez()}function ez(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
58
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tz(e,t){if(e){if(typeof e=="string")return ph(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ph(e,t)}}function rz(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nz(e){if(Array.isArray(e))return ph(e)}function ph(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var $w=function(t){return t&&t.x===+t.x&&t.y===+t.y},iz=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){$w(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),$w(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Qi=function(t,r){var n=iz(t);r&&(n=[n.reduce(function(a,o){return[].concat(Mw(a),Mw(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,s,c){return"".concat(o).concat(c===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},az=function(t,r,n){var i=Qi(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Qi(r.reverse(),n).slice(1))},KP=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=JF(t,ZF);if(!r||!r.length)return null;var s=le("recharts-polygon",n);if(i&&i.length){var c=o.stroke&&o.stroke!=="none",u=az(r,i,a);return A.createElement("g",{className:s},A.createElement("path",jn({},re(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),c?A.createElement("path",jn({},re(o,!0),{fill:"none",d:Qi(r,a)})):null,c?A.createElement("path",jn({},re(o,!0),{fill:"none",d:Qi(i,a)})):null)}var l=Qi(r,a);return A.createElement("path",jn({},re(o,!0),{fill:l.slice(-1)==="Z"?o.fill:"none",className:s,d:l}))};function hh(){return hh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hh.apply(this,arguments)}var Pi=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=le("recharts-dot",a);return r===+r&&n===+n&&i===+i?E.createElement("circle",hh({},re(t,!1),Bo(t),{className:o,cx:r,cy:n,r:i})):null};function Ca(e){"@babel/helpers - typeof";return Ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ca(e)}var oz=["x","y","top","left","width","height","className"];function vh(){return vh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vh.apply(this,arguments)}function Nw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sz(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nw(Object(r),!0).forEach(function(n){cz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cz(e,t,r){return t=uz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uz(e){var t=lz(e,"string");return Ca(t)=="symbol"?t:t+""}function lz(e,t){if(Ca(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ca(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fz(e,t){if(e==null)return{};var r=dz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var pz=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},hz=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,c=t.left,u=c===void 0?0:c,l=t.width,f=l===void 0?0:l,d=t.height,h=d===void 0?0:d,m=t.className,v=fz(t,oz),p=sz({x:n,y:a,top:s,left:u,width:f,height:h},v);return!Y(n)||!Y(a)||!Y(f)||!Y(h)||!Y(s)||!Y(u)?null:A.createElement("path",vh({},re(p,!0),{className:le("recharts-cross",m),d:pz(n,a,f,h,s,u)}))},vz=["cx","cy","innerRadius","outerRadius","gridType","radialLines"];function ja(e){"@babel/helpers - typeof";return ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ja(e)}function mz(e,t){if(e==null)return{};var r=yz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function dr(){return dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dr.apply(this,arguments)}function Dw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ia(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dw(Object(r),!0).forEach(function(n){gz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gz(e,t,r){return t=bz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bz(e){var t=xz(e,"string");return ja(t)=="symbol"?t:t+""}function xz(e,t){if(ja(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ja(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wz=function(t,r,n,i){var a="";return i.forEach(function(o,s){var c=me(r,n,t,o);s?a+="L ".concat(c.x,",").concat(c.y):a+="M ".concat(c.x,",").concat(c.y)}),a+="Z",a},Sz=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.polarAngles,s=t.radialLines;if(!o||!o.length||!s)return null;var c=Ia({stroke:"#ccc"},re(t,!1));return A.createElement("g",{className:"recharts-polar-grid-angle"},o.map(function(u){var l=me(r,n,i,u),f=me(r,n,a,u);return A.createElement("line",dr({},c,{key:"line-".concat(u),x1:l.x,y1:l.y,x2:f.x,y2:f.y}))}))},Oz=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.index,o=Ia(Ia({stroke:"#ccc"},re(t,!1)),{},{fill:"none"});return A.createElement("circle",dr({},o,{className:le("recharts-polar-grid-concentric-circle",t.className),key:"circle-".concat(a),cx:r,cy:n,r:i}))},Az=function(t){var r=t.radius,n=t.index,i=Ia(Ia({stroke:"#ccc"},re(t,!1)),{},{fill:"none"});return A.createElement("path",dr({},i,{className:le("recharts-polar-grid-concentric-polygon",t.className),key:"path-".concat(n),d:wz(r,t.cx,t.cy,t.polarAngles)}))},_z=function(t){var r=t.polarRadius,n=t.gridType;return!r||!r.length?null:A.createElement("g",{className:"recharts-polar-grid-concentric"},r.map(function(i,a){var o=a;return n==="circle"?A.createElement(Oz,dr({key:o},t,{radius:i,index:a})):A.createElement(Az,dr({key:o},t,{radius:i,index:a}))}))},GP=function(t){var r=t.cx,n=r===void 0?0:r,i=t.cy,a=i===void 0?0:i,o=t.innerRadius,s=o===void 0?0:o,c=t.outerRadius,u=c===void 0?0:c,l=t.gridType,f=l===void 0?"polygon":l,d=t.radialLines,h=d===void 0?!0:d,m=mz(t,vz);return u<=0?null:A.createElement("g",{className:"recharts-polar-grid"},A.createElement(Sz,dr({cx:n,cy:a,innerRadius:s,outerRadius:u,gridType:f,radialLines:h},m)),A.createElement(_z,dr({cx:n,cy:a,innerRadius:s,outerRadius:u,gridType:f,radialLines:h},m)))};GP.displayName="PolarGrid";var kd,Lw;function Pz(){if(Lw)return kd;Lw=1;var e=bc(),t=nP(),r=Gt();function n(i,a){return i&&i.length?e(i,r(a,2),t):void 0}return kd=n,kd}var Ez=Pz();const Tz=Oe(Ez);var Rd,Bw;function Cz(){if(Bw)return Rd;Bw=1;var e=bc(),t=Gt(),r=iP();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return Rd=n,Rd}var jz=Cz();const Iz=Oe(jz);var kz=["cx","cy","angle","ticks","axisLine"],Rz=["ticks","tick","angle","tickFormatter","stroke"];function Xn(e){"@babel/helpers - typeof";return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xn(e)}function ea(){return ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ea.apply(this,arguments)}function qw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qw(Object(r),!0).forEach(function(n){Oc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fw(e,t){if(e==null)return{};var r=Mz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Mz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function $z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,XP(n.key),n)}}function Nz(e,t,r){return t&&zw(e.prototype,t),r&&zw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dz(e,t,r){return t=gs(t),Lz(e,YP()?Reflect.construct(t,r||[],gs(e).constructor):t.apply(e,r))}function Lz(e,t){if(t&&(Xn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bz(e)}function Bz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YP=function(){return!!e})()}function gs(e){return gs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gs(e)}function qz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mh(e,t)}function mh(e,t){return mh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mh(e,t)}function Oc(e,t,r){return t=XP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XP(e){var t=Fz(e,"string");return Xn(t)=="symbol"?t:t+""}function Fz(e,t){if(Xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ei=(function(e){function t(){return $z(this,t),Dz(this,t,arguments)}return qz(t,e),Nz(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,s=a.cx,c=a.cy;return me(s,c,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,c=Tz(s,function(l){return l.coordinate||0}),u=Iz(s,function(l){return l.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:u.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,c=n.axisLine,u=Fw(n,kz),l=s.reduce(function(m,v){return[Math.min(m[0],v.coordinate),Math.max(m[1],v.coordinate)]},[1/0,-1/0]),f=me(i,a,l[0],o),d=me(i,a,l[1],o),h=Gr(Gr(Gr({},re(u,!1)),{},{fill:"none"},re(c,!1)),{},{x1:f.x,y1:f.y,x2:d.x,y2:d.y});return A.createElement("line",ea({className:"recharts-polar-radius-axis-line"},h))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.angle,c=i.tickFormatter,u=i.stroke,l=Fw(i,Rz),f=this.getTickTextAnchor(),d=re(l,!1),h=re(o,!1),m=a.map(function(v,p){var g=n.getTickValueCoord(v),b=Gr(Gr(Gr(Gr({textAnchor:f,transform:"rotate(".concat(90-s,", ").concat(g.x,", ").concat(g.y,")")},d),{},{stroke:"none",fill:u},h),{},{index:p},g),{},{payload:v});return A.createElement(fe,ea({className:le("recharts-polar-radius-axis-tick",RP(o)),key:"tick-".concat(v.coordinate)},Ir(n.props,v,p)),t.renderTickItem(o,b,c?c(v.value,p):v.value))});return A.createElement(fe,{className:"recharts-polar-radius-axis-ticks"},m)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:A.createElement(fe,{className:le("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),He.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return A.isValidElement(n)?o=A.cloneElement(n,i):oe(n)?o=n(i):o=A.createElement(cn,ea({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])})(A.PureComponent);Oc(Ei,"displayName","PolarRadiusAxis");Oc(Ei,"axisType","radiusAxis");Oc(Ei,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Zn(e){"@babel/helpers - typeof";return Zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zn(e)}function Jr(){return Jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jr.apply(this,arguments)}function Ww(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Yr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ww(Object(r),!0).forEach(function(n){Ac(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ww(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,JP(n.key),n)}}function Wz(e,t,r){return t&&Uw(e.prototype,t),r&&Uw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uz(e,t,r){return t=bs(t),Hz(e,ZP()?Reflect.construct(t,r||[],bs(e).constructor):t.apply(e,r))}function Hz(e,t){if(t&&(Zn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vz(e)}function Vz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZP=function(){return!!e})()}function bs(e){return bs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},bs(e)}function Kz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yh(e,t)}function yh(e,t){return yh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},yh(e,t)}function Ac(e,t,r){return t=JP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JP(e){var t=Gz(e,"string");return Zn(t)=="symbol"?t:t+""}function Gz(e,t){if(Zn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Yz=Math.PI/180,Hw=1e-5,Ti=(function(e){function t(){return zz(this,t),Uz(this,t,arguments)}return Kz(t,e),Wz(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,s=i.radius,c=i.orientation,u=i.tickSize,l=u||8,f=me(a,o,s,n.coordinate),d=me(a,o,s+(c==="inner"?-1:1)*l,n.coordinate);return{x1:f.x,y1:f.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*Yz),o;return a>Hw?o=i==="outer"?"start":"end":a<-Hw?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,s=n.axisLine,c=n.axisLineType,u=Yr(Yr({},re(this.props,!1)),{},{fill:"none"},re(s,!1));if(c==="circle")return A.createElement(Pi,Jr({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:a,r:o}));var l=this.props.ticks,f=l.map(function(d){return me(i,a,o,d.coordinate)});return A.createElement(KP,Jr({className:"recharts-polar-angle-axis-line"},u,{points:f}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.tickLine,c=i.tickFormatter,u=i.stroke,l=re(this.props,!1),f=re(o,!1),d=Yr(Yr({},l),{},{fill:"none"},re(s,!1)),h=a.map(function(m,v){var p=n.getTickLineCoord(m),g=n.getTickTextAnchor(m),b=Yr(Yr(Yr({textAnchor:g},l),{},{stroke:"none",fill:u},f),{},{index:v,payload:m,x:p.x2,y:p.y2});return A.createElement(fe,Jr({className:le("recharts-polar-angle-axis-tick",RP(o)),key:"tick-".concat(m.coordinate)},Ir(n.props,m,v)),s&&A.createElement("line",Jr({className:"recharts-polar-angle-axis-tick-line"},d,p)),o&&t.renderTickItem(o,b,c?c(m.value,v):m.value))});return A.createElement(fe,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:A.createElement(fe,{className:le("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return A.isValidElement(n)?o=A.cloneElement(n,i):oe(n)?o=n(i):o=A.createElement(cn,Jr({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])})(A.PureComponent);Ac(Ti,"displayName","PolarAngleAxis");Ac(Ti,"axisType","angleAxis");Ac(Ti,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Md,Vw;function Xz(){if(Vw)return Md;Vw=1;var e=r_(),t=e(Object.getPrototypeOf,Object);return Md=t,Md}var $d,Kw;function Zz(){if(Kw)return $d;Kw=1;var e=mr(),t=Xz(),r=yr(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,s=a.hasOwnProperty,c=o.call(Object);function u(l){if(!r(l)||e(l)!=n)return!1;var f=t(l);if(f===null)return!0;var d=s.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&o.call(d)==c}return $d=u,$d}var Jz=Zz();const Qz=Oe(Jz);var Nd,Gw;function eW(){if(Gw)return Nd;Gw=1;var e=mr(),t=yr(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Nd=n,Nd}var tW=eW();const rW=Oe(tW);function ka(e){"@babel/helpers - typeof";return ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ka(e)}function xs(){return xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xs.apply(this,arguments)}function nW(e,t){return sW(e)||oW(e,t)||aW(e,t)||iW()}function iW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
59
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aW(e,t){if(e){if(typeof e=="string")return Yw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yw(e,t)}}function Yw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function oW(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function sW(e){if(Array.isArray(e))return e}function Xw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xw(Object(r),!0).forEach(function(n){cW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cW(e,t,r){return t=uW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uW(e){var t=lW(e,"string");return ka(t)=="symbol"?t:t+""}function lW(e,t){if(ka(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ka(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jw=function(t,r,n,i,a){var o=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+a),s+="L ".concat(t+n-o/2-i,",").concat(r+a),s+="L ".concat(t,",").concat(r," Z"),s},fW={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},dW=function(t){var r=Zw(Zw({},fW),t),n=A.useRef(),i=A.useState(-1),a=nW(i,2),o=a[0],s=a[1];A.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&s(x)}catch{}},[]);var c=r.x,u=r.y,l=r.upperWidth,f=r.lowerWidth,d=r.height,h=r.className,m=r.animationEasing,v=r.animationDuration,p=r.animationBegin,g=r.isUpdateAnimationActive;if(c!==+c||u!==+u||l!==+l||f!==+f||d!==+d||l===0&&f===0||d===0)return null;var b=le("recharts-trapezoid",h);return g?A.createElement(dt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:c,y:u},to:{upperWidth:l,lowerWidth:f,height:d,x:c,y:u},duration:v,animationEasing:m,isActive:g},function(x){var w=x.upperWidth,y=x.lowerWidth,S=x.height,O=x.x,P=x.y;return A.createElement(dt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,easing:m},A.createElement("path",xs({},re(r,!0),{className:b,d:Jw(O,P,w,y,S),ref:n})))}):A.createElement("g",null,A.createElement("path",xs({},re(r,!0),{className:b,d:Jw(c,u,l,f,d)})))},pW=["option","shapeType","propTransformer","activeClassName","isActive"];function Ra(e){"@babel/helpers - typeof";return Ra=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ra(e)}function hW(e,t){if(e==null)return{};var r=vW(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Qw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ws(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qw(Object(r),!0).forEach(function(n){mW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mW(e,t,r){return t=yW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yW(e){var t=gW(e,"string");return Ra(t)=="symbol"?t:t+""}function gW(e,t){if(Ra(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ra(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bW(e,t){return ws(ws({},t),e)}function xW(e,t){return e==="symbols"}function eS(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return A.createElement(rm,r);case"trapezoid":return A.createElement(dW,r);case"sector":return A.createElement(DP,r);case"symbols":if(xW(t))return A.createElement(uc,r);break;default:return null}}function wW(e){return A.isValidElement(e)?e.props:e}function Ss(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?bW:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,c=hW(e,pW),u;if(A.isValidElement(t))u=A.cloneElement(t,ws(ws({},c),wW(t)));else if(oe(t))u=t(c);else if(Qz(t)&&!rW(t)){var l=i(t,c);u=A.createElement(eS,{shapeType:r,elementProps:l})}else{var f=c;u=A.createElement(eS,{shapeType:r,elementProps:f})}return s?A.createElement(fe,{className:o},u):u}function _c(e,t){return t!=null&&"trapezoids"in e.props}function Pc(e,t){return t!=null&&"sectors"in e.props}function Ma(e,t){return t!=null&&"points"in e.props}function SW(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function OW(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function AW(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function _W(e,t){var r;return _c(e,t)?r=SW:Pc(e,t)?r=OW:Ma(e,t)&&(r=AW),r}function PW(e,t){var r;return _c(e,t)?r="trapezoids":Pc(e,t)?r="sectors":Ma(e,t)&&(r="points"),r}function EW(e,t){if(_c(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(Pc(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Ma(e,t)?t.payload:{}}function TW(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=PW(r,t),a=EW(r,t),o=n.filter(function(c,u){var l=fr(a,c),f=r.props[i].filter(function(m){var v=_W(r,t);return v(m,t)}),d=r.props[i].indexOf(f[f.length-1]),h=u===d;return l&&h}),s=n.indexOf(o[o.length-1]);return s}var ko;function Jn(e){"@babel/helpers - typeof";return Jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jn(e)}function In(){return In=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},In.apply(this,arguments)}function tS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tS(Object(r),!0).forEach(function(n){yt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,e1(n.key),n)}}function jW(e,t,r){return t&&rS(e.prototype,t),r&&rS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function IW(e,t,r){return t=Os(t),kW(e,QP()?Reflect.construct(t,r||[],Os(e).constructor):t.apply(e,r))}function kW(e,t){if(t&&(Jn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return RW(e)}function RW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QP=function(){return!!e})()}function Os(e){return Os=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Os(e)}function MW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gh(e,t)}function gh(e,t){return gh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gh(e,t)}function yt(e,t,r){return t=e1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e1(e){var t=$W(e,"string");return Jn(t)=="symbol"?t:t+""}function $W(e,t){if(Jn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Xt=(function(e){function t(r){var n;return CW(this,t),n=IW(this,t,[r]),yt(n,"pieRef",null),yt(n,"sectorRefs",[]),yt(n,"id",Nr("recharts-pie-")),yt(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),oe(i)&&i()}),yt(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),oe(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return MW(t,e),jW(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,s=a.labelLine,c=a.dataKey,u=a.valueKey,l=re(this.props,!1),f=re(o,!1),d=re(s,!1),h=o&&o.offsetRadius||20,m=n.map(function(v,p){var g=(v.startAngle+v.endAngle)/2,b=me(v.cx,v.cy,v.outerRadius+h,g),x=Ce(Ce(Ce(Ce({},l),v),{},{stroke:"none"},f),{},{index:p,textAnchor:t.getTextAnchor(b.x,v.cx)},b),w=Ce(Ce(Ce(Ce({},l),v),{},{fill:"none",stroke:v.fill},d),{},{index:p,points:[me(v.cx,v.cy,v.outerRadius,g),b]}),y=c;return se(c)&&se(u)?y="value":se(c)&&(y=u),A.createElement(fe,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(p)},s&&t.renderLabelLineItem(s,w,"line"),t.renderLabelItem(o,x,Ee(v,y)))});return A.createElement(fe,{className:"recharts-pie-labels"},m)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,s=a.blendStroke,c=a.inactiveShape;return n.map(function(u,l){if(u?.startAngle===0&&u?.endAngle===0&&n.length!==1)return null;var f=i.isActiveIndex(l),d=c&&i.hasActiveIndex()?c:null,h=f?o:d,m=Ce(Ce({},u),{},{stroke:s?u.fill:u.stroke,tabIndex:-1});return A.createElement(fe,In({ref:function(p){p&&!i.sectorRefs.includes(p)&&i.sectorRefs.push(p)},tabIndex:-1,className:"recharts-pie-sector"},Ir(i.props,u,l),{key:"sector-".concat(u?.startAngle,"-").concat(u?.endAngle,"-").concat(u.midAngle,"-").concat(l)}),A.createElement(Ss,In({option:h,isActive:f,shapeType:"sector"},m)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,u=i.animationEasing,l=i.animationId,f=this.state,d=f.prevSectors,h=f.prevIsAnimationActive;return A.createElement(dt,{begin:s,duration:c,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(l,"-").concat(h),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(m){var v=m.t,p=[],g=a&&a[0],b=g.startAngle;return a.forEach(function(x,w){var y=d&&d[w],S=w>0?lt(x,"paddingAngle",0):0;if(y){var O=Pe(y.endAngle-y.startAngle,x.endAngle-x.startAngle),P=Ce(Ce({},x),{},{startAngle:b+S,endAngle:b+O(v)+S});p.push(P),b=P.endAngle}else{var T=x.endAngle,k=x.startAngle,C=Pe(0,T-k),j=C(v),R=Ce(Ce({},x),{},{startAngle:b+S,endAngle:b+j+S});p.push(R),b=R.endAngle}}),A.createElement(fe,null,n.renderSectorsStatically(p))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var s=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!fr(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,s=i.className,c=i.label,u=i.cx,l=i.cy,f=i.innerRadius,d=i.outerRadius,h=i.isAnimationActive,m=this.state.isAnimationFinished;if(a||!o||!o.length||!Y(u)||!Y(l)||!Y(f)||!Y(d))return null;var v=le("recharts-pie",s);return A.createElement(fe,{tabIndex:this.props.rootTabIndex,className:v,ref:function(g){n.pieRef=g}},this.renderSectors(),c&&this.renderLabels(o),He.renderCallByParent(this.props,null,!1),(!h||m)&&xt.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(A.isValidElement(n))return A.cloneElement(n,i);if(oe(n))return n(i);var o=le("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return A.createElement(Cr,In({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(A.isValidElement(n))return A.cloneElement(n,i);var o=a;if(oe(n)&&(o=n(i),A.isValidElement(o)))return o;var s=le("recharts-pie-label-text",typeof n!="boolean"&&!oe(n)?n.className:"");return A.createElement(cn,In({},i,{alignmentBaseline:"middle",className:s}),o)}}])})(A.PureComponent);ko=Xt;yt(Xt,"displayName","Pie");yt(Xt,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Yt.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});yt(Xt,"parseDeltaAngle",function(e,t){var r=Je(t-e),n=Math.min(Math.abs(t-e),360);return r*n});yt(Xt,"getRealPieData",function(e){var t=e.data,r=e.children,n=re(e,!1),i=tt(r,Dr);return t&&t.length?t.map(function(a,o){return Ce(Ce(Ce({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return Ce(Ce({},n),a.props)}):[]});yt(Xt,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=IP(i,a),s=n+Qe(e.cx,i,i/2),c=r+Qe(e.cy,a,a/2),u=Qe(e.innerRadius,o,0),l=Qe(e.outerRadius,o,o*.8),f=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:s,cy:c,innerRadius:u,outerRadius:l,maxRadius:f}});yt(Xt,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?Ce(Ce({},t.type.defaultProps),t.props):t.props,i=ko.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,s=n.endAngle,c=n.paddingAngle,u=n.dataKey,l=n.nameKey,f=n.valueKey,d=n.tooltipType,h=Math.abs(n.minAngle),m=ko.parseCoordinateOfPie(n,r),v=ko.parseDeltaAngle(o,s),p=Math.abs(v),g=u;se(u)&&se(f)?(Tt(!1,`Use "dataKey" to specify the value of pie,
|
|
60
60
|
the props "valueKey" will be deprecated in 1.1.0`),g="value"):se(u)&&(Tt(!1,`Use "dataKey" to specify the value of pie,
|
|
61
|
-
the props "valueKey" will be deprecated in 1.1.0`),g=f);var b=i.filter(function(P){return Ee(P,g,0)!==0}).length,x=(p>=360?b:b-1)*c,w=p-b*h-x,y=i.reduce(function(P,T){var R=Ee(T,g,0);return P+(Y(R)?R:0)},0),S;if(y>0){var A;S=i.map(function(P,T){var R=Ee(P,g,0),C=Ee(P,l,T),j=(Y(R)?R:0)/y,k;T?k=A.endAngle+Je(v)*c*(R!==0?1:0):k=o;var N=k+Je(v)*((R!==0?h:0)+j*w),D=(k+N)/2,$=(m.innerRadius+m.outerRadius)/2,L=[{name:C,value:R,payload:P,dataKey:g,type:d}],B=me(m.cx,m.cy,$,D);return A=Ce(Ce(Ce({percent:j,cornerRadius:a,name:C,tooltipPayload:L,midAngle:D,middleRadius:$,tooltipPosition:B},P),m),{},{value:Ee(P,g),startAngle:k,endAngle:N,payload:P,paddingAngle:Je(v)*c}),A})}return Ce(Ce({},m),{},{sectors:S,data:i})});var Dd,nS;function MW(){if(nS)return Dd;nS=1;function e(t){return t&&t.length?t[0]:void 0}return Dd=e,Dd}var Ld,iS;function $W(){return iS||(iS=1,Ld=MW()),Ld}var NW=$W();const DW=Oe(NW);var LW=["key"];function Qn(e){"@babel/helpers - typeof";return Qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qn(e)}function BW(e,t){if(e==null)return{};var r=qW(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function As(){return As=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},As.apply(this,arguments)}function aS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ze(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aS(Object(r),!0).forEach(function(n){tr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,r1(n.key),n)}}function zW(e,t,r){return t&&oS(e.prototype,t),r&&oS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function WW(e,t,r){return t=_s(t),UW(e,t1()?Reflect.construct(t,r||[],_s(e).constructor):t.apply(e,r))}function UW(e,t){if(t&&(Qn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HW(e)}function HW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function t1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(t1=function(){return!!e})()}function _s(e){return _s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_s(e)}function VW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bh(e,t)}function bh(e,t){return bh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},bh(e,t)}function tr(e,t,r){return t=r1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r1(e){var t=KW(e,"string");return Qn(t)=="symbol"?t:t+""}function KW(e,t){if(Qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ya=(function(e){function t(){var r;FW(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=WW(this,t,[].concat(i)),tr(r,"state",{isAnimationFinished:!1}),tr(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),oe(o)&&o()}),tr(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),oe(o)&&o()}),tr(r,"handleMouseEnter",function(o){var s=r.props.onMouseEnter;s&&s(r.props,o)}),tr(r,"handleMouseLeave",function(o){var s=r.props.onMouseLeave;s&&s(r.props,o)}),r}return VW(t,e),zW(t,[{key:"renderDots",value:function(n){var i=this.props,a=i.dot,o=i.dataKey,s=te(this.props,!1),c=te(a,!0),u=n.map(function(l,f){var d=Ze(Ze(Ze({key:"dot-".concat(f),r:3},s),c),{},{dataKey:o,cx:l.x,cy:l.y,index:f,payload:l});return t.renderDotItem(a,d)});return O.createElement(fe,{className:"recharts-radar-dots"},u)}},{key:"renderPolygonStatically",value:function(n){var i=this.props,a=i.shape,o=i.dot,s=i.isRange,c=i.baseLinePoints,u=i.connectNulls,l;return O.isValidElement(a)?l=O.cloneElement(a,Ze(Ze({},this.props),{},{points:n})):oe(a)?l=a(Ze(Ze({},this.props),{},{points:n})):l=O.createElement(KP,As({},te(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:n,baseLinePoints:s?c:null,connectNulls:u})),O.createElement(fe,{className:"recharts-radar-polygon"},l,o?this.renderDots(n):null)}},{key:"renderPolygonWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,u=i.animationEasing,l=i.animationId,f=this.state.prevPoints;return O.createElement(dt,{begin:s,duration:c,isActive:o,easing:u,from:{t:0},to:{t:1},key:"radar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var h=d.t,m=f&&f.length/a.length,v=a.map(function(p,g){var b=f&&f[Math.floor(g*m)];if(b){var x=Pe(b.x,p.x),w=Pe(b.y,p.y);return Ze(Ze({},p),{},{x:x(h),y:w(h)})}var y=Pe(p.cx,p.x),S=Pe(p.cy,p.y);return Ze(Ze({},p),{},{x:y(h),y:S(h)})});return n.renderPolygonStatically(v)})}},{key:"renderPolygon",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=n.isRange,s=this.state.prevPoints;return a&&i&&i.length&&!o&&(!s||!lr(s,i))?this.renderPolygonWithAnimation():this.renderPolygonStatically(i)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.className,o=n.points,s=n.isAnimationActive;if(i||!o||!o.length)return null;var c=this.state.isAnimationFinished,u=le("recharts-radar",a);return O.createElement(fe,{className:u},this.renderPolygon(),(!s||c)&&xt.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"renderDotItem",value:function(n,i){var a;if(O.isValidElement(n))a=O.cloneElement(n,i);else if(oe(n))a=n(i);else{var o=i.key,s=BW(i,LW);a=O.createElement(Pi,As({},s,{key:o,className:le("recharts-radar-dot",typeof n!="boolean"?n.className:"")}))}return a}}])})(O.PureComponent);tr(Ya,"displayName","Radar");tr(Ya,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!Gt.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});tr(Ya,"getComposedData",function(e){var t=e.radiusAxis,r=e.angleAxis,n=e.displayedData,i=e.dataKey,a=e.bandSize,o=r.cx,s=r.cy,c=!1,u=[],l=r.type!=="number"?a??0:0;n.forEach(function(d,h){var m=Ee(d,r.dataKey,h),v=Ee(d,i),p=r.scale(m)+l,g=Array.isArray(v)?$P(v):v,b=se(g)?void 0:t.scale(g);Array.isArray(v)&&v.length>=2&&(c=!0),u.push(Ze(Ze({},me(o,s,b,p)),{},{name:m,value:v,cx:o,cy:s,radius:b,angle:p,payload:d}))});var f=[];return c&&u.forEach(function(d){if(Array.isArray(d.value)){var h=DW(d.value),m=se(h)?void 0:t.scale(h);f.push(Ze(Ze({},d),{},{radius:m},me(o,s,m,d.angle)))}else f.push(d)}),{points:u,isRange:c,baseLinePoints:f}});var Bd,sS;function GW(){if(sS)return Bd;sS=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var s=-1,c=t(e((i-n)/(a||1)),0),u=Array(c);c--;)u[o?c:++s]=n,n+=a;return u}return Bd=r,Bd}var qd,cS;function n1(){if(cS)return qd;cS=1;var e=g_(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return qd=n,qd}var Fd,uS;function YW(){if(uS)return Fd;uS=1;var e=GW(),t=dc(),r=n1();function n(i){return function(a,o,s){return s&&typeof s!="number"&&t(a,o,s)&&(o=s=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),s=s===void 0?a<o?1:-1:r(s),e(a,o,s,i)}}return Fd=n,Fd}var zd,lS;function XW(){if(lS)return zd;lS=1;var e=YW(),t=e();return zd=t,zd}var ZW=XW();const Ps=Oe(ZW);function $a(e){"@babel/helpers - typeof";return $a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$a(e)}function fS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fS(Object(r),!0).forEach(function(n){i1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function i1(e,t,r){return t=JW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JW(e){var t=QW(e,"string");return $a(t)=="symbol"?t:t+""}function QW(e,t){if($a(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($a(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eU=["Webkit","Moz","O","ms"],tU=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=eU.reduce(function(a,o){return dS(dS({},a),{},i1({},o+n,r))},{});return i[t]=r,i};function ei(e){"@babel/helpers - typeof";return ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ei(e)}function Es(){return Es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Es.apply(this,arguments)}function pS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pS(Object(r),!0).forEach(function(n){ot(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o1(n.key),n)}}function nU(e,t,r){return t&&hS(e.prototype,t),r&&hS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function iU(e,t,r){return t=Ts(t),aU(e,a1()?Reflect.construct(t,r||[],Ts(e).constructor):t.apply(e,r))}function aU(e,t){if(t&&(ei(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oU(e)}function oU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(a1=function(){return!!e})()}function Ts(e){return Ts=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ts(e)}function sU(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xh(e,t)}function xh(e,t){return xh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},xh(e,t)}function ot(e,t,r){return t=o1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o1(e){var t=cU(e,"string");return ei(t)=="symbol"?t:t+""}function cU(e,t){if(ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var uU=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var c=r.length,u=Xi().domain(Ps(0,c)).range([a,a+o-s]),l=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(i),scale:u,scaleValues:l}},vS=function(t){return t.changedTouches&&!!t.changedTouches.length},ti=(function(e){function t(r){var n;return rU(this,t),n=iU(this,t,[r]),ot(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),ot(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),ot(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o?.({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),ot(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),ot(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),ot(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),ot(n,"handleSlideDragStart",function(i){var a=vS(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return sU(t,e),nU(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,s=this.props,c=s.gap,u=s.data,l=u.length-1,f=Math.min(i,a),d=Math.max(i,a),h=t.getIndexInRange(o,f),m=t.getIndexInRange(o,d);return{startIndex:h-h%c,endIndex:m===l?l:m-m%c}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,c=Ee(a[n],s,n);return oe(o)?o(c,n):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,c=this.props,u=c.x,l=c.width,f=c.travellerWidth,d=c.startIndex,h=c.endIndex,m=c.onChange,v=n.pageX-a;v>0?v=Math.min(v,u+l-f-s,u+l-f-o):v<0&&(v=Math.max(v,u-o,u-s));var p=this.getIndex({startX:o+v,endX:s+v});(p.startIndex!==d||p.endIndex!==h)&&m&&m(p),this.setState({startX:o+v,endX:s+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=vS(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,c=i.startX,u=this.state[o],l=this.props,f=l.x,d=l.width,h=l.travellerWidth,m=l.onChange,v=l.gap,p=l.data,g={startX:this.state.startX,endX:this.state.endX},b=n.pageX-a;b>0?b=Math.min(b,f+d-h-u):b<0&&(b=Math.max(b,f-u)),g[o]=u+b;var x=this.getIndex(g),w=x.startIndex,y=x.endIndex,S=function(){var P=p.length-1;return o==="startX"&&(s>c?w%v===0:y%v===0)||s<c&&y===P||o==="endX"&&(s>c?y%v===0:w%v===0)||s>c&&y===P};this.setState(ot(ot({},o,u+b),"brushMoveStartX",n.pageX),function(){m&&S()&&m(x)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,c=o.startX,u=o.endX,l=this.state[i],f=s.indexOf(l);if(f!==-1){var d=f+n;if(!(d===-1||d>=s.length)){var h=s[d];i==="startX"&&h>=u||i==="endX"&&h<=c||this.setState(ot({},i,h),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,c=n.fill,u=n.stroke;return O.createElement("rect",{stroke:u,fill:c,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,c=n.data,u=n.children,l=n.padding,f=O.Children.only(u);return f?O.cloneElement(f,{x:i,y:a,width:o,height:s,margin:l,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,c=this.props,u=c.y,l=c.travellerWidth,f=c.height,d=c.traveller,h=c.ariaLabel,m=c.data,v=c.startIndex,p=c.endIndex,g=Math.max(n,this.props.x),b=Wd(Wd({},te(this.props,!1)),{},{x:g,y:u,width:l,height:f}),x=h||"Min value: ".concat((a=m[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=m[p])===null||o===void 0?void 0:o.name);return O.createElement(fe,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(y){["ArrowLeft","ArrowRight"].includes(y.key)&&(y.preventDefault(),y.stopPropagation(),s.handleTravellerMoveKeyboard(y.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,b))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,c=a.stroke,u=a.travellerWidth,l=Math.min(n,i)+u,f=Math.max(Math.abs(i-n)-u,0);return O.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:l,y:o,width:f,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,c=n.travellerWidth,u=n.stroke,l=this.state,f=l.startX,d=l.endX,h=5,m={pointerEvents:"none",fill:u};return O.createElement(fe,{className:"recharts-brush-texts"},O.createElement(cn,Es({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-h,y:o+s/2},m),this.getTextOfTick(i)),O.createElement(cn,Es({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,d)+c+h,y:o+s/2},m),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,c=n.y,u=n.width,l=n.height,f=n.alwaysShowText,d=this.state,h=d.startX,m=d.endX,v=d.isTextActive,p=d.isSlideMoving,g=d.isTravellerMoving,b=d.isTravellerFocused;if(!i||!i.length||!Y(s)||!Y(c)||!Y(u)||!Y(l)||u<=0||l<=0)return null;var x=le("recharts-brush",a),w=O.Children.count(o)===1,y=tU("userSelect","none");return O.createElement(fe,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:y},this.renderBackground(),w&&this.renderPanorama(),this.renderSlide(h,m),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(m,"endX"),(v||p||g||b||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,c=n.stroke,u=Math.floor(a+s/2)-1;return O.createElement(O.Fragment,null,O.createElement("rect",{x:i,y:a,width:o,height:s,fill:c,stroke:"none"}),O.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),O.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return O.isValidElement(n)?a=O.cloneElement(n,i):oe(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,c=n.travellerWidth,u=n.updateId,l=n.startIndex,f=n.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return Wd({prevData:a,prevTravellerWidth:c,prevUpdateId:u,prevX:s,prevWidth:o},a&&a.length?uU({data:a,width:o,x:s,travellerWidth:c,startIndex:l,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([s,s+o-c]);var d=i.scale.domain().map(function(h){return i.scale(h)});return{prevData:a,prevTravellerWidth:c,prevUpdateId:u,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var c=Math.floor((o+s)/2);n[c]>i?s=c:o=c}return i>=n[s]?s:o}}])})(O.PureComponent);ot(ti,"displayName","Brush");ot(ti,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Ud,mS;function lU(){if(mS)return Ud;mS=1;var e=Ev();function t(r,n){var i;return e(r,function(a,o,s){return i=n(a,o,s),!i}),!!i}return Ud=t,Ud}var Hd,yS;function fU(){if(yS)return Hd;yS=1;var e=YA(),t=Kt(),r=lU(),n=it(),i=dc();function a(o,s,c){var u=n(o)?e:r;return c&&i(o,s,c)&&(s=void 0),u(o,t(s,3))}return Hd=a,Hd}var dU=fU();const pU=Oe(dU);var Ft=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Vd,gS;function hU(){if(gS)return Vd;gS=1;var e=p_();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Vd=t,Vd}var Kd,bS;function vU(){if(bS)return Kd;bS=1;var e=hU(),t=f_(),r=Kt();function n(i,a){var o={};return a=r(a,3),t(i,function(s,c,u){e(o,c,a(s,c,u))}),o}return Kd=n,Kd}var mU=vU();const yU=Oe(mU);var Gd,xS;function gU(){if(xS)return Gd;xS=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return Gd=e,Gd}var Yd,wS;function bU(){if(wS)return Yd;wS=1;var e=Ev();function t(r,n){var i=!0;return e(r,function(a,o,s){return i=!!n(a,o,s),i}),i}return Yd=t,Yd}var Xd,SS;function xU(){if(SS)return Xd;SS=1;var e=gU(),t=bU(),r=Kt(),n=it(),i=dc();function a(o,s,c){var u=n(o)?e:t;return c&&i(o,s,c)&&(s=void 0),u(o,r(s,3))}return Xd=a,Xd}var wU=xU();const s1=Oe(wU);var SU=["x","y"];function ri(e){"@babel/helpers - typeof";return ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ri(e)}function wh(){return wh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wh.apply(this,arguments)}function OS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ui(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?OS(Object(r),!0).forEach(function(n){OU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OU(e,t,r){return t=AU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AU(e){var t=_U(e,"string");return ri(t)=="symbol"?t:t+""}function _U(e,t){if(ri(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ri(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PU(e,t){if(e==null)return{};var r=EU(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function EU(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function TU(e,t){var r=e.x,n=e.y,i=PU(e,SU),a="".concat(r),o=parseInt(a,10),s="".concat(n),c=parseInt(s,10),u="".concat(t.height||i.height),l=parseInt(u,10),f="".concat(t.width||i.width),d=parseInt(f,10);return Ui(Ui(Ui(Ui(Ui({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:l,width:d,name:t.name,radius:t.radius})}function AS(e){return O.createElement(Ss,wh({shapeType:"rectangle",propTransformer:TU,activeClassName:"recharts-active-bar"},e))}var CU=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=Y(n)||wI(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?nt(!1,"minPointSize callback function received a value with type of ".concat(ri(n),". Currently only numbers or null/undefined are supported.")):nt()),r)}},jU=["value","background"],c1;function ni(e){"@babel/helpers - typeof";return ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ni(e)}function IU(e,t){if(e==null)return{};var r=RU(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function RU(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Cs(){return Cs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cs.apply(this,arguments)}function _S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function De(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_S(Object(r),!0).forEach(function(n){Pr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_S(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l1(n.key),n)}}function MU(e,t,r){return t&&PS(e.prototype,t),r&&PS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function $U(e,t,r){return t=js(t),NU(e,u1()?Reflect.construct(t,r||[],js(e).constructor):t.apply(e,r))}function NU(e,t){if(t&&(ni(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DU(e)}function DU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u1=function(){return!!e})()}function js(e){return js=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},js(e)}function LU(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sh(e,t)}function Sh(e,t){return Sh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Sh(e,t)}function Pr(e,t,r){return t=l1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l1(e){var t=BU(e,"string");return ni(t)=="symbol"?t:t+""}function BU(e,t){if(ni(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ni(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xn=(function(e){function t(){var r;kU(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=$U(this,t,[].concat(i)),Pr(r,"state",{isAnimationFinished:!1}),Pr(r,"id",Nr("recharts-bar-")),Pr(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Pr(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return LU(t,e),MU(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,c=a.activeIndex,u=a.activeBar,l=te(this.props,!1);return n&&n.map(function(f,d){var h=d===c,m=h?u:o,v=De(De(De({},l),f),{},{isActive:h,option:m,index:d,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return O.createElement(fe,Cs({className:"recharts-bar-rectangle"},Ir(i.props,f,d),{key:"rectangle-".concat(f?.x,"-").concat(f?.y,"-").concat(f?.value,"-").concat(d)}),O.createElement(AS,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,c=i.animationBegin,u=i.animationDuration,l=i.animationEasing,f=i.animationId,d=this.state.prevData;return O.createElement(dt,{begin:c,duration:u,isActive:s,easing:l,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var m=h.t,v=a.map(function(p,g){var b=d&&d[g];if(b){var x=Pe(b.x,p.x),w=Pe(b.y,p.y),y=Pe(b.width,p.width),S=Pe(b.height,p.height);return De(De({},p),{},{x:x(m),y:w(m),width:y(m),height:S(m)})}if(o==="horizontal"){var A=Pe(0,p.height),P=A(m);return De(De({},p),{},{y:p.y+p.height-P,height:P})}var T=Pe(0,p.width),R=T(m);return De(De({},p),{},{width:R})});return O.createElement(fe,null,n.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!lr(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,s=i.activeIndex,c=te(this.props.background,!1);return a.map(function(u,l){u.value;var f=u.background,d=IU(u,jU);if(!f)return null;var h=De(De(De(De(De({},d),{},{fill:"#eee"},f),c),Ir(n.props,u,l)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:l,className:"recharts-bar-background-rectangle"});return O.createElement(AS,Cs({key:"background-bar-".concat(l),option:n.props.background,isActive:l===s},h))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,c=a.yAxis,u=a.layout,l=a.children,f=tt(l,_i);if(!f)return null;var d=u==="vertical"?o[0].height/2:o[0].width/2,h=function(p,g){var b=Array.isArray(p.value)?p.value[1]:p.value;return{x:p.x,y:p.y,value:b,errorVal:Ee(p,g)}},m={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement(fe,m,f.map(function(v){return O.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:s,yAxis:c,layout:u,offset:d,dataPointFormatter:h})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,c=n.yAxis,u=n.left,l=n.top,f=n.width,d=n.height,h=n.isAnimationActive,m=n.background,v=n.id;if(i||!a||!a.length)return null;var p=this.state.isAnimationFinished,g=le("recharts-bar",o),b=s&&s.allowDataOverflow,x=c&&c.allowDataOverflow,w=b||x,y=se(v)?this.id:v;return O.createElement(fe,{className:g},b||x?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(y)},O.createElement("rect",{x:b?u:u-f/2,y:x?l:l-d/2,width:b?f:f*2,height:x?d:d*2}))):null,O.createElement(fe,{className:"recharts-bar-rectangles",clipPath:w?"url(#clipPath-".concat(y,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(w,y),(!h||p)&&xt.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(O.PureComponent);c1=xn;Pr(xn,"displayName","Bar");Pr(xn,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Gt.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Pr(xn,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,u=e.stackedData,l=e.dataStartIndex,f=e.displayedData,d=e.offset,h=D2(n,r);if(!h)return null;var m=t.layout,v=r.type.defaultProps,p=v!==void 0?De(De({},v),r.props):r.props,g=p.dataKey,b=p.children,x=p.minPointSize,w=m==="horizontal"?o:a,y=u?w.scale.domain():null,S=U2({numericAxis:w}),A=tt(b,Dr),P=f.map(function(T,R){var C,j,k,N,D,$;u?C=L2(u[l+R],y):(C=Ee(T,g),Array.isArray(C)||(C=[S,C]));var L=CU(x,c1.defaultProps.minPointSize)(C[1],R);if(m==="horizontal"){var B,W=[o.scale(C[0]),o.scale(C[1])],I=W[0],F=W[1];j=z0({axis:a,ticks:s,bandSize:i,offset:h.offset,entry:T,index:R}),k=(B=F??I)!==null&&B!==void 0?B:void 0,N=h.size;var U=I-F;if(D=Number.isNaN(U)?0:U,$={x:j,y:o.y,width:N,height:o.height},Math.abs(L)>0&&Math.abs(D)<Math.abs(L)){var G=Je(D||L)*(Math.abs(L)-Math.abs(D));k-=G,D+=G}}else{var Z=[a.scale(C[0]),a.scale(C[1])],J=Z[0],Q=Z[1];if(j=J,k=z0({axis:o,ticks:c,bandSize:i,offset:h.offset,entry:T,index:R}),N=Q-J,D=h.size,$={x:a.x,y:k,width:a.width,height:D},Math.abs(L)>0&&Math.abs(N)<Math.abs(L)){var K=Je(N||L)*(Math.abs(L)-Math.abs(N));N+=K}}return De(De(De({},T),{},{x:j,y:k,width:N,height:D,value:u?C:C[1],payload:T,background:$},A&&A[R]&&A[R].props),{},{tooltipPayload:[CP(r,T)],tooltipPosition:{x:j+N/2,y:k+D/2}})});return De({data:P,layout:m},d)});function Na(e){"@babel/helpers - typeof";return Na=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Na(e)}function qU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ES(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f1(n.key),n)}}function FU(e,t,r){return t&&ES(e.prototype,t),r&&ES(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function TS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _t(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TS(Object(r),!0).forEach(function(n){Ec(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ec(e,t,r){return t=f1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f1(e){var t=zU(e,"string");return Na(t)=="symbol"?t:t+""}function zU(e,t){if(Na(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Na(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Tc=function(t,r,n,i,a){var o=t.width,s=t.height,c=t.layout,u=t.children,l=Object.keys(r),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},d=!!st(u,xn);return l.reduce(function(h,m){var v=r[m],p=v.orientation,g=v.domain,b=v.padding,x=b===void 0?{}:b,w=v.mirror,y=v.reversed,S="".concat(p).concat(w?"Mirror":""),A,P,T,R,C;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var j=g[1]-g[0],k=1/0,N=v.categoricalDomain.sort(_I);if(N.forEach(function(Z,J){J>0&&(k=Math.min((Z||0)-(N[J-1]||0),k))}),Number.isFinite(k)){var D=k/j,$=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(A=D*$/2),v.padding==="no-gap"){var L=Qe(t.barCategoryGap,D*$),B=D*$/2;A=B-L-(B-L)/$*L}}}i==="xAxis"?P=[n.left+(x.left||0)+(A||0),n.left+n.width-(x.right||0)-(A||0)]:i==="yAxis"?P=c==="horizontal"?[n.top+n.height-(x.bottom||0),n.top+(x.top||0)]:[n.top+(x.top||0)+(A||0),n.top+n.height-(x.bottom||0)-(A||0)]:P=v.range,y&&(P=[P[1],P[0]]);var W=_P(v,a,d),I=W.scale,F=W.realScaleType;I.domain(g).range(P),PP(I);var U=EP(I,_t(_t({},v),{},{realScaleType:F}));i==="xAxis"?(C=p==="top"&&!w||p==="bottom"&&w,T=n.left,R=f[S]-C*v.height):i==="yAxis"&&(C=p==="left"&&!w||p==="right"&&w,T=f[S]-C*v.width,R=n.top);var G=_t(_t(_t({},v),U),{},{realScaleType:F,x:T,y:R,scale:I,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return G.bandSize=us(G,U),!v.hide&&i==="xAxis"?f[S]+=(C?-1:1)*G.height:v.hide||(f[S]+=(C?-1:1)*G.width),_t(_t({},h),{},Ec({},m,G))},{})},d1=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},WU=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return d1({x:r,y:n},{x:i,y:a})},p1=(function(){function e(t){qU(this,e),this.scale=t}return FU(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();Ec(p1,"EPS",1e-4);var nm=function(t){var r=Object.keys(t).reduce(function(n,i){return _t(_t({},n),{},Ec({},i,p1.create(t[i])))},{});return _t(_t({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return yU(i,function(c,u){return r[u].apply(c,{bandAware:o,position:s})})},isInRange:function(i){return s1(i,function(a,o){return r[o].isInRange(a)})}})};function UU(e){return(e%180+180)%180}var HU=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=UU(i),o=a*Math.PI/180,s=Math.atan(n/r),c=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(c)},Zd,CS;function VU(){if(CS)return Zd;CS=1;var e=Kt(),t=Ua(),r=lc();function n(i){return function(a,o,s){var c=Object(a);if(!t(a)){var u=e(o,3);a=r(a),o=function(f){return u(c[f],f,c)}}var l=i(a,o,s);return l>-1?c[u?a[l]:l]:void 0}}return Zd=n,Zd}var Jd,jS;function KU(){if(jS)return Jd;jS=1;var e=n1();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Jd=t,Jd}var Qd,IS;function GU(){if(IS)return Qd;IS=1;var e=o_(),t=Kt(),r=KU(),n=Math.max;function i(a,o,s){var c=a==null?0:a.length;if(!c)return-1;var u=s==null?0:r(s);return u<0&&(u=n(c+u,0)),e(a,t(o,3),u)}return Qd=i,Qd}var ep,RS;function YU(){if(RS)return ep;RS=1;var e=VU(),t=GU(),r=e(t);return ep=r,ep}var XU=YU();const ZU=Oe(XU);var JU=wA();const QU=Oe(JU);var e3=QU(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")});function Is(e){"@babel/helpers - typeof";return Is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Is(e)}var im=O.createContext(void 0),am=O.createContext(void 0),h1=O.createContext(void 0),v1=O.createContext({}),m1=O.createContext(void 0),y1=O.createContext(0),g1=O.createContext(0),kS=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,c=t.width,u=t.height,l=e3(a);return O.createElement(im.Provider,{value:n},O.createElement(am.Provider,{value:i},O.createElement(v1.Provider,{value:a},O.createElement(h1.Provider,{value:l},O.createElement(m1.Provider,{value:o},O.createElement(y1.Provider,{value:u},O.createElement(g1.Provider,{value:c},s)))))))},t3=function(){return O.useContext(m1)};function b1(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var x1=function(t){var r=O.useContext(im);r==null&&(process.env.NODE_ENV!=="production"?nt(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):nt());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?nt(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(Is(t),"]. ").concat(b1(r))):nt()),n},r3=function(){var t=O.useContext(im);return Ar(t)},n3=function(){var t=O.useContext(am),r=ZU(t,function(n){return s1(n.domain,Number.isFinite)});return r||Ar(t)},w1=function(t){var r=O.useContext(am);r==null&&(process.env.NODE_ENV!=="production"?nt(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):nt());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?nt(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(Is(t),"]. ").concat(b1(r))):nt()),n},i3=function(){var t=O.useContext(h1);return t},a3=function(){return O.useContext(v1)},om=function(){return O.useContext(g1)},sm=function(){return O.useContext(y1)};function ii(e){"@babel/helpers - typeof";return ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ii(e)}function o3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,O1(n.key),n)}}function c3(e,t,r){return t&&s3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function u3(e,t,r){return t=Rs(t),l3(e,S1()?Reflect.construct(t,r||[],Rs(e).constructor):t.apply(e,r))}function l3(e,t){if(t&&(ii(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f3(e)}function f3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(S1=function(){return!!e})()}function Rs(e){return Rs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rs(e)}function d3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Oh(e,t)}function Oh(e,t){return Oh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Oh(e,t)}function MS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $S(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?MS(Object(r),!0).forEach(function(n){cm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cm(e,t,r){return t=O1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O1(e){var t=p3(e,"string");return ii(t)=="symbol"?t:t+""}function p3(e,t){if(ii(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ii(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function h3(e,t){return g3(e)||y3(e,t)||m3(e,t)||v3()}function v3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
62
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m3(e,t){if(e){if(typeof e=="string")return NS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return NS(e,t)}}function NS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function y3(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function g3(e){if(Array.isArray(e))return e}function Ah(){return Ah=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ah.apply(this,arguments)}var b3=function(t,r){var n;return O.isValidElement(t)?n=O.cloneElement(t,r):oe(t)?n=t(r):n=O.createElement("line",Ah({},r,{className:"recharts-reference-line-line"})),n},x3=function(t,r,n,i,a,o,s,c,u){var l=a.x,f=a.y,d=a.width,h=a.height;if(n){var m=u.y,v=t.y.apply(m,{position:o});if(Ft(u,"discard")&&!t.y.isInRange(v))return null;var p=[{x:l+d,y:v},{x:l,y:v}];return c==="left"?p.reverse():p}if(r){var g=u.x,b=t.x.apply(g,{position:o});if(Ft(u,"discard")&&!t.x.isInRange(b))return null;var x=[{x:b,y:f+h},{x:b,y:f}];return s==="top"?x.reverse():x}if(i){var w=u.segment,y=w.map(function(S){return t.apply(S,{position:o})});return Ft(u,"discard")&&pU(y,function(S){return!t.isInRange(S)})?null:y}return null};function w3(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,c=e.alwaysShow,u=t3(),l=x1(i),f=w1(a),d=i3();if(!u||!d)return null;Tt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=nm({x:l.scale,y:f.scale}),m=ze(t),v=ze(r),p=n&&n.length===2,g=x3(h,m,v,p,d,e.position,l.orientation,f.orientation,e);if(!g)return null;var b=h3(g,2),x=b[0],w=x.x,y=x.y,S=b[1],A=S.x,P=S.y,T=Ft(e,"hidden")?"url(#".concat(u,")"):void 0,R=$S($S({clipPath:T},te(e,!0)),{},{x1:w,y1:y,x2:A,y2:P});return O.createElement(fe,{className:le("recharts-reference-line",s)},b3(o,R),He.renderCallByParent(e,WU({x1:w,y1:y,x2:A,y2:P})))}var um=(function(e){function t(){return o3(this,t),u3(this,t,arguments)}return d3(t,e),c3(t,[{key:"render",value:function(){return O.createElement(w3,this.props)}}])})(O.Component);cm(um,"displayName","ReferenceLine");cm(um,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function _h(){return _h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_h.apply(this,arguments)}function ai(e){"@babel/helpers - typeof";return ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ai(e)}function DS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function LS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DS(Object(r),!0).forEach(function(n){Cc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function S3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_1(n.key),n)}}function A3(e,t,r){return t&&O3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _3(e,t,r){return t=ks(t),P3(e,A1()?Reflect.construct(t,r||[],ks(e).constructor):t.apply(e,r))}function P3(e,t){if(t&&(ai(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return E3(e)}function E3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(A1=function(){return!!e})()}function ks(e){return ks=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ks(e)}function T3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ph(e,t)}function Ph(e,t){return Ph=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ph(e,t)}function Cc(e,t,r){return t=_1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _1(e){var t=C3(e,"string");return ai(t)=="symbol"?t:t+""}function C3(e,t){if(ai(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ai(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var j3=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=nm({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return Ft(t,"discard")&&!o.isInRange(s)?null:s},jc=(function(e){function t(){return S3(this,t),_3(this,t,arguments)}return T3(t,e),A3(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,c=n.clipPathId,u=ze(i),l=ze(a);if(Tt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!l)return null;var f=j3(this.props);if(!f)return null;var d=f.x,h=f.y,m=this.props,v=m.shape,p=m.className,g=Ft(this.props,"hidden")?"url(#".concat(c,")"):void 0,b=LS(LS({clipPath:g},te(this.props,!0)),{},{cx:d,cy:h});return O.createElement(fe,{className:le("recharts-reference-dot",p)},t.renderDot(v,b),He.renderCallByParent(this.props,{x:d-o,y:h-o,width:2*o,height:2*o}))}}])})(O.Component);Cc(jc,"displayName","ReferenceDot");Cc(jc,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Cc(jc,"renderDot",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):oe(e)?r=e(t):r=O.createElement(Pi,_h({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Eh(){return Eh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Eh.apply(this,arguments)}function oi(e){"@babel/helpers - typeof";return oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oi(e)}function BS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BS(Object(r),!0).forEach(function(n){Ic(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function I3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,E1(n.key),n)}}function k3(e,t,r){return t&&R3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function M3(e,t,r){return t=Ms(t),$3(e,P1()?Reflect.construct(t,r||[],Ms(e).constructor):t.apply(e,r))}function $3(e,t){if(t&&(oi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return N3(e)}function N3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(P1=function(){return!!e})()}function Ms(e){return Ms=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ms(e)}function D3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Th(e,t)}function Th(e,t){return Th=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Th(e,t)}function Ic(e,t,r){return t=E1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E1(e){var t=L3(e,"string");return oi(t)=="symbol"?t:t+""}function L3(e,t){if(oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var B3=function(t,r,n,i,a){var o=a.x1,s=a.x2,c=a.y1,u=a.y2,l=a.xAxis,f=a.yAxis;if(!l||!f)return null;var d=nm({x:l.scale,y:f.scale}),h={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(c,{position:"start"}):d.y.rangeMin},m={x:r?d.x.apply(s,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(u,{position:"end"}):d.y.rangeMax};return Ft(a,"discard")&&(!d.isInRange(h)||!d.isInRange(m))?null:d1(h,m)},Rc=(function(e){function t(){return I3(this,t),M3(this,t,arguments)}return D3(t,e),k3(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,s=n.y2,c=n.className,u=n.alwaysShow,l=n.clipPathId;Tt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=ze(i),d=ze(a),h=ze(o),m=ze(s),v=this.props.shape;if(!f&&!d&&!h&&!m&&!v)return null;var p=B3(f,d,h,m,this.props);if(!p&&!v)return null;var g=Ft(this.props,"hidden")?"url(#".concat(l,")"):void 0;return O.createElement(fe,{className:le("recharts-reference-area",c)},t.renderRect(v,qS(qS({clipPath:g},te(this.props,!0)),p)),He.renderCallByParent(this.props,p))}}])})(O.Component);Ic(Rc,"displayName","ReferenceArea");Ic(Rc,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Ic(Rc,"renderRect",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):oe(e)?r=e(t):r=O.createElement(rm,Eh({},t,{className:"recharts-reference-area-rect"})),r});function T1(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function q3(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return HU(n,r)}function F3(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function $s(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function z3(e,t){return T1(e,t+1)}function W3(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,c=0,u=1,l=o,f=function(){var m=n?.[c];if(m===void 0)return{v:T1(n,u)};var v=c,p,g=function(){return p===void 0&&(p=r(m,v)),p},b=m.coordinate,x=c===0||$s(e,b,g,l,s);x||(c=0,l=o,u+=1),x&&(l=b+e*(g()/2+i),c+=u)},d;u<=a.length;)if(d=f(),d)return d.v;return[]}function Da(e){"@babel/helpers - typeof";return Da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Da(e)}function FS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FS(Object(r),!0).forEach(function(n){U3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function U3(e,t,r){return t=H3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H3(e){var t=V3(e,"string");return Da(t)=="symbol"?t:t+""}function V3(e,t){if(Da(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Da(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function K3(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,c=t.end,u=function(d){var h=a[d],m,v=function(){return m===void 0&&(m=r(h,d)),m};if(d===o-1){var p=e*(h.coordinate+e*v()/2-c);a[d]=h=Ge(Ge({},h),{},{tickCoord:p>0?h.coordinate-p*e:h.coordinate})}else a[d]=h=Ge(Ge({},h),{},{tickCoord:h.coordinate});var g=$s(e,h.tickCoord,v,s,c);g&&(c=h.tickCoord-e*(v()/2+i),a[d]=Ge(Ge({},h),{},{isShow:!0}))},l=o-1;l>=0;l--)u(l);return a}function G3(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,c=t.start,u=t.end;if(a){var l=n[s-1],f=r(l,s-1),d=e*(l.coordinate+e*f/2-u);o[s-1]=l=Ge(Ge({},l),{},{tickCoord:d>0?l.coordinate-d*e:l.coordinate});var h=$s(e,l.tickCoord,function(){return f},c,u);h&&(u=l.tickCoord-e*(f/2+i),o[s-1]=Ge(Ge({},l),{},{isShow:!0}))}for(var m=a?s-1:s,v=function(b){var x=o[b],w,y=function(){return w===void 0&&(w=r(x,b)),w};if(b===0){var S=e*(x.coordinate-e*y()/2-c);o[b]=x=Ge(Ge({},x),{},{tickCoord:S<0?x.coordinate-S*e:x.coordinate})}else o[b]=x=Ge(Ge({},x),{},{tickCoord:x.coordinate});var A=$s(e,x.tickCoord,y,c,u);A&&(c=x.tickCoord+e*(y()/2+i),o[b]=Ge(Ge({},x),{},{isShow:!0}))},p=0;p<m;p++)v(p);return o}function lm(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,c=e.interval,u=e.tickFormatter,l=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(Y(c)||Gt.isSsr)return z3(i,typeof c=="number"&&Y(c)?c:0);var d=[],h=s==="top"||s==="bottom"?"width":"height",m=l&&h==="width"?Yi(l,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(x,w){var y=oe(u)?u(x.value,w):x.value;return h==="width"?q3(Yi(y,{fontSize:t,letterSpacing:r}),m,f):Yi(y,{fontSize:t,letterSpacing:r})[h]},p=i.length>=2?Je(i[1].coordinate-i[0].coordinate):1,g=F3(a,p,h);return c==="equidistantPreserveStart"?W3(p,g,v,i,o):(c==="preserveStart"||c==="preserveStartEnd"?d=G3(p,g,v,i,o,c==="preserveStartEnd"):d=K3(p,g,v,i,o),d.filter(function(b){return b.isShow}))}var Y3=["viewBox"],X3=["viewBox"],Z3=["ticks"];function si(e){"@babel/helpers - typeof";return si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},si(e)}function Rn(){return Rn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rn.apply(this,arguments)}function zS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zS(Object(r),!0).forEach(function(n){fm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tp(e,t){if(e==null)return{};var r=J3(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function J3(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Q3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,j1(n.key),n)}}function eH(e,t,r){return t&&WS(e.prototype,t),r&&WS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function tH(e,t,r){return t=Ns(t),rH(e,C1()?Reflect.construct(t,r||[],Ns(e).constructor):t.apply(e,r))}function rH(e,t){if(t&&(si(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nH(e)}function nH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C1=function(){return!!e})()}function Ns(e){return Ns=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ns(e)}function iH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ch(e,t)}function Ch(e,t){return Ch=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ch(e,t)}function fm(e,t,r){return t=j1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j1(e){var t=aH(e,"string");return si(t)=="symbol"?t:t+""}function aH(e,t){if(si(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ci=(function(e){function t(r){var n;return Q3(this,t),n=tH(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return iH(t,e),eH(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=tp(n,Y3),s=this.props,c=s.viewBox,u=tp(s,X3);return!Mn(a,c)||!Mn(o,u)||!Mn(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,s=i.width,c=i.height,u=i.orientation,l=i.tickSize,f=i.mirror,d=i.tickMargin,h,m,v,p,g,b,x=f?-1:1,w=n.tickSize||l,y=Y(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":h=m=n.coordinate,p=o+ +!f*c,v=p-x*w,b=v-x*d,g=y;break;case"left":v=p=n.coordinate,m=a+ +!f*s,h=m-x*w,g=h-x*d,b=y;break;case"right":v=p=n.coordinate,m=a+ +f*s,h=m+x*w,g=h+x*d,b=y;break;default:h=m=n.coordinate,p=o+ +f*c,v=p+x*w,b=v+x*d,g=y;break}return{line:{x1:h,y1:v,x2:m,y2:p},tick:{x:g,y:b}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,c=n.orientation,u=n.mirror,l=n.axisLine,f=qe(qe(qe({},te(this.props,!1)),te(l,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var d=+(c==="top"&&!u||c==="bottom"&&u);f=qe(qe({},f),{},{x1:i,y1:a+d*s,x2:i+o,y2:a+d*s})}else{var h=+(c==="left"&&!u||c==="right"&&u);f=qe(qe({},f),{},{x1:i+h*o,y1:a,x2:i+h*o,y2:a+s})}return O.createElement("line",Rn({},f,{className:le("recharts-cartesian-axis-line",lt(l,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,c=s.tickLine,u=s.stroke,l=s.tick,f=s.tickFormatter,d=s.unit,h=lm(qe(qe({},this.props),{},{ticks:n}),i,a),m=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),p=te(this.props,!1),g=te(l,!1),b=qe(qe({},p),{},{fill:"none"},te(c,!1)),x=h.map(function(w,y){var S=o.getTickLineCoord(w),A=S.line,P=S.tick,T=qe(qe(qe(qe({textAnchor:m,verticalAnchor:v},p),{},{stroke:"none",fill:u},g),P),{},{index:y,payload:w,visibleTicksCount:h.length,tickFormatter:f});return O.createElement(fe,Rn({className:"recharts-cartesian-axis-tick",key:"tick-".concat(w.value,"-").concat(w.coordinate,"-").concat(w.tickCoord)},Ir(o.props,w,y)),c&&O.createElement("line",Rn({},b,A,{className:le("recharts-cartesian-axis-tick-line",lt(c,"className"))})),l&&t.renderTickItem(l,T,"".concat(oe(f)?f(w.value,y):w.value).concat(d||"")))});return O.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,c=i.ticksGenerator,u=i.className,l=i.hide;if(l)return null;var f=this.props,d=f.ticks,h=tp(f,Z3),m=d;return oe(c)&&(m=d&&d.length>0?c(this.props):c(h)),o<=0||s<=0||!m||!m.length?null:O.createElement(fe,{className:le("recharts-cartesian-axis",u),ref:function(p){n.layerReference=p}},a&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),He.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=le(i.className,"recharts-cartesian-axis-tick-value");return O.isValidElement(n)?o=O.cloneElement(n,qe(qe({},i),{},{className:s})):oe(n)?o=n(qe(qe({},i),{},{className:s})):o=O.createElement(cn,Rn({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(O.Component);fm(Ci,"displayName","CartesianAxis");fm(Ci,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var oH=["x1","y1","x2","y2","key"],sH=["offset"];function ln(e){"@babel/helpers - typeof";return ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ln(e)}function US(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?US(Object(r),!0).forEach(function(n){cH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):US(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cH(e,t,r){return t=uH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uH(e){var t=lH(e,"string");return ln(t)=="symbol"?t:t+""}function lH(e,t){if(ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rn(){return rn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rn.apply(this,arguments)}function HS(e,t){if(e==null)return{};var r=fH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var dH=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,s=t.height,c=t.ry;return O.createElement("rect",{x:i,y:a,ry:c,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function I1(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(oe(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,c=HS(t,oH),u=te(c,!1);u.offset;var l=HS(u,sH);r=O.createElement("line",rn({},l,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function pH(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,c){var u=Xe(Xe({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(c),index:c});return I1(i,u)});return O.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function hH(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,c){var u=Xe(Xe({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(c),index:c});return I1(i,u)});return O.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function vH(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,c=e.horizontal,u=c===void 0?!0:c;if(!u||!t||!t.length)return null;var l=s.map(function(d){return Math.round(d+i-i)}).sort(function(d,h){return d-h});i!==l[0]&&l.unshift(0);var f=l.map(function(d,h){var m=!l[h+1],v=m?i+o-d:l[h+1]-d;if(v<=0)return null;var p=h%t.length;return O.createElement("rect",{key:"react-".concat(h),y:d,x:n,height:v,width:a,stroke:"none",fill:t[p],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function mH(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,c=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var l=u.map(function(d){return Math.round(d+a-a)}).sort(function(d,h){return d-h});a!==l[0]&&l.unshift(0);var f=l.map(function(d,h){var m=!l[h+1],v=m?a+s-d:l[h+1]-d;if(v<=0)return null;var p=h%n.length;return O.createElement("rect",{key:"react-".concat(h),x:d,y:o,width:v,height:c,stroke:"none",fill:n[p],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var yH=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return AP(lm(Xe(Xe(Xe({},Ci.defaultProps),n),{},{ticks:ir(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},gH=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return AP(lm(Xe(Xe(Xe({},Ci.defaultProps),n),{},{ticks:ir(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},An={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Xa(e){var t,r,n,i,a,o,s=om(),c=sm(),u=a3(),l=Xe(Xe({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:An.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:An.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:An.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:An.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:An.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:An.verticalFill,x:Y(e.x)?e.x:u.left,y:Y(e.y)?e.y:u.top,width:Y(e.width)?e.width:u.width,height:Y(e.height)?e.height:u.height}),f=l.x,d=l.y,h=l.width,m=l.height,v=l.syncWithTicks,p=l.horizontalValues,g=l.verticalValues,b=r3(),x=n3();if(!Y(h)||h<=0||!Y(m)||m<=0||!Y(f)||f!==+f||!Y(d)||d!==+d)return null;var w=l.verticalCoordinatesGenerator||yH,y=l.horizontalCoordinatesGenerator||gH,S=l.horizontalPoints,A=l.verticalPoints;if((!S||!S.length)&&oe(y)){var P=p&&p.length,T=y({yAxis:x?Xe(Xe({},x),{},{ticks:P?p:x.ticks}):void 0,width:s,height:c,offset:u},P?!0:v);Tt(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(ln(T),"]")),Array.isArray(T)&&(S=T)}if((!A||!A.length)&&oe(w)){var R=g&&g.length,C=w({xAxis:b?Xe(Xe({},b),{},{ticks:R?g:b.ticks}):void 0,width:s,height:c,offset:u},R?!0:v);Tt(Array.isArray(C),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(ln(C),"]")),Array.isArray(C)&&(A=C)}return O.createElement("g",{className:"recharts-cartesian-grid"},O.createElement(dH,{fill:l.fill,fillOpacity:l.fillOpacity,x:l.x,y:l.y,width:l.width,height:l.height,ry:l.ry}),O.createElement(pH,rn({},l,{offset:u,horizontalPoints:S,xAxis:b,yAxis:x})),O.createElement(hH,rn({},l,{offset:u,verticalPoints:A,xAxis:b,yAxis:x})),O.createElement(vH,rn({},l,{horizontalPoints:S})),O.createElement(mH,rn({},l,{verticalPoints:A})))}Xa.displayName="CartesianGrid";var bH=["type","layout","connectNulls","ref"],xH=["key"];function ci(e){"@babel/helpers - typeof";return ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ci(e)}function VS(e,t){if(e==null)return{};var r=wH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ta(){return ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ta.apply(this,arguments)}function KS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function at(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KS(Object(r),!0).forEach(function(n){Pt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _n(e){return _H(e)||AH(e)||OH(e)||SH()}function SH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
63
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OH(e,t){if(e){if(typeof e=="string")return jh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jh(e,t)}}function AH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _H(e){if(Array.isArray(e))return jh(e)}function jh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function PH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,k1(n.key),n)}}function EH(e,t,r){return t&&GS(e.prototype,t),r&&GS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function TH(e,t,r){return t=Ds(t),CH(e,R1()?Reflect.construct(t,r||[],Ds(e).constructor):t.apply(e,r))}function CH(e,t){if(t&&(ci(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jH(e)}function jH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R1=function(){return!!e})()}function Ds(e){return Ds=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ds(e)}function IH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ih(e,t)}function Ih(e,t){return Ih=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ih(e,t)}function Pt(e,t,r){return t=k1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k1(e){var t=RH(e,"string");return ci(t)=="symbol"?t:t+""}function RH(e,t){if(ci(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ci(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Za=(function(e){function t(){var r;PH(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=TH(this,t,[].concat(i)),Pt(r,"state",{isAnimationFinished:!0,totalLength:0}),Pt(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),Pt(r,"getStrokeDasharray",function(o,s,c){var u=c.reduce(function(g,b){return g+b});if(!u)return r.generateSimpleStrokeDasharray(s,o);for(var l=Math.floor(o/u),f=o%u,d=s-o,h=[],m=0,v=0;m<c.length;v+=c[m],++m)if(v+c[m]>f){h=[].concat(_n(c.slice(0,m)),[f-v]);break}var p=h.length%2===0?[0,d]:[d];return[].concat(_n(t.repeat(c,l)),_n(h),p).map(function(g){return"".concat(g,"px")}).join(", ")}),Pt(r,"id",Nr("recharts-line-")),Pt(r,"pathRef",function(o){r.mainCurve=o}),Pt(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Pt(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return IH(t,e),EH(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,s=a.xAxis,c=a.yAxis,u=a.layout,l=a.children,f=tt(l,_i);if(!f)return null;var d=function(v,p){return{x:v.x,y:v.y,value:v.value,errorVal:Ee(v.payload,p)}},h={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement(fe,h,f.map(function(m){return O.cloneElement(m,{key:"bar-".concat(m.props.dataKey),data:o,xAxis:s,yAxis:c,layout:u,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,c=s.dot,u=s.points,l=s.dataKey,f=te(this.props,!1),d=te(c,!0),h=u.map(function(v,p){var g=at(at(at({key:"dot-".concat(p),r:3},f),d),{},{index:p,cx:v.x,cy:v.y,value:v.value,dataKey:l,payload:v.payload,points:u});return t.renderDotItem(c,g)}),m={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(fe,ta({className:"recharts-line-dots",key:"dots"},m),h)}},{key:"renderCurveStatically",value:function(n,i,a,o){var s=this.props,c=s.type,u=s.layout,l=s.connectNulls;s.ref;var f=VS(s,bH),d=at(at(at({},te(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:c,layout:u,connectNulls:l});return O.createElement(Cr,ta({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,c=o.strokeDasharray,u=o.isAnimationActive,l=o.animationBegin,f=o.animationDuration,d=o.animationEasing,h=o.animationId,m=o.animateNewValues,v=o.width,p=o.height,g=this.state,b=g.prevPoints,x=g.totalLength;return O.createElement(dt,{begin:l,duration:f,isActive:u,easing:d,from:{t:0},to:{t:1},key:"line-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(w){var y=w.t;if(b){var S=b.length/s.length,A=s.map(function(j,k){var N=Math.floor(k*S);if(b[N]){var D=b[N],$=Pe(D.x,j.x),L=Pe(D.y,j.y);return at(at({},j),{},{x:$(y),y:L(y)})}if(m){var B=Pe(v*2,j.x),W=Pe(p/2,j.y);return at(at({},j),{},{x:B(y),y:W(y)})}return at(at({},j),{},{x:j.x,y:j.y})});return a.renderCurveStatically(A,n,i)}var P=Pe(0,x),T=P(y),R;if(c){var C="".concat(c).split(/[,\s]+/gim).map(function(j){return parseFloat(j)});R=a.getStrokeDasharray(T,x,C)}else R=a.generateSimpleStrokeDasharray(x,T);return a.renderCurveStatically(s,n,i,{strokeDasharray:R})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,s=a.isAnimationActive,c=this.state,u=c.prevPoints,l=c.totalLength;return s&&o&&o.length&&(!u&&l>0||!lr(u,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,c=i.className,u=i.xAxis,l=i.yAxis,f=i.top,d=i.left,h=i.width,m=i.height,v=i.isAnimationActive,p=i.id;if(a||!s||!s.length)return null;var g=this.state.isAnimationFinished,b=s.length===1,x=le("recharts-line",c),w=u&&u.allowDataOverflow,y=l&&l.allowDataOverflow,S=w||y,A=se(p)?this.id:p,P=(n=te(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=P.r,R=T===void 0?3:T,C=P.strokeWidth,j=C===void 0?2:C,k=PA(o)?o:{},N=k.clipDot,D=N===void 0?!0:N,$=R*2+j;return O.createElement(fe,{className:x},w||y?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(A)},O.createElement("rect",{x:w?d:d-h/2,y:y?f:f-m/2,width:w?h:h*2,height:y?m:m*2})),!D&&O.createElement("clipPath",{id:"clipPath-dots-".concat(A)},O.createElement("rect",{x:d-$/2,y:f-$/2,width:h+$,height:m+$}))):null,!b&&this.renderCurve(S,A),this.renderErrorBar(S,A),(b||o)&&this.renderDots(S,D,A),(!v||g)&&xt.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(_n(n),[0]):n,o=[],s=0;s<i;++s)o=[].concat(_n(o),_n(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(O.isValidElement(n))a=O.cloneElement(n,i);else if(oe(n))a=n(i);else{var o=i.key,s=VS(i,xH),c=le("recharts-line-dot",typeof n!="boolean"?n.className:"");a=O.createElement(Pi,ta({key:o},s,{className:c}))}return a}}])})(O.PureComponent);Pt(Za,"displayName","Line");Pt(Za,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Gt.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Pt(Za,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,c=e.displayedData,u=e.offset,l=t.layout,f=c.map(function(d,h){var m=Ee(d,o);return l==="horizontal"?{x:Gn({axis:r,ticks:i,bandSize:s,entry:d,index:h}),y:se(m)?null:n.scale(m),value:m,payload:d}:{x:se(m)?null:r.scale(m),y:Gn({axis:n,ticks:a,bandSize:s,entry:d,index:h}),value:m,payload:d}});return at({points:f,layout:l},u)});var kH=["layout","type","stroke","connectNulls","isRange","ref"],MH=["key"],M1;function ui(e){"@babel/helpers - typeof";return ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ui(e)}function $1(e,t){if(e==null)return{};var r=$H(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $H(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function nn(){return nn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nn.apply(this,arguments)}function YS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YS(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,D1(n.key),n)}}function DH(e,t,r){return t&&XS(e.prototype,t),r&&XS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function LH(e,t,r){return t=Ls(t),BH(e,N1()?Reflect.construct(t,r||[],Ls(e).constructor):t.apply(e,r))}function BH(e,t){if(t&&(ui(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qH(e)}function qH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(N1=function(){return!!e})()}function Ls(e){return Ls=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ls(e)}function FH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rh(e,t)}function Rh(e,t){return Rh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Rh(e,t)}function Lt(e,t,r){return t=D1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D1(e){var t=zH(e,"string");return ui(t)=="symbol"?t:t+""}function zH(e,t){if(ui(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ui(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Fr=(function(e){function t(){var r;NH(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=LH(this,t,[].concat(i)),Lt(r,"state",{isAnimationFinished:!0}),Lt(r,"id",Nr("recharts-area-")),Lt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),oe(o)&&o()}),Lt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),oe(o)&&o()}),r}return FH(t,e),DH(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var c=this.props,u=c.dot,l=c.points,f=c.dataKey,d=te(this.props,!1),h=te(u,!0),m=l.map(function(p,g){var b=wr(wr(wr({key:"dot-".concat(g),r:3},d),h),{},{index:g,cx:p.x,cy:p.y,dataKey:f,value:p.value,payload:p.payload,points:l});return t.renderDotItem(u,b)}),v={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(fe,nn({className:"recharts-area-dots"},v),m)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,c=o[0].x,u=o[o.length-1].x,l=n*Math.abs(c-u),f=_r(o.map(function(d){return d.y||0}));return Y(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(_r(a.map(function(d){return d.y||0})),f)),Y(f)?O.createElement("rect",{x:c<u?c:c-l,y:0,width:l,height:Math.floor(f+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,c=o[0].y,u=o[o.length-1].y,l=n*Math.abs(c-u),f=_r(o.map(function(d){return d.x||0}));return Y(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(_r(a.map(function(d){return d.x||0})),f)),Y(f)?O.createElement("rect",{x:0,y:c<u?c:c-l,width:f+(s?parseInt("".concat(s),10):1),height:Math.floor(l)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var s=this.props,c=s.layout,u=s.type,l=s.stroke,f=s.connectNulls,d=s.isRange;s.ref;var h=$1(s,kH);return O.createElement(fe,{clipPath:a?"url(#clipPath-".concat(o,")"):null},O.createElement(Cr,nn({},te(h,!0),{points:n,connectNulls:f,type:u,baseLine:i,layout:c,stroke:"none",className:"recharts-area-area"})),l!=="none"&&O.createElement(Cr,nn({},te(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:f,fill:"none",points:n})),l!=="none"&&d&&O.createElement(Cr,nn({},te(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:f,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,c=o.baseLine,u=o.isAnimationActive,l=o.animationBegin,f=o.animationDuration,d=o.animationEasing,h=o.animationId,m=this.state,v=m.prevPoints,p=m.prevBaseLine;return O.createElement(dt,{begin:l,duration:f,isActive:u,easing:d,from:{t:0},to:{t:1},key:"area-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var b=g.t;if(v){var x=v.length/s.length,w=s.map(function(P,T){var R=Math.floor(T*x);if(v[R]){var C=v[R],j=Pe(C.x,P.x),k=Pe(C.y,P.y);return wr(wr({},P),{},{x:j(b),y:k(b)})}return P}),y;if(Y(c)&&typeof c=="number"){var S=Pe(p,c);y=S(b)}else if(se(c)||xi(c)){var A=Pe(p,0);y=A(b)}else y=c.map(function(P,T){var R=Math.floor(T*x);if(p[R]){var C=p[R],j=Pe(C.x,P.x),k=Pe(C.y,P.y);return wr(wr({},P),{},{x:j(b),y:k(b)})}return P});return a.renderAreaStatically(w,y,n,i)}return O.createElement(fe,null,O.createElement("defs",null,O.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(b))),O.createElement(fe,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(s,c,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,s=a.baseLine,c=a.isAnimationActive,u=this.state,l=u.prevPoints,f=u.prevBaseLine,d=u.totalLength;return c&&o&&o.length&&(!l&&d>0||!lr(l,o)||!lr(f,s))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,s,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,c=i.className,u=i.top,l=i.left,f=i.xAxis,d=i.yAxis,h=i.width,m=i.height,v=i.isAnimationActive,p=i.id;if(a||!s||!s.length)return null;var g=this.state.isAnimationFinished,b=s.length===1,x=le("recharts-area",c),w=f&&f.allowDataOverflow,y=d&&d.allowDataOverflow,S=w||y,A=se(p)?this.id:p,P=(n=te(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=P.r,R=T===void 0?3:T,C=P.strokeWidth,j=C===void 0?2:C,k=PA(o)?o:{},N=k.clipDot,D=N===void 0?!0:N,$=R*2+j;return O.createElement(fe,{className:x},w||y?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(A)},O.createElement("rect",{x:w?l:l-h/2,y:y?u:u-m/2,width:w?h:h*2,height:y?m:m*2})),!D&&O.createElement("clipPath",{id:"clipPath-dots-".concat(A)},O.createElement("rect",{x:l-$/2,y:u-$/2,width:h+$,height:m+$}))):null,b?null:this.renderArea(S,A),(o||b)&&this.renderDots(S,D,A),(!v||g)&&xt.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(O.PureComponent);M1=Fr;Lt(Fr,"displayName","Area");Lt(Fr,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Gt.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Lt(Fr,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(Y(s)&&typeof s=="number")return s;var c=i==="horizontal"?n:r,u=c.scale.domain();if(c.type==="number"){var l=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return s==="dataMin"?f:s==="dataMax"||l<0?l:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});Lt(Fr,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,c=e.dataKey,u=e.stackedData,l=e.dataStartIndex,f=e.displayedData,d=e.offset,h=t.layout,m=u&&u.length,v=M1.getBaseValue(t,r,n,i),p=h==="horizontal",g=!1,b=f.map(function(w,y){var S;m?S=u[l+y]:(S=Ee(w,c),Array.isArray(S)?g=!0:S=[v,S]);var A=S[1]==null||m&&Ee(w,c)==null;return p?{x:Gn({axis:n,ticks:a,bandSize:s,entry:w,index:y}),y:A?null:i.scale(S[1]),value:S,payload:w}:{x:A?null:n.scale(S[1]),y:Gn({axis:i,ticks:o,bandSize:s,entry:w,index:y}),value:S,payload:w}}),x;return m||g?x=b.map(function(w){var y=Array.isArray(w.value)?w.value[0]:null;return p?{x:w.x,y:y!=null&&w.y!=null?i.scale(y):null}:{x:y!=null?n.scale(y):null,y:w.y}}):x=p?i.scale(v):n.scale(v),wr({points:b,baseLine:x,layout:h,isRange:g},d)});Lt(Fr,"renderDotItem",function(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(oe(e))r=e(t);else{var n=le("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=$1(t,MH);r=O.createElement(Pi,nn({},a,{key:i,className:n}))}return r});function li(e){"@babel/helpers - typeof";return li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},li(e)}function WH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UH(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,q1(n.key),n)}}function HH(e,t,r){return t&&UH(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function VH(e,t,r){return t=Bs(t),KH(e,L1()?Reflect.construct(t,r||[],Bs(e).constructor):t.apply(e,r))}function KH(e,t){if(t&&(li(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return GH(e)}function GH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L1=function(){return!!e})()}function Bs(e){return Bs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bs(e)}function YH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kh(e,t)}function kh(e,t){return kh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kh(e,t)}function B1(e,t,r){return t=q1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q1(e){var t=XH(e,"string");return li(t)=="symbol"?t:t+""}function XH(e,t){if(li(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(li(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ja=(function(e){function t(){return WH(this,t),VH(this,t,arguments)}return YH(t,e),HH(t,[{key:"render",value:function(){return null}}])})(E.Component);B1(Ja,"displayName","ZAxis");B1(Ja,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var ZH=["option","isActive"];function ra(){return ra=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ra.apply(this,arguments)}function JH(e,t){if(e==null)return{};var r=QH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function QH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function eV(e){var t=e.option,r=e.isActive,n=JH(e,ZH);return typeof t=="string"?E.createElement(Ss,ra({option:E.createElement(uc,ra({type:t},n)),isActive:r,shapeType:"symbols"},n)):E.createElement(Ss,ra({option:t,isActive:r,shapeType:"symbols"},n))}function fi(e){"@babel/helpers - typeof";return fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fi(e)}function na(){return na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},na.apply(this,arguments)}function ZS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZS(Object(r),!0).forEach(function(n){Er(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,z1(n.key),n)}}function rV(e,t,r){return t&&JS(e.prototype,t),r&&JS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function nV(e,t,r){return t=qs(t),iV(e,F1()?Reflect.construct(t,r||[],qs(e).constructor):t.apply(e,r))}function iV(e,t){if(t&&(fi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aV(e)}function aV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F1=function(){return!!e})()}function qs(e){return qs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qs(e)}function oV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mh(e,t)}function Mh(e,t){return Mh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Mh(e,t)}function Er(e,t,r){return t=z1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z1(e){var t=sV(e,"string");return fi(t)=="symbol"?t:t+""}function sV(e,t){if(fi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Qa=(function(e){function t(){var r;tV(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=nV(this,t,[].concat(i)),Er(r,"state",{isAnimationFinished:!1}),Er(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),Er(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),Er(r,"id",Nr("recharts-scatter-")),r}return oV(t,e),rV(t,[{key:"renderSymbolsStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.activeShape,c=a.activeIndex,u=te(this.props,!1);return n.map(function(l,f){var d=c===f,h=d?s:o,m=mt(mt({},u),l);return O.createElement(fe,na({className:"recharts-scatter-symbol",key:"symbol-".concat(l?.cx,"-").concat(l?.cy,"-").concat(l?.size,"-").concat(f)},Ir(i.props,l,f),{role:"img"}),O.createElement(eV,na({option:h,isActive:d,key:"symbol-".concat(f)},m)))})}},{key:"renderSymbolsWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,u=i.animationEasing,l=i.animationId,f=this.state.prevPoints;return O.createElement(dt,{begin:s,duration:c,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var h=d.t,m=a.map(function(v,p){var g=f&&f[p];if(g){var b=Pe(g.cx,v.cx),x=Pe(g.cy,v.cy),w=Pe(g.size,v.size);return mt(mt({},v),{},{cx:b(h),cy:x(h),size:w(h)})}var y=Pe(0,v.size);return mt(mt({},v),{},{size:y(h)})});return O.createElement(fe,null,n.renderSymbolsStatically(m))})}},{key:"renderSymbols",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=this.state.prevPoints;return a&&i&&i.length&&(!o||!lr(o,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,o=i.xAxis,s=i.yAxis,c=i.children,u=tt(c,_i);return u?u.map(function(l,f){var d=l.props,h=d.direction,m=d.dataKey;return O.cloneElement(l,{key:"".concat(h,"-").concat(m,"-").concat(a[f]),data:a,xAxis:o,yAxis:s,layout:h==="x"?"vertical":"horizontal",dataPointFormatter:function(p,g){return{x:p.cx,y:p.cy,value:h==="x"?+p.node.x:+p.node.y,errorVal:Ee(p,g)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,i=n.points,a=n.line,o=n.lineType,s=n.lineJointType,c=te(this.props,!1),u=te(a,!1),l,f;if(o==="joint")l=i.map(function(x){return{x:x.cx,y:x.cy}});else if(o==="fitting"){var d=AI(i),h=d.xmin,m=d.xmax,v=d.a,p=d.b,g=function(w){return v*w+p};l=[{x:h,y:g(h)},{x:m,y:g(m)}]}var b=mt(mt(mt({},c),{},{fill:"none",stroke:c&&c.fill},u),{},{points:l});return O.isValidElement(a)?f=O.cloneElement(a,b):oe(a)?f=a(b):f=O.createElement(Cr,na({},b,{type:s})),O.createElement(fe,{className:"recharts-scatter-line",key:"recharts-scatter-line"},f)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.points,o=n.line,s=n.className,c=n.xAxis,u=n.yAxis,l=n.left,f=n.top,d=n.width,h=n.height,m=n.id,v=n.isAnimationActive;if(i||!a||!a.length)return null;var p=this.state.isAnimationFinished,g=le("recharts-scatter",s),b=c&&c.allowDataOverflow,x=u&&u.allowDataOverflow,w=b||x,y=se(m)?this.id:m;return O.createElement(fe,{className:g,clipPath:w?"url(#clipPath-".concat(y,")"):null},b||x?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(y)},O.createElement("rect",{x:b?l:l-d/2,y:x?f:f-h/2,width:b?d:d*2,height:x?h:h*2}))):null,o&&this.renderLine(),this.renderErrorBar(),O.createElement(fe,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!v||p)&&xt.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}}])})(O.PureComponent);Er(Qa,"displayName","Scatter");Er(Qa,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Gt.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});Er(Qa,"getComposedData",function(e){var t=e.xAxis,r=e.yAxis,n=e.zAxis,i=e.item,a=e.displayedData,o=e.xAxisTicks,s=e.yAxisTicks,c=e.offset,u=i.props.tooltipType,l=tt(i.props.children,Dr),f=se(t.dataKey)?i.props.dataKey:t.dataKey,d=se(r.dataKey)?i.props.dataKey:r.dataKey,h=n&&n.dataKey,m=n?n.range:Ja.defaultProps.range,v=m&&m[0],p=t.scale.bandwidth?t.scale.bandwidth():0,g=r.scale.bandwidth?r.scale.bandwidth():0,b=a.map(function(x,w){var y=Ee(x,f),S=Ee(x,d),A=!se(h)&&Ee(x,h)||"-",P=[{name:se(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:y,payload:x,dataKey:f,type:u},{name:se(r.dataKey)?i.props.name:r.name||r.dataKey,unit:r.unit||"",value:S,payload:x,dataKey:d,type:u}];A!=="-"&&P.push({name:n.name||n.dataKey,unit:n.unit||"",value:A,payload:x,dataKey:h,type:u});var T=Gn({axis:t,ticks:o,bandSize:p,entry:x,index:w,dataKey:f}),R=Gn({axis:r,ticks:s,bandSize:g,entry:x,index:w,dataKey:d}),C=A!=="-"?n.scale(A):v,j=Math.sqrt(Math.max(C,0)/Math.PI);return mt(mt({},x),{},{cx:T,cy:R,x:T-j,y:R-j,xAxis:t,yAxis:r,zAxis:n,width:2*j,height:2*j,size:C,node:{x:y,y:S,z:A},tooltipPayload:P,tooltipPosition:{x:T,y:R},payload:x},l&&l[w]&&l[w].props)});return mt({points:b},c)});function di(e){"@babel/helpers - typeof";return di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},di(e)}function cV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,H1(n.key),n)}}function lV(e,t,r){return t&&uV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fV(e,t,r){return t=Fs(t),dV(e,W1()?Reflect.construct(t,r||[],Fs(e).constructor):t.apply(e,r))}function dV(e,t){if(t&&(di(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pV(e)}function pV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(W1=function(){return!!e})()}function Fs(e){return Fs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fs(e)}function hV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$h(e,t)}function $h(e,t){return $h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$h(e,t)}function U1(e,t,r){return t=H1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H1(e){var t=vV(e,"string");return di(t)=="symbol"?t:t+""}function vV(e,t){if(di(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(di(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Nh(){return Nh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nh.apply(this,arguments)}function mV(e){var t=e.xAxisId,r=om(),n=sm(),i=x1(t);return i==null?null:E.createElement(Ci,Nh({},i,{className:le("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return ir(o,!0)}}))}var Ct=(function(e){function t(){return cV(this,t),fV(this,t,arguments)}return hV(t,e),lV(t,[{key:"render",value:function(){return E.createElement(mV,this.props)}}])})(E.Component);U1(Ct,"displayName","XAxis");U1(Ct,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function pi(e){"@babel/helpers - typeof";return pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pi(e)}function yV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,G1(n.key),n)}}function bV(e,t,r){return t&&gV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xV(e,t,r){return t=zs(t),wV(e,V1()?Reflect.construct(t,r||[],zs(e).constructor):t.apply(e,r))}function wV(e,t){if(t&&(pi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SV(e)}function SV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(V1=function(){return!!e})()}function zs(e){return zs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zs(e)}function OV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dh(e,t)}function Dh(e,t){return Dh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Dh(e,t)}function K1(e,t,r){return t=G1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G1(e){var t=AV(e,"string");return pi(t)=="symbol"?t:t+""}function AV(e,t){if(pi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Lh(){return Lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lh.apply(this,arguments)}var _V=function(t){var r=t.yAxisId,n=om(),i=sm(),a=w1(r);return a==null?null:E.createElement(Ci,Lh({},a,{className:le("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return ir(s,!0)}}))},jt=(function(e){function t(){return yV(this,t),xV(this,t,arguments)}return OV(t,e),bV(t,[{key:"render",value:function(){return E.createElement(_V,this.props)}}])})(E.Component);K1(jt,"displayName","YAxis");K1(jt,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function QS(e){return CV(e)||TV(e)||EV(e)||PV()}function PV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
64
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EV(e,t){if(e){if(typeof e=="string")return Bh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bh(e,t)}}function TV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function CV(e){if(Array.isArray(e))return Bh(e)}function Bh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var qh=function(t,r,n,i,a){var o=tt(t,um),s=tt(t,jc),c=[].concat(QS(o),QS(s)),u=tt(t,Rc),l="".concat(i,"Id"),f=i[0],d=r;if(c.length&&(d=c.reduce(function(v,p){if(p.props[l]===n&&Ft(p.props,"extendDomain")&&Y(p.props[f])){var g=p.props[f];return[Math.min(v[0],g),Math.max(v[1],g)]}return v},d)),u.length){var h="".concat(f,"1"),m="".concat(f,"2");d=u.reduce(function(v,p){if(p.props[l]===n&&Ft(p.props,"extendDomain")&&Y(p.props[h])&&Y(p.props[m])){var g=p.props[h],b=p.props[m];return[Math.min(v[0],g,b),Math.max(v[1],g,b)]}return v},d)}return a&&a.length&&(d=a.reduce(function(v,p){return Y(p)?[Math.min(v[0],p),Math.max(v[1],p)]:v},d)),d},rp={exports:{}},eO;function jV(){return eO||(eO=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(c,u,l){this.fn=c,this.context=u,this.once=l||!1}function a(c,u,l,f,d){if(typeof l!="function")throw new TypeError("The listener must be a function");var h=new i(l,f||c,d),m=r?r+u:u;return c._events[m]?c._events[m].fn?c._events[m]=[c._events[m],h]:c._events[m].push(h):(c._events[m]=h,c._eventsCount++),c}function o(c,u){--c._eventsCount===0?c._events=new n:delete c._events[u]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],l,f;if(this._eventsCount===0)return u;for(f in l=this._events)t.call(l,f)&&u.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(l)):u},s.prototype.listeners=function(u){var l=r?r+u:u,f=this._events[l];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,m=new Array(h);d<h;d++)m[d]=f[d].fn;return m},s.prototype.listenerCount=function(u){var l=r?r+u:u,f=this._events[l];return f?f.fn?1:f.length:0},s.prototype.emit=function(u,l,f,d,h,m){var v=r?r+u:u;if(!this._events[v])return!1;var p=this._events[v],g=arguments.length,b,x;if(p.fn){switch(p.once&&this.removeListener(u,p.fn,void 0,!0),g){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,l),!0;case 3:return p.fn.call(p.context,l,f),!0;case 4:return p.fn.call(p.context,l,f,d),!0;case 5:return p.fn.call(p.context,l,f,d,h),!0;case 6:return p.fn.call(p.context,l,f,d,h,m),!0}for(x=1,b=new Array(g-1);x<g;x++)b[x-1]=arguments[x];p.fn.apply(p.context,b)}else{var w=p.length,y;for(x=0;x<w;x++)switch(p[x].once&&this.removeListener(u,p[x].fn,void 0,!0),g){case 1:p[x].fn.call(p[x].context);break;case 2:p[x].fn.call(p[x].context,l);break;case 3:p[x].fn.call(p[x].context,l,f);break;case 4:p[x].fn.call(p[x].context,l,f,d);break;default:if(!b)for(y=1,b=new Array(g-1);y<g;y++)b[y-1]=arguments[y];p[x].fn.apply(p[x].context,b)}}return!0},s.prototype.on=function(u,l,f){return a(this,u,l,f,!1)},s.prototype.once=function(u,l,f){return a(this,u,l,f,!0)},s.prototype.removeListener=function(u,l,f,d){var h=r?r+u:u;if(!this._events[h])return this;if(!l)return o(this,h),this;var m=this._events[h];if(m.fn)m.fn===l&&(!d||m.once)&&(!f||m.context===f)&&o(this,h);else{for(var v=0,p=[],g=m.length;v<g;v++)(m[v].fn!==l||d&&!m[v].once||f&&m[v].context!==f)&&p.push(m[v]);p.length?this._events[h]=p.length===1?p[0]:p:o(this,h)}return this},s.prototype.removeAllListeners=function(u){var l;return u?(l=r?r+u:u,this._events[l]&&o(this,l)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(rp)),rp.exports}var IV=jV();const RV=Oe(IV);var np=new RV,ip="recharts.syncMouseEvents";function La(e){"@babel/helpers - typeof";return La=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},La(e)}function kV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Y1(n.key),n)}}function $V(e,t,r){return t&&MV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ap(e,t,r){return t=Y1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y1(e){var t=NV(e,"string");return La(t)=="symbol"?t:t+""}function NV(e,t){if(La(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(La(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var DV=(function(){function e(){kV(this,e),ap(this,"activeIndex",0),ap(this,"coordinateList",[]),ap(this,"layout","horizontal")}return $V(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,s=o===void 0?null:o,c=r.layout,u=c===void 0?null:c,l=r.offset,f=l===void 0?null:l,d=r.mouseHandlerCallback,h=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=h??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,s=i.height,c=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,l=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=a+c+u,d=o+this.offset.top+s/2+l;this.mouseHandlerCallback({pageX:f,pageY:d})}}}])})();function LV(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],i=e?.[1];if(n&&i&&Y(n)&&Y(i))return!0}return!1}function BV(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function X1(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=me(t,r,n,i),s=me(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function qV(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,c=t.cy,u=t.innerRadius,l=t.outerRadius,f=t.angle,d=me(s,c,u,f),h=me(s,c,l,f);n=d.x,i=d.y,a=h.x,o=h.y}else return X1(t);return[{x:n,y:i},{x:a,y:o}]}function Ba(e){"@babel/helpers - typeof";return Ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ba(e)}function tO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function So(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tO(Object(r),!0).forEach(function(n){FV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FV(e,t,r){return t=zV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zV(e){var t=WV(e,"string");return Ba(t)=="symbol"?t:t+""}function WV(e,t){if(Ba(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ba(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UV(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,c=e.offset,u=e.activeTooltipIndex,l=e.tooltipAxisBandSize,f=e.layout,d=e.chartName,h=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!h||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var m,v=Cr;if(d==="ScatterChart")m=o,v=dz;else if(d==="BarChart")m=BV(f,o,c,l),v=rm;else if(f==="radial"){var p=X1(o),g=p.cx,b=p.cy,x=p.radius,w=p.startAngle,y=p.endAngle;m={cx:g,cy:b,startAngle:w,endAngle:y,innerRadius:x,outerRadius:x},v=DP}else m={points:qV(f,o,c)},v=Cr;var S=So(So(So(So({stroke:"#ccc",pointerEvents:"none"},c),m),te(h,!1)),{},{payload:s,payloadIndex:u,className:le("recharts-tooltip-cursor",h.className)});return O.isValidElement(h)?O.cloneElement(h,S):O.createElement(v,S)}var HV=["item"],VV=["children","className","width","height","style","compact","title","desc"];function hi(e){"@babel/helpers - typeof";return hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hi(e)}function kn(){return kn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kn.apply(this,arguments)}function rO(e,t){return YV(e)||GV(e,t)||J1(e,t)||KV()}function KV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
65
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
66
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J1(e,t){if(e){if(typeof e=="string")return zh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zh(e,t)}}function aK(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oK(e){if(Array.isArray(e))return zh(e)}function zh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function iO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iO(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ue(e,t,r){return t=Q1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q1(e){var t=sK(e,"string");return hi(t)=="symbol"?t:t+""}function sK(e,t){if(hi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cK={xAxis:["bottom","top"],yAxis:["left","right"]},uK={width:"100%",height:"100%"},eE={x:0,y:0};function Oo(e){return e}var lK=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},fK=function(t,r,n,i){var a=r.find(function(l){return l&&l.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,s=i.radius;return z(z(z({},i),me(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var c=a.coordinate,u=i.angle;return z(z(z({},i),me(i.cx,i.cy,c,u)),{},{angle:u,radius:c})}return eE},kc=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,c){var u=c.props.data;return u&&u.length?[].concat(vi(s),vi(u)):s},[]);return o.length>0?o:t&&t.length&&Y(i)&&Y(a)?t.slice(i,a+1):[]};function tE(e){return e==="number"?[0,"auto"]:void 0}var Wh=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=kc(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(c,u){var l,f=(l=u.props.data)!==null&&l!==void 0?l:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var h=f===void 0?s:f;d=Lo(h,o.dataKey,i)}else d=f&&f[n]||s[n];return d?[].concat(vi(c),[CP(u,d)]):c},[])},aO=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=lK(a,n),s=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,l=I2(o,s,u,c);if(l>=0&&u){var f=u[l]&&u[l].value,d=Wh(t,r,l,f),h=fK(n,s,l,a);return{activeTooltipIndex:l,activeLabel:f,activePayload:d,activeCoordinate:h}}return null},dK=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,l=t.layout,f=t.children,d=t.stackOffset,h=OP(l,a);return n.reduce(function(m,v){var p,g=v.type.defaultProps!==void 0?z(z({},v.type.defaultProps),v.props):v.props,b=g.type,x=g.dataKey,w=g.allowDataOverflow,y=g.allowDuplicatedCategory,S=g.scale,A=g.ticks,P=g.includeHidden,T=g[o];if(m[T])return m;var R=kc(t.data,{graphicalItems:i.filter(function(U){var G,Z=o in U.props?U.props[o]:(G=U.type.defaultProps)===null||G===void 0?void 0:G[o];return Z===T}),dataStartIndex:c,dataEndIndex:u}),C=R.length,j,k,N;LV(g.domain,w,b)&&(j=Qp(g.domain,null,w),h&&(b==="number"||S!=="auto")&&(N=Zi(R,x,"category")));var D=tE(b);if(!j||j.length===0){var $,L=($=g.domain)!==null&&$!==void 0?$:D;if(x){if(j=Zi(R,x,b),b==="category"&&h){var B=OI(j);y&&B?(k=j,j=Ps(0,C)):y||(j=H0(L,j,v).reduce(function(U,G){return U.indexOf(G)>=0?U:[].concat(vi(U),[G])},[]))}else if(b==="category")y?j=j.filter(function(U){return U!==""&&!se(U)}):j=H0(L,j,v).reduce(function(U,G){return U.indexOf(G)>=0||G===""||se(G)?U:[].concat(vi(U),[G])},[]);else if(b==="number"){var W=N2(R,i.filter(function(U){var G,Z,J=o in U.props?U.props[o]:(G=U.type.defaultProps)===null||G===void 0?void 0:G[o],Q="hide"in U.props?U.props.hide:(Z=U.type.defaultProps)===null||Z===void 0?void 0:Z.hide;return J===T&&(P||!Q)}),x,a,l);W&&(j=W)}h&&(b==="number"||S!=="auto")&&(N=Zi(R,x,"category"))}else h?j=Ps(0,C):s&&s[T]&&s[T].hasStack&&b==="number"?j=d==="expand"?[0,1]:TP(s[T].stackGroups,c,u):j=SP(R,i.filter(function(U){var G=o in U.props?U.props[o]:U.type.defaultProps[o],Z="hide"in U.props?U.props.hide:U.type.defaultProps.hide;return G===T&&(P||!Z)}),b,l,!0);if(b==="number")j=qh(f,j,T,a,A),L&&(j=Qp(L,j,w));else if(b==="category"&&L){var I=L,F=j.every(function(U){return I.indexOf(U)>=0});F&&(j=I)}}return z(z({},m),{},ue({},T,z(z({},g),{},{axisType:a,domain:j,categoricalDomain:N,duplicateDomain:k,originalDomain:(p=g.domain)!==null&&p!==void 0?p:D,isCategorical:h,layout:l})))},{})},pK=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,l=t.layout,f=t.children,d=kc(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:u}),h=d.length,m=OP(l,a),v=-1;return n.reduce(function(p,g){var b=g.type.defaultProps!==void 0?z(z({},g.type.defaultProps),g.props):g.props,x=b[o],w=tE("number");if(!p[x]){v++;var y;return m?y=Ps(0,h):s&&s[x]&&s[x].hasStack?(y=TP(s[x].stackGroups,c,u),y=qh(f,y,x,a)):(y=Qp(w,SP(d,n.filter(function(S){var A,P,T=o in S.props?S.props[o]:(A=S.type.defaultProps)===null||A===void 0?void 0:A[o],R="hide"in S.props?S.props.hide:(P=S.type.defaultProps)===null||P===void 0?void 0:P.hide;return T===x&&!R}),"number",l),i.defaultProps.allowDataOverflow),y=qh(f,y,x,a)),z(z({},p),{},ue({},x,z(z({axisType:a},i.defaultProps),{},{hide:!0,orientation:lt(cK,"".concat(a,".").concat(v%2),null),domain:y,originalDomain:w,isCategorical:m,layout:l})))}return p},{})},hK=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,l=t.children,f="".concat(i,"Id"),d=tt(l,a),h={};return d&&d.length?h=dK(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:c,dataEndIndex:u}):o&&o.length&&(h=pK(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:c,dataEndIndex:u})),h},vK=function(t){var r=Ar(t),n=ir(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Tv(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:us(r,n)}},oO=function(t){var r=t.children,n=t.defaultShowTooltip,i=st(r,ti),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},mK=function(t){return!t||!t.length?!1:t.some(function(r){var n=ar(r&&r.type);return n&&n.indexOf("Bar")>=0})},sO=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},yK=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,c=s===void 0?{}:s,u=n.width,l=n.height,f=n.children,d=n.margin||{},h=st(f,ti),m=st(f,bt),v=Object.keys(c).reduce(function(y,S){var A=c[S],P=A.orientation;return!A.mirror&&!A.hide?z(z({},y),{},ue({},P,y[P]+A.width)):y},{left:d.left||0,right:d.right||0}),p=Object.keys(o).reduce(function(y,S){var A=o[S],P=A.orientation;return!A.mirror&&!A.hide?z(z({},y),{},ue({},P,lt(y,"".concat(P))+A.height)):y},{top:d.top||0,bottom:d.bottom||0}),g=z(z({},p),v),b=g.bottom;h&&(g.bottom+=h.props.height||ti.defaultProps.height),m&&r&&(g=M2(g,i,n,r));var x=u-g.left-g.right,w=l-g.top-g.bottom;return z(z({brushBottom:b},g),{},{width:Math.max(x,0),height:Math.max(w,0)})},gK=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},ji=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,c=t.axisComponents,u=t.legendContent,l=t.formatAxisMap,f=t.defaultProps,d=function(g,b){var x=b.graphicalItems,w=b.stackGroups,y=b.offset,S=b.updateId,A=b.dataStartIndex,P=b.dataEndIndex,T=g.barSize,R=g.layout,C=g.barGap,j=g.barCategoryGap,k=g.maxBarSize,N=sO(R),D=N.numericAxisName,$=N.cateAxisName,L=mK(x),B=[];return x.forEach(function(W,I){var F=kc(g.data,{graphicalItems:[W],dataStartIndex:A,dataEndIndex:P}),U=W.type.defaultProps!==void 0?z(z({},W.type.defaultProps),W.props):W.props,G=U.dataKey,Z=U.maxBarSize,J=U["".concat(D,"Id")],Q=U["".concat($,"Id")],K={},ee=c.reduce(function(Hr,Zt){var Kc,Gc,Yc=b["".concat(Zt.axisType,"Map")],zm=U["".concat(Zt.axisType,"Id")];Yc&&Yc[zm]||Zt.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?nt(!1,"Specifying a(n) ".concat(Zt.axisType,"Id requires a corresponding ").concat(Zt.axisType,"Id on the targeted graphical component ").concat((Kc=W==null||(Gc=W.type)===null||Gc===void 0?void 0:Gc.displayName)!==null&&Kc!==void 0?Kc:"")):nt());var Wm=Yc[zm];return z(z({},Hr),{},ue(ue({},Zt.axisType,Wm),"".concat(Zt.axisType,"Ticks"),ir(Wm)))},K),q=ee[$],H=ee["".concat($,"Ticks")],X=w&&w[J]&&w[J].hasStack&&H2(W,w[J].stackGroups),M=ar(W.type).indexOf("Bar")>=0,ce=us(q,H),V=[],ye=L&&R2({barSize:T,stackGroups:w,totalSize:gK(ee,$)});if(M){var Ae,$e,gr=se(Z)?k:Z,wn=(Ae=($e=us(q,H,!0))!==null&&$e!==void 0?$e:gr)!==null&&Ae!==void 0?Ae:0;V=k2({barGap:C,barCategoryGap:j,bandSize:wn!==ce?wn:ce,sizeList:ye[Q],maxBarSize:gr}),wn!==ce&&(V=V.map(function(Hr){return z(z({},Hr),{},{position:z(z({},Hr.position),{},{offset:Hr.position.offset-wn/2})})}))}var no=W&&W.type&&W.type.getComposedData;no&&B.push({props:z(z({},no(z(z({},ee),{},{displayedData:F,props:g,dataKey:G,item:W,bandSize:ce,barPosition:V,offset:y,stackedData:X,layout:R,dataStartIndex:A,dataEndIndex:P}))),{},ue(ue(ue({key:W.key||"item-".concat(I)},D,ee[D]),$,ee[$]),"animationId",S)),childIndex:NI(W,g.children),item:W})}),B},h=function(g,b){var x=g.props,w=g.dataStartIndex,y=g.dataEndIndex,S=g.updateId;if(!og({props:x}))return null;var A=x.children,P=x.layout,T=x.stackOffset,R=x.data,C=x.reverseStackOrder,j=sO(P),k=j.numericAxisName,N=j.cateAxisName,D=tt(A,n),$=W2(R,D,"".concat(k,"Id"),"".concat(N,"Id"),T,C),L=c.reduce(function(U,G){var Z="".concat(G.axisType,"Map");return z(z({},U),{},ue({},Z,hK(x,z(z({},G),{},{graphicalItems:D,stackGroups:G.axisType===k&&$,dataStartIndex:w,dataEndIndex:y}))))},{}),B=yK(z(z({},L),{},{props:x,graphicalItems:D}),b?.legendBBox);Object.keys(L).forEach(function(U){L[U]=l(x,L[U],B,U.replace("Map",""),r)});var W=L["".concat(N,"Map")],I=vK(W),F=d(x,z(z({},L),{},{dataStartIndex:w,dataEndIndex:y,updateId:S,graphicalItems:D,stackGroups:$,offset:B}));return z(z({formattedGraphicalItems:F,graphicalItems:D,offset:B,stackGroups:$},I),L)},m=(function(p){function g(b){var x,w,y;return ZV(this,g),y=eK(this,g,[b]),ue(y,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ue(y,"accessibilityManager",new DV),ue(y,"handleLegendBBoxUpdate",function(S){if(S){var A=y.state,P=A.dataStartIndex,T=A.dataEndIndex,R=A.updateId;y.setState(z({legendBBox:S},h({props:y.props,dataStartIndex:P,dataEndIndex:T,updateId:R},z(z({},y.state),{},{legendBBox:S}))))}}),ue(y,"handleReceiveSyncEvent",function(S,A,P){if(y.props.syncId===S){if(P===y.eventEmitterSymbol&&typeof y.props.syncMethod!="function")return;y.applySyncEvent(A)}}),ue(y,"handleBrushChange",function(S){var A=S.startIndex,P=S.endIndex;if(A!==y.state.dataStartIndex||P!==y.state.dataEndIndex){var T=y.state.updateId;y.setState(function(){return z({dataStartIndex:A,dataEndIndex:P},h({props:y.props,dataStartIndex:A,dataEndIndex:P,updateId:T},y.state))}),y.triggerSyncEvent({dataStartIndex:A,dataEndIndex:P})}}),ue(y,"handleMouseEnter",function(S){var A=y.getMouseInfo(S);if(A){var P=z(z({},A),{},{isTooltipActive:!0});y.setState(P),y.triggerSyncEvent(P);var T=y.props.onMouseEnter;oe(T)&&T(P,S)}}),ue(y,"triggeredAfterMouseMove",function(S){var A=y.getMouseInfo(S),P=A?z(z({},A),{},{isTooltipActive:!0}):{isTooltipActive:!1};y.setState(P),y.triggerSyncEvent(P);var T=y.props.onMouseMove;oe(T)&&T(P,S)}),ue(y,"handleItemMouseEnter",function(S){y.setState(function(){return{isTooltipActive:!0,activeItem:S,activePayload:S.tooltipPayload,activeCoordinate:S.tooltipPosition||{x:S.cx,y:S.cy}}})}),ue(y,"handleItemMouseLeave",function(){y.setState(function(){return{isTooltipActive:!1}})}),ue(y,"handleMouseMove",function(S){S.persist(),y.throttleTriggeredAfterMouseMove(S)}),ue(y,"handleMouseLeave",function(S){y.throttleTriggeredAfterMouseMove.cancel();var A={isTooltipActive:!1};y.setState(A),y.triggerSyncEvent(A);var P=y.props.onMouseLeave;oe(P)&&P(A,S)}),ue(y,"handleOuterEvent",function(S){var A=$I(S),P=lt(y.props,"".concat(A));if(A&&oe(P)){var T,R;/.*touch.*/i.test(A)?R=y.getMouseInfo(S.changedTouches[0]):R=y.getMouseInfo(S),P((T=R)!==null&&T!==void 0?T:{},S)}}),ue(y,"handleClick",function(S){var A=y.getMouseInfo(S);if(A){var P=z(z({},A),{},{isTooltipActive:!0});y.setState(P),y.triggerSyncEvent(P);var T=y.props.onClick;oe(T)&&T(P,S)}}),ue(y,"handleMouseDown",function(S){var A=y.props.onMouseDown;if(oe(A)){var P=y.getMouseInfo(S);A(P,S)}}),ue(y,"handleMouseUp",function(S){var A=y.props.onMouseUp;if(oe(A)){var P=y.getMouseInfo(S);A(P,S)}}),ue(y,"handleTouchMove",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&y.throttleTriggeredAfterMouseMove(S.changedTouches[0])}),ue(y,"handleTouchStart",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&y.handleMouseDown(S.changedTouches[0])}),ue(y,"handleTouchEnd",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&y.handleMouseUp(S.changedTouches[0])}),ue(y,"handleDoubleClick",function(S){var A=y.props.onDoubleClick;if(oe(A)){var P=y.getMouseInfo(S);A(P,S)}}),ue(y,"handleContextMenu",function(S){var A=y.props.onContextMenu;if(oe(A)){var P=y.getMouseInfo(S);A(P,S)}}),ue(y,"triggerSyncEvent",function(S){y.props.syncId!==void 0&&np.emit(ip,y.props.syncId,S,y.eventEmitterSymbol)}),ue(y,"applySyncEvent",function(S){var A=y.props,P=A.layout,T=A.syncMethod,R=y.state.updateId,C=S.dataStartIndex,j=S.dataEndIndex;if(S.dataStartIndex!==void 0||S.dataEndIndex!==void 0)y.setState(z({dataStartIndex:C,dataEndIndex:j},h({props:y.props,dataStartIndex:C,dataEndIndex:j,updateId:R},y.state)));else if(S.activeTooltipIndex!==void 0){var k=S.chartX,N=S.chartY,D=S.activeTooltipIndex,$=y.state,L=$.offset,B=$.tooltipTicks;if(!L)return;if(typeof T=="function")D=T(B,S);else if(T==="value"){D=-1;for(var W=0;W<B.length;W++)if(B[W].value===S.activeLabel){D=W;break}}var I=z(z({},L),{},{x:L.left,y:L.top}),F=Math.min(k,I.x+I.width),U=Math.min(N,I.y+I.height),G=B[D]&&B[D].value,Z=Wh(y.state,y.props.data,D),J=B[D]?{x:P==="horizontal"?B[D].coordinate:F,y:P==="horizontal"?U:B[D].coordinate}:eE;y.setState(z(z({},S),{},{activeLabel:G,activeCoordinate:J,activePayload:Z,activeTooltipIndex:D}))}else y.setState(S)}),ue(y,"renderCursor",function(S){var A,P=y.state,T=P.isTooltipActive,R=P.activeCoordinate,C=P.activePayload,j=P.offset,k=P.activeTooltipIndex,N=P.tooltipAxisBandSize,D=y.getTooltipEventType(),$=(A=S.props.active)!==null&&A!==void 0?A:T,L=y.props.layout,B=S.key||"_recharts-cursor";return O.createElement(UV,{key:B,activeCoordinate:R,activePayload:C,activeTooltipIndex:k,chartName:r,element:S,isActive:$,layout:L,offset:j,tooltipAxisBandSize:N,tooltipEventType:D})}),ue(y,"renderPolarAxis",function(S,A,P){var T=lt(S,"type.axisType"),R=lt(y.state,"".concat(T,"Map")),C=S.type.defaultProps,j=C!==void 0?z(z({},C),S.props):S.props,k=R&&R[j["".concat(T,"Id")]];return O.cloneElement(S,z(z({},k),{},{className:le(T,k.className),key:S.key||"".concat(A,"-").concat(P),ticks:ir(k,!0)}))}),ue(y,"renderPolarGrid",function(S){var A=S.props,P=A.radialLines,T=A.polarAngles,R=A.polarRadius,C=y.state,j=C.radiusAxisMap,k=C.angleAxisMap,N=Ar(j),D=Ar(k),$=D.cx,L=D.cy,B=D.innerRadius,W=D.outerRadius;return O.cloneElement(S,{polarAngles:Array.isArray(T)?T:ir(D,!0).map(function(I){return I.coordinate}),polarRadius:Array.isArray(R)?R:ir(N,!0).map(function(I){return I.coordinate}),cx:$,cy:L,innerRadius:B,outerRadius:W,key:S.key||"polar-grid",radialLines:P})}),ue(y,"renderLegend",function(){var S=y.state.formattedGraphicalItems,A=y.props,P=A.children,T=A.width,R=A.height,C=y.props.margin||{},j=T-(C.left||0)-(C.right||0),k=xP({children:P,formattedGraphicalItems:S,legendWidth:j,legendContent:u});if(!k)return null;var N=k.item,D=nO(k,HV);return O.cloneElement(N,z(z({},D),{},{chartWidth:T,chartHeight:R,margin:C,onBBoxUpdate:y.handleLegendBBoxUpdate}))}),ue(y,"renderTooltip",function(){var S,A=y.props,P=A.children,T=A.accessibilityLayer,R=st(P,Ye);if(!R)return null;var C=y.state,j=C.isTooltipActive,k=C.activeCoordinate,N=C.activePayload,D=C.activeLabel,$=C.offset,L=(S=R.props.active)!==null&&S!==void 0?S:j;return O.cloneElement(R,{viewBox:z(z({},$),{},{x:$.left,y:$.top}),active:L,label:D,payload:L?N:[],coordinate:k,accessibilityLayer:T})}),ue(y,"renderBrush",function(S){var A=y.props,P=A.margin,T=A.data,R=y.state,C=R.offset,j=R.dataStartIndex,k=R.dataEndIndex,N=R.updateId;return O.cloneElement(S,{key:S.key||"_recharts-brush",onChange:mo(y.handleBrushChange,S.props.onChange),data:T,x:Y(S.props.x)?S.props.x:C.left,y:Y(S.props.y)?S.props.y:C.top+C.height+C.brushBottom-(P.bottom||0),width:Y(S.props.width)?S.props.width:C.width,startIndex:j,endIndex:k,updateId:"brush-".concat(N)})}),ue(y,"renderReferenceElement",function(S,A,P){if(!S)return null;var T=y,R=T.clipPathId,C=y.state,j=C.xAxisMap,k=C.yAxisMap,N=C.offset,D=S.type.defaultProps||{},$=S.props,L=$.xAxisId,B=L===void 0?D.xAxisId:L,W=$.yAxisId,I=W===void 0?D.yAxisId:W;return O.cloneElement(S,{key:S.key||"".concat(A,"-").concat(P),xAxis:j[B],yAxis:k[I],viewBox:{x:N.left,y:N.top,width:N.width,height:N.height},clipPathId:R})}),ue(y,"renderActivePoints",function(S){var A=S.item,P=S.activePoint,T=S.basePoint,R=S.childIndex,C=S.isRange,j=[],k=A.props.key,N=A.item.type.defaultProps!==void 0?z(z({},A.item.type.defaultProps),A.item.props):A.item.props,D=N.activeDot,$=N.dataKey,L=z(z({index:R,dataKey:$,cx:P.x,cy:P.y,r:4,fill:em(A.item),strokeWidth:2,stroke:"#fff",payload:P.payload,value:P.value},te(D,!1)),Bo(D));return j.push(g.renderActiveDot(D,L,"".concat(k,"-activePoint-").concat(R))),T?j.push(g.renderActiveDot(D,z(z({},L),{},{cx:T.x,cy:T.y}),"".concat(k,"-basePoint-").concat(R))):C&&j.push(null),j}),ue(y,"renderGraphicChild",function(S,A,P){var T=y.filterFormatItem(S,A,P);if(!T)return null;var R=y.getTooltipEventType(),C=y.state,j=C.isTooltipActive,k=C.tooltipAxis,N=C.activeTooltipIndex,D=C.activeLabel,$=y.props.children,L=st($,Ye),B=T.props,W=B.points,I=B.isRange,F=B.baseLine,U=T.item.type.defaultProps!==void 0?z(z({},T.item.type.defaultProps),T.item.props):T.item.props,G=U.activeDot,Z=U.hide,J=U.activeBar,Q=U.activeShape,K=!!(!Z&&j&&L&&(G||J||Q)),ee={};R!=="axis"&&L&&L.props.trigger==="click"?ee={onClick:mo(y.handleItemMouseEnter,S.props.onClick)}:R!=="axis"&&(ee={onMouseLeave:mo(y.handleItemMouseLeave,S.props.onMouseLeave),onMouseEnter:mo(y.handleItemMouseEnter,S.props.onMouseEnter)});var q=O.cloneElement(S,z(z({},T.props),ee));function H(Zt){return typeof k.dataKey=="function"?k.dataKey(Zt.payload):null}if(K)if(N>=0){var X,M;if(k.dataKey&&!k.allowDuplicatedCategory){var ce=typeof k.dataKey=="function"?H:"payload.".concat(k.dataKey.toString());X=Lo(W,ce,D),M=I&&F&&Lo(F,ce,D)}else X=W?.[N],M=I&&F&&F[N];if(Q||J){var V=S.props.activeIndex!==void 0?S.props.activeIndex:N;return[O.cloneElement(S,z(z(z({},T.props),ee),{},{activeIndex:V})),null,null]}if(!se(X))return[q].concat(vi(y.renderActivePoints({item:T,activePoint:X,basePoint:M,childIndex:N,isRange:I})))}else{var ye,Ae=(ye=y.getItemByXY(y.state.activeCoordinate))!==null&&ye!==void 0?ye:{graphicalItem:q},$e=Ae.graphicalItem,gr=$e.item,wn=gr===void 0?S:gr,no=$e.childIndex,Hr=z(z(z({},T.props),ee),{},{activeIndex:no});return[O.cloneElement(wn,Hr),null,null]}return I?[q,null,null]:[q,null]}),ue(y,"renderCustomized",function(S,A,P){return O.cloneElement(S,z(z({key:"recharts-customized-".concat(P)},y.props),y.state))}),ue(y,"renderMap",{CartesianGrid:{handler:Oo,once:!0},ReferenceArea:{handler:y.renderReferenceElement},ReferenceLine:{handler:Oo},ReferenceDot:{handler:y.renderReferenceElement},XAxis:{handler:Oo},YAxis:{handler:Oo},Brush:{handler:y.renderBrush,once:!0},Bar:{handler:y.renderGraphicChild},Line:{handler:y.renderGraphicChild},Area:{handler:y.renderGraphicChild},Radar:{handler:y.renderGraphicChild},RadialBar:{handler:y.renderGraphicChild},Scatter:{handler:y.renderGraphicChild},Pie:{handler:y.renderGraphicChild},Funnel:{handler:y.renderGraphicChild},Tooltip:{handler:y.renderCursor,once:!0},PolarGrid:{handler:y.renderPolarGrid,once:!0},PolarAngleAxis:{handler:y.renderPolarAxis},PolarRadiusAxis:{handler:y.renderPolarAxis},Customized:{handler:y.renderCustomized}}),y.clipPathId="".concat((x=b.id)!==null&&x!==void 0?x:Nr("recharts"),"-clip"),y.throttleTriggeredAfterMouseMove=b_(y.triggeredAfterMouseMove,(w=b.throttleDelay)!==null&&w!==void 0?w:1e3/60),y.state={},y}return nK(g,p),QV(g,[{key:"componentDidMount",value:function(){var x,w;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,w=x.children,y=x.data,S=x.height,A=x.layout,P=st(w,Ye);if(P){var T=P.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var R=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,C=Wh(this.state,y,T,R),j=this.state.tooltipTicks[T].coordinate,k=(this.state.offset.top+S)/2,N=A==="horizontal",D=N?{x:j,y:k}:{y:j,x:k},$=this.state.formattedGraphicalItems.find(function(B){var W=B.item;return W.type.name==="Scatter"});$&&(D=z(z({},D),$.props.points[T].tooltipPosition),C=$.props.points[T].tooltipPayload);var L={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:R,activePayload:C,activeCoordinate:D};this.setState(L),this.renderCursor(P),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,w){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==w.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var y,S;this.accessibilityManager.setDetails({offset:{left:(y=this.props.margin.left)!==null&&y!==void 0?y:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0}})}return null}},{key:"componentDidUpdate",value:function(x){wp([st(x.children,Ye)],[st(this.props.children,Ye)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=st(this.props.children,Ye);if(x&&typeof x.props.shared=="boolean"){var w=x.props.shared?"axis":"item";return s.indexOf(w)>=0?w:a}return a}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var w=this.container,y=w.getBoundingClientRect(),S=O$(y),A={chartX:Math.round(x.pageX-S.left),chartY:Math.round(x.pageY-S.top)},P=y.width/w.offsetWidth||1,T=this.inRange(A.chartX,A.chartY,P);if(!T)return null;var R=this.state,C=R.xAxisMap,j=R.yAxisMap,k=this.getTooltipEventType(),N=aO(this.state,this.props.data,this.props.layout,T);if(k!=="axis"&&C&&j){var D=Ar(C).scale,$=Ar(j).scale,L=D&&D.invert?D.invert(A.chartX):null,B=$&&$.invert?$.invert(A.chartY):null;return z(z({},A),{},{xValue:L,yValue:B},N)}return N?z(z({},A),N):null}},{key:"inRange",value:function(x,w){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,S=this.props.layout,A=x/y,P=w/y;if(S==="horizontal"||S==="vertical"){var T=this.state.offset,R=A>=T.left&&A<=T.left+T.width&&P>=T.top&&P<=T.top+T.height;return R?{x:A,y:P}:null}var C=this.state,j=C.angleAxisMap,k=C.radiusAxisMap;if(j&&k){var N=Ar(j);return G0({x:A,y:P},N)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,w=this.getTooltipEventType(),y=st(x,Ye),S={};y&&w==="axis"&&(y.props.trigger==="click"?S={onClick:this.handleClick}:S={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var A=Bo(this.props,this.handleOuterEvent);return z(z({},A),S)}},{key:"addListener",value:function(){np.on(ip,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){np.removeListener(ip,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,w,y){for(var S=this.state.formattedGraphicalItems,A=0,P=S.length;A<P;A++){var T=S[A];if(T.item===x||T.props.key===x.key||w===ar(T.item.type)&&y===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,w=this.state.offset,y=w.left,S=w.top,A=w.height,P=w.width;return O.createElement("defs",null,O.createElement("clipPath",{id:x},O.createElement("rect",{x:y,y:S,height:A,width:P})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(w,y){var S=rO(y,2),A=S[0],P=S[1];return z(z({},w),{},ue({},A,P.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(w,y){var S=rO(y,2),A=S[0],P=S[1];return z(z({},w),{},ue({},A,P.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var w;return(w=this.state.xAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getYScaleByAxisId",value:function(x){var w;return(w=this.state.yAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getItemByXY",value:function(x){var w=this.state,y=w.formattedGraphicalItems,S=w.activeItem;if(y&&y.length)for(var A=0,P=y.length;A<P;A++){var T=y[A],R=T.props,C=T.item,j=C.type.defaultProps!==void 0?z(z({},C.type.defaultProps),C.props):C.props,k=ar(C.type);if(k==="Bar"){var N=(R.data||[]).find(function(B){return KF(x,B)});if(N)return{graphicalItem:T,payload:N}}else if(k==="RadialBar"){var D=(R.data||[]).find(function(B){return G0(x,B)});if(D)return{graphicalItem:T,payload:D}}else if(_c(T,S)||Pc(T,S)||Ma(T,S)){var $=PW({graphicalItem:T,activeTooltipItem:S,itemData:j.data}),L=j.activeIndex===void 0?$:j.activeIndex;return{graphicalItem:z(z({},T),{},{childIndex:L}),payload:Ma(T,S)?j.data[$]:T.props.data[$]}}}return null}},{key:"render",value:function(){var x=this;if(!og(this))return null;var w=this.props,y=w.children,S=w.className,A=w.width,P=w.height,T=w.style,R=w.compact,C=w.title,j=w.desc,k=nO(w,VV),N=te(k,!1);if(R)return O.createElement(kS,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement(Op,kn({},N,{width:A,height:P,title:C,desc:j}),this.renderClipPath(),cg(y,this.renderMap)));if(this.props.accessibilityLayer){var D,$;N.tabIndex=(D=this.props.tabIndex)!==null&&D!==void 0?D:0,N.role=($=this.props.role)!==null&&$!==void 0?$:"application",N.onKeyDown=function(B){x.accessibilityManager.keyboardEvent(B)},N.onFocus=function(){x.accessibilityManager.focus()}}var L=this.parseEventsOfWrapper();return O.createElement(kS,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement("div",kn({className:le("recharts-wrapper",S),style:z({position:"relative",cursor:"default",width:A,height:P},T)},L,{ref:function(W){x.container=W}}),O.createElement(Op,kn({},N,{width:A,height:P,title:C,desc:j,style:uK}),this.renderClipPath(),cg(y,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(O.Component);ue(m,"displayName",r),ue(m,"defaultProps",z({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),ue(m,"getDerivedStateFromProps",function(p,g){var b=p.dataKey,x=p.data,w=p.children,y=p.width,S=p.height,A=p.layout,P=p.stackOffset,T=p.margin,R=g.dataStartIndex,C=g.dataEndIndex;if(g.updateId===void 0){var j=oO(p);return z(z(z({},j),{},{updateId:0},h(z(z({props:p},j),{},{updateId:0}),g)),{},{prevDataKey:b,prevData:x,prevWidth:y,prevHeight:S,prevLayout:A,prevStackOffset:P,prevMargin:T,prevChildren:w})}if(b!==g.prevDataKey||x!==g.prevData||y!==g.prevWidth||S!==g.prevHeight||A!==g.prevLayout||P!==g.prevStackOffset||!Mn(T,g.prevMargin)){var k=oO(p),N={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},D=z(z({},aO(g,x,A)),{},{updateId:g.updateId+1}),$=z(z(z({},k),N),D);return z(z(z({},$),h(z({props:p},$),g)),{},{prevDataKey:b,prevData:x,prevWidth:y,prevHeight:S,prevLayout:A,prevStackOffset:P,prevMargin:T,prevChildren:w})}if(!wp(w,g.prevChildren)){var L,B,W,I,F=st(w,ti),U=F&&(L=(B=F.props)===null||B===void 0?void 0:B.startIndex)!==null&&L!==void 0?L:R,G=F&&(W=(I=F.props)===null||I===void 0?void 0:I.endIndex)!==null&&W!==void 0?W:C,Z=U!==R||G!==C,J=!se(x),Q=J&&!Z?g.updateId:g.updateId+1;return z(z({updateId:Q},h(z(z({props:p},g),{},{updateId:Q,dataStartIndex:U,dataEndIndex:G}),g)),{},{prevChildren:w,dataStartIndex:U,dataEndIndex:G})}return null}),ue(m,"renderActiveDot",function(p,g,b){var x;return O.isValidElement(p)?x=O.cloneElement(p,g):oe(p)?x=p(g):x=O.createElement(Pi,g),O.createElement(fe,{className:"recharts-active-dot",key:b},x)});var v=O.forwardRef(function(g,b){return O.createElement(m,kn({},g,{ref:b}))});return v.displayName=m.displayName,v},bK=ji({chartName:"LineChart",GraphicalChild:Za,axisComponents:[{axisType:"xAxis",AxisComp:Ct},{axisType:"yAxis",AxisComp:jt}],formatAxisMap:Tc}),xK=ji({chartName:"BarChart",GraphicalChild:xn,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Ct},{axisType:"yAxis",AxisComp:jt}],formatAxisMap:Tc}),rE=ji({chartName:"PieChart",GraphicalChild:Yt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Ti},{axisType:"radiusAxis",AxisComp:Ei}],formatAxisMap:RP,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),wK=ji({chartName:"RadarChart",GraphicalChild:Ya,axisComponents:[{axisType:"angleAxis",AxisComp:Ti},{axisType:"radiusAxis",AxisComp:Ei}],formatAxisMap:RP,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),SK=ji({chartName:"ScatterChart",GraphicalChild:Qa,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:Ct},{axisType:"yAxis",AxisComp:jt},{axisType:"zAxis",AxisComp:Ja}],formatAxisMap:Tc}),OK=ji({chartName:"AreaChart",GraphicalChild:Fr,axisComponents:[{axisType:"xAxis",AxisComp:Ct},{axisType:"yAxis",AxisComp:jt}],formatAxisMap:Tc});const AK=({active:e,payload:t})=>{if(!e||!t||t.length===0)return null;const r=t[0]?.value;return _.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm",children:typeof r=="number"?r.toLocaleString():r})},cO=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],_K=({title:e,data:t,layout:r="vertical",showGrid:n=!0,showLegend:i=!1,className:a})=>{const o=r==="horizontal",s=o?Math.max(80,Math.min(200,Math.max(...t.map(c=>c.label.length))*7+16)):void 0;return _.jsxs("div",{className:ae("flex flex-col gap-2",a),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[250px] w-full",children:_.jsx(mn,{width:"100%",height:"100%",children:_.jsxs(xK,{data:t,layout:o?"vertical":"horizontal",margin:{top:10,right:10,left:10,bottom:10},children:[n&&_.jsx(Xa,{strokeDasharray:"3 3",className:"stroke-muted/30"}),o?_.jsxs(_.Fragment,{children:[_.jsx(Ct,{type:"number",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(jt,{dataKey:"label",type:"category",width:s,tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}})]}):_.jsxs(_.Fragment,{children:[_.jsx(Ct,{dataKey:"label",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(jt,{tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}})]}),_.jsx(Ye,{content:_.jsx(AK,{})}),i&&_.jsx(bt,{wrapperStyle:{color:"var(--foreground)"},formatter:c=>_.jsx("span",{style:{color:"var(--foreground)"},children:c})}),_.jsx(xn,{dataKey:"value",radius:[4,4,0,0],isAnimationActive:!1,children:t.map((c,u)=>_.jsx(Dr,{fill:c.color||cO[u%cO.length]},`cell-${u}`))})]})})})]})},PK=({active:e,payload:t})=>!e||!t||t.length===0?null:_.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1.5 text-xs text-foreground shadow-sm",children:t.map((r,n)=>_.jsxs("div",{className:"flex items-center gap-2",children:[_.jsx("span",{className:"h-2 w-2 rounded-full",style:{backgroundColor:r.color}}),_.jsxs("span",{children:[r.name,":"]}),_.jsx("span",{className:"font-medium",children:typeof r.value=="number"?r.value.toLocaleString():r.value})]},n))}),uO=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],EK=({title:e,data:t,series:r,showGrid:n=!0,showLegend:i=!0,showDots:a=!0,curved:o=!0,className:s})=>{const c=O.useMemo(()=>r&&r.length>0?r:t.length===0?[]:Object.keys(t[0]).filter(l=>l!=="label"),[t,r]);return _.jsxs("div",{className:ae("flex flex-col gap-2",s),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[250px] w-full",children:_.jsx(mn,{width:"100%",height:"100%",children:_.jsxs(bK,{data:t,margin:{top:10,right:10,left:10,bottom:10},children:[n&&_.jsx(Xa,{strokeDasharray:"3 3",className:"stroke-muted/30"}),_.jsx(Ct,{dataKey:"label",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(jt,{tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(Ye,{content:_.jsx(PK,{})}),i&&c.length>1&&_.jsx(bt,{wrapperStyle:{color:"var(--foreground)"},formatter:u=>_.jsx("span",{style:{color:"var(--foreground)"},children:u})}),c.map((u,l)=>_.jsx(Za,{type:o?"monotone":"linear",dataKey:u,stroke:uO[l%uO.length],strokeWidth:2,dot:a,activeDot:{r:6},isAnimationActive:!1},u))]})})})]})},TK=({active:e,payload:t})=>!e||!t||t.length===0?null:_.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1.5 text-xs text-foreground shadow-sm",children:t.map((r,n)=>_.jsxs("div",{className:"flex items-center gap-2",children:[_.jsx("span",{className:"h-2 w-2 rounded-full",style:{backgroundColor:r.color}}),_.jsxs("span",{children:[r.name,":"]}),_.jsx("span",{className:"font-medium",children:typeof r.value=="number"?r.value.toLocaleString():r.value})]},n))}),Ao=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],CK=({title:e,data:t,series:r,stacked:n=!1,showGrid:i=!0,showLegend:a=!0,className:o})=>{const s=O.useMemo(()=>r&&r.length>0?r:t.length===0?[]:Object.keys(t[0]).filter(u=>u!=="label"),[t,r]);return _.jsxs("div",{className:ae("flex flex-col gap-2",o),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[250px] w-full",children:_.jsx(mn,{width:"100%",height:"100%",children:_.jsxs(OK,{data:t,margin:{top:10,right:10,left:10,bottom:10},children:[i&&_.jsx(Xa,{strokeDasharray:"3 3",className:"stroke-muted/30"}),_.jsx(Ct,{dataKey:"label",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(jt,{tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(Ye,{content:_.jsx(TK,{})}),a&&s.length>1&&_.jsx(bt,{wrapperStyle:{color:"var(--foreground)"},formatter:c=>_.jsx("span",{style:{color:"var(--foreground)"},children:c})}),s.map((c,u)=>_.jsx(Fr,{type:"monotone",dataKey:c,stackId:n?"stack":void 0,stroke:Ao[u%Ao.length],fill:Ao[u%Ao.length],fillOpacity:.3,isAnimationActive:!1},c))]})})})]})},jK=({active:e,payload:t})=>{if(!e||!t||t.length===0)return null;const r=t[0];return _.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm",children:_.jsx("span",{className:"font-medium",children:typeof r?.value=="number"?r.value.toLocaleString():r?.value})})},lO=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],IK=({title:e,data:t,showLabels:r=!0,showLegend:n=!0,className:i})=>{const a=t.map(o=>({name:o.label,value:o.value,color:o.color}));return _.jsxs("div",{className:ae("flex flex-col gap-2",i),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[320px] w-full",children:_.jsx(mn,{width:"100%",height:"100%",children:_.jsxs(rE,{margin:{top:20,right:20,bottom:20,left:20},children:[_.jsx(Yt,{data:a,cx:"50%",cy:"45%",innerRadius:0,outerRadius:80,paddingAngle:2,dataKey:"value",label:r?({name:o,percent:s,cx:c,cy:u,midAngle:l,outerRadius:f})=>{const d=Math.PI/180,h=(f??80)+25,m=(c??0)+h*Math.cos(-((l??0)*d)),v=(u??0)+h*Math.sin(-((l??0)*d));return _.jsx("text",{x:m,y:v,fill:"var(--foreground)",textAnchor:m>(c??0)?"start":"end",dominantBaseline:"central",fontSize:12,children:`${o??""} (${((s??0)*100).toFixed(0)}%)`})}:void 0,labelLine:r,isAnimationActive:!1,children:a.map((o,s)=>_.jsx(Dr,{fill:o.color||lO[s%lO.length]},`cell-${s}`))}),_.jsx(Ye,{content:_.jsx(jK,{})}),n&&_.jsx(bt,{verticalAlign:"bottom",wrapperStyle:{color:"var(--foreground)",paddingTop:20},formatter:o=>_.jsx("span",{style:{color:"var(--foreground)"},children:o})})]})})})]})},RK=({active:e,payload:t})=>{if(!e||!t||t.length===0)return null;const r=t[0];return _.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm",children:_.jsx("span",{className:"font-medium",children:typeof r?.value=="number"?r.value.toLocaleString():r?.value})})},fO=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],kK=({title:e,data:t,showLabels:r=!1,showLegend:n=!0,innerLabel:i,innerValue:a,className:o})=>{const s=t.map(c=>({name:c.label,value:c.value,color:c.color}));return _.jsxs("div",{className:ae("flex flex-col gap-2",o),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsxs("div",{className:"relative h-[320px] w-full",children:[_.jsx(mn,{width:"100%",height:"100%",children:_.jsxs(rE,{margin:{top:20,right:20,bottom:20,left:20},children:[_.jsx(Yt,{data:s,cx:"50%",cy:"45%",innerRadius:50,outerRadius:80,paddingAngle:2,dataKey:"value",label:r?({name:c,percent:u,cx:l,cy:f,midAngle:d,outerRadius:h})=>{const m=Math.PI/180,v=(h??80)+25,p=(l??0)+v*Math.cos(-((d??0)*m)),g=(f??0)+v*Math.sin(-((d??0)*m));return _.jsx("text",{x:p,y:g,fill:"var(--foreground)",textAnchor:p>(l??0)?"start":"end",dominantBaseline:"central",fontSize:12,children:`${c??""} (${((u??0)*100).toFixed(0)}%)`})}:void 0,labelLine:r,isAnimationActive:!1,children:s.map((c,u)=>_.jsx(Dr,{fill:c.color||fO[u%fO.length]},`cell-${u}`))}),_.jsx(Ye,{content:_.jsx(RK,{})}),n&&_.jsx(bt,{verticalAlign:"bottom",wrapperStyle:{color:"var(--foreground)",paddingTop:20},formatter:c=>_.jsx("span",{style:{color:"var(--foreground)"},children:c})})]})}),(i!==void 0||a!==void 0)&&_.jsxs("div",{className:"pointer-events-none absolute inset-x-0 top-[45%] flex -translate-y-1/2 flex-col items-center",children:[a!==void 0&&_.jsx("span",{className:"text-2xl font-bold text-foreground",children:a}),i&&_.jsx("span",{className:"text-xs text-muted-foreground",children:i})]})]})]})},MK=({active:e,payload:t})=>{if(!e||!t||t.length===0)return null;const r=t[0]?.payload;return _.jsxs("div",{className:"rounded-md border border-border bg-background px-2 py-1.5 text-xs text-foreground shadow-sm",children:[r?.label&&_.jsx("div",{className:"font-medium",children:r.label}),_.jsxs("div",{children:["x: ",r?.x?.toLocaleString()]}),_.jsxs("div",{children:["y: ",r?.y?.toLocaleString()]})]})},dO=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],$K=({title:e,data:t,xLabel:r,yLabel:n,showGrid:i=!0,className:a})=>{const o=t.some(s=>s.size!==void 0);return _.jsxs("div",{className:ae("flex flex-col gap-2",a),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[250px] w-full",children:_.jsx(mn,{width:"100%",height:"100%",children:_.jsxs(SK,{margin:{top:10,right:10,left:10,bottom:10},children:[i&&_.jsx(Xa,{strokeDasharray:"3 3",className:"stroke-muted/30"}),_.jsx(Ct,{type:"number",dataKey:"x",name:r||"x",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"},label:r?{value:r,position:"bottom",offset:-5,fill:"var(--foreground)"}:void 0}),_.jsx(jt,{type:"number",dataKey:"y",name:n||"y",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"},label:n?{value:n,angle:-90,position:"left",fill:"var(--foreground)"}:void 0}),o&&_.jsx(Ja,{type:"number",dataKey:"size",range:[50,400]}),_.jsx(Ye,{content:_.jsx(MK,{})}),_.jsx(Qa,{data:t,fill:dO[0],isAnimationActive:!1,children:t.map((s,c)=>_.jsx(Dr,{fill:s.color||dO[0]},`cell-${c}`))})]})})})]})},NK=({active:e,payload:t})=>{if(!e||!t||t.length===0)return null;const r=t[0];return _.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm",children:_.jsx("span",{className:"font-medium",children:typeof r?.value=="number"?r.value.toLocaleString():r?.value})})},pO=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],DK=({title:e,data:t,showLegend:r=!1,className:n})=>{const i=t.map(a=>({subject:a.label,value:a.value}));return _.jsxs("div",{className:ae("flex flex-col gap-2",n),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[250px] w-full",children:_.jsx(mn,{width:"100%",height:"100%",children:_.jsxs(wK,{data:i,cx:"50%",cy:"50%",outerRadius:"80%",children:[_.jsx(GP,{stroke:"var(--border)"}),_.jsx(Ti,{dataKey:"subject",tick:{fill:"var(--foreground)",fontSize:12}}),_.jsx(Ei,{tick:{fill:"var(--foreground)",fontSize:10},axisLine:{stroke:"var(--border)"}}),_.jsx(Ye,{content:_.jsx(NK,{})}),r&&_.jsx(bt,{wrapperStyle:{color:"var(--foreground)"},formatter:a=>_.jsx("span",{style:{color:"var(--foreground)"},children:a})}),_.jsx(Ya,{name:"Value",dataKey:"value",stroke:pO[0],fill:pO[0],fillOpacity:.3,isAnimationActive:!1})]})})})]})},hO=["Rendering chart...","Visualizing data...","Building chart...","Processing data..."];function LK(){return hO[Math.floor(Math.random()*hO.length)]}const BK={BarChart:_K,LineChart:EK,AreaChart:CK,PieChart:IK,DonutChart:kK,ScatterChart:$K,RadarChart:DK};function qK(e){const t=BK[e.type];return t?_.jsx(t,{...e.props??{}}):_.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[_.jsx(cv,{className:"size-4"}),_.jsxs("span",{children:["Unknown chart type: ",e.type]})]})}const FK=({code:e})=>{const t=ov(),r=O.useMemo(()=>{const i=e.trim();if(!i)return null;try{const a=JSON.parse(i);return vA(a)?a:null}catch{return null}},[e]),n=O.useMemo(()=>LK(),[]);return r?_.jsx(Do,{children:_.jsx("div",{className:ae("w-full bg-card",t("p-lg")),children:qK(r)})}):_.jsx(kj,{text:n})},nE={id:"chart",language:"chart",prompt:`WHEN TO USE CHARTS:
|
|
61
|
+
the props "valueKey" will be deprecated in 1.1.0`),g=f);var b=i.filter(function(P){return Ee(P,g,0)!==0}).length,x=(p>=360?b:b-1)*c,w=p-b*h-x,y=i.reduce(function(P,T){var k=Ee(T,g,0);return P+(Y(k)?k:0)},0),S;if(y>0){var O;S=i.map(function(P,T){var k=Ee(P,g,0),C=Ee(P,l,T),j=(Y(k)?k:0)/y,R;T?R=O.endAngle+Je(v)*c*(k!==0?1:0):R=o;var N=R+Je(v)*((k!==0?h:0)+j*w),D=(R+N)/2,$=(m.innerRadius+m.outerRadius)/2,L=[{name:C,value:k,payload:P,dataKey:g,type:d}],B=me(m.cx,m.cy,$,D);return O=Ce(Ce(Ce({percent:j,cornerRadius:a,name:C,tooltipPayload:L,midAngle:D,middleRadius:$,tooltipPosition:B},P),m),{},{value:Ee(P,g),startAngle:R,endAngle:N,payload:P,paddingAngle:Je(v)*c}),O})}return Ce(Ce({},m),{},{sectors:S,data:i})});var Dd,nS;function NW(){if(nS)return Dd;nS=1;function e(t){return t&&t.length?t[0]:void 0}return Dd=e,Dd}var Ld,iS;function DW(){return iS||(iS=1,Ld=NW()),Ld}var LW=DW();const BW=Oe(LW);var qW=["key"];function Qn(e){"@babel/helpers - typeof";return Qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qn(e)}function FW(e,t){if(e==null)return{};var r=zW(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function As(){return As=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},As.apply(this,arguments)}function aS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ze(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aS(Object(r),!0).forEach(function(n){rr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,r1(n.key),n)}}function UW(e,t,r){return t&&oS(e.prototype,t),r&&oS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function HW(e,t,r){return t=_s(t),VW(e,t1()?Reflect.construct(t,r||[],_s(e).constructor):t.apply(e,r))}function VW(e,t){if(t&&(Qn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return KW(e)}function KW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function t1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(t1=function(){return!!e})()}function _s(e){return _s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_s(e)}function GW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bh(e,t)}function bh(e,t){return bh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},bh(e,t)}function rr(e,t,r){return t=r1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r1(e){var t=YW(e,"string");return Qn(t)=="symbol"?t:t+""}function YW(e,t){if(Qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ya=(function(e){function t(){var r;WW(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=HW(this,t,[].concat(i)),rr(r,"state",{isAnimationFinished:!1}),rr(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),oe(o)&&o()}),rr(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),oe(o)&&o()}),rr(r,"handleMouseEnter",function(o){var s=r.props.onMouseEnter;s&&s(r.props,o)}),rr(r,"handleMouseLeave",function(o){var s=r.props.onMouseLeave;s&&s(r.props,o)}),r}return GW(t,e),UW(t,[{key:"renderDots",value:function(n){var i=this.props,a=i.dot,o=i.dataKey,s=re(this.props,!1),c=re(a,!0),u=n.map(function(l,f){var d=Ze(Ze(Ze({key:"dot-".concat(f),r:3},s),c),{},{dataKey:o,cx:l.x,cy:l.y,index:f,payload:l});return t.renderDotItem(a,d)});return A.createElement(fe,{className:"recharts-radar-dots"},u)}},{key:"renderPolygonStatically",value:function(n){var i=this.props,a=i.shape,o=i.dot,s=i.isRange,c=i.baseLinePoints,u=i.connectNulls,l;return A.isValidElement(a)?l=A.cloneElement(a,Ze(Ze({},this.props),{},{points:n})):oe(a)?l=a(Ze(Ze({},this.props),{},{points:n})):l=A.createElement(KP,As({},re(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:n,baseLinePoints:s?c:null,connectNulls:u})),A.createElement(fe,{className:"recharts-radar-polygon"},l,o?this.renderDots(n):null)}},{key:"renderPolygonWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,u=i.animationEasing,l=i.animationId,f=this.state.prevPoints;return A.createElement(dt,{begin:s,duration:c,isActive:o,easing:u,from:{t:0},to:{t:1},key:"radar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var h=d.t,m=f&&f.length/a.length,v=a.map(function(p,g){var b=f&&f[Math.floor(g*m)];if(b){var x=Pe(b.x,p.x),w=Pe(b.y,p.y);return Ze(Ze({},p),{},{x:x(h),y:w(h)})}var y=Pe(p.cx,p.x),S=Pe(p.cy,p.y);return Ze(Ze({},p),{},{x:y(h),y:S(h)})});return n.renderPolygonStatically(v)})}},{key:"renderPolygon",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=n.isRange,s=this.state.prevPoints;return a&&i&&i.length&&!o&&(!s||!fr(s,i))?this.renderPolygonWithAnimation():this.renderPolygonStatically(i)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.className,o=n.points,s=n.isAnimationActive;if(i||!o||!o.length)return null;var c=this.state.isAnimationFinished,u=le("recharts-radar",a);return A.createElement(fe,{className:u},this.renderPolygon(),(!s||c)&&xt.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"renderDotItem",value:function(n,i){var a;if(A.isValidElement(n))a=A.cloneElement(n,i);else if(oe(n))a=n(i);else{var o=i.key,s=FW(i,qW);a=A.createElement(Pi,As({},s,{key:o,className:le("recharts-radar-dot",typeof n!="boolean"?n.className:"")}))}return a}}])})(A.PureComponent);rr(Ya,"displayName","Radar");rr(Ya,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!Yt.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});rr(Ya,"getComposedData",function(e){var t=e.radiusAxis,r=e.angleAxis,n=e.displayedData,i=e.dataKey,a=e.bandSize,o=r.cx,s=r.cy,c=!1,u=[],l=r.type!=="number"?a??0:0;n.forEach(function(d,h){var m=Ee(d,r.dataKey,h),v=Ee(d,i),p=r.scale(m)+l,g=Array.isArray(v)?$P(v):v,b=se(g)?void 0:t.scale(g);Array.isArray(v)&&v.length>=2&&(c=!0),u.push(Ze(Ze({},me(o,s,b,p)),{},{name:m,value:v,cx:o,cy:s,radius:b,angle:p,payload:d}))});var f=[];return c&&u.forEach(function(d){if(Array.isArray(d.value)){var h=BW(d.value),m=se(h)?void 0:t.scale(h);f.push(Ze(Ze({},d),{},{radius:m},me(o,s,m,d.angle)))}else f.push(d)}),{points:u,isRange:c,baseLinePoints:f}});var Bd,sS;function XW(){if(sS)return Bd;sS=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var s=-1,c=t(e((i-n)/(a||1)),0),u=Array(c);c--;)u[o?c:++s]=n,n+=a;return u}return Bd=r,Bd}var qd,cS;function n1(){if(cS)return qd;cS=1;var e=g_(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return qd=n,qd}var Fd,uS;function ZW(){if(uS)return Fd;uS=1;var e=XW(),t=dc(),r=n1();function n(i){return function(a,o,s){return s&&typeof s!="number"&&t(a,o,s)&&(o=s=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),s=s===void 0?a<o?1:-1:r(s),e(a,o,s,i)}}return Fd=n,Fd}var zd,lS;function JW(){if(lS)return zd;lS=1;var e=ZW(),t=e();return zd=t,zd}var QW=JW();const Ps=Oe(QW);function $a(e){"@babel/helpers - typeof";return $a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$a(e)}function fS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fS(Object(r),!0).forEach(function(n){i1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function i1(e,t,r){return t=eU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eU(e){var t=tU(e,"string");return $a(t)=="symbol"?t:t+""}function tU(e,t){if($a(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($a(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rU=["Webkit","Moz","O","ms"],nU=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=rU.reduce(function(a,o){return dS(dS({},a),{},i1({},o+n,r))},{});return i[t]=r,i};function ei(e){"@babel/helpers - typeof";return ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ei(e)}function Es(){return Es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Es.apply(this,arguments)}function pS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pS(Object(r),!0).forEach(function(n){ot(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o1(n.key),n)}}function aU(e,t,r){return t&&hS(e.prototype,t),r&&hS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function oU(e,t,r){return t=Ts(t),sU(e,a1()?Reflect.construct(t,r||[],Ts(e).constructor):t.apply(e,r))}function sU(e,t){if(t&&(ei(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cU(e)}function cU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(a1=function(){return!!e})()}function Ts(e){return Ts=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ts(e)}function uU(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xh(e,t)}function xh(e,t){return xh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},xh(e,t)}function ot(e,t,r){return t=o1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o1(e){var t=lU(e,"string");return ei(t)=="symbol"?t:t+""}function lU(e,t){if(ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var fU=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var c=r.length,u=Xi().domain(Ps(0,c)).range([a,a+o-s]),l=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(i),scale:u,scaleValues:l}},vS=function(t){return t.changedTouches&&!!t.changedTouches.length},ti=(function(e){function t(r){var n;return iU(this,t),n=oU(this,t,[r]),ot(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),ot(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),ot(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o?.({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),ot(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),ot(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),ot(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),ot(n,"handleSlideDragStart",function(i){var a=vS(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return uU(t,e),aU(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,s=this.props,c=s.gap,u=s.data,l=u.length-1,f=Math.min(i,a),d=Math.max(i,a),h=t.getIndexInRange(o,f),m=t.getIndexInRange(o,d);return{startIndex:h-h%c,endIndex:m===l?l:m-m%c}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,c=Ee(a[n],s,n);return oe(o)?o(c,n):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,c=this.props,u=c.x,l=c.width,f=c.travellerWidth,d=c.startIndex,h=c.endIndex,m=c.onChange,v=n.pageX-a;v>0?v=Math.min(v,u+l-f-s,u+l-f-o):v<0&&(v=Math.max(v,u-o,u-s));var p=this.getIndex({startX:o+v,endX:s+v});(p.startIndex!==d||p.endIndex!==h)&&m&&m(p),this.setState({startX:o+v,endX:s+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=vS(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,c=i.startX,u=this.state[o],l=this.props,f=l.x,d=l.width,h=l.travellerWidth,m=l.onChange,v=l.gap,p=l.data,g={startX:this.state.startX,endX:this.state.endX},b=n.pageX-a;b>0?b=Math.min(b,f+d-h-u):b<0&&(b=Math.max(b,f-u)),g[o]=u+b;var x=this.getIndex(g),w=x.startIndex,y=x.endIndex,S=function(){var P=p.length-1;return o==="startX"&&(s>c?w%v===0:y%v===0)||s<c&&y===P||o==="endX"&&(s>c?y%v===0:w%v===0)||s>c&&y===P};this.setState(ot(ot({},o,u+b),"brushMoveStartX",n.pageX),function(){m&&S()&&m(x)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,c=o.startX,u=o.endX,l=this.state[i],f=s.indexOf(l);if(f!==-1){var d=f+n;if(!(d===-1||d>=s.length)){var h=s[d];i==="startX"&&h>=u||i==="endX"&&h<=c||this.setState(ot({},i,h),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,c=n.fill,u=n.stroke;return A.createElement("rect",{stroke:u,fill:c,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,c=n.data,u=n.children,l=n.padding,f=A.Children.only(u);return f?A.cloneElement(f,{x:i,y:a,width:o,height:s,margin:l,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,c=this.props,u=c.y,l=c.travellerWidth,f=c.height,d=c.traveller,h=c.ariaLabel,m=c.data,v=c.startIndex,p=c.endIndex,g=Math.max(n,this.props.x),b=Wd(Wd({},re(this.props,!1)),{},{x:g,y:u,width:l,height:f}),x=h||"Min value: ".concat((a=m[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=m[p])===null||o===void 0?void 0:o.name);return A.createElement(fe,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(y){["ArrowLeft","ArrowRight"].includes(y.key)&&(y.preventDefault(),y.stopPropagation(),s.handleTravellerMoveKeyboard(y.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,b))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,c=a.stroke,u=a.travellerWidth,l=Math.min(n,i)+u,f=Math.max(Math.abs(i-n)-u,0);return A.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:l,y:o,width:f,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,c=n.travellerWidth,u=n.stroke,l=this.state,f=l.startX,d=l.endX,h=5,m={pointerEvents:"none",fill:u};return A.createElement(fe,{className:"recharts-brush-texts"},A.createElement(cn,Es({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-h,y:o+s/2},m),this.getTextOfTick(i)),A.createElement(cn,Es({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,d)+c+h,y:o+s/2},m),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,c=n.y,u=n.width,l=n.height,f=n.alwaysShowText,d=this.state,h=d.startX,m=d.endX,v=d.isTextActive,p=d.isSlideMoving,g=d.isTravellerMoving,b=d.isTravellerFocused;if(!i||!i.length||!Y(s)||!Y(c)||!Y(u)||!Y(l)||u<=0||l<=0)return null;var x=le("recharts-brush",a),w=A.Children.count(o)===1,y=nU("userSelect","none");return A.createElement(fe,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:y},this.renderBackground(),w&&this.renderPanorama(),this.renderSlide(h,m),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(m,"endX"),(v||p||g||b||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,c=n.stroke,u=Math.floor(a+s/2)-1;return A.createElement(A.Fragment,null,A.createElement("rect",{x:i,y:a,width:o,height:s,fill:c,stroke:"none"}),A.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),A.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return A.isValidElement(n)?a=A.cloneElement(n,i):oe(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,c=n.travellerWidth,u=n.updateId,l=n.startIndex,f=n.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return Wd({prevData:a,prevTravellerWidth:c,prevUpdateId:u,prevX:s,prevWidth:o},a&&a.length?fU({data:a,width:o,x:s,travellerWidth:c,startIndex:l,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([s,s+o-c]);var d=i.scale.domain().map(function(h){return i.scale(h)});return{prevData:a,prevTravellerWidth:c,prevUpdateId:u,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var c=Math.floor((o+s)/2);n[c]>i?s=c:o=c}return i>=n[s]?s:o}}])})(A.PureComponent);ot(ti,"displayName","Brush");ot(ti,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Ud,mS;function dU(){if(mS)return Ud;mS=1;var e=Ev();function t(r,n){var i;return e(r,function(a,o,s){return i=n(a,o,s),!i}),!!i}return Ud=t,Ud}var Hd,yS;function pU(){if(yS)return Hd;yS=1;var e=YA(),t=Gt(),r=dU(),n=it(),i=dc();function a(o,s,c){var u=n(o)?e:r;return c&&i(o,s,c)&&(s=void 0),u(o,t(s,3))}return Hd=a,Hd}var hU=pU();const vU=Oe(hU);var zt=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Vd,gS;function mU(){if(gS)return Vd;gS=1;var e=p_();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Vd=t,Vd}var Kd,bS;function yU(){if(bS)return Kd;bS=1;var e=mU(),t=f_(),r=Gt();function n(i,a){var o={};return a=r(a,3),t(i,function(s,c,u){e(o,c,a(s,c,u))}),o}return Kd=n,Kd}var gU=yU();const bU=Oe(gU);var Gd,xS;function xU(){if(xS)return Gd;xS=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return Gd=e,Gd}var Yd,wS;function wU(){if(wS)return Yd;wS=1;var e=Ev();function t(r,n){var i=!0;return e(r,function(a,o,s){return i=!!n(a,o,s),i}),i}return Yd=t,Yd}var Xd,SS;function SU(){if(SS)return Xd;SS=1;var e=xU(),t=wU(),r=Gt(),n=it(),i=dc();function a(o,s,c){var u=n(o)?e:t;return c&&i(o,s,c)&&(s=void 0),u(o,r(s,3))}return Xd=a,Xd}var OU=SU();const s1=Oe(OU);var AU=["x","y"];function ri(e){"@babel/helpers - typeof";return ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ri(e)}function wh(){return wh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wh.apply(this,arguments)}function OS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ui(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?OS(Object(r),!0).forEach(function(n){_U(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _U(e,t,r){return t=PU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PU(e){var t=EU(e,"string");return ri(t)=="symbol"?t:t+""}function EU(e,t){if(ri(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ri(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TU(e,t){if(e==null)return{};var r=CU(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CU(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function jU(e,t){var r=e.x,n=e.y,i=TU(e,AU),a="".concat(r),o=parseInt(a,10),s="".concat(n),c=parseInt(s,10),u="".concat(t.height||i.height),l=parseInt(u,10),f="".concat(t.width||i.width),d=parseInt(f,10);return Ui(Ui(Ui(Ui(Ui({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:l,width:d,name:t.name,radius:t.radius})}function AS(e){return A.createElement(Ss,wh({shapeType:"rectangle",propTransformer:jU,activeClassName:"recharts-active-bar"},e))}var IU=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=Y(n)||OI(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?nt(!1,"minPointSize callback function received a value with type of ".concat(ri(n),". Currently only numbers or null/undefined are supported.")):nt()),r)}},kU=["value","background"],c1;function ni(e){"@babel/helpers - typeof";return ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ni(e)}function RU(e,t){if(e==null)return{};var r=MU(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function MU(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Cs(){return Cs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cs.apply(this,arguments)}function _S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function De(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_S(Object(r),!0).forEach(function(n){Pr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_S(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $U(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l1(n.key),n)}}function NU(e,t,r){return t&&PS(e.prototype,t),r&&PS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function DU(e,t,r){return t=js(t),LU(e,u1()?Reflect.construct(t,r||[],js(e).constructor):t.apply(e,r))}function LU(e,t){if(t&&(ni(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BU(e)}function BU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u1=function(){return!!e})()}function js(e){return js=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},js(e)}function qU(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sh(e,t)}function Sh(e,t){return Sh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Sh(e,t)}function Pr(e,t,r){return t=l1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l1(e){var t=FU(e,"string");return ni(t)=="symbol"?t:t+""}function FU(e,t){if(ni(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ni(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xn=(function(e){function t(){var r;$U(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=DU(this,t,[].concat(i)),Pr(r,"state",{isAnimationFinished:!1}),Pr(r,"id",Nr("recharts-bar-")),Pr(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Pr(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return qU(t,e),NU(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,c=a.activeIndex,u=a.activeBar,l=re(this.props,!1);return n&&n.map(function(f,d){var h=d===c,m=h?u:o,v=De(De(De({},l),f),{},{isActive:h,option:m,index:d,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return A.createElement(fe,Cs({className:"recharts-bar-rectangle"},Ir(i.props,f,d),{key:"rectangle-".concat(f?.x,"-").concat(f?.y,"-").concat(f?.value,"-").concat(d)}),A.createElement(AS,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,c=i.animationBegin,u=i.animationDuration,l=i.animationEasing,f=i.animationId,d=this.state.prevData;return A.createElement(dt,{begin:c,duration:u,isActive:s,easing:l,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var m=h.t,v=a.map(function(p,g){var b=d&&d[g];if(b){var x=Pe(b.x,p.x),w=Pe(b.y,p.y),y=Pe(b.width,p.width),S=Pe(b.height,p.height);return De(De({},p),{},{x:x(m),y:w(m),width:y(m),height:S(m)})}if(o==="horizontal"){var O=Pe(0,p.height),P=O(m);return De(De({},p),{},{y:p.y+p.height-P,height:P})}var T=Pe(0,p.width),k=T(m);return De(De({},p),{},{width:k})});return A.createElement(fe,null,n.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!fr(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,s=i.activeIndex,c=re(this.props.background,!1);return a.map(function(u,l){u.value;var f=u.background,d=RU(u,kU);if(!f)return null;var h=De(De(De(De(De({},d),{},{fill:"#eee"},f),c),Ir(n.props,u,l)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:l,className:"recharts-bar-background-rectangle"});return A.createElement(AS,Cs({key:"background-bar-".concat(l),option:n.props.background,isActive:l===s},h))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,c=a.yAxis,u=a.layout,l=a.children,f=tt(l,_i);if(!f)return null;var d=u==="vertical"?o[0].height/2:o[0].width/2,h=function(p,g){var b=Array.isArray(p.value)?p.value[1]:p.value;return{x:p.x,y:p.y,value:b,errorVal:Ee(p,g)}},m={clipPath:n?"url(#clipPath-".concat(i,")"):null};return A.createElement(fe,m,f.map(function(v){return A.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:s,yAxis:c,layout:u,offset:d,dataPointFormatter:h})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,c=n.yAxis,u=n.left,l=n.top,f=n.width,d=n.height,h=n.isAnimationActive,m=n.background,v=n.id;if(i||!a||!a.length)return null;var p=this.state.isAnimationFinished,g=le("recharts-bar",o),b=s&&s.allowDataOverflow,x=c&&c.allowDataOverflow,w=b||x,y=se(v)?this.id:v;return A.createElement(fe,{className:g},b||x?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(y)},A.createElement("rect",{x:b?u:u-f/2,y:x?l:l-d/2,width:b?f:f*2,height:x?d:d*2}))):null,A.createElement(fe,{className:"recharts-bar-rectangles",clipPath:w?"url(#clipPath-".concat(y,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(w,y),(!h||p)&&xt.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(A.PureComponent);c1=xn;Pr(xn,"displayName","Bar");Pr(xn,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Yt.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Pr(xn,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,u=e.stackedData,l=e.dataStartIndex,f=e.displayedData,d=e.offset,h=B2(n,r);if(!h)return null;var m=t.layout,v=r.type.defaultProps,p=v!==void 0?De(De({},v),r.props):r.props,g=p.dataKey,b=p.children,x=p.minPointSize,w=m==="horizontal"?o:a,y=u?w.scale.domain():null,S=V2({numericAxis:w}),O=tt(b,Dr),P=f.map(function(T,k){var C,j,R,N,D,$;u?C=q2(u[l+k],y):(C=Ee(T,g),Array.isArray(C)||(C=[S,C]));var L=IU(x,c1.defaultProps.minPointSize)(C[1],k);if(m==="horizontal"){var B,W=[o.scale(C[0]),o.scale(C[1])],I=W[0],F=W[1];j=z0({axis:a,ticks:s,bandSize:i,offset:h.offset,entry:T,index:k}),R=(B=F??I)!==null&&B!==void 0?B:void 0,N=h.size;var U=I-F;if(D=Number.isNaN(U)?0:U,$={x:j,y:o.y,width:N,height:o.height},Math.abs(L)>0&&Math.abs(D)<Math.abs(L)){var G=Je(D||L)*(Math.abs(L)-Math.abs(D));R-=G,D+=G}}else{var Z=[a.scale(C[0]),a.scale(C[1])],J=Z[0],Q=Z[1];if(j=J,R=z0({axis:o,ticks:c,bandSize:i,offset:h.offset,entry:T,index:k}),N=Q-J,D=h.size,$={x:a.x,y:R,width:a.width,height:D},Math.abs(L)>0&&Math.abs(N)<Math.abs(L)){var K=Je(N||L)*(Math.abs(L)-Math.abs(N));N+=K}}return De(De(De({},T),{},{x:j,y:R,width:N,height:D,value:u?C:C[1],payload:T,background:$},O&&O[k]&&O[k].props),{},{tooltipPayload:[CP(r,T)],tooltipPosition:{x:j+N/2,y:R+D/2}})});return De({data:P,layout:m},d)});function Na(e){"@babel/helpers - typeof";return Na=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Na(e)}function zU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ES(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f1(n.key),n)}}function WU(e,t,r){return t&&ES(e.prototype,t),r&&ES(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function TS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _t(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TS(Object(r),!0).forEach(function(n){Ec(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ec(e,t,r){return t=f1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f1(e){var t=UU(e,"string");return Na(t)=="symbol"?t:t+""}function UU(e,t){if(Na(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Na(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Tc=function(t,r,n,i,a){var o=t.width,s=t.height,c=t.layout,u=t.children,l=Object.keys(r),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},d=!!st(u,xn);return l.reduce(function(h,m){var v=r[m],p=v.orientation,g=v.domain,b=v.padding,x=b===void 0?{}:b,w=v.mirror,y=v.reversed,S="".concat(p).concat(w?"Mirror":""),O,P,T,k,C;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var j=g[1]-g[0],R=1/0,N=v.categoricalDomain.sort(EI);if(N.forEach(function(Z,J){J>0&&(R=Math.min((Z||0)-(N[J-1]||0),R))}),Number.isFinite(R)){var D=R/j,$=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(O=D*$/2),v.padding==="no-gap"){var L=Qe(t.barCategoryGap,D*$),B=D*$/2;O=B-L-(B-L)/$*L}}}i==="xAxis"?P=[n.left+(x.left||0)+(O||0),n.left+n.width-(x.right||0)-(O||0)]:i==="yAxis"?P=c==="horizontal"?[n.top+n.height-(x.bottom||0),n.top+(x.top||0)]:[n.top+(x.top||0)+(O||0),n.top+n.height-(x.bottom||0)-(O||0)]:P=v.range,y&&(P=[P[1],P[0]]);var W=_P(v,a,d),I=W.scale,F=W.realScaleType;I.domain(g).range(P),PP(I);var U=EP(I,_t(_t({},v),{},{realScaleType:F}));i==="xAxis"?(C=p==="top"&&!w||p==="bottom"&&w,T=n.left,k=f[S]-C*v.height):i==="yAxis"&&(C=p==="left"&&!w||p==="right"&&w,T=f[S]-C*v.width,k=n.top);var G=_t(_t(_t({},v),U),{},{realScaleType:F,x:T,y:k,scale:I,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return G.bandSize=us(G,U),!v.hide&&i==="xAxis"?f[S]+=(C?-1:1)*G.height:v.hide||(f[S]+=(C?-1:1)*G.width),_t(_t({},h),{},Ec({},m,G))},{})},d1=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},HU=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return d1({x:r,y:n},{x:i,y:a})},p1=(function(){function e(t){zU(this,e),this.scale=t}return WU(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();Ec(p1,"EPS",1e-4);var nm=function(t){var r=Object.keys(t).reduce(function(n,i){return _t(_t({},n),{},Ec({},i,p1.create(t[i])))},{});return _t(_t({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return bU(i,function(c,u){return r[u].apply(c,{bandAware:o,position:s})})},isInRange:function(i){return s1(i,function(a,o){return r[o].isInRange(a)})}})};function VU(e){return(e%180+180)%180}var KU=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=VU(i),o=a*Math.PI/180,s=Math.atan(n/r),c=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(c)},Zd,CS;function GU(){if(CS)return Zd;CS=1;var e=Gt(),t=Ua(),r=lc();function n(i){return function(a,o,s){var c=Object(a);if(!t(a)){var u=e(o,3);a=r(a),o=function(f){return u(c[f],f,c)}}var l=i(a,o,s);return l>-1?c[u?a[l]:l]:void 0}}return Zd=n,Zd}var Jd,jS;function YU(){if(jS)return Jd;jS=1;var e=n1();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Jd=t,Jd}var Qd,IS;function XU(){if(IS)return Qd;IS=1;var e=o_(),t=Gt(),r=YU(),n=Math.max;function i(a,o,s){var c=a==null?0:a.length;if(!c)return-1;var u=s==null?0:r(s);return u<0&&(u=n(c+u,0)),e(a,t(o,3),u)}return Qd=i,Qd}var ep,kS;function ZU(){if(kS)return ep;kS=1;var e=GU(),t=XU(),r=e(t);return ep=r,ep}var JU=ZU();const QU=Oe(JU);var e3=wA();const t3=Oe(e3);var r3=t3(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")});function Is(e){"@babel/helpers - typeof";return Is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Is(e)}var im=A.createContext(void 0),am=A.createContext(void 0),h1=A.createContext(void 0),v1=A.createContext({}),m1=A.createContext(void 0),y1=A.createContext(0),g1=A.createContext(0),RS=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,c=t.width,u=t.height,l=r3(a);return A.createElement(im.Provider,{value:n},A.createElement(am.Provider,{value:i},A.createElement(v1.Provider,{value:a},A.createElement(h1.Provider,{value:l},A.createElement(m1.Provider,{value:o},A.createElement(y1.Provider,{value:u},A.createElement(g1.Provider,{value:c},s)))))))},n3=function(){return A.useContext(m1)};function b1(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var x1=function(t){var r=A.useContext(im);r==null&&(process.env.NODE_ENV!=="production"?nt(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):nt());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?nt(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(Is(t),"]. ").concat(b1(r))):nt()),n},i3=function(){var t=A.useContext(im);return Ar(t)},a3=function(){var t=A.useContext(am),r=QU(t,function(n){return s1(n.domain,Number.isFinite)});return r||Ar(t)},w1=function(t){var r=A.useContext(am);r==null&&(process.env.NODE_ENV!=="production"?nt(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):nt());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?nt(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(Is(t),"]. ").concat(b1(r))):nt()),n},o3=function(){var t=A.useContext(h1);return t},s3=function(){return A.useContext(v1)},om=function(){return A.useContext(g1)},sm=function(){return A.useContext(y1)};function ii(e){"@babel/helpers - typeof";return ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ii(e)}function c3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,O1(n.key),n)}}function l3(e,t,r){return t&&u3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function f3(e,t,r){return t=ks(t),d3(e,S1()?Reflect.construct(t,r||[],ks(e).constructor):t.apply(e,r))}function d3(e,t){if(t&&(ii(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p3(e)}function p3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(S1=function(){return!!e})()}function ks(e){return ks=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ks(e)}function h3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Oh(e,t)}function Oh(e,t){return Oh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Oh(e,t)}function MS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $S(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?MS(Object(r),!0).forEach(function(n){cm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cm(e,t,r){return t=O1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O1(e){var t=v3(e,"string");return ii(t)=="symbol"?t:t+""}function v3(e,t){if(ii(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ii(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function m3(e,t){return x3(e)||b3(e,t)||g3(e,t)||y3()}function y3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
62
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g3(e,t){if(e){if(typeof e=="string")return NS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return NS(e,t)}}function NS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function b3(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function x3(e){if(Array.isArray(e))return e}function Ah(){return Ah=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ah.apply(this,arguments)}var w3=function(t,r){var n;return A.isValidElement(t)?n=A.cloneElement(t,r):oe(t)?n=t(r):n=A.createElement("line",Ah({},r,{className:"recharts-reference-line-line"})),n},S3=function(t,r,n,i,a,o,s,c,u){var l=a.x,f=a.y,d=a.width,h=a.height;if(n){var m=u.y,v=t.y.apply(m,{position:o});if(zt(u,"discard")&&!t.y.isInRange(v))return null;var p=[{x:l+d,y:v},{x:l,y:v}];return c==="left"?p.reverse():p}if(r){var g=u.x,b=t.x.apply(g,{position:o});if(zt(u,"discard")&&!t.x.isInRange(b))return null;var x=[{x:b,y:f+h},{x:b,y:f}];return s==="top"?x.reverse():x}if(i){var w=u.segment,y=w.map(function(S){return t.apply(S,{position:o})});return zt(u,"discard")&&vU(y,function(S){return!t.isInRange(S)})?null:y}return null};function O3(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,c=e.alwaysShow,u=n3(),l=x1(i),f=w1(a),d=o3();if(!u||!d)return null;Tt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=nm({x:l.scale,y:f.scale}),m=ze(t),v=ze(r),p=n&&n.length===2,g=S3(h,m,v,p,d,e.position,l.orientation,f.orientation,e);if(!g)return null;var b=m3(g,2),x=b[0],w=x.x,y=x.y,S=b[1],O=S.x,P=S.y,T=zt(e,"hidden")?"url(#".concat(u,")"):void 0,k=$S($S({clipPath:T},re(e,!0)),{},{x1:w,y1:y,x2:O,y2:P});return A.createElement(fe,{className:le("recharts-reference-line",s)},w3(o,k),He.renderCallByParent(e,HU({x1:w,y1:y,x2:O,y2:P})))}var um=(function(e){function t(){return c3(this,t),f3(this,t,arguments)}return h3(t,e),l3(t,[{key:"render",value:function(){return A.createElement(O3,this.props)}}])})(A.Component);cm(um,"displayName","ReferenceLine");cm(um,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function _h(){return _h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_h.apply(this,arguments)}function ai(e){"@babel/helpers - typeof";return ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ai(e)}function DS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function LS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DS(Object(r),!0).forEach(function(n){Cc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function A3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_1(n.key),n)}}function P3(e,t,r){return t&&_3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function E3(e,t,r){return t=Rs(t),T3(e,A1()?Reflect.construct(t,r||[],Rs(e).constructor):t.apply(e,r))}function T3(e,t){if(t&&(ai(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return C3(e)}function C3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(A1=function(){return!!e})()}function Rs(e){return Rs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rs(e)}function j3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ph(e,t)}function Ph(e,t){return Ph=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ph(e,t)}function Cc(e,t,r){return t=_1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _1(e){var t=I3(e,"string");return ai(t)=="symbol"?t:t+""}function I3(e,t){if(ai(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ai(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var k3=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=nm({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return zt(t,"discard")&&!o.isInRange(s)?null:s},jc=(function(e){function t(){return A3(this,t),E3(this,t,arguments)}return j3(t,e),P3(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,c=n.clipPathId,u=ze(i),l=ze(a);if(Tt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!l)return null;var f=k3(this.props);if(!f)return null;var d=f.x,h=f.y,m=this.props,v=m.shape,p=m.className,g=zt(this.props,"hidden")?"url(#".concat(c,")"):void 0,b=LS(LS({clipPath:g},re(this.props,!0)),{},{cx:d,cy:h});return A.createElement(fe,{className:le("recharts-reference-dot",p)},t.renderDot(v,b),He.renderCallByParent(this.props,{x:d-o,y:h-o,width:2*o,height:2*o}))}}])})(A.Component);Cc(jc,"displayName","ReferenceDot");Cc(jc,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Cc(jc,"renderDot",function(e,t){var r;return A.isValidElement(e)?r=A.cloneElement(e,t):oe(e)?r=e(t):r=A.createElement(Pi,_h({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Eh(){return Eh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Eh.apply(this,arguments)}function oi(e){"@babel/helpers - typeof";return oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oi(e)}function BS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BS(Object(r),!0).forEach(function(n){Ic(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function R3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,E1(n.key),n)}}function $3(e,t,r){return t&&M3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function N3(e,t,r){return t=Ms(t),D3(e,P1()?Reflect.construct(t,r||[],Ms(e).constructor):t.apply(e,r))}function D3(e,t){if(t&&(oi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return L3(e)}function L3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(P1=function(){return!!e})()}function Ms(e){return Ms=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ms(e)}function B3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Th(e,t)}function Th(e,t){return Th=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Th(e,t)}function Ic(e,t,r){return t=E1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E1(e){var t=q3(e,"string");return oi(t)=="symbol"?t:t+""}function q3(e,t){if(oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var F3=function(t,r,n,i,a){var o=a.x1,s=a.x2,c=a.y1,u=a.y2,l=a.xAxis,f=a.yAxis;if(!l||!f)return null;var d=nm({x:l.scale,y:f.scale}),h={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(c,{position:"start"}):d.y.rangeMin},m={x:r?d.x.apply(s,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(u,{position:"end"}):d.y.rangeMax};return zt(a,"discard")&&(!d.isInRange(h)||!d.isInRange(m))?null:d1(h,m)},kc=(function(e){function t(){return R3(this,t),N3(this,t,arguments)}return B3(t,e),$3(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,s=n.y2,c=n.className,u=n.alwaysShow,l=n.clipPathId;Tt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=ze(i),d=ze(a),h=ze(o),m=ze(s),v=this.props.shape;if(!f&&!d&&!h&&!m&&!v)return null;var p=F3(f,d,h,m,this.props);if(!p&&!v)return null;var g=zt(this.props,"hidden")?"url(#".concat(l,")"):void 0;return A.createElement(fe,{className:le("recharts-reference-area",c)},t.renderRect(v,qS(qS({clipPath:g},re(this.props,!0)),p)),He.renderCallByParent(this.props,p))}}])})(A.Component);Ic(kc,"displayName","ReferenceArea");Ic(kc,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Ic(kc,"renderRect",function(e,t){var r;return A.isValidElement(e)?r=A.cloneElement(e,t):oe(e)?r=e(t):r=A.createElement(rm,Eh({},t,{className:"recharts-reference-area-rect"})),r});function T1(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function z3(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return KU(n,r)}function W3(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function $s(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function U3(e,t){return T1(e,t+1)}function H3(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,c=0,u=1,l=o,f=function(){var m=n?.[c];if(m===void 0)return{v:T1(n,u)};var v=c,p,g=function(){return p===void 0&&(p=r(m,v)),p},b=m.coordinate,x=c===0||$s(e,b,g,l,s);x||(c=0,l=o,u+=1),x&&(l=b+e*(g()/2+i),c+=u)},d;u<=a.length;)if(d=f(),d)return d.v;return[]}function Da(e){"@babel/helpers - typeof";return Da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Da(e)}function FS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FS(Object(r),!0).forEach(function(n){V3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function V3(e,t,r){return t=K3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K3(e){var t=G3(e,"string");return Da(t)=="symbol"?t:t+""}function G3(e,t){if(Da(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Da(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Y3(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,c=t.end,u=function(d){var h=a[d],m,v=function(){return m===void 0&&(m=r(h,d)),m};if(d===o-1){var p=e*(h.coordinate+e*v()/2-c);a[d]=h=Ge(Ge({},h),{},{tickCoord:p>0?h.coordinate-p*e:h.coordinate})}else a[d]=h=Ge(Ge({},h),{},{tickCoord:h.coordinate});var g=$s(e,h.tickCoord,v,s,c);g&&(c=h.tickCoord-e*(v()/2+i),a[d]=Ge(Ge({},h),{},{isShow:!0}))},l=o-1;l>=0;l--)u(l);return a}function X3(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,c=t.start,u=t.end;if(a){var l=n[s-1],f=r(l,s-1),d=e*(l.coordinate+e*f/2-u);o[s-1]=l=Ge(Ge({},l),{},{tickCoord:d>0?l.coordinate-d*e:l.coordinate});var h=$s(e,l.tickCoord,function(){return f},c,u);h&&(u=l.tickCoord-e*(f/2+i),o[s-1]=Ge(Ge({},l),{},{isShow:!0}))}for(var m=a?s-1:s,v=function(b){var x=o[b],w,y=function(){return w===void 0&&(w=r(x,b)),w};if(b===0){var S=e*(x.coordinate-e*y()/2-c);o[b]=x=Ge(Ge({},x),{},{tickCoord:S<0?x.coordinate-S*e:x.coordinate})}else o[b]=x=Ge(Ge({},x),{},{tickCoord:x.coordinate});var O=$s(e,x.tickCoord,y,c,u);O&&(c=x.tickCoord+e*(y()/2+i),o[b]=Ge(Ge({},x),{},{isShow:!0}))},p=0;p<m;p++)v(p);return o}function lm(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,c=e.interval,u=e.tickFormatter,l=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(Y(c)||Yt.isSsr)return U3(i,typeof c=="number"&&Y(c)?c:0);var d=[],h=s==="top"||s==="bottom"?"width":"height",m=l&&h==="width"?Yi(l,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(x,w){var y=oe(u)?u(x.value,w):x.value;return h==="width"?z3(Yi(y,{fontSize:t,letterSpacing:r}),m,f):Yi(y,{fontSize:t,letterSpacing:r})[h]},p=i.length>=2?Je(i[1].coordinate-i[0].coordinate):1,g=W3(a,p,h);return c==="equidistantPreserveStart"?H3(p,g,v,i,o):(c==="preserveStart"||c==="preserveStartEnd"?d=X3(p,g,v,i,o,c==="preserveStartEnd"):d=Y3(p,g,v,i,o),d.filter(function(b){return b.isShow}))}var Z3=["viewBox"],J3=["viewBox"],Q3=["ticks"];function si(e){"@babel/helpers - typeof";return si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},si(e)}function kn(){return kn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kn.apply(this,arguments)}function zS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zS(Object(r),!0).forEach(function(n){fm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tp(e,t){if(e==null)return{};var r=eH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function eH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function tH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,j1(n.key),n)}}function rH(e,t,r){return t&&WS(e.prototype,t),r&&WS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function nH(e,t,r){return t=Ns(t),iH(e,C1()?Reflect.construct(t,r||[],Ns(e).constructor):t.apply(e,r))}function iH(e,t){if(t&&(si(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aH(e)}function aH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C1=function(){return!!e})()}function Ns(e){return Ns=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ns(e)}function oH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ch(e,t)}function Ch(e,t){return Ch=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ch(e,t)}function fm(e,t,r){return t=j1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j1(e){var t=sH(e,"string");return si(t)=="symbol"?t:t+""}function sH(e,t){if(si(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ci=(function(e){function t(r){var n;return tH(this,t),n=nH(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return oH(t,e),rH(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=tp(n,Z3),s=this.props,c=s.viewBox,u=tp(s,J3);return!Mn(a,c)||!Mn(o,u)||!Mn(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,s=i.width,c=i.height,u=i.orientation,l=i.tickSize,f=i.mirror,d=i.tickMargin,h,m,v,p,g,b,x=f?-1:1,w=n.tickSize||l,y=Y(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":h=m=n.coordinate,p=o+ +!f*c,v=p-x*w,b=v-x*d,g=y;break;case"left":v=p=n.coordinate,m=a+ +!f*s,h=m-x*w,g=h-x*d,b=y;break;case"right":v=p=n.coordinate,m=a+ +f*s,h=m+x*w,g=h+x*d,b=y;break;default:h=m=n.coordinate,p=o+ +f*c,v=p+x*w,b=v+x*d,g=y;break}return{line:{x1:h,y1:v,x2:m,y2:p},tick:{x:g,y:b}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,c=n.orientation,u=n.mirror,l=n.axisLine,f=qe(qe(qe({},re(this.props,!1)),re(l,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var d=+(c==="top"&&!u||c==="bottom"&&u);f=qe(qe({},f),{},{x1:i,y1:a+d*s,x2:i+o,y2:a+d*s})}else{var h=+(c==="left"&&!u||c==="right"&&u);f=qe(qe({},f),{},{x1:i+h*o,y1:a,x2:i+h*o,y2:a+s})}return A.createElement("line",kn({},f,{className:le("recharts-cartesian-axis-line",lt(l,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,c=s.tickLine,u=s.stroke,l=s.tick,f=s.tickFormatter,d=s.unit,h=lm(qe(qe({},this.props),{},{ticks:n}),i,a),m=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),p=re(this.props,!1),g=re(l,!1),b=qe(qe({},p),{},{fill:"none"},re(c,!1)),x=h.map(function(w,y){var S=o.getTickLineCoord(w),O=S.line,P=S.tick,T=qe(qe(qe(qe({textAnchor:m,verticalAnchor:v},p),{},{stroke:"none",fill:u},g),P),{},{index:y,payload:w,visibleTicksCount:h.length,tickFormatter:f});return A.createElement(fe,kn({className:"recharts-cartesian-axis-tick",key:"tick-".concat(w.value,"-").concat(w.coordinate,"-").concat(w.tickCoord)},Ir(o.props,w,y)),c&&A.createElement("line",kn({},b,O,{className:le("recharts-cartesian-axis-tick-line",lt(c,"className"))})),l&&t.renderTickItem(l,T,"".concat(oe(f)?f(w.value,y):w.value).concat(d||"")))});return A.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,c=i.ticksGenerator,u=i.className,l=i.hide;if(l)return null;var f=this.props,d=f.ticks,h=tp(f,Q3),m=d;return oe(c)&&(m=d&&d.length>0?c(this.props):c(h)),o<=0||s<=0||!m||!m.length?null:A.createElement(fe,{className:le("recharts-cartesian-axis",u),ref:function(p){n.layerReference=p}},a&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),He.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=le(i.className,"recharts-cartesian-axis-tick-value");return A.isValidElement(n)?o=A.cloneElement(n,qe(qe({},i),{},{className:s})):oe(n)?o=n(qe(qe({},i),{},{className:s})):o=A.createElement(cn,kn({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(A.Component);fm(Ci,"displayName","CartesianAxis");fm(Ci,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var cH=["x1","y1","x2","y2","key"],uH=["offset"];function ln(e){"@babel/helpers - typeof";return ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ln(e)}function US(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?US(Object(r),!0).forEach(function(n){lH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):US(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lH(e,t,r){return t=fH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fH(e){var t=dH(e,"string");return ln(t)=="symbol"?t:t+""}function dH(e,t){if(ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rn(){return rn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rn.apply(this,arguments)}function HS(e,t){if(e==null)return{};var r=pH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var hH=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,s=t.height,c=t.ry;return A.createElement("rect",{x:i,y:a,ry:c,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function I1(e,t){var r;if(A.isValidElement(e))r=A.cloneElement(e,t);else if(oe(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,c=HS(t,cH),u=re(c,!1);u.offset;var l=HS(u,uH);r=A.createElement("line",rn({},l,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function vH(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,c){var u=Xe(Xe({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(c),index:c});return I1(i,u)});return A.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function mH(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,c){var u=Xe(Xe({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(c),index:c});return I1(i,u)});return A.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function yH(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,c=e.horizontal,u=c===void 0?!0:c;if(!u||!t||!t.length)return null;var l=s.map(function(d){return Math.round(d+i-i)}).sort(function(d,h){return d-h});i!==l[0]&&l.unshift(0);var f=l.map(function(d,h){var m=!l[h+1],v=m?i+o-d:l[h+1]-d;if(v<=0)return null;var p=h%t.length;return A.createElement("rect",{key:"react-".concat(h),y:d,x:n,height:v,width:a,stroke:"none",fill:t[p],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function gH(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,c=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var l=u.map(function(d){return Math.round(d+a-a)}).sort(function(d,h){return d-h});a!==l[0]&&l.unshift(0);var f=l.map(function(d,h){var m=!l[h+1],v=m?a+s-d:l[h+1]-d;if(v<=0)return null;var p=h%n.length;return A.createElement("rect",{key:"react-".concat(h),x:d,y:o,width:v,height:c,stroke:"none",fill:n[p],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var bH=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return AP(lm(Xe(Xe(Xe({},Ci.defaultProps),n),{},{ticks:ar(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},xH=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return AP(lm(Xe(Xe(Xe({},Ci.defaultProps),n),{},{ticks:ar(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},An={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Xa(e){var t,r,n,i,a,o,s=om(),c=sm(),u=s3(),l=Xe(Xe({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:An.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:An.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:An.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:An.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:An.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:An.verticalFill,x:Y(e.x)?e.x:u.left,y:Y(e.y)?e.y:u.top,width:Y(e.width)?e.width:u.width,height:Y(e.height)?e.height:u.height}),f=l.x,d=l.y,h=l.width,m=l.height,v=l.syncWithTicks,p=l.horizontalValues,g=l.verticalValues,b=i3(),x=a3();if(!Y(h)||h<=0||!Y(m)||m<=0||!Y(f)||f!==+f||!Y(d)||d!==+d)return null;var w=l.verticalCoordinatesGenerator||bH,y=l.horizontalCoordinatesGenerator||xH,S=l.horizontalPoints,O=l.verticalPoints;if((!S||!S.length)&&oe(y)){var P=p&&p.length,T=y({yAxis:x?Xe(Xe({},x),{},{ticks:P?p:x.ticks}):void 0,width:s,height:c,offset:u},P?!0:v);Tt(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(ln(T),"]")),Array.isArray(T)&&(S=T)}if((!O||!O.length)&&oe(w)){var k=g&&g.length,C=w({xAxis:b?Xe(Xe({},b),{},{ticks:k?g:b.ticks}):void 0,width:s,height:c,offset:u},k?!0:v);Tt(Array.isArray(C),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(ln(C),"]")),Array.isArray(C)&&(O=C)}return A.createElement("g",{className:"recharts-cartesian-grid"},A.createElement(hH,{fill:l.fill,fillOpacity:l.fillOpacity,x:l.x,y:l.y,width:l.width,height:l.height,ry:l.ry}),A.createElement(vH,rn({},l,{offset:u,horizontalPoints:S,xAxis:b,yAxis:x})),A.createElement(mH,rn({},l,{offset:u,verticalPoints:O,xAxis:b,yAxis:x})),A.createElement(yH,rn({},l,{horizontalPoints:S})),A.createElement(gH,rn({},l,{verticalPoints:O})))}Xa.displayName="CartesianGrid";var wH=["type","layout","connectNulls","ref"],SH=["key"];function ci(e){"@babel/helpers - typeof";return ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ci(e)}function VS(e,t){if(e==null)return{};var r=OH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function OH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ta(){return ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ta.apply(this,arguments)}function KS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function at(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KS(Object(r),!0).forEach(function(n){Pt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _n(e){return EH(e)||PH(e)||_H(e)||AH()}function AH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
63
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _H(e,t){if(e){if(typeof e=="string")return jh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jh(e,t)}}function PH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function EH(e){if(Array.isArray(e))return jh(e)}function jh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function TH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,R1(n.key),n)}}function CH(e,t,r){return t&&GS(e.prototype,t),r&&GS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function jH(e,t,r){return t=Ds(t),IH(e,k1()?Reflect.construct(t,r||[],Ds(e).constructor):t.apply(e,r))}function IH(e,t){if(t&&(ci(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kH(e)}function kH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(k1=function(){return!!e})()}function Ds(e){return Ds=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ds(e)}function RH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ih(e,t)}function Ih(e,t){return Ih=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ih(e,t)}function Pt(e,t,r){return t=R1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R1(e){var t=MH(e,"string");return ci(t)=="symbol"?t:t+""}function MH(e,t){if(ci(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ci(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Za=(function(e){function t(){var r;TH(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=jH(this,t,[].concat(i)),Pt(r,"state",{isAnimationFinished:!0,totalLength:0}),Pt(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),Pt(r,"getStrokeDasharray",function(o,s,c){var u=c.reduce(function(g,b){return g+b});if(!u)return r.generateSimpleStrokeDasharray(s,o);for(var l=Math.floor(o/u),f=o%u,d=s-o,h=[],m=0,v=0;m<c.length;v+=c[m],++m)if(v+c[m]>f){h=[].concat(_n(c.slice(0,m)),[f-v]);break}var p=h.length%2===0?[0,d]:[d];return[].concat(_n(t.repeat(c,l)),_n(h),p).map(function(g){return"".concat(g,"px")}).join(", ")}),Pt(r,"id",Nr("recharts-line-")),Pt(r,"pathRef",function(o){r.mainCurve=o}),Pt(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Pt(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return RH(t,e),CH(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,s=a.xAxis,c=a.yAxis,u=a.layout,l=a.children,f=tt(l,_i);if(!f)return null;var d=function(v,p){return{x:v.x,y:v.y,value:v.value,errorVal:Ee(v.payload,p)}},h={clipPath:n?"url(#clipPath-".concat(i,")"):null};return A.createElement(fe,h,f.map(function(m){return A.cloneElement(m,{key:"bar-".concat(m.props.dataKey),data:o,xAxis:s,yAxis:c,layout:u,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,c=s.dot,u=s.points,l=s.dataKey,f=re(this.props,!1),d=re(c,!0),h=u.map(function(v,p){var g=at(at(at({key:"dot-".concat(p),r:3},f),d),{},{index:p,cx:v.x,cy:v.y,value:v.value,dataKey:l,payload:v.payload,points:u});return t.renderDotItem(c,g)}),m={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return A.createElement(fe,ta({className:"recharts-line-dots",key:"dots"},m),h)}},{key:"renderCurveStatically",value:function(n,i,a,o){var s=this.props,c=s.type,u=s.layout,l=s.connectNulls;s.ref;var f=VS(s,wH),d=at(at(at({},re(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:c,layout:u,connectNulls:l});return A.createElement(Cr,ta({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,c=o.strokeDasharray,u=o.isAnimationActive,l=o.animationBegin,f=o.animationDuration,d=o.animationEasing,h=o.animationId,m=o.animateNewValues,v=o.width,p=o.height,g=this.state,b=g.prevPoints,x=g.totalLength;return A.createElement(dt,{begin:l,duration:f,isActive:u,easing:d,from:{t:0},to:{t:1},key:"line-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(w){var y=w.t;if(b){var S=b.length/s.length,O=s.map(function(j,R){var N=Math.floor(R*S);if(b[N]){var D=b[N],$=Pe(D.x,j.x),L=Pe(D.y,j.y);return at(at({},j),{},{x:$(y),y:L(y)})}if(m){var B=Pe(v*2,j.x),W=Pe(p/2,j.y);return at(at({},j),{},{x:B(y),y:W(y)})}return at(at({},j),{},{x:j.x,y:j.y})});return a.renderCurveStatically(O,n,i)}var P=Pe(0,x),T=P(y),k;if(c){var C="".concat(c).split(/[,\s]+/gim).map(function(j){return parseFloat(j)});k=a.getStrokeDasharray(T,x,C)}else k=a.generateSimpleStrokeDasharray(x,T);return a.renderCurveStatically(s,n,i,{strokeDasharray:k})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,s=a.isAnimationActive,c=this.state,u=c.prevPoints,l=c.totalLength;return s&&o&&o.length&&(!u&&l>0||!fr(u,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,c=i.className,u=i.xAxis,l=i.yAxis,f=i.top,d=i.left,h=i.width,m=i.height,v=i.isAnimationActive,p=i.id;if(a||!s||!s.length)return null;var g=this.state.isAnimationFinished,b=s.length===1,x=le("recharts-line",c),w=u&&u.allowDataOverflow,y=l&&l.allowDataOverflow,S=w||y,O=se(p)?this.id:p,P=(n=re(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=P.r,k=T===void 0?3:T,C=P.strokeWidth,j=C===void 0?2:C,R=PA(o)?o:{},N=R.clipDot,D=N===void 0?!0:N,$=k*2+j;return A.createElement(fe,{className:x},w||y?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(O)},A.createElement("rect",{x:w?d:d-h/2,y:y?f:f-m/2,width:w?h:h*2,height:y?m:m*2})),!D&&A.createElement("clipPath",{id:"clipPath-dots-".concat(O)},A.createElement("rect",{x:d-$/2,y:f-$/2,width:h+$,height:m+$}))):null,!b&&this.renderCurve(S,O),this.renderErrorBar(S,O),(b||o)&&this.renderDots(S,D,O),(!v||g)&&xt.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(_n(n),[0]):n,o=[],s=0;s<i;++s)o=[].concat(_n(o),_n(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(A.isValidElement(n))a=A.cloneElement(n,i);else if(oe(n))a=n(i);else{var o=i.key,s=VS(i,SH),c=le("recharts-line-dot",typeof n!="boolean"?n.className:"");a=A.createElement(Pi,ta({key:o},s,{className:c}))}return a}}])})(A.PureComponent);Pt(Za,"displayName","Line");Pt(Za,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Yt.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Pt(Za,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,c=e.displayedData,u=e.offset,l=t.layout,f=c.map(function(d,h){var m=Ee(d,o);return l==="horizontal"?{x:Gn({axis:r,ticks:i,bandSize:s,entry:d,index:h}),y:se(m)?null:n.scale(m),value:m,payload:d}:{x:se(m)?null:r.scale(m),y:Gn({axis:n,ticks:a,bandSize:s,entry:d,index:h}),value:m,payload:d}});return at({points:f,layout:l},u)});var $H=["layout","type","stroke","connectNulls","isRange","ref"],NH=["key"],M1;function ui(e){"@babel/helpers - typeof";return ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ui(e)}function $1(e,t){if(e==null)return{};var r=DH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function DH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function nn(){return nn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nn.apply(this,arguments)}function YS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YS(Object(r),!0).forEach(function(n){Bt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,D1(n.key),n)}}function BH(e,t,r){return t&&XS(e.prototype,t),r&&XS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function qH(e,t,r){return t=Ls(t),FH(e,N1()?Reflect.construct(t,r||[],Ls(e).constructor):t.apply(e,r))}function FH(e,t){if(t&&(ui(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zH(e)}function zH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(N1=function(){return!!e})()}function Ls(e){return Ls=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ls(e)}function WH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kh(e,t)}function kh(e,t){return kh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kh(e,t)}function Bt(e,t,r){return t=D1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D1(e){var t=UH(e,"string");return ui(t)=="symbol"?t:t+""}function UH(e,t){if(ui(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ui(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Fr=(function(e){function t(){var r;LH(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=qH(this,t,[].concat(i)),Bt(r,"state",{isAnimationFinished:!0}),Bt(r,"id",Nr("recharts-area-")),Bt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),oe(o)&&o()}),Bt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),oe(o)&&o()}),r}return WH(t,e),BH(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var c=this.props,u=c.dot,l=c.points,f=c.dataKey,d=re(this.props,!1),h=re(u,!0),m=l.map(function(p,g){var b=wr(wr(wr({key:"dot-".concat(g),r:3},d),h),{},{index:g,cx:p.x,cy:p.y,dataKey:f,value:p.value,payload:p.payload,points:l});return t.renderDotItem(u,b)}),v={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return A.createElement(fe,nn({className:"recharts-area-dots"},v),m)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,c=o[0].x,u=o[o.length-1].x,l=n*Math.abs(c-u),f=_r(o.map(function(d){return d.y||0}));return Y(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(_r(a.map(function(d){return d.y||0})),f)),Y(f)?A.createElement("rect",{x:c<u?c:c-l,y:0,width:l,height:Math.floor(f+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,c=o[0].y,u=o[o.length-1].y,l=n*Math.abs(c-u),f=_r(o.map(function(d){return d.x||0}));return Y(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(_r(a.map(function(d){return d.x||0})),f)),Y(f)?A.createElement("rect",{x:0,y:c<u?c:c-l,width:f+(s?parseInt("".concat(s),10):1),height:Math.floor(l)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var s=this.props,c=s.layout,u=s.type,l=s.stroke,f=s.connectNulls,d=s.isRange;s.ref;var h=$1(s,$H);return A.createElement(fe,{clipPath:a?"url(#clipPath-".concat(o,")"):null},A.createElement(Cr,nn({},re(h,!0),{points:n,connectNulls:f,type:u,baseLine:i,layout:c,stroke:"none",className:"recharts-area-area"})),l!=="none"&&A.createElement(Cr,nn({},re(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:f,fill:"none",points:n})),l!=="none"&&d&&A.createElement(Cr,nn({},re(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:f,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,c=o.baseLine,u=o.isAnimationActive,l=o.animationBegin,f=o.animationDuration,d=o.animationEasing,h=o.animationId,m=this.state,v=m.prevPoints,p=m.prevBaseLine;return A.createElement(dt,{begin:l,duration:f,isActive:u,easing:d,from:{t:0},to:{t:1},key:"area-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var b=g.t;if(v){var x=v.length/s.length,w=s.map(function(P,T){var k=Math.floor(T*x);if(v[k]){var C=v[k],j=Pe(C.x,P.x),R=Pe(C.y,P.y);return wr(wr({},P),{},{x:j(b),y:R(b)})}return P}),y;if(Y(c)&&typeof c=="number"){var S=Pe(p,c);y=S(b)}else if(se(c)||xi(c)){var O=Pe(p,0);y=O(b)}else y=c.map(function(P,T){var k=Math.floor(T*x);if(p[k]){var C=p[k],j=Pe(C.x,P.x),R=Pe(C.y,P.y);return wr(wr({},P),{},{x:j(b),y:R(b)})}return P});return a.renderAreaStatically(w,y,n,i)}return A.createElement(fe,null,A.createElement("defs",null,A.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(b))),A.createElement(fe,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(s,c,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,s=a.baseLine,c=a.isAnimationActive,u=this.state,l=u.prevPoints,f=u.prevBaseLine,d=u.totalLength;return c&&o&&o.length&&(!l&&d>0||!fr(l,o)||!fr(f,s))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,s,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,c=i.className,u=i.top,l=i.left,f=i.xAxis,d=i.yAxis,h=i.width,m=i.height,v=i.isAnimationActive,p=i.id;if(a||!s||!s.length)return null;var g=this.state.isAnimationFinished,b=s.length===1,x=le("recharts-area",c),w=f&&f.allowDataOverflow,y=d&&d.allowDataOverflow,S=w||y,O=se(p)?this.id:p,P=(n=re(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=P.r,k=T===void 0?3:T,C=P.strokeWidth,j=C===void 0?2:C,R=PA(o)?o:{},N=R.clipDot,D=N===void 0?!0:N,$=k*2+j;return A.createElement(fe,{className:x},w||y?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(O)},A.createElement("rect",{x:w?l:l-h/2,y:y?u:u-m/2,width:w?h:h*2,height:y?m:m*2})),!D&&A.createElement("clipPath",{id:"clipPath-dots-".concat(O)},A.createElement("rect",{x:l-$/2,y:u-$/2,width:h+$,height:m+$}))):null,b?null:this.renderArea(S,O),(o||b)&&this.renderDots(S,D,O),(!v||g)&&xt.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(A.PureComponent);M1=Fr;Bt(Fr,"displayName","Area");Bt(Fr,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Yt.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Bt(Fr,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(Y(s)&&typeof s=="number")return s;var c=i==="horizontal"?n:r,u=c.scale.domain();if(c.type==="number"){var l=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return s==="dataMin"?f:s==="dataMax"||l<0?l:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});Bt(Fr,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,c=e.dataKey,u=e.stackedData,l=e.dataStartIndex,f=e.displayedData,d=e.offset,h=t.layout,m=u&&u.length,v=M1.getBaseValue(t,r,n,i),p=h==="horizontal",g=!1,b=f.map(function(w,y){var S;m?S=u[l+y]:(S=Ee(w,c),Array.isArray(S)?g=!0:S=[v,S]);var O=S[1]==null||m&&Ee(w,c)==null;return p?{x:Gn({axis:n,ticks:a,bandSize:s,entry:w,index:y}),y:O?null:i.scale(S[1]),value:S,payload:w}:{x:O?null:n.scale(S[1]),y:Gn({axis:i,ticks:o,bandSize:s,entry:w,index:y}),value:S,payload:w}}),x;return m||g?x=b.map(function(w){var y=Array.isArray(w.value)?w.value[0]:null;return p?{x:w.x,y:y!=null&&w.y!=null?i.scale(y):null}:{x:y!=null?n.scale(y):null,y:w.y}}):x=p?i.scale(v):n.scale(v),wr({points:b,baseLine:x,layout:h,isRange:g},d)});Bt(Fr,"renderDotItem",function(e,t){var r;if(A.isValidElement(e))r=A.cloneElement(e,t);else if(oe(e))r=e(t);else{var n=le("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=$1(t,NH);r=A.createElement(Pi,nn({},a,{key:i,className:n}))}return r});function li(e){"@babel/helpers - typeof";return li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},li(e)}function HH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VH(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,q1(n.key),n)}}function KH(e,t,r){return t&&VH(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function GH(e,t,r){return t=Bs(t),YH(e,L1()?Reflect.construct(t,r||[],Bs(e).constructor):t.apply(e,r))}function YH(e,t){if(t&&(li(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XH(e)}function XH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L1=function(){return!!e})()}function Bs(e){return Bs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bs(e)}function ZH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rh(e,t)}function Rh(e,t){return Rh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Rh(e,t)}function B1(e,t,r){return t=q1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q1(e){var t=JH(e,"string");return li(t)=="symbol"?t:t+""}function JH(e,t){if(li(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(li(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ja=(function(e){function t(){return HH(this,t),GH(this,t,arguments)}return ZH(t,e),KH(t,[{key:"render",value:function(){return null}}])})(E.Component);B1(Ja,"displayName","ZAxis");B1(Ja,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var QH=["option","isActive"];function ra(){return ra=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ra.apply(this,arguments)}function eV(e,t){if(e==null)return{};var r=tV(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tV(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function rV(e){var t=e.option,r=e.isActive,n=eV(e,QH);return typeof t=="string"?E.createElement(Ss,ra({option:E.createElement(uc,ra({type:t},n)),isActive:r,shapeType:"symbols"},n)):E.createElement(Ss,ra({option:t,isActive:r,shapeType:"symbols"},n))}function fi(e){"@babel/helpers - typeof";return fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fi(e)}function na(){return na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},na.apply(this,arguments)}function ZS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZS(Object(r),!0).forEach(function(n){Er(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,z1(n.key),n)}}function iV(e,t,r){return t&&JS(e.prototype,t),r&&JS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function aV(e,t,r){return t=qs(t),oV(e,F1()?Reflect.construct(t,r||[],qs(e).constructor):t.apply(e,r))}function oV(e,t){if(t&&(fi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sV(e)}function sV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F1=function(){return!!e})()}function qs(e){return qs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qs(e)}function cV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mh(e,t)}function Mh(e,t){return Mh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Mh(e,t)}function Er(e,t,r){return t=z1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z1(e){var t=uV(e,"string");return fi(t)=="symbol"?t:t+""}function uV(e,t){if(fi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Qa=(function(e){function t(){var r;nV(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=aV(this,t,[].concat(i)),Er(r,"state",{isAnimationFinished:!1}),Er(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),Er(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),Er(r,"id",Nr("recharts-scatter-")),r}return cV(t,e),iV(t,[{key:"renderSymbolsStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.activeShape,c=a.activeIndex,u=re(this.props,!1);return n.map(function(l,f){var d=c===f,h=d?s:o,m=mt(mt({},u),l);return A.createElement(fe,na({className:"recharts-scatter-symbol",key:"symbol-".concat(l?.cx,"-").concat(l?.cy,"-").concat(l?.size,"-").concat(f)},Ir(i.props,l,f),{role:"img"}),A.createElement(rV,na({option:h,isActive:d,key:"symbol-".concat(f)},m)))})}},{key:"renderSymbolsWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,u=i.animationEasing,l=i.animationId,f=this.state.prevPoints;return A.createElement(dt,{begin:s,duration:c,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var h=d.t,m=a.map(function(v,p){var g=f&&f[p];if(g){var b=Pe(g.cx,v.cx),x=Pe(g.cy,v.cy),w=Pe(g.size,v.size);return mt(mt({},v),{},{cx:b(h),cy:x(h),size:w(h)})}var y=Pe(0,v.size);return mt(mt({},v),{},{size:y(h)})});return A.createElement(fe,null,n.renderSymbolsStatically(m))})}},{key:"renderSymbols",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=this.state.prevPoints;return a&&i&&i.length&&(!o||!fr(o,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,o=i.xAxis,s=i.yAxis,c=i.children,u=tt(c,_i);return u?u.map(function(l,f){var d=l.props,h=d.direction,m=d.dataKey;return A.cloneElement(l,{key:"".concat(h,"-").concat(m,"-").concat(a[f]),data:a,xAxis:o,yAxis:s,layout:h==="x"?"vertical":"horizontal",dataPointFormatter:function(p,g){return{x:p.cx,y:p.cy,value:h==="x"?+p.node.x:+p.node.y,errorVal:Ee(p,g)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,i=n.points,a=n.line,o=n.lineType,s=n.lineJointType,c=re(this.props,!1),u=re(a,!1),l,f;if(o==="joint")l=i.map(function(x){return{x:x.cx,y:x.cy}});else if(o==="fitting"){var d=PI(i),h=d.xmin,m=d.xmax,v=d.a,p=d.b,g=function(w){return v*w+p};l=[{x:h,y:g(h)},{x:m,y:g(m)}]}var b=mt(mt(mt({},c),{},{fill:"none",stroke:c&&c.fill},u),{},{points:l});return A.isValidElement(a)?f=A.cloneElement(a,b):oe(a)?f=a(b):f=A.createElement(Cr,na({},b,{type:s})),A.createElement(fe,{className:"recharts-scatter-line",key:"recharts-scatter-line"},f)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.points,o=n.line,s=n.className,c=n.xAxis,u=n.yAxis,l=n.left,f=n.top,d=n.width,h=n.height,m=n.id,v=n.isAnimationActive;if(i||!a||!a.length)return null;var p=this.state.isAnimationFinished,g=le("recharts-scatter",s),b=c&&c.allowDataOverflow,x=u&&u.allowDataOverflow,w=b||x,y=se(m)?this.id:m;return A.createElement(fe,{className:g,clipPath:w?"url(#clipPath-".concat(y,")"):null},b||x?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(y)},A.createElement("rect",{x:b?l:l-d/2,y:x?f:f-h/2,width:b?d:d*2,height:x?h:h*2}))):null,o&&this.renderLine(),this.renderErrorBar(),A.createElement(fe,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!v||p)&&xt.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}}])})(A.PureComponent);Er(Qa,"displayName","Scatter");Er(Qa,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Yt.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});Er(Qa,"getComposedData",function(e){var t=e.xAxis,r=e.yAxis,n=e.zAxis,i=e.item,a=e.displayedData,o=e.xAxisTicks,s=e.yAxisTicks,c=e.offset,u=i.props.tooltipType,l=tt(i.props.children,Dr),f=se(t.dataKey)?i.props.dataKey:t.dataKey,d=se(r.dataKey)?i.props.dataKey:r.dataKey,h=n&&n.dataKey,m=n?n.range:Ja.defaultProps.range,v=m&&m[0],p=t.scale.bandwidth?t.scale.bandwidth():0,g=r.scale.bandwidth?r.scale.bandwidth():0,b=a.map(function(x,w){var y=Ee(x,f),S=Ee(x,d),O=!se(h)&&Ee(x,h)||"-",P=[{name:se(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:y,payload:x,dataKey:f,type:u},{name:se(r.dataKey)?i.props.name:r.name||r.dataKey,unit:r.unit||"",value:S,payload:x,dataKey:d,type:u}];O!=="-"&&P.push({name:n.name||n.dataKey,unit:n.unit||"",value:O,payload:x,dataKey:h,type:u});var T=Gn({axis:t,ticks:o,bandSize:p,entry:x,index:w,dataKey:f}),k=Gn({axis:r,ticks:s,bandSize:g,entry:x,index:w,dataKey:d}),C=O!=="-"?n.scale(O):v,j=Math.sqrt(Math.max(C,0)/Math.PI);return mt(mt({},x),{},{cx:T,cy:k,x:T-j,y:k-j,xAxis:t,yAxis:r,zAxis:n,width:2*j,height:2*j,size:C,node:{x:y,y:S,z:O},tooltipPayload:P,tooltipPosition:{x:T,y:k},payload:x},l&&l[w]&&l[w].props)});return mt({points:b},c)});function di(e){"@babel/helpers - typeof";return di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},di(e)}function lV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,H1(n.key),n)}}function dV(e,t,r){return t&&fV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pV(e,t,r){return t=Fs(t),hV(e,W1()?Reflect.construct(t,r||[],Fs(e).constructor):t.apply(e,r))}function hV(e,t){if(t&&(di(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vV(e)}function vV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(W1=function(){return!!e})()}function Fs(e){return Fs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fs(e)}function mV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$h(e,t)}function $h(e,t){return $h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$h(e,t)}function U1(e,t,r){return t=H1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H1(e){var t=yV(e,"string");return di(t)=="symbol"?t:t+""}function yV(e,t){if(di(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(di(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Nh(){return Nh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nh.apply(this,arguments)}function gV(e){var t=e.xAxisId,r=om(),n=sm(),i=x1(t);return i==null?null:E.createElement(Ci,Nh({},i,{className:le("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return ar(o,!0)}}))}var Ct=(function(e){function t(){return lV(this,t),pV(this,t,arguments)}return mV(t,e),dV(t,[{key:"render",value:function(){return E.createElement(gV,this.props)}}])})(E.Component);U1(Ct,"displayName","XAxis");U1(Ct,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function pi(e){"@babel/helpers - typeof";return pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pi(e)}function bV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,G1(n.key),n)}}function wV(e,t,r){return t&&xV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function SV(e,t,r){return t=zs(t),OV(e,V1()?Reflect.construct(t,r||[],zs(e).constructor):t.apply(e,r))}function OV(e,t){if(t&&(pi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AV(e)}function AV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(V1=function(){return!!e})()}function zs(e){return zs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zs(e)}function _V(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dh(e,t)}function Dh(e,t){return Dh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Dh(e,t)}function K1(e,t,r){return t=G1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G1(e){var t=PV(e,"string");return pi(t)=="symbol"?t:t+""}function PV(e,t){if(pi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Lh(){return Lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lh.apply(this,arguments)}var EV=function(t){var r=t.yAxisId,n=om(),i=sm(),a=w1(r);return a==null?null:E.createElement(Ci,Lh({},a,{className:le("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return ar(s,!0)}}))},jt=(function(e){function t(){return bV(this,t),SV(this,t,arguments)}return _V(t,e),wV(t,[{key:"render",value:function(){return E.createElement(EV,this.props)}}])})(E.Component);K1(jt,"displayName","YAxis");K1(jt,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function QS(e){return IV(e)||jV(e)||CV(e)||TV()}function TV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
64
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CV(e,t){if(e){if(typeof e=="string")return Bh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bh(e,t)}}function jV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function IV(e){if(Array.isArray(e))return Bh(e)}function Bh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var qh=function(t,r,n,i,a){var o=tt(t,um),s=tt(t,jc),c=[].concat(QS(o),QS(s)),u=tt(t,kc),l="".concat(i,"Id"),f=i[0],d=r;if(c.length&&(d=c.reduce(function(v,p){if(p.props[l]===n&&zt(p.props,"extendDomain")&&Y(p.props[f])){var g=p.props[f];return[Math.min(v[0],g),Math.max(v[1],g)]}return v},d)),u.length){var h="".concat(f,"1"),m="".concat(f,"2");d=u.reduce(function(v,p){if(p.props[l]===n&&zt(p.props,"extendDomain")&&Y(p.props[h])&&Y(p.props[m])){var g=p.props[h],b=p.props[m];return[Math.min(v[0],g,b),Math.max(v[1],g,b)]}return v},d)}return a&&a.length&&(d=a.reduce(function(v,p){return Y(p)?[Math.min(v[0],p),Math.max(v[1],p)]:v},d)),d},rp={exports:{}},eO;function kV(){return eO||(eO=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(c,u,l){this.fn=c,this.context=u,this.once=l||!1}function a(c,u,l,f,d){if(typeof l!="function")throw new TypeError("The listener must be a function");var h=new i(l,f||c,d),m=r?r+u:u;return c._events[m]?c._events[m].fn?c._events[m]=[c._events[m],h]:c._events[m].push(h):(c._events[m]=h,c._eventsCount++),c}function o(c,u){--c._eventsCount===0?c._events=new n:delete c._events[u]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],l,f;if(this._eventsCount===0)return u;for(f in l=this._events)t.call(l,f)&&u.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(l)):u},s.prototype.listeners=function(u){var l=r?r+u:u,f=this._events[l];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,m=new Array(h);d<h;d++)m[d]=f[d].fn;return m},s.prototype.listenerCount=function(u){var l=r?r+u:u,f=this._events[l];return f?f.fn?1:f.length:0},s.prototype.emit=function(u,l,f,d,h,m){var v=r?r+u:u;if(!this._events[v])return!1;var p=this._events[v],g=arguments.length,b,x;if(p.fn){switch(p.once&&this.removeListener(u,p.fn,void 0,!0),g){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,l),!0;case 3:return p.fn.call(p.context,l,f),!0;case 4:return p.fn.call(p.context,l,f,d),!0;case 5:return p.fn.call(p.context,l,f,d,h),!0;case 6:return p.fn.call(p.context,l,f,d,h,m),!0}for(x=1,b=new Array(g-1);x<g;x++)b[x-1]=arguments[x];p.fn.apply(p.context,b)}else{var w=p.length,y;for(x=0;x<w;x++)switch(p[x].once&&this.removeListener(u,p[x].fn,void 0,!0),g){case 1:p[x].fn.call(p[x].context);break;case 2:p[x].fn.call(p[x].context,l);break;case 3:p[x].fn.call(p[x].context,l,f);break;case 4:p[x].fn.call(p[x].context,l,f,d);break;default:if(!b)for(y=1,b=new Array(g-1);y<g;y++)b[y-1]=arguments[y];p[x].fn.apply(p[x].context,b)}}return!0},s.prototype.on=function(u,l,f){return a(this,u,l,f,!1)},s.prototype.once=function(u,l,f){return a(this,u,l,f,!0)},s.prototype.removeListener=function(u,l,f,d){var h=r?r+u:u;if(!this._events[h])return this;if(!l)return o(this,h),this;var m=this._events[h];if(m.fn)m.fn===l&&(!d||m.once)&&(!f||m.context===f)&&o(this,h);else{for(var v=0,p=[],g=m.length;v<g;v++)(m[v].fn!==l||d&&!m[v].once||f&&m[v].context!==f)&&p.push(m[v]);p.length?this._events[h]=p.length===1?p[0]:p:o(this,h)}return this},s.prototype.removeAllListeners=function(u){var l;return u?(l=r?r+u:u,this._events[l]&&o(this,l)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(rp)),rp.exports}var RV=kV();const MV=Oe(RV);var np=new MV,ip="recharts.syncMouseEvents";function La(e){"@babel/helpers - typeof";return La=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},La(e)}function $V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Y1(n.key),n)}}function DV(e,t,r){return t&&NV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ap(e,t,r){return t=Y1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y1(e){var t=LV(e,"string");return La(t)=="symbol"?t:t+""}function LV(e,t){if(La(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(La(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var BV=(function(){function e(){$V(this,e),ap(this,"activeIndex",0),ap(this,"coordinateList",[]),ap(this,"layout","horizontal")}return DV(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,s=o===void 0?null:o,c=r.layout,u=c===void 0?null:c,l=r.offset,f=l===void 0?null:l,d=r.mouseHandlerCallback,h=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=h??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,s=i.height,c=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,l=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=a+c+u,d=o+this.offset.top+s/2+l;this.mouseHandlerCallback({pageX:f,pageY:d})}}}])})();function qV(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],i=e?.[1];if(n&&i&&Y(n)&&Y(i))return!0}return!1}function FV(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function X1(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=me(t,r,n,i),s=me(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function zV(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,c=t.cy,u=t.innerRadius,l=t.outerRadius,f=t.angle,d=me(s,c,u,f),h=me(s,c,l,f);n=d.x,i=d.y,a=h.x,o=h.y}else return X1(t);return[{x:n,y:i},{x:a,y:o}]}function Ba(e){"@babel/helpers - typeof";return Ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ba(e)}function tO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function So(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tO(Object(r),!0).forEach(function(n){WV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WV(e,t,r){return t=UV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UV(e){var t=HV(e,"string");return Ba(t)=="symbol"?t:t+""}function HV(e,t){if(Ba(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ba(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VV(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,c=e.offset,u=e.activeTooltipIndex,l=e.tooltipAxisBandSize,f=e.layout,d=e.chartName,h=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!h||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var m,v=Cr;if(d==="ScatterChart")m=o,v=hz;else if(d==="BarChart")m=FV(f,o,c,l),v=rm;else if(f==="radial"){var p=X1(o),g=p.cx,b=p.cy,x=p.radius,w=p.startAngle,y=p.endAngle;m={cx:g,cy:b,startAngle:w,endAngle:y,innerRadius:x,outerRadius:x},v=DP}else m={points:zV(f,o,c)},v=Cr;var S=So(So(So(So({stroke:"#ccc",pointerEvents:"none"},c),m),re(h,!1)),{},{payload:s,payloadIndex:u,className:le("recharts-tooltip-cursor",h.className)});return A.isValidElement(h)?A.cloneElement(h,S):A.createElement(v,S)}var KV=["item"],GV=["children","className","width","height","style","compact","title","desc"];function hi(e){"@babel/helpers - typeof";return hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hi(e)}function Rn(){return Rn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rn.apply(this,arguments)}function rO(e,t){return ZV(e)||XV(e,t)||J1(e,t)||YV()}function YV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
65
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XV(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function ZV(e){if(Array.isArray(e))return e}function nO(e,t){if(e==null)return{};var r=JV(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function JV(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function QV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eK(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Q1(n.key),n)}}function tK(e,t,r){return t&&eK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rK(e,t,r){return t=Ws(t),nK(e,Z1()?Reflect.construct(t,r||[],Ws(e).constructor):t.apply(e,r))}function nK(e,t){if(t&&(hi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iK(e)}function iK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Z1=function(){return!!e})()}function Ws(e){return Ws=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ws(e)}function aK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fh(e,t)}function Fh(e,t){return Fh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Fh(e,t)}function vi(e){return cK(e)||sK(e)||J1(e)||oK()}function oK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
66
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J1(e,t){if(e){if(typeof e=="string")return zh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zh(e,t)}}function sK(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cK(e){if(Array.isArray(e))return zh(e)}function zh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function iO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iO(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ue(e,t,r){return t=Q1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q1(e){var t=uK(e,"string");return hi(t)=="symbol"?t:t+""}function uK(e,t){if(hi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lK={xAxis:["bottom","top"],yAxis:["left","right"]},fK={width:"100%",height:"100%"},eE={x:0,y:0};function Oo(e){return e}var dK=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},pK=function(t,r,n,i){var a=r.find(function(l){return l&&l.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,s=i.radius;return z(z(z({},i),me(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var c=a.coordinate,u=i.angle;return z(z(z({},i),me(i.cx,i.cy,c,u)),{},{angle:u,radius:c})}return eE},Rc=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,c){var u=c.props.data;return u&&u.length?[].concat(vi(s),vi(u)):s},[]);return o.length>0?o:t&&t.length&&Y(i)&&Y(a)?t.slice(i,a+1):[]};function tE(e){return e==="number"?[0,"auto"]:void 0}var Wh=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=Rc(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(c,u){var l,f=(l=u.props.data)!==null&&l!==void 0?l:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var h=f===void 0?s:f;d=Lo(h,o.dataKey,i)}else d=f&&f[n]||s[n];return d?[].concat(vi(c),[CP(u,d)]):c},[])},aO=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=dK(a,n),s=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,l=R2(o,s,u,c);if(l>=0&&u){var f=u[l]&&u[l].value,d=Wh(t,r,l,f),h=pK(n,s,l,a);return{activeTooltipIndex:l,activeLabel:f,activePayload:d,activeCoordinate:h}}return null},hK=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,l=t.layout,f=t.children,d=t.stackOffset,h=OP(l,a);return n.reduce(function(m,v){var p,g=v.type.defaultProps!==void 0?z(z({},v.type.defaultProps),v.props):v.props,b=g.type,x=g.dataKey,w=g.allowDataOverflow,y=g.allowDuplicatedCategory,S=g.scale,O=g.ticks,P=g.includeHidden,T=g[o];if(m[T])return m;var k=Rc(t.data,{graphicalItems:i.filter(function(U){var G,Z=o in U.props?U.props[o]:(G=U.type.defaultProps)===null||G===void 0?void 0:G[o];return Z===T}),dataStartIndex:c,dataEndIndex:u}),C=k.length,j,R,N;qV(g.domain,w,b)&&(j=Qp(g.domain,null,w),h&&(b==="number"||S!=="auto")&&(N=Zi(k,x,"category")));var D=tE(b);if(!j||j.length===0){var $,L=($=g.domain)!==null&&$!==void 0?$:D;if(x){if(j=Zi(k,x,b),b==="category"&&h){var B=_I(j);y&&B?(R=j,j=Ps(0,C)):y||(j=H0(L,j,v).reduce(function(U,G){return U.indexOf(G)>=0?U:[].concat(vi(U),[G])},[]))}else if(b==="category")y?j=j.filter(function(U){return U!==""&&!se(U)}):j=H0(L,j,v).reduce(function(U,G){return U.indexOf(G)>=0||G===""||se(G)?U:[].concat(vi(U),[G])},[]);else if(b==="number"){var W=L2(k,i.filter(function(U){var G,Z,J=o in U.props?U.props[o]:(G=U.type.defaultProps)===null||G===void 0?void 0:G[o],Q="hide"in U.props?U.props.hide:(Z=U.type.defaultProps)===null||Z===void 0?void 0:Z.hide;return J===T&&(P||!Q)}),x,a,l);W&&(j=W)}h&&(b==="number"||S!=="auto")&&(N=Zi(k,x,"category"))}else h?j=Ps(0,C):s&&s[T]&&s[T].hasStack&&b==="number"?j=d==="expand"?[0,1]:TP(s[T].stackGroups,c,u):j=SP(k,i.filter(function(U){var G=o in U.props?U.props[o]:U.type.defaultProps[o],Z="hide"in U.props?U.props.hide:U.type.defaultProps.hide;return G===T&&(P||!Z)}),b,l,!0);if(b==="number")j=qh(f,j,T,a,O),L&&(j=Qp(L,j,w));else if(b==="category"&&L){var I=L,F=j.every(function(U){return I.indexOf(U)>=0});F&&(j=I)}}return z(z({},m),{},ue({},T,z(z({},g),{},{axisType:a,domain:j,categoricalDomain:N,duplicateDomain:R,originalDomain:(p=g.domain)!==null&&p!==void 0?p:D,isCategorical:h,layout:l})))},{})},vK=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,l=t.layout,f=t.children,d=Rc(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:u}),h=d.length,m=OP(l,a),v=-1;return n.reduce(function(p,g){var b=g.type.defaultProps!==void 0?z(z({},g.type.defaultProps),g.props):g.props,x=b[o],w=tE("number");if(!p[x]){v++;var y;return m?y=Ps(0,h):s&&s[x]&&s[x].hasStack?(y=TP(s[x].stackGroups,c,u),y=qh(f,y,x,a)):(y=Qp(w,SP(d,n.filter(function(S){var O,P,T=o in S.props?S.props[o]:(O=S.type.defaultProps)===null||O===void 0?void 0:O[o],k="hide"in S.props?S.props.hide:(P=S.type.defaultProps)===null||P===void 0?void 0:P.hide;return T===x&&!k}),"number",l),i.defaultProps.allowDataOverflow),y=qh(f,y,x,a)),z(z({},p),{},ue({},x,z(z({axisType:a},i.defaultProps),{},{hide:!0,orientation:lt(lK,"".concat(a,".").concat(v%2),null),domain:y,originalDomain:w,isCategorical:m,layout:l})))}return p},{})},mK=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,l=t.children,f="".concat(i,"Id"),d=tt(l,a),h={};return d&&d.length?h=hK(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:c,dataEndIndex:u}):o&&o.length&&(h=vK(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:c,dataEndIndex:u})),h},yK=function(t){var r=Ar(t),n=ar(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Tv(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:us(r,n)}},oO=function(t){var r=t.children,n=t.defaultShowTooltip,i=st(r,ti),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},gK=function(t){return!t||!t.length?!1:t.some(function(r){var n=or(r&&r.type);return n&&n.indexOf("Bar")>=0})},sO=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},bK=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,c=s===void 0?{}:s,u=n.width,l=n.height,f=n.children,d=n.margin||{},h=st(f,ti),m=st(f,bt),v=Object.keys(c).reduce(function(y,S){var O=c[S],P=O.orientation;return!O.mirror&&!O.hide?z(z({},y),{},ue({},P,y[P]+O.width)):y},{left:d.left||0,right:d.right||0}),p=Object.keys(o).reduce(function(y,S){var O=o[S],P=O.orientation;return!O.mirror&&!O.hide?z(z({},y),{},ue({},P,lt(y,"".concat(P))+O.height)):y},{top:d.top||0,bottom:d.bottom||0}),g=z(z({},p),v),b=g.bottom;h&&(g.bottom+=h.props.height||ti.defaultProps.height),m&&r&&(g=N2(g,i,n,r));var x=u-g.left-g.right,w=l-g.top-g.bottom;return z(z({brushBottom:b},g),{},{width:Math.max(x,0),height:Math.max(w,0)})},xK=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},ji=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,c=t.axisComponents,u=t.legendContent,l=t.formatAxisMap,f=t.defaultProps,d=function(g,b){var x=b.graphicalItems,w=b.stackGroups,y=b.offset,S=b.updateId,O=b.dataStartIndex,P=b.dataEndIndex,T=g.barSize,k=g.layout,C=g.barGap,j=g.barCategoryGap,R=g.maxBarSize,N=sO(k),D=N.numericAxisName,$=N.cateAxisName,L=gK(x),B=[];return x.forEach(function(W,I){var F=Rc(g.data,{graphicalItems:[W],dataStartIndex:O,dataEndIndex:P}),U=W.type.defaultProps!==void 0?z(z({},W.type.defaultProps),W.props):W.props,G=U.dataKey,Z=U.maxBarSize,J=U["".concat(D,"Id")],Q=U["".concat($,"Id")],K={},ee=c.reduce(function(Hr,Jt){var Kc,Gc,Yc=b["".concat(Jt.axisType,"Map")],zm=U["".concat(Jt.axisType,"Id")];Yc&&Yc[zm]||Jt.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?nt(!1,"Specifying a(n) ".concat(Jt.axisType,"Id requires a corresponding ").concat(Jt.axisType,"Id on the targeted graphical component ").concat((Kc=W==null||(Gc=W.type)===null||Gc===void 0?void 0:Gc.displayName)!==null&&Kc!==void 0?Kc:"")):nt());var Wm=Yc[zm];return z(z({},Hr),{},ue(ue({},Jt.axisType,Wm),"".concat(Jt.axisType,"Ticks"),ar(Wm)))},K),q=ee[$],H=ee["".concat($,"Ticks")],X=w&&w[J]&&w[J].hasStack&&K2(W,w[J].stackGroups),M=or(W.type).indexOf("Bar")>=0,ce=us(q,H),V=[],ye=L&&M2({barSize:T,stackGroups:w,totalSize:xK(ee,$)});if(M){var Ae,$e,br=se(Z)?R:Z,wn=(Ae=($e=us(q,H,!0))!==null&&$e!==void 0?$e:br)!==null&&Ae!==void 0?Ae:0;V=$2({barGap:C,barCategoryGap:j,bandSize:wn!==ce?wn:ce,sizeList:ye[Q],maxBarSize:br}),wn!==ce&&(V=V.map(function(Hr){return z(z({},Hr),{},{position:z(z({},Hr.position),{},{offset:Hr.position.offset-wn/2})})}))}var no=W&&W.type&&W.type.getComposedData;no&&B.push({props:z(z({},no(z(z({},ee),{},{displayedData:F,props:g,dataKey:G,item:W,bandSize:ce,barPosition:V,offset:y,stackedData:X,layout:k,dataStartIndex:O,dataEndIndex:P}))),{},ue(ue(ue({key:W.key||"item-".concat(I)},D,ee[D]),$,ee[$]),"animationId",S)),childIndex:LI(W,g.children),item:W})}),B},h=function(g,b){var x=g.props,w=g.dataStartIndex,y=g.dataEndIndex,S=g.updateId;if(!og({props:x}))return null;var O=x.children,P=x.layout,T=x.stackOffset,k=x.data,C=x.reverseStackOrder,j=sO(P),R=j.numericAxisName,N=j.cateAxisName,D=tt(O,n),$=H2(k,D,"".concat(R,"Id"),"".concat(N,"Id"),T,C),L=c.reduce(function(U,G){var Z="".concat(G.axisType,"Map");return z(z({},U),{},ue({},Z,mK(x,z(z({},G),{},{graphicalItems:D,stackGroups:G.axisType===R&&$,dataStartIndex:w,dataEndIndex:y}))))},{}),B=bK(z(z({},L),{},{props:x,graphicalItems:D}),b?.legendBBox);Object.keys(L).forEach(function(U){L[U]=l(x,L[U],B,U.replace("Map",""),r)});var W=L["".concat(N,"Map")],I=yK(W),F=d(x,z(z({},L),{},{dataStartIndex:w,dataEndIndex:y,updateId:S,graphicalItems:D,stackGroups:$,offset:B}));return z(z({formattedGraphicalItems:F,graphicalItems:D,offset:B,stackGroups:$},I),L)},m=(function(p){function g(b){var x,w,y;return QV(this,g),y=rK(this,g,[b]),ue(y,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ue(y,"accessibilityManager",new BV),ue(y,"handleLegendBBoxUpdate",function(S){if(S){var O=y.state,P=O.dataStartIndex,T=O.dataEndIndex,k=O.updateId;y.setState(z({legendBBox:S},h({props:y.props,dataStartIndex:P,dataEndIndex:T,updateId:k},z(z({},y.state),{},{legendBBox:S}))))}}),ue(y,"handleReceiveSyncEvent",function(S,O,P){if(y.props.syncId===S){if(P===y.eventEmitterSymbol&&typeof y.props.syncMethod!="function")return;y.applySyncEvent(O)}}),ue(y,"handleBrushChange",function(S){var O=S.startIndex,P=S.endIndex;if(O!==y.state.dataStartIndex||P!==y.state.dataEndIndex){var T=y.state.updateId;y.setState(function(){return z({dataStartIndex:O,dataEndIndex:P},h({props:y.props,dataStartIndex:O,dataEndIndex:P,updateId:T},y.state))}),y.triggerSyncEvent({dataStartIndex:O,dataEndIndex:P})}}),ue(y,"handleMouseEnter",function(S){var O=y.getMouseInfo(S);if(O){var P=z(z({},O),{},{isTooltipActive:!0});y.setState(P),y.triggerSyncEvent(P);var T=y.props.onMouseEnter;oe(T)&&T(P,S)}}),ue(y,"triggeredAfterMouseMove",function(S){var O=y.getMouseInfo(S),P=O?z(z({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};y.setState(P),y.triggerSyncEvent(P);var T=y.props.onMouseMove;oe(T)&&T(P,S)}),ue(y,"handleItemMouseEnter",function(S){y.setState(function(){return{isTooltipActive:!0,activeItem:S,activePayload:S.tooltipPayload,activeCoordinate:S.tooltipPosition||{x:S.cx,y:S.cy}}})}),ue(y,"handleItemMouseLeave",function(){y.setState(function(){return{isTooltipActive:!1}})}),ue(y,"handleMouseMove",function(S){S.persist(),y.throttleTriggeredAfterMouseMove(S)}),ue(y,"handleMouseLeave",function(S){y.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};y.setState(O),y.triggerSyncEvent(O);var P=y.props.onMouseLeave;oe(P)&&P(O,S)}),ue(y,"handleOuterEvent",function(S){var O=DI(S),P=lt(y.props,"".concat(O));if(O&&oe(P)){var T,k;/.*touch.*/i.test(O)?k=y.getMouseInfo(S.changedTouches[0]):k=y.getMouseInfo(S),P((T=k)!==null&&T!==void 0?T:{},S)}}),ue(y,"handleClick",function(S){var O=y.getMouseInfo(S);if(O){var P=z(z({},O),{},{isTooltipActive:!0});y.setState(P),y.triggerSyncEvent(P);var T=y.props.onClick;oe(T)&&T(P,S)}}),ue(y,"handleMouseDown",function(S){var O=y.props.onMouseDown;if(oe(O)){var P=y.getMouseInfo(S);O(P,S)}}),ue(y,"handleMouseUp",function(S){var O=y.props.onMouseUp;if(oe(O)){var P=y.getMouseInfo(S);O(P,S)}}),ue(y,"handleTouchMove",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&y.throttleTriggeredAfterMouseMove(S.changedTouches[0])}),ue(y,"handleTouchStart",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&y.handleMouseDown(S.changedTouches[0])}),ue(y,"handleTouchEnd",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&y.handleMouseUp(S.changedTouches[0])}),ue(y,"handleDoubleClick",function(S){var O=y.props.onDoubleClick;if(oe(O)){var P=y.getMouseInfo(S);O(P,S)}}),ue(y,"handleContextMenu",function(S){var O=y.props.onContextMenu;if(oe(O)){var P=y.getMouseInfo(S);O(P,S)}}),ue(y,"triggerSyncEvent",function(S){y.props.syncId!==void 0&&np.emit(ip,y.props.syncId,S,y.eventEmitterSymbol)}),ue(y,"applySyncEvent",function(S){var O=y.props,P=O.layout,T=O.syncMethod,k=y.state.updateId,C=S.dataStartIndex,j=S.dataEndIndex;if(S.dataStartIndex!==void 0||S.dataEndIndex!==void 0)y.setState(z({dataStartIndex:C,dataEndIndex:j},h({props:y.props,dataStartIndex:C,dataEndIndex:j,updateId:k},y.state)));else if(S.activeTooltipIndex!==void 0){var R=S.chartX,N=S.chartY,D=S.activeTooltipIndex,$=y.state,L=$.offset,B=$.tooltipTicks;if(!L)return;if(typeof T=="function")D=T(B,S);else if(T==="value"){D=-1;for(var W=0;W<B.length;W++)if(B[W].value===S.activeLabel){D=W;break}}var I=z(z({},L),{},{x:L.left,y:L.top}),F=Math.min(R,I.x+I.width),U=Math.min(N,I.y+I.height),G=B[D]&&B[D].value,Z=Wh(y.state,y.props.data,D),J=B[D]?{x:P==="horizontal"?B[D].coordinate:F,y:P==="horizontal"?U:B[D].coordinate}:eE;y.setState(z(z({},S),{},{activeLabel:G,activeCoordinate:J,activePayload:Z,activeTooltipIndex:D}))}else y.setState(S)}),ue(y,"renderCursor",function(S){var O,P=y.state,T=P.isTooltipActive,k=P.activeCoordinate,C=P.activePayload,j=P.offset,R=P.activeTooltipIndex,N=P.tooltipAxisBandSize,D=y.getTooltipEventType(),$=(O=S.props.active)!==null&&O!==void 0?O:T,L=y.props.layout,B=S.key||"_recharts-cursor";return A.createElement(VV,{key:B,activeCoordinate:k,activePayload:C,activeTooltipIndex:R,chartName:r,element:S,isActive:$,layout:L,offset:j,tooltipAxisBandSize:N,tooltipEventType:D})}),ue(y,"renderPolarAxis",function(S,O,P){var T=lt(S,"type.axisType"),k=lt(y.state,"".concat(T,"Map")),C=S.type.defaultProps,j=C!==void 0?z(z({},C),S.props):S.props,R=k&&k[j["".concat(T,"Id")]];return A.cloneElement(S,z(z({},R),{},{className:le(T,R.className),key:S.key||"".concat(O,"-").concat(P),ticks:ar(R,!0)}))}),ue(y,"renderPolarGrid",function(S){var O=S.props,P=O.radialLines,T=O.polarAngles,k=O.polarRadius,C=y.state,j=C.radiusAxisMap,R=C.angleAxisMap,N=Ar(j),D=Ar(R),$=D.cx,L=D.cy,B=D.innerRadius,W=D.outerRadius;return A.cloneElement(S,{polarAngles:Array.isArray(T)?T:ar(D,!0).map(function(I){return I.coordinate}),polarRadius:Array.isArray(k)?k:ar(N,!0).map(function(I){return I.coordinate}),cx:$,cy:L,innerRadius:B,outerRadius:W,key:S.key||"polar-grid",radialLines:P})}),ue(y,"renderLegend",function(){var S=y.state.formattedGraphicalItems,O=y.props,P=O.children,T=O.width,k=O.height,C=y.props.margin||{},j=T-(C.left||0)-(C.right||0),R=xP({children:P,formattedGraphicalItems:S,legendWidth:j,legendContent:u});if(!R)return null;var N=R.item,D=nO(R,KV);return A.cloneElement(N,z(z({},D),{},{chartWidth:T,chartHeight:k,margin:C,onBBoxUpdate:y.handleLegendBBoxUpdate}))}),ue(y,"renderTooltip",function(){var S,O=y.props,P=O.children,T=O.accessibilityLayer,k=st(P,Ye);if(!k)return null;var C=y.state,j=C.isTooltipActive,R=C.activeCoordinate,N=C.activePayload,D=C.activeLabel,$=C.offset,L=(S=k.props.active)!==null&&S!==void 0?S:j;return A.cloneElement(k,{viewBox:z(z({},$),{},{x:$.left,y:$.top}),active:L,label:D,payload:L?N:[],coordinate:R,accessibilityLayer:T})}),ue(y,"renderBrush",function(S){var O=y.props,P=O.margin,T=O.data,k=y.state,C=k.offset,j=k.dataStartIndex,R=k.dataEndIndex,N=k.updateId;return A.cloneElement(S,{key:S.key||"_recharts-brush",onChange:mo(y.handleBrushChange,S.props.onChange),data:T,x:Y(S.props.x)?S.props.x:C.left,y:Y(S.props.y)?S.props.y:C.top+C.height+C.brushBottom-(P.bottom||0),width:Y(S.props.width)?S.props.width:C.width,startIndex:j,endIndex:R,updateId:"brush-".concat(N)})}),ue(y,"renderReferenceElement",function(S,O,P){if(!S)return null;var T=y,k=T.clipPathId,C=y.state,j=C.xAxisMap,R=C.yAxisMap,N=C.offset,D=S.type.defaultProps||{},$=S.props,L=$.xAxisId,B=L===void 0?D.xAxisId:L,W=$.yAxisId,I=W===void 0?D.yAxisId:W;return A.cloneElement(S,{key:S.key||"".concat(O,"-").concat(P),xAxis:j[B],yAxis:R[I],viewBox:{x:N.left,y:N.top,width:N.width,height:N.height},clipPathId:k})}),ue(y,"renderActivePoints",function(S){var O=S.item,P=S.activePoint,T=S.basePoint,k=S.childIndex,C=S.isRange,j=[],R=O.props.key,N=O.item.type.defaultProps!==void 0?z(z({},O.item.type.defaultProps),O.item.props):O.item.props,D=N.activeDot,$=N.dataKey,L=z(z({index:k,dataKey:$,cx:P.x,cy:P.y,r:4,fill:em(O.item),strokeWidth:2,stroke:"#fff",payload:P.payload,value:P.value},re(D,!1)),Bo(D));return j.push(g.renderActiveDot(D,L,"".concat(R,"-activePoint-").concat(k))),T?j.push(g.renderActiveDot(D,z(z({},L),{},{cx:T.x,cy:T.y}),"".concat(R,"-basePoint-").concat(k))):C&&j.push(null),j}),ue(y,"renderGraphicChild",function(S,O,P){var T=y.filterFormatItem(S,O,P);if(!T)return null;var k=y.getTooltipEventType(),C=y.state,j=C.isTooltipActive,R=C.tooltipAxis,N=C.activeTooltipIndex,D=C.activeLabel,$=y.props.children,L=st($,Ye),B=T.props,W=B.points,I=B.isRange,F=B.baseLine,U=T.item.type.defaultProps!==void 0?z(z({},T.item.type.defaultProps),T.item.props):T.item.props,G=U.activeDot,Z=U.hide,J=U.activeBar,Q=U.activeShape,K=!!(!Z&&j&&L&&(G||J||Q)),ee={};k!=="axis"&&L&&L.props.trigger==="click"?ee={onClick:mo(y.handleItemMouseEnter,S.props.onClick)}:k!=="axis"&&(ee={onMouseLeave:mo(y.handleItemMouseLeave,S.props.onMouseLeave),onMouseEnter:mo(y.handleItemMouseEnter,S.props.onMouseEnter)});var q=A.cloneElement(S,z(z({},T.props),ee));function H(Jt){return typeof R.dataKey=="function"?R.dataKey(Jt.payload):null}if(K)if(N>=0){var X,M;if(R.dataKey&&!R.allowDuplicatedCategory){var ce=typeof R.dataKey=="function"?H:"payload.".concat(R.dataKey.toString());X=Lo(W,ce,D),M=I&&F&&Lo(F,ce,D)}else X=W?.[N],M=I&&F&&F[N];if(Q||J){var V=S.props.activeIndex!==void 0?S.props.activeIndex:N;return[A.cloneElement(S,z(z(z({},T.props),ee),{},{activeIndex:V})),null,null]}if(!se(X))return[q].concat(vi(y.renderActivePoints({item:T,activePoint:X,basePoint:M,childIndex:N,isRange:I})))}else{var ye,Ae=(ye=y.getItemByXY(y.state.activeCoordinate))!==null&&ye!==void 0?ye:{graphicalItem:q},$e=Ae.graphicalItem,br=$e.item,wn=br===void 0?S:br,no=$e.childIndex,Hr=z(z(z({},T.props),ee),{},{activeIndex:no});return[A.cloneElement(wn,Hr),null,null]}return I?[q,null,null]:[q,null]}),ue(y,"renderCustomized",function(S,O,P){return A.cloneElement(S,z(z({key:"recharts-customized-".concat(P)},y.props),y.state))}),ue(y,"renderMap",{CartesianGrid:{handler:Oo,once:!0},ReferenceArea:{handler:y.renderReferenceElement},ReferenceLine:{handler:Oo},ReferenceDot:{handler:y.renderReferenceElement},XAxis:{handler:Oo},YAxis:{handler:Oo},Brush:{handler:y.renderBrush,once:!0},Bar:{handler:y.renderGraphicChild},Line:{handler:y.renderGraphicChild},Area:{handler:y.renderGraphicChild},Radar:{handler:y.renderGraphicChild},RadialBar:{handler:y.renderGraphicChild},Scatter:{handler:y.renderGraphicChild},Pie:{handler:y.renderGraphicChild},Funnel:{handler:y.renderGraphicChild},Tooltip:{handler:y.renderCursor,once:!0},PolarGrid:{handler:y.renderPolarGrid,once:!0},PolarAngleAxis:{handler:y.renderPolarAxis},PolarRadiusAxis:{handler:y.renderPolarAxis},Customized:{handler:y.renderCustomized}}),y.clipPathId="".concat((x=b.id)!==null&&x!==void 0?x:Nr("recharts"),"-clip"),y.throttleTriggeredAfterMouseMove=b_(y.triggeredAfterMouseMove,(w=b.throttleDelay)!==null&&w!==void 0?w:1e3/60),y.state={},y}return aK(g,p),tK(g,[{key:"componentDidMount",value:function(){var x,w;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,w=x.children,y=x.data,S=x.height,O=x.layout,P=st(w,Ye);if(P){var T=P.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var k=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,C=Wh(this.state,y,T,k),j=this.state.tooltipTicks[T].coordinate,R=(this.state.offset.top+S)/2,N=O==="horizontal",D=N?{x:j,y:R}:{y:j,x:R},$=this.state.formattedGraphicalItems.find(function(B){var W=B.item;return W.type.name==="Scatter"});$&&(D=z(z({},D),$.props.points[T].tooltipPosition),C=$.props.points[T].tooltipPayload);var L={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:k,activePayload:C,activeCoordinate:D};this.setState(L),this.renderCursor(P),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,w){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==w.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var y,S;this.accessibilityManager.setDetails({offset:{left:(y=this.props.margin.left)!==null&&y!==void 0?y:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0}})}return null}},{key:"componentDidUpdate",value:function(x){wp([st(x.children,Ye)],[st(this.props.children,Ye)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=st(this.props.children,Ye);if(x&&typeof x.props.shared=="boolean"){var w=x.props.shared?"axis":"item";return s.indexOf(w)>=0?w:a}return a}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var w=this.container,y=w.getBoundingClientRect(),S=_$(y),O={chartX:Math.round(x.pageX-S.left),chartY:Math.round(x.pageY-S.top)},P=y.width/w.offsetWidth||1,T=this.inRange(O.chartX,O.chartY,P);if(!T)return null;var k=this.state,C=k.xAxisMap,j=k.yAxisMap,R=this.getTooltipEventType(),N=aO(this.state,this.props.data,this.props.layout,T);if(R!=="axis"&&C&&j){var D=Ar(C).scale,$=Ar(j).scale,L=D&&D.invert?D.invert(O.chartX):null,B=$&&$.invert?$.invert(O.chartY):null;return z(z({},O),{},{xValue:L,yValue:B},N)}return N?z(z({},O),N):null}},{key:"inRange",value:function(x,w){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,S=this.props.layout,O=x/y,P=w/y;if(S==="horizontal"||S==="vertical"){var T=this.state.offset,k=O>=T.left&&O<=T.left+T.width&&P>=T.top&&P<=T.top+T.height;return k?{x:O,y:P}:null}var C=this.state,j=C.angleAxisMap,R=C.radiusAxisMap;if(j&&R){var N=Ar(j);return G0({x:O,y:P},N)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,w=this.getTooltipEventType(),y=st(x,Ye),S={};y&&w==="axis"&&(y.props.trigger==="click"?S={onClick:this.handleClick}:S={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var O=Bo(this.props,this.handleOuterEvent);return z(z({},O),S)}},{key:"addListener",value:function(){np.on(ip,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){np.removeListener(ip,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,w,y){for(var S=this.state.formattedGraphicalItems,O=0,P=S.length;O<P;O++){var T=S[O];if(T.item===x||T.props.key===x.key||w===or(T.item.type)&&y===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,w=this.state.offset,y=w.left,S=w.top,O=w.height,P=w.width;return A.createElement("defs",null,A.createElement("clipPath",{id:x},A.createElement("rect",{x:y,y:S,height:O,width:P})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(w,y){var S=rO(y,2),O=S[0],P=S[1];return z(z({},w),{},ue({},O,P.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(w,y){var S=rO(y,2),O=S[0],P=S[1];return z(z({},w),{},ue({},O,P.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var w;return(w=this.state.xAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getYScaleByAxisId",value:function(x){var w;return(w=this.state.yAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getItemByXY",value:function(x){var w=this.state,y=w.formattedGraphicalItems,S=w.activeItem;if(y&&y.length)for(var O=0,P=y.length;O<P;O++){var T=y[O],k=T.props,C=T.item,j=C.type.defaultProps!==void 0?z(z({},C.type.defaultProps),C.props):C.props,R=or(C.type);if(R==="Bar"){var N=(k.data||[]).find(function(B){return YF(x,B)});if(N)return{graphicalItem:T,payload:N}}else if(R==="RadialBar"){var D=(k.data||[]).find(function(B){return G0(x,B)});if(D)return{graphicalItem:T,payload:D}}else if(_c(T,S)||Pc(T,S)||Ma(T,S)){var $=TW({graphicalItem:T,activeTooltipItem:S,itemData:j.data}),L=j.activeIndex===void 0?$:j.activeIndex;return{graphicalItem:z(z({},T),{},{childIndex:L}),payload:Ma(T,S)?j.data[$]:T.props.data[$]}}}return null}},{key:"render",value:function(){var x=this;if(!og(this))return null;var w=this.props,y=w.children,S=w.className,O=w.width,P=w.height,T=w.style,k=w.compact,C=w.title,j=w.desc,R=nO(w,GV),N=re(R,!1);if(k)return A.createElement(RS,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement(Op,Rn({},N,{width:O,height:P,title:C,desc:j}),this.renderClipPath(),cg(y,this.renderMap)));if(this.props.accessibilityLayer){var D,$;N.tabIndex=(D=this.props.tabIndex)!==null&&D!==void 0?D:0,N.role=($=this.props.role)!==null&&$!==void 0?$:"application",N.onKeyDown=function(B){x.accessibilityManager.keyboardEvent(B)},N.onFocus=function(){x.accessibilityManager.focus()}}var L=this.parseEventsOfWrapper();return A.createElement(RS,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement("div",Rn({className:le("recharts-wrapper",S),style:z({position:"relative",cursor:"default",width:O,height:P},T)},L,{ref:function(W){x.container=W}}),A.createElement(Op,Rn({},N,{width:O,height:P,title:C,desc:j,style:fK}),this.renderClipPath(),cg(y,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(A.Component);ue(m,"displayName",r),ue(m,"defaultProps",z({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),ue(m,"getDerivedStateFromProps",function(p,g){var b=p.dataKey,x=p.data,w=p.children,y=p.width,S=p.height,O=p.layout,P=p.stackOffset,T=p.margin,k=g.dataStartIndex,C=g.dataEndIndex;if(g.updateId===void 0){var j=oO(p);return z(z(z({},j),{},{updateId:0},h(z(z({props:p},j),{},{updateId:0}),g)),{},{prevDataKey:b,prevData:x,prevWidth:y,prevHeight:S,prevLayout:O,prevStackOffset:P,prevMargin:T,prevChildren:w})}if(b!==g.prevDataKey||x!==g.prevData||y!==g.prevWidth||S!==g.prevHeight||O!==g.prevLayout||P!==g.prevStackOffset||!Mn(T,g.prevMargin)){var R=oO(p),N={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},D=z(z({},aO(g,x,O)),{},{updateId:g.updateId+1}),$=z(z(z({},R),N),D);return z(z(z({},$),h(z({props:p},$),g)),{},{prevDataKey:b,prevData:x,prevWidth:y,prevHeight:S,prevLayout:O,prevStackOffset:P,prevMargin:T,prevChildren:w})}if(!wp(w,g.prevChildren)){var L,B,W,I,F=st(w,ti),U=F&&(L=(B=F.props)===null||B===void 0?void 0:B.startIndex)!==null&&L!==void 0?L:k,G=F&&(W=(I=F.props)===null||I===void 0?void 0:I.endIndex)!==null&&W!==void 0?W:C,Z=U!==k||G!==C,J=!se(x),Q=J&&!Z?g.updateId:g.updateId+1;return z(z({updateId:Q},h(z(z({props:p},g),{},{updateId:Q,dataStartIndex:U,dataEndIndex:G}),g)),{},{prevChildren:w,dataStartIndex:U,dataEndIndex:G})}return null}),ue(m,"renderActiveDot",function(p,g,b){var x;return A.isValidElement(p)?x=A.cloneElement(p,g):oe(p)?x=p(g):x=A.createElement(Pi,g),A.createElement(fe,{className:"recharts-active-dot",key:b},x)});var v=A.forwardRef(function(g,b){return A.createElement(m,Rn({},g,{ref:b}))});return v.displayName=m.displayName,v},wK=ji({chartName:"LineChart",GraphicalChild:Za,axisComponents:[{axisType:"xAxis",AxisComp:Ct},{axisType:"yAxis",AxisComp:jt}],formatAxisMap:Tc}),SK=ji({chartName:"BarChart",GraphicalChild:xn,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Ct},{axisType:"yAxis",AxisComp:jt}],formatAxisMap:Tc}),rE=ji({chartName:"PieChart",GraphicalChild:Xt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Ti},{axisType:"radiusAxis",AxisComp:Ei}],formatAxisMap:kP,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),OK=ji({chartName:"RadarChart",GraphicalChild:Ya,axisComponents:[{axisType:"angleAxis",AxisComp:Ti},{axisType:"radiusAxis",AxisComp:Ei}],formatAxisMap:kP,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),AK=ji({chartName:"ScatterChart",GraphicalChild:Qa,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:Ct},{axisType:"yAxis",AxisComp:jt},{axisType:"zAxis",AxisComp:Ja}],formatAxisMap:Tc}),_K=ji({chartName:"AreaChart",GraphicalChild:Fr,axisComponents:[{axisType:"xAxis",AxisComp:Ct},{axisType:"yAxis",AxisComp:jt}],formatAxisMap:Tc});const PK=({active:e,payload:t})=>{if(!e||!t||t.length===0)return null;const r=t[0]?.value;return _.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm",children:typeof r=="number"?r.toLocaleString():r})},cO=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],EK=({title:e,data:t,layout:r="vertical",showGrid:n=!0,showLegend:i=!1,className:a})=>{const o=r==="horizontal",s=o?Math.max(80,Math.min(200,Math.max(...t.map(c=>c.label.length))*7+16)):void 0;return _.jsxs("div",{className:ae("flex flex-col gap-2",a),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[250px] w-full",children:_.jsx(mn,{width:"100%",height:"100%",children:_.jsxs(SK,{data:t,layout:o?"vertical":"horizontal",margin:{top:10,right:10,left:10,bottom:10},children:[n&&_.jsx(Xa,{strokeDasharray:"3 3",className:"stroke-muted/30"}),o?_.jsxs(_.Fragment,{children:[_.jsx(Ct,{type:"number",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(jt,{dataKey:"label",type:"category",width:s,tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}})]}):_.jsxs(_.Fragment,{children:[_.jsx(Ct,{dataKey:"label",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(jt,{tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}})]}),_.jsx(Ye,{content:_.jsx(PK,{})}),i&&_.jsx(bt,{wrapperStyle:{color:"var(--foreground)"},formatter:c=>_.jsx("span",{style:{color:"var(--foreground)"},children:c})}),_.jsx(xn,{dataKey:"value",radius:[4,4,0,0],isAnimationActive:!1,children:t.map((c,u)=>_.jsx(Dr,{fill:c.color||cO[u%cO.length]},`cell-${u}`))})]})})})]})},TK=({active:e,payload:t})=>!e||!t||t.length===0?null:_.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1.5 text-xs text-foreground shadow-sm",children:t.map((r,n)=>_.jsxs("div",{className:"flex items-center gap-2",children:[_.jsx("span",{className:"h-2 w-2 rounded-full",style:{backgroundColor:r.color}}),_.jsxs("span",{children:[r.name,":"]}),_.jsx("span",{className:"font-medium",children:typeof r.value=="number"?r.value.toLocaleString():r.value})]},n))}),uO=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],CK=({title:e,data:t,series:r,showGrid:n=!0,showLegend:i=!0,showDots:a=!0,curved:o=!0,className:s})=>{const c=A.useMemo(()=>r&&r.length>0?r:t.length===0?[]:Object.keys(t[0]).filter(l=>l!=="label"),[t,r]);return _.jsxs("div",{className:ae("flex flex-col gap-2",s),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[250px] w-full",children:_.jsx(mn,{width:"100%",height:"100%",children:_.jsxs(wK,{data:t,margin:{top:10,right:10,left:10,bottom:10},children:[n&&_.jsx(Xa,{strokeDasharray:"3 3",className:"stroke-muted/30"}),_.jsx(Ct,{dataKey:"label",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(jt,{tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(Ye,{content:_.jsx(TK,{})}),i&&c.length>1&&_.jsx(bt,{wrapperStyle:{color:"var(--foreground)"},formatter:u=>_.jsx("span",{style:{color:"var(--foreground)"},children:u})}),c.map((u,l)=>_.jsx(Za,{type:o?"monotone":"linear",dataKey:u,stroke:uO[l%uO.length],strokeWidth:2,dot:a,activeDot:{r:6},isAnimationActive:!1},u))]})})})]})},jK=({active:e,payload:t})=>!e||!t||t.length===0?null:_.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1.5 text-xs text-foreground shadow-sm",children:t.map((r,n)=>_.jsxs("div",{className:"flex items-center gap-2",children:[_.jsx("span",{className:"h-2 w-2 rounded-full",style:{backgroundColor:r.color}}),_.jsxs("span",{children:[r.name,":"]}),_.jsx("span",{className:"font-medium",children:typeof r.value=="number"?r.value.toLocaleString():r.value})]},n))}),Ao=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],IK=({title:e,data:t,series:r,stacked:n=!1,showGrid:i=!0,showLegend:a=!0,className:o})=>{const s=A.useMemo(()=>r&&r.length>0?r:t.length===0?[]:Object.keys(t[0]).filter(u=>u!=="label"),[t,r]);return _.jsxs("div",{className:ae("flex flex-col gap-2",o),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[250px] w-full",children:_.jsx(mn,{width:"100%",height:"100%",children:_.jsxs(_K,{data:t,margin:{top:10,right:10,left:10,bottom:10},children:[i&&_.jsx(Xa,{strokeDasharray:"3 3",className:"stroke-muted/30"}),_.jsx(Ct,{dataKey:"label",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(jt,{tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(Ye,{content:_.jsx(jK,{})}),a&&s.length>1&&_.jsx(bt,{wrapperStyle:{color:"var(--foreground)"},formatter:c=>_.jsx("span",{style:{color:"var(--foreground)"},children:c})}),s.map((c,u)=>_.jsx(Fr,{type:"monotone",dataKey:c,stackId:n?"stack":void 0,stroke:Ao[u%Ao.length],fill:Ao[u%Ao.length],fillOpacity:.3,isAnimationActive:!1},c))]})})})]})},kK=({active:e,payload:t})=>{if(!e||!t||t.length===0)return null;const r=t[0];return _.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm",children:_.jsx("span",{className:"font-medium",children:typeof r?.value=="number"?r.value.toLocaleString():r?.value})})},lO=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],RK=({title:e,data:t,showLabels:r=!0,showLegend:n=!0,className:i})=>{const a=t.map(o=>({name:o.label,value:o.value,color:o.color}));return _.jsxs("div",{className:ae("flex flex-col gap-2",i),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[320px] w-full",children:_.jsx(mn,{width:"100%",height:"100%",children:_.jsxs(rE,{margin:{top:20,right:20,bottom:20,left:20},children:[_.jsx(Xt,{data:a,cx:"50%",cy:"45%",innerRadius:0,outerRadius:80,paddingAngle:2,dataKey:"value",label:r?({name:o,percent:s,cx:c,cy:u,midAngle:l,outerRadius:f})=>{const d=Math.PI/180,h=(f??80)+25,m=(c??0)+h*Math.cos(-((l??0)*d)),v=(u??0)+h*Math.sin(-((l??0)*d));return _.jsx("text",{x:m,y:v,fill:"var(--foreground)",textAnchor:m>(c??0)?"start":"end",dominantBaseline:"central",fontSize:12,children:`${o??""} (${((s??0)*100).toFixed(0)}%)`})}:void 0,labelLine:r,isAnimationActive:!1,children:a.map((o,s)=>_.jsx(Dr,{fill:o.color||lO[s%lO.length]},`cell-${s}`))}),_.jsx(Ye,{content:_.jsx(kK,{})}),n&&_.jsx(bt,{verticalAlign:"bottom",wrapperStyle:{color:"var(--foreground)",paddingTop:20},formatter:o=>_.jsx("span",{style:{color:"var(--foreground)"},children:o})})]})})})]})},MK=({active:e,payload:t})=>{if(!e||!t||t.length===0)return null;const r=t[0];return _.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm",children:_.jsx("span",{className:"font-medium",children:typeof r?.value=="number"?r.value.toLocaleString():r?.value})})},fO=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],$K=({title:e,data:t,showLabels:r=!1,showLegend:n=!0,innerLabel:i,innerValue:a,className:o})=>{const s=t.map(c=>({name:c.label,value:c.value,color:c.color}));return _.jsxs("div",{className:ae("flex flex-col gap-2",o),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsxs("div",{className:"relative h-[320px] w-full",children:[_.jsx(mn,{width:"100%",height:"100%",children:_.jsxs(rE,{margin:{top:20,right:20,bottom:20,left:20},children:[_.jsx(Xt,{data:s,cx:"50%",cy:"45%",innerRadius:50,outerRadius:80,paddingAngle:2,dataKey:"value",label:r?({name:c,percent:u,cx:l,cy:f,midAngle:d,outerRadius:h})=>{const m=Math.PI/180,v=(h??80)+25,p=(l??0)+v*Math.cos(-((d??0)*m)),g=(f??0)+v*Math.sin(-((d??0)*m));return _.jsx("text",{x:p,y:g,fill:"var(--foreground)",textAnchor:p>(l??0)?"start":"end",dominantBaseline:"central",fontSize:12,children:`${c??""} (${((u??0)*100).toFixed(0)}%)`})}:void 0,labelLine:r,isAnimationActive:!1,children:s.map((c,u)=>_.jsx(Dr,{fill:c.color||fO[u%fO.length]},`cell-${u}`))}),_.jsx(Ye,{content:_.jsx(MK,{})}),n&&_.jsx(bt,{verticalAlign:"bottom",wrapperStyle:{color:"var(--foreground)",paddingTop:20},formatter:c=>_.jsx("span",{style:{color:"var(--foreground)"},children:c})})]})}),(i!==void 0||a!==void 0)&&_.jsxs("div",{className:"pointer-events-none absolute inset-x-0 top-[45%] flex -translate-y-1/2 flex-col items-center",children:[a!==void 0&&_.jsx("span",{className:"text-2xl font-bold text-foreground",children:a}),i&&_.jsx("span",{className:"text-xs text-muted-foreground",children:i})]})]})]})},NK=({active:e,payload:t})=>{if(!e||!t||t.length===0)return null;const r=t[0]?.payload;return _.jsxs("div",{className:"rounded-md border border-border bg-background px-2 py-1.5 text-xs text-foreground shadow-sm",children:[r?.label&&_.jsx("div",{className:"font-medium",children:r.label}),_.jsxs("div",{children:["x: ",r?.x?.toLocaleString()]}),_.jsxs("div",{children:["y: ",r?.y?.toLocaleString()]})]})},dO=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],DK=({title:e,data:t,xLabel:r,yLabel:n,showGrid:i=!0,className:a})=>{const o=t.some(s=>s.size!==void 0);return _.jsxs("div",{className:ae("flex flex-col gap-2",a),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[250px] w-full",children:_.jsx(mn,{width:"100%",height:"100%",children:_.jsxs(AK,{margin:{top:10,right:10,left:10,bottom:10},children:[i&&_.jsx(Xa,{strokeDasharray:"3 3",className:"stroke-muted/30"}),_.jsx(Ct,{type:"number",dataKey:"x",name:r||"x",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"},label:r?{value:r,position:"bottom",offset:-5,fill:"var(--foreground)"}:void 0}),_.jsx(jt,{type:"number",dataKey:"y",name:n||"y",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"},label:n?{value:n,angle:-90,position:"left",fill:"var(--foreground)"}:void 0}),o&&_.jsx(Ja,{type:"number",dataKey:"size",range:[50,400]}),_.jsx(Ye,{content:_.jsx(NK,{})}),_.jsx(Qa,{data:t,fill:dO[0],isAnimationActive:!1,children:t.map((s,c)=>_.jsx(Dr,{fill:s.color||dO[0]},`cell-${c}`))})]})})})]})},LK=({active:e,payload:t})=>{if(!e||!t||t.length===0)return null;const r=t[0];return _.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm",children:_.jsx("span",{className:"font-medium",children:typeof r?.value=="number"?r.value.toLocaleString():r?.value})})},pO=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],BK=({title:e,data:t,showLegend:r=!1,className:n})=>{const i=t.map(a=>({subject:a.label,value:a.value}));return _.jsxs("div",{className:ae("flex flex-col gap-2",n),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[250px] w-full",children:_.jsx(mn,{width:"100%",height:"100%",children:_.jsxs(OK,{data:i,cx:"50%",cy:"50%",outerRadius:"80%",children:[_.jsx(GP,{stroke:"var(--border)"}),_.jsx(Ti,{dataKey:"subject",tick:{fill:"var(--foreground)",fontSize:12}}),_.jsx(Ei,{tick:{fill:"var(--foreground)",fontSize:10},axisLine:{stroke:"var(--border)"}}),_.jsx(Ye,{content:_.jsx(LK,{})}),r&&_.jsx(bt,{wrapperStyle:{color:"var(--foreground)"},formatter:a=>_.jsx("span",{style:{color:"var(--foreground)"},children:a})}),_.jsx(Ya,{name:"Value",dataKey:"value",stroke:pO[0],fill:pO[0],fillOpacity:.3,isAnimationActive:!1})]})})})]})},hO=["Rendering chart...","Visualizing data...","Building chart...","Processing data..."];function qK(){return hO[Math.floor(Math.random()*hO.length)]}const FK={BarChart:EK,LineChart:CK,AreaChart:IK,PieChart:RK,DonutChart:$K,ScatterChart:DK,RadarChart:BK};function zK(e){const t=FK[e.type];return t?_.jsx(t,{...e.props??{}}):_.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[_.jsx(cv,{className:"size-4"}),_.jsxs("span",{children:["Unknown chart type: ",e.type]})]})}const WK=({code:e})=>{const t=ov(),r=A.useMemo(()=>{const i=e.trim();if(!i)return null;try{const a=JSON.parse(i);return vA(a)?a:null}catch{return null}},[e]),n=A.useMemo(()=>qK(),[]);return r?_.jsx(Do,{children:_.jsx("div",{className:ae("w-full bg-card",t("p-lg")),children:zK(r)})}):_.jsx($j,{text:n})},nE={id:"chart",language:"chart",prompt:`WHEN TO USE CHARTS:
|
|
67
67
|
Create charts to visualize numerical data when it helps users understand patterns, trends, or comparisons. Use the 'chart' code block format.
|
|
68
68
|
|
|
69
69
|
CRITICAL JSON REQUIREMENTS:
|
|
@@ -212,8 +212,8 @@ CHART SELECTION GUIDE:
|
|
|
212
212
|
CONTENT GUIDELINES:
|
|
213
213
|
- Outside the code block, describe trends and insights found in the data
|
|
214
214
|
- Do not describe visual properties or technical implementation details
|
|
215
|
-
- Focus on what the data means, not how it's displayed`,Component:FK,Header:void 0};function vO(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function dm(...e){return t=>{let r=!1;const n=e.map(i=>{const a=vO(i,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let i=0;i<n.length;i++){const a=n[i];typeof a=="function"?a():vO(e[i],null)}}}}function ke(...e){return E.useCallback(dm(...e),e)}function mi(e){const t=zK(e),r=E.forwardRef((n,i)=>{const{children:a,...o}=n,s=E.Children.toArray(a),c=s.find(UK);if(c){const u=c.props.children,l=s.map(f=>f===c?E.Children.count(u)>1?E.Children.only(null):E.isValidElement(u)?u.props.children:null:f);return _.jsx(t,{...o,ref:i,children:E.isValidElement(u)?E.cloneElement(u,void 0,l):null})}return _.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}var iE=mi("Slot");function zK(e){const t=E.forwardRef((r,n)=>{const{children:i,...a}=r;if(E.isValidElement(i)){const o=VK(i),s=HK(a,i.props);return i.type!==E.Fragment&&(s.ref=n?dm(n,o):o),E.cloneElement(i,s)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var aE=Symbol("radix.slottable");function WK(e){const t=({children:r})=>_.jsx(_.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=aE,t}function UK(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===aE}function HK(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...s)=>{const c=a(...s);return i(...s),c}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function VK(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var KK=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],de=KK.reduce((e,t)=>{const r=mi(`Primitive.${t}`),n=E.forwardRef((i,a)=>{const{asChild:o,...s}=i,c=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),_.jsx(c,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function GK(e,t){e&&Js.flushSync(()=>e.dispatchEvent(t))}var oE=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),YK="VisuallyHidden",sE=E.forwardRef((e,t)=>_.jsx(de.span,{...e,ref:t,style:{...oE,...e.style}}));sE.displayName=YK;var XK=sE;function ZK(e,t){const r=E.createContext(t),n=a=>{const{children:o,...s}=a,c=E.useMemo(()=>s,Object.values(s));return _.jsx(r.Provider,{value:c,children:o})};n.displayName=e+"Provider";function i(a){const o=E.useContext(r);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,i]}function Mt(e,t=[]){let r=[];function n(a,o){const s=E.createContext(o),c=r.length;r=[...r,o];const u=f=>{const{scope:d,children:h,...m}=f,v=d?.[e]?.[c]||s,p=E.useMemo(()=>m,Object.values(m));return _.jsx(v.Provider,{value:p,children:h})};u.displayName=a+"Provider";function l(f,d){const h=d?.[e]?.[c]||s,m=E.useContext(h);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[u,l]}const i=()=>{const a=r.map(o=>E.createContext(o));return function(s){const c=s?.[e]||a;return E.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return i.scopeName=e,[n,JK(i,...t)]}function JK(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=n.reduce((s,{useScope:c,scopeName:u})=>{const f=c(a)[`__scope${u}`];return{...s,...f}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function pm(e){const t=e+"CollectionProvider",[r,n]=Mt(t),[i,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=v=>{const{scope:p,children:g}=v,b=O.useRef(null),x=O.useRef(new Map).current;return _.jsx(i,{scope:p,itemMap:x,collectionRef:b,children:g})};o.displayName=t;const s=e+"CollectionSlot",c=mi(s),u=O.forwardRef((v,p)=>{const{scope:g,children:b}=v,x=a(s,g),w=ke(p,x.collectionRef);return _.jsx(c,{ref:w,children:b})});u.displayName=s;const l=e+"CollectionItemSlot",f="data-radix-collection-item",d=mi(l),h=O.forwardRef((v,p)=>{const{scope:g,children:b,...x}=v,w=O.useRef(null),y=ke(p,w),S=a(l,g);return O.useEffect(()=>(S.itemMap.set(w,{ref:w,...x}),()=>void S.itemMap.delete(w))),_.jsx(d,{[f]:"",ref:y,children:b})});h.displayName=l;function m(v){const p=a(e+"CollectionConsumer",v);return O.useCallback(()=>{const b=p.collectionRef.current;if(!b)return[];const x=Array.from(b.querySelectorAll(`[${f}]`));return Array.from(p.itemMap.values()).sort((S,A)=>x.indexOf(S.ref.current)-x.indexOf(A.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:o,Slot:u,ItemSlot:h},m,n]}function he(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e?.(i),r===!1||!i.defaultPrevented)return t?.(i)}}var Ne=globalThis?.document?E.useLayoutEffect:()=>{},QK=E[" useInsertionEffect ".trim().toString()]||Ne;function dr({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[i,a,o]=e5({defaultProp:t,onChange:r}),s=e!==void 0,c=s?e:i;{const l=E.useRef(e!==void 0);E.useEffect(()=>{const f=l.current;f!==s&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),l.current=s},[s,n])}const u=E.useCallback(l=>{if(s){const f=t5(l)?l(e):l;f!==e&&o.current?.(f)}else a(l)},[s,e,a,o]);return[c,u]}function e5({defaultProp:e,onChange:t}){const[r,n]=E.useState(e),i=E.useRef(r),a=E.useRef(t);return QK(()=>{a.current=t},[t]),E.useEffect(()=>{i.current!==r&&(a.current?.(r),i.current=r)},[r,i]),[r,n,a]}function t5(e){return typeof e=="function"}function r5(e,t){return E.useReducer((r,n)=>t[r][n]??r,e)}var eo=e=>{const{present:t,children:r}=e,n=n5(t),i=typeof r=="function"?r({present:n.isPresent}):E.Children.only(r),a=ke(n.ref,i5(i));return typeof r=="function"||n.isPresent?E.cloneElement(i,{ref:a}):null};eo.displayName="Presence";function n5(e){const[t,r]=E.useState(),n=E.useRef(null),i=E.useRef(e),a=E.useRef("none"),o=e?"mounted":"unmounted",[s,c]=r5(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const u=_o(n.current);a.current=s==="mounted"?u:"none"},[s]),Ne(()=>{const u=n.current,l=i.current;if(l!==e){const d=a.current,h=_o(u);e?c("MOUNT"):h==="none"||u?.display==="none"?c("UNMOUNT"):c(l&&d!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),Ne(()=>{if(t){let u;const l=t.ownerDocument.defaultView??window,f=h=>{const v=_o(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&v&&(c("ANIMATION_END"),!i.current)){const p=t.style.animationFillMode;t.style.animationFillMode="forwards",u=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=p)})}},d=h=>{h.target===t&&(a.current=_o(n.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{l.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:E.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function _o(e){return e?.animationName||"none"}function i5(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var a5=E[" useId ".trim().toString()]||(()=>{}),o5=0;function zr(e){const[t,r]=E.useState(a5());return Ne(()=>{r(n=>n??String(o5++))},[e]),t?`radix-${t}`:""}var Mc="Collapsible",[s5,cE]=Mt(Mc),[c5,hm]=s5(Mc),uE=E.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,u]=dr({prop:n,defaultProp:i??!1,onChange:o,caller:Mc});return _.jsx(c5,{scope:r,disabled:a,contentId:zr(),open:c,onOpenToggle:E.useCallback(()=>u(l=>!l),[u]),children:_.jsx(de.div,{"data-state":gm(c),"data-disabled":a?"":void 0,...s,ref:t})})});uE.displayName=Mc;var lE="CollapsibleTrigger",vm=E.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,i=hm(lE,r);return _.jsx(de.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":gm(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...n,ref:t,onClick:he(e.onClick,i.onOpenToggle)})});vm.displayName=lE;var mm="CollapsibleContent",ym=E.forwardRef((e,t)=>{const{forceMount:r,...n}=e,i=hm(mm,e.__scopeCollapsible);return _.jsx(eo,{present:r||i.open,children:({present:a})=>_.jsx(u5,{...n,ref:t,present:a})})});ym.displayName=mm;var u5=E.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:i,...a}=e,o=hm(mm,r),[s,c]=E.useState(n),u=E.useRef(null),l=ke(t,u),f=E.useRef(0),d=f.current,h=E.useRef(0),m=h.current,v=o.open||s,p=E.useRef(v),g=E.useRef(void 0);return E.useEffect(()=>{const b=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(b)},[]),Ne(()=>{const b=u.current;if(b){g.current=g.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const x=b.getBoundingClientRect();f.current=x.height,h.current=x.width,p.current||(b.style.transitionDuration=g.current.transitionDuration,b.style.animationName=g.current.animationName),c(n)}},[o.open,n]),_.jsx(de.div,{"data-state":gm(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!v,...a,ref:l,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:v&&i})});function gm(e){return e?"open":"closed"}var fE=uE,l5=vm,f5=ym,d5=E.createContext(void 0);function $c(e){const t=E.useContext(d5);return e||t||"ltr"}var $t="Accordion",p5=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[bm,h5,v5]=pm($t),[Nc]=Mt($t,[v5,cE]),xm=cE(),dE=O.forwardRef((e,t)=>{const{type:r,...n}=e,i=n,a=n;return _.jsx(bm.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?_.jsx(b5,{...a,ref:t}):_.jsx(g5,{...i,ref:t})})});dE.displayName=$t;var[pE,m5]=Nc($t),[hE,y5]=Nc($t,{collapsible:!1}),g5=O.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:i=()=>{},collapsible:a=!1,...o}=e,[s,c]=dr({prop:r,defaultProp:n??"",onChange:i,caller:$t});return _.jsx(pE,{scope:e.__scopeAccordion,value:O.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:O.useCallback(()=>a&&c(""),[a,c]),children:_.jsx(hE,{scope:e.__scopeAccordion,collapsible:a,children:_.jsx(vE,{...o,ref:t})})})}),b5=O.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:i=()=>{},...a}=e,[o,s]=dr({prop:r,defaultProp:n??[],onChange:i,caller:$t}),c=O.useCallback(l=>s((f=[])=>[...f,l]),[s]),u=O.useCallback(l=>s((f=[])=>f.filter(d=>d!==l)),[s]);return _.jsx(pE,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:u,children:_.jsx(hE,{scope:e.__scopeAccordion,collapsible:!0,children:_.jsx(vE,{...a,ref:t})})})}),[x5,Dc]=Nc($t),vE=O.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:i,orientation:a="vertical",...o}=e,s=O.useRef(null),c=ke(s,t),u=h5(r),f=$c(i)==="ltr",d=he(e.onKeyDown,h=>{if(!p5.includes(h.key))return;const m=h.target,v=u().filter(P=>!P.ref.current?.disabled),p=v.findIndex(P=>P.ref.current===m),g=v.length;if(p===-1)return;h.preventDefault();let b=p;const x=0,w=g-1,y=()=>{b=p+1,b>w&&(b=x)},S=()=>{b=p-1,b<x&&(b=w)};switch(h.key){case"Home":b=x;break;case"End":b=w;break;case"ArrowRight":a==="horizontal"&&(f?y():S());break;case"ArrowDown":a==="vertical"&&y();break;case"ArrowLeft":a==="horizontal"&&(f?S():y());break;case"ArrowUp":a==="vertical"&&S();break}const A=b%g;v[A].ref.current?.focus()});return _.jsx(x5,{scope:r,disabled:n,direction:i,orientation:a,children:_.jsx(bm.Slot,{scope:r,children:_.jsx(de.div,{...o,"data-orientation":a,ref:c,onKeyDown:n?void 0:d})})})}),Us="AccordionItem",[w5,wm]=Nc(Us),mE=O.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...i}=e,a=Dc(Us,r),o=m5(Us,r),s=xm(r),c=zr(),u=n&&o.value.includes(n)||!1,l=a.disabled||e.disabled;return _.jsx(w5,{scope:r,open:u,disabled:l,triggerId:c,children:_.jsx(fE,{"data-orientation":a.orientation,"data-state":SE(u),...s,...i,ref:t,disabled:l,open:u,onOpenChange:f=>{f?o.onItemOpen(n):o.onItemClose(n)}})})});mE.displayName=Us;var yE="AccordionHeader",gE=O.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,i=Dc($t,r),a=wm(yE,r);return _.jsx(de.h3,{"data-orientation":i.orientation,"data-state":SE(a.open),"data-disabled":a.disabled?"":void 0,...n,ref:t})});gE.displayName=yE;var Uh="AccordionTrigger",bE=O.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,i=Dc($t,r),a=wm(Uh,r),o=y5(Uh,r),s=xm(r);return _.jsx(bm.ItemSlot,{scope:r,children:_.jsx(l5,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...n,ref:t})})});bE.displayName=Uh;var xE="AccordionContent",wE=O.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,i=Dc($t,r),a=wm(xE,r),o=xm(r);return _.jsx(f5,{role:"region","aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});wE.displayName=xE;function SE(e){return e?"open":"closed"}var S5=dE,O5=mE,A5=gE,_5=bE,P5=wE;function Ut(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...r)=>t.current?.(...r),[])}function E5(e,t=globalThis?.document){const r=Ut(e);E.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var T5="DismissableLayer",Hh="dismissableLayer.update",C5="dismissableLayer.pointerDownOutside",j5="dismissableLayer.focusOutside",mO,OE=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Sm=E.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...c}=e,u=E.useContext(OE),[l,f]=E.useState(null),d=l?.ownerDocument??globalThis?.document,[,h]=E.useState({}),m=ke(t,A=>f(A)),v=Array.from(u.layers),[p]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=v.indexOf(p),b=l?v.indexOf(l):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,w=b>=g,y=k5(A=>{const P=A.target,T=[...u.branches].some(R=>R.contains(P));!w||T||(i?.(A),o?.(A),A.defaultPrevented||s?.())},d),S=M5(A=>{const P=A.target;[...u.branches].some(R=>R.contains(P))||(a?.(A),o?.(A),A.defaultPrevented||s?.())},d);return E5(A=>{b===u.layers.size-1&&(n?.(A),!A.defaultPrevented&&s&&(A.preventDefault(),s()))},d),E.useEffect(()=>{if(l)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(mO=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(l)),u.layers.add(l),yO(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=mO)}},[l,d,r,u]),E.useEffect(()=>()=>{l&&(u.layers.delete(l),u.layersWithOutsidePointerEventsDisabled.delete(l),yO())},[l,u]),E.useEffect(()=>{const A=()=>h({});return document.addEventListener(Hh,A),()=>document.removeEventListener(Hh,A)},[]),_.jsx(de.div,{...c,ref:m,style:{pointerEvents:x?w?"auto":"none":void 0,...e.style},onFocusCapture:he(e.onFocusCapture,S.onFocusCapture),onBlurCapture:he(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:he(e.onPointerDownCapture,y.onPointerDownCapture)})});Sm.displayName=T5;var I5="DismissableLayerBranch",R5=E.forwardRef((e,t)=>{const r=E.useContext(OE),n=E.useRef(null),i=ke(t,n);return E.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),_.jsx(de.div,{...e,ref:i})});R5.displayName=I5;function k5(e,t=globalThis?.document){const r=Ut(e),n=E.useRef(!1),i=E.useRef(()=>{});return E.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let c=function(){AE(C5,r,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=c,t.addEventListener("click",i.current,{once:!0})):c()}else t.removeEventListener("click",i.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function M5(e,t=globalThis?.document){const r=Ut(e),n=E.useRef(!1);return E.useEffect(()=>{const i=a=>{a.target&&!n.current&&AE(j5,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function yO(){const e=new CustomEvent(Hh);document.dispatchEvent(e)}function AE(e,t,r,{discrete:n}){const i=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?GK(i,a):i.dispatchEvent(a)}var op="focusScope.autoFocusOnMount",sp="focusScope.autoFocusOnUnmount",gO={bubbles:!1,cancelable:!0},$5="FocusScope",Om=E.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=E.useState(null),u=Ut(i),l=Ut(a),f=E.useRef(null),d=ke(t,v=>c(v)),h=E.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.useEffect(()=>{if(n){let v=function(x){if(h.paused||!s)return;const w=x.target;s.contains(w)?f.current=w:Sr(f.current,{select:!0})},p=function(x){if(h.paused||!s)return;const w=x.relatedTarget;w!==null&&(s.contains(w)||Sr(f.current,{select:!0}))},g=function(x){if(document.activeElement===document.body)for(const y of x)y.removedNodes.length>0&&Sr(s)};document.addEventListener("focusin",v),document.addEventListener("focusout",p);const b=new MutationObserver(g);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",p),b.disconnect()}}},[n,s,h.paused]),E.useEffect(()=>{if(s){xO.add(h);const v=document.activeElement;if(!s.contains(v)){const g=new CustomEvent(op,gO);s.addEventListener(op,u),s.dispatchEvent(g),g.defaultPrevented||(N5(F5(_E(s)),{select:!0}),document.activeElement===v&&Sr(s))}return()=>{s.removeEventListener(op,u),setTimeout(()=>{const g=new CustomEvent(sp,gO);s.addEventListener(sp,l),s.dispatchEvent(g),g.defaultPrevented||Sr(v??document.body,{select:!0}),s.removeEventListener(sp,l),xO.remove(h)},0)}}},[s,u,l,h]);const m=E.useCallback(v=>{if(!r&&!n||h.paused)return;const p=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(p&&g){const b=v.currentTarget,[x,w]=D5(b);x&&w?!v.shiftKey&&g===w?(v.preventDefault(),r&&Sr(x,{select:!0})):v.shiftKey&&g===x&&(v.preventDefault(),r&&Sr(w,{select:!0})):g===b&&v.preventDefault()}},[r,n,h.paused]);return _.jsx(de.div,{tabIndex:-1,...o,ref:d,onKeyDown:m})});Om.displayName=$5;function N5(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Sr(n,{select:t}),document.activeElement!==r)return}function D5(e){const t=_E(e),r=bO(t,e),n=bO(t.reverse(),e);return[r,n]}function _E(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function bO(e,t){for(const r of e)if(!L5(r,{upTo:t}))return r}function L5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function B5(e){return e instanceof HTMLInputElement&&"select"in e}function Sr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&B5(e)&&t&&e.select()}}var xO=q5();function q5(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=wO(e,t),e.unshift(t)},remove(t){e=wO(e,t),e[0]?.resume()}}}function wO(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function F5(e){return e.filter(t=>t.tagName!=="A")}var z5="Portal",Am=E.forwardRef((e,t)=>{const{container:r,...n}=e,[i,a]=E.useState(!1);Ne(()=>a(!0),[]);const o=r||i&&globalThis?.document?.body;return o?XO.createPortal(_.jsx(de.div,{...n,ref:t}),o):null});Am.displayName=z5;var cp=0;function PE(){E.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??SO()),document.body.insertAdjacentElement("beforeend",e[1]??SO()),cp++,()=>{cp===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),cp--}},[])}function SO(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Nt=function(){return Nt=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Nt.apply(this,arguments)};function EE(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function W5(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var ko="right-scroll-bar-position",Mo="width-before-scroll-bar",U5="with-scroll-bars-hidden",H5="--removed-body-scroll-bar-size";function up(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function V5(e,t){var r=O.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}var K5=typeof window<"u"?E.useLayoutEffect:E.useEffect,OO=new WeakMap;function G5(e,t){var r=V5(null,function(n){return e.forEach(function(i){return up(i,n)})});return K5(function(){var n=OO.get(r);if(n){var i=new Set(n),a=new Set(e),o=r.current;i.forEach(function(s){a.has(s)||up(s,null)}),a.forEach(function(s){i.has(s)||up(s,o)})}OO.set(r,e)},[e]),r}function Y5(e){return e}function X5(e,t){t===void 0&&(t=Y5);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var o=t(a,n);return r.push(o),function(){r=r.filter(function(s){return s!==o})}},assignSyncMedium:function(a){for(n=!0;r.length;){var o=r;r=[],o.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var o=[];if(r.length){var s=r;r=[],s.forEach(a),o=r}var c=function(){var l=o;o=[],l.forEach(a)},u=function(){return Promise.resolve().then(c)};u(),r={push:function(l){o.push(l),u()},filter:function(l){return o=o.filter(l),r}}}};return i}function Z5(e){e===void 0&&(e={});var t=X5(null);return t.options=Nt({async:!0,ssr:!1},e),t}var TE=function(e){var t=e.sideCar,r=EE(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return E.createElement(n,Nt({},r))};TE.isSideCarExport=!0;function J5(e,t){return e.useMedium(t),TE}var CE=Z5(),lp=function(){},Lc=E.forwardRef(function(e,t){var r=E.useRef(null),n=E.useState({onScrollCapture:lp,onWheelCapture:lp,onTouchMoveCapture:lp}),i=n[0],a=n[1],o=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,l=e.enabled,f=e.shards,d=e.sideCar,h=e.noRelative,m=e.noIsolation,v=e.inert,p=e.allowPinchZoom,g=e.as,b=g===void 0?"div":g,x=e.gapMode,w=EE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),y=d,S=G5([r,t]),A=Nt(Nt({},w),i);return E.createElement(E.Fragment,null,l&&E.createElement(y,{sideCar:CE,removeScrollBar:u,shards:f,noRelative:h,noIsolation:m,inert:v,setCallbacks:a,allowPinchZoom:!!p,lockRef:r,gapMode:x}),o?E.cloneElement(E.Children.only(s),Nt(Nt({},A),{ref:S})):E.createElement(b,Nt({},A,{className:c,ref:S}),s))});Lc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Lc.classNames={fullWidth:Mo,zeroRight:ko};var Q5=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function eG(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Q5();return t&&e.setAttribute("nonce",t),e}function tG(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function rG(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var nG=function(){var e=0,t=null;return{add:function(r){e==0&&(t=eG())&&(tG(t,r),rG(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},iG=function(){var e=nG();return function(t,r){E.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},jE=function(){var e=iG(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},aG={left:0,top:0,right:0,gap:0},fp=function(e){return parseInt(e||"",10)||0},oG=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[fp(r),fp(n),fp(i)]},sG=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return aG;var t=oG(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},cG=jE(),Dn="data-scroll-locked",uG=function(e,t,r,n){var i=e.left,a=e.top,o=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
|
216
|
-
.`.concat(
|
|
215
|
+
- Focus on what the data means, not how it's displayed`,Component:WK,Header:void 0};function vO(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function dm(...e){return t=>{let r=!1;const n=e.map(i=>{const a=vO(i,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let i=0;i<n.length;i++){const a=n[i];typeof a=="function"?a():vO(e[i],null)}}}}function Re(...e){return E.useCallback(dm(...e),e)}function mi(e){const t=UK(e),r=E.forwardRef((n,i)=>{const{children:a,...o}=n,s=E.Children.toArray(a),c=s.find(VK);if(c){const u=c.props.children,l=s.map(f=>f===c?E.Children.count(u)>1?E.Children.only(null):E.isValidElement(u)?u.props.children:null:f);return _.jsx(t,{...o,ref:i,children:E.isValidElement(u)?E.cloneElement(u,void 0,l):null})}return _.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}var iE=mi("Slot");function UK(e){const t=E.forwardRef((r,n)=>{const{children:i,...a}=r;if(E.isValidElement(i)){const o=GK(i),s=KK(a,i.props);return i.type!==E.Fragment&&(s.ref=n?dm(n,o):o),E.cloneElement(i,s)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var aE=Symbol("radix.slottable");function HK(e){const t=({children:r})=>_.jsx(_.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=aE,t}function VK(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===aE}function KK(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...s)=>{const c=a(...s);return i(...s),c}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function GK(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var YK=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],de=YK.reduce((e,t)=>{const r=mi(`Primitive.${t}`),n=E.forwardRef((i,a)=>{const{asChild:o,...s}=i,c=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),_.jsx(c,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function XK(e,t){e&&Js.flushSync(()=>e.dispatchEvent(t))}var oE=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ZK="VisuallyHidden",sE=E.forwardRef((e,t)=>_.jsx(de.span,{...e,ref:t,style:{...oE,...e.style}}));sE.displayName=ZK;var JK=sE;function QK(e,t){const r=E.createContext(t),n=a=>{const{children:o,...s}=a,c=E.useMemo(()=>s,Object.values(s));return _.jsx(r.Provider,{value:c,children:o})};n.displayName=e+"Provider";function i(a){const o=E.useContext(r);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,i]}function Mt(e,t=[]){let r=[];function n(a,o){const s=E.createContext(o),c=r.length;r=[...r,o];const u=f=>{const{scope:d,children:h,...m}=f,v=d?.[e]?.[c]||s,p=E.useMemo(()=>m,Object.values(m));return _.jsx(v.Provider,{value:p,children:h})};u.displayName=a+"Provider";function l(f,d){const h=d?.[e]?.[c]||s,m=E.useContext(h);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[u,l]}const i=()=>{const a=r.map(o=>E.createContext(o));return function(s){const c=s?.[e]||a;return E.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return i.scopeName=e,[n,eG(i,...t)]}function eG(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=n.reduce((s,{useScope:c,scopeName:u})=>{const f=c(a)[`__scope${u}`];return{...s,...f}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function pm(e){const t=e+"CollectionProvider",[r,n]=Mt(t),[i,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=v=>{const{scope:p,children:g}=v,b=A.useRef(null),x=A.useRef(new Map).current;return _.jsx(i,{scope:p,itemMap:x,collectionRef:b,children:g})};o.displayName=t;const s=e+"CollectionSlot",c=mi(s),u=A.forwardRef((v,p)=>{const{scope:g,children:b}=v,x=a(s,g),w=Re(p,x.collectionRef);return _.jsx(c,{ref:w,children:b})});u.displayName=s;const l=e+"CollectionItemSlot",f="data-radix-collection-item",d=mi(l),h=A.forwardRef((v,p)=>{const{scope:g,children:b,...x}=v,w=A.useRef(null),y=Re(p,w),S=a(l,g);return A.useEffect(()=>(S.itemMap.set(w,{ref:w,...x}),()=>void S.itemMap.delete(w))),_.jsx(d,{[f]:"",ref:y,children:b})});h.displayName=l;function m(v){const p=a(e+"CollectionConsumer",v);return A.useCallback(()=>{const b=p.collectionRef.current;if(!b)return[];const x=Array.from(b.querySelectorAll(`[${f}]`));return Array.from(p.itemMap.values()).sort((S,O)=>x.indexOf(S.ref.current)-x.indexOf(O.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:o,Slot:u,ItemSlot:h},m,n]}function he(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e?.(i),r===!1||!i.defaultPrevented)return t?.(i)}}var Ne=globalThis?.document?E.useLayoutEffect:()=>{},tG=E[" useInsertionEffect ".trim().toString()]||Ne;function pr({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[i,a,o]=rG({defaultProp:t,onChange:r}),s=e!==void 0,c=s?e:i;{const l=E.useRef(e!==void 0);E.useEffect(()=>{const f=l.current;f!==s&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),l.current=s},[s,n])}const u=E.useCallback(l=>{if(s){const f=nG(l)?l(e):l;f!==e&&o.current?.(f)}else a(l)},[s,e,a,o]);return[c,u]}function rG({defaultProp:e,onChange:t}){const[r,n]=E.useState(e),i=E.useRef(r),a=E.useRef(t);return tG(()=>{a.current=t},[t]),E.useEffect(()=>{i.current!==r&&(a.current?.(r),i.current=r)},[r,i]),[r,n,a]}function nG(e){return typeof e=="function"}function iG(e,t){return E.useReducer((r,n)=>t[r][n]??r,e)}var eo=e=>{const{present:t,children:r}=e,n=aG(t),i=typeof r=="function"?r({present:n.isPresent}):E.Children.only(r),a=Re(n.ref,oG(i));return typeof r=="function"||n.isPresent?E.cloneElement(i,{ref:a}):null};eo.displayName="Presence";function aG(e){const[t,r]=E.useState(),n=E.useRef(null),i=E.useRef(e),a=E.useRef("none"),o=e?"mounted":"unmounted",[s,c]=iG(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const u=_o(n.current);a.current=s==="mounted"?u:"none"},[s]),Ne(()=>{const u=n.current,l=i.current;if(l!==e){const d=a.current,h=_o(u);e?c("MOUNT"):h==="none"||u?.display==="none"?c("UNMOUNT"):c(l&&d!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),Ne(()=>{if(t){let u;const l=t.ownerDocument.defaultView??window,f=h=>{const v=_o(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&v&&(c("ANIMATION_END"),!i.current)){const p=t.style.animationFillMode;t.style.animationFillMode="forwards",u=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=p)})}},d=h=>{h.target===t&&(a.current=_o(n.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{l.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:E.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function _o(e){return e?.animationName||"none"}function oG(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var sG=E[" useId ".trim().toString()]||(()=>{}),cG=0;function zr(e){const[t,r]=E.useState(sG());return Ne(()=>{r(n=>n??String(cG++))},[e]),t?`radix-${t}`:""}var Mc="Collapsible",[uG,cE]=Mt(Mc),[lG,hm]=uG(Mc),uE=E.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,u]=pr({prop:n,defaultProp:i??!1,onChange:o,caller:Mc});return _.jsx(lG,{scope:r,disabled:a,contentId:zr(),open:c,onOpenToggle:E.useCallback(()=>u(l=>!l),[u]),children:_.jsx(de.div,{"data-state":gm(c),"data-disabled":a?"":void 0,...s,ref:t})})});uE.displayName=Mc;var lE="CollapsibleTrigger",vm=E.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,i=hm(lE,r);return _.jsx(de.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":gm(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...n,ref:t,onClick:he(e.onClick,i.onOpenToggle)})});vm.displayName=lE;var mm="CollapsibleContent",ym=E.forwardRef((e,t)=>{const{forceMount:r,...n}=e,i=hm(mm,e.__scopeCollapsible);return _.jsx(eo,{present:r||i.open,children:({present:a})=>_.jsx(fG,{...n,ref:t,present:a})})});ym.displayName=mm;var fG=E.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:i,...a}=e,o=hm(mm,r),[s,c]=E.useState(n),u=E.useRef(null),l=Re(t,u),f=E.useRef(0),d=f.current,h=E.useRef(0),m=h.current,v=o.open||s,p=E.useRef(v),g=E.useRef(void 0);return E.useEffect(()=>{const b=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(b)},[]),Ne(()=>{const b=u.current;if(b){g.current=g.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const x=b.getBoundingClientRect();f.current=x.height,h.current=x.width,p.current||(b.style.transitionDuration=g.current.transitionDuration,b.style.animationName=g.current.animationName),c(n)}},[o.open,n]),_.jsx(de.div,{"data-state":gm(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!v,...a,ref:l,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:v&&i})});function gm(e){return e?"open":"closed"}var fE=uE,dG=vm,pG=ym,hG=E.createContext(void 0);function $c(e){const t=E.useContext(hG);return e||t||"ltr"}var $t="Accordion",vG=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[bm,mG,yG]=pm($t),[Nc]=Mt($t,[yG,cE]),xm=cE(),dE=A.forwardRef((e,t)=>{const{type:r,...n}=e,i=n,a=n;return _.jsx(bm.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?_.jsx(wG,{...a,ref:t}):_.jsx(xG,{...i,ref:t})})});dE.displayName=$t;var[pE,gG]=Nc($t),[hE,bG]=Nc($t,{collapsible:!1}),xG=A.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:i=()=>{},collapsible:a=!1,...o}=e,[s,c]=pr({prop:r,defaultProp:n??"",onChange:i,caller:$t});return _.jsx(pE,{scope:e.__scopeAccordion,value:A.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:A.useCallback(()=>a&&c(""),[a,c]),children:_.jsx(hE,{scope:e.__scopeAccordion,collapsible:a,children:_.jsx(vE,{...o,ref:t})})})}),wG=A.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:i=()=>{},...a}=e,[o,s]=pr({prop:r,defaultProp:n??[],onChange:i,caller:$t}),c=A.useCallback(l=>s((f=[])=>[...f,l]),[s]),u=A.useCallback(l=>s((f=[])=>f.filter(d=>d!==l)),[s]);return _.jsx(pE,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:u,children:_.jsx(hE,{scope:e.__scopeAccordion,collapsible:!0,children:_.jsx(vE,{...a,ref:t})})})}),[SG,Dc]=Nc($t),vE=A.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:i,orientation:a="vertical",...o}=e,s=A.useRef(null),c=Re(s,t),u=mG(r),f=$c(i)==="ltr",d=he(e.onKeyDown,h=>{if(!vG.includes(h.key))return;const m=h.target,v=u().filter(P=>!P.ref.current?.disabled),p=v.findIndex(P=>P.ref.current===m),g=v.length;if(p===-1)return;h.preventDefault();let b=p;const x=0,w=g-1,y=()=>{b=p+1,b>w&&(b=x)},S=()=>{b=p-1,b<x&&(b=w)};switch(h.key){case"Home":b=x;break;case"End":b=w;break;case"ArrowRight":a==="horizontal"&&(f?y():S());break;case"ArrowDown":a==="vertical"&&y();break;case"ArrowLeft":a==="horizontal"&&(f?S():y());break;case"ArrowUp":a==="vertical"&&S();break}const O=b%g;v[O].ref.current?.focus()});return _.jsx(SG,{scope:r,disabled:n,direction:i,orientation:a,children:_.jsx(bm.Slot,{scope:r,children:_.jsx(de.div,{...o,"data-orientation":a,ref:c,onKeyDown:n?void 0:d})})})}),Us="AccordionItem",[OG,wm]=Nc(Us),mE=A.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...i}=e,a=Dc(Us,r),o=gG(Us,r),s=xm(r),c=zr(),u=n&&o.value.includes(n)||!1,l=a.disabled||e.disabled;return _.jsx(OG,{scope:r,open:u,disabled:l,triggerId:c,children:_.jsx(fE,{"data-orientation":a.orientation,"data-state":SE(u),...s,...i,ref:t,disabled:l,open:u,onOpenChange:f=>{f?o.onItemOpen(n):o.onItemClose(n)}})})});mE.displayName=Us;var yE="AccordionHeader",gE=A.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,i=Dc($t,r),a=wm(yE,r);return _.jsx(de.h3,{"data-orientation":i.orientation,"data-state":SE(a.open),"data-disabled":a.disabled?"":void 0,...n,ref:t})});gE.displayName=yE;var Uh="AccordionTrigger",bE=A.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,i=Dc($t,r),a=wm(Uh,r),o=bG(Uh,r),s=xm(r);return _.jsx(bm.ItemSlot,{scope:r,children:_.jsx(dG,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...n,ref:t})})});bE.displayName=Uh;var xE="AccordionContent",wE=A.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,i=Dc($t,r),a=wm(xE,r),o=xm(r);return _.jsx(pG,{role:"region","aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});wE.displayName=xE;function SE(e){return e?"open":"closed"}var AG=dE,_G=mE,PG=gE,EG=bE,TG=wE;function Ht(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...r)=>t.current?.(...r),[])}function CG(e,t=globalThis?.document){const r=Ht(e);E.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var jG="DismissableLayer",Hh="dismissableLayer.update",IG="dismissableLayer.pointerDownOutside",kG="dismissableLayer.focusOutside",mO,OE=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Sm=E.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...c}=e,u=E.useContext(OE),[l,f]=E.useState(null),d=l?.ownerDocument??globalThis?.document,[,h]=E.useState({}),m=Re(t,O=>f(O)),v=Array.from(u.layers),[p]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=v.indexOf(p),b=l?v.indexOf(l):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,w=b>=g,y=$G(O=>{const P=O.target,T=[...u.branches].some(k=>k.contains(P));!w||T||(i?.(O),o?.(O),O.defaultPrevented||s?.())},d),S=NG(O=>{const P=O.target;[...u.branches].some(k=>k.contains(P))||(a?.(O),o?.(O),O.defaultPrevented||s?.())},d);return CG(O=>{b===u.layers.size-1&&(n?.(O),!O.defaultPrevented&&s&&(O.preventDefault(),s()))},d),E.useEffect(()=>{if(l)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(mO=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(l)),u.layers.add(l),yO(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=mO)}},[l,d,r,u]),E.useEffect(()=>()=>{l&&(u.layers.delete(l),u.layersWithOutsidePointerEventsDisabled.delete(l),yO())},[l,u]),E.useEffect(()=>{const O=()=>h({});return document.addEventListener(Hh,O),()=>document.removeEventListener(Hh,O)},[]),_.jsx(de.div,{...c,ref:m,style:{pointerEvents:x?w?"auto":"none":void 0,...e.style},onFocusCapture:he(e.onFocusCapture,S.onFocusCapture),onBlurCapture:he(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:he(e.onPointerDownCapture,y.onPointerDownCapture)})});Sm.displayName=jG;var RG="DismissableLayerBranch",MG=E.forwardRef((e,t)=>{const r=E.useContext(OE),n=E.useRef(null),i=Re(t,n);return E.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),_.jsx(de.div,{...e,ref:i})});MG.displayName=RG;function $G(e,t=globalThis?.document){const r=Ht(e),n=E.useRef(!1),i=E.useRef(()=>{});return E.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let c=function(){AE(IG,r,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=c,t.addEventListener("click",i.current,{once:!0})):c()}else t.removeEventListener("click",i.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function NG(e,t=globalThis?.document){const r=Ht(e),n=E.useRef(!1);return E.useEffect(()=>{const i=a=>{a.target&&!n.current&&AE(kG,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function yO(){const e=new CustomEvent(Hh);document.dispatchEvent(e)}function AE(e,t,r,{discrete:n}){const i=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?XK(i,a):i.dispatchEvent(a)}var op="focusScope.autoFocusOnMount",sp="focusScope.autoFocusOnUnmount",gO={bubbles:!1,cancelable:!0},DG="FocusScope",Om=E.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=E.useState(null),u=Ht(i),l=Ht(a),f=E.useRef(null),d=Re(t,v=>c(v)),h=E.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.useEffect(()=>{if(n){let v=function(x){if(h.paused||!s)return;const w=x.target;s.contains(w)?f.current=w:Sr(f.current,{select:!0})},p=function(x){if(h.paused||!s)return;const w=x.relatedTarget;w!==null&&(s.contains(w)||Sr(f.current,{select:!0}))},g=function(x){if(document.activeElement===document.body)for(const y of x)y.removedNodes.length>0&&Sr(s)};document.addEventListener("focusin",v),document.addEventListener("focusout",p);const b=new MutationObserver(g);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",p),b.disconnect()}}},[n,s,h.paused]),E.useEffect(()=>{if(s){xO.add(h);const v=document.activeElement;if(!s.contains(v)){const g=new CustomEvent(op,gO);s.addEventListener(op,u),s.dispatchEvent(g),g.defaultPrevented||(LG(WG(_E(s)),{select:!0}),document.activeElement===v&&Sr(s))}return()=>{s.removeEventListener(op,u),setTimeout(()=>{const g=new CustomEvent(sp,gO);s.addEventListener(sp,l),s.dispatchEvent(g),g.defaultPrevented||Sr(v??document.body,{select:!0}),s.removeEventListener(sp,l),xO.remove(h)},0)}}},[s,u,l,h]);const m=E.useCallback(v=>{if(!r&&!n||h.paused)return;const p=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(p&&g){const b=v.currentTarget,[x,w]=BG(b);x&&w?!v.shiftKey&&g===w?(v.preventDefault(),r&&Sr(x,{select:!0})):v.shiftKey&&g===x&&(v.preventDefault(),r&&Sr(w,{select:!0})):g===b&&v.preventDefault()}},[r,n,h.paused]);return _.jsx(de.div,{tabIndex:-1,...o,ref:d,onKeyDown:m})});Om.displayName=DG;function LG(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Sr(n,{select:t}),document.activeElement!==r)return}function BG(e){const t=_E(e),r=bO(t,e),n=bO(t.reverse(),e);return[r,n]}function _E(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function bO(e,t){for(const r of e)if(!qG(r,{upTo:t}))return r}function qG(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function FG(e){return e instanceof HTMLInputElement&&"select"in e}function Sr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&FG(e)&&t&&e.select()}}var xO=zG();function zG(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=wO(e,t),e.unshift(t)},remove(t){e=wO(e,t),e[0]?.resume()}}}function wO(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function WG(e){return e.filter(t=>t.tagName!=="A")}var UG="Portal",Am=E.forwardRef((e,t)=>{const{container:r,...n}=e,[i,a]=E.useState(!1);Ne(()=>a(!0),[]);const o=r||i&&globalThis?.document?.body;return o?XO.createPortal(_.jsx(de.div,{...n,ref:t}),o):null});Am.displayName=UG;var cp=0;function PE(){E.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??SO()),document.body.insertAdjacentElement("beforeend",e[1]??SO()),cp++,()=>{cp===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),cp--}},[])}function SO(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Dt=function(){return Dt=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Dt.apply(this,arguments)};function EE(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function HG(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Ro="right-scroll-bar-position",Mo="width-before-scroll-bar",VG="with-scroll-bars-hidden",KG="--removed-body-scroll-bar-size";function up(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function GG(e,t){var r=A.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}var YG=typeof window<"u"?E.useLayoutEffect:E.useEffect,OO=new WeakMap;function XG(e,t){var r=GG(null,function(n){return e.forEach(function(i){return up(i,n)})});return YG(function(){var n=OO.get(r);if(n){var i=new Set(n),a=new Set(e),o=r.current;i.forEach(function(s){a.has(s)||up(s,null)}),a.forEach(function(s){i.has(s)||up(s,o)})}OO.set(r,e)},[e]),r}function ZG(e){return e}function JG(e,t){t===void 0&&(t=ZG);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var o=t(a,n);return r.push(o),function(){r=r.filter(function(s){return s!==o})}},assignSyncMedium:function(a){for(n=!0;r.length;){var o=r;r=[],o.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var o=[];if(r.length){var s=r;r=[],s.forEach(a),o=r}var c=function(){var l=o;o=[],l.forEach(a)},u=function(){return Promise.resolve().then(c)};u(),r={push:function(l){o.push(l),u()},filter:function(l){return o=o.filter(l),r}}}};return i}function QG(e){e===void 0&&(e={});var t=JG(null);return t.options=Dt({async:!0,ssr:!1},e),t}var TE=function(e){var t=e.sideCar,r=EE(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return E.createElement(n,Dt({},r))};TE.isSideCarExport=!0;function e5(e,t){return e.useMedium(t),TE}var CE=QG(),lp=function(){},Lc=E.forwardRef(function(e,t){var r=E.useRef(null),n=E.useState({onScrollCapture:lp,onWheelCapture:lp,onTouchMoveCapture:lp}),i=n[0],a=n[1],o=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,l=e.enabled,f=e.shards,d=e.sideCar,h=e.noRelative,m=e.noIsolation,v=e.inert,p=e.allowPinchZoom,g=e.as,b=g===void 0?"div":g,x=e.gapMode,w=EE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),y=d,S=XG([r,t]),O=Dt(Dt({},w),i);return E.createElement(E.Fragment,null,l&&E.createElement(y,{sideCar:CE,removeScrollBar:u,shards:f,noRelative:h,noIsolation:m,inert:v,setCallbacks:a,allowPinchZoom:!!p,lockRef:r,gapMode:x}),o?E.cloneElement(E.Children.only(s),Dt(Dt({},O),{ref:S})):E.createElement(b,Dt({},O,{className:c,ref:S}),s))});Lc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Lc.classNames={fullWidth:Mo,zeroRight:Ro};var t5=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function r5(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=t5();return t&&e.setAttribute("nonce",t),e}function n5(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function i5(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var a5=function(){var e=0,t=null;return{add:function(r){e==0&&(t=r5())&&(n5(t,r),i5(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},o5=function(){var e=a5();return function(t,r){E.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},jE=function(){var e=o5(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},s5={left:0,top:0,right:0,gap:0},fp=function(e){return parseInt(e||"",10)||0},c5=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[fp(r),fp(n),fp(i)]},u5=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return s5;var t=c5(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},l5=jE(),Dn="data-scroll-locked",f5=function(e,t,r,n){var i=e.left,a=e.top,o=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
|
216
|
+
.`.concat(VG,` {
|
|
217
217
|
overflow: hidden `).concat(n,`;
|
|
218
218
|
padding-right: `).concat(s,"px ").concat(n,`;
|
|
219
219
|
}
|
|
@@ -230,7 +230,7 @@ CONTENT GUIDELINES:
|
|
|
230
230
|
`),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
.`).concat(
|
|
233
|
+
.`).concat(Ro,` {
|
|
234
234
|
right: `).concat(s,"px ").concat(n,`;
|
|
235
235
|
}
|
|
236
236
|
|
|
@@ -238,7 +238,7 @@ CONTENT GUIDELINES:
|
|
|
238
238
|
margin-right: `).concat(s,"px ").concat(n,`;
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
.`).concat(
|
|
241
|
+
.`).concat(Ro," .").concat(Ro,` {
|
|
242
242
|
right: 0 `).concat(n,`;
|
|
243
243
|
}
|
|
244
244
|
|
|
@@ -247,17 +247,17 @@ CONTENT GUIDELINES:
|
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
body[`).concat(Dn,`] {
|
|
250
|
-
`).concat(
|
|
250
|
+
`).concat(KG,": ").concat(s,`px;
|
|
251
251
|
}
|
|
252
|
-
`)},AO=function(){var e=parseInt(document.body.getAttribute(Dn)||"0",10);return isFinite(e)?e:0},
|
|
252
|
+
`)},AO=function(){var e=parseInt(document.body.getAttribute(Dn)||"0",10);return isFinite(e)?e:0},d5=function(){E.useEffect(function(){return document.body.setAttribute(Dn,(AO()+1).toString()),function(){var e=AO()-1;e<=0?document.body.removeAttribute(Dn):document.body.setAttribute(Dn,e.toString())}},[])},p5=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n;d5();var a=E.useMemo(function(){return u5(i)},[i]);return E.createElement(l5,{styles:f5(a,!t,i,r?"":"!important")})},Vh=!1;if(typeof window<"u")try{var Po=Object.defineProperty({},"passive",{get:function(){return Vh=!0,!0}});window.addEventListener("test",Po,Po),window.removeEventListener("test",Po,Po)}catch{Vh=!1}var Pn=Vh?{passive:!1}:!1,h5=function(e){return e.tagName==="TEXTAREA"},IE=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!h5(e)&&r[t]==="visible")},v5=function(e){return IE(e,"overflowY")},m5=function(e){return IE(e,"overflowX")},_O=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=kE(e,n);if(i){var a=RE(e,n),o=a[1],s=a[2];if(o>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},y5=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},g5=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},kE=function(e,t){return e==="v"?v5(t):m5(t)},RE=function(e,t){return e==="v"?y5(t):g5(t)},b5=function(e,t){return e==="h"&&t==="rtl"?-1:1},x5=function(e,t,r,n,i){var a=b5(e,window.getComputedStyle(t).direction),o=a*n,s=r.target,c=t.contains(s),u=!1,l=o>0,f=0,d=0;do{if(!s)break;var h=RE(e,s),m=h[0],v=h[1],p=h[2],g=v-p-a*m;(m||g)&&kE(e,s)&&(f+=g,d+=m);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(l&&Math.abs(f)<1||!l&&Math.abs(d)<1)&&(u=!0),u},Eo=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},PO=function(e){return[e.deltaX,e.deltaY]},EO=function(e){return e&&"current"in e?e.current:e},w5=function(e,t){return e[0]===t[0]&&e[1]===t[1]},S5=function(e){return`
|
|
253
253
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
254
254
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
255
|
-
`)},wG=0,En=[];function SG(e){var t=E.useRef([]),r=E.useRef([0,0]),n=E.useRef(),i=E.useState(wG++)[0],a=E.useState(jE)[0],o=E.useRef(e);E.useEffect(function(){o.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var v=W5([e.lockRef.current],(e.shards||[]).map(EO),!0).filter(Boolean);return v.forEach(function(p){return p.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),v.forEach(function(p){return p.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=E.useCallback(function(v,p){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!o.current.allowPinchZoom;var g=Eo(v),b=r.current,x="deltaX"in v?v.deltaX:b[0]-g[0],w="deltaY"in v?v.deltaY:b[1]-g[1],y,S=v.target,A=Math.abs(x)>Math.abs(w)?"h":"v";if("touches"in v&&A==="h"&&S.type==="range")return!1;var P=_O(A,S);if(!P)return!0;if(P?y=A:(y=A==="v"?"h":"v",P=_O(A,S)),!P)return!1;if(!n.current&&"changedTouches"in v&&(x||w)&&(n.current=y),!y)return!0;var T=n.current||y;return gG(T,p,v,T==="h"?x:w)},[]),c=E.useCallback(function(v){var p=v;if(!(!En.length||En[En.length-1]!==a)){var g="deltaY"in p?PO(p):Eo(p),b=t.current.filter(function(y){return y.name===p.type&&(y.target===p.target||p.target===y.shadowParent)&&bG(y.delta,g)})[0];if(b&&b.should){p.cancelable&&p.preventDefault();return}if(!b){var x=(o.current.shards||[]).map(EO).filter(Boolean).filter(function(y){return y.contains(p.target)}),w=x.length>0?s(p,x[0]):!o.current.noIsolation;w&&p.cancelable&&p.preventDefault()}}},[]),u=E.useCallback(function(v,p,g,b){var x={name:v,delta:p,target:g,should:b,shadowParent:OG(g)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(w){return w!==x})},1)},[]),l=E.useCallback(function(v){r.current=Eo(v),n.current=void 0},[]),f=E.useCallback(function(v){u(v.type,PO(v),v.target,s(v,e.lockRef.current))},[]),d=E.useCallback(function(v){u(v.type,Eo(v),v.target,s(v,e.lockRef.current))},[]);E.useEffect(function(){return En.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",c,Pn),document.addEventListener("touchmove",c,Pn),document.addEventListener("touchstart",l,Pn),function(){En=En.filter(function(v){return v!==a}),document.removeEventListener("wheel",c,Pn),document.removeEventListener("touchmove",c,Pn),document.removeEventListener("touchstart",l,Pn)}},[]);var h=e.removeScrollBar,m=e.inert;return E.createElement(E.Fragment,null,m?E.createElement(a,{styles:xG(i)}):null,h?E.createElement(fG,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function OG(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const AG=J5(CE,SG);var _m=E.forwardRef(function(e,t){return E.createElement(Lc,Nt({},e,{ref:t,sideCar:AG}))});_m.classNames=Lc.classNames;var _G=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Tn=new WeakMap,To=new WeakMap,Co={},dp=0,ME=function(e){return e&&(e.host||ME(e.parentNode))},PG=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=ME(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},EG=function(e,t,r,n){var i=PG(t,Array.isArray(e)?e:[e]);Co[r]||(Co[r]=new WeakMap);var a=Co[r],o=[],s=new Set,c=new Set(i),u=function(f){!f||s.has(f)||(s.add(f),u(f.parentNode))};i.forEach(u);var l=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(d){if(s.has(d))l(d);else try{var h=d.getAttribute(n),m=h!==null&&h!=="false",v=(Tn.get(d)||0)+1,p=(a.get(d)||0)+1;Tn.set(d,v),a.set(d,p),o.push(d),v===1&&m&&To.set(d,!0),p===1&&d.setAttribute(r,"true"),m||d.setAttribute(n,"true")}catch(g){console.error("aria-hidden: cannot operate on ",d,g)}})};return l(t),s.clear(),dp++,function(){o.forEach(function(f){var d=Tn.get(f)-1,h=a.get(f)-1;Tn.set(f,d),a.set(f,h),d||(To.has(f)||f.removeAttribute(n),To.delete(f)),h||f.removeAttribute(r)}),dp--,dp||(Tn=new WeakMap,Tn=new WeakMap,To=new WeakMap,Co={})}},$E=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=_G(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),EG(n,i,r,"aria-hidden")):function(){return null}},jo={exports:{}},pp={};var TO;function TG(){if(TO)return pp;TO=1;var e=O;function t(f,d){return f===d&&(f!==0||1/f===1/d)||f!==f&&d!==d}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue;function s(f,d){var h=d(),m=n({inst:{value:h,getSnapshot:d}}),v=m[0].inst,p=m[1];return a(function(){v.value=h,v.getSnapshot=d,c(v)&&p({inst:v})},[f,h,d]),i(function(){return c(v)&&p({inst:v}),f(function(){c(v)&&p({inst:v})})},[f]),o(h),h}function c(f){var d=f.getSnapshot;f=f.value;try{var h=d();return!r(f,h)}catch{return!0}}function u(f,d){return d()}var l=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return pp.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:l,pp}var hp={};var CO;function CG(){return CO||(CO=1,process.env.NODE_ENV!=="production"&&(function(){function e(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}function t(h,m){l||i.startTransition===void 0||(l=!0,console.error("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 v=m();if(!f){var p=m();a(v,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}p=o({inst:{value:v,getSnapshot:m}});var g=p[0].inst,b=p[1];return c(function(){g.value=v,g.getSnapshot=m,r(g)&&b({inst:g})},[h,v,m]),s(function(){return r(g)&&b({inst:g}),h(function(){r(g)&&b({inst:g})})},[h]),u(v),v}function r(h){var m=h.getSnapshot;h=h.value;try{var v=m();return!a(h,v)}catch{return!0}}function n(h,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=O,a=typeof Object.is=="function"?Object.is:e,o=i.useState,s=i.useEffect,c=i.useLayoutEffect,u=i.useDebugValue,l=!1,f=!1,d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;hp.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:d,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),hp}var jO;function jG(){return jO||(jO=1,process.env.NODE_ENV==="production"?jo.exports=TG():jo.exports=CG()),jo.exports}var IG=jG();function NE(){return IG.useSyncExternalStore(RG,()=>!0,()=>!1)}function RG(){return()=>{}}var Pm="Avatar",[kG]=Mt(Pm),[MG,DE]=kG(Pm),LE=E.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[i,a]=E.useState("idle");return _.jsx(MG,{scope:r,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:_.jsx(de.span,{...n,ref:t})})});LE.displayName=Pm;var BE="AvatarImage",qE=E.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:i=()=>{},...a}=e,o=DE(BE,r),s=$G(n,a),c=Ut(u=>{i(u),o.onImageLoadingStatusChange(u)});return Ne(()=>{s!=="idle"&&c(s)},[s,c]),s==="loaded"?_.jsx(de.img,{...a,ref:t,src:n}):null});qE.displayName=BE;var FE="AvatarFallback",zE=E.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...i}=e,a=DE(FE,r),[o,s]=E.useState(n===void 0);return E.useEffect(()=>{if(n!==void 0){const c=window.setTimeout(()=>s(!0),n);return()=>window.clearTimeout(c)}},[n]),o&&a.imageLoadingStatus!=="loaded"?_.jsx(de.span,{...i,ref:t}):null});zE.displayName=FE;function IO(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function $G(e,{referrerPolicy:t,crossOrigin:r}){const n=NE(),i=E.useRef(null),a=n?(i.current||(i.current=new window.Image),i.current):null,[o,s]=E.useState(()=>IO(a,e));return Ne(()=>{s(IO(a,e))},[a,e]),Ne(()=>{const c=f=>()=>{s(f)};if(!a)return;const u=c("loaded"),l=c("error");return a.addEventListener("load",u),a.addEventListener("error",l),t&&(a.referrerPolicy=t),typeof r=="string"&&(a.crossOrigin=r),()=>{a.removeEventListener("load",u),a.removeEventListener("error",l)}},[a,r,t]),o}var NG=LE,DG=qE,LG=zE;function WE(e){const t=E.useRef({value:e,previous:e});return E.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function UE(e){const[t,r]=E.useState(void 0);return Ne(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let o,s;if("borderBoxSize"in a){const c=a.borderBoxSize,u=Array.isArray(c)?c[0]:c;o=u.inlineSize,s=u.blockSize}else o=e.offsetWidth,s=e.offsetHeight;r({width:o,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Bc="Checkbox",[BG]=Mt(Bc),[qG,Em]=BG(Bc);function FG(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:u,value:l="on",internal_do_not_use_render:f}=e,[d,h]=dr({prop:r,defaultProp:i??!1,onChange:c,caller:Bc}),[m,v]=E.useState(null),[p,g]=E.useState(null),b=E.useRef(!1),x=m?!!o||!!m.closest("form"):!0,w={checked:d,disabled:a,setChecked:h,control:m,setControl:v,name:s,form:o,value:l,hasConsumerStoppedPropagationRef:b,required:u,defaultChecked:jr(i)?!1:i,isFormControl:x,bubbleInput:p,setBubbleInput:g};return _.jsx(qG,{scope:t,...w,children:zG(f)?f(w):n})}var HE="CheckboxTrigger",VE=E.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},i)=>{const{control:a,value:o,disabled:s,checked:c,required:u,setControl:l,setChecked:f,hasConsumerStoppedPropagationRef:d,isFormControl:h,bubbleInput:m}=Em(HE,e),v=ke(i,l),p=E.useRef(c);return E.useEffect(()=>{const g=a?.form;if(g){const b=()=>f(p.current);return g.addEventListener("reset",b),()=>g.removeEventListener("reset",b)}},[a,f]),_.jsx(de.button,{type:"button",role:"checkbox","aria-checked":jr(c)?"mixed":c,"aria-required":u,"data-state":JE(c),"data-disabled":s?"":void 0,disabled:s,value:o,...n,ref:v,onKeyDown:he(t,g=>{g.key==="Enter"&&g.preventDefault()}),onClick:he(r,g=>{f(b=>jr(b)?!0:!b),m&&h&&(d.current=g.isPropagationStopped(),d.current||g.stopPropagation())})})});VE.displayName=HE;var KE=E.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:u,form:l,...f}=e;return _.jsx(FG,{__scopeCheckbox:r,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:u,name:n,form:l,value:c,internal_do_not_use_render:({isFormControl:d})=>_.jsxs(_.Fragment,{children:[_.jsx(VE,{...f,ref:t,__scopeCheckbox:r}),d&&_.jsx(ZE,{__scopeCheckbox:r})]})})});KE.displayName=Bc;var GE="CheckboxIndicator",YE=E.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...i}=e,a=Em(GE,r);return _.jsx(eo,{present:n||jr(a.checked)||a.checked===!0,children:_.jsx(de.span,{"data-state":JE(a.checked),"data-disabled":a.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});YE.displayName=GE;var XE="CheckboxBubbleInput",ZE=E.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:i,checked:a,defaultChecked:o,required:s,disabled:c,name:u,value:l,form:f,bubbleInput:d,setBubbleInput:h}=Em(XE,e),m=ke(r,h),v=WE(a),p=UE(n);E.useEffect(()=>{const b=d;if(!b)return;const x=window.HTMLInputElement.prototype,y=Object.getOwnPropertyDescriptor(x,"checked").set,S=!i.current;if(v!==a&&y){const A=new Event("click",{bubbles:S});b.indeterminate=jr(a),y.call(b,jr(a)?!1:a),b.dispatchEvent(A)}},[d,v,a,i]);const g=E.useRef(jr(a)?!1:a);return _.jsx(de.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??g.current,required:s,disabled:c,name:u,value:l,form:f,...t,tabIndex:-1,ref:m,style:{...t.style,...p,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});ZE.displayName=XE;function zG(e){return typeof e=="function"}function jr(e){return e==="indeterminate"}function JE(e){return jr(e)?"indeterminate":e?"checked":"unchecked"}const WG=["top","right","bottom","left"],Rr=Math.min,ct=Math.max,Hs=Math.round,Io=Math.floor,zt=e=>({x:e,y:e}),UG={left:"right",right:"left",bottom:"top",top:"bottom"},HG={start:"end",end:"start"};function Kh(e,t,r){return ct(e,Rr(t,r))}function pr(e,t){return typeof e=="function"?e(t):e}function hr(e){return e.split("-")[0]}function Ii(e){return e.split("-")[1]}function Tm(e){return e==="x"?"y":"x"}function Cm(e){return e==="y"?"height":"width"}const VG=new Set(["top","bottom"]);function Bt(e){return VG.has(hr(e))?"y":"x"}function jm(e){return Tm(Bt(e))}function KG(e,t,r){r===void 0&&(r=!1);const n=Ii(e),i=jm(e),a=Cm(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Vs(o)),[o,Vs(o)]}function GG(e){const t=Vs(e);return[Gh(e),t,Gh(t)]}function Gh(e){return e.replace(/start|end/g,t=>HG[t])}const RO=["left","right"],kO=["right","left"],YG=["top","bottom"],XG=["bottom","top"];function ZG(e,t,r){switch(e){case"top":case"bottom":return r?t?kO:RO:t?RO:kO;case"left":case"right":return t?YG:XG;default:return[]}}function JG(e,t,r,n){const i=Ii(e);let a=ZG(hr(e),r==="start",n);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(Gh)))),a}function Vs(e){return e.replace(/left|right|bottom|top/g,t=>UG[t])}function QG(e){return{top:0,right:0,bottom:0,left:0,...e}}function QE(e){return typeof e!="number"?QG(e):{top:e,right:e,bottom:e,left:e}}function Ks(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function MO(e,t,r){let{reference:n,floating:i}=e;const a=Bt(t),o=jm(t),s=Cm(o),c=hr(t),u=a==="y",l=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,d=n[s]/2-i[s]/2;let h;switch(c){case"top":h={x:l,y:n.y-i.height};break;case"bottom":h={x:l,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-i.width,y:f};break;default:h={x:n.x,y:n.y}}switch(Ii(t)){case"start":h[o]-=d*(r&&u?-1:1);break;case"end":h[o]+=d*(r&&u?-1:1);break}return h}const e8=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:o}=r,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:l,y:f}=MO(u,n,c),d=n,h={},m=0;for(let v=0;v<s.length;v++){const{name:p,fn:g}=s[v],{x:b,y:x,data:w,reset:y}=await g({x:l,y:f,initialPlacement:n,placement:d,strategy:i,middlewareData:h,rects:u,platform:o,elements:{reference:e,floating:t}});l=b??l,f=x??f,h={...h,[p]:{...h[p],...w}},y&&m<=50&&(m++,typeof y=="object"&&(y.placement&&(d=y.placement),y.rects&&(u=y.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:l,y:f}=MO(u,d,c)),v=-1)}return{x:l,y:f,placement:d,strategy:i,middlewareData:h}};async function qa(e,t){var r;t===void 0&&(t={});const{x:n,y:i,platform:a,rects:o,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=pr(t,e),m=QE(h),p=s[d?f==="floating"?"reference":"floating":f],g=Ks(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(p)))==null||r?p:p.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:l,strategy:c})),b=f==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),w=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},y=Ks(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:x,strategy:c}):b);return{top:(g.top-y.top+m.top)/w.y,bottom:(y.bottom-g.bottom+m.bottom)/w.y,left:(g.left-y.left+m.left)/w.x,right:(y.right-g.right+m.right)/w.x}}const t8=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:u,padding:l=0}=pr(e,t)||{};if(u==null)return{};const f=QE(l),d={x:r,y:n},h=jm(i),m=Cm(h),v=await o.getDimensions(u),p=h==="y",g=p?"top":"left",b=p?"bottom":"right",x=p?"clientHeight":"clientWidth",w=a.reference[m]+a.reference[h]-d[h]-a.floating[m],y=d[h]-a.reference[h],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let A=S?S[x]:0;(!A||!await(o.isElement==null?void 0:o.isElement(S)))&&(A=s.floating[x]||a.floating[m]);const P=w/2-y/2,T=A/2-v[m]/2-1,R=Rr(f[g],T),C=Rr(f[b],T),j=R,k=A-v[m]-C,N=A/2-v[m]/2+P,D=Kh(j,N,k),$=!c.arrow&&Ii(i)!=null&&N!==D&&a.reference[m]/2-(N<j?R:C)-v[m]/2<0,L=$?N<j?N-j:N-k:0;return{[h]:d[h]+L,data:{[h]:D,centerOffset:N-D-L,...$&&{alignmentOffset:L}},reset:$}}}),r8=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:l=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0,...p}=pr(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const g=hr(i),b=Bt(s),x=hr(s)===s,w=await(c.isRTL==null?void 0:c.isRTL(u.floating)),y=d||(x||!v?[Vs(s)]:GG(s)),S=m!=="none";!d&&S&&y.push(...JG(s,v,m,w));const A=[s,...y],P=await qa(t,p),T=[];let R=((n=a.flip)==null?void 0:n.overflows)||[];if(l&&T.push(P[g]),f){const N=KG(i,o,w);T.push(P[N[0]],P[N[1]])}if(R=[...R,{placement:i,overflows:T}],!T.every(N=>N<=0)){var C,j;const N=(((C=a.flip)==null?void 0:C.index)||0)+1,D=A[N];if(D&&(!(f==="alignment"?b!==Bt(D):!1)||R.every(B=>Bt(B.placement)===b?B.overflows[0]>0:!0)))return{data:{index:N,overflows:R},reset:{placement:D}};let $=(j=R.filter(L=>L.overflows[0]<=0).sort((L,B)=>L.overflows[1]-B.overflows[1])[0])==null?void 0:j.placement;if(!$)switch(h){case"bestFit":{var k;const L=(k=R.filter(B=>{if(S){const W=Bt(B.placement);return W===b||W==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(W=>W>0).reduce((W,I)=>W+I,0)]).sort((B,W)=>B[1]-W[1])[0])==null?void 0:k[0];L&&($=L);break}case"initialPlacement":$=s;break}if(i!==$)return{reset:{placement:$}}}return{}}}};function $O(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function NO(e){return WG.some(t=>e[t]>=0)}const n8=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...i}=pr(e,t);switch(n){case"referenceHidden":{const a=await qa(t,{...i,elementContext:"reference"}),o=$O(a,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:NO(o)}}}case"escaped":{const a=await qa(t,{...i,altBoundary:!0}),o=$O(a,r.floating);return{data:{escapedOffsets:o,escaped:NO(o)}}}default:return{}}}}},eT=new Set(["left","top"]);async function i8(e,t){const{placement:r,platform:n,elements:i}=e,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=hr(r),s=Ii(r),c=Bt(r)==="y",u=eT.has(o)?-1:1,l=a&&c?-1:1,f=pr(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof m=="number"&&(h=s==="end"?m*-1:m),c?{x:h*l,y:d*u}:{x:d*u,y:h*l}}const a8=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:a,placement:o,middlewareData:s}=t,c=await i8(t,e);return o===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:i+c.x,y:a+c.y,data:{...c,placement:o}}}}},o8=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:p=>{let{x:g,y:b}=p;return{x:g,y:b}}},...c}=pr(e,t),u={x:r,y:n},l=await qa(t,c),f=Bt(hr(i)),d=Tm(f);let h=u[d],m=u[f];if(a){const p=d==="y"?"top":"left",g=d==="y"?"bottom":"right",b=h+l[p],x=h-l[g];h=Kh(b,h,x)}if(o){const p=f==="y"?"top":"left",g=f==="y"?"bottom":"right",b=m+l[p],x=m-l[g];m=Kh(b,m,x)}const v=s.fn({...t,[d]:h,[f]:m});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[d]:a,[f]:o}}}}}},s8=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=pr(e,t),l={x:r,y:n},f=Bt(i),d=Tm(f);let h=l[d],m=l[f];const v=pr(s,t),p=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const x=d==="y"?"height":"width",w=a.reference[d]-a.floating[x]+p.mainAxis,y=a.reference[d]+a.reference[x]-p.mainAxis;h<w?h=w:h>y&&(h=y)}if(u){var g,b;const x=d==="y"?"width":"height",w=eT.has(hr(i)),y=a.reference[f]-a.floating[x]+(w&&((g=o.offset)==null?void 0:g[f])||0)+(w?0:p.crossAxis),S=a.reference[f]+a.reference[x]+(w?0:((b=o.offset)==null?void 0:b[f])||0)-(w?p.crossAxis:0);m<y?m=y:m>S&&(m=S)}return{[d]:h,[f]:m}}}},c8=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...u}=pr(e,t),l=await qa(t,u),f=hr(i),d=Ii(i),h=Bt(i)==="y",{width:m,height:v}=a.floating;let p,g;f==="top"||f==="bottom"?(p=f,g=d===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(g=f,p=d==="end"?"top":"bottom");const b=v-l.top-l.bottom,x=m-l.left-l.right,w=Rr(v-l[p],b),y=Rr(m-l[g],x),S=!t.middlewareData.shift;let A=w,P=y;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(P=x),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(A=b),S&&!d){const R=ct(l.left,0),C=ct(l.right,0),j=ct(l.top,0),k=ct(l.bottom,0);h?P=m-2*(R!==0||C!==0?R+C:ct(l.left,l.right)):A=v-2*(j!==0||k!==0?j+k:ct(l.top,l.bottom))}await c({...t,availableWidth:P,availableHeight:A});const T=await o.getDimensions(s.floating);return m!==T.width||v!==T.height?{reset:{rects:!0}}:{}}}};function qc(){return typeof window<"u"}function Ri(e){return tT(e)?(e.nodeName||"").toLowerCase():"#document"}function ft(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xt(e){var t;return(t=(tT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function tT(e){return qc()?e instanceof Node||e instanceof ft(e).Node:!1}function It(e){return qc()?e instanceof Element||e instanceof ft(e).Element:!1}function Ht(e){return qc()?e instanceof HTMLElement||e instanceof ft(e).HTMLElement:!1}function DO(e){return!qc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ft(e).ShadowRoot}const u8=new Set(["inline","contents"]);function to(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=Rt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!u8.has(i)}const l8=new Set(["table","td","th"]);function f8(e){return l8.has(Ri(e))}const d8=[":popover-open",":modal"];function Fc(e){return d8.some(t=>{try{return e.matches(t)}catch{return!1}})}const p8=["transform","translate","scale","rotate","perspective"],h8=["transform","translate","scale","rotate","perspective","filter"],v8=["paint","layout","strict","content"];function Im(e){const t=Rm(),r=It(e)?Rt(e):e;return p8.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||h8.some(n=>(r.willChange||"").includes(n))||v8.some(n=>(r.contain||"").includes(n))}function m8(e){let t=kr(e);for(;Ht(t)&&!yi(t);){if(Im(t))return t;if(Fc(t))return null;t=kr(t)}return null}function Rm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const y8=new Set(["html","body","#document"]);function yi(e){return y8.has(Ri(e))}function Rt(e){return ft(e).getComputedStyle(e)}function zc(e){return It(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function kr(e){if(Ri(e)==="html")return e;const t=e.assignedSlot||e.parentNode||DO(e)&&e.host||Xt(e);return DO(t)?t.host:t}function rT(e){const t=kr(e);return yi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ht(t)&&to(t)?t:rT(t)}function Fa(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=rT(e),a=i===((n=e.ownerDocument)==null?void 0:n.body),o=ft(i);if(a){const s=Yh(o);return t.concat(o,o.visualViewport||[],to(i)?i:[],s&&r?Fa(s):[])}return t.concat(i,Fa(i,[],r))}function Yh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function nT(e){const t=Rt(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=Ht(e),a=i?e.offsetWidth:r,o=i?e.offsetHeight:n,s=Hs(r)!==a||Hs(n)!==o;return s&&(r=a,n=o),{width:r,height:n,$:s}}function km(e){return It(e)?e:e.contextElement}function Ln(e){const t=km(e);if(!Ht(t))return zt(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:a}=nT(t);let o=(a?Hs(r.width):r.width)/n,s=(a?Hs(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const g8=zt(0);function iT(e){const t=ft(e);return!Rm()||!t.visualViewport?g8:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function b8(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ft(e)?!1:t}function fn(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),a=km(e);let o=zt(1);t&&(n?It(n)&&(o=Ln(n)):o=Ln(e));const s=b8(a,r,n)?iT(a):zt(0);let c=(i.left+s.x)/o.x,u=(i.top+s.y)/o.y,l=i.width/o.x,f=i.height/o.y;if(a){const d=ft(a),h=n&&It(n)?ft(n):n;let m=d,v=Yh(m);for(;v&&n&&h!==m;){const p=Ln(v),g=v.getBoundingClientRect(),b=Rt(v),x=g.left+(v.clientLeft+parseFloat(b.paddingLeft))*p.x,w=g.top+(v.clientTop+parseFloat(b.paddingTop))*p.y;c*=p.x,u*=p.y,l*=p.x,f*=p.y,c+=x,u+=w,m=ft(v),v=Yh(m)}}return Ks({width:l,height:f,x:c,y:u})}function Mm(e,t){const r=zc(e).scrollLeft;return t?t.left+r:fn(Xt(e)).left+r}function aT(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-(r?0:Mm(e,n)),a=n.top+t.scrollTop;return{x:i,y:a}}function x8(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const a=i==="fixed",o=Xt(n),s=t?Fc(t.floating):!1;if(n===o||s&&a)return r;let c={scrollLeft:0,scrollTop:0},u=zt(1);const l=zt(0),f=Ht(n);if((f||!f&&!a)&&((Ri(n)!=="body"||to(o))&&(c=zc(n)),Ht(n))){const h=fn(n);u=Ln(n),l.x=h.x+n.clientLeft,l.y=h.y+n.clientTop}const d=o&&!f&&!a?aT(o,c,!0):zt(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+l.x+d.x,y:r.y*u.y-c.scrollTop*u.y+l.y+d.y}}function w8(e){return Array.from(e.getClientRects())}function S8(e){const t=Xt(e),r=zc(e),n=e.ownerDocument.body,i=ct(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=ct(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+Mm(e);const s=-r.scrollTop;return Rt(n).direction==="rtl"&&(o+=ct(t.clientWidth,n.clientWidth)-i),{width:i,height:a,x:o,y:s}}function O8(e,t){const r=ft(e),n=Xt(e),i=r.visualViewport;let a=n.clientWidth,o=n.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;const u=Rm();(!u||u&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}const A8=new Set(["absolute","fixed"]);function _8(e,t){const r=fn(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,a=Ht(e)?Ln(e):zt(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,c=i*a.x,u=n*a.y;return{width:o,height:s,x:c,y:u}}function LO(e,t,r){let n;if(t==="viewport")n=O8(e,r);else if(t==="document")n=S8(Xt(e));else if(It(t))n=_8(t,r);else{const i=iT(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Ks(n)}function oT(e,t){const r=kr(e);return r===t||!It(r)||yi(r)?!1:Rt(r).position==="fixed"||oT(r,t)}function P8(e,t){const r=t.get(e);if(r)return r;let n=Fa(e,[],!1).filter(s=>It(s)&&Ri(s)!=="body"),i=null;const a=Rt(e).position==="fixed";let o=a?kr(e):e;for(;It(o)&&!yi(o);){const s=Rt(o),c=Im(o);!c&&s.position==="fixed"&&(i=null),(a?!c&&!i:!c&&s.position==="static"&&!!i&&A8.has(i.position)||to(o)&&!c&&oT(e,o))?n=n.filter(l=>l!==o):i=s,o=kr(o)}return t.set(e,n),n}function E8(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const o=[...r==="clippingAncestors"?Fc(t)?[]:P8(t,this._c):[].concat(r),n],s=o[0],c=o.reduce((u,l)=>{const f=LO(t,l,i);return u.top=ct(f.top,u.top),u.right=Rr(f.right,u.right),u.bottom=Rr(f.bottom,u.bottom),u.left=ct(f.left,u.left),u},LO(t,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function T8(e){const{width:t,height:r}=nT(e);return{width:t,height:r}}function C8(e,t,r){const n=Ht(t),i=Xt(t),a=r==="fixed",o=fn(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=zt(0);function u(){c.x=Mm(i)}if(n||!n&&!a)if((Ri(t)!=="body"||to(i))&&(s=zc(t)),n){const h=fn(t,!0,a,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else i&&u();a&&!n&&i&&u();const l=i&&!n&&!a?aT(i,s):zt(0),f=o.left+s.scrollLeft-c.x-l.x,d=o.top+s.scrollTop-c.y-l.y;return{x:f,y:d,width:o.width,height:o.height}}function vp(e){return Rt(e).position==="static"}function BO(e,t){if(!Ht(e)||Rt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Xt(e)===r&&(r=r.ownerDocument.body),r}function sT(e,t){const r=ft(e);if(Fc(e))return r;if(!Ht(e)){let i=kr(e);for(;i&&!yi(i);){if(It(i)&&!vp(i))return i;i=kr(i)}return r}let n=BO(e,t);for(;n&&f8(n)&&vp(n);)n=BO(n,t);return n&&yi(n)&&vp(n)&&!Im(n)?r:n||m8(e)||r}const j8=async function(e){const t=this.getOffsetParent||sT,r=this.getDimensions,n=await r(e.floating);return{reference:C8(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function I8(e){return Rt(e).direction==="rtl"}const R8={convertOffsetParentRelativeRectToViewportRelativeRect:x8,getDocumentElement:Xt,getClippingRect:E8,getOffsetParent:sT,getElementRects:j8,getClientRects:w8,getDimensions:T8,getScale:Ln,isElement:It,isRTL:I8};function cT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function k8(e,t){let r=null,n;const i=Xt(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const u=e.getBoundingClientRect(),{left:l,top:f,width:d,height:h}=u;if(s||t(),!d||!h)return;const m=Io(f),v=Io(i.clientWidth-(l+d)),p=Io(i.clientHeight-(f+h)),g=Io(l),x={rootMargin:-m+"px "+-v+"px "+-p+"px "+-g+"px",threshold:ct(0,Rr(1,c))||1};let w=!0;function y(S){const A=S[0].intersectionRatio;if(A!==c){if(!w)return o();A?o(!1,A):n=setTimeout(()=>{o(!1,1e-7)},1e3)}A===1&&!cT(u,e.getBoundingClientRect())&&o(),w=!1}try{r=new IntersectionObserver(y,{...x,root:i.ownerDocument})}catch{r=new IntersectionObserver(y,x)}r.observe(e)}return o(!0),a}function M8(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=km(e),l=i||a?[...u?Fa(u):[],...Fa(t)]:[];l.forEach(g=>{i&&g.addEventListener("scroll",r,{passive:!0}),a&&g.addEventListener("resize",r)});const f=u&&s?k8(u,r):null;let d=-1,h=null;o&&(h=new ResizeObserver(g=>{let[b]=g;b&&b.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),r()}),u&&!c&&h.observe(u),h.observe(t));let m,v=c?fn(e):null;c&&p();function p(){const g=fn(e);v&&!cT(v,g)&&r(),v=g,m=requestAnimationFrame(p)}return r(),()=>{var g;l.forEach(b=>{i&&b.removeEventListener("scroll",r),a&&b.removeEventListener("resize",r)}),f?.(),(g=h)==null||g.disconnect(),h=null,c&&cancelAnimationFrame(m)}}const $8=a8,N8=o8,D8=r8,L8=c8,B8=n8,qO=t8,q8=s8,F8=(e,t,r)=>{const n=new Map,i={platform:R8,...r},a={...i.platform,_c:n};return e8(e,t,{...i,platform:a})};var z8=typeof document<"u",W8=function(){},$o=z8?O.useLayoutEffect:W8;function Gs(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Gs(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const a=i[n];if(!(a==="_owner"&&e.$$typeof)&&!Gs(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function uT(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function FO(e,t){const r=uT(e);return Math.round(t*r)/r}function mp(e){const t=E.useRef(e);return $o(()=>{t.current=e}),t}function U8(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[l,f]=E.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=E.useState(n);Gs(d,n)||h(n);const[m,v]=E.useState(null),[p,g]=E.useState(null),b=E.useCallback(B=>{B!==S.current&&(S.current=B,v(B))},[]),x=E.useCallback(B=>{B!==A.current&&(A.current=B,g(B))},[]),w=a||m,y=o||p,S=E.useRef(null),A=E.useRef(null),P=E.useRef(l),T=c!=null,R=mp(c),C=mp(i),j=mp(u),k=E.useCallback(()=>{if(!S.current||!A.current)return;const B={placement:t,strategy:r,middleware:d};C.current&&(B.platform=C.current),F8(S.current,A.current,B).then(W=>{const I={...W,isPositioned:j.current!==!1};N.current&&!Gs(P.current,I)&&(P.current=I,Js.flushSync(()=>{f(I)}))})},[d,t,r,C,j]);$o(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(B=>({...B,isPositioned:!1})))},[u]);const N=E.useRef(!1);$o(()=>(N.current=!0,()=>{N.current=!1}),[]),$o(()=>{if(w&&(S.current=w),y&&(A.current=y),w&&y){if(R.current)return R.current(w,y,k);k()}},[w,y,k,R,T]);const D=E.useMemo(()=>({reference:S,floating:A,setReference:b,setFloating:x}),[b,x]),$=E.useMemo(()=>({reference:w,floating:y}),[w,y]),L=E.useMemo(()=>{const B={position:r,left:0,top:0};if(!$.floating)return B;const W=FO($.floating,l.x),I=FO($.floating,l.y);return s?{...B,transform:"translate("+W+"px, "+I+"px)",...uT($.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:W,top:I}},[r,s,$.floating,l.x,l.y]);return E.useMemo(()=>({...l,update:k,refs:D,elements:$,floatingStyles:L}),[l,k,D,$,L])}const H8=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:i}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?qO({element:n.current,padding:i}).fn(r):{}:n?qO({element:n,padding:i}).fn(r):{}}}},V8=(e,t)=>({...$8(e),options:[e,t]}),K8=(e,t)=>({...N8(e),options:[e,t]}),G8=(e,t)=>({...q8(e),options:[e,t]}),Y8=(e,t)=>({...D8(e),options:[e,t]}),X8=(e,t)=>({...L8(e),options:[e,t]}),Z8=(e,t)=>({...B8(e),options:[e,t]}),J8=(e,t)=>({...H8(e),options:[e,t]});var Q8="Arrow",lT=E.forwardRef((e,t)=>{const{children:r,width:n=10,height:i=5,...a}=e;return _.jsx(de.svg,{...a,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:_.jsx("polygon",{points:"0,0 30,0 15,10"})})});lT.displayName=Q8;var e6=lT,$m="Popper",[fT,Nm]=Mt($m),[t6,dT]=fT($m),pT=e=>{const{__scopePopper:t,children:r}=e,[n,i]=E.useState(null);return _.jsx(t6,{scope:t,anchor:n,onAnchorChange:i,children:r})};pT.displayName=$m;var hT="PopperAnchor",vT=E.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,a=dT(hT,r),o=E.useRef(null),s=ke(t,o),c=E.useRef(null);return E.useEffect(()=>{const u=c.current;c.current=n?.current||o.current,u!==c.current&&a.onAnchorChange(c.current)}),n?null:_.jsx(de.div,{...i,ref:s})});vT.displayName=hT;var Dm="PopperContent",[r6,n6]=fT(Dm),mT=E.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:a="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:l=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:h="optimized",onPlaced:m,...v}=e,p=dT(Dm,r),[g,b]=E.useState(null),x=ke(t,K=>b(K)),[w,y]=E.useState(null),S=UE(w),A=S?.width??0,P=S?.height??0,T=n+(a!=="center"?"-"+a:""),R=typeof l=="number"?l:{top:0,right:0,bottom:0,left:0,...l},C=Array.isArray(u)?u:[u],j=C.length>0,k={padding:R,boundary:C.filter(a6),altBoundary:j},{refs:N,floatingStyles:D,placement:$,isPositioned:L,middlewareData:B}=U8({strategy:"fixed",placement:T,whileElementsMounted:(...K)=>M8(...K,{animationFrame:h==="always"}),elements:{reference:p.anchor},middleware:[V8({mainAxis:i+P,alignmentAxis:o}),c&&K8({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?G8():void 0,...k}),c&&Y8({...k}),X8({...k,apply:({elements:K,rects:ee,availableWidth:q,availableHeight:H})=>{const{width:X,height:M}=ee.reference,ce=K.floating.style;ce.setProperty("--radix-popper-available-width",`${q}px`),ce.setProperty("--radix-popper-available-height",`${H}px`),ce.setProperty("--radix-popper-anchor-width",`${X}px`),ce.setProperty("--radix-popper-anchor-height",`${M}px`)}}),w&&J8({element:w,padding:s}),o6({arrowWidth:A,arrowHeight:P}),d&&Z8({strategy:"referenceHidden",...k})]}),[W,I]=bT($),F=Ut(m);Ne(()=>{L&&F?.()},[L,F]);const U=B.arrow?.x,G=B.arrow?.y,Z=B.arrow?.centerOffset!==0,[J,Q]=E.useState();return Ne(()=>{g&&Q(window.getComputedStyle(g).zIndex)},[g]),_.jsx("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:L?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(" "),...B.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:_.jsx(r6,{scope:r,placedSide:W,onArrowChange:y,arrowX:U,arrowY:G,shouldHideArrow:Z,children:_.jsx(de.div,{"data-side":W,"data-align":I,...v,ref:x,style:{...v.style,animation:L?void 0:"none"}})})})});mT.displayName=Dm;var yT="PopperArrow",i6={top:"bottom",right:"left",bottom:"top",left:"right"},gT=E.forwardRef(function(t,r){const{__scopePopper:n,...i}=t,a=n6(yT,n),o=i6[a.placedSide];return _.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:_.jsx(e6,{...i,ref:r,style:{...i.style,display:"block"}})})});gT.displayName=yT;function a6(e){return e!==null}var o6=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,s=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[u,l]=bT(r),f={start:"0%",center:"50%",end:"100%"}[l],d=(i.arrow?.x??0)+s/2,h=(i.arrow?.y??0)+c/2;let m="",v="";return u==="bottom"?(m=o?f:`${d}px`,v=`${-c}px`):u==="top"?(m=o?f:`${d}px`,v=`${n.floating.height+c}px`):u==="right"?(m=`${-c}px`,v=o?f:`${h}px`):u==="left"&&(m=`${n.floating.width+c}px`,v=o?f:`${h}px`),{data:{x:m,y:v}}}});function bT(e){const[t,r="center"]=e.split("-");return[t,r]}var xT=pT,wT=vT,ST=mT,OT=gT,yp="rovingFocusGroup.onEntryFocus",s6={bubbles:!1,cancelable:!0},ro="RovingFocusGroup",[Xh,AT,c6]=pm(ro),[u6,_T]=Mt(ro,[c6]),[l6,f6]=u6(ro),PT=E.forwardRef((e,t)=>_.jsx(Xh.Provider,{scope:e.__scopeRovingFocusGroup,children:_.jsx(Xh.Slot,{scope:e.__scopeRovingFocusGroup,children:_.jsx(d6,{...e,ref:t})})}));PT.displayName=ro;var d6=E.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:l=!1,...f}=e,d=E.useRef(null),h=ke(t,d),m=$c(a),[v,p]=dr({prop:o,defaultProp:s??null,onChange:c,caller:ro}),[g,b]=E.useState(!1),x=Ut(u),w=AT(r),y=E.useRef(!1),[S,A]=E.useState(0);return E.useEffect(()=>{const P=d.current;if(P)return P.addEventListener(yp,x),()=>P.removeEventListener(yp,x)},[x]),_.jsx(l6,{scope:r,orientation:n,dir:m,loop:i,currentTabStopId:v,onItemFocus:E.useCallback(P=>p(P),[p]),onItemShiftTab:E.useCallback(()=>b(!0),[]),onFocusableItemAdd:E.useCallback(()=>A(P=>P+1),[]),onFocusableItemRemove:E.useCallback(()=>A(P=>P-1),[]),children:_.jsx(de.div,{tabIndex:g||S===0?-1:0,"data-orientation":n,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:he(e.onMouseDown,()=>{y.current=!0}),onFocus:he(e.onFocus,P=>{const T=!y.current;if(P.target===P.currentTarget&&T&&!g){const R=new CustomEvent(yp,s6);if(P.currentTarget.dispatchEvent(R),!R.defaultPrevented){const C=w().filter($=>$.focusable),j=C.find($=>$.active),k=C.find($=>$.id===v),D=[j,k,...C].filter(Boolean).map($=>$.ref.current);CT(D,l)}}y.current=!1}),onBlur:he(e.onBlur,()=>b(!1))})})}),ET="RovingFocusGroupItem",TT=E.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=zr(),u=a||c,l=f6(ET,r),f=l.currentTabStopId===u,d=AT(r),{onFocusableItemAdd:h,onFocusableItemRemove:m,currentTabStopId:v}=l;return E.useEffect(()=>{if(n)return h(),()=>m()},[n,h,m]),_.jsx(Xh.ItemSlot,{scope:r,id:u,focusable:n,active:i,children:_.jsx(de.span,{tabIndex:f?0:-1,"data-orientation":l.orientation,...s,ref:t,onMouseDown:he(e.onMouseDown,p=>{n?l.onItemFocus(u):p.preventDefault()}),onFocus:he(e.onFocus,()=>l.onItemFocus(u)),onKeyDown:he(e.onKeyDown,p=>{if(p.key==="Tab"&&p.shiftKey){l.onItemShiftTab();return}if(p.target!==p.currentTarget)return;const g=v6(p,l.orientation,l.dir);if(g!==void 0){if(p.metaKey||p.ctrlKey||p.altKey||p.shiftKey)return;p.preventDefault();let x=d().filter(w=>w.focusable).map(w=>w.ref.current);if(g==="last")x.reverse();else if(g==="prev"||g==="next"){g==="prev"&&x.reverse();const w=x.indexOf(p.currentTarget);x=l.loop?m6(x,w+1):x.slice(w+1)}setTimeout(()=>CT(x))}}),children:typeof o=="function"?o({isCurrentTabStop:f,hasTabStop:v!=null}):o})})});TT.displayName=ET;var p6={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function h6(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function v6(e,t,r){const n=h6(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return p6[n]}function CT(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function m6(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var y6=PT,g6=TT,b6="Label",jT=E.forwardRef((e,t)=>_.jsx(de.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));jT.displayName=b6;var x6=jT;function zO(e,[t,r]){return Math.min(r,Math.max(t,e))}var Lm="Progress",Bm=100,[w6]=Mt(Lm),[S6,O6]=w6(Lm),IT=E.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:i,getValueLabel:a=A6,...o}=e;(i||i===0)&&!WO(i)&&console.error(_6(`${i}`,"Progress"));const s=WO(i)?i:Bm;n!==null&&!UO(n,s)&&console.error(P6(`${n}`,"Progress"));const c=UO(n,s)?n:null,u=Ys(c)?a(c,s):void 0;return _.jsx(S6,{scope:r,value:c,max:s,children:_.jsx(de.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":Ys(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":MT(c,s),"data-value":c??void 0,"data-max":s,...o,ref:t})})});IT.displayName=Lm;var RT="ProgressIndicator",kT=E.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,i=O6(RT,r);return _.jsx(de.div,{"data-state":MT(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...n,ref:t})});kT.displayName=RT;function A6(e,t){return`${Math.round(e/t*100)}%`}function MT(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Ys(e){return typeof e=="number"}function WO(e){return Ys(e)&&!isNaN(e)&&e>0}function UO(e,t){return Ys(e)&&!isNaN(e)&&e<=t&&e>=0}function _6(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Bm}\`.`}function P6(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
255
|
+
`)},O5=0,En=[];function A5(e){var t=E.useRef([]),r=E.useRef([0,0]),n=E.useRef(),i=E.useState(O5++)[0],a=E.useState(jE)[0],o=E.useRef(e);E.useEffect(function(){o.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var v=HG([e.lockRef.current],(e.shards||[]).map(EO),!0).filter(Boolean);return v.forEach(function(p){return p.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),v.forEach(function(p){return p.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=E.useCallback(function(v,p){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!o.current.allowPinchZoom;var g=Eo(v),b=r.current,x="deltaX"in v?v.deltaX:b[0]-g[0],w="deltaY"in v?v.deltaY:b[1]-g[1],y,S=v.target,O=Math.abs(x)>Math.abs(w)?"h":"v";if("touches"in v&&O==="h"&&S.type==="range")return!1;var P=_O(O,S);if(!P)return!0;if(P?y=O:(y=O==="v"?"h":"v",P=_O(O,S)),!P)return!1;if(!n.current&&"changedTouches"in v&&(x||w)&&(n.current=y),!y)return!0;var T=n.current||y;return x5(T,p,v,T==="h"?x:w)},[]),c=E.useCallback(function(v){var p=v;if(!(!En.length||En[En.length-1]!==a)){var g="deltaY"in p?PO(p):Eo(p),b=t.current.filter(function(y){return y.name===p.type&&(y.target===p.target||p.target===y.shadowParent)&&w5(y.delta,g)})[0];if(b&&b.should){p.cancelable&&p.preventDefault();return}if(!b){var x=(o.current.shards||[]).map(EO).filter(Boolean).filter(function(y){return y.contains(p.target)}),w=x.length>0?s(p,x[0]):!o.current.noIsolation;w&&p.cancelable&&p.preventDefault()}}},[]),u=E.useCallback(function(v,p,g,b){var x={name:v,delta:p,target:g,should:b,shadowParent:_5(g)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(w){return w!==x})},1)},[]),l=E.useCallback(function(v){r.current=Eo(v),n.current=void 0},[]),f=E.useCallback(function(v){u(v.type,PO(v),v.target,s(v,e.lockRef.current))},[]),d=E.useCallback(function(v){u(v.type,Eo(v),v.target,s(v,e.lockRef.current))},[]);E.useEffect(function(){return En.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",c,Pn),document.addEventListener("touchmove",c,Pn),document.addEventListener("touchstart",l,Pn),function(){En=En.filter(function(v){return v!==a}),document.removeEventListener("wheel",c,Pn),document.removeEventListener("touchmove",c,Pn),document.removeEventListener("touchstart",l,Pn)}},[]);var h=e.removeScrollBar,m=e.inert;return E.createElement(E.Fragment,null,m?E.createElement(a,{styles:S5(i)}):null,h?E.createElement(p5,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function _5(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const P5=e5(CE,A5);var _m=E.forwardRef(function(e,t){return E.createElement(Lc,Dt({},e,{ref:t,sideCar:P5}))});_m.classNames=Lc.classNames;var E5=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Tn=new WeakMap,To=new WeakMap,Co={},dp=0,ME=function(e){return e&&(e.host||ME(e.parentNode))},T5=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=ME(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},C5=function(e,t,r,n){var i=T5(t,Array.isArray(e)?e:[e]);Co[r]||(Co[r]=new WeakMap);var a=Co[r],o=[],s=new Set,c=new Set(i),u=function(f){!f||s.has(f)||(s.add(f),u(f.parentNode))};i.forEach(u);var l=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(d){if(s.has(d))l(d);else try{var h=d.getAttribute(n),m=h!==null&&h!=="false",v=(Tn.get(d)||0)+1,p=(a.get(d)||0)+1;Tn.set(d,v),a.set(d,p),o.push(d),v===1&&m&&To.set(d,!0),p===1&&d.setAttribute(r,"true"),m||d.setAttribute(n,"true")}catch(g){console.error("aria-hidden: cannot operate on ",d,g)}})};return l(t),s.clear(),dp++,function(){o.forEach(function(f){var d=Tn.get(f)-1,h=a.get(f)-1;Tn.set(f,d),a.set(f,h),d||(To.has(f)||f.removeAttribute(n),To.delete(f)),h||f.removeAttribute(r)}),dp--,dp||(Tn=new WeakMap,Tn=new WeakMap,To=new WeakMap,Co={})}},$E=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=E5(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),C5(n,i,r,"aria-hidden")):function(){return null}},jo={exports:{}},pp={};var TO;function j5(){if(TO)return pp;TO=1;var e=A;function t(f,d){return f===d&&(f!==0||1/f===1/d)||f!==f&&d!==d}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue;function s(f,d){var h=d(),m=n({inst:{value:h,getSnapshot:d}}),v=m[0].inst,p=m[1];return a(function(){v.value=h,v.getSnapshot=d,c(v)&&p({inst:v})},[f,h,d]),i(function(){return c(v)&&p({inst:v}),f(function(){c(v)&&p({inst:v})})},[f]),o(h),h}function c(f){var d=f.getSnapshot;f=f.value;try{var h=d();return!r(f,h)}catch{return!0}}function u(f,d){return d()}var l=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return pp.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:l,pp}var hp={};var CO;function I5(){return CO||(CO=1,process.env.NODE_ENV!=="production"&&(function(){function e(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}function t(h,m){l||i.startTransition===void 0||(l=!0,console.error("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 v=m();if(!f){var p=m();a(v,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}p=o({inst:{value:v,getSnapshot:m}});var g=p[0].inst,b=p[1];return c(function(){g.value=v,g.getSnapshot=m,r(g)&&b({inst:g})},[h,v,m]),s(function(){return r(g)&&b({inst:g}),h(function(){r(g)&&b({inst:g})})},[h]),u(v),v}function r(h){var m=h.getSnapshot;h=h.value;try{var v=m();return!a(h,v)}catch{return!0}}function n(h,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=A,a=typeof Object.is=="function"?Object.is:e,o=i.useState,s=i.useEffect,c=i.useLayoutEffect,u=i.useDebugValue,l=!1,f=!1,d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;hp.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:d,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),hp}var jO;function k5(){return jO||(jO=1,process.env.NODE_ENV==="production"?jo.exports=j5():jo.exports=I5()),jo.exports}var R5=k5();function NE(){return R5.useSyncExternalStore(M5,()=>!0,()=>!1)}function M5(){return()=>{}}var Pm="Avatar",[$5]=Mt(Pm),[N5,DE]=$5(Pm),LE=E.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[i,a]=E.useState("idle");return _.jsx(N5,{scope:r,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:_.jsx(de.span,{...n,ref:t})})});LE.displayName=Pm;var BE="AvatarImage",qE=E.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:i=()=>{},...a}=e,o=DE(BE,r),s=D5(n,a),c=Ht(u=>{i(u),o.onImageLoadingStatusChange(u)});return Ne(()=>{s!=="idle"&&c(s)},[s,c]),s==="loaded"?_.jsx(de.img,{...a,ref:t,src:n}):null});qE.displayName=BE;var FE="AvatarFallback",zE=E.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...i}=e,a=DE(FE,r),[o,s]=E.useState(n===void 0);return E.useEffect(()=>{if(n!==void 0){const c=window.setTimeout(()=>s(!0),n);return()=>window.clearTimeout(c)}},[n]),o&&a.imageLoadingStatus!=="loaded"?_.jsx(de.span,{...i,ref:t}):null});zE.displayName=FE;function IO(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function D5(e,{referrerPolicy:t,crossOrigin:r}){const n=NE(),i=E.useRef(null),a=n?(i.current||(i.current=new window.Image),i.current):null,[o,s]=E.useState(()=>IO(a,e));return Ne(()=>{s(IO(a,e))},[a,e]),Ne(()=>{const c=f=>()=>{s(f)};if(!a)return;const u=c("loaded"),l=c("error");return a.addEventListener("load",u),a.addEventListener("error",l),t&&(a.referrerPolicy=t),typeof r=="string"&&(a.crossOrigin=r),()=>{a.removeEventListener("load",u),a.removeEventListener("error",l)}},[a,r,t]),o}var L5=LE,B5=qE,q5=zE;function WE(e){const t=E.useRef({value:e,previous:e});return E.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function UE(e){const[t,r]=E.useState(void 0);return Ne(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let o,s;if("borderBoxSize"in a){const c=a.borderBoxSize,u=Array.isArray(c)?c[0]:c;o=u.inlineSize,s=u.blockSize}else o=e.offsetWidth,s=e.offsetHeight;r({width:o,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Bc="Checkbox",[F5]=Mt(Bc),[z5,Em]=F5(Bc);function W5(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:u,value:l="on",internal_do_not_use_render:f}=e,[d,h]=pr({prop:r,defaultProp:i??!1,onChange:c,caller:Bc}),[m,v]=E.useState(null),[p,g]=E.useState(null),b=E.useRef(!1),x=m?!!o||!!m.closest("form"):!0,w={checked:d,disabled:a,setChecked:h,control:m,setControl:v,name:s,form:o,value:l,hasConsumerStoppedPropagationRef:b,required:u,defaultChecked:jr(i)?!1:i,isFormControl:x,bubbleInput:p,setBubbleInput:g};return _.jsx(z5,{scope:t,...w,children:U5(f)?f(w):n})}var HE="CheckboxTrigger",VE=E.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},i)=>{const{control:a,value:o,disabled:s,checked:c,required:u,setControl:l,setChecked:f,hasConsumerStoppedPropagationRef:d,isFormControl:h,bubbleInput:m}=Em(HE,e),v=Re(i,l),p=E.useRef(c);return E.useEffect(()=>{const g=a?.form;if(g){const b=()=>f(p.current);return g.addEventListener("reset",b),()=>g.removeEventListener("reset",b)}},[a,f]),_.jsx(de.button,{type:"button",role:"checkbox","aria-checked":jr(c)?"mixed":c,"aria-required":u,"data-state":JE(c),"data-disabled":s?"":void 0,disabled:s,value:o,...n,ref:v,onKeyDown:he(t,g=>{g.key==="Enter"&&g.preventDefault()}),onClick:he(r,g=>{f(b=>jr(b)?!0:!b),m&&h&&(d.current=g.isPropagationStopped(),d.current||g.stopPropagation())})})});VE.displayName=HE;var KE=E.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:u,form:l,...f}=e;return _.jsx(W5,{__scopeCheckbox:r,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:u,name:n,form:l,value:c,internal_do_not_use_render:({isFormControl:d})=>_.jsxs(_.Fragment,{children:[_.jsx(VE,{...f,ref:t,__scopeCheckbox:r}),d&&_.jsx(ZE,{__scopeCheckbox:r})]})})});KE.displayName=Bc;var GE="CheckboxIndicator",YE=E.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...i}=e,a=Em(GE,r);return _.jsx(eo,{present:n||jr(a.checked)||a.checked===!0,children:_.jsx(de.span,{"data-state":JE(a.checked),"data-disabled":a.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});YE.displayName=GE;var XE="CheckboxBubbleInput",ZE=E.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:i,checked:a,defaultChecked:o,required:s,disabled:c,name:u,value:l,form:f,bubbleInput:d,setBubbleInput:h}=Em(XE,e),m=Re(r,h),v=WE(a),p=UE(n);E.useEffect(()=>{const b=d;if(!b)return;const x=window.HTMLInputElement.prototype,y=Object.getOwnPropertyDescriptor(x,"checked").set,S=!i.current;if(v!==a&&y){const O=new Event("click",{bubbles:S});b.indeterminate=jr(a),y.call(b,jr(a)?!1:a),b.dispatchEvent(O)}},[d,v,a,i]);const g=E.useRef(jr(a)?!1:a);return _.jsx(de.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??g.current,required:s,disabled:c,name:u,value:l,form:f,...t,tabIndex:-1,ref:m,style:{...t.style,...p,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});ZE.displayName=XE;function U5(e){return typeof e=="function"}function jr(e){return e==="indeterminate"}function JE(e){return jr(e)?"indeterminate":e?"checked":"unchecked"}const H5=["top","right","bottom","left"],kr=Math.min,ct=Math.max,Hs=Math.round,Io=Math.floor,Wt=e=>({x:e,y:e}),V5={left:"right",right:"left",bottom:"top",top:"bottom"},K5={start:"end",end:"start"};function Kh(e,t,r){return ct(e,kr(t,r))}function hr(e,t){return typeof e=="function"?e(t):e}function vr(e){return e.split("-")[0]}function Ii(e){return e.split("-")[1]}function Tm(e){return e==="x"?"y":"x"}function Cm(e){return e==="y"?"height":"width"}const G5=new Set(["top","bottom"]);function qt(e){return G5.has(vr(e))?"y":"x"}function jm(e){return Tm(qt(e))}function Y5(e,t,r){r===void 0&&(r=!1);const n=Ii(e),i=jm(e),a=Cm(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Vs(o)),[o,Vs(o)]}function X5(e){const t=Vs(e);return[Gh(e),t,Gh(t)]}function Gh(e){return e.replace(/start|end/g,t=>K5[t])}const kO=["left","right"],RO=["right","left"],Z5=["top","bottom"],J5=["bottom","top"];function Q5(e,t,r){switch(e){case"top":case"bottom":return r?t?RO:kO:t?kO:RO;case"left":case"right":return t?Z5:J5;default:return[]}}function e8(e,t,r,n){const i=Ii(e);let a=Q5(vr(e),r==="start",n);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(Gh)))),a}function Vs(e){return e.replace(/left|right|bottom|top/g,t=>V5[t])}function t8(e){return{top:0,right:0,bottom:0,left:0,...e}}function QE(e){return typeof e!="number"?t8(e):{top:e,right:e,bottom:e,left:e}}function Ks(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function MO(e,t,r){let{reference:n,floating:i}=e;const a=qt(t),o=jm(t),s=Cm(o),c=vr(t),u=a==="y",l=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,d=n[s]/2-i[s]/2;let h;switch(c){case"top":h={x:l,y:n.y-i.height};break;case"bottom":h={x:l,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-i.width,y:f};break;default:h={x:n.x,y:n.y}}switch(Ii(t)){case"start":h[o]-=d*(r&&u?-1:1);break;case"end":h[o]+=d*(r&&u?-1:1);break}return h}const r8=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:o}=r,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:l,y:f}=MO(u,n,c),d=n,h={},m=0;for(let v=0;v<s.length;v++){const{name:p,fn:g}=s[v],{x:b,y:x,data:w,reset:y}=await g({x:l,y:f,initialPlacement:n,placement:d,strategy:i,middlewareData:h,rects:u,platform:o,elements:{reference:e,floating:t}});l=b??l,f=x??f,h={...h,[p]:{...h[p],...w}},y&&m<=50&&(m++,typeof y=="object"&&(y.placement&&(d=y.placement),y.rects&&(u=y.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:l,y:f}=MO(u,d,c)),v=-1)}return{x:l,y:f,placement:d,strategy:i,middlewareData:h}};async function qa(e,t){var r;t===void 0&&(t={});const{x:n,y:i,platform:a,rects:o,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=hr(t,e),m=QE(h),p=s[d?f==="floating"?"reference":"floating":f],g=Ks(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(p)))==null||r?p:p.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:l,strategy:c})),b=f==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),w=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},y=Ks(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:x,strategy:c}):b);return{top:(g.top-y.top+m.top)/w.y,bottom:(y.bottom-g.bottom+m.bottom)/w.y,left:(g.left-y.left+m.left)/w.x,right:(y.right-g.right+m.right)/w.x}}const n8=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:u,padding:l=0}=hr(e,t)||{};if(u==null)return{};const f=QE(l),d={x:r,y:n},h=jm(i),m=Cm(h),v=await o.getDimensions(u),p=h==="y",g=p?"top":"left",b=p?"bottom":"right",x=p?"clientHeight":"clientWidth",w=a.reference[m]+a.reference[h]-d[h]-a.floating[m],y=d[h]-a.reference[h],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let O=S?S[x]:0;(!O||!await(o.isElement==null?void 0:o.isElement(S)))&&(O=s.floating[x]||a.floating[m]);const P=w/2-y/2,T=O/2-v[m]/2-1,k=kr(f[g],T),C=kr(f[b],T),j=k,R=O-v[m]-C,N=O/2-v[m]/2+P,D=Kh(j,N,R),$=!c.arrow&&Ii(i)!=null&&N!==D&&a.reference[m]/2-(N<j?k:C)-v[m]/2<0,L=$?N<j?N-j:N-R:0;return{[h]:d[h]+L,data:{[h]:D,centerOffset:N-D-L,...$&&{alignmentOffset:L}},reset:$}}}),i8=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:l=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0,...p}=hr(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const g=vr(i),b=qt(s),x=vr(s)===s,w=await(c.isRTL==null?void 0:c.isRTL(u.floating)),y=d||(x||!v?[Vs(s)]:X5(s)),S=m!=="none";!d&&S&&y.push(...e8(s,v,m,w));const O=[s,...y],P=await qa(t,p),T=[];let k=((n=a.flip)==null?void 0:n.overflows)||[];if(l&&T.push(P[g]),f){const N=Y5(i,o,w);T.push(P[N[0]],P[N[1]])}if(k=[...k,{placement:i,overflows:T}],!T.every(N=>N<=0)){var C,j;const N=(((C=a.flip)==null?void 0:C.index)||0)+1,D=O[N];if(D&&(!(f==="alignment"?b!==qt(D):!1)||k.every(B=>qt(B.placement)===b?B.overflows[0]>0:!0)))return{data:{index:N,overflows:k},reset:{placement:D}};let $=(j=k.filter(L=>L.overflows[0]<=0).sort((L,B)=>L.overflows[1]-B.overflows[1])[0])==null?void 0:j.placement;if(!$)switch(h){case"bestFit":{var R;const L=(R=k.filter(B=>{if(S){const W=qt(B.placement);return W===b||W==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(W=>W>0).reduce((W,I)=>W+I,0)]).sort((B,W)=>B[1]-W[1])[0])==null?void 0:R[0];L&&($=L);break}case"initialPlacement":$=s;break}if(i!==$)return{reset:{placement:$}}}return{}}}};function $O(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function NO(e){return H5.some(t=>e[t]>=0)}const a8=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...i}=hr(e,t);switch(n){case"referenceHidden":{const a=await qa(t,{...i,elementContext:"reference"}),o=$O(a,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:NO(o)}}}case"escaped":{const a=await qa(t,{...i,altBoundary:!0}),o=$O(a,r.floating);return{data:{escapedOffsets:o,escaped:NO(o)}}}default:return{}}}}},eT=new Set(["left","top"]);async function o8(e,t){const{placement:r,platform:n,elements:i}=e,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=vr(r),s=Ii(r),c=qt(r)==="y",u=eT.has(o)?-1:1,l=a&&c?-1:1,f=hr(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof m=="number"&&(h=s==="end"?m*-1:m),c?{x:h*l,y:d*u}:{x:d*u,y:h*l}}const s8=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:a,placement:o,middlewareData:s}=t,c=await o8(t,e);return o===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:i+c.x,y:a+c.y,data:{...c,placement:o}}}}},c8=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:p=>{let{x:g,y:b}=p;return{x:g,y:b}}},...c}=hr(e,t),u={x:r,y:n},l=await qa(t,c),f=qt(vr(i)),d=Tm(f);let h=u[d],m=u[f];if(a){const p=d==="y"?"top":"left",g=d==="y"?"bottom":"right",b=h+l[p],x=h-l[g];h=Kh(b,h,x)}if(o){const p=f==="y"?"top":"left",g=f==="y"?"bottom":"right",b=m+l[p],x=m-l[g];m=Kh(b,m,x)}const v=s.fn({...t,[d]:h,[f]:m});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[d]:a,[f]:o}}}}}},u8=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=hr(e,t),l={x:r,y:n},f=qt(i),d=Tm(f);let h=l[d],m=l[f];const v=hr(s,t),p=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const x=d==="y"?"height":"width",w=a.reference[d]-a.floating[x]+p.mainAxis,y=a.reference[d]+a.reference[x]-p.mainAxis;h<w?h=w:h>y&&(h=y)}if(u){var g,b;const x=d==="y"?"width":"height",w=eT.has(vr(i)),y=a.reference[f]-a.floating[x]+(w&&((g=o.offset)==null?void 0:g[f])||0)+(w?0:p.crossAxis),S=a.reference[f]+a.reference[x]+(w?0:((b=o.offset)==null?void 0:b[f])||0)-(w?p.crossAxis:0);m<y?m=y:m>S&&(m=S)}return{[d]:h,[f]:m}}}},l8=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...u}=hr(e,t),l=await qa(t,u),f=vr(i),d=Ii(i),h=qt(i)==="y",{width:m,height:v}=a.floating;let p,g;f==="top"||f==="bottom"?(p=f,g=d===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(g=f,p=d==="end"?"top":"bottom");const b=v-l.top-l.bottom,x=m-l.left-l.right,w=kr(v-l[p],b),y=kr(m-l[g],x),S=!t.middlewareData.shift;let O=w,P=y;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(P=x),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(O=b),S&&!d){const k=ct(l.left,0),C=ct(l.right,0),j=ct(l.top,0),R=ct(l.bottom,0);h?P=m-2*(k!==0||C!==0?k+C:ct(l.left,l.right)):O=v-2*(j!==0||R!==0?j+R:ct(l.top,l.bottom))}await c({...t,availableWidth:P,availableHeight:O});const T=await o.getDimensions(s.floating);return m!==T.width||v!==T.height?{reset:{rects:!0}}:{}}}};function qc(){return typeof window<"u"}function ki(e){return tT(e)?(e.nodeName||"").toLowerCase():"#document"}function ft(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zt(e){var t;return(t=(tT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function tT(e){return qc()?e instanceof Node||e instanceof ft(e).Node:!1}function It(e){return qc()?e instanceof Element||e instanceof ft(e).Element:!1}function Vt(e){return qc()?e instanceof HTMLElement||e instanceof ft(e).HTMLElement:!1}function DO(e){return!qc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ft(e).ShadowRoot}const f8=new Set(["inline","contents"]);function to(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!f8.has(i)}const d8=new Set(["table","td","th"]);function p8(e){return d8.has(ki(e))}const h8=[":popover-open",":modal"];function Fc(e){return h8.some(t=>{try{return e.matches(t)}catch{return!1}})}const v8=["transform","translate","scale","rotate","perspective"],m8=["transform","translate","scale","rotate","perspective","filter"],y8=["paint","layout","strict","content"];function Im(e){const t=km(),r=It(e)?kt(e):e;return v8.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||m8.some(n=>(r.willChange||"").includes(n))||y8.some(n=>(r.contain||"").includes(n))}function g8(e){let t=Rr(e);for(;Vt(t)&&!yi(t);){if(Im(t))return t;if(Fc(t))return null;t=Rr(t)}return null}function km(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const b8=new Set(["html","body","#document"]);function yi(e){return b8.has(ki(e))}function kt(e){return ft(e).getComputedStyle(e)}function zc(e){return It(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Rr(e){if(ki(e)==="html")return e;const t=e.assignedSlot||e.parentNode||DO(e)&&e.host||Zt(e);return DO(t)?t.host:t}function rT(e){const t=Rr(e);return yi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Vt(t)&&to(t)?t:rT(t)}function Fa(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=rT(e),a=i===((n=e.ownerDocument)==null?void 0:n.body),o=ft(i);if(a){const s=Yh(o);return t.concat(o,o.visualViewport||[],to(i)?i:[],s&&r?Fa(s):[])}return t.concat(i,Fa(i,[],r))}function Yh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function nT(e){const t=kt(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=Vt(e),a=i?e.offsetWidth:r,o=i?e.offsetHeight:n,s=Hs(r)!==a||Hs(n)!==o;return s&&(r=a,n=o),{width:r,height:n,$:s}}function Rm(e){return It(e)?e:e.contextElement}function Ln(e){const t=Rm(e);if(!Vt(t))return Wt(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:a}=nT(t);let o=(a?Hs(r.width):r.width)/n,s=(a?Hs(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const x8=Wt(0);function iT(e){const t=ft(e);return!km()||!t.visualViewport?x8:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function w8(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ft(e)?!1:t}function fn(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),a=Rm(e);let o=Wt(1);t&&(n?It(n)&&(o=Ln(n)):o=Ln(e));const s=w8(a,r,n)?iT(a):Wt(0);let c=(i.left+s.x)/o.x,u=(i.top+s.y)/o.y,l=i.width/o.x,f=i.height/o.y;if(a){const d=ft(a),h=n&&It(n)?ft(n):n;let m=d,v=Yh(m);for(;v&&n&&h!==m;){const p=Ln(v),g=v.getBoundingClientRect(),b=kt(v),x=g.left+(v.clientLeft+parseFloat(b.paddingLeft))*p.x,w=g.top+(v.clientTop+parseFloat(b.paddingTop))*p.y;c*=p.x,u*=p.y,l*=p.x,f*=p.y,c+=x,u+=w,m=ft(v),v=Yh(m)}}return Ks({width:l,height:f,x:c,y:u})}function Mm(e,t){const r=zc(e).scrollLeft;return t?t.left+r:fn(Zt(e)).left+r}function aT(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-(r?0:Mm(e,n)),a=n.top+t.scrollTop;return{x:i,y:a}}function S8(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const a=i==="fixed",o=Zt(n),s=t?Fc(t.floating):!1;if(n===o||s&&a)return r;let c={scrollLeft:0,scrollTop:0},u=Wt(1);const l=Wt(0),f=Vt(n);if((f||!f&&!a)&&((ki(n)!=="body"||to(o))&&(c=zc(n)),Vt(n))){const h=fn(n);u=Ln(n),l.x=h.x+n.clientLeft,l.y=h.y+n.clientTop}const d=o&&!f&&!a?aT(o,c,!0):Wt(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+l.x+d.x,y:r.y*u.y-c.scrollTop*u.y+l.y+d.y}}function O8(e){return Array.from(e.getClientRects())}function A8(e){const t=Zt(e),r=zc(e),n=e.ownerDocument.body,i=ct(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=ct(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+Mm(e);const s=-r.scrollTop;return kt(n).direction==="rtl"&&(o+=ct(t.clientWidth,n.clientWidth)-i),{width:i,height:a,x:o,y:s}}function _8(e,t){const r=ft(e),n=Zt(e),i=r.visualViewport;let a=n.clientWidth,o=n.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;const u=km();(!u||u&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}const P8=new Set(["absolute","fixed"]);function E8(e,t){const r=fn(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,a=Vt(e)?Ln(e):Wt(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,c=i*a.x,u=n*a.y;return{width:o,height:s,x:c,y:u}}function LO(e,t,r){let n;if(t==="viewport")n=_8(e,r);else if(t==="document")n=A8(Zt(e));else if(It(t))n=E8(t,r);else{const i=iT(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Ks(n)}function oT(e,t){const r=Rr(e);return r===t||!It(r)||yi(r)?!1:kt(r).position==="fixed"||oT(r,t)}function T8(e,t){const r=t.get(e);if(r)return r;let n=Fa(e,[],!1).filter(s=>It(s)&&ki(s)!=="body"),i=null;const a=kt(e).position==="fixed";let o=a?Rr(e):e;for(;It(o)&&!yi(o);){const s=kt(o),c=Im(o);!c&&s.position==="fixed"&&(i=null),(a?!c&&!i:!c&&s.position==="static"&&!!i&&P8.has(i.position)||to(o)&&!c&&oT(e,o))?n=n.filter(l=>l!==o):i=s,o=Rr(o)}return t.set(e,n),n}function C8(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const o=[...r==="clippingAncestors"?Fc(t)?[]:T8(t,this._c):[].concat(r),n],s=o[0],c=o.reduce((u,l)=>{const f=LO(t,l,i);return u.top=ct(f.top,u.top),u.right=kr(f.right,u.right),u.bottom=kr(f.bottom,u.bottom),u.left=ct(f.left,u.left),u},LO(t,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function j8(e){const{width:t,height:r}=nT(e);return{width:t,height:r}}function I8(e,t,r){const n=Vt(t),i=Zt(t),a=r==="fixed",o=fn(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=Wt(0);function u(){c.x=Mm(i)}if(n||!n&&!a)if((ki(t)!=="body"||to(i))&&(s=zc(t)),n){const h=fn(t,!0,a,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else i&&u();a&&!n&&i&&u();const l=i&&!n&&!a?aT(i,s):Wt(0),f=o.left+s.scrollLeft-c.x-l.x,d=o.top+s.scrollTop-c.y-l.y;return{x:f,y:d,width:o.width,height:o.height}}function vp(e){return kt(e).position==="static"}function BO(e,t){if(!Vt(e)||kt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Zt(e)===r&&(r=r.ownerDocument.body),r}function sT(e,t){const r=ft(e);if(Fc(e))return r;if(!Vt(e)){let i=Rr(e);for(;i&&!yi(i);){if(It(i)&&!vp(i))return i;i=Rr(i)}return r}let n=BO(e,t);for(;n&&p8(n)&&vp(n);)n=BO(n,t);return n&&yi(n)&&vp(n)&&!Im(n)?r:n||g8(e)||r}const k8=async function(e){const t=this.getOffsetParent||sT,r=this.getDimensions,n=await r(e.floating);return{reference:I8(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function R8(e){return kt(e).direction==="rtl"}const M8={convertOffsetParentRelativeRectToViewportRelativeRect:S8,getDocumentElement:Zt,getClippingRect:C8,getOffsetParent:sT,getElementRects:k8,getClientRects:O8,getDimensions:j8,getScale:Ln,isElement:It,isRTL:R8};function cT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $8(e,t){let r=null,n;const i=Zt(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const u=e.getBoundingClientRect(),{left:l,top:f,width:d,height:h}=u;if(s||t(),!d||!h)return;const m=Io(f),v=Io(i.clientWidth-(l+d)),p=Io(i.clientHeight-(f+h)),g=Io(l),x={rootMargin:-m+"px "+-v+"px "+-p+"px "+-g+"px",threshold:ct(0,kr(1,c))||1};let w=!0;function y(S){const O=S[0].intersectionRatio;if(O!==c){if(!w)return o();O?o(!1,O):n=setTimeout(()=>{o(!1,1e-7)},1e3)}O===1&&!cT(u,e.getBoundingClientRect())&&o(),w=!1}try{r=new IntersectionObserver(y,{...x,root:i.ownerDocument})}catch{r=new IntersectionObserver(y,x)}r.observe(e)}return o(!0),a}function N8(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=Rm(e),l=i||a?[...u?Fa(u):[],...Fa(t)]:[];l.forEach(g=>{i&&g.addEventListener("scroll",r,{passive:!0}),a&&g.addEventListener("resize",r)});const f=u&&s?$8(u,r):null;let d=-1,h=null;o&&(h=new ResizeObserver(g=>{let[b]=g;b&&b.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),r()}),u&&!c&&h.observe(u),h.observe(t));let m,v=c?fn(e):null;c&&p();function p(){const g=fn(e);v&&!cT(v,g)&&r(),v=g,m=requestAnimationFrame(p)}return r(),()=>{var g;l.forEach(b=>{i&&b.removeEventListener("scroll",r),a&&b.removeEventListener("resize",r)}),f?.(),(g=h)==null||g.disconnect(),h=null,c&&cancelAnimationFrame(m)}}const D8=s8,L8=c8,B8=i8,q8=l8,F8=a8,qO=n8,z8=u8,W8=(e,t,r)=>{const n=new Map,i={platform:M8,...r},a={...i.platform,_c:n};return r8(e,t,{...i,platform:a})};var U8=typeof document<"u",H8=function(){},$o=U8?A.useLayoutEffect:H8;function Gs(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Gs(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const a=i[n];if(!(a==="_owner"&&e.$$typeof)&&!Gs(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function uT(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function FO(e,t){const r=uT(e);return Math.round(t*r)/r}function mp(e){const t=E.useRef(e);return $o(()=>{t.current=e}),t}function V8(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[l,f]=E.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=E.useState(n);Gs(d,n)||h(n);const[m,v]=E.useState(null),[p,g]=E.useState(null),b=E.useCallback(B=>{B!==S.current&&(S.current=B,v(B))},[]),x=E.useCallback(B=>{B!==O.current&&(O.current=B,g(B))},[]),w=a||m,y=o||p,S=E.useRef(null),O=E.useRef(null),P=E.useRef(l),T=c!=null,k=mp(c),C=mp(i),j=mp(u),R=E.useCallback(()=>{if(!S.current||!O.current)return;const B={placement:t,strategy:r,middleware:d};C.current&&(B.platform=C.current),W8(S.current,O.current,B).then(W=>{const I={...W,isPositioned:j.current!==!1};N.current&&!Gs(P.current,I)&&(P.current=I,Js.flushSync(()=>{f(I)}))})},[d,t,r,C,j]);$o(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(B=>({...B,isPositioned:!1})))},[u]);const N=E.useRef(!1);$o(()=>(N.current=!0,()=>{N.current=!1}),[]),$o(()=>{if(w&&(S.current=w),y&&(O.current=y),w&&y){if(k.current)return k.current(w,y,R);R()}},[w,y,R,k,T]);const D=E.useMemo(()=>({reference:S,floating:O,setReference:b,setFloating:x}),[b,x]),$=E.useMemo(()=>({reference:w,floating:y}),[w,y]),L=E.useMemo(()=>{const B={position:r,left:0,top:0};if(!$.floating)return B;const W=FO($.floating,l.x),I=FO($.floating,l.y);return s?{...B,transform:"translate("+W+"px, "+I+"px)",...uT($.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:W,top:I}},[r,s,$.floating,l.x,l.y]);return E.useMemo(()=>({...l,update:R,refs:D,elements:$,floatingStyles:L}),[l,R,D,$,L])}const K8=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:i}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?qO({element:n.current,padding:i}).fn(r):{}:n?qO({element:n,padding:i}).fn(r):{}}}},G8=(e,t)=>({...D8(e),options:[e,t]}),Y8=(e,t)=>({...L8(e),options:[e,t]}),X8=(e,t)=>({...z8(e),options:[e,t]}),Z8=(e,t)=>({...B8(e),options:[e,t]}),J8=(e,t)=>({...q8(e),options:[e,t]}),Q8=(e,t)=>({...F8(e),options:[e,t]}),e6=(e,t)=>({...K8(e),options:[e,t]});var t6="Arrow",lT=E.forwardRef((e,t)=>{const{children:r,width:n=10,height:i=5,...a}=e;return _.jsx(de.svg,{...a,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:_.jsx("polygon",{points:"0,0 30,0 15,10"})})});lT.displayName=t6;var r6=lT,$m="Popper",[fT,Nm]=Mt($m),[n6,dT]=fT($m),pT=e=>{const{__scopePopper:t,children:r}=e,[n,i]=E.useState(null);return _.jsx(n6,{scope:t,anchor:n,onAnchorChange:i,children:r})};pT.displayName=$m;var hT="PopperAnchor",vT=E.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,a=dT(hT,r),o=E.useRef(null),s=Re(t,o),c=E.useRef(null);return E.useEffect(()=>{const u=c.current;c.current=n?.current||o.current,u!==c.current&&a.onAnchorChange(c.current)}),n?null:_.jsx(de.div,{...i,ref:s})});vT.displayName=hT;var Dm="PopperContent",[i6,a6]=fT(Dm),mT=E.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:a="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:l=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:h="optimized",onPlaced:m,...v}=e,p=dT(Dm,r),[g,b]=E.useState(null),x=Re(t,K=>b(K)),[w,y]=E.useState(null),S=UE(w),O=S?.width??0,P=S?.height??0,T=n+(a!=="center"?"-"+a:""),k=typeof l=="number"?l:{top:0,right:0,bottom:0,left:0,...l},C=Array.isArray(u)?u:[u],j=C.length>0,R={padding:k,boundary:C.filter(s6),altBoundary:j},{refs:N,floatingStyles:D,placement:$,isPositioned:L,middlewareData:B}=V8({strategy:"fixed",placement:T,whileElementsMounted:(...K)=>N8(...K,{animationFrame:h==="always"}),elements:{reference:p.anchor},middleware:[G8({mainAxis:i+P,alignmentAxis:o}),c&&Y8({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?X8():void 0,...R}),c&&Z8({...R}),J8({...R,apply:({elements:K,rects:ee,availableWidth:q,availableHeight:H})=>{const{width:X,height:M}=ee.reference,ce=K.floating.style;ce.setProperty("--radix-popper-available-width",`${q}px`),ce.setProperty("--radix-popper-available-height",`${H}px`),ce.setProperty("--radix-popper-anchor-width",`${X}px`),ce.setProperty("--radix-popper-anchor-height",`${M}px`)}}),w&&e6({element:w,padding:s}),c6({arrowWidth:O,arrowHeight:P}),d&&Q8({strategy:"referenceHidden",...R})]}),[W,I]=bT($),F=Ht(m);Ne(()=>{L&&F?.()},[L,F]);const U=B.arrow?.x,G=B.arrow?.y,Z=B.arrow?.centerOffset!==0,[J,Q]=E.useState();return Ne(()=>{g&&Q(window.getComputedStyle(g).zIndex)},[g]),_.jsx("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:L?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(" "),...B.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:_.jsx(i6,{scope:r,placedSide:W,onArrowChange:y,arrowX:U,arrowY:G,shouldHideArrow:Z,children:_.jsx(de.div,{"data-side":W,"data-align":I,...v,ref:x,style:{...v.style,animation:L?void 0:"none"}})})})});mT.displayName=Dm;var yT="PopperArrow",o6={top:"bottom",right:"left",bottom:"top",left:"right"},gT=E.forwardRef(function(t,r){const{__scopePopper:n,...i}=t,a=a6(yT,n),o=o6[a.placedSide];return _.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:_.jsx(r6,{...i,ref:r,style:{...i.style,display:"block"}})})});gT.displayName=yT;function s6(e){return e!==null}var c6=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,s=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[u,l]=bT(r),f={start:"0%",center:"50%",end:"100%"}[l],d=(i.arrow?.x??0)+s/2,h=(i.arrow?.y??0)+c/2;let m="",v="";return u==="bottom"?(m=o?f:`${d}px`,v=`${-c}px`):u==="top"?(m=o?f:`${d}px`,v=`${n.floating.height+c}px`):u==="right"?(m=`${-c}px`,v=o?f:`${h}px`):u==="left"&&(m=`${n.floating.width+c}px`,v=o?f:`${h}px`),{data:{x:m,y:v}}}});function bT(e){const[t,r="center"]=e.split("-");return[t,r]}var xT=pT,wT=vT,ST=mT,OT=gT,yp="rovingFocusGroup.onEntryFocus",u6={bubbles:!1,cancelable:!0},ro="RovingFocusGroup",[Xh,AT,l6]=pm(ro),[f6,_T]=Mt(ro,[l6]),[d6,p6]=f6(ro),PT=E.forwardRef((e,t)=>_.jsx(Xh.Provider,{scope:e.__scopeRovingFocusGroup,children:_.jsx(Xh.Slot,{scope:e.__scopeRovingFocusGroup,children:_.jsx(h6,{...e,ref:t})})}));PT.displayName=ro;var h6=E.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:l=!1,...f}=e,d=E.useRef(null),h=Re(t,d),m=$c(a),[v,p]=pr({prop:o,defaultProp:s??null,onChange:c,caller:ro}),[g,b]=E.useState(!1),x=Ht(u),w=AT(r),y=E.useRef(!1),[S,O]=E.useState(0);return E.useEffect(()=>{const P=d.current;if(P)return P.addEventListener(yp,x),()=>P.removeEventListener(yp,x)},[x]),_.jsx(d6,{scope:r,orientation:n,dir:m,loop:i,currentTabStopId:v,onItemFocus:E.useCallback(P=>p(P),[p]),onItemShiftTab:E.useCallback(()=>b(!0),[]),onFocusableItemAdd:E.useCallback(()=>O(P=>P+1),[]),onFocusableItemRemove:E.useCallback(()=>O(P=>P-1),[]),children:_.jsx(de.div,{tabIndex:g||S===0?-1:0,"data-orientation":n,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:he(e.onMouseDown,()=>{y.current=!0}),onFocus:he(e.onFocus,P=>{const T=!y.current;if(P.target===P.currentTarget&&T&&!g){const k=new CustomEvent(yp,u6);if(P.currentTarget.dispatchEvent(k),!k.defaultPrevented){const C=w().filter($=>$.focusable),j=C.find($=>$.active),R=C.find($=>$.id===v),D=[j,R,...C].filter(Boolean).map($=>$.ref.current);CT(D,l)}}y.current=!1}),onBlur:he(e.onBlur,()=>b(!1))})})}),ET="RovingFocusGroupItem",TT=E.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=zr(),u=a||c,l=p6(ET,r),f=l.currentTabStopId===u,d=AT(r),{onFocusableItemAdd:h,onFocusableItemRemove:m,currentTabStopId:v}=l;return E.useEffect(()=>{if(n)return h(),()=>m()},[n,h,m]),_.jsx(Xh.ItemSlot,{scope:r,id:u,focusable:n,active:i,children:_.jsx(de.span,{tabIndex:f?0:-1,"data-orientation":l.orientation,...s,ref:t,onMouseDown:he(e.onMouseDown,p=>{n?l.onItemFocus(u):p.preventDefault()}),onFocus:he(e.onFocus,()=>l.onItemFocus(u)),onKeyDown:he(e.onKeyDown,p=>{if(p.key==="Tab"&&p.shiftKey){l.onItemShiftTab();return}if(p.target!==p.currentTarget)return;const g=y6(p,l.orientation,l.dir);if(g!==void 0){if(p.metaKey||p.ctrlKey||p.altKey||p.shiftKey)return;p.preventDefault();let x=d().filter(w=>w.focusable).map(w=>w.ref.current);if(g==="last")x.reverse();else if(g==="prev"||g==="next"){g==="prev"&&x.reverse();const w=x.indexOf(p.currentTarget);x=l.loop?g6(x,w+1):x.slice(w+1)}setTimeout(()=>CT(x))}}),children:typeof o=="function"?o({isCurrentTabStop:f,hasTabStop:v!=null}):o})})});TT.displayName=ET;var v6={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function m6(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function y6(e,t,r){const n=m6(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return v6[n]}function CT(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function g6(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var b6=PT,x6=TT,w6="Label",jT=E.forwardRef((e,t)=>_.jsx(de.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));jT.displayName=w6;var S6=jT;function zO(e,[t,r]){return Math.min(r,Math.max(t,e))}var Lm="Progress",Bm=100,[O6]=Mt(Lm),[A6,_6]=O6(Lm),IT=E.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:i,getValueLabel:a=P6,...o}=e;(i||i===0)&&!WO(i)&&console.error(E6(`${i}`,"Progress"));const s=WO(i)?i:Bm;n!==null&&!UO(n,s)&&console.error(T6(`${n}`,"Progress"));const c=UO(n,s)?n:null,u=Ys(c)?a(c,s):void 0;return _.jsx(A6,{scope:r,value:c,max:s,children:_.jsx(de.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":Ys(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":MT(c,s),"data-value":c??void 0,"data-max":s,...o,ref:t})})});IT.displayName=Lm;var kT="ProgressIndicator",RT=E.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,i=_6(kT,r);return _.jsx(de.div,{"data-state":MT(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...n,ref:t})});RT.displayName=kT;function P6(e,t){return`${Math.round(e/t*100)}%`}function MT(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Ys(e){return typeof e=="number"}function WO(e){return Ys(e)&&!isNaN(e)&&e>0}function UO(e,t){return Ys(e)&&!isNaN(e)&&e<=t&&e>=0}function E6(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Bm}\`.`}function T6(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
256
256
|
- a positive number
|
|
257
257
|
- less than the value passed to \`max\` (or ${Bm} if no \`max\` prop is set)
|
|
258
258
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
259
259
|
|
|
260
|
-
Defaulting to \`null\`.`}var E6=IT,T6=kT,C6=[" ","Enter","ArrowUp","ArrowDown"],j6=[" ","Enter"],dn="Select",[Wc,Uc,I6]=pm(dn),[ki]=Mt(dn,[I6,Nm]),Hc=Nm(),[R6,Wr]=ki(dn),[k6,M6]=ki(dn),$T=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:u,name:l,autoComplete:f,disabled:d,required:h,form:m}=e,v=Hc(t),[p,g]=E.useState(null),[b,x]=E.useState(null),[w,y]=E.useState(!1),S=$c(u),[A,P]=dr({prop:n,defaultProp:i??!1,onChange:a,caller:dn}),[T,R]=dr({prop:o,defaultProp:s,onChange:c,caller:dn}),C=E.useRef(null),j=p?m||!!p.closest("form"):!0,[k,N]=E.useState(new Set),D=Array.from(k).map($=>$.props.value).join(";");return _.jsx(xT,{...v,children:_.jsxs(R6,{required:h,scope:t,trigger:p,onTriggerChange:g,valueNode:b,onValueNodeChange:x,valueNodeHasChildren:w,onValueNodeHasChildrenChange:y,contentId:zr(),value:T,onValueChange:R,open:A,onOpenChange:P,dir:S,triggerPointerDownPosRef:C,disabled:d,children:[_.jsx(Wc.Provider,{scope:t,children:_.jsx(k6,{scope:e.__scopeSelect,onNativeOptionAdd:E.useCallback($=>{N(L=>new Set(L).add($))},[]),onNativeOptionRemove:E.useCallback($=>{N(L=>{const B=new Set(L);return B.delete($),B})},[]),children:r})}),j?_.jsxs(nC,{"aria-hidden":!0,required:h,tabIndex:-1,name:l,autoComplete:f,value:T,onChange:$=>R($.target.value),disabled:d,form:m,children:[T===void 0?_.jsx("option",{value:""}):null,Array.from(k)]},D):null]})})};$T.displayName=dn;var NT="SelectTrigger",DT=E.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...i}=e,a=Hc(r),o=Wr(NT,r),s=o.disabled||n,c=ke(t,o.onTriggerChange),u=Uc(r),l=E.useRef("touch"),[f,d,h]=aC(v=>{const p=u().filter(x=>!x.disabled),g=p.find(x=>x.value===o.value),b=oC(p,v,g);b!==void 0&&o.onValueChange(b.value)}),m=v=>{s||(o.onOpenChange(!0),h()),v&&(o.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return _.jsx(wT,{asChild:!0,...a,children:_.jsx(de.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":iC(o.value)?"":void 0,...i,ref:c,onClick:he(i.onClick,v=>{v.currentTarget.focus(),l.current!=="mouse"&&m(v)}),onPointerDown:he(i.onPointerDown,v=>{l.current=v.pointerType;const p=v.target;p.hasPointerCapture(v.pointerId)&&p.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(m(v),v.preventDefault())}),onKeyDown:he(i.onKeyDown,v=>{const p=f.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&d(v.key),!(p&&v.key===" ")&&C6.includes(v.key)&&(m(),v.preventDefault())})})})});DT.displayName=NT;var LT="SelectValue",BT=E.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,children:a,placeholder:o="",...s}=e,c=Wr(LT,r),{onValueNodeHasChildrenChange:u}=c,l=a!==void 0,f=ke(t,c.onValueNodeChange);return Ne(()=>{u(l)},[u,l]),_.jsx(de.span,{...s,ref:f,style:{pointerEvents:"none"},children:iC(c.value)?_.jsx(_.Fragment,{children:o}):a})});BT.displayName=LT;var $6="SelectIcon",qT=E.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...i}=e;return _.jsx(de.span,{"aria-hidden":!0,...i,ref:t,children:n||"▼"})});qT.displayName=$6;var N6="SelectPortal",FT=e=>_.jsx(Am,{asChild:!0,...e});FT.displayName=N6;var pn="SelectContent",zT=E.forwardRef((e,t)=>{const r=Wr(pn,e.__scopeSelect),[n,i]=E.useState();if(Ne(()=>{i(new DocumentFragment)},[]),!r.open){const a=n;return a?Js.createPortal(_.jsx(WT,{scope:e.__scopeSelect,children:_.jsx(Wc.Slot,{scope:e.__scopeSelect,children:_.jsx("div",{children:e.children})})}),a):null}return _.jsx(UT,{...e,ref:t})});zT.displayName=pn;var At=10,[WT,Ur]=ki(pn),D6="SelectContentImpl",L6=mi("SelectContent.RemoveScroll"),UT=E.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:u,alignOffset:l,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:m,hideWhenDetached:v,avoidCollisions:p,...g}=e,b=Wr(pn,r),[x,w]=E.useState(null),[y,S]=E.useState(null),A=ke(t,K=>w(K)),[P,T]=E.useState(null),[R,C]=E.useState(null),j=Uc(r),[k,N]=E.useState(!1),D=E.useRef(!1);E.useEffect(()=>{if(x)return $E(x)},[x]),PE();const $=E.useCallback(K=>{const[ee,...q]=j().map(M=>M.ref.current),[H]=q.slice(-1),X=document.activeElement;for(const M of K)if(M===X||(M?.scrollIntoView({block:"nearest"}),M===ee&&y&&(y.scrollTop=0),M===H&&y&&(y.scrollTop=y.scrollHeight),M?.focus(),document.activeElement!==X))return},[j,y]),L=E.useCallback(()=>$([P,x]),[$,P,x]);E.useEffect(()=>{k&&L()},[k,L]);const{onOpenChange:B,triggerPointerDownPosRef:W}=b;E.useEffect(()=>{if(x){let K={x:0,y:0};const ee=H=>{K={x:Math.abs(Math.round(H.pageX)-(W.current?.x??0)),y:Math.abs(Math.round(H.pageY)-(W.current?.y??0))}},q=H=>{K.x<=10&&K.y<=10?H.preventDefault():x.contains(H.target)||B(!1),document.removeEventListener("pointermove",ee),W.current=null};return W.current!==null&&(document.addEventListener("pointermove",ee),document.addEventListener("pointerup",q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ee),document.removeEventListener("pointerup",q,{capture:!0})}}},[x,B,W]),E.useEffect(()=>{const K=()=>B(!1);return window.addEventListener("blur",K),window.addEventListener("resize",K),()=>{window.removeEventListener("blur",K),window.removeEventListener("resize",K)}},[B]);const[I,F]=aC(K=>{const ee=j().filter(X=>!X.disabled),q=ee.find(X=>X.ref.current===document.activeElement),H=oC(ee,K,q);H&&setTimeout(()=>H.ref.current.focus())}),U=E.useCallback((K,ee,q)=>{const H=!D.current&&!q;(b.value!==void 0&&b.value===ee||H)&&(T(K),H&&(D.current=!0))},[b.value]),G=E.useCallback(()=>x?.focus(),[x]),Z=E.useCallback((K,ee,q)=>{const H=!D.current&&!q;(b.value!==void 0&&b.value===ee||H)&&C(K)},[b.value]),J=n==="popper"?Zh:HT,Q=J===Zh?{side:s,sideOffset:c,align:u,alignOffset:l,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:m,hideWhenDetached:v,avoidCollisions:p}:{};return _.jsx(WT,{scope:r,content:x,viewport:y,onViewportChange:S,itemRefCallback:U,selectedItem:P,onItemLeave:G,itemTextRefCallback:Z,focusSelectedItem:L,selectedItemText:R,position:n,isPositioned:k,searchRef:I,children:_.jsx(_m,{as:L6,allowPinchZoom:!0,children:_.jsx(Om,{asChild:!0,trapped:b.open,onMountAutoFocus:K=>{K.preventDefault()},onUnmountAutoFocus:he(i,K=>{b.trigger?.focus({preventScroll:!0}),K.preventDefault()}),children:_.jsx(Sm,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:K=>K.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:_.jsx(J,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:K=>K.preventDefault(),...g,...Q,onPlaced:()=>N(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:he(g.onKeyDown,K=>{const ee=K.ctrlKey||K.altKey||K.metaKey;if(K.key==="Tab"&&K.preventDefault(),!ee&&K.key.length===1&&F(K.key),["ArrowUp","ArrowDown","Home","End"].includes(K.key)){let H=j().filter(X=>!X.disabled).map(X=>X.ref.current);if(["ArrowUp","End"].includes(K.key)&&(H=H.slice().reverse()),["ArrowUp","ArrowDown"].includes(K.key)){const X=K.target,M=H.indexOf(X);H=H.slice(M+1)}setTimeout(()=>$(H)),K.preventDefault()}})})})})})})});UT.displayName=D6;var B6="SelectItemAlignedPosition",HT=E.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...i}=e,a=Wr(pn,r),o=Ur(pn,r),[s,c]=E.useState(null),[u,l]=E.useState(null),f=ke(t,A=>l(A)),d=Uc(r),h=E.useRef(!1),m=E.useRef(!0),{viewport:v,selectedItem:p,selectedItemText:g,focusSelectedItem:b}=o,x=E.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&u&&v&&p&&g){const A=a.trigger.getBoundingClientRect(),P=u.getBoundingClientRect(),T=a.valueNode.getBoundingClientRect(),R=g.getBoundingClientRect();if(a.dir!=="rtl"){const X=R.left-P.left,M=T.left-X,ce=A.left-M,V=A.width+ce,ye=Math.max(V,P.width),Ae=window.innerWidth-At,$e=zO(M,[At,Math.max(At,Ae-ye)]);s.style.minWidth=V+"px",s.style.left=$e+"px"}else{const X=P.right-R.right,M=window.innerWidth-T.right-X,ce=window.innerWidth-A.right-M,V=A.width+ce,ye=Math.max(V,P.width),Ae=window.innerWidth-At,$e=zO(M,[At,Math.max(At,Ae-ye)]);s.style.minWidth=V+"px",s.style.right=$e+"px"}const C=d(),j=window.innerHeight-At*2,k=v.scrollHeight,N=window.getComputedStyle(u),D=parseInt(N.borderTopWidth,10),$=parseInt(N.paddingTop,10),L=parseInt(N.borderBottomWidth,10),B=parseInt(N.paddingBottom,10),W=D+$+k+B+L,I=Math.min(p.offsetHeight*5,W),F=window.getComputedStyle(v),U=parseInt(F.paddingTop,10),G=parseInt(F.paddingBottom,10),Z=A.top+A.height/2-At,J=j-Z,Q=p.offsetHeight/2,K=p.offsetTop+Q,ee=D+$+K,q=W-ee;if(ee<=Z){const X=C.length>0&&p===C[C.length-1].ref.current;s.style.bottom="0px";const M=u.clientHeight-v.offsetTop-v.offsetHeight,ce=Math.max(J,Q+(X?G:0)+M+L),V=ee+ce;s.style.height=V+"px"}else{const X=C.length>0&&p===C[0].ref.current;s.style.top="0px";const ce=Math.max(Z,D+v.offsetTop+(X?U:0)+Q)+q;s.style.height=ce+"px",v.scrollTop=ee-Z+v.offsetTop}s.style.margin=`${At}px 0`,s.style.minHeight=I+"px",s.style.maxHeight=j+"px",n?.(),requestAnimationFrame(()=>h.current=!0)}},[d,a.trigger,a.valueNode,s,u,v,p,g,a.dir,n]);Ne(()=>x(),[x]);const[w,y]=E.useState();Ne(()=>{u&&y(window.getComputedStyle(u).zIndex)},[u]);const S=E.useCallback(A=>{A&&m.current===!0&&(x(),b?.(),m.current=!1)},[x,b]);return _.jsx(F6,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:S,children:_.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:_.jsx(de.div,{...i,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});HT.displayName=B6;var q6="SelectPopperPosition",Zh=E.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:i=At,...a}=e,o=Hc(r);return _.jsx(ST,{...o,...a,ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Zh.displayName=q6;var[F6,qm]=ki(pn,{}),Jh="SelectViewport",VT=E.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...i}=e,a=Ur(Jh,r),o=qm(Jh,r),s=ke(t,a.onViewportChange),c=E.useRef(0);return _.jsxs(_.Fragment,{children:[_.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),_.jsx(Wc.Slot,{scope:r,children:_.jsx(de.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:he(i.onScroll,u=>{const l=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=o;if(d?.current&&f){const h=Math.abs(c.current-l.scrollTop);if(h>0){const m=window.innerHeight-At*2,v=parseFloat(f.style.minHeight),p=parseFloat(f.style.height),g=Math.max(v,p);if(g<m){const b=g+h,x=Math.min(m,b),w=b-x;f.style.height=x+"px",f.style.bottom==="0px"&&(l.scrollTop=w>0?w:0,f.style.justifyContent="flex-end")}}}c.current=l.scrollTop})})})]})});VT.displayName=Jh;var KT="SelectGroup",[z6,W6]=ki(KT),U6=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=zr();return _.jsx(z6,{scope:r,id:i,children:_.jsx(de.div,{role:"group","aria-labelledby":i,...n,ref:t})})});U6.displayName=KT;var GT="SelectLabel",H6=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=W6(GT,r);return _.jsx(de.div,{id:i.id,...n,ref:t})});H6.displayName=GT;var Xs="SelectItem",[V6,YT]=ki(Xs),XT=E.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:i=!1,textValue:a,...o}=e,s=Wr(Xs,r),c=Ur(Xs,r),u=s.value===n,[l,f]=E.useState(a??""),[d,h]=E.useState(!1),m=ke(t,b=>c.itemRefCallback?.(b,n,i)),v=zr(),p=E.useRef("touch"),g=()=>{i||(s.onValueChange(n),s.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return _.jsx(V6,{scope:r,value:n,disabled:i,textId:v,isSelected:u,onItemTextChange:E.useCallback(b=>{f(x=>x||(b?.textContent??"").trim())},[]),children:_.jsx(Wc.ItemSlot,{scope:r,value:n,disabled:i,textValue:l,children:_.jsx(de.div,{role:"option","aria-labelledby":v,"data-highlighted":d?"":void 0,"aria-selected":u&&d,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:he(o.onFocus,()=>h(!0)),onBlur:he(o.onBlur,()=>h(!1)),onClick:he(o.onClick,()=>{p.current!=="mouse"&&g()}),onPointerUp:he(o.onPointerUp,()=>{p.current==="mouse"&&g()}),onPointerDown:he(o.onPointerDown,b=>{p.current=b.pointerType}),onPointerMove:he(o.onPointerMove,b=>{p.current=b.pointerType,i?c.onItemLeave?.():p.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:he(o.onPointerLeave,b=>{b.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:he(o.onKeyDown,b=>{c.searchRef?.current!==""&&b.key===" "||(j6.includes(b.key)&&g(),b.key===" "&&b.preventDefault())})})})})});XT.displayName=Xs;var Gi="SelectItemText",ZT=E.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,...a}=e,o=Wr(Gi,r),s=Ur(Gi,r),c=YT(Gi,r),u=M6(Gi,r),[l,f]=E.useState(null),d=ke(t,g=>f(g),c.onItemTextChange,g=>s.itemTextRefCallback?.(g,c.value,c.disabled)),h=l?.textContent,m=E.useMemo(()=>_.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:v,onNativeOptionRemove:p}=u;return Ne(()=>(v(m),()=>p(m)),[v,p,m]),_.jsxs(_.Fragment,{children:[_.jsx(de.span,{id:c.textId,...a,ref:d}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?Js.createPortal(a.children,o.valueNode):null]})});ZT.displayName=Gi;var JT="SelectItemIndicator",QT=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return YT(JT,r).isSelected?_.jsx(de.span,{"aria-hidden":!0,...n,ref:t}):null});QT.displayName=JT;var Qh="SelectScrollUpButton",eC=E.forwardRef((e,t)=>{const r=Ur(Qh,e.__scopeSelect),n=qm(Qh,e.__scopeSelect),[i,a]=E.useState(!1),o=ke(t,n.onScrollButtonChange);return Ne(()=>{if(r.viewport&&r.isPositioned){let s=function(){const u=c.scrollTop>0;a(u)};const c=r.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),i?_.jsx(rC,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=r;s&&c&&(s.scrollTop=s.scrollTop-c.offsetHeight)}}):null});eC.displayName=Qh;var ev="SelectScrollDownButton",tC=E.forwardRef((e,t)=>{const r=Ur(ev,e.__scopeSelect),n=qm(ev,e.__scopeSelect),[i,a]=E.useState(!1),o=ke(t,n.onScrollButtonChange);return Ne(()=>{if(r.viewport&&r.isPositioned){let s=function(){const u=c.scrollHeight-c.clientHeight,l=Math.ceil(c.scrollTop)<u;a(l)};const c=r.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),i?_.jsx(rC,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=r;s&&c&&(s.scrollTop=s.scrollTop+c.offsetHeight)}}):null});tC.displayName=ev;var rC=E.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...i}=e,a=Ur("SelectScrollButton",r),o=E.useRef(null),s=Uc(r),c=E.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return E.useEffect(()=>()=>c(),[c]),Ne(()=>{s().find(l=>l.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),_.jsx(de.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:he(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(n,50))}),onPointerMove:he(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(n,50))}),onPointerLeave:he(i.onPointerLeave,()=>{c()})})}),K6="SelectSeparator",G6=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return _.jsx(de.div,{"aria-hidden":!0,...n,ref:t})});G6.displayName=K6;var tv="SelectArrow",Y6=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=Hc(r),a=Wr(tv,r),o=Ur(tv,r);return a.open&&o.position==="popper"?_.jsx(OT,{...i,...n,ref:t}):null});Y6.displayName=tv;var X6="SelectBubbleInput",nC=E.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const i=E.useRef(null),a=ke(n,i),o=WE(t);return E.useEffect(()=>{const s=i.current;if(!s)return;const c=window.HTMLSelectElement.prototype,l=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==t&&l){const f=new Event("change",{bubbles:!0});l.call(s,t),s.dispatchEvent(f)}},[o,t]),_.jsx(de.select,{...r,style:{...oE,...r.style},ref:a,defaultValue:t})});nC.displayName=X6;function iC(e){return e===""||e===void 0}function aC(e){const t=Ut(e),r=E.useRef(""),n=E.useRef(0),i=E.useCallback(o=>{const s=r.current+o;t(s),(function c(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>c(""),1e3))})(s)},[t]),a=E.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return E.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,a]}function oC(e,t,r){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let o=Z6(e,Math.max(a,0));i.length===1&&(o=o.filter(u=>u!==r));const c=o.find(u=>u.textValue.toLowerCase().startsWith(i.toLowerCase()));return c!==r?c:void 0}function Z6(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var J6=$T,Q6=DT,e4=BT,t4=qT,r4=FT,n4=zT,i4=VT,a4=XT,o4=ZT,s4=QT,c4=eC,u4=tC,l4="Separator",HO="horizontal",f4=["horizontal","vertical"],sC=E.forwardRef((e,t)=>{const{decorative:r,orientation:n=HO,...i}=e,a=d4(n)?n:HO,s=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return _.jsx(de.div,{"data-orientation":a,...s,...i,ref:t})});sC.displayName=l4;function d4(e){return f4.includes(e)}var p4=sC,Vc="Tabs",[h4]=Mt(Vc,[_T]),cC=_T(),[v4,Fm]=h4(Vc),uC=E.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:i,defaultValue:a,orientation:o="horizontal",dir:s,activationMode:c="automatic",...u}=e,l=$c(s),[f,d]=dr({prop:n,onChange:i,defaultProp:a??"",caller:Vc});return _.jsx(v4,{scope:r,baseId:zr(),value:f,onValueChange:d,orientation:o,dir:l,activationMode:c,children:_.jsx(de.div,{dir:l,"data-orientation":o,...u,ref:t})})});uC.displayName=Vc;var lC="TabsList",fC=E.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...i}=e,a=Fm(lC,r),o=cC(r);return _.jsx(y6,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:n,children:_.jsx(de.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:t})})});fC.displayName=lC;var dC="TabsTrigger",pC=E.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:i=!1,...a}=e,o=Fm(dC,r),s=cC(r),c=mC(o.baseId,n),u=yC(o.baseId,n),l=n===o.value;return _.jsx(g6,{asChild:!0,...s,focusable:!i,active:l,children:_.jsx(de.button,{type:"button",role:"tab","aria-selected":l,"aria-controls":u,"data-state":l?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:c,...a,ref:t,onMouseDown:he(e.onMouseDown,f=>{!i&&f.button===0&&f.ctrlKey===!1?o.onValueChange(n):f.preventDefault()}),onKeyDown:he(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&o.onValueChange(n)}),onFocus:he(e.onFocus,()=>{const f=o.activationMode!=="manual";!l&&!i&&f&&o.onValueChange(n)})})})});pC.displayName=dC;var hC="TabsContent",vC=E.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:i,children:a,...o}=e,s=Fm(hC,r),c=mC(s.baseId,n),u=yC(s.baseId,n),l=n===s.value,f=E.useRef(l);return E.useEffect(()=>{const d=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(d)},[]),_.jsx(eo,{present:i||l,children:({present:d})=>_.jsx(de.div,{"data-state":l?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":c,hidden:!d,id:u,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:d&&a})})});vC.displayName=hC;function mC(e,t){return`${e}-trigger-${t}`}function yC(e,t){return`${e}-content-${t}`}var m4=uC,y4=fC,g4=pC,b4=vC;function x4({...e}){return _.jsx(S5,{"data-slot":"accordion",...e})}function w4({className:e,...t}){return _.jsx(O5,{"data-slot":"accordion-item",className:ae("border-b last:border-b-0",e),...t})}function S4({className:e,children:t,...r}){return _.jsx(A5,{className:"flex",children:_.jsxs(_5,{"data-slot":"accordion-trigger",className:ae("flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium text-foreground transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),...r,children:[t,_.jsx(Qs,{className:"pointer-events-none size-4 shrink-0 translate-y-0.5 text-muted-foreground transition-transform duration-200"})]})})}function O4({className:e,children:t,...r}){return _.jsx(P5,{"data-slot":"accordion-content",className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:_.jsx("div",{className:ae("pt-0 pb-4",e),children:t})})}const VO=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,KO=le,Mi=(e,t)=>r=>{var n;if(t?.variants==null)return KO(e,r?.class,r?.className);const{variants:i,defaultVariants:a}=t,o=Object.keys(i).map(u=>{const l=r?.[u],f=a?.[u];if(l===null)return null;const d=VO(l)||VO(f);return i[u][d]}),s=r&&Object.entries(r).reduce((u,l)=>{let[f,d]=l;return d===void 0||(u[f]=d),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,l)=>{let{class:f,className:d,...h}=l;return Object.entries(h).every(m=>{let[v,p]=m;return Array.isArray(p)?p.includes({...a,...s}[v]):{...a,...s}[v]===p})?[...u,f,d]:u},[]);return KO(e,o,c,r?.class,r?.className)},A4=Mi("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function _4({className:e,variant:t,...r}){return _.jsx("div",{"data-slot":"alert",role:"alert",className:ae(A4({variant:t}),e),...r})}function P4({className:e,...t}){return _.jsx("div",{"data-slot":"alert-title",className:ae("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",e),...t})}function E4({className:e,...t}){return _.jsx("div",{"data-slot":"alert-description",className:ae("col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed",e),...t})}function T4({className:e,size:t="default",...r}){return _.jsx(NG,{"data-slot":"avatar","data-size":t,className:ae("group/avatar relative flex size-8 shrink-0 overflow-hidden rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6",e),...r})}function C4({className:e,...t}){return _.jsx(DG,{"data-slot":"avatar-image",className:ae("aspect-square size-full",e),...t})}function j4({className:e,...t}){return _.jsx(LG,{"data-slot":"avatar-fallback",className:ae("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",e),...t})}const I4=Mi("inline-flex items-center justify-center rounded-full border border-transparent px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",success:"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100",warning:"bg-amber-100 text-amber-800 dark:bg-amber-900 dark:text-amber-100",error:"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100",destructive:"bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function R4({className:e,variant:t="default",asChild:r=!1,content:n,children:i,...a}){const o=r?iE:"span";return _.jsx(o,{"data-slot":"badge","data-variant":t,className:ae(I4({variant:t}),e),...a,children:n??i})}const k4=Mi("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function gC({className:e,variant:t="default",size:r="default",asChild:n=!1,...i}){const a=n?iE:"button";return _.jsx(a,{"data-slot":"button","data-variant":t,"data-size":r,className:ae(k4({variant:t,size:r,className:e})),...i})}function M4({className:e,...t}){return _.jsx(KE,{"data-slot":"checkbox",className:ae("peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary",e),...t,children:_.jsx(YE,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:_.jsx(sv,{className:"size-3.5"})})})}var $4=Symbol.for("react.lazy"),Zs=E[" use ".trim().toString()];function N4(e){return typeof e=="object"&&e!==null&&"then"in e}function bC(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===$4&&"_payload"in e&&N4(e._payload)}function xC(e){const t=L4(e),r=E.forwardRef((n,i)=>{let{children:a,...o}=n;bC(a)&&typeof Zs=="function"&&(a=Zs(a._payload));const s=E.Children.toArray(a),c=s.find(F4);if(c){const u=c.props.children,l=s.map(f=>f===c?E.Children.count(u)>1?E.Children.only(null):E.isValidElement(u)?u.props.children:null:f);return _.jsx(t,{...o,ref:i,children:E.isValidElement(u)?E.cloneElement(u,void 0,l):null})}return _.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}var D4=xC("Slot");function L4(e){const t=E.forwardRef((r,n)=>{let{children:i,...a}=r;if(bC(i)&&typeof Zs=="function"&&(i=Zs(i._payload)),E.isValidElement(i)){const o=W4(i),s=z4(a,i.props);return i.type!==E.Fragment&&(s.ref=n?dm(n,o):o),E.cloneElement(i,s)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wC=Symbol("radix.slottable");function B4(e){const t=({children:r})=>_.jsx(_.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=wC,t}var q4=B4("Slottable");function F4(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===wC}function z4(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...s)=>{const c=a(...s);return i(...s),c}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function W4(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const U4=Mi("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}}),SC=E.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...i},a)=>{const o=n?D4:"button";return _.jsx(o,{"data-slot":"button",className:ae(U4({variant:t,size:r,className:e})),ref:a,...i})});SC.displayName="Button";function H4({className:e,type:t,...r}){return _.jsx("input",{type:t,"data-slot":"input",className:ae("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",e),...r})}function OC({className:e,...t}){return _.jsx(x6,{"data-slot":"label",className:ae("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function V4({className:e,value:t,label:r,max:n=100,...i}){const a=t!=null&&n>0?Math.min(100,Math.max(0,t/n*100)):0;return _.jsxs("div",{className:ae("w-full space-y-2",e),children:[r&&_.jsxs("div",{className:"flex justify-between text-sm",children:[_.jsx("span",{children:r}),_.jsxs("span",{className:"text-muted-foreground",children:[a.toFixed(0),"%"]})]}),_.jsx(E6,{"data-slot":"progress",className:"relative h-2 w-full overflow-hidden rounded-full bg-primary/20",value:t,max:n,...i,children:_.jsx(T6,{"data-slot":"progress-indicator",className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-a}%)`}})})]})}function K4({...e}){return _.jsx(J6,{"data-slot":"select",...e})}function G4({...e}){return _.jsx(e4,{"data-slot":"select-value",...e})}function Y4({className:e,size:t="default",children:r,...n}){return _.jsxs(Q6,{"data-slot":"select-trigger","data-size":t,className:ae("flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),...n,children:[r,_.jsx(t4,{asChild:!0,children:_.jsx(Qs,{className:"size-4 opacity-50"})})]})}function X4({className:e,children:t,position:r="item-aligned",align:n="center",...i}){return _.jsx(r4,{children:_.jsxs(n4,{"data-slot":"select-content",className:ae("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,align:n,...i,children:[_.jsx(J4,{}),_.jsx(i4,{className:ae("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),_.jsx(Q4,{})]})})}function Z4({className:e,children:t,...r}){return _.jsxs(a4,{"data-slot":"select-item",className:ae("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r,children:[_.jsx("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:_.jsx(s4,{children:_.jsx(sv,{className:"size-4"})})}),_.jsx(o4,{children:t})]})}function J4({className:e,...t}){return _.jsx(c4,{"data-slot":"select-scroll-up-button",className:ae("flex cursor-default items-center justify-center py-1",e),...t,children:_.jsx(yA,{className:"size-4"})})}function Q4({className:e,...t}){return _.jsx(u4,{"data-slot":"select-scroll-down-button",className:ae("flex cursor-default items-center justify-center py-1",e),...t,children:_.jsx(Qs,{className:"size-4"})})}function GO({className:e,orientation:t="horizontal",decorative:r=!0,...n}){return _.jsx(p4,{"data-slot":"separator",decorative:r,orientation:t,className:ae("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...n})}function eY({className:e,...t}){return _.jsx("div",{"data-slot":"skeleton",className:ae("animate-pulse rounded-md bg-accent",e),...t})}function tY({className:e,...t}){return _.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:_.jsx("table",{"data-slot":"table",className:ae("w-full caption-bottom text-sm",e),...t})})}function rY({className:e,...t}){return _.jsx("thead",{"data-slot":"table-header",className:ae("[&_tr]:border-b",e),...t})}function nY({className:e,...t}){return _.jsx("tbody",{"data-slot":"table-body",className:ae("[&_tr:last-child]:border-0",e),...t})}function YO({className:e,...t}){return _.jsx("tr",{"data-slot":"table-row",className:ae("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t})}function iY({className:e,...t}){return _.jsx("th",{"data-slot":"table-head",className:ae("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function aY({className:e,...t}){return _.jsx("td",{"data-slot":"table-cell",className:ae("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function oY({className:e,orientation:t="horizontal",...r}){return _.jsx(m4,{"data-slot":"tabs","data-orientation":t,orientation:t,className:ae("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",e),...r})}const sY=Mi("rounded-lg p-[3px] group-data-[orientation=horizontal]/tabs:h-9 data-[variant=line]:rounded-none group/tabs-list text-muted-foreground inline-flex w-fit items-center justify-center group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function cY({className:e,variant:t="default",...r}){return _.jsx(y4,{"data-slot":"tabs-list","data-variant":t,className:ae(sY({variant:t}),e),...r})}function uY({className:e,...t}){return _.jsx(g4,{"data-slot":"tabs-trigger",className:ae("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",e),...t})}function lY({className:e,...t}){return _.jsx(b4,{"data-slot":"tabs-content",className:ae("flex-1 outline-none",e),...t})}function fY({type:e="single",children:t}){const r=x4;return _.jsx(r,{type:e,collapsible:e==="single",children:t})}function dY({value:e,title:t,children:r}){return _.jsxs(w4,{value:e,children:[_.jsx(S4,{children:t}),_.jsx(O4,{children:r})]})}const AC=O.createContext(null);function pY({children:e,tools:t}){const r=O.useCallback(async(i,a)=>{if(!t)return{success:!1,error:"Tools not available"};const o=t[i];if(!o)return{success:!1,error:`Tool "${i}" not found`};if(!o.execute)return{success:!1,error:`Tool "${i}" has no execute function`};try{const s=`action-${Date.now()}-${Math.random().toString(36).slice(2)}`;return{success:!0,result:await o.execute(a,{toolCallId:s,messages:[]})}}catch(s){return{success:!1,error:s instanceof Error?s.message:"Unknown error"}}},[t]),n=O.useCallback(i=>!!t?.[i]?.execute,[t]);return _.jsx(AC.Provider,{value:{executeTool:r,isToolAvailable:n},children:e})}function hY(){const e=O.useContext(AC);return e||{executeTool:async()=>({success:!1,error:"ToolExecutionProvider not found"}),isToolAvailable:()=>!1}}function vY({label:e,action:t,args:r,variant:n="default",size:i="default",className:a,disabled:o,...s}){const{executeTool:c,isToolAvailable:u}=hY(),[l,f]=E.useState(!1),d=u(t),[h,m]=E.useState(null),v=E.useCallback(async()=>{if(!(!d||l)){f(!0),m(null);try{const p=await c(t,r??{});!p.success&&p.error&&m(p.error)}catch(p){m(p instanceof Error?p.message:"Unknown error")}finally{f(!1)}}},[t,r,c,l,d]);return _.jsxs("div",{className:"inline-flex flex-col gap-1",children:[_.jsx(gC,{variant:h?"destructive":n,size:i,className:ae(a),onClick:()=>{v()},disabled:o||l||!d,...s,children:l?"Loading...":e}),h&&_.jsx("span",{className:"text-xs text-destructive",children:h})]})}function mY({title:e,description:t,variant:r="default"}){return _.jsxs(_4,{variant:r,children:[_.jsx(P4,{children:e}),t&&_.jsx(E4,{children:t})]})}function yY({src:e,alt:t,fallback:r}){return _.jsxs(T4,{children:[e&&_.jsx(C4,{src:e,alt:t}),_.jsx(j4,{children:r})]})}function gY({label:e,variant:t="default",size:r="default",disabled:n=!1}){return _.jsx(gC,{variant:t,size:r,disabled:n,children:e})}function bY({title:e,className:t,children:r,...n}){return _.jsxs("div",{"data-slot":"card-wrapper",className:ae("flex flex-col gap-6 bg-card p-6 text-card-foreground",t),...n,children:[e&&_.jsx("div",{className:"text-lg leading-none font-semibold text-foreground",children:e}),_.jsx("div",{className:"flex flex-col gap-6",children:r})]})}function xY({label:e,valuePath:t,defaultChecked:r}){const n=E.useId();return _.jsxs("div",{className:"flex items-center gap-2",children:[_.jsx(M4,{id:n,name:t,defaultChecked:r,"data-value-path":t}),e&&_.jsx(OC,{htmlFor:n,className:"cursor-pointer",children:e})]})}function wY({headers:e,rows:t,className:r,...n}){return _.jsx("div",{className:ae(r),...n,children:_.jsxs(tY,{children:[e&&e.length>0&&_.jsx(rY,{children:_.jsx(YO,{children:e.map((i,a)=>_.jsx(iY,{children:i},a))})}),_.jsx(nY,{children:t.map((i,a)=>_.jsx(YO,{children:i.map((o,s)=>_.jsx(aY,{children:o},s))},a))})]})})}const SY={sm:"gap-2",md:"gap-4",lg:"gap-6"};function OY({columns:e=2,gap:t="md",className:r,...n}){return _.jsx("div",{"data-slot":"grid",className:ae("grid",SY[t],r),style:{gridTemplateColumns:`repeat(${e}, minmax(0, 1fr))`},...n})}function AY({label:e,placeholder:t,type:r="text",valuePath:n}){const i=E.useId();return _.jsxs("div",{className:"flex flex-col gap-1.5",children:[e&&_.jsx(OC,{htmlFor:i,children:e}),_.jsx(H4,{id:i,type:r,placeholder:t,name:n,"data-value-path":n})]})}function _Y({items:e,ordered:t=!1,className:r}){const n=ae("space-y-1 pl-4 text-foreground",t?"list-decimal":"list-disc",r);return t?_.jsx("ol",{"data-slot":"list",className:n,children:e.map((i,a)=>_.jsx("li",{children:i},a))}):_.jsx("ul",{"data-slot":"list",className:n,children:e.map((i,a)=>_.jsx("li",{children:i},a))})}function PY(e,t){if(typeof e=="string")return e;switch(t){case"currency":return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(e);case"percent":return new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:0,maximumFractionDigits:1}).format(e);case"number":case void 0:default:return new Intl.NumberFormat("en-US").format(e)}}function EY({label:e,value:t,format:r,className:n,...i}){return _.jsxs("div",{"data-slot":"metric",className:ae("flex flex-col",n),...i,children:[_.jsx("span",{className:"text-sm text-muted-foreground",children:e}),_.jsx("span",{className:"text-2xl font-semibold text-foreground",children:PY(t,r)})]})}function TY({placeholder:e,valuePath:t,options:r}){return _.jsxs(K4,{name:t,children:[_.jsx(Y4,{"data-value-path":t,children:_.jsx(G4,{placeholder:e})}),_.jsx(X4,{children:r.map(n=>_.jsx(Z4,{value:n.value,children:n.label},n.value))})]})}function CY({width:e,height:t,className:r}){return _.jsx(eY,{className:ae(r),style:{width:e??"100%",height:t??"1rem"}})}const jY={sm:"gap-2",md:"gap-4",lg:"gap-6"},IY={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},RY={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around"};function kY({direction:e="vertical",gap:t="md",align:r,justify:n,className:i,...a}){return _.jsx("div",{"data-slot":"stack",className:ae("flex",e==="horizontal"?"flex-row":"flex-col",jY[t],r&&IY[r],n&&RY[n],i),...a})}function MY({defaultValue:e,tabs:t,children:r}){const n=e??t[0]?.value;return _.jsxs(oY,{defaultValue:n,children:[_.jsx(cY,{children:t.map(i=>_.jsx(uY,{value:i.value,children:i.label},i.value))}),r]})}function $Y({value:e,children:t}){return _.jsx(lY,{value:e,children:t})}const NY={heading:"text-foreground text-lg font-semibold",body:"text-foreground text-sm",caption:"text-muted-foreground text-xs",code:"text-foreground font-mono text-sm bg-muted px-1 rounded"};function DY({content:e,variant:t="body",className:r,children:n,...i}){return _.jsx("span",{"data-slot":"text",className:ae(NY[t],r),...i,children:e??n})}const LY={Card:bY,Grid:OY,Stack:kY,Text:DY,Metric:EY,Badge:R4,Table:wY,List:_Y,Progress:V4,Avatar:yY,Skeleton:CY,Alert:mY,Divider:GO,Separator:GO,Accordion:fY,AccordionItem:dY,Tabs:MY,TabContent:$Y,Button:gY,ActionButton:vY,Input:AY,Checkbox:xY,Select:TY};function _C(e,t){const r=LY[e.type];if(!r)return _.jsxs("div",{className:"text-xs text-muted-foreground",children:["Unknown component: ",e.type]},t);const n=Array.isArray(e.children)?e.children.map((i,a)=>_C(i,a)):void 0;return _.jsx(r,{...e.props??{},children:n},t)}const BY=({content:e,className:t})=>{const r=ov(),n=O.useMemo(()=>vA(e)?e:null,[e]);return n?_.jsx("div",{className:ae("w-full",t),children:_C(n)}):_.jsxs("div",{className:ae("flex items-center gap-2 text-sm text-muted-foreground",r("p-md"),t),children:[_.jsx(cv,{className:"size-4"}),_.jsx("span",{children:"Invalid generative UI structure"})]})},rv=["Arranging pixels with care...","Brewing something beautiful...","Crafting your masterpiece...","Painting with data...","Weaving digital magic...","Assembling the good stuff...","Polishing the details...","Putting the finishing touches...","Simmering the results...","Letting the data marinate...","Adding a pinch of style...","Fresh out of the oven soon...","Whisking up your view...","Growing your garden of data...","Watching the seeds sprout...","Letting things bloom...","Nature is taking its course...","Consulting the stars...","Channeling cosmic energy...","Summoning the results...","Waving the magic wand...","Sprinkling some stardust...","Aligning the planets...","Tightening the bolts...","Connecting the dots...","Stacking the blocks...","Laying the foundation...","Raising the scaffolding...","Herding the pixels...","Teaching data to dance...","Convincing bits to cooperate...","Giving electrons a pep talk...","Wrangling the numbers...","Coaxing the results out...","Almost there, pinky promise...","Good things take a moment...","Worth the wait...","Patience, grasshopper...","Hold tight...","Doing the thing...","Folding space and time...","Untangling the threads...","Finding the signal...","Distilling the essence...","Turning chaos into order...","Making sense of it all...","This is going to be good...","You're gonna love this...","Something nice is coming...","Just a heartbeat away..."];function qY(){return Math.floor(Math.random()*rv.length)}const FY=()=>{const[e,t]=O.useState(qY),[r,n]=O.useState(!0);return O.useEffect(()=>{let i;const a=setInterval(()=>{n(!1),i=setTimeout(()=>{t(o=>(o+1)%rv.length),n(!0)},200)},2e3);return()=>{clearInterval(a),i&&clearTimeout(i)}},[]),_.jsx("span",{className:ae("shimmer text-sm text-muted-foreground transition-opacity duration-200",r?"opacity-100":"opacity-0"),children:rv[e]})},zY=({code:e})=>{const t=O.useMemo(()=>{const r=e.trim();if(!r)return null;try{const n=JSON.parse(r);return!n||typeof n!="object"||!("type"in n)?null:n}catch{return null}},[e]);return t?_.jsx(Do,{children:_.jsx("div",{className:"p-4",children:_.jsx(BY,{content:t})})}):_.jsx(Do,{children:_.jsx("div",{className:"flex min-h-[400px] items-center justify-center bg-background",children:_.jsx(FY,{})})})},PC={id:"generative-ui",language:"ui",prompt:`Render structured data as visual UI using \`\`\`ui code blocks with valid JSON.
|
|
260
|
+
Defaulting to \`null\`.`}var C6=IT,j6=RT,I6=[" ","Enter","ArrowUp","ArrowDown"],k6=[" ","Enter"],dn="Select",[Wc,Uc,R6]=pm(dn),[Ri]=Mt(dn,[R6,Nm]),Hc=Nm(),[M6,Wr]=Ri(dn),[$6,N6]=Ri(dn),$T=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:u,name:l,autoComplete:f,disabled:d,required:h,form:m}=e,v=Hc(t),[p,g]=E.useState(null),[b,x]=E.useState(null),[w,y]=E.useState(!1),S=$c(u),[O,P]=pr({prop:n,defaultProp:i??!1,onChange:a,caller:dn}),[T,k]=pr({prop:o,defaultProp:s,onChange:c,caller:dn}),C=E.useRef(null),j=p?m||!!p.closest("form"):!0,[R,N]=E.useState(new Set),D=Array.from(R).map($=>$.props.value).join(";");return _.jsx(xT,{...v,children:_.jsxs(M6,{required:h,scope:t,trigger:p,onTriggerChange:g,valueNode:b,onValueNodeChange:x,valueNodeHasChildren:w,onValueNodeHasChildrenChange:y,contentId:zr(),value:T,onValueChange:k,open:O,onOpenChange:P,dir:S,triggerPointerDownPosRef:C,disabled:d,children:[_.jsx(Wc.Provider,{scope:t,children:_.jsx($6,{scope:e.__scopeSelect,onNativeOptionAdd:E.useCallback($=>{N(L=>new Set(L).add($))},[]),onNativeOptionRemove:E.useCallback($=>{N(L=>{const B=new Set(L);return B.delete($),B})},[]),children:r})}),j?_.jsxs(nC,{"aria-hidden":!0,required:h,tabIndex:-1,name:l,autoComplete:f,value:T,onChange:$=>k($.target.value),disabled:d,form:m,children:[T===void 0?_.jsx("option",{value:""}):null,Array.from(R)]},D):null]})})};$T.displayName=dn;var NT="SelectTrigger",DT=E.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...i}=e,a=Hc(r),o=Wr(NT,r),s=o.disabled||n,c=Re(t,o.onTriggerChange),u=Uc(r),l=E.useRef("touch"),[f,d,h]=aC(v=>{const p=u().filter(x=>!x.disabled),g=p.find(x=>x.value===o.value),b=oC(p,v,g);b!==void 0&&o.onValueChange(b.value)}),m=v=>{s||(o.onOpenChange(!0),h()),v&&(o.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return _.jsx(wT,{asChild:!0,...a,children:_.jsx(de.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":iC(o.value)?"":void 0,...i,ref:c,onClick:he(i.onClick,v=>{v.currentTarget.focus(),l.current!=="mouse"&&m(v)}),onPointerDown:he(i.onPointerDown,v=>{l.current=v.pointerType;const p=v.target;p.hasPointerCapture(v.pointerId)&&p.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(m(v),v.preventDefault())}),onKeyDown:he(i.onKeyDown,v=>{const p=f.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&d(v.key),!(p&&v.key===" ")&&I6.includes(v.key)&&(m(),v.preventDefault())})})})});DT.displayName=NT;var LT="SelectValue",BT=E.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,children:a,placeholder:o="",...s}=e,c=Wr(LT,r),{onValueNodeHasChildrenChange:u}=c,l=a!==void 0,f=Re(t,c.onValueNodeChange);return Ne(()=>{u(l)},[u,l]),_.jsx(de.span,{...s,ref:f,style:{pointerEvents:"none"},children:iC(c.value)?_.jsx(_.Fragment,{children:o}):a})});BT.displayName=LT;var D6="SelectIcon",qT=E.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...i}=e;return _.jsx(de.span,{"aria-hidden":!0,...i,ref:t,children:n||"▼"})});qT.displayName=D6;var L6="SelectPortal",FT=e=>_.jsx(Am,{asChild:!0,...e});FT.displayName=L6;var pn="SelectContent",zT=E.forwardRef((e,t)=>{const r=Wr(pn,e.__scopeSelect),[n,i]=E.useState();if(Ne(()=>{i(new DocumentFragment)},[]),!r.open){const a=n;return a?Js.createPortal(_.jsx(WT,{scope:e.__scopeSelect,children:_.jsx(Wc.Slot,{scope:e.__scopeSelect,children:_.jsx("div",{children:e.children})})}),a):null}return _.jsx(UT,{...e,ref:t})});zT.displayName=pn;var At=10,[WT,Ur]=Ri(pn),B6="SelectContentImpl",q6=mi("SelectContent.RemoveScroll"),UT=E.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:u,alignOffset:l,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:m,hideWhenDetached:v,avoidCollisions:p,...g}=e,b=Wr(pn,r),[x,w]=E.useState(null),[y,S]=E.useState(null),O=Re(t,K=>w(K)),[P,T]=E.useState(null),[k,C]=E.useState(null),j=Uc(r),[R,N]=E.useState(!1),D=E.useRef(!1);E.useEffect(()=>{if(x)return $E(x)},[x]),PE();const $=E.useCallback(K=>{const[ee,...q]=j().map(M=>M.ref.current),[H]=q.slice(-1),X=document.activeElement;for(const M of K)if(M===X||(M?.scrollIntoView({block:"nearest"}),M===ee&&y&&(y.scrollTop=0),M===H&&y&&(y.scrollTop=y.scrollHeight),M?.focus(),document.activeElement!==X))return},[j,y]),L=E.useCallback(()=>$([P,x]),[$,P,x]);E.useEffect(()=>{R&&L()},[R,L]);const{onOpenChange:B,triggerPointerDownPosRef:W}=b;E.useEffect(()=>{if(x){let K={x:0,y:0};const ee=H=>{K={x:Math.abs(Math.round(H.pageX)-(W.current?.x??0)),y:Math.abs(Math.round(H.pageY)-(W.current?.y??0))}},q=H=>{K.x<=10&&K.y<=10?H.preventDefault():x.contains(H.target)||B(!1),document.removeEventListener("pointermove",ee),W.current=null};return W.current!==null&&(document.addEventListener("pointermove",ee),document.addEventListener("pointerup",q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ee),document.removeEventListener("pointerup",q,{capture:!0})}}},[x,B,W]),E.useEffect(()=>{const K=()=>B(!1);return window.addEventListener("blur",K),window.addEventListener("resize",K),()=>{window.removeEventListener("blur",K),window.removeEventListener("resize",K)}},[B]);const[I,F]=aC(K=>{const ee=j().filter(X=>!X.disabled),q=ee.find(X=>X.ref.current===document.activeElement),H=oC(ee,K,q);H&&setTimeout(()=>H.ref.current.focus())}),U=E.useCallback((K,ee,q)=>{const H=!D.current&&!q;(b.value!==void 0&&b.value===ee||H)&&(T(K),H&&(D.current=!0))},[b.value]),G=E.useCallback(()=>x?.focus(),[x]),Z=E.useCallback((K,ee,q)=>{const H=!D.current&&!q;(b.value!==void 0&&b.value===ee||H)&&C(K)},[b.value]),J=n==="popper"?Zh:HT,Q=J===Zh?{side:s,sideOffset:c,align:u,alignOffset:l,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:m,hideWhenDetached:v,avoidCollisions:p}:{};return _.jsx(WT,{scope:r,content:x,viewport:y,onViewportChange:S,itemRefCallback:U,selectedItem:P,onItemLeave:G,itemTextRefCallback:Z,focusSelectedItem:L,selectedItemText:k,position:n,isPositioned:R,searchRef:I,children:_.jsx(_m,{as:q6,allowPinchZoom:!0,children:_.jsx(Om,{asChild:!0,trapped:b.open,onMountAutoFocus:K=>{K.preventDefault()},onUnmountAutoFocus:he(i,K=>{b.trigger?.focus({preventScroll:!0}),K.preventDefault()}),children:_.jsx(Sm,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:K=>K.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:_.jsx(J,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:K=>K.preventDefault(),...g,...Q,onPlaced:()=>N(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:he(g.onKeyDown,K=>{const ee=K.ctrlKey||K.altKey||K.metaKey;if(K.key==="Tab"&&K.preventDefault(),!ee&&K.key.length===1&&F(K.key),["ArrowUp","ArrowDown","Home","End"].includes(K.key)){let H=j().filter(X=>!X.disabled).map(X=>X.ref.current);if(["ArrowUp","End"].includes(K.key)&&(H=H.slice().reverse()),["ArrowUp","ArrowDown"].includes(K.key)){const X=K.target,M=H.indexOf(X);H=H.slice(M+1)}setTimeout(()=>$(H)),K.preventDefault()}})})})})})})});UT.displayName=B6;var F6="SelectItemAlignedPosition",HT=E.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...i}=e,a=Wr(pn,r),o=Ur(pn,r),[s,c]=E.useState(null),[u,l]=E.useState(null),f=Re(t,O=>l(O)),d=Uc(r),h=E.useRef(!1),m=E.useRef(!0),{viewport:v,selectedItem:p,selectedItemText:g,focusSelectedItem:b}=o,x=E.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&u&&v&&p&&g){const O=a.trigger.getBoundingClientRect(),P=u.getBoundingClientRect(),T=a.valueNode.getBoundingClientRect(),k=g.getBoundingClientRect();if(a.dir!=="rtl"){const X=k.left-P.left,M=T.left-X,ce=O.left-M,V=O.width+ce,ye=Math.max(V,P.width),Ae=window.innerWidth-At,$e=zO(M,[At,Math.max(At,Ae-ye)]);s.style.minWidth=V+"px",s.style.left=$e+"px"}else{const X=P.right-k.right,M=window.innerWidth-T.right-X,ce=window.innerWidth-O.right-M,V=O.width+ce,ye=Math.max(V,P.width),Ae=window.innerWidth-At,$e=zO(M,[At,Math.max(At,Ae-ye)]);s.style.minWidth=V+"px",s.style.right=$e+"px"}const C=d(),j=window.innerHeight-At*2,R=v.scrollHeight,N=window.getComputedStyle(u),D=parseInt(N.borderTopWidth,10),$=parseInt(N.paddingTop,10),L=parseInt(N.borderBottomWidth,10),B=parseInt(N.paddingBottom,10),W=D+$+R+B+L,I=Math.min(p.offsetHeight*5,W),F=window.getComputedStyle(v),U=parseInt(F.paddingTop,10),G=parseInt(F.paddingBottom,10),Z=O.top+O.height/2-At,J=j-Z,Q=p.offsetHeight/2,K=p.offsetTop+Q,ee=D+$+K,q=W-ee;if(ee<=Z){const X=C.length>0&&p===C[C.length-1].ref.current;s.style.bottom="0px";const M=u.clientHeight-v.offsetTop-v.offsetHeight,ce=Math.max(J,Q+(X?G:0)+M+L),V=ee+ce;s.style.height=V+"px"}else{const X=C.length>0&&p===C[0].ref.current;s.style.top="0px";const ce=Math.max(Z,D+v.offsetTop+(X?U:0)+Q)+q;s.style.height=ce+"px",v.scrollTop=ee-Z+v.offsetTop}s.style.margin=`${At}px 0`,s.style.minHeight=I+"px",s.style.maxHeight=j+"px",n?.(),requestAnimationFrame(()=>h.current=!0)}},[d,a.trigger,a.valueNode,s,u,v,p,g,a.dir,n]);Ne(()=>x(),[x]);const[w,y]=E.useState();Ne(()=>{u&&y(window.getComputedStyle(u).zIndex)},[u]);const S=E.useCallback(O=>{O&&m.current===!0&&(x(),b?.(),m.current=!1)},[x,b]);return _.jsx(W6,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:S,children:_.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:_.jsx(de.div,{...i,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});HT.displayName=F6;var z6="SelectPopperPosition",Zh=E.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:i=At,...a}=e,o=Hc(r);return _.jsx(ST,{...o,...a,ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Zh.displayName=z6;var[W6,qm]=Ri(pn,{}),Jh="SelectViewport",VT=E.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...i}=e,a=Ur(Jh,r),o=qm(Jh,r),s=Re(t,a.onViewportChange),c=E.useRef(0);return _.jsxs(_.Fragment,{children:[_.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),_.jsx(Wc.Slot,{scope:r,children:_.jsx(de.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:he(i.onScroll,u=>{const l=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=o;if(d?.current&&f){const h=Math.abs(c.current-l.scrollTop);if(h>0){const m=window.innerHeight-At*2,v=parseFloat(f.style.minHeight),p=parseFloat(f.style.height),g=Math.max(v,p);if(g<m){const b=g+h,x=Math.min(m,b),w=b-x;f.style.height=x+"px",f.style.bottom==="0px"&&(l.scrollTop=w>0?w:0,f.style.justifyContent="flex-end")}}}c.current=l.scrollTop})})})]})});VT.displayName=Jh;var KT="SelectGroup",[U6,H6]=Ri(KT),V6=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=zr();return _.jsx(U6,{scope:r,id:i,children:_.jsx(de.div,{role:"group","aria-labelledby":i,...n,ref:t})})});V6.displayName=KT;var GT="SelectLabel",K6=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=H6(GT,r);return _.jsx(de.div,{id:i.id,...n,ref:t})});K6.displayName=GT;var Xs="SelectItem",[G6,YT]=Ri(Xs),XT=E.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:i=!1,textValue:a,...o}=e,s=Wr(Xs,r),c=Ur(Xs,r),u=s.value===n,[l,f]=E.useState(a??""),[d,h]=E.useState(!1),m=Re(t,b=>c.itemRefCallback?.(b,n,i)),v=zr(),p=E.useRef("touch"),g=()=>{i||(s.onValueChange(n),s.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return _.jsx(G6,{scope:r,value:n,disabled:i,textId:v,isSelected:u,onItemTextChange:E.useCallback(b=>{f(x=>x||(b?.textContent??"").trim())},[]),children:_.jsx(Wc.ItemSlot,{scope:r,value:n,disabled:i,textValue:l,children:_.jsx(de.div,{role:"option","aria-labelledby":v,"data-highlighted":d?"":void 0,"aria-selected":u&&d,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:he(o.onFocus,()=>h(!0)),onBlur:he(o.onBlur,()=>h(!1)),onClick:he(o.onClick,()=>{p.current!=="mouse"&&g()}),onPointerUp:he(o.onPointerUp,()=>{p.current==="mouse"&&g()}),onPointerDown:he(o.onPointerDown,b=>{p.current=b.pointerType}),onPointerMove:he(o.onPointerMove,b=>{p.current=b.pointerType,i?c.onItemLeave?.():p.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:he(o.onPointerLeave,b=>{b.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:he(o.onKeyDown,b=>{c.searchRef?.current!==""&&b.key===" "||(k6.includes(b.key)&&g(),b.key===" "&&b.preventDefault())})})})})});XT.displayName=Xs;var Gi="SelectItemText",ZT=E.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,...a}=e,o=Wr(Gi,r),s=Ur(Gi,r),c=YT(Gi,r),u=N6(Gi,r),[l,f]=E.useState(null),d=Re(t,g=>f(g),c.onItemTextChange,g=>s.itemTextRefCallback?.(g,c.value,c.disabled)),h=l?.textContent,m=E.useMemo(()=>_.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:v,onNativeOptionRemove:p}=u;return Ne(()=>(v(m),()=>p(m)),[v,p,m]),_.jsxs(_.Fragment,{children:[_.jsx(de.span,{id:c.textId,...a,ref:d}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?Js.createPortal(a.children,o.valueNode):null]})});ZT.displayName=Gi;var JT="SelectItemIndicator",QT=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return YT(JT,r).isSelected?_.jsx(de.span,{"aria-hidden":!0,...n,ref:t}):null});QT.displayName=JT;var Qh="SelectScrollUpButton",eC=E.forwardRef((e,t)=>{const r=Ur(Qh,e.__scopeSelect),n=qm(Qh,e.__scopeSelect),[i,a]=E.useState(!1),o=Re(t,n.onScrollButtonChange);return Ne(()=>{if(r.viewport&&r.isPositioned){let s=function(){const u=c.scrollTop>0;a(u)};const c=r.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),i?_.jsx(rC,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=r;s&&c&&(s.scrollTop=s.scrollTop-c.offsetHeight)}}):null});eC.displayName=Qh;var ev="SelectScrollDownButton",tC=E.forwardRef((e,t)=>{const r=Ur(ev,e.__scopeSelect),n=qm(ev,e.__scopeSelect),[i,a]=E.useState(!1),o=Re(t,n.onScrollButtonChange);return Ne(()=>{if(r.viewport&&r.isPositioned){let s=function(){const u=c.scrollHeight-c.clientHeight,l=Math.ceil(c.scrollTop)<u;a(l)};const c=r.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),i?_.jsx(rC,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=r;s&&c&&(s.scrollTop=s.scrollTop+c.offsetHeight)}}):null});tC.displayName=ev;var rC=E.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...i}=e,a=Ur("SelectScrollButton",r),o=E.useRef(null),s=Uc(r),c=E.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return E.useEffect(()=>()=>c(),[c]),Ne(()=>{s().find(l=>l.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),_.jsx(de.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:he(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(n,50))}),onPointerMove:he(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(n,50))}),onPointerLeave:he(i.onPointerLeave,()=>{c()})})}),Y6="SelectSeparator",X6=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return _.jsx(de.div,{"aria-hidden":!0,...n,ref:t})});X6.displayName=Y6;var tv="SelectArrow",Z6=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=Hc(r),a=Wr(tv,r),o=Ur(tv,r);return a.open&&o.position==="popper"?_.jsx(OT,{...i,...n,ref:t}):null});Z6.displayName=tv;var J6="SelectBubbleInput",nC=E.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const i=E.useRef(null),a=Re(n,i),o=WE(t);return E.useEffect(()=>{const s=i.current;if(!s)return;const c=window.HTMLSelectElement.prototype,l=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==t&&l){const f=new Event("change",{bubbles:!0});l.call(s,t),s.dispatchEvent(f)}},[o,t]),_.jsx(de.select,{...r,style:{...oE,...r.style},ref:a,defaultValue:t})});nC.displayName=J6;function iC(e){return e===""||e===void 0}function aC(e){const t=Ht(e),r=E.useRef(""),n=E.useRef(0),i=E.useCallback(o=>{const s=r.current+o;t(s),(function c(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>c(""),1e3))})(s)},[t]),a=E.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return E.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,a]}function oC(e,t,r){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let o=Q6(e,Math.max(a,0));i.length===1&&(o=o.filter(u=>u!==r));const c=o.find(u=>u.textValue.toLowerCase().startsWith(i.toLowerCase()));return c!==r?c:void 0}function Q6(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var e4=$T,t4=DT,r4=BT,n4=qT,i4=FT,a4=zT,o4=VT,s4=XT,c4=ZT,u4=QT,l4=eC,f4=tC,d4="Separator",HO="horizontal",p4=["horizontal","vertical"],sC=E.forwardRef((e,t)=>{const{decorative:r,orientation:n=HO,...i}=e,a=h4(n)?n:HO,s=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return _.jsx(de.div,{"data-orientation":a,...s,...i,ref:t})});sC.displayName=d4;function h4(e){return p4.includes(e)}var v4=sC,Vc="Tabs",[m4]=Mt(Vc,[_T]),cC=_T(),[y4,Fm]=m4(Vc),uC=E.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:i,defaultValue:a,orientation:o="horizontal",dir:s,activationMode:c="automatic",...u}=e,l=$c(s),[f,d]=pr({prop:n,onChange:i,defaultProp:a??"",caller:Vc});return _.jsx(y4,{scope:r,baseId:zr(),value:f,onValueChange:d,orientation:o,dir:l,activationMode:c,children:_.jsx(de.div,{dir:l,"data-orientation":o,...u,ref:t})})});uC.displayName=Vc;var lC="TabsList",fC=E.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...i}=e,a=Fm(lC,r),o=cC(r);return _.jsx(b6,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:n,children:_.jsx(de.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:t})})});fC.displayName=lC;var dC="TabsTrigger",pC=E.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:i=!1,...a}=e,o=Fm(dC,r),s=cC(r),c=mC(o.baseId,n),u=yC(o.baseId,n),l=n===o.value;return _.jsx(x6,{asChild:!0,...s,focusable:!i,active:l,children:_.jsx(de.button,{type:"button",role:"tab","aria-selected":l,"aria-controls":u,"data-state":l?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:c,...a,ref:t,onMouseDown:he(e.onMouseDown,f=>{!i&&f.button===0&&f.ctrlKey===!1?o.onValueChange(n):f.preventDefault()}),onKeyDown:he(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&o.onValueChange(n)}),onFocus:he(e.onFocus,()=>{const f=o.activationMode!=="manual";!l&&!i&&f&&o.onValueChange(n)})})})});pC.displayName=dC;var hC="TabsContent",vC=E.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:i,children:a,...o}=e,s=Fm(hC,r),c=mC(s.baseId,n),u=yC(s.baseId,n),l=n===s.value,f=E.useRef(l);return E.useEffect(()=>{const d=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(d)},[]),_.jsx(eo,{present:i||l,children:({present:d})=>_.jsx(de.div,{"data-state":l?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":c,hidden:!d,id:u,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:d&&a})})});vC.displayName=hC;function mC(e,t){return`${e}-trigger-${t}`}function yC(e,t){return`${e}-content-${t}`}var g4=uC,b4=fC,x4=pC,w4=vC;function S4({...e}){return _.jsx(AG,{"data-slot":"accordion",...e})}function O4({className:e,...t}){return _.jsx(_G,{"data-slot":"accordion-item",className:ae("border-b last:border-b-0",e),...t})}function A4({className:e,children:t,...r}){return _.jsx(PG,{className:"flex",children:_.jsxs(EG,{"data-slot":"accordion-trigger",className:ae("flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium text-foreground transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),...r,children:[t,_.jsx(Qs,{className:"pointer-events-none size-4 shrink-0 translate-y-0.5 text-muted-foreground transition-transform duration-200"})]})})}function _4({className:e,children:t,...r}){return _.jsx(TG,{"data-slot":"accordion-content",className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:_.jsx("div",{className:ae("pt-0 pb-4",e),children:t})})}const VO=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,KO=le,Mi=(e,t)=>r=>{var n;if(t?.variants==null)return KO(e,r?.class,r?.className);const{variants:i,defaultVariants:a}=t,o=Object.keys(i).map(u=>{const l=r?.[u],f=a?.[u];if(l===null)return null;const d=VO(l)||VO(f);return i[u][d]}),s=r&&Object.entries(r).reduce((u,l)=>{let[f,d]=l;return d===void 0||(u[f]=d),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,l)=>{let{class:f,className:d,...h}=l;return Object.entries(h).every(m=>{let[v,p]=m;return Array.isArray(p)?p.includes({...a,...s}[v]):{...a,...s}[v]===p})?[...u,f,d]:u},[]);return KO(e,o,c,r?.class,r?.className)},P4=Mi("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function E4({className:e,variant:t,...r}){return _.jsx("div",{"data-slot":"alert",role:"alert",className:ae(P4({variant:t}),e),...r})}function T4({className:e,...t}){return _.jsx("div",{"data-slot":"alert-title",className:ae("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",e),...t})}function C4({className:e,...t}){return _.jsx("div",{"data-slot":"alert-description",className:ae("col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed",e),...t})}function j4({className:e,size:t="default",...r}){return _.jsx(L5,{"data-slot":"avatar","data-size":t,className:ae("group/avatar relative flex size-8 shrink-0 overflow-hidden rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6",e),...r})}function I4({className:e,...t}){return _.jsx(B5,{"data-slot":"avatar-image",className:ae("aspect-square size-full",e),...t})}function k4({className:e,...t}){return _.jsx(q5,{"data-slot":"avatar-fallback",className:ae("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",e),...t})}const R4=Mi("inline-flex items-center justify-center rounded-full border border-transparent px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",success:"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100",warning:"bg-amber-100 text-amber-800 dark:bg-amber-900 dark:text-amber-100",error:"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100",destructive:"bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function M4({className:e,variant:t="default",asChild:r=!1,content:n,children:i,...a}){const o=r?iE:"span";return _.jsx(o,{"data-slot":"badge","data-variant":t,className:ae(R4({variant:t}),e),...a,children:n??i})}const $4=Mi("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function gC({className:e,variant:t="default",size:r="default",asChild:n=!1,...i}){const a=n?iE:"button";return _.jsx(a,{"data-slot":"button","data-variant":t,"data-size":r,className:ae($4({variant:t,size:r,className:e})),...i})}function N4({className:e,...t}){return _.jsx(KE,{"data-slot":"checkbox",className:ae("peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary",e),...t,children:_.jsx(YE,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:_.jsx(sv,{className:"size-3.5"})})})}var D4=Symbol.for("react.lazy"),Zs=E[" use ".trim().toString()];function L4(e){return typeof e=="object"&&e!==null&&"then"in e}function bC(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===D4&&"_payload"in e&&L4(e._payload)}function xC(e){const t=q4(e),r=E.forwardRef((n,i)=>{let{children:a,...o}=n;bC(a)&&typeof Zs=="function"&&(a=Zs(a._payload));const s=E.Children.toArray(a),c=s.find(W4);if(c){const u=c.props.children,l=s.map(f=>f===c?E.Children.count(u)>1?E.Children.only(null):E.isValidElement(u)?u.props.children:null:f);return _.jsx(t,{...o,ref:i,children:E.isValidElement(u)?E.cloneElement(u,void 0,l):null})}return _.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}var B4=xC("Slot");function q4(e){const t=E.forwardRef((r,n)=>{let{children:i,...a}=r;if(bC(i)&&typeof Zs=="function"&&(i=Zs(i._payload)),E.isValidElement(i)){const o=H4(i),s=U4(a,i.props);return i.type!==E.Fragment&&(s.ref=n?dm(n,o):o),E.cloneElement(i,s)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wC=Symbol("radix.slottable");function F4(e){const t=({children:r})=>_.jsx(_.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=wC,t}var z4=F4("Slottable");function W4(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===wC}function U4(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...s)=>{const c=a(...s);return i(...s),c}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function H4(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const V4=Mi("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}}),SC=E.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...i},a)=>{const o=n?B4:"button";return _.jsx(o,{"data-slot":"button",className:ae(V4({variant:t,size:r,className:e})),ref:a,...i})});SC.displayName="Button";function K4({className:e,type:t,...r}){return _.jsx("input",{type:t,"data-slot":"input",className:ae("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",e),...r})}function OC({className:e,...t}){return _.jsx(S6,{"data-slot":"label",className:ae("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function G4({className:e,value:t,label:r,max:n=100,...i}){const a=t!=null&&n>0?Math.min(100,Math.max(0,t/n*100)):0;return _.jsxs("div",{className:ae("w-full space-y-2",e),children:[r&&_.jsxs("div",{className:"flex justify-between text-sm",children:[_.jsx("span",{children:r}),_.jsxs("span",{className:"text-muted-foreground",children:[a.toFixed(0),"%"]})]}),_.jsx(C6,{"data-slot":"progress",className:"relative h-2 w-full overflow-hidden rounded-full bg-primary/20",value:t,max:n,...i,children:_.jsx(j6,{"data-slot":"progress-indicator",className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-a}%)`}})})]})}function Y4({...e}){return _.jsx(e4,{"data-slot":"select",...e})}function X4({...e}){return _.jsx(r4,{"data-slot":"select-value",...e})}function Z4({className:e,size:t="default",children:r,...n}){return _.jsxs(t4,{"data-slot":"select-trigger","data-size":t,className:ae("flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),...n,children:[r,_.jsx(n4,{asChild:!0,children:_.jsx(Qs,{className:"size-4 opacity-50"})})]})}function J4({className:e,children:t,position:r="item-aligned",align:n="center",...i}){return _.jsx(i4,{children:_.jsxs(a4,{"data-slot":"select-content",className:ae("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,align:n,...i,children:[_.jsx(eY,{}),_.jsx(o4,{className:ae("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),_.jsx(tY,{})]})})}function Q4({className:e,children:t,...r}){return _.jsxs(s4,{"data-slot":"select-item",className:ae("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r,children:[_.jsx("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:_.jsx(u4,{children:_.jsx(sv,{className:"size-4"})})}),_.jsx(c4,{children:t})]})}function eY({className:e,...t}){return _.jsx(l4,{"data-slot":"select-scroll-up-button",className:ae("flex cursor-default items-center justify-center py-1",e),...t,children:_.jsx(yA,{className:"size-4"})})}function tY({className:e,...t}){return _.jsx(f4,{"data-slot":"select-scroll-down-button",className:ae("flex cursor-default items-center justify-center py-1",e),...t,children:_.jsx(Qs,{className:"size-4"})})}function GO({className:e,orientation:t="horizontal",decorative:r=!0,...n}){return _.jsx(v4,{"data-slot":"separator",decorative:r,orientation:t,className:ae("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...n})}function rY({className:e,...t}){return _.jsx("div",{"data-slot":"skeleton",className:ae("animate-pulse rounded-md bg-accent",e),...t})}function nY({className:e,...t}){return _.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:_.jsx("table",{"data-slot":"table",className:ae("w-full caption-bottom text-sm",e),...t})})}function iY({className:e,...t}){return _.jsx("thead",{"data-slot":"table-header",className:ae("[&_tr]:border-b",e),...t})}function aY({className:e,...t}){return _.jsx("tbody",{"data-slot":"table-body",className:ae("[&_tr:last-child]:border-0",e),...t})}function YO({className:e,...t}){return _.jsx("tr",{"data-slot":"table-row",className:ae("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t})}function oY({className:e,...t}){return _.jsx("th",{"data-slot":"table-head",className:ae("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function sY({className:e,...t}){return _.jsx("td",{"data-slot":"table-cell",className:ae("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function cY({className:e,orientation:t="horizontal",...r}){return _.jsx(g4,{"data-slot":"tabs","data-orientation":t,orientation:t,className:ae("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",e),...r})}const uY=Mi("rounded-lg p-[3px] group-data-[orientation=horizontal]/tabs:h-9 data-[variant=line]:rounded-none group/tabs-list text-muted-foreground inline-flex w-fit items-center justify-center group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function lY({className:e,variant:t="default",...r}){return _.jsx(b4,{"data-slot":"tabs-list","data-variant":t,className:ae(uY({variant:t}),e),...r})}function fY({className:e,...t}){return _.jsx(x4,{"data-slot":"tabs-trigger",className:ae("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",e),...t})}function dY({className:e,...t}){return _.jsx(w4,{"data-slot":"tabs-content",className:ae("flex-1 outline-none",e),...t})}function pY({type:e="single",children:t}){const r=S4;return _.jsx(r,{type:e,collapsible:e==="single",children:t})}function hY({value:e,title:t,children:r}){return _.jsxs(O4,{value:e,children:[_.jsx(A4,{children:t}),_.jsx(_4,{children:r})]})}const AC=A.createContext(null);function vY({children:e,tools:t}){const r=A.useCallback(async(i,a)=>{if(!t)return{success:!1,error:"Tools not available"};const o=t[i];if(!o)return{success:!1,error:`Tool "${i}" not found`};if(!o.execute)return{success:!1,error:`Tool "${i}" has no execute function`};try{const s=`action-${Date.now()}-${Math.random().toString(36).slice(2)}`;return{success:!0,result:await o.execute(a,{toolCallId:s,messages:[]})}}catch(s){return{success:!1,error:s instanceof Error?s.message:"Unknown error"}}},[t]),n=A.useCallback(i=>!!t?.[i]?.execute,[t]);return _.jsx(AC.Provider,{value:{executeTool:r,isToolAvailable:n},children:e})}function mY(){const e=A.useContext(AC);return e||{executeTool:async()=>({success:!1,error:"ToolExecutionProvider not found"}),isToolAvailable:()=>!1}}function yY({label:e,action:t,args:r,variant:n="default",size:i="default",className:a,disabled:o,...s}){const{executeTool:c,isToolAvailable:u}=mY(),[l,f]=E.useState(!1),d=u(t),[h,m]=E.useState(null),v=E.useCallback(async()=>{if(!(!d||l)){f(!0),m(null);try{const p=await c(t,r??{});!p.success&&p.error&&m(p.error)}catch(p){m(p instanceof Error?p.message:"Unknown error")}finally{f(!1)}}},[t,r,c,l,d]);return _.jsxs("div",{className:"inline-flex flex-col gap-1",children:[_.jsx(gC,{variant:h?"destructive":n,size:i,className:ae(a),onClick:()=>{v()},disabled:o||l||!d,...s,children:l?"Loading...":e}),h&&_.jsx("span",{className:"text-xs text-destructive",children:h})]})}function gY({title:e,description:t,variant:r="default"}){return _.jsxs(E4,{variant:r,children:[_.jsx(T4,{children:e}),t&&_.jsx(C4,{children:t})]})}function bY({src:e,alt:t,fallback:r}){return _.jsxs(j4,{children:[e&&_.jsx(I4,{src:e,alt:t}),_.jsx(k4,{children:r})]})}function xY({label:e,variant:t="default",size:r="default",disabled:n=!1}){return _.jsx(gC,{variant:t,size:r,disabled:n,children:e})}function wY({title:e,className:t,children:r,...n}){return _.jsxs("div",{"data-slot":"card-wrapper",className:ae("flex flex-col gap-6 bg-card p-6 text-card-foreground",t),...n,children:[e&&_.jsx("div",{className:"text-lg leading-none font-semibold text-foreground",children:e}),_.jsx("div",{className:"flex flex-col gap-6",children:r})]})}function SY({label:e,valuePath:t,defaultChecked:r}){const n=E.useId();return _.jsxs("div",{className:"flex items-center gap-2",children:[_.jsx(N4,{id:n,name:t,defaultChecked:r,"data-value-path":t}),e&&_.jsx(OC,{htmlFor:n,className:"cursor-pointer",children:e})]})}function OY({headers:e,rows:t,className:r,...n}){return _.jsx("div",{className:ae(r),...n,children:_.jsxs(nY,{children:[e&&e.length>0&&_.jsx(iY,{children:_.jsx(YO,{children:e.map((i,a)=>_.jsx(oY,{children:i},a))})}),_.jsx(aY,{children:t.map((i,a)=>_.jsx(YO,{children:i.map((o,s)=>_.jsx(sY,{children:o},s))},a))})]})})}const AY={sm:"gap-2",md:"gap-4",lg:"gap-6"};function _Y({columns:e=2,gap:t="md",className:r,...n}){return _.jsx("div",{"data-slot":"grid",className:ae("grid",AY[t],r),style:{gridTemplateColumns:`repeat(${e}, minmax(0, 1fr))`},...n})}function PY({label:e,placeholder:t,type:r="text",valuePath:n}){const i=E.useId();return _.jsxs("div",{className:"flex flex-col gap-1.5",children:[e&&_.jsx(OC,{htmlFor:i,children:e}),_.jsx(K4,{id:i,type:r,placeholder:t,name:n,"data-value-path":n})]})}function EY({items:e,ordered:t=!1,className:r}){const n=ae("space-y-1 pl-4 text-foreground",t?"list-decimal":"list-disc",r);return t?_.jsx("ol",{"data-slot":"list",className:n,children:e.map((i,a)=>_.jsx("li",{children:i},a))}):_.jsx("ul",{"data-slot":"list",className:n,children:e.map((i,a)=>_.jsx("li",{children:i},a))})}function TY(e,t){if(typeof e=="string")return e;switch(t){case"currency":return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(e);case"percent":return new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:0,maximumFractionDigits:1}).format(e);case"number":case void 0:default:return new Intl.NumberFormat("en-US").format(e)}}function CY({label:e,value:t,format:r,className:n,...i}){return _.jsxs("div",{"data-slot":"metric",className:ae("flex flex-col",n),...i,children:[_.jsx("span",{className:"text-sm text-muted-foreground",children:e}),_.jsx("span",{className:"text-2xl font-semibold text-foreground",children:TY(t,r)})]})}function jY({placeholder:e,valuePath:t,options:r}){return _.jsxs(Y4,{name:t,children:[_.jsx(Z4,{"data-value-path":t,children:_.jsx(X4,{placeholder:e})}),_.jsx(J4,{children:r.map(n=>_.jsx(Q4,{value:n.value,children:n.label},n.value))})]})}function IY({width:e,height:t,className:r}){return _.jsx(rY,{className:ae(r),style:{width:e??"100%",height:t??"1rem"}})}const kY={sm:"gap-2",md:"gap-4",lg:"gap-6"},RY={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},MY={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around"};function $Y({direction:e="vertical",gap:t="md",align:r,justify:n,className:i,...a}){return _.jsx("div",{"data-slot":"stack",className:ae("flex",e==="horizontal"?"flex-row":"flex-col",kY[t],r&&RY[r],n&&MY[n],i),...a})}function NY({defaultValue:e,tabs:t,children:r}){const n=e??t[0]?.value;return _.jsxs(cY,{defaultValue:n,children:[_.jsx(lY,{children:t.map(i=>_.jsx(fY,{value:i.value,children:i.label},i.value))}),r]})}function DY({value:e,children:t}){return _.jsx(dY,{value:e,children:t})}const LY={heading:"text-foreground text-lg font-semibold",body:"text-foreground text-sm",caption:"text-muted-foreground text-xs",code:"text-foreground font-mono text-sm bg-muted px-1 rounded"};function BY({content:e,variant:t="body",className:r,children:n,...i}){return _.jsx("span",{"data-slot":"text",className:ae(LY[t],r),...i,children:e??n})}const qY={Card:wY,Grid:_Y,Stack:$Y,Text:BY,Metric:CY,Badge:M4,Table:OY,List:EY,Progress:G4,Avatar:bY,Skeleton:IY,Alert:gY,Divider:GO,Separator:GO,Accordion:pY,AccordionItem:hY,Tabs:NY,TabContent:DY,Button:xY,ActionButton:yY,Input:PY,Checkbox:SY,Select:jY};function _C(e,t){const r=qY[e.type];if(!r)return _.jsxs("div",{className:"text-xs text-muted-foreground",children:["Unknown component: ",e.type]},t);const n=Array.isArray(e.children)?e.children.map((i,a)=>_C(i,a)):void 0;return _.jsx(r,{...e.props??{},children:n},t)}const FY=({content:e,className:t})=>{const r=ov(),n=A.useMemo(()=>vA(e)?e:null,[e]);return n?_.jsx("div",{className:ae("w-full",t),children:_C(n)}):_.jsxs("div",{className:ae("flex items-center gap-2 text-sm text-muted-foreground",r("p-md"),t),children:[_.jsx(cv,{className:"size-4"}),_.jsx("span",{children:"Invalid generative UI structure"})]})},rv=["Arranging pixels with care...","Brewing something beautiful...","Crafting your masterpiece...","Painting with data...","Weaving digital magic...","Assembling the good stuff...","Polishing the details...","Putting the finishing touches...","Simmering the results...","Letting the data marinate...","Adding a pinch of style...","Fresh out of the oven soon...","Whisking up your view...","Growing your garden of data...","Watching the seeds sprout...","Letting things bloom...","Nature is taking its course...","Consulting the stars...","Channeling cosmic energy...","Summoning the results...","Waving the magic wand...","Sprinkling some stardust...","Aligning the planets...","Tightening the bolts...","Connecting the dots...","Stacking the blocks...","Laying the foundation...","Raising the scaffolding...","Herding the pixels...","Teaching data to dance...","Convincing bits to cooperate...","Giving electrons a pep talk...","Wrangling the numbers...","Coaxing the results out...","Almost there, pinky promise...","Good things take a moment...","Worth the wait...","Patience, grasshopper...","Hold tight...","Doing the thing...","Folding space and time...","Untangling the threads...","Finding the signal...","Distilling the essence...","Turning chaos into order...","Making sense of it all...","This is going to be good...","You're gonna love this...","Something nice is coming...","Just a heartbeat away..."];function zY(){return Math.floor(Math.random()*rv.length)}const WY=()=>{const[e,t]=A.useState(zY),[r,n]=A.useState(!0);return A.useEffect(()=>{let i;const a=setInterval(()=>{n(!1),i=setTimeout(()=>{t(o=>(o+1)%rv.length),n(!0)},200)},2e3);return()=>{clearInterval(a),i&&clearTimeout(i)}},[]),_.jsx("span",{className:ae("shimmer text-sm text-muted-foreground transition-opacity duration-200",r?"opacity-100":"opacity-0"),children:rv[e]})},UY=({code:e})=>{const t=A.useMemo(()=>{const r=e.trim();if(!r)return null;try{const n=JSON.parse(r);return!n||typeof n!="object"||!("type"in n)?null:n}catch{return null}},[e]);return t?_.jsx(Do,{children:_.jsx("div",{className:"p-4",children:_.jsx(FY,{content:t})})}):_.jsx(Do,{children:_.jsx("div",{className:"flex min-h-[400px] items-center justify-center bg-background",children:_.jsx(WY,{})})})},PC={id:"generative-ui",language:"ui",prompt:`Render structured data as visual UI using \`\`\`ui code blocks with valid JSON.
|
|
261
261
|
|
|
262
262
|
Components:
|
|
263
263
|
- Card{title?} - container with border
|
|
@@ -276,5 +276,5 @@ Format: {"type":"Name","props":{...},"children":[...]}
|
|
|
276
276
|
|
|
277
277
|
Example: {"type":"Card","props":{"title":"Stats"},"children":[{"type":"Metric","props":{"label":"Revenue","value":50000,"format":"currency"}}]}
|
|
278
278
|
|
|
279
|
-
Use for dashboards, tables, metrics from tool results. Skip for simple text or errors.`,Component:
|
|
280
|
-
//# sourceMappingURL=index-
|
|
279
|
+
Use for dashboards, tables, metrics from tool results. Skip for simple text or errors.`,Component:UY,Header:void 0};function HY(e){const t=[...e];return t.except=(...r)=>{const n=new Set(r);return t.filter(i=>!n.has(i.id??i.language))},t}const VY=HY([nE,PC]);exports.Anchor=wT;exports.Arrow=OT;exports.Button=SC;exports.ChatIdContext=pA;exports.Check=sv;exports.ChevronDown=Qs;exports.ChevronUp=yA;exports.CircleAlert=cv;exports.CollapsibleContent=ym;exports.CollapsibleTrigger=vm;exports.Content=ST;exports.DismissableLayer=Sm;exports.ElementsContext=hA;exports.FocusScope=Om;exports.Portal=Am;exports.Presence=eo;exports.Primitive=de;exports.ReactRemoveScroll=_m;exports.Root=JK;exports.Root$1=fE;exports.Root2=xT;exports.Slottable=z4;exports.ToolApprovalContext=Sj;exports.ToolExecutionProvider=vY;exports.assert=bj;exports.assertNever=gj;exports.chart=nE;exports.cn=ae;exports.composeEventHandlers=he;exports.createContext2=QK;exports.createContextScope=Mt;exports.createLucideIcon=za;exports.createPopperScope=Nm;exports.createSlot=mi;exports.createSlot$1=xC;exports.createSlottable=HK;exports.cva=Mi;exports.generativeUI=PC;exports.hideOthers=$E;exports.recommended=VY;exports.sleep=xj;exports.useCallbackRef=Ht;exports.useChatId=wj;exports.useComposedRefs=Re;exports.useControllableState=pr;exports.useDensity=ov;exports.useElements=av;exports.useFocusGuards=PE;exports.useId=zr;exports.useIsHydrated=NE;exports.useLayoutEffect2=Ne;exports.useRadius=gA;
|
|
280
|
+
//# sourceMappingURL=index-CGBkMd0d.cjs.map
|