claude-session-dashboard 0.2.1 → 0.3.1

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.
Files changed (37) hide show
  1. package/README.md +156 -14
  2. package/dist/client/assets/_dashboard-C-1YOzkf.js +1 -0
  3. package/dist/client/assets/_sessionId-C4jQeEqE.js +12 -0
  4. package/dist/client/assets/app-DNBe9Acr.css +1 -0
  5. package/dist/client/assets/{createServerFn-B0pEGqTk.js → createServerFn-B5mibSc4.js} +1 -1
  6. package/dist/client/assets/index-C83jHUdL.js +1 -0
  7. package/dist/client/assets/{main-CM5g2n-_.js → main-CkUc_xJ0.js} +7 -7
  8. package/dist/client/assets/{sessions.queries-AUVV0tJj.js → sessions.queries-C-HTNzuR.js} +1 -1
  9. package/dist/client/assets/settings-D56cUmNH.js +1 -0
  10. package/dist/client/assets/{settings.types-BRNIMHGJ.js → settings.types-l5MKKuAK.js} +1 -1
  11. package/dist/client/assets/stats-BunIdzj_.js +4 -0
  12. package/dist/client/assets/{useSessionCost-DgFKglaG.js → useSessionCost-BDldLkTA.js} +1 -1
  13. package/dist/client/favicon.svg +3 -0
  14. package/dist/server/assets/_dashboard-TUzgwLqB.js +112 -0
  15. package/dist/server/assets/{_sessionId-BZf2Aqy5.js → _sessionId-BvDwvNyA.js} +162 -145
  16. package/dist/server/assets/_tanstack-start-manifest_v-CVdzOaof.js +4 -0
  17. package/dist/server/assets/{claude-path-BdwflgZ1.js → claude-path-B2oho3NT.js} +2 -2
  18. package/dist/server/assets/{index-Do0HxVmM.js → index-Biupny11.js} +22 -21
  19. package/dist/server/assets/{project-analytics.server-BkWSd6a8.js → project-analytics.server-t1bM6wAa.js} +3 -3
  20. package/dist/server/assets/{router-ChxlsPNU.js → router-kB-tCwY9.js} +55 -29
  21. package/dist/server/assets/{session-detail.server-DLXl-Pn-.js → session-detail.server-IUw67jz-.js} +2 -2
  22. package/dist/server/assets/{session-parser-CAEXxF1D.js → session-parser-CIucKYBT.js} +67 -0
  23. package/dist/server/assets/{session-scanner-CLfls9u-.js → session-scanner-1h9TTTAV.js} +2 -2
  24. package/dist/server/assets/{sessions.server-CUhasKW2.js → sessions.server-Cpffr3MU.js} +3 -3
  25. package/dist/server/assets/{settings-ko61yfVs.js → settings-jxAA3KAS.js} +66 -20
  26. package/dist/server/assets/{stats-C9cZXTP5.js → stats-CzGBAoxT.js} +261 -24
  27. package/dist/server/assets/{stats.server-52mNk2Yw.js → stats.server-DXJiLqey.js} +62 -3
  28. package/dist/server/server.js +17 -17
  29. package/package.json +7 -1
  30. package/dist/client/assets/_dashboard-Bxw4OxIS.js +0 -1
  31. package/dist/client/assets/_sessionId-CNR4Ln7m.js +0 -12
  32. package/dist/client/assets/app-u2nTs9ny.css +0 -1
  33. package/dist/client/assets/index-BbdJ1jMA.js +0 -1
  34. package/dist/client/assets/settings-CIwZDakc.js +0 -1
  35. package/dist/client/assets/stats-CjWSMX3y.js +0 -4
  36. package/dist/server/assets/_dashboard-CAO6-qAS.js +0 -116
  37. package/dist/server/assets/_tanstack-start-manifest_v-C5hwNzs-.js +0 -4
@@ -1 +1 @@
1
- import{c as e,q as c,v as s,x as d,t as n,z as i}from"./main-CM5g2n-_.js";import{c as a,q as r}from"./createServerFn-B0pEGqTk.js";a({method:"GET"}).handler(e("bf8e4a7901f1843bdc9c46be1ad5ad59c615b8bbe611b73eb3ff28f20e43ee0d"));const f=a({method:"GET"}).handler(e("839d29fe93dfa2a6d506af7b48ca25197190a5ff4c796e970ddfdc6e8c98827f"));c({page:n().int().min(1),pageSize:n().int().min(5).max(100),search:s(),status:d(["all","active","completed"]),project:s()});const o=a({method:"GET"}).handler(e("a3f42f9012fd83586787da8f7cb90649da739dd947d867eb67572f68735ff495")),u=r({queryKey:["sessions","active"],queryFn:()=>f(),refetchInterval:3e3});function y(t){return r({queryKey:["sessions","paginated",t],queryFn:()=>o({data:t}),placeholderData:i,refetchInterval:3e4})}export{u as a,y as p};
1
+ import{c as e,t as c,w as s,y as d,v as n,A as i}from"./main-CkUc_xJ0.js";import{c as a,q as r}from"./createServerFn-B5mibSc4.js";a({method:"GET"}).handler(e("bf8e4a7901f1843bdc9c46be1ad5ad59c615b8bbe611b73eb3ff28f20e43ee0d"));const f=a({method:"GET"}).handler(e("839d29fe93dfa2a6d506af7b48ca25197190a5ff4c796e970ddfdc6e8c98827f"));c({page:n().int().min(1),pageSize:n().int().min(5).max(100),search:s(),status:d(["all","active","completed"]),project:s()});const o=a({method:"GET"}).handler(e("a3f42f9012fd83586787da8f7cb90649da739dd947d867eb67572f68735ff495")),b=r({queryKey:["sessions","active"],queryFn:()=>f(),refetchInterval:3e3});function u(t){return r({queryKey:["sessions","paginated",t],queryFn:()=>o({data:t}),placeholderData:i,refetchInterval:3e4})}export{b as a,u as p};
@@ -0,0 +1 @@
1
+ import{j as e,b as f,r as p}from"./main-CkUc_xJ0.js";import{u as N}from"./createServerFn-B5mibSc4.js";import{S as v,D as y,u as k,a as b,s as P}from"./settings.types-l5MKKuAK.js";function T({value:a,onChange:n}){return e.jsx("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-3 lg:grid-cols-4",children:v.map(i=>{const d=a===i.id;return e.jsxs("button",{type:"button",onClick:()=>n(i.id),className:`rounded-lg border px-3 py-2 text-left transition-colors ${d?"border-brand-500 bg-brand-500/10 text-white":"border-gray-800 bg-gray-900/50 text-gray-400 hover:border-gray-700 hover:text-gray-300"}`,children:[e.jsx("div",{className:"text-sm font-medium",children:i.displayName}),e.jsx("div",{className:"mt-0.5 font-mono text-[10px] text-gray-500",children:i.monthlyUSD!==null?`$${i.monthlyUSD}/mo`:"Custom"})]},i.id)})})}const j=[{key:"inputPerMTok",label:"Input"},{key:"outputPerMTok",label:"Output"},{key:"cacheReadPerMTok",label:"Cache Read"},{key:"cacheWritePerMTok",label:"Cache Write"}];function S({overrides:a,onChange:n}){function i(t,r,c){const o=parseFloat(c);if(!Number.isFinite(o)||o<0||o>1e6)return;const s=y.find(g=>g.modelId===t);if(!s)return;const l=a[t]?{...a[t]}:{inputPerMTok:s.inputPerMTok,outputPerMTok:s.outputPerMTok,cacheReadPerMTok:s.cacheReadPerMTok,cacheWritePerMTok:s.cacheWritePerMTok};l[r]=o;const h=l.inputPerMTok===s.inputPerMTok&&l.outputPerMTok===s.outputPerMTok&&l.cacheReadPerMTok===s.cacheReadPerMTok&&l.cacheWritePerMTok===s.cacheWritePerMTok,x={...a};h?delete x[t]:x[t]=l,n(x)}function d(t,r){const c=a[t.modelId];return c?c[r]:t[r]}function u(t,r){const c=a[t];if(!c)return!1;const o=y.find(s=>s.modelId===t);return o?c[r]!==o[r]:!1}return e.jsxs("div",{className:"overflow-x-auto",children:[e.jsxs("table",{className:"w-full text-left text-xs",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-gray-800",children:[e.jsx("th",{className:"pb-2 pr-4 text-gray-400 font-medium",children:"Model"}),j.map(t=>e.jsx("th",{className:"pb-2 px-2 text-right text-gray-400 font-medium",children:t.label},t.key))]})}),e.jsx("tbody",{children:y.map(t=>e.jsxs("tr",{className:"border-b border-gray-800/50",children:[e.jsx("td",{className:"py-2 pr-4 font-mono text-gray-300",children:t.displayName}),j.map(r=>{const c=d(t,r.key),o=u(t.modelId,r.key);return e.jsx("td",{className:"px-1 py-1.5",children:e.jsx("input",{type:"number",step:"0.01",min:"0",value:c,onChange:s=>i(t.modelId,r.key,s.target.value),className:`w-20 rounded border px-2 py-1 text-right font-mono text-xs ${o?"border-brand-500/50 bg-brand-500/10 text-brand-400":"border-gray-700 bg-gray-800 text-gray-300"} focus:border-brand-500 focus:outline-none`})},r.key)})]},t.modelId))})]}),e.jsx("p",{className:"mt-2 text-[10px] text-gray-600",children:"Prices in USD per million tokens. Overridden values are highlighted."})]})}function M(){const{data:a,isLoading:n}=N(P);return n||!a?e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"h-8 w-48 animate-pulse rounded bg-gray-800"}),e.jsx("div",{className:"h-64 animate-pulse rounded-xl bg-gray-900/50"})]}):e.jsx(C,{settings:a})}function C({settings:a}){const n=k(),{privacyMode:i,togglePrivacyMode:d}=f(),[u,t]=p.useState(a.subscriptionTier),[r,c]=p.useState(a.pricingOverrides),[o,s]=p.useState(!1);function l(m){t(m),s(!0)}function h(m){c(m),s(!0)}function x(){t(b.subscriptionTier),c(b.pricingOverrides),s(!0)}function g(){const m={version:1,subscriptionTier:u,pricingOverrides:r};n.mutate(m,{onSuccess:()=>{s(!1)}})}return e.jsxs("div",{children:[e.jsx("h1",{className:"text-xl font-bold text-white",children:"Settings"}),e.jsx("p",{className:"mt-1 text-xs text-gray-500",children:"Configure your subscription tier and API pricing for cost estimation."}),e.jsxs("div",{className:"mt-6",children:[e.jsx("h2",{className:"text-sm font-semibold text-gray-300",children:"Privacy Mode"}),e.jsx("p",{className:"mt-1 text-[10px] text-gray-500",children:"Hide project names, file paths, and branch names across the dashboard. Useful when screen-sharing or recording demos."}),e.jsxs("div",{className:"mt-3 rounded-xl border border-gray-800 bg-gray-900/50 p-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-xs text-gray-300",children:"Enable privacy mode"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-xs text-gray-500",children:i?"On":"Off"}),e.jsx("button",{type:"button",role:"switch","aria-checked":i,onClick:d,className:`relative inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full transition-colors ${i?"bg-brand-600":"bg-gray-800"}`,children:e.jsx("span",{className:`inline-block h-3.5 w-3.5 rounded-full bg-white transition-transform ${i?"translate-x-[18px]":"translate-x-[3px]"}`})})]})]}),e.jsxs("div",{className:"mt-3 border-t border-gray-800 pt-3",children:[e.jsx("p",{className:"text-[10px] font-medium text-gray-400",children:"What gets hidden:"}),e.jsxs("ul",{className:"mt-1.5 space-y-1 text-[10px] text-gray-500",children:[e.jsxs("li",{children:[e.jsx("span",{className:"text-gray-400",children:"Project names"})," ",e.jsx("span",{className:"font-mono text-gray-600",children:"→ project-1, project-2, ..."})]}),e.jsxs("li",{children:[e.jsx("span",{className:"text-gray-400",children:"File paths"})," ",e.jsx("span",{className:"font-mono text-gray-600",children:"→ .../project-1"})]}),e.jsxs("li",{children:[e.jsx("span",{className:"text-gray-400",children:"Branch names"})," ",e.jsx("span",{className:"font-mono text-gray-600",children:"→ branch-1, branch-2, ..."})]})]})]})]})]}),e.jsxs("div",{className:"mt-6",children:[e.jsx("h2",{className:"text-sm font-semibold text-gray-300",children:"Subscription Tier"}),e.jsx("p",{className:"mt-1 text-[10px] text-gray-500",children:"Select your Claude subscription plan. This is informational only and does not affect cost calculations."}),e.jsx("div",{className:"mt-3",children:e.jsx(T,{value:u,onChange:l})})]}),e.jsxs("div",{className:"mt-6",children:[e.jsx("h2",{className:"text-sm font-semibold text-gray-300",children:"API Pricing (per million tokens)"}),e.jsx("p",{className:"mt-1 text-[10px] text-gray-500",children:"Default prices from Anthropic. Override any value to match your negotiated rates."}),e.jsx("div",{className:"mt-3 rounded-xl border border-gray-800 bg-gray-900/50 p-4",children:e.jsx(S,{overrides:r,onChange:h})})]}),e.jsxs("div",{className:"mt-6 flex items-center justify-between",children:[e.jsx("button",{type:"button",onClick:x,className:"rounded-lg border border-gray-700 px-3 py-1.5 text-xs text-gray-400 transition-colors hover:border-gray-600 hover:text-gray-300",children:"Reset to Defaults"}),e.jsxs("div",{className:"flex items-center gap-3",children:[n.isSuccess&&!o&&e.jsx("span",{className:"text-xs text-emerald-400",children:"Saved"}),n.isError&&e.jsxs("span",{className:"text-xs text-red-400",children:["Failed to save: ",n.error?.message??"Unknown error"]}),e.jsx("button",{type:"button",onClick:g,disabled:!o||n.isPending,className:`rounded-lg px-4 py-1.5 text-xs font-medium transition-colors ${o&&!n.isPending?"bg-brand-600 text-white hover:bg-brand-500":"cursor-not-allowed bg-gray-800 text-gray-500"}`,children:n.isPending?"Saving...":"Save"})]})]})]})}function O(){return e.jsx(M,{})}export{O as component};
@@ -1 +1 @@
1
- import{c as d,q as M}from"./createServerFn-B0pEGqTk.js";import{S as P,s as k,k as u,l as b,n as h,m as l,r,o as f,p as S,c as p,q as m,t as o,v as c,w as v,x as O,y as C}from"./main-CM5g2n-_.js";var g=class extends P{#t;#i=void 0;#e;#s;constructor(e,t){super(),this.#t=e,this.setOptions(t),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#t.defaultMutationOptions(e),k(this.options,t)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#e,observer:this}),t?.mutationKey&&this.options.mutationKey&&u(t.mutationKey)!==u(this.options.mutationKey)?this.reset():this.#e?.state.status==="pending"&&this.#e.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#e?.removeObserver(this)}onMutationUpdate(e){this.#a(),this.#r(e)}getCurrentResult(){return this.#i}reset(){this.#e?.removeObserver(this),this.#e=void 0,this.#a(),this.#r()}mutate(e,t){return this.#s=t,this.#e?.removeObserver(this),this.#e=this.#t.getMutationCache().build(this.#t,this.options),this.#e.addObserver(this),this.#e.execute(e)}#a(){const e=this.#e?.state??b();this.#i={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#r(e){h.batch(()=>{if(this.#s&&this.hasListeners()){const t=this.#i.variables,a=this.#i.context,s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#s.onSuccess?.(e.data,t,a,s)}catch(i){Promise.reject(i)}try{this.#s.onSettled?.(e.data,null,t,a,s)}catch(i){Promise.reject(i)}}else if(e?.type==="error"){try{this.#s.onError?.(e.error,t,a,s)}catch(i){Promise.reject(i)}try{this.#s.onSettled?.(void 0,e.error,t,a,s)}catch(i){Promise.reject(i)}}}this.listeners.forEach(t=>{t(this.#i)})})}};function x(e,t){const a=l(),[s]=r.useState(()=>new g(a,e));r.useEffect(()=>{s.setOptions(e)},[s,e]);const i=r.useSyncExternalStore(r.useCallback(n=>s.subscribe(h.batchCalls(n)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),y=r.useCallback((n,T)=>{s.mutate(n,T).catch(f)},[s]);if(i.error&&S(s.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:y,mutateAsync:i.mutate}}const R=d({method:"GET"}).handler(p("810657681a273df5b4e58f0d8fcc6a5451598b489431b9bcaa98eea0ad815da8")),N=d({method:"POST"}).handler(p("3050115d92ca91ab1fd8fd698e33076328aae80dc64ca27c088eee16cebccc1a")),D=M({queryKey:["settings"],queryFn:()=>R(),staleTime:3e5,refetchOnWindowFocus:!1});function W(){const e=l();return x({mutationFn:t=>N({data:t}),onSuccess:()=>{e.invalidateQueries({queryKey:["settings"]})}})}const I=m({inputPerMTok:o().min(0),outputPerMTok:o().min(0),cacheReadPerMTok:o().min(0),cacheWritePerMTok:o().min(0)});m({version:C(1),subscriptionTier:O(["free","pro","max-5x","max-20x","teams","enterprise","api"]).default("pro"),pricingOverrides:v(c(),I).default({}),updatedAt:c().datetime().optional()});const q=[{modelId:"claude-opus-4-6",displayName:"Claude Opus 4.6",inputPerMTok:5,outputPerMTok:25,cacheReadPerMTok:.5,cacheWritePerMTok:6.25},{modelId:"claude-opus-4-5",displayName:"Claude Opus 4.5",inputPerMTok:5,outputPerMTok:25,cacheReadPerMTok:.5,cacheWritePerMTok:6.25},{modelId:"claude-opus-4-1",displayName:"Claude Opus 4.1",inputPerMTok:15,outputPerMTok:75,cacheReadPerMTok:1.5,cacheWritePerMTok:18.75},{modelId:"claude-opus-4",displayName:"Claude Opus 4",inputPerMTok:15,outputPerMTok:75,cacheReadPerMTok:1.5,cacheWritePerMTok:18.75},{modelId:"claude-sonnet-4-5",displayName:"Claude Sonnet 4.5",inputPerMTok:3,outputPerMTok:15,cacheReadPerMTok:.3,cacheWritePerMTok:3.75},{modelId:"claude-sonnet-4",displayName:"Claude Sonnet 4",inputPerMTok:3,outputPerMTok:15,cacheReadPerMTok:.3,cacheWritePerMTok:3.75},{modelId:"claude-haiku-4-5",displayName:"Claude Haiku 4.5",inputPerMTok:1,outputPerMTok:5,cacheReadPerMTok:.1,cacheWritePerMTok:1.25},{modelId:"claude-haiku-3-5",displayName:"Claude Haiku 3.5",inputPerMTok:.8,outputPerMTok:4,cacheReadPerMTok:.08,cacheWritePerMTok:1},{modelId:"claude-haiku-3",displayName:"Claude Haiku 3",inputPerMTok:.25,outputPerMTok:1.25,cacheReadPerMTok:.03,cacheWritePerMTok:.3}],K=[{id:"free",displayName:"Free",monthlyUSD:0},{id:"pro",displayName:"Pro",monthlyUSD:20},{id:"max-5x",displayName:"Max 5x",monthlyUSD:100},{id:"max-20x",displayName:"Max 20x",monthlyUSD:200},{id:"teams",displayName:"Teams",monthlyUSD:150},{id:"enterprise",displayName:"Enterprise",monthlyUSD:null},{id:"api",displayName:"API Only",monthlyUSD:null}],w={subscriptionTier:"pro",pricingOverrides:{}};function F(e){return e.replace(/-\d{8}$/,"")}export{q as D,K as S,w as a,F as n,D as s,W as u};
1
+ import{c as d,q as M}from"./createServerFn-B5mibSc4.js";import{S as P,s as k,l as u,m as b,n as h,o as l,r,p as f,q as S,c as p,t as m,v as o,w as c,x as v,y as O,z as C}from"./main-CkUc_xJ0.js";var g=class extends P{#t;#i=void 0;#e;#s;constructor(e,t){super(),this.#t=e,this.setOptions(t),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#t.defaultMutationOptions(e),k(this.options,t)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#e,observer:this}),t?.mutationKey&&this.options.mutationKey&&u(t.mutationKey)!==u(this.options.mutationKey)?this.reset():this.#e?.state.status==="pending"&&this.#e.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#e?.removeObserver(this)}onMutationUpdate(e){this.#a(),this.#r(e)}getCurrentResult(){return this.#i}reset(){this.#e?.removeObserver(this),this.#e=void 0,this.#a(),this.#r()}mutate(e,t){return this.#s=t,this.#e?.removeObserver(this),this.#e=this.#t.getMutationCache().build(this.#t,this.options),this.#e.addObserver(this),this.#e.execute(e)}#a(){const e=this.#e?.state??b();this.#i={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#r(e){h.batch(()=>{if(this.#s&&this.hasListeners()){const t=this.#i.variables,a=this.#i.context,s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#s.onSuccess?.(e.data,t,a,s)}catch(i){Promise.reject(i)}try{this.#s.onSettled?.(e.data,null,t,a,s)}catch(i){Promise.reject(i)}}else if(e?.type==="error"){try{this.#s.onError?.(e.error,t,a,s)}catch(i){Promise.reject(i)}try{this.#s.onSettled?.(void 0,e.error,t,a,s)}catch(i){Promise.reject(i)}}}this.listeners.forEach(t=>{t(this.#i)})})}};function x(e,t){const a=l(),[s]=r.useState(()=>new g(a,e));r.useEffect(()=>{s.setOptions(e)},[s,e]);const i=r.useSyncExternalStore(r.useCallback(n=>s.subscribe(h.batchCalls(n)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),y=r.useCallback((n,T)=>{s.mutate(n,T).catch(f)},[s]);if(i.error&&S(s.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:y,mutateAsync:i.mutate}}const R=d({method:"GET"}).handler(p("810657681a273df5b4e58f0d8fcc6a5451598b489431b9bcaa98eea0ad815da8")),N=d({method:"POST"}).handler(p("3050115d92ca91ab1fd8fd698e33076328aae80dc64ca27c088eee16cebccc1a")),D=M({queryKey:["settings"],queryFn:()=>R(),staleTime:3e5,refetchOnWindowFocus:!1});function W(){const e=l();return x({mutationFn:t=>N({data:t}),onSuccess:()=>{e.invalidateQueries({queryKey:["settings"]})}})}const I=m({inputPerMTok:o().min(0),outputPerMTok:o().min(0),cacheReadPerMTok:o().min(0),cacheWritePerMTok:o().min(0)});m({version:C(1),subscriptionTier:O(["free","pro","max-5x","max-20x","teams","enterprise","api"]).default("pro"),pricingOverrides:v(c(),I).default({}),updatedAt:c().datetime().optional()});const q=[{modelId:"claude-opus-4-6",displayName:"Claude Opus 4.6",inputPerMTok:5,outputPerMTok:25,cacheReadPerMTok:.5,cacheWritePerMTok:6.25},{modelId:"claude-opus-4-5",displayName:"Claude Opus 4.5",inputPerMTok:5,outputPerMTok:25,cacheReadPerMTok:.5,cacheWritePerMTok:6.25},{modelId:"claude-opus-4-1",displayName:"Claude Opus 4.1",inputPerMTok:15,outputPerMTok:75,cacheReadPerMTok:1.5,cacheWritePerMTok:18.75},{modelId:"claude-opus-4",displayName:"Claude Opus 4",inputPerMTok:15,outputPerMTok:75,cacheReadPerMTok:1.5,cacheWritePerMTok:18.75},{modelId:"claude-sonnet-4-5",displayName:"Claude Sonnet 4.5",inputPerMTok:3,outputPerMTok:15,cacheReadPerMTok:.3,cacheWritePerMTok:3.75},{modelId:"claude-sonnet-4",displayName:"Claude Sonnet 4",inputPerMTok:3,outputPerMTok:15,cacheReadPerMTok:.3,cacheWritePerMTok:3.75},{modelId:"claude-haiku-4-5",displayName:"Claude Haiku 4.5",inputPerMTok:1,outputPerMTok:5,cacheReadPerMTok:.1,cacheWritePerMTok:1.25},{modelId:"claude-haiku-3-5",displayName:"Claude Haiku 3.5",inputPerMTok:.8,outputPerMTok:4,cacheReadPerMTok:.08,cacheWritePerMTok:1},{modelId:"claude-haiku-3",displayName:"Claude Haiku 3",inputPerMTok:.25,outputPerMTok:1.25,cacheReadPerMTok:.03,cacheWritePerMTok:.3}],K=[{id:"free",displayName:"Free",monthlyUSD:0},{id:"pro",displayName:"Pro",monthlyUSD:20},{id:"max-5x",displayName:"Max 5x",monthlyUSD:100},{id:"max-20x",displayName:"Max 20x",monthlyUSD:200},{id:"teams",displayName:"Teams",monthlyUSD:150},{id:"enterprise",displayName:"Enterprise",monthlyUSD:null},{id:"api",displayName:"API Only",monthlyUSD:null}],w={subscriptionTier:"pro",pricingOverrides:{}};function F(e){return e.replace(/-\d{8}$/,"")}export{q as D,K as S,w as a,F as n,D as s,W as u};
@@ -0,0 +1,4 @@
1
+ import{c as ht,R as p,g as pt,r as _,j as o,a as Ut,b as yt,L as Wt,d as qe}from"./main-CkUc_xJ0.js";import{c as gt,q as vt,u as xt}from"./createServerFn-B5mibSc4.js";import{t as ve,c as bt,m as jt,a as kt,f as G,b as ee,s as Vt,d as Ie,e as Gt,g as Ye}from"./format-Bsprb3az.js";import{c as B,f as A,r as At,a as Ht,b as Ot,d as qt,i as L,T as Le,p as R,L as I,g as Nt,e as $e,h as wt,D as Yt,C as Zt,j as X,k as Z,S as Jt,A as Qt,l as Xt,m as Ze,n as er,o as w,q as tr,u as rr,G as nr,s as pe,t as ar,v as Pt,w as ir,x as ue,y as xe,z as sr,B as or,E as lr,F as cr,H as ur,I as St,J as Tt,K as _t,M as Ct,N as Et,O as ye,X as Re,Y as ze,P as dr,Q as fr,R as Fe,U as Be,V as mr,W as hr,Z as pr,_ as yr,$ as gr,a0 as de,a1 as vr,a2 as xr,a3 as br,a4 as jr}from"./useSessionCost-BDldLkTA.js";import"./settings.types-l5MKKuAK.js";const kr=gt({method:"GET"}).handler(ht("4b9a58c176f487b49800a372100037cdf33cf048f3592a449f115c7e3f5ea799")),Ar=vt({queryKey:["stats"],queryFn:()=>kr(),refetchInterval:6e4});var Or=["points","className","baseLinePoints","connectNulls"];function J(){return J=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},J.apply(this,arguments)}function Nr(t,e){if(t==null)return{};var n=wr(t,e),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)r=i[a],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function wr(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function Je(t){return _r(t)||Tr(t)||Sr(t)||Pr()}function Pr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sr(t,e){if(t){if(typeof t=="string")return Ce(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ce(t,e)}}function Tr(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function _r(t){if(Array.isArray(t))return Ce(t)}function Ce(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Qe=function(e){return e&&e.x===+e.x&&e.y===+e.y},Cr=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return e.forEach(function(r){Qe(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),Qe(e[0])&&n[n.length-1].push(e[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},oe=function(e,n){var r=Cr(e);n&&(r=[r.reduce(function(i,s){return[].concat(Je(i),Je(s))},[])]);var a=r.map(function(i){return i.reduce(function(s,c,u){return"".concat(s).concat(u===0?"M":"L").concat(c.x,",").concat(c.y)},"")}).join("");return r.length===1?"".concat(a,"Z"):a},Er=function(e,n,r){var a=oe(e,r);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat(oe(n.reverse(),r).slice(1))},Dr=function(e){var n=e.points,r=e.className,a=e.baseLinePoints,i=e.connectNulls,s=Nr(e,Or);if(!n||!n.length)return null;var c=B("recharts-polygon",r);if(a&&a.length){var u=s.stroke&&s.stroke!=="none",l=Er(n,a,i);return p.createElement("g",{className:c},p.createElement("path",J({},A(s,!0),{fill:l.slice(-1)==="Z"?s.fill:"none",stroke:"none",d:l})),u?p.createElement("path",J({},A(s,!0),{fill:"none",d:oe(n,i)})):null,u?p.createElement("path",J({},A(s,!0),{fill:"none",d:oe(a,i)})):null)}var d=oe(n,i);return p.createElement("path",J({},A(s,!0),{fill:d.slice(-1)==="Z"?s.fill:"none",className:c,d}))},Pe,Xe;function Mr(){if(Xe)return Pe;Xe=1;var t=At(),e=Ht(),n=Ot();function r(a,i){return a&&a.length?t(a,n(i,2),e):void 0}return Pe=r,Pe}var Ir=Mr();const Lr=pt(Ir);var Se,et;function $r(){if(et)return Se;et=1;var t=At(),e=Ot(),n=qt();function r(a,i){return a&&a.length?t(a,e(i,2),n):void 0}return Se=r,Se}var Rr=$r();const zr=pt(Rr);var Fr=["cx","cy","angle","ticks","axisLine"],Br=["ticks","tick","angle","tickFormatter","stroke"];function te(t){"@babel/helpers - typeof";return te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},te(t)}function le(){return le=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},le.apply(this,arguments)}function tt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function K(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?tt(Object(n),!0).forEach(function(r){Ae(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function rt(t,e){if(t==null)return{};var n=Kr(t,e),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)r=i[a],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Kr(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function Ur(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Mt(r.key),r)}}function Wr(t,e,n){return e&&nt(t.prototype,e),n&&nt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Vr(t,e,n){return e=be(e),Gr(t,Dt()?Reflect.construct(e,n||[],be(t).constructor):e.apply(t,n))}function Gr(t,e){if(e&&(te(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hr(t)}function Hr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Dt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Dt=function(){return!!t})()}function be(t){return be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},be(t)}function qr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ee(t,e)}function Ee(t,e){return Ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Ee(t,e)}function Ae(t,e,n){return e=Mt(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Mt(t){var e=Yr(t,"string");return te(e)=="symbol"?e:e+""}function Yr(t,e){if(te(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(te(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Oe=(function(t){function e(){return Ur(this,e),Vr(this,e,arguments)}return qr(e,t),Wr(e,[{key:"getTickValueCoord",value:function(r){var a=r.coordinate,i=this.props,s=i.angle,c=i.cx,u=i.cy;return R(c,u,a,s)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,a;switch(r){case"left":a="end";break;case"right":a="start";break;default:a="middle";break}return a}},{key:"getViewBox",value:function(){var r=this.props,a=r.cx,i=r.cy,s=r.angle,c=r.ticks,u=Lr(c,function(d){return d.coordinate||0}),l=zr(c,function(d){return d.coordinate||0});return{cx:a,cy:i,startAngle:s,endAngle:s,innerRadius:l.coordinate||0,outerRadius:u.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,i=r.cy,s=r.angle,c=r.ticks,u=r.axisLine,l=rt(r,Fr),d=c.reduce(function(g,f){return[Math.min(g[0],f.coordinate),Math.max(g[1],f.coordinate)]},[1/0,-1/0]),y=R(a,i,d[0],s),h=R(a,i,d[1],s),v=K(K(K({},A(l,!1)),{},{fill:"none"},A(u,!1)),{},{x1:y.x,y1:y.y,x2:h.x,y2:h.y});return p.createElement("line",le({className:"recharts-polar-radius-axis-line"},v))}},{key:"renderTicks",value:function(){var r=this,a=this.props,i=a.ticks,s=a.tick,c=a.angle,u=a.tickFormatter,l=a.stroke,d=rt(a,Br),y=this.getTickTextAnchor(),h=A(d,!1),v=A(s,!1),g=i.map(function(f,m){var x=r.getTickValueCoord(f),b=K(K(K(K({textAnchor:y,transform:"rotate(".concat(90-c,", ").concat(x.x,", ").concat(x.y,")")},h),{},{stroke:"none",fill:l},v),{},{index:m},x),{},{payload:f});return p.createElement(I,le({className:B("recharts-polar-radius-axis-tick",Nt(s)),key:"tick-".concat(f.coordinate)},$e(r.props,f,m)),e.renderTickItem(s,b,u?u(f.value,m):f.value))});return p.createElement(I,{className:"recharts-polar-radius-axis-ticks"},g)}},{key:"render",value:function(){var r=this.props,a=r.ticks,i=r.axisLine,s=r.tick;return!a||!a.length?null:p.createElement(I,{className:B("recharts-polar-radius-axis",this.props.className)},i&&this.renderAxisLine(),s&&this.renderTicks(),wt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,a,i){var s;return p.isValidElement(r)?s=p.cloneElement(r,a):L(r)?s=r(a):s=p.createElement(Le,le({},a,{className:"recharts-polar-radius-axis-tick-value"}),i),s}}])})(_.PureComponent);Ae(Oe,"displayName","PolarRadiusAxis");Ae(Oe,"axisType","radiusAxis");Ae(Oe,"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 re(t){"@babel/helpers - typeof";return re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},re(t)}function W(){return W=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},W.apply(this,arguments)}function at(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function U(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?at(Object(n),!0).forEach(function(r){Ne(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Zr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function it(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Lt(r.key),r)}}function Jr(t,e,n){return e&&it(t.prototype,e),n&&it(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Qr(t,e,n){return e=je(e),Xr(t,It()?Reflect.construct(e,n||[],je(t).constructor):e.apply(t,n))}function Xr(t,e){if(e&&(re(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return en(t)}function en(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function It(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(It=function(){return!!t})()}function je(t){return je=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},je(t)}function tn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&De(t,e)}function De(t,e){return De=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},De(t,e)}function Ne(t,e,n){return e=Lt(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Lt(t){var e=rn(t,"string");return re(e)=="symbol"?e:e+""}function rn(t,e){if(re(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(re(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var nn=Math.PI/180,st=1e-5,we=(function(t){function e(){return Zr(this,e),Qr(this,e,arguments)}return tn(e,t),Jr(e,[{key:"getTickLineCoord",value:function(r){var a=this.props,i=a.cx,s=a.cy,c=a.radius,u=a.orientation,l=a.tickSize,d=l||8,y=R(i,s,c,r.coordinate),h=R(i,s,c+(u==="inner"?-1:1)*d,r.coordinate);return{x1:y.x,y1:y.y,x2:h.x,y2:h.y}}},{key:"getTickTextAnchor",value:function(r){var a=this.props.orientation,i=Math.cos(-r.coordinate*nn),s;return i>st?s=a==="outer"?"start":"end":i<-st?s=a==="outer"?"end":"start":s="middle",s}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,i=r.cy,s=r.radius,c=r.axisLine,u=r.axisLineType,l=U(U({},A(this.props,!1)),{},{fill:"none"},A(c,!1));if(u==="circle")return p.createElement(Yt,W({className:"recharts-polar-angle-axis-line"},l,{cx:a,cy:i,r:s}));var d=this.props.ticks,y=d.map(function(h){return R(a,i,s,h.coordinate)});return p.createElement(Dr,W({className:"recharts-polar-angle-axis-line"},l,{points:y}))}},{key:"renderTicks",value:function(){var r=this,a=this.props,i=a.ticks,s=a.tick,c=a.tickLine,u=a.tickFormatter,l=a.stroke,d=A(this.props,!1),y=A(s,!1),h=U(U({},d),{},{fill:"none"},A(c,!1)),v=i.map(function(g,f){var m=r.getTickLineCoord(g),x=r.getTickTextAnchor(g),b=U(U(U({textAnchor:x},d),{},{stroke:"none",fill:l},y),{},{index:f,payload:g,x:m.x2,y:m.y2});return p.createElement(I,W({className:B("recharts-polar-angle-axis-tick",Nt(s)),key:"tick-".concat(g.coordinate)},$e(r.props,g,f)),c&&p.createElement("line",W({className:"recharts-polar-angle-axis-tick-line"},h,m)),s&&e.renderTickItem(s,b,u?u(g.value,f):g.value))});return p.createElement(I,{className:"recharts-polar-angle-axis-ticks"},v)}},{key:"render",value:function(){var r=this.props,a=r.ticks,i=r.radius,s=r.axisLine;return i<=0||!a||!a.length?null:p.createElement(I,{className:B("recharts-polar-angle-axis",this.props.className)},s&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,a,i){var s;return p.isValidElement(r)?s=p.cloneElement(r,a):L(r)?s=r(a):s=p.createElement(Le,W({},a,{className:"recharts-polar-angle-axis-tick-value"}),i),s}}])})(_.PureComponent);Ne(we,"displayName","PolarAngleAxis");Ne(we,"axisType","angleAxis");Ne(we,"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 ge;function ne(t){"@babel/helpers - typeof";return ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(t)}function Q(){return Q=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Q.apply(this,arguments)}function ot(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function j(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ot(Object(n),!0).forEach(function(r){E(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function an(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Rt(r.key),r)}}function sn(t,e,n){return e&&lt(t.prototype,e),n&&lt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function on(t,e,n){return e=ke(e),ln(t,$t()?Reflect.construct(e,n||[],ke(t).constructor):e.apply(t,n))}function ln(t,e){if(e&&(ne(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cn(t)}function cn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $t(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($t=function(){return!!t})()}function ke(t){return ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ke(t)}function un(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Me(t,e)}function Me(t,e){return Me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Me(t,e)}function E(t,e,n){return e=Rt(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Rt(t){var e=dn(t,"string");return ne(e)=="symbol"?e:e+""}function dn(t,e){if(ne(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(ne(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var z=(function(t){function e(n){var r;return an(this,e),r=on(this,e,[n]),E(r,"pieRef",null),E(r,"sectorRefs",[]),E(r,"id",rr("recharts-pie-")),E(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),L(a)&&a()}),E(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),L(a)&&a()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return un(e,t),sn(e,[{key:"isActiveIndex",value:function(r){var a=this.props.activeIndex;return Array.isArray(a)?a.indexOf(r)!==-1:r===a}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var i=this.props,s=i.label,c=i.labelLine,u=i.dataKey,l=i.valueKey,d=A(this.props,!1),y=A(s,!1),h=A(c,!1),v=s&&s.offsetRadius||20,g=r.map(function(f,m){var x=(f.startAngle+f.endAngle)/2,b=R(f.cx,f.cy,f.outerRadius+v,x),k=j(j(j(j({},d),f),{},{stroke:"none"},y),{},{index:m,textAnchor:e.getTextAnchor(b.x,f.cx)},b),C=j(j(j(j({},d),f),{},{fill:"none",stroke:f.fill},h),{},{index:m,points:[R(f.cx,f.cy,f.outerRadius,x),b]}),P=u;return X(u)&&X(l)?P="value":X(u)&&(P=l),p.createElement(I,{key:"label-".concat(f.startAngle,"-").concat(f.endAngle,"-").concat(f.midAngle,"-").concat(m)},c&&e.renderLabelLineItem(c,C,"line"),e.renderLabelItem(s,k,Z(f,P)))});return p.createElement(I,{className:"recharts-pie-labels"},g)}},{key:"renderSectorsStatically",value:function(r){var a=this,i=this.props,s=i.activeShape,c=i.blendStroke,u=i.inactiveShape;return r.map(function(l,d){if(l?.startAngle===0&&l?.endAngle===0&&r.length!==1)return null;var y=a.isActiveIndex(d),h=u&&a.hasActiveIndex()?u:null,v=y?s:h,g=j(j({},l),{},{stroke:c?l.fill:l.stroke,tabIndex:-1});return p.createElement(I,Q({ref:function(m){m&&!a.sectorRefs.includes(m)&&a.sectorRefs.push(m)},tabIndex:-1,className:"recharts-pie-sector"},$e(a.props,l,d),{key:"sector-".concat(l?.startAngle,"-").concat(l?.endAngle,"-").concat(l.midAngle,"-").concat(d)}),p.createElement(Jt,Q({option:v,isActive:y,shapeType:"sector"},g)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,a=this.props,i=a.sectors,s=a.isAnimationActive,c=a.animationBegin,u=a.animationDuration,l=a.animationEasing,d=a.animationId,y=this.state,h=y.prevSectors,v=y.prevIsAnimationActive;return p.createElement(Qt,{begin:c,duration:u,isActive:s,easing:l,from:{t:0},to:{t:1},key:"pie-".concat(d,"-").concat(v),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(g){var f=g.t,m=[],x=i&&i[0],b=x.startAngle;return i.forEach(function(k,C){var P=h&&h[C],S=C>0?Xt(k,"paddingAngle",0):0;if(P){var D=Ze(P.endAngle-P.startAngle,k.endAngle-k.startAngle),O=j(j({},k),{},{startAngle:b+S,endAngle:b+D(f)+S});m.push(O),b=O.endAngle}else{var M=k.endAngle,T=k.startAngle,$=Ze(0,M-T),ce=$(f),F=j(j({},k),{},{startAngle:b+S,endAngle:b+ce+S});m.push(F),b=F.endAngle}}),p.createElement(I,null,r.renderSectorsStatically(m))})}},{key:"attachKeyboardHandlers",value:function(r){var a=this;r.onkeydown=function(i){if(!i.altKey)switch(i.key){case"ArrowLeft":{var s=++a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[s].focus(),a.setState({sectorToFocus:s});break}case"ArrowRight":{var c=--a.state.sectorToFocus<0?a.sectorRefs.length-1:a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[c].focus(),a.setState({sectorToFocus:c});break}case"Escape":{a.sectorRefs[a.state.sectorToFocus].blur(),a.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,a=r.sectors,i=r.isAnimationActive,s=this.state.prevSectors;return i&&a&&a.length&&(!s||!er(s,a))?this.renderSectorsWithAnimation():this.renderSectorsStatically(a)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,a=this.props,i=a.hide,s=a.sectors,c=a.className,u=a.label,l=a.cx,d=a.cy,y=a.innerRadius,h=a.outerRadius,v=a.isAnimationActive,g=this.state.isAnimationFinished;if(i||!s||!s.length||!w(l)||!w(d)||!w(y)||!w(h))return null;var f=B("recharts-pie",c);return p.createElement(I,{tabIndex:this.props.rootTabIndex,className:f,ref:function(x){r.pieRef=x}},this.renderSectors(),u&&this.renderLabels(s),wt.renderCallByParent(this.props,null,!1),(!v||g)&&tr.renderCallByParent(this.props,s,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return a.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:a.curSectors,isAnimationFinished:!0}:r.sectors!==a.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,a){return r>a?"start":r<a?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,a,i){if(p.isValidElement(r))return p.cloneElement(r,a);if(L(r))return r(a);var s=B("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return p.createElement(Zt,Q({},a,{key:i,type:"linear",className:s}))}},{key:"renderLabelItem",value:function(r,a,i){if(p.isValidElement(r))return p.cloneElement(r,a);var s=i;if(L(r)&&(s=r(a),p.isValidElement(s)))return s;var c=B("recharts-pie-label-text",typeof r!="boolean"&&!L(r)?r.className:"");return p.createElement(Le,Q({},a,{alignmentBaseline:"middle",className:c}),s)}}])})(_.PureComponent);ge=z;E(z,"displayName","Pie");E(z,"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:!nr.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});E(z,"parseDeltaAngle",function(t,e){var n=pe(e-t),r=Math.min(Math.abs(e-t),360);return n*r});E(z,"getRealPieData",function(t){var e=t.data,n=t.children,r=A(t,!1),a=ar(n,Pt);return e&&e.length?e.map(function(i,s){return j(j(j({payload:i},r),i),a&&a[s]&&a[s].props)}):a&&a.length?a.map(function(i){return j(j({},r),i.props)}):[]});E(z,"parseCoordinateOfPie",function(t,e){var n=e.top,r=e.left,a=e.width,i=e.height,s=ir(a,i),c=r+ue(t.cx,a,a/2),u=n+ue(t.cy,i,i/2),l=ue(t.innerRadius,s,0),d=ue(t.outerRadius,s,s*.8),y=t.maxRadius||Math.sqrt(a*a+i*i)/2;return{cx:c,cy:u,innerRadius:l,outerRadius:d,maxRadius:y}});E(z,"getComposedData",function(t){var e=t.item,n=t.offset,r=e.type.defaultProps!==void 0?j(j({},e.type.defaultProps),e.props):e.props,a=ge.getRealPieData(r);if(!a||!a.length)return null;var i=r.cornerRadius,s=r.startAngle,c=r.endAngle,u=r.paddingAngle,l=r.dataKey,d=r.nameKey,y=r.valueKey,h=r.tooltipType,v=Math.abs(r.minAngle),g=ge.parseCoordinateOfPie(r,n),f=ge.parseDeltaAngle(s,c),m=Math.abs(f),x=l;X(l)&&X(y)?(xe(!1,`Use "dataKey" to specify the value of pie,
3
+ the props "valueKey" will be deprecated in 1.1.0`),x="value"):X(l)&&(xe(!1,`Use "dataKey" to specify the value of pie,
4
+ the props "valueKey" will be deprecated in 1.1.0`),x=y);var b=a.filter(function(O){return Z(O,x,0)!==0}).length,k=(m>=360?b:b-1)*u,C=m-b*v-k,P=a.reduce(function(O,M){var T=Z(M,x,0);return O+(w(T)?T:0)},0),S;if(P>0){var D;S=a.map(function(O,M){var T=Z(O,x,0),$=Z(O,d,M),ce=(w(T)?T:0)/P,F;M?F=D.endAngle+pe(f)*u*(T!==0?1:0):F=s;var Ve=F+pe(f)*((T!==0?v:0)+ce*C),Ge=(F+Ve)/2,He=(g.innerRadius+g.outerRadius)/2,Bt=[{name:$,value:T,payload:O,dataKey:x,type:h}],Kt=R(g.cx,g.cy,He,Ge);return D=j(j(j({percent:ce,cornerRadius:i,name:$,tooltipPayload:Bt,midAngle:Ge,middleRadius:He,tooltipPosition:Kt},O),g),{},{value:Z(O,x),startAngle:F,endAngle:Ve,payload:O,paddingAngle:pe(f)*u}),D})}return j(j({},g),{},{sectors:S,data:a})});var fn=["x1","y1","x2","y2","key"],mn=["offset"];function H(t){"@babel/helpers - typeof";return H=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H(t)}function ct(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function N(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ct(Object(n),!0).forEach(function(r){hn(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function hn(t,e,n){return e=pn(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pn(t){var e=yn(t,"string");return H(e)=="symbol"?e:e+""}function yn(t,e){if(H(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(H(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function V(){return V=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},V.apply(this,arguments)}function ut(t,e){if(t==null)return{};var n=gn(t,e),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)r=i[a],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function gn(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}var vn=function(e){var n=e.fill;if(!n||n==="none")return null;var r=e.fillOpacity,a=e.x,i=e.y,s=e.width,c=e.height,u=e.ry;return p.createElement("rect",{x:a,y:i,ry:u,width:s,height:c,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function zt(t,e){var n;if(p.isValidElement(t))n=p.cloneElement(t,e);else if(L(t))n=t(e);else{var r=e.x1,a=e.y1,i=e.x2,s=e.y2,c=e.key,u=ut(e,fn),l=A(u,!1);l.offset;var d=ut(l,mn);n=p.createElement("line",V({},d,{x1:r,y1:a,x2:i,y2:s,fill:"none",key:c}))}return n}function xn(t){var e=t.x,n=t.width,r=t.horizontal,a=r===void 0?!0:r,i=t.horizontalPoints;if(!a||!i||!i.length)return null;var s=i.map(function(c,u){var l=N(N({},t),{},{x1:e,y1:c,x2:e+n,y2:c,key:"line-".concat(u),index:u});return zt(a,l)});return p.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function bn(t){var e=t.y,n=t.height,r=t.vertical,a=r===void 0?!0:r,i=t.verticalPoints;if(!a||!i||!i.length)return null;var s=i.map(function(c,u){var l=N(N({},t),{},{x1:c,y1:e,x2:c,y2:e+n,key:"line-".concat(u),index:u});return zt(a,l)});return p.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function jn(t){var e=t.horizontalFill,n=t.fillOpacity,r=t.x,a=t.y,i=t.width,s=t.height,c=t.horizontalPoints,u=t.horizontal,l=u===void 0?!0:u;if(!l||!e||!e.length)return null;var d=c.map(function(h){return Math.round(h+a-a)}).sort(function(h,v){return h-v});a!==d[0]&&d.unshift(0);var y=d.map(function(h,v){var g=!d[v+1],f=g?a+s-h:d[v+1]-h;if(f<=0)return null;var m=v%e.length;return p.createElement("rect",{key:"react-".concat(v),y:h,x:r,height:f,width:i,stroke:"none",fill:e[m],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return p.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},y)}function kn(t){var e=t.vertical,n=e===void 0?!0:e,r=t.verticalFill,a=t.fillOpacity,i=t.x,s=t.y,c=t.width,u=t.height,l=t.verticalPoints;if(!n||!r||!r.length)return null;var d=l.map(function(h){return Math.round(h+i-i)}).sort(function(h,v){return h-v});i!==d[0]&&d.unshift(0);var y=d.map(function(h,v){var g=!d[v+1],f=g?i+c-h:d[v+1]-h;if(f<=0)return null;var m=v%r.length;return p.createElement("rect",{key:"react-".concat(v),x:h,y:s,width:f,height:u,stroke:"none",fill:r[m],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return p.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},y)}var An=function(e,n){var r=e.xAxis,a=e.width,i=e.height,s=e.offset;return St(Tt(N(N(N({},Ct.defaultProps),r),{},{ticks:_t(r,!0),viewBox:{x:0,y:0,width:a,height:i}})),s.left,s.left+s.width,n)},On=function(e,n){var r=e.yAxis,a=e.width,i=e.height,s=e.offset;return St(Tt(N(N(N({},Ct.defaultProps),r),{},{ticks:_t(r,!0),viewBox:{x:0,y:0,width:a,height:i}})),s.top,s.top+s.height,n)},q={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Ke(t){var e,n,r,a,i,s,c=sr(),u=or(),l=lr(),d=N(N({},t),{},{stroke:(e=t.stroke)!==null&&e!==void 0?e:q.stroke,fill:(n=t.fill)!==null&&n!==void 0?n:q.fill,horizontal:(r=t.horizontal)!==null&&r!==void 0?r:q.horizontal,horizontalFill:(a=t.horizontalFill)!==null&&a!==void 0?a:q.horizontalFill,vertical:(i=t.vertical)!==null&&i!==void 0?i:q.vertical,verticalFill:(s=t.verticalFill)!==null&&s!==void 0?s:q.verticalFill,x:w(t.x)?t.x:l.left,y:w(t.y)?t.y:l.top,width:w(t.width)?t.width:l.width,height:w(t.height)?t.height:l.height}),y=d.x,h=d.y,v=d.width,g=d.height,f=d.syncWithTicks,m=d.horizontalValues,x=d.verticalValues,b=cr(),k=ur();if(!w(v)||v<=0||!w(g)||g<=0||!w(y)||y!==+y||!w(h)||h!==+h)return null;var C=d.verticalCoordinatesGenerator||An,P=d.horizontalCoordinatesGenerator||On,S=d.horizontalPoints,D=d.verticalPoints;if((!S||!S.length)&&L(P)){var O=m&&m.length,M=P({yAxis:k?N(N({},k),{},{ticks:O?m:k.ticks}):void 0,width:c,height:u,offset:l},O?!0:f);xe(Array.isArray(M),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(H(M),"]")),Array.isArray(M)&&(S=M)}if((!D||!D.length)&&L(C)){var T=x&&x.length,$=C({xAxis:b?N(N({},b),{},{ticks:T?x:b.ticks}):void 0,width:c,height:u,offset:l},T?!0:f);xe(Array.isArray($),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(H($),"]")),Array.isArray($)&&(D=$)}return p.createElement("g",{className:"recharts-cartesian-grid"},p.createElement(vn,{fill:d.fill,fillOpacity:d.fillOpacity,x:d.x,y:d.y,width:d.width,height:d.height,ry:d.ry}),p.createElement(xn,V({},d,{offset:l,horizontalPoints:S,xAxis:b,yAxis:k})),p.createElement(bn,V({},d,{offset:l,verticalPoints:D,xAxis:b,yAxis:k})),p.createElement(jn,V({},d,{horizontalPoints:S})),p.createElement(kn,V({},d,{verticalPoints:D})))}Ke.displayName="CartesianGrid";var Nn=Et({chartName:"BarChart",GraphicalChild:ye,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Re},{axisType:"yAxis",AxisComp:ze}],formatAxisMap:dr}),wn=Et({chartName:"PieChart",GraphicalChild:z,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:we},{axisType:"radiusAxis",AxisComp:Oe}],formatAxisMap:fr,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function Te(t,e,n){const r=ve(t,n?.in);return isNaN(e)?bt(t,NaN):(e&&r.setDate(r.getDate()+e),r)}function dt(t,e){return ve(t,e?.in).getDay()}function Ue(t,e){const n=()=>bt(e?.in,NaN),a=_n(t);let i;if(a.date){const l=Cn(a.date,2);i=En(l.restDateString,l.year)}if(!i||isNaN(+i))return n();const s=+i;let c=0,u;if(a.time&&(c=Dn(a.time),isNaN(c)))return n();if(a.timezone){if(u=Mn(a.timezone),isNaN(u))return n()}else{const l=new Date(s+c),d=ve(0,e?.in);return d.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),d.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),d}return ve(s+c+u,e?.in)}const fe={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Pn=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Sn=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Tn=/^([+-])(\d{2})(?::?(\d{2}))?$/;function _n(t){const e={},n=t.split(fe.dateTimeDelimiter);let r;if(n.length>2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],fe.timeZoneDelimiter.test(e.date)&&(e.date=t.split(fe.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){const a=fe.timezone.exec(r);a?(e.time=r.replace(a[1],""),e.timezone=a[1]):e.time=r}return e}function Cn(t,e){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};const a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?a:i*100,restDateString:t.slice((r[1]||r[2]).length)}}function En(t,e){if(e===null)return new Date(NaN);const n=t.match(Pn);if(!n)return new Date(NaN);const r=!!n[4],a=ae(n[1]),i=ae(n[2])-1,s=ae(n[3]),c=ae(n[4]),u=ae(n[5])-1;if(r)return zn(e,c,u)?In(e,c,u):new Date(NaN);{const l=new Date(0);return!$n(e,i,s)||!Rn(e,a)?new Date(NaN):(l.setUTCFullYear(e,i,Math.max(a,s)),l)}}function ae(t){return t?parseInt(t):1}function Dn(t){const e=t.match(Sn);if(!e)return NaN;const n=_e(e[1]),r=_e(e[2]),a=_e(e[3]);return Fn(n,r,a)?n*jt+r*kt+a*1e3:NaN}function _e(t){return t&&parseFloat(t.replace(",","."))||0}function Mn(t){if(t==="Z")return 0;const e=t.match(Tn);if(!e)return 0;const n=e[1]==="+"?-1:1,r=parseInt(e[2]),a=e[3]&&parseInt(e[3])||0;return Bn(r,a)?n*(r*jt+a*kt):NaN}function In(t,e,n){const r=new Date(0);r.setUTCFullYear(t,0,4);const a=r.getUTCDay()||7,i=(e-1)*7+n+1-a;return r.setUTCDate(r.getUTCDate()+i),r}const Ln=[31,null,31,30,31,30,31,31,30,31,30,31];function Ft(t){return t%400===0||t%4===0&&t%100!==0}function $n(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(Ln[e]||(Ft(t)?29:28))}function Rn(t,e){return e>=1&&e<=(Ft(t)?366:365)}function zn(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function Fn(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function Bn(t,e){return e>=0&&e<=59}function Kn({data:t}){const e=t.map(n=>({...n,dateLabel:G(new Date(n.date),"MMM d")}));return o.jsxs("div",{className:"rounded-xl border border-gray-800 bg-gray-900/50 p-4",children:[o.jsx("h3",{className:"text-sm font-semibold text-gray-300",children:"Daily Activity"}),o.jsx("p",{className:"mt-1 text-xs text-gray-500",children:"Messages, sessions, and tool calls per day"}),o.jsx("div",{className:"mt-4 h-64",children:o.jsx(Fe,{width:"100%",height:"100%",children:o.jsxs(Nn,{data:e,children:[o.jsx(Ke,{strokeDasharray:"3 3",stroke:"#2a2926"}),o.jsx(Re,{dataKey:"dateLabel",tick:{fill:"#7a7668",fontSize:10},tickLine:!1}),o.jsx(ze,{tick:{fill:"#7a7668",fontSize:10},tickLine:!1,axisLine:!1}),o.jsx(Be,{contentStyle:{backgroundColor:"#1c1c1a",border:"1px solid #3d3b36",borderRadius:"8px",fontSize:"12px"}}),o.jsx(ye,{dataKey:"messageCount",name:"Messages",fill:"#d97757",radius:[2,2,0,0]}),o.jsx(ye,{dataKey:"toolCallCount",name:"Tool Calls",fill:"#8b5cf6",radius:[2,2,0,0]}),o.jsx(ye,{dataKey:"sessionCount",name:"Sessions",fill:"#10b981",radius:[2,2,0,0]})]})})})]})}const Un=["#2a2926","#3d2a1e","#a8512eb3","#d97757cc","#e09070"],Wn=["Mon","","Wed","","Fri","",""],Y=10,ie=2,Vn=28;function Gn(t){if(t.length===0)return{p25:0,p50:0,p75:0};const e=[...t].sort((r,a)=>r-a),n=r=>{const a=r/100*(e.length-1),i=Math.floor(a),s=Math.ceil(a);return i===s?e[i]:e[i]+(e[s]-e[i])*(a-i)};return{p25:n(25),p50:n(50),p75:n(75)}}function Hn(t,e){return t===0?0:t<=e.p25?1:t<=e.p50?2:t<=e.p75?3:4}function ft(t){return t===0?6:t-1}function qn({dailyActivity:t,dailyModelTokens:e}){const[n,r]=_.useState(null),{days:a,monthLabels:i}=_.useMemo(()=>{const s=new Map;for(const m of t){const x=s.get(m.date)??{sessionCount:0,totalTokens:0};x.sessionCount=m.sessionCount,s.set(m.date,x)}for(const m of e){const x=s.get(m.date)??{sessionCount:0,totalTokens:0};x.totalTokens=Object.values(m.tokensByModel).reduce((b,k)=>b+k,0),s.set(m.date,x)}const c=new Date;c.setHours(0,0,0,0);let u=Te(c,-364);const l=ft(dt(u));l!==0&&(u=Te(u,-l));const d=[];let y=u;for(;y<=c;){const m=G(y,"yyyy-MM-dd"),x=ft(dt(y)),b=Math.floor((y.getTime()-u.getTime())/(1e3*60*60*24)),k=Math.floor(b/7),C=s.get(m);d.push({date:m,dateFormatted:G(y,"MMM d, yyyy"),sessionCount:C?.sessionCount??0,totalTokens:C?.totalTokens??0,intensity:0,weekIndex:k,dayOfWeek:x}),y=Te(y,1)}const h=d.filter(m=>m.totalTokens>0).map(m=>m.totalTokens),v=Gn(h);for(const m of d)m.intensity=Hn(m.totalTokens,v);const g=[];let f=-1;for(const m of d)if(m.dayOfWeek===0){const x=Ue(m.date),b=x.getMonth();b!==f&&(g.push({label:G(x,"MMM"),weekIndex:m.weekIndex}),f=b)}return{days:d,monthLabels:g}},[t,e]);return a.length===0?o.jsxs("div",{className:"rounded-xl border border-gray-800 bg-gray-900/50 p-4",children:[o.jsx("h3",{className:"text-sm font-semibold text-gray-300",children:"Activity"}),o.jsx("div",{className:"flex h-32 items-center justify-center",children:o.jsx("p",{className:"text-sm text-gray-500",children:"No activity data available"})})]}):o.jsxs("div",{className:"rounded-xl border border-gray-800 bg-gray-900/50 p-4",children:[o.jsx("h3",{className:"text-sm font-semibold text-gray-300",children:"Activity"}),o.jsx("p",{className:"mt-1 text-xs text-gray-500",children:"Token usage intensity over the past year"}),o.jsx("div",{className:"mt-4 overflow-x-auto",children:o.jsx("div",{className:"relative w-full",children:o.jsxs("div",{className:"flex",children:[o.jsxs("div",{className:"flex flex-col text-[10px] text-gray-500",style:{width:Vn},children:[o.jsx("div",{style:{height:16,marginBottom:ie}}),Wn.map((s,c)=>o.jsx("div",{className:"flex items-center",style:{height:Y,marginTop:c>0?ie:0},children:s},c))]}),o.jsxs("div",{className:"flex flex-1 flex-col",children:[o.jsx("div",{className:"grid text-[10px] text-gray-500",style:{gridAutoFlow:"column",gridAutoColumns:`minmax(${Y}px, 1fr)`,gap:ie,height:16,marginBottom:ie},children:i.map((s,c)=>o.jsx("div",{className:"flex items-end",style:{gridColumn:s.weekIndex+1},children:s.label},`${s.label}-${c}`))}),o.jsx("div",{className:"relative grid",style:{gridTemplateRows:`repeat(7, ${Y}px)`,gridAutoFlow:"column",gridAutoColumns:`minmax(${Y}px, 1fr)`,gap:ie},children:a.map(s=>o.jsx("div",{className:"rounded-sm transition-colors",style:{width:Y,height:Y,backgroundColor:Un[s.intensity],gridRow:s.dayOfWeek+1,gridColumn:s.weekIndex+1},onMouseEnter:c=>{const u=c.target.getBoundingClientRect();r({date:s.date,dateFormatted:s.dateFormatted,sessionCount:s.sessionCount,totalTokens:s.totalTokens,x:u.left+u.width/2,y:u.top-8})},onMouseLeave:()=>r(null)},s.date))})]})]})})}),n&&Ut.createPortal(o.jsxs("div",{className:"pointer-events-none fixed z-50 rounded-lg border border-gray-700 bg-gray-800 px-3 py-2 text-xs shadow-lg",style:{left:n.x,top:n.y,transform:"translate(-50%, -100%)",whiteSpace:"nowrap"},children:[o.jsx("p",{className:"font-medium text-gray-300",children:n.dateFormatted}),n.totalTokens>0||n.sessionCount>0?o.jsxs("div",{className:"mt-1 space-y-0.5 text-gray-400",children:[o.jsxs("p",{children:[n.sessionCount," ",n.sessionCount===1?"session":"sessions"]}),o.jsxs("p",{children:[ee(n.totalTokens)," tokens"]})]}):o.jsx("p",{className:"mt-1 text-gray-500",children:"No activity"})]}),document.body)]})}const me=["#d97757","#8b5cf6","#10b981","#f59e0b","#ef4444","#b07cc5"];function We(t){return t.replace(/^claude-/,"").split("-202")[0]}function Yn(t,e){const n={};for(const s of t)for(const[c,u]of Object.entries(s.tokensByModel)){const l=We(c);n[l]=(n[l]??0)+u}const r=Object.entries(n).sort((s,c)=>c[1]-s[1]),a=r.slice(0,e).map(([s])=>s),i=r.length>e;return{topModels:a,hasOther:i}}function Zn(t,e,n){return t.map(r=>{const a={dateLabel:G(Ue(r.date),"MMM d"),sortKey:r.date};for(const i of e)a[i]=0;n&&(a.Other=0);for(const[i,s]of Object.entries(r.tokensByModel)){const c=We(i);e.includes(c)?a[c]=a[c]+s:n&&(a.Other=a.Other+s)}return a})}function Jn(t,e,n){const r=new Map;for(const a of t){const i=Vt(Ue(a.date)),s=G(i,"yyyy-MM-dd");if(!r.has(s)){const u={dateLabel:`Week of ${G(i,"MMM d")}`,sortKey:s};for(const l of e)u[l]=0;n&&(u.Other=0),r.set(s,u)}const c=r.get(s);for(const[u,l]of Object.entries(a.tokensByModel)){const d=We(u);e.includes(d)?c[d]=c[d]+l:n&&(c.Other=c.Other+l)}}return Array.from(r.values()).sort((a,i)=>a.sortKey.localeCompare(i.sortKey))}function Qn({active:t,payload:e,label:n}){if(!t||!e||e.length===0)return null;const r=e.reduce((a,i)=>a+i.value,0);return o.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 p-3 text-xs shadow-lg",children:[o.jsx("p",{className:"mb-2 font-medium text-gray-300",children:n}),e.filter(a=>a.value>0).sort((a,i)=>i.value-a.value).map(a=>o.jsxs("div",{className:"flex items-center justify-between gap-4",children:[o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx("div",{className:"h-2 w-2 rounded-full",style:{backgroundColor:a.color}}),o.jsx("span",{className:"text-gray-400",children:a.name})]}),o.jsx("span",{className:"font-mono text-gray-300",children:ee(a.value)})]},a.name)),o.jsxs("div",{className:"mt-1.5 border-t border-gray-700 pt-1.5 flex justify-between",children:[o.jsx("span",{className:"text-gray-400",children:"Total"}),o.jsx("span",{className:"font-mono font-medium text-white",children:ee(r)})]})]})}function Xn({data:t}){const[e,n]=_.useState("daily"),{topModels:r,hasOther:a}=_.useMemo(()=>Yn(t,5),[t]),i=_.useMemo(()=>{const c=[...r];return a&&c.push("Other"),c},[r,a]),s=_.useMemo(()=>e==="weekly"?Jn(t,r,a):Zn(t,r,a),[t,r,a,e]);return t.length===0?o.jsxs("div",{className:"rounded-xl border border-gray-800 bg-gray-900/50 p-4",children:[o.jsx("h3",{className:"text-sm font-semibold text-gray-300",children:"Token Usage Over Time"}),o.jsx("p",{className:"mt-1 text-xs text-gray-500",children:"Total tokens by model per day"}),o.jsx("div",{className:"flex h-64 items-center justify-center",children:o.jsx("p",{className:"text-sm text-gray-500",children:"No data available"})})]}):o.jsxs("div",{className:"rounded-xl border border-gray-800 bg-gray-900/50 p-4",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsx("h3",{className:"text-sm font-semibold text-gray-300",children:"Token Usage Over Time"}),o.jsx("p",{className:"mt-1 text-xs text-gray-500",children:"Total tokens by model per day"})]}),o.jsxs("div",{className:"flex rounded-lg border border-gray-700 text-xs",children:[o.jsx("button",{type:"button",onClick:()=>n("daily"),className:`rounded-l-lg px-3 py-1 ${e==="daily"?"bg-gray-700 text-white":"text-gray-400 hover:text-gray-300"}`,children:"Daily"}),o.jsx("button",{type:"button",onClick:()=>n("weekly"),className:`rounded-r-lg px-3 py-1 ${e==="weekly"?"bg-gray-700 text-white":"text-gray-400 hover:text-gray-300"}`,children:"Weekly"})]})]}),o.jsx("div",{className:"mt-4 h-72",children:o.jsx(Fe,{width:"100%",height:"100%",children:o.jsxs(mr,{data:s,children:[o.jsx(Ke,{strokeDasharray:"3 3",stroke:"#2a2926"}),o.jsx(Re,{dataKey:"dateLabel",tick:{fill:"#7a7668",fontSize:10},tickLine:!1}),o.jsx(ze,{tick:{fill:"#7a7668",fontSize:10},tickLine:!1,axisLine:!1,tickFormatter:c=>ee(c)}),o.jsx(Be,{content:o.jsx(Qn,{})}),i.map((c,u)=>o.jsx(hr,{type:"monotone",dataKey:c,stackId:"1",stroke:me[u%me.length],fill:me[u%me.length],fillOpacity:.6},c))]})})})]})}const mt=["#d97757","#8b5cf6","#10b981","#f59e0b","#ef4444","#b07cc5"];function ea({data:t}){const e=Object.entries(t).map(([n,r])=>({name:n.replace(/^claude-/,"").split("-202")[0],fullName:n,totalTokens:r.inputTokens+r.outputTokens,outputTokens:r.outputTokens}));return e.sort((n,r)=>r.totalTokens-n.totalTokens),o.jsxs("div",{className:"rounded-xl border border-gray-800 bg-gray-900/50 p-4",children:[o.jsx("h3",{className:"text-sm font-semibold text-gray-300",children:"Model Usage"}),o.jsx("p",{className:"mt-1 text-xs text-gray-500",children:"Token usage by model"}),o.jsx("div",{className:"mt-4 h-64",children:o.jsx(Fe,{width:"100%",height:"100%",children:o.jsxs(wn,{children:[o.jsx(z,{data:e,cx:"50%",cy:"50%",innerRadius:50,outerRadius:80,dataKey:"totalTokens",nameKey:"name",strokeWidth:0,children:e.map((n,r)=>o.jsx(Pt,{fill:mt[r%mt.length],opacity:.8},r))}),o.jsx(Be,{formatter:n=>ee(n),contentStyle:{backgroundColor:"#1c1c1a",border:"1px solid #3d3b36",borderRadius:"8px",fontSize:"12px"}}),o.jsx(pr,{wrapperStyle:{fontSize:"11px"}})]})})})]})}function ta({hourCounts:t}){const e=Array.from({length:24},(r,a)=>({hour:a,label:`${a.toString().padStart(2,"0")}:00`,count:t[String(a)]??0})),n=Math.max(...e.map(r=>r.count),1);return o.jsxs("div",{className:"rounded-xl border border-gray-800 bg-gray-900/50 p-4",children:[o.jsx("h3",{className:"text-sm font-semibold text-gray-300",children:"Hourly Distribution"}),o.jsx("p",{className:"mt-1 text-xs text-gray-500",children:"Session starts by hour of day"}),o.jsx("div",{className:"mt-4 flex items-end gap-0.5",style:{height:"120px"},children:e.map(r=>{const a=r.count>0?Math.max(r.count/n*100,4):0,i=r.count/n;return o.jsxs("div",{className:"group relative flex-1",style:{height:"100%"},children:[o.jsx("div",{className:"absolute bottom-0 w-full rounded-t transition-colors",style:{height:`${a}%`,backgroundColor:`rgba(217, 119, 87, ${.2+i*.6})`}}),o.jsxs("div",{className:"absolute -top-8 left-1/2 hidden -translate-x-1/2 whitespace-nowrap rounded bg-gray-800 px-1.5 py-0.5 text-[10px] text-gray-300 group-hover:block",children:[r.label,": ",r.count]})]},r.hour)})}),o.jsxs("div",{className:"mt-1 flex justify-between text-[10px] text-gray-600",children:[o.jsx("span",{children:"00:00"}),o.jsx("span",{children:"06:00"}),o.jsx("span",{children:"12:00"}),o.jsx("span",{children:"18:00"}),o.jsx("span",{children:"23:00"})]})]})}const ra=gt({method:"GET"}).handler(ht("64052f224a1d6696436e5d3deeee2b798f0742e1292ffabd038c3a7bf75e6fcb")),na=vt({queryKey:["projects","analytics"],queryFn:()=>ra(),refetchInterval:6e4}),aa=[{key:"projectName",label:"Project"},{key:"totalSessions",label:"Sessions",align:"right"},{key:"totalMessages",label:"Messages",align:"right"},{key:"totalDurationMs",label:"Duration",align:"right"},{key:"lastSessionAt",label:"Last Active",align:"right"}];function ia({projects:t}){const{anonymizeProjectName:e}=yt(),[n,r]=_.useState("lastSessionAt"),[a,i]=_.useState("desc"),s=_.useMemo(()=>{const l=[...t];return l.sort((d,y)=>{let h=0;switch(n){case"projectName":h=d.projectName.localeCompare(y.projectName);break;case"totalSessions":h=d.totalSessions-y.totalSessions;break;case"totalMessages":h=d.totalMessages-y.totalMessages;break;case"totalDurationMs":h=d.totalDurationMs-y.totalDurationMs;break;case"lastSessionAt":h=d.lastSessionAt.localeCompare(y.lastSessionAt);break}return a==="asc"?h:-h}),l},[t,n,a]);function c(l){l===n?i(d=>d==="asc"?"desc":"asc"):(r(l),i("desc"))}function u(l){return l!==n?null:o.jsx("span",{className:"ml-1",children:a==="asc"?"▲":"▼"})}return o.jsx("div",{className:"overflow-x-auto rounded-xl border border-gray-800 bg-gray-900/50",children:o.jsxs("table",{className:"w-full",children:[o.jsx("thead",{children:o.jsx("tr",{className:"border-b border-gray-800",children:aa.map(l=>o.jsxs("th",{onClick:()=>c(l.key),className:`cursor-pointer px-4 py-3 text-xs font-medium text-gray-400 hover:text-gray-200 ${l.align==="right"?"text-right":"text-left"}`,children:[l.label,u(l.key)]},l.key))})}),o.jsx("tbody",{children:s.map(l=>o.jsxs("tr",{className:"border-b border-gray-800/50 transition-colors hover:bg-gray-800/30",children:[o.jsxs("td",{className:"px-4 py-3",children:[o.jsx(Wt,{to:"/sessions",search:{project:l.projectName},className:"text-sm text-brand-300 hover:underline",children:e(l.projectName)}),l.activeSessions>0&&o.jsxs("span",{className:"ml-2 rounded-full bg-emerald-500/20 px-1.5 py-0.5 text-[10px] font-medium text-emerald-400",children:[l.activeSessions," active"]})]}),o.jsx("td",{className:"px-4 py-3 text-right font-mono text-sm text-gray-300",children:l.totalSessions}),o.jsx("td",{className:"px-4 py-3 text-right font-mono text-sm text-gray-300",children:l.totalMessages.toLocaleString()}),o.jsx("td",{className:"px-4 py-3 text-right font-mono text-sm text-gray-300",children:Ie(l.totalDurationMs)}),o.jsx("td",{className:"px-4 py-3 text-right text-sm text-gray-400",children:Gt(l.lastSessionAt)})]},l.projectPath))})]})})}function sa(){const{anonymizeProjectName:t}=yt(),{data:e,isLoading:n}=xt(na);if(n)return o.jsxs("div",{className:"space-y-4",children:[o.jsx("div",{className:"grid grid-cols-2 gap-3 md:grid-cols-3",children:Array.from({length:3}).map((c,u)=>o.jsx("div",{className:"h-20 animate-pulse rounded-xl bg-gray-900/50"},u))}),o.jsx("div",{className:"h-64 animate-pulse rounded-xl bg-gray-900/50"})]});const r=e?.projects??[];if(r.length===0)return o.jsx("div",{className:"py-12 text-center text-sm text-gray-500",children:"No projects found. Sessions will appear here once scanned."});const a=r.reduce((c,u)=>c+u.totalSessions,0),i=r.reduce((c,u)=>c+u.totalDurationMs,0),s=r.reduce((c,u)=>u.totalSessions>c.totalSessions?u:c);return o.jsxs("div",{className:"space-y-6",children:[o.jsxs("div",{className:"grid grid-cols-2 gap-3 md:grid-cols-4",children:[o.jsx(he,{label:"Total Projects",value:String(r.length)}),o.jsx(he,{label:"Total Sessions",value:a.toLocaleString()}),o.jsx(he,{label:"Total Duration",value:Ie(i)}),o.jsx(he,{label:"Most Active",value:t(s.projectName),sub:`${s.totalSessions} sessions`})]}),o.jsx(ia,{projects:r})]})}function he({label:t,value:e,sub:n}){return o.jsxs("div",{className:"rounded-xl border border-gray-800 bg-gray-900/50 p-4",children:[o.jsx("p",{className:"text-xs text-gray-400",children:t}),o.jsx("p",{className:"mt-1 truncate text-xl font-bold text-white",children:e}),n&&o.jsx("p",{className:"mt-0.5 text-xs text-gray-500",children:n})]})}const oa={};function ha(){const{tab:t}=qe.useSearch(),e=qe.useNavigate(),{data:n,isLoading:r}=xt(Ar),a=_.useMemo(()=>{if(!n)return oa;const s={};for(const[c,u]of Object.entries(n.modelUsage))s[c]={inputTokens:u.inputTokens,outputTokens:u.outputTokens,cacheReadInputTokens:u.cacheReadInputTokens,cacheCreationInputTokens:u.cacheCreationInputTokens};return s},[n]),{cost:i}=yr(a);return o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsx("h1",{className:"text-2xl font-bold text-white",children:"Stats"}),o.jsx("p",{className:"mt-1 text-sm text-gray-400",children:"Usage analytics and project insights"})]}),t==="overview"&&n&&o.jsx(gr,{options:[{label:"Daily Activity (CSV)",onClick:()=>de(vr(n),"daily-activity.csv","text/csv")},{label:"Token Usage (CSV)",onClick:()=>de(xr(n),"daily-tokens.csv","text/csv")},{label:"Model Usage (CSV)",onClick:()=>de(br(n),"model-usage.csv","text/csv")},{label:"Full Stats (JSON)",onClick:()=>de(jr(n),"stats.json","application/json")}]})]}),o.jsxs("div",{className:"mt-4 flex gap-1 border-b border-gray-800",children:[o.jsx("button",{onClick:()=>e({search:{tab:"overview"}}),className:`px-4 py-2 text-sm border-b-2 transition-colors ${t==="overview"?"border-brand-500 text-white":"border-transparent text-gray-400 hover:text-gray-200"}`,children:"Overview"}),o.jsx("button",{onClick:()=>e({search:{tab:"projects"}}),className:`px-4 py-2 text-sm border-b-2 transition-colors ${t==="projects"?"border-brand-500 text-white":"border-transparent text-gray-400 hover:text-gray-200"}`,children:"Projects"})]}),t==="overview"?o.jsx(la,{stats:n,isLoading:r,cost:i}):o.jsx("div",{className:"mt-6",children:o.jsx(sa,{})})]})}function la({stats:t,isLoading:e,cost:n}){if(e)return o.jsxs("div",{className:"mt-6 space-y-4",children:[o.jsx("div",{className:"grid grid-cols-2 gap-3 md:grid-cols-5",children:Array.from({length:5}).map((a,i)=>o.jsx("div",{className:"h-20 animate-pulse rounded-xl bg-gray-900/50"},i))}),Array.from({length:3}).map((a,i)=>o.jsx("div",{className:"h-64 animate-pulse rounded-xl bg-gray-900/50"},i))]});if(!t)return o.jsx("div",{className:"py-12 text-center text-sm text-gray-500",children:"No stats data found. Check ~/.claude/stats-cache.json"});const r=Object.values(t.modelUsage).reduce((a,i)=>a+i.inputTokens+i.outputTokens,0);return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"mt-6 grid grid-cols-2 gap-3 md:grid-cols-5",children:[o.jsx(se,{label:"Total Sessions",value:String(t.totalSessions)}),o.jsx(se,{label:"Total Messages",value:t.totalMessages.toLocaleString()}),o.jsx(se,{label:"Total Tokens",value:ee(r),sub:n?`~${Ye(n.totalUSD)}`:void 0}),o.jsx(se,{label:"Total Estimated Cost",value:n?`~${Ye(n.totalUSD)}`:"N/A"}),o.jsx(se,{label:"Longest Session",value:Ie(t.longestSession.duration),sub:`${t.longestSession.messageCount} messages`})]}),o.jsx("div",{className:"mt-6",children:o.jsx(qn,{dailyActivity:t.dailyActivity,dailyModelTokens:t.dailyModelTokens})}),o.jsx("div",{className:"mt-4",children:o.jsx(Kn,{data:t.dailyActivity})}),o.jsx("div",{className:"mt-4",children:o.jsx(Xn,{data:t.dailyModelTokens})}),o.jsxs("div",{className:"mt-4 grid grid-cols-1 gap-4 md:grid-cols-2",children:[o.jsx(ea,{data:t.modelUsage}),o.jsx(ta,{hourCounts:t.hourCounts})]})]})}function se({label:t,value:e,sub:n}){return o.jsxs("div",{className:"rounded-xl border border-gray-800 bg-gray-900/50 p-4",children:[o.jsx("p",{className:"text-xs text-gray-400",children:t}),o.jsx("p",{className:"mt-1 text-xl font-bold text-white",children:e}),n&&o.jsx("p",{className:"mt-0.5 text-xs text-gray-500",children:n})]})}export{ha as component};
@@ -1,4 +1,4 @@
1
- import{h as Jn,g as ue,r as N,R as T,i as Kt,j as rr}from"./main-CM5g2n-_.js";import{u as nw}from"./createServerFn-B0pEGqTk.js";import{D as iw,n as aw,s as ow}from"./settings.types-BRNIMHGJ.js";function Hg(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=Hg(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ee(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Hg(e))&&(n&&(n+=" "),n+=t);return n}var Ua,fh;function Ie(){if(fh)return Ua;fh=1;var e=Array.isArray;return Ua=e,Ua}var Wa,hh;function Gg(){if(hh)return Wa;hh=1;var e=typeof Jn=="object"&&Jn&&Jn.Object===Object&&Jn;return Wa=e,Wa}var za,ph;function at(){if(ph)return za;ph=1;var e=Gg(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return za=r,za}var Ha,dh;function Wn(){if(dh)return Ha;dh=1;var e=at(),t=e.Symbol;return Ha=t,Ha}var Ga,vh;function uw(){if(vh)return Ga;vh=1;var e=Wn(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),s=o[i];try{o[i]=void 0;var c=!0}catch{}var f=n.call(o);return c&&(u?o[i]=s:delete o[i]),f}return Ga=a,Ga}var Ka,yh;function sw(){if(yh)return Ka;yh=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Ka=r,Ka}var Va,mh;function mt(){if(mh)return Va;mh=1;var e=Wn(),t=uw(),r=sw(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:n:a&&a in Object(u)?t(u):r(u)}return Va=o,Va}var Xa,gh;function gt(){if(gh)return Xa;gh=1;function e(t){return t!=null&&typeof t=="object"}return Xa=e,Xa}var Ya,bh;function kr(){if(bh)return Ya;bh=1;var e=mt(),t=gt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Ya=n,Ya}var Za,xh;function of(){if(xh)return Za;xh=1;var e=Ie(),t=kr(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return Za=i,Za}var Ja,wh;function Et(){if(wh)return Ja;wh=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Ja=e,Ja}var Qa,Oh;function uf(){if(Oh)return Qa;Oh=1;var e=mt(),t=Et(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var s=e(u);return s==n||s==i||s==r||s==a}return Qa=o,Qa}var eo,_h;function cw(){if(_h)return eo;_h=1;var e=at(),t=e["__core-js_shared__"];return eo=t,eo}var to,Sh;function lw(){if(Sh)return to;Sh=1;var e=cw(),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 to=r,to}var ro,Ah;function Kg(){if(Ah)return ro;Ah=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 ro=r,ro}var no,Ph;function fw(){if(Ph)return no;Ph=1;var e=uf(),t=lw(),r=Et(),n=Kg(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,c=u.hasOwnProperty,f=RegExp("^"+s.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(h){if(!r(h)||t(h))return!1;var d=e(h)?f:a;return d.test(n(h))}return no=l,no}var io,Th;function hw(){if(Th)return io;Th=1;function e(t,r){return t?.[r]}return io=e,io}var ao,Eh;function Yt(){if(Eh)return ao;Eh=1;var e=fw(),t=hw();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return ao=r,ao}var oo,jh;function la(){if(jh)return oo;jh=1;var e=Yt(),t=e(Object,"create");return oo=t,oo}var uo,Mh;function pw(){if(Mh)return uo;Mh=1;var e=la();function t(){this.__data__=e?e(null):{},this.size=0}return uo=t,uo}var so,Ch;function dw(){if(Ch)return so;Ch=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return so=e,so}var co,$h;function vw(){if($h)return co;$h=1;var e=la(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===t?void 0:u}return n.call(o,a)?o[a]:void 0}return co=i,co}var lo,Ih;function yw(){if(Ih)return lo;Ih=1;var e=la(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return lo=n,lo}var fo,Rh;function mw(){if(Rh)return fo;Rh=1;var e=la(),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 fo=r,fo}var ho,kh;function gw(){if(kh)return ho;kh=1;var e=pw(),t=dw(),r=vw(),n=yw(),i=mw();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,ho=a,ho}var po,Dh;function bw(){if(Dh)return po;Dh=1;function e(){this.__data__=[],this.size=0}return po=e,po}var vo,Nh;function sf(){if(Nh)return vo;Nh=1;function e(t,r){return t===r||t!==t&&r!==r}return vo=e,vo}var yo,qh;function fa(){if(qh)return yo;qh=1;var e=sf();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return yo=t,yo}var mo,Lh;function xw(){if(Lh)return mo;Lh=1;var e=fa(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():r.call(a,o,1),--this.size,!0}return mo=n,mo}var go,Bh;function ww(){if(Bh)return go;Bh=1;var e=fa();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return go=t,go}var bo,Fh;function Ow(){if(Fh)return bo;Fh=1;var e=fa();function t(r){return e(this.__data__,r)>-1}return bo=t,bo}var xo,Uh;function _w(){if(Uh)return xo;Uh=1;var e=fa();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 xo=t,xo}var wo,Wh;function ha(){if(Wh)return wo;Wh=1;var e=bw(),t=xw(),r=ww(),n=Ow(),i=_w();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,wo=a,wo}var Oo,zh;function cf(){if(zh)return Oo;zh=1;var e=Yt(),t=at(),r=e(t,"Map");return Oo=r,Oo}var _o,Hh;function Sw(){if(Hh)return _o;Hh=1;var e=gw(),t=ha(),r=cf();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return _o=n,_o}var So,Gh;function Aw(){if(Gh)return So;Gh=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return So=e,So}var Ao,Kh;function pa(){if(Kh)return Ao;Kh=1;var e=Aw();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Ao=t,Ao}var Po,Vh;function Pw(){if(Vh)return Po;Vh=1;var e=pa();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Po=t,Po}var To,Xh;function Tw(){if(Xh)return To;Xh=1;var e=pa();function t(r){return e(this,r).get(r)}return To=t,To}var Eo,Yh;function Ew(){if(Yh)return Eo;Yh=1;var e=pa();function t(r){return e(this,r).has(r)}return Eo=t,Eo}var jo,Zh;function jw(){if(Zh)return jo;Zh=1;var e=pa();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 jo=t,jo}var Mo,Jh;function lf(){if(Jh)return Mo;Jh=1;var e=Sw(),t=Pw(),r=Tw(),n=Ew(),i=jw();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Mo=a,Mo}var Co,Qh;function Vg(){if(Qh)return Co;Qh=1;var e=lf(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],s=a.cache;if(s.has(u))return s.get(u);var c=n.apply(this,o);return a.cache=s.set(u,c)||s,c};return a.cache=new(r.Cache||e),a}return r.Cache=e,Co=r,Co}var $o,ep;function Mw(){if(ep)return $o;ep=1;var e=Vg(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return $o=r,$o}var Io,tp;function Cw(){if(tp)return Io;tp=1;var e=Mw(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,u,s,c){a.push(s?c.replace(r,"$1"):u||o)}),a});return Io=n,Io}var Ro,rp;function ff(){if(rp)return Ro;rp=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 Ro=e,Ro}var ko,np;function $w(){if(np)return ko;np=1;var e=Wn(),t=ff(),r=Ie(),n=kr(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(r(u))return t(u,o)+"";if(n(u))return a?a.call(u):"";var s=u+"";return s=="0"&&1/u==-1/0?"-0":s}return ko=o,ko}var Do,ip;function Xg(){if(ip)return Do;ip=1;var e=$w();function t(r){return r==null?"":e(r)}return Do=t,Do}var No,ap;function Yg(){if(ap)return No;ap=1;var e=Ie(),t=of(),r=Cw(),n=Xg();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return No=i,No}var qo,op;function da(){if(op)return qo;op=1;var e=kr();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return qo=t,qo}var Lo,up;function hf(){if(up)return Lo;up=1;var e=Yg(),t=da();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 Lo=r,Lo}var Bo,sp;function Zg(){if(sp)return Bo;sp=1;var e=hf();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Bo=t,Bo}var Iw=Zg();const ze=ue(Iw);var Fo,cp;function Rw(){if(cp)return Fo;cp=1;function e(t){return t==null}return Fo=e,Fo}var kw=Rw();const Z=ue(kw);var Uo,lp;function Dw(){if(lp)return Uo;lp=1;var e=mt(),t=Ie(),r=gt(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Uo=i,Uo}var Nw=Dw();const Vt=ue(Nw);var qw=uf();const Y=ue(qw);var Lw=Et();const Dr=ue(Lw);var Wo={exports:{}},re={};var fp;function Bw(){if(fp)return re;fp=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function v(p){if(typeof p=="object"&&p!==null){var b=p.$$typeof;switch(b){case e:switch(p=p.type,p){case r:case i:case n:case c:case f:return p;default:switch(p=p&&p.$$typeof,p){case u:case o:case s:case h:case l:case a:return p;default:return b}}case t:return b}}}return re.ContextConsumer=o,re.ContextProvider=a,re.Element=e,re.ForwardRef=s,re.Fragment=r,re.Lazy=h,re.Memo=l,re.Portal=t,re.Profiler=i,re.StrictMode=n,re.Suspense=c,re.SuspenseList=f,re.isAsyncMode=function(){return!1},re.isConcurrentMode=function(){return!1},re.isContextConsumer=function(p){return v(p)===o},re.isContextProvider=function(p){return v(p)===a},re.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},re.isForwardRef=function(p){return v(p)===s},re.isFragment=function(p){return v(p)===r},re.isLazy=function(p){return v(p)===h},re.isMemo=function(p){return v(p)===l},re.isPortal=function(p){return v(p)===t},re.isProfiler=function(p){return v(p)===i},re.isStrictMode=function(p){return v(p)===n},re.isSuspense=function(p){return v(p)===c},re.isSuspenseList=function(p){return v(p)===f},re.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===n||p===c||p===f||p===d||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===l||p.$$typeof===a||p.$$typeof===o||p.$$typeof===s||p.$$typeof===y||p.getModuleId!==void 0)},re.typeOf=v,re}var hp;function Fw(){return hp||(hp=1,Wo.exports=Bw()),Wo.exports}var Uw=Fw(),zo,pp;function Jg(){if(pp)return zo;pp=1;var e=mt(),t=gt(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return zo=n,zo}var Ho,dp;function Ww(){if(dp)return Ho;dp=1;var e=Jg();function t(r){return e(r)&&r!=+r}return Ho=t,Ho}var zw=Ww();const Nr=ue(zw);var Hw=Jg();const Gw=ue(Hw);var Ye=function(t){return t===0?0:t>0?1:-1},Lt=function(t){return Vt(t)&&t.indexOf("%")===t.length-1},q=function(t){return Gw(t)&&!Nr(t)},Kw=function(t){return Z(t)},we=function(t){return q(t)||Vt(t)},Vw=0,zn=function(t){var r=++Vw;return"".concat(t||"").concat(r)},Ze=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(!q(t)&&!Vt(t))return n;var a;if(Lt(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Nr(a)&&(a=n),i&&a>r&&(a=r),a},_t=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Xw=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},Ue=function(t,r){return q(t)&&q(r)?function(n){return t+n*(r-t)}:function(){return r}};function hi(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):ze(n,t))===r})}var Yw=function(t,r){return q(t)&&q(r)?t-r:Vt(t)&&Vt(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function sr(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 Wc(e){"@babel/helpers - typeof";return Wc=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},Wc(e)}var Zw=["viewBox","children"],Jw=["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"],vp=["points","pathLength"],Go={svg:Zw,polygon:vp,polyline:vp},pf=["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"],pi=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(N.isValidElement(t)&&(n=t.props),!Dr(n))return null;var i={};return Object.keys(n).forEach(function(a){pf.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},Qw=function(t,r,n){return function(i){return t(r,n,i),null}},di=function(t,r,n){if(!Dr(t)||Wc(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];pf.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=Qw(o,r,n))}),i},eO=["children"],tO=["children"];function yp(e,t){if(e==null)return{};var r=rO(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 rO(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 zc(e){"@babel/helpers - typeof";return zc=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},zc(e)}var mp={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},ft=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},gp=null,Ko=null,df=function e(t){if(t===gp&&Array.isArray(Ko))return Ko;var r=[];return N.Children.forEach(t,function(n){Z(n)||(Uw.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Ko=r,gp=t,r};function Je(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return ft(i)}):n=[ft(t)],df(e).forEach(function(i){var a=ze(i,"type.displayName")||ze(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function De(e,t){var r=Je(e,t);return r&&r[0]}var bp=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!q(n)||n<=0||!q(i)||i<=0)},nO=["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"],iO=function(t){return t&&t.type&&Vt(t.type)&&nO.indexOf(t.type)>=0},aO=function(t){return t&&zc(t)==="object"&&"clipDot"in t},oO=function(t,r,n,i){var a,o=(a=Go?.[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Y(t)&&(i&&o.includes(r)||Jw.includes(r))||n&&pf.includes(r)},J=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(N.isValidElement(t)&&(i=t.props),!Dr(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;oO((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},Hc=function e(t,r){if(t===r)return!0;var n=N.Children.count(t);if(n!==N.Children.count(r))return!1;if(n===0)return!0;if(n===1)return xp(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(!xp(a,o))return!1}return!0},xp=function(t,r){if(Z(t)&&Z(r))return!0;if(!Z(t)&&!Z(r)){var n=t.props||{},i=n.children,a=yp(n,eO),o=r.props||{},u=o.children,s=yp(o,tO);return i&&u?sr(a,s)&&Hc(i,u):!i&&!u?sr(a,s):!1}return!1},wp=function(t,r){var n=[],i={};return df(t).forEach(function(a,o){if(iO(a))n.push(a);else if(a){var u=ft(a.type),s=r[u]||{},c=s.handler,f=s.once;if(c&&(!f||!i[u])){var l=c(a,u,o);n.push(l),i[u]=!0}}}),n},uO=function(t){var r=t&&t.type;return r&&mp[r]?mp[r]:null},sO=function(t,r){return df(r).indexOf(t)},cO=["children","width","height","viewBox","className","style","title","desc"];function Gc(){return Gc=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},Gc.apply(this,arguments)}function lO(e,t){if(e==null)return{};var r=fO(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 fO(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 Kc(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,s=e.desc,c=lO(e,cO),f=i||{width:r,height:n,x:0,y:0},l=ee("recharts-surface",a);return T.createElement("svg",Gc({},J(c,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),T.createElement("title",null,u),T.createElement("desc",null,s),t)}var hO=["children","className"];function Vc(){return Vc=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},Vc.apply(this,arguments)}function pO(e,t){if(e==null)return{};var r=dO(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 dO(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=T.forwardRef(function(e,t){var r=e.children,n=e.className,i=pO(e,hO),a=ee("recharts-layer",n);return T.createElement("g",Vc({className:a},J(i,!0),{ref:t}),r)}),zt=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]},Vo,Op;function vO(){if(Op)return Vo;Op=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 Vo=e,Vo}var Xo,_p;function yO(){if(_p)return Xo;_p=1;var e=vO();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 Xo=t,Xo}var Yo,Sp;function Qg(){if(Sp)return Yo;Sp=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+e+i+a+"]");function s(c){return u.test(c)}return Yo=s,Yo}var Zo,Ap;function mO(){if(Ap)return Zo;Ap=1;function e(t){return t.split("")}return Zo=e,Zo}var Jo,Pp;function gO(){if(Pp)return Jo;Pp=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+i+"]",s="\\ud83c[\\udffb-\\udfff]",c="(?:"+u+"|"+s+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",d="\\u200d",y=c+"?",v="["+a+"]?",p="(?:"+d+"(?:"+[f,l,h].join("|")+")"+v+y+")*",b=v+y+p,x="(?:"+[f+u+"?",u,l,h,o].join("|")+")",w=RegExp(s+"(?="+s+")|"+x+b,"g");function O(m){return m.match(w)||[]}return Jo=O,Jo}var Qo,Tp;function bO(){if(Tp)return Qo;Tp=1;var e=mO(),t=Qg(),r=gO();function n(i){return t(i)?r(i):e(i)}return Qo=n,Qo}var eu,Ep;function xO(){if(Ep)return eu;Ep=1;var e=yO(),t=Qg(),r=bO(),n=Xg();function i(a){return function(o){o=n(o);var u=t(o)?r(o):void 0,s=u?u[0]:o.charAt(0),c=u?e(u,1).join(""):o.slice(1);return s[a]()+c}}return eu=i,eu}var tu,jp;function wO(){if(jp)return tu;jp=1;var e=xO(),t=e("toUpperCase");return tu=t,tu}var OO=wO();const va=ue(OO);function oe(e){return function(){return e}}const eb=Math.cos,vi=Math.sin,Qe=Math.sqrt,yi=Math.PI,ya=2*yi,Xc=Math.PI,Yc=2*Xc,Nt=1e-6,_O=Yc-Nt;function tb(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function SO(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return tb;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 AO{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?tb:SO(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,s=n-t,c=i-r,f=o-t,l=u-r,h=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>Nt)if(!(Math.abs(l*s-c*f)>Nt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let d=n-o,y=i-u,v=s*s+c*c,p=d*d+y*y,b=Math.sqrt(v),x=Math.sqrt(h),w=a*Math.tan((Xc-Math.acos((v+h-p)/(2*b*x)))/2),O=w/x,m=w/b;Math.abs(O-1)>Nt&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*d>f*y)},${this._x1=t+m*s},${this._y1=r+m*c}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),s=n*Math.sin(i),c=t+u,f=r+s,l=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>Nt||Math.abs(this._y1-f)>Nt)&&this._append`L${c},${f}`,n&&(h<0&&(h=h%Yc+Yc),h>_O?this._append`A${n},${n},0,1,${l},${t-u},${r-s}A${n},${n},0,1,${l},${this._x1=c},${this._y1=f}`:h>Nt&&this._append`A${n},${n},0,${+(h>=Xc)},${l},${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 vf(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 AO(t)}function yf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function rb(e){this._context=e}rb.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 ma(e){return new rb(e)}function nb(e){return e[0]}function ib(e){return e[1]}function ab(e,t){var r=oe(!0),n=null,i=ma,a=null,o=vf(u);e=typeof e=="function"?e:e===void 0?nb:oe(e),t=typeof t=="function"?t:t===void 0?ib:oe(t);function u(s){var c,f=(s=yf(s)).length,l,h=!1,d;for(n==null&&(a=i(d=o())),c=0;c<=f;++c)!(c<f&&r(l=s[c],c,s))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(l,c,s),+t(l,c,s));if(d)return a=null,d+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:oe(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:oe(+s),u):t},u.defined=function(s){return arguments.length?(r=typeof s=="function"?s:oe(!!s),u):r},u.curve=function(s){return arguments.length?(i=s,n!=null&&(a=i(n)),u):i},u.context=function(s){return arguments.length?(s==null?n=a=null:a=i(n=s),u):n},u}function Qn(e,t,r){var n=null,i=oe(!0),a=null,o=ma,u=null,s=vf(c);e=typeof e=="function"?e:e===void 0?nb:oe(+e),t=typeof t=="function"?t:oe(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?ib:oe(+r);function c(l){var h,d,y,v=(l=yf(l)).length,p,b=!1,x,w=new Array(v),O=new Array(v);for(a==null&&(u=o(x=s())),h=0;h<=v;++h){if(!(h<v&&i(p=l[h],h,l))===b)if(b=!b)d=h,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=h-1;y>=d;--y)u.point(w[y],O[y]);u.lineEnd(),u.areaEnd()}b&&(w[h]=+e(p,h,l),O[h]=+t(p,h,l),u.point(n?+n(p,h,l):w[h],r?+r(p,h,l):O[h]))}if(x)return u=null,x+""||null}function f(){return ab().defined(i).curve(o).context(a)}return c.x=function(l){return arguments.length?(e=typeof l=="function"?l:oe(+l),n=null,c):e},c.x0=function(l){return arguments.length?(e=typeof l=="function"?l:oe(+l),c):e},c.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:oe(+l),c):n},c.y=function(l){return arguments.length?(t=typeof l=="function"?l:oe(+l),r=null,c):t},c.y0=function(l){return arguments.length?(t=typeof l=="function"?l:oe(+l),c):t},c.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:oe(+l),c):r},c.lineX0=c.lineY0=function(){return f().x(e).y(t)},c.lineY1=function(){return f().x(e).y(r)},c.lineX1=function(){return f().x(n).y(t)},c.defined=function(l){return arguments.length?(i=typeof l=="function"?l:oe(!!l),c):i},c.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),c):o},c.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),c):a},c}class ob{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 PO(e){return new ob(e,!0)}function TO(e){return new ob(e,!1)}const mf={draw(e,t){const r=Qe(t/yi);e.moveTo(r,0),e.arc(0,0,r,0,ya)}},EO={draw(e,t){const r=Qe(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()}},ub=Qe(1/3),jO=ub*2,MO={draw(e,t){const r=Qe(t/jO),n=r*ub;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},CO={draw(e,t){const r=Qe(t),n=-r/2;e.rect(n,n,r,r)}},$O=.8908130915292852,sb=vi(yi/10)/vi(7*yi/10),IO=vi(ya/10)*sb,RO=-eb(ya/10)*sb,kO={draw(e,t){const r=Qe(t*$O),n=IO*r,i=RO*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=ya*a/5,u=eb(o),s=vi(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},ru=Qe(3),DO={draw(e,t){const r=-Qe(t/(ru*3));e.moveTo(0,r*2),e.lineTo(-ru*r,-r),e.lineTo(ru*r,-r),e.closePath()}},Le=-.5,Be=Qe(3)/2,Zc=1/Qe(12),NO=(Zc/2+1)*3,qO={draw(e,t){const r=Qe(t/NO),n=r/2,i=r*Zc,a=n,o=r*Zc+r,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(Le*n-Be*i,Be*n+Le*i),e.lineTo(Le*a-Be*o,Be*a+Le*o),e.lineTo(Le*u-Be*s,Be*u+Le*s),e.lineTo(Le*n+Be*i,Le*i-Be*n),e.lineTo(Le*a+Be*o,Le*o-Be*a),e.lineTo(Le*u+Be*s,Le*s-Be*u),e.closePath()}};function LO(e,t){let r=null,n=vf(i);e=typeof e=="function"?e:oe(e||mf),t=typeof t=="function"?t:oe(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:oe(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:oe(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function mi(){}function gi(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 cb(e){this._context=e}cb.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:gi(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:gi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function BO(e){return new cb(e)}function lb(e){this._context=e}lb.prototype={areaStart:mi,areaEnd:mi,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:gi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function FO(e){return new lb(e)}function fb(e){this._context=e}fb.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:gi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function UO(e){return new fb(e)}function hb(e){this._context=e}hb.prototype={areaStart:mi,areaEnd:mi,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 WO(e){return new hb(e)}function Mp(e){return e<0?-1:1}function Cp(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(Mp(a)+Mp(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function $p(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function nu(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function bi(e){this._context=e}bi.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:nu(this,this._t0,$p(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,nu(this,$p(this,r=Cp(this,e,t)),r);break;default:nu(this,this._t0,r=Cp(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function pb(e){this._context=new db(e)}(pb.prototype=Object.create(bi.prototype)).point=function(e,t){bi.prototype.point.call(this,t,e)};function db(e){this._context=e}db.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 zO(e){return new bi(e)}function HO(e){return new pb(e)}function vb(e){this._context=e}vb.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=Ip(e),i=Ip(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 Ip(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 GO(e){return new vb(e)}function ga(e,t){this._context=e,this._t=t}ga.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 KO(e){return new ga(e,.5)}function VO(e){return new ga(e,0)}function XO(e){return new ga(e,1)}function hr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Jc(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function YO(e,t){return e[t]}function ZO(e){const t=[];return t.key=e,t}function JO(){var e=oe([]),t=Jc,r=hr,n=YO;function i(a){var o=Array.from(e.apply(this,arguments),ZO),u,s=o.length,c=-1,f;for(const l of a)for(u=0,++c;u<s;++u)(o[u][c]=[0,+n(l,o[u].key,c,a)]).data=l;for(u=0,f=yf(t(o));u<s;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:oe(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:oe(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Jc:typeof a=="function"?a:oe(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??hr,i):r},i}function QO(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}hr(e,t)}}function e1(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}hr(e,t)}}function t1(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,s=0,c=0;u<o;++u){for(var f=e[t[u]],l=f[n][1]||0,h=f[n-1][1]||0,d=(l-h)/2,y=0;y<u;++y){var v=e[t[y]],p=v[n][1]||0,b=v[n-1][1]||0;d+=p-b}s+=l,c+=d*l}i[n-1][1]+=i[n-1][0]=r,s&&(r-=c/s)}i[n-1][1]+=i[n-1][0]=r,hr(e,t)}}function un(e){"@babel/helpers - typeof";return un=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},un(e)}var r1=["type","size","sizeType"];function Qc(){return Qc=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},Qc.apply(this,arguments)}function Rp(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 kp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rp(Object(r),!0).forEach(function(n){n1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function n1(e,t,r){return t=i1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i1(e){var t=a1(e,"string");return un(t)=="symbol"?t:t+""}function a1(e,t){if(un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function o1(e,t){if(e==null)return{};var r=u1(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 u1(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 yb={symbolCircle:mf,symbolCross:EO,symbolDiamond:MO,symbolSquare:CO,symbolStar:kO,symbolTriangle:DO,symbolWye:qO},s1=Math.PI/180,c1=function(t){var r="symbol".concat(va(t));return yb[r]||mf},l1=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*s1;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}},f1=function(t,r){yb["symbol".concat(va(t))]=r},gf=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,s=o1(t,r1),c=kp(kp({},s),{},{type:n,size:a,sizeType:u}),f=function(){var p=c1(n),b=LO().type(p).size(l1(a,u,n));return b()},l=c.className,h=c.cx,d=c.cy,y=J(c,!0);return h===+h&&d===+d&&a===+a?T.createElement("path",Qc({},y,{className:ee("recharts-symbols",l),transform:"translate(".concat(h,", ").concat(d,")"),d:f()})):null};gf.registerSymbol=f1;function pr(e){"@babel/helpers - typeof";return pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pr(e)}function el(){return el=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},el.apply(this,arguments)}function Dp(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 h1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dp(Object(r),!0).forEach(function(n){sn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function p1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d1(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,gb(n.key),n)}}function v1(e,t,r){return t&&d1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function y1(e,t,r){return t=xi(t),m1(e,mb()?Reflect.construct(t,r||[],xi(e).constructor):t.apply(e,r))}function m1(e,t){if(t&&(pr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return g1(e)}function g1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mb=function(){return!!e})()}function xi(e){return xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xi(e)}function b1(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&&tl(e,t)}function tl(e,t){return tl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tl(e,t)}function sn(e,t,r){return t=gb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gb(e){var t=x1(e,"string");return pr(t)=="symbol"?t:t+""}function x1(e,t){if(pr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Fe=32,bf=(function(e){function t(){return p1(this,t),y1(this,t,arguments)}return b1(t,e),v1(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Fe/2,o=Fe/6,u=Fe/3,s=n.inactive?i:n.color;if(n.type==="plainline")return T.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Fe,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return T.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(a,"h").concat(u,`
1
+ import{i as Jn,g as ue,r as N,R as T,k as Kt,j as rr}from"./main-CkUc_xJ0.js";import{u as nw}from"./createServerFn-B5mibSc4.js";import{D as iw,n as aw,s as ow}from"./settings.types-l5MKKuAK.js";function Hg(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=Hg(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ee(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Hg(e))&&(n&&(n+=" "),n+=t);return n}var Ua,fh;function Ie(){if(fh)return Ua;fh=1;var e=Array.isArray;return Ua=e,Ua}var Wa,hh;function Gg(){if(hh)return Wa;hh=1;var e=typeof Jn=="object"&&Jn&&Jn.Object===Object&&Jn;return Wa=e,Wa}var za,ph;function at(){if(ph)return za;ph=1;var e=Gg(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return za=r,za}var Ha,dh;function Wn(){if(dh)return Ha;dh=1;var e=at(),t=e.Symbol;return Ha=t,Ha}var Ga,vh;function uw(){if(vh)return Ga;vh=1;var e=Wn(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),s=o[i];try{o[i]=void 0;var c=!0}catch{}var f=n.call(o);return c&&(u?o[i]=s:delete o[i]),f}return Ga=a,Ga}var Ka,yh;function sw(){if(yh)return Ka;yh=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Ka=r,Ka}var Va,mh;function mt(){if(mh)return Va;mh=1;var e=Wn(),t=uw(),r=sw(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:n:a&&a in Object(u)?t(u):r(u)}return Va=o,Va}var Xa,gh;function gt(){if(gh)return Xa;gh=1;function e(t){return t!=null&&typeof t=="object"}return Xa=e,Xa}var Ya,bh;function kr(){if(bh)return Ya;bh=1;var e=mt(),t=gt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Ya=n,Ya}var Za,xh;function of(){if(xh)return Za;xh=1;var e=Ie(),t=kr(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return Za=i,Za}var Ja,wh;function Et(){if(wh)return Ja;wh=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Ja=e,Ja}var Qa,Oh;function uf(){if(Oh)return Qa;Oh=1;var e=mt(),t=Et(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var s=e(u);return s==n||s==i||s==r||s==a}return Qa=o,Qa}var eo,_h;function cw(){if(_h)return eo;_h=1;var e=at(),t=e["__core-js_shared__"];return eo=t,eo}var to,Sh;function lw(){if(Sh)return to;Sh=1;var e=cw(),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 to=r,to}var ro,Ah;function Kg(){if(Ah)return ro;Ah=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 ro=r,ro}var no,Ph;function fw(){if(Ph)return no;Ph=1;var e=uf(),t=lw(),r=Et(),n=Kg(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,c=u.hasOwnProperty,f=RegExp("^"+s.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(h){if(!r(h)||t(h))return!1;var d=e(h)?f:a;return d.test(n(h))}return no=l,no}var io,Th;function hw(){if(Th)return io;Th=1;function e(t,r){return t?.[r]}return io=e,io}var ao,Eh;function Yt(){if(Eh)return ao;Eh=1;var e=fw(),t=hw();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return ao=r,ao}var oo,jh;function la(){if(jh)return oo;jh=1;var e=Yt(),t=e(Object,"create");return oo=t,oo}var uo,Mh;function pw(){if(Mh)return uo;Mh=1;var e=la();function t(){this.__data__=e?e(null):{},this.size=0}return uo=t,uo}var so,Ch;function dw(){if(Ch)return so;Ch=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return so=e,so}var co,$h;function vw(){if($h)return co;$h=1;var e=la(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===t?void 0:u}return n.call(o,a)?o[a]:void 0}return co=i,co}var lo,Ih;function yw(){if(Ih)return lo;Ih=1;var e=la(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return lo=n,lo}var fo,Rh;function mw(){if(Rh)return fo;Rh=1;var e=la(),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 fo=r,fo}var ho,kh;function gw(){if(kh)return ho;kh=1;var e=pw(),t=dw(),r=vw(),n=yw(),i=mw();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,ho=a,ho}var po,Dh;function bw(){if(Dh)return po;Dh=1;function e(){this.__data__=[],this.size=0}return po=e,po}var vo,Nh;function sf(){if(Nh)return vo;Nh=1;function e(t,r){return t===r||t!==t&&r!==r}return vo=e,vo}var yo,qh;function fa(){if(qh)return yo;qh=1;var e=sf();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return yo=t,yo}var mo,Lh;function xw(){if(Lh)return mo;Lh=1;var e=fa(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():r.call(a,o,1),--this.size,!0}return mo=n,mo}var go,Bh;function ww(){if(Bh)return go;Bh=1;var e=fa();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return go=t,go}var bo,Fh;function Ow(){if(Fh)return bo;Fh=1;var e=fa();function t(r){return e(this.__data__,r)>-1}return bo=t,bo}var xo,Uh;function _w(){if(Uh)return xo;Uh=1;var e=fa();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 xo=t,xo}var wo,Wh;function ha(){if(Wh)return wo;Wh=1;var e=bw(),t=xw(),r=ww(),n=Ow(),i=_w();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,wo=a,wo}var Oo,zh;function cf(){if(zh)return Oo;zh=1;var e=Yt(),t=at(),r=e(t,"Map");return Oo=r,Oo}var _o,Hh;function Sw(){if(Hh)return _o;Hh=1;var e=gw(),t=ha(),r=cf();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return _o=n,_o}var So,Gh;function Aw(){if(Gh)return So;Gh=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return So=e,So}var Ao,Kh;function pa(){if(Kh)return Ao;Kh=1;var e=Aw();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Ao=t,Ao}var Po,Vh;function Pw(){if(Vh)return Po;Vh=1;var e=pa();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Po=t,Po}var To,Xh;function Tw(){if(Xh)return To;Xh=1;var e=pa();function t(r){return e(this,r).get(r)}return To=t,To}var Eo,Yh;function Ew(){if(Yh)return Eo;Yh=1;var e=pa();function t(r){return e(this,r).has(r)}return Eo=t,Eo}var jo,Zh;function jw(){if(Zh)return jo;Zh=1;var e=pa();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 jo=t,jo}var Mo,Jh;function lf(){if(Jh)return Mo;Jh=1;var e=Sw(),t=Pw(),r=Tw(),n=Ew(),i=jw();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Mo=a,Mo}var Co,Qh;function Vg(){if(Qh)return Co;Qh=1;var e=lf(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],s=a.cache;if(s.has(u))return s.get(u);var c=n.apply(this,o);return a.cache=s.set(u,c)||s,c};return a.cache=new(r.Cache||e),a}return r.Cache=e,Co=r,Co}var $o,ep;function Mw(){if(ep)return $o;ep=1;var e=Vg(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return $o=r,$o}var Io,tp;function Cw(){if(tp)return Io;tp=1;var e=Mw(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,u,s,c){a.push(s?c.replace(r,"$1"):u||o)}),a});return Io=n,Io}var Ro,rp;function ff(){if(rp)return Ro;rp=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 Ro=e,Ro}var ko,np;function $w(){if(np)return ko;np=1;var e=Wn(),t=ff(),r=Ie(),n=kr(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(r(u))return t(u,o)+"";if(n(u))return a?a.call(u):"";var s=u+"";return s=="0"&&1/u==-1/0?"-0":s}return ko=o,ko}var Do,ip;function Xg(){if(ip)return Do;ip=1;var e=$w();function t(r){return r==null?"":e(r)}return Do=t,Do}var No,ap;function Yg(){if(ap)return No;ap=1;var e=Ie(),t=of(),r=Cw(),n=Xg();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return No=i,No}var qo,op;function da(){if(op)return qo;op=1;var e=kr();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return qo=t,qo}var Lo,up;function hf(){if(up)return Lo;up=1;var e=Yg(),t=da();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 Lo=r,Lo}var Bo,sp;function Zg(){if(sp)return Bo;sp=1;var e=hf();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Bo=t,Bo}var Iw=Zg();const ze=ue(Iw);var Fo,cp;function Rw(){if(cp)return Fo;cp=1;function e(t){return t==null}return Fo=e,Fo}var kw=Rw();const Z=ue(kw);var Uo,lp;function Dw(){if(lp)return Uo;lp=1;var e=mt(),t=Ie(),r=gt(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Uo=i,Uo}var Nw=Dw();const Vt=ue(Nw);var qw=uf();const Y=ue(qw);var Lw=Et();const Dr=ue(Lw);var Wo={exports:{}},re={};var fp;function Bw(){if(fp)return re;fp=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function v(p){if(typeof p=="object"&&p!==null){var b=p.$$typeof;switch(b){case e:switch(p=p.type,p){case r:case i:case n:case c:case f:return p;default:switch(p=p&&p.$$typeof,p){case u:case o:case s:case h:case l:case a:return p;default:return b}}case t:return b}}}return re.ContextConsumer=o,re.ContextProvider=a,re.Element=e,re.ForwardRef=s,re.Fragment=r,re.Lazy=h,re.Memo=l,re.Portal=t,re.Profiler=i,re.StrictMode=n,re.Suspense=c,re.SuspenseList=f,re.isAsyncMode=function(){return!1},re.isConcurrentMode=function(){return!1},re.isContextConsumer=function(p){return v(p)===o},re.isContextProvider=function(p){return v(p)===a},re.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},re.isForwardRef=function(p){return v(p)===s},re.isFragment=function(p){return v(p)===r},re.isLazy=function(p){return v(p)===h},re.isMemo=function(p){return v(p)===l},re.isPortal=function(p){return v(p)===t},re.isProfiler=function(p){return v(p)===i},re.isStrictMode=function(p){return v(p)===n},re.isSuspense=function(p){return v(p)===c},re.isSuspenseList=function(p){return v(p)===f},re.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===n||p===c||p===f||p===d||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===l||p.$$typeof===a||p.$$typeof===o||p.$$typeof===s||p.$$typeof===y||p.getModuleId!==void 0)},re.typeOf=v,re}var hp;function Fw(){return hp||(hp=1,Wo.exports=Bw()),Wo.exports}var Uw=Fw(),zo,pp;function Jg(){if(pp)return zo;pp=1;var e=mt(),t=gt(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return zo=n,zo}var Ho,dp;function Ww(){if(dp)return Ho;dp=1;var e=Jg();function t(r){return e(r)&&r!=+r}return Ho=t,Ho}var zw=Ww();const Nr=ue(zw);var Hw=Jg();const Gw=ue(Hw);var Ye=function(t){return t===0?0:t>0?1:-1},Lt=function(t){return Vt(t)&&t.indexOf("%")===t.length-1},q=function(t){return Gw(t)&&!Nr(t)},Kw=function(t){return Z(t)},we=function(t){return q(t)||Vt(t)},Vw=0,zn=function(t){var r=++Vw;return"".concat(t||"").concat(r)},Ze=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(!q(t)&&!Vt(t))return n;var a;if(Lt(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Nr(a)&&(a=n),i&&a>r&&(a=r),a},_t=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Xw=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},Ue=function(t,r){return q(t)&&q(r)?function(n){return t+n*(r-t)}:function(){return r}};function hi(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):ze(n,t))===r})}var Yw=function(t,r){return q(t)&&q(r)?t-r:Vt(t)&&Vt(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function sr(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 Wc(e){"@babel/helpers - typeof";return Wc=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},Wc(e)}var Zw=["viewBox","children"],Jw=["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"],vp=["points","pathLength"],Go={svg:Zw,polygon:vp,polyline:vp},pf=["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"],pi=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(N.isValidElement(t)&&(n=t.props),!Dr(n))return null;var i={};return Object.keys(n).forEach(function(a){pf.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},Qw=function(t,r,n){return function(i){return t(r,n,i),null}},di=function(t,r,n){if(!Dr(t)||Wc(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];pf.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=Qw(o,r,n))}),i},eO=["children"],tO=["children"];function yp(e,t){if(e==null)return{};var r=rO(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 rO(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 zc(e){"@babel/helpers - typeof";return zc=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},zc(e)}var mp={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},ft=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},gp=null,Ko=null,df=function e(t){if(t===gp&&Array.isArray(Ko))return Ko;var r=[];return N.Children.forEach(t,function(n){Z(n)||(Uw.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Ko=r,gp=t,r};function Je(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return ft(i)}):n=[ft(t)],df(e).forEach(function(i){var a=ze(i,"type.displayName")||ze(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function De(e,t){var r=Je(e,t);return r&&r[0]}var bp=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!q(n)||n<=0||!q(i)||i<=0)},nO=["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"],iO=function(t){return t&&t.type&&Vt(t.type)&&nO.indexOf(t.type)>=0},aO=function(t){return t&&zc(t)==="object"&&"clipDot"in t},oO=function(t,r,n,i){var a,o=(a=Go?.[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Y(t)&&(i&&o.includes(r)||Jw.includes(r))||n&&pf.includes(r)},J=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(N.isValidElement(t)&&(i=t.props),!Dr(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;oO((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},Hc=function e(t,r){if(t===r)return!0;var n=N.Children.count(t);if(n!==N.Children.count(r))return!1;if(n===0)return!0;if(n===1)return xp(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(!xp(a,o))return!1}return!0},xp=function(t,r){if(Z(t)&&Z(r))return!0;if(!Z(t)&&!Z(r)){var n=t.props||{},i=n.children,a=yp(n,eO),o=r.props||{},u=o.children,s=yp(o,tO);return i&&u?sr(a,s)&&Hc(i,u):!i&&!u?sr(a,s):!1}return!1},wp=function(t,r){var n=[],i={};return df(t).forEach(function(a,o){if(iO(a))n.push(a);else if(a){var u=ft(a.type),s=r[u]||{},c=s.handler,f=s.once;if(c&&(!f||!i[u])){var l=c(a,u,o);n.push(l),i[u]=!0}}}),n},uO=function(t){var r=t&&t.type;return r&&mp[r]?mp[r]:null},sO=function(t,r){return df(r).indexOf(t)},cO=["children","width","height","viewBox","className","style","title","desc"];function Gc(){return Gc=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},Gc.apply(this,arguments)}function lO(e,t){if(e==null)return{};var r=fO(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 fO(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 Kc(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,s=e.desc,c=lO(e,cO),f=i||{width:r,height:n,x:0,y:0},l=ee("recharts-surface",a);return T.createElement("svg",Gc({},J(c,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),T.createElement("title",null,u),T.createElement("desc",null,s),t)}var hO=["children","className"];function Vc(){return Vc=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},Vc.apply(this,arguments)}function pO(e,t){if(e==null)return{};var r=dO(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 dO(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=T.forwardRef(function(e,t){var r=e.children,n=e.className,i=pO(e,hO),a=ee("recharts-layer",n);return T.createElement("g",Vc({className:a},J(i,!0),{ref:t}),r)}),zt=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]},Vo,Op;function vO(){if(Op)return Vo;Op=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 Vo=e,Vo}var Xo,_p;function yO(){if(_p)return Xo;_p=1;var e=vO();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 Xo=t,Xo}var Yo,Sp;function Qg(){if(Sp)return Yo;Sp=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+e+i+a+"]");function s(c){return u.test(c)}return Yo=s,Yo}var Zo,Ap;function mO(){if(Ap)return Zo;Ap=1;function e(t){return t.split("")}return Zo=e,Zo}var Jo,Pp;function gO(){if(Pp)return Jo;Pp=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+i+"]",s="\\ud83c[\\udffb-\\udfff]",c="(?:"+u+"|"+s+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",d="\\u200d",y=c+"?",v="["+a+"]?",p="(?:"+d+"(?:"+[f,l,h].join("|")+")"+v+y+")*",b=v+y+p,x="(?:"+[f+u+"?",u,l,h,o].join("|")+")",w=RegExp(s+"(?="+s+")|"+x+b,"g");function O(m){return m.match(w)||[]}return Jo=O,Jo}var Qo,Tp;function bO(){if(Tp)return Qo;Tp=1;var e=mO(),t=Qg(),r=gO();function n(i){return t(i)?r(i):e(i)}return Qo=n,Qo}var eu,Ep;function xO(){if(Ep)return eu;Ep=1;var e=yO(),t=Qg(),r=bO(),n=Xg();function i(a){return function(o){o=n(o);var u=t(o)?r(o):void 0,s=u?u[0]:o.charAt(0),c=u?e(u,1).join(""):o.slice(1);return s[a]()+c}}return eu=i,eu}var tu,jp;function wO(){if(jp)return tu;jp=1;var e=xO(),t=e("toUpperCase");return tu=t,tu}var OO=wO();const va=ue(OO);function oe(e){return function(){return e}}const eb=Math.cos,vi=Math.sin,Qe=Math.sqrt,yi=Math.PI,ya=2*yi,Xc=Math.PI,Yc=2*Xc,Nt=1e-6,_O=Yc-Nt;function tb(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function SO(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return tb;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 AO{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?tb:SO(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,s=n-t,c=i-r,f=o-t,l=u-r,h=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>Nt)if(!(Math.abs(l*s-c*f)>Nt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let d=n-o,y=i-u,v=s*s+c*c,p=d*d+y*y,b=Math.sqrt(v),x=Math.sqrt(h),w=a*Math.tan((Xc-Math.acos((v+h-p)/(2*b*x)))/2),O=w/x,m=w/b;Math.abs(O-1)>Nt&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*d>f*y)},${this._x1=t+m*s},${this._y1=r+m*c}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),s=n*Math.sin(i),c=t+u,f=r+s,l=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>Nt||Math.abs(this._y1-f)>Nt)&&this._append`L${c},${f}`,n&&(h<0&&(h=h%Yc+Yc),h>_O?this._append`A${n},${n},0,1,${l},${t-u},${r-s}A${n},${n},0,1,${l},${this._x1=c},${this._y1=f}`:h>Nt&&this._append`A${n},${n},0,${+(h>=Xc)},${l},${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 vf(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 AO(t)}function yf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function rb(e){this._context=e}rb.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 ma(e){return new rb(e)}function nb(e){return e[0]}function ib(e){return e[1]}function ab(e,t){var r=oe(!0),n=null,i=ma,a=null,o=vf(u);e=typeof e=="function"?e:e===void 0?nb:oe(e),t=typeof t=="function"?t:t===void 0?ib:oe(t);function u(s){var c,f=(s=yf(s)).length,l,h=!1,d;for(n==null&&(a=i(d=o())),c=0;c<=f;++c)!(c<f&&r(l=s[c],c,s))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(l,c,s),+t(l,c,s));if(d)return a=null,d+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:oe(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:oe(+s),u):t},u.defined=function(s){return arguments.length?(r=typeof s=="function"?s:oe(!!s),u):r},u.curve=function(s){return arguments.length?(i=s,n!=null&&(a=i(n)),u):i},u.context=function(s){return arguments.length?(s==null?n=a=null:a=i(n=s),u):n},u}function Qn(e,t,r){var n=null,i=oe(!0),a=null,o=ma,u=null,s=vf(c);e=typeof e=="function"?e:e===void 0?nb:oe(+e),t=typeof t=="function"?t:oe(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?ib:oe(+r);function c(l){var h,d,y,v=(l=yf(l)).length,p,b=!1,x,w=new Array(v),O=new Array(v);for(a==null&&(u=o(x=s())),h=0;h<=v;++h){if(!(h<v&&i(p=l[h],h,l))===b)if(b=!b)d=h,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=h-1;y>=d;--y)u.point(w[y],O[y]);u.lineEnd(),u.areaEnd()}b&&(w[h]=+e(p,h,l),O[h]=+t(p,h,l),u.point(n?+n(p,h,l):w[h],r?+r(p,h,l):O[h]))}if(x)return u=null,x+""||null}function f(){return ab().defined(i).curve(o).context(a)}return c.x=function(l){return arguments.length?(e=typeof l=="function"?l:oe(+l),n=null,c):e},c.x0=function(l){return arguments.length?(e=typeof l=="function"?l:oe(+l),c):e},c.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:oe(+l),c):n},c.y=function(l){return arguments.length?(t=typeof l=="function"?l:oe(+l),r=null,c):t},c.y0=function(l){return arguments.length?(t=typeof l=="function"?l:oe(+l),c):t},c.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:oe(+l),c):r},c.lineX0=c.lineY0=function(){return f().x(e).y(t)},c.lineY1=function(){return f().x(e).y(r)},c.lineX1=function(){return f().x(n).y(t)},c.defined=function(l){return arguments.length?(i=typeof l=="function"?l:oe(!!l),c):i},c.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),c):o},c.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),c):a},c}class ob{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 PO(e){return new ob(e,!0)}function TO(e){return new ob(e,!1)}const mf={draw(e,t){const r=Qe(t/yi);e.moveTo(r,0),e.arc(0,0,r,0,ya)}},EO={draw(e,t){const r=Qe(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()}},ub=Qe(1/3),jO=ub*2,MO={draw(e,t){const r=Qe(t/jO),n=r*ub;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},CO={draw(e,t){const r=Qe(t),n=-r/2;e.rect(n,n,r,r)}},$O=.8908130915292852,sb=vi(yi/10)/vi(7*yi/10),IO=vi(ya/10)*sb,RO=-eb(ya/10)*sb,kO={draw(e,t){const r=Qe(t*$O),n=IO*r,i=RO*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=ya*a/5,u=eb(o),s=vi(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},ru=Qe(3),DO={draw(e,t){const r=-Qe(t/(ru*3));e.moveTo(0,r*2),e.lineTo(-ru*r,-r),e.lineTo(ru*r,-r),e.closePath()}},Le=-.5,Be=Qe(3)/2,Zc=1/Qe(12),NO=(Zc/2+1)*3,qO={draw(e,t){const r=Qe(t/NO),n=r/2,i=r*Zc,a=n,o=r*Zc+r,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(Le*n-Be*i,Be*n+Le*i),e.lineTo(Le*a-Be*o,Be*a+Le*o),e.lineTo(Le*u-Be*s,Be*u+Le*s),e.lineTo(Le*n+Be*i,Le*i-Be*n),e.lineTo(Le*a+Be*o,Le*o-Be*a),e.lineTo(Le*u+Be*s,Le*s-Be*u),e.closePath()}};function LO(e,t){let r=null,n=vf(i);e=typeof e=="function"?e:oe(e||mf),t=typeof t=="function"?t:oe(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:oe(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:oe(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function mi(){}function gi(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 cb(e){this._context=e}cb.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:gi(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:gi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function BO(e){return new cb(e)}function lb(e){this._context=e}lb.prototype={areaStart:mi,areaEnd:mi,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:gi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function FO(e){return new lb(e)}function fb(e){this._context=e}fb.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:gi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function UO(e){return new fb(e)}function hb(e){this._context=e}hb.prototype={areaStart:mi,areaEnd:mi,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 WO(e){return new hb(e)}function Mp(e){return e<0?-1:1}function Cp(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(Mp(a)+Mp(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function $p(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function nu(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function bi(e){this._context=e}bi.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:nu(this,this._t0,$p(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,nu(this,$p(this,r=Cp(this,e,t)),r);break;default:nu(this,this._t0,r=Cp(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function pb(e){this._context=new db(e)}(pb.prototype=Object.create(bi.prototype)).point=function(e,t){bi.prototype.point.call(this,t,e)};function db(e){this._context=e}db.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 zO(e){return new bi(e)}function HO(e){return new pb(e)}function vb(e){this._context=e}vb.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=Ip(e),i=Ip(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 Ip(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 GO(e){return new vb(e)}function ga(e,t){this._context=e,this._t=t}ga.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 KO(e){return new ga(e,.5)}function VO(e){return new ga(e,0)}function XO(e){return new ga(e,1)}function hr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Jc(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function YO(e,t){return e[t]}function ZO(e){const t=[];return t.key=e,t}function JO(){var e=oe([]),t=Jc,r=hr,n=YO;function i(a){var o=Array.from(e.apply(this,arguments),ZO),u,s=o.length,c=-1,f;for(const l of a)for(u=0,++c;u<s;++u)(o[u][c]=[0,+n(l,o[u].key,c,a)]).data=l;for(u=0,f=yf(t(o));u<s;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:oe(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:oe(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Jc:typeof a=="function"?a:oe(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??hr,i):r},i}function QO(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}hr(e,t)}}function e1(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}hr(e,t)}}function t1(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,s=0,c=0;u<o;++u){for(var f=e[t[u]],l=f[n][1]||0,h=f[n-1][1]||0,d=(l-h)/2,y=0;y<u;++y){var v=e[t[y]],p=v[n][1]||0,b=v[n-1][1]||0;d+=p-b}s+=l,c+=d*l}i[n-1][1]+=i[n-1][0]=r,s&&(r-=c/s)}i[n-1][1]+=i[n-1][0]=r,hr(e,t)}}function un(e){"@babel/helpers - typeof";return un=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},un(e)}var r1=["type","size","sizeType"];function Qc(){return Qc=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},Qc.apply(this,arguments)}function Rp(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 kp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rp(Object(r),!0).forEach(function(n){n1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function n1(e,t,r){return t=i1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i1(e){var t=a1(e,"string");return un(t)=="symbol"?t:t+""}function a1(e,t){if(un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function o1(e,t){if(e==null)return{};var r=u1(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 u1(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 yb={symbolCircle:mf,symbolCross:EO,symbolDiamond:MO,symbolSquare:CO,symbolStar:kO,symbolTriangle:DO,symbolWye:qO},s1=Math.PI/180,c1=function(t){var r="symbol".concat(va(t));return yb[r]||mf},l1=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*s1;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}},f1=function(t,r){yb["symbol".concat(va(t))]=r},gf=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,s=o1(t,r1),c=kp(kp({},s),{},{type:n,size:a,sizeType:u}),f=function(){var p=c1(n),b=LO().type(p).size(l1(a,u,n));return b()},l=c.className,h=c.cx,d=c.cy,y=J(c,!0);return h===+h&&d===+d&&a===+a?T.createElement("path",Qc({},y,{className:ee("recharts-symbols",l),transform:"translate(".concat(h,", ").concat(d,")"),d:f()})):null};gf.registerSymbol=f1;function pr(e){"@babel/helpers - typeof";return pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pr(e)}function el(){return el=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},el.apply(this,arguments)}function Dp(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 h1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dp(Object(r),!0).forEach(function(n){sn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function p1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d1(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,gb(n.key),n)}}function v1(e,t,r){return t&&d1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function y1(e,t,r){return t=xi(t),m1(e,mb()?Reflect.construct(t,r||[],xi(e).constructor):t.apply(e,r))}function m1(e,t){if(t&&(pr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return g1(e)}function g1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mb=function(){return!!e})()}function xi(e){return xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xi(e)}function b1(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&&tl(e,t)}function tl(e,t){return tl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tl(e,t)}function sn(e,t,r){return t=gb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gb(e){var t=x1(e,"string");return pr(t)=="symbol"?t:t+""}function x1(e,t){if(pr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Fe=32,bf=(function(e){function t(){return p1(this,t),y1(this,t,arguments)}return b1(t,e),v1(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Fe/2,o=Fe/6,u=Fe/3,s=n.inactive?i:n.color;if(n.type==="plainline")return T.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Fe,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return T.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(a,"h").concat(u,`
2
2
  A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
3
3
  H`).concat(Fe,"M").concat(2*u,",").concat(a,`
4
4
  A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return T.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Fe/8,"h").concat(Fe,"v").concat(Fe*3/4,"h").concat(-Fe,"z"),className:"recharts-legend-icon"});if(T.isValidElement(n.legendIcon)){var c=h1({},n);return delete c.legendIcon,T.cloneElement(n.legendIcon,c)}return T.createElement(gf,{fill:s,cx:a,cy:a,size:Fe,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,s=i.formatter,c=i.inactiveColor,f={x:0,y:0,width:Fe,height:Fe},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(d,y){var v=d.formatter||s,p=ee(sn(sn({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",d.inactive));if(d.type==="none")return null;var b=Y(d.value)?null:d.value;zt(!Y(d.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 x=d.inactive?c:d.color;return T.createElement("li",el({className:p,style:l,key:"legend-item-".concat(y)},di(n.props,d,y)),T.createElement(Kc,{width:o,height:o,viewBox:f,style:h},n.renderIcon(d)),T.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},v?v(b,d,y):b))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return T.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(N.PureComponent);sn(bf,"displayName","Legend");sn(bf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var iu,Np;function w1(){if(Np)return iu;Np=1;var e=ha();function t(){this.__data__=new e,this.size=0}return iu=t,iu}var au,qp;function O1(){if(qp)return au;qp=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return au=e,au}var ou,Lp;function _1(){if(Lp)return ou;Lp=1;function e(t){return this.__data__.get(t)}return ou=e,ou}var uu,Bp;function S1(){if(Bp)return uu;Bp=1;function e(t){return this.__data__.has(t)}return uu=e,uu}var su,Fp;function A1(){if(Fp)return su;Fp=1;var e=ha(),t=cf(),r=lf(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var s=u.__data__;if(!t||s.length<n-1)return s.push([a,o]),this.size=++u.size,this;u=this.__data__=new r(s)}return u.set(a,o),this.size=u.size,this}return su=i,su}var cu,Up;function bb(){if(Up)return cu;Up=1;var e=ha(),t=w1(),r=O1(),n=_1(),i=S1(),a=A1();function o(u){var s=this.__data__=new e(u);this.size=s.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,cu=o,cu}var lu,Wp;function P1(){if(Wp)return lu;Wp=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return lu=t,lu}var fu,zp;function T1(){if(zp)return fu;zp=1;function e(t){return this.__data__.has(t)}return fu=e,fu}var hu,Hp;function xb(){if(Hp)return hu;Hp=1;var e=lf(),t=P1(),r=T1();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,hu=n,hu}var pu,Gp;function wb(){if(Gp)return pu;Gp=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 pu=e,pu}var du,Kp;function Ob(){if(Kp)return du;Kp=1;function e(t,r){return t.has(r)}return du=e,du}var vu,Vp;function _b(){if(Vp)return vu;Vp=1;var e=xb(),t=wb(),r=Ob(),n=1,i=2;function a(o,u,s,c,f,l){var h=s&n,d=o.length,y=u.length;if(d!=y&&!(h&&y>d))return!1;var v=l.get(o),p=l.get(u);if(v&&p)return v==u&&p==o;var b=-1,x=!0,w=s&i?new e:void 0;for(l.set(o,u),l.set(u,o);++b<d;){var O=o[b],m=u[b];if(c)var g=h?c(m,O,b,u,o,l):c(O,m,b,o,u,l);if(g!==void 0){if(g)continue;x=!1;break}if(w){if(!t(u,function(_,S){if(!r(w,S)&&(O===_||f(O,_,s,c,l)))return w.push(S)})){x=!1;break}}else if(!(O===m||f(O,m,s,c,l))){x=!1;break}}return l.delete(o),l.delete(u),x}return vu=a,vu}var yu,Xp;function E1(){if(Xp)return yu;Xp=1;var e=at(),t=e.Uint8Array;return yu=t,yu}var mu,Yp;function j1(){if(Yp)return mu;Yp=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return mu=e,mu}var gu,Zp;function xf(){if(Zp)return gu;Zp=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return gu=e,gu}var bu,Jp;function M1(){if(Jp)return bu;Jp=1;var e=Wn(),t=E1(),r=sf(),n=_b(),i=j1(),a=xf(),o=1,u=2,s="[object Boolean]",c="[object Date]",f="[object Error]",l="[object Map]",h="[object Number]",d="[object RegExp]",y="[object Set]",v="[object String]",p="[object Symbol]",b="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,O=w?w.valueOf:void 0;function m(g,_,S,A,M,E,P){switch(S){case x:if(g.byteLength!=_.byteLength||g.byteOffset!=_.byteOffset)return!1;g=g.buffer,_=_.buffer;case b:return!(g.byteLength!=_.byteLength||!E(new t(g),new t(_)));case s:case c:case h:return r(+g,+_);case f:return g.name==_.name&&g.message==_.message;case d:case v:return g==_+"";case l:var j=i;case y:var $=A&o;if(j||(j=a),g.size!=_.size&&!$)return!1;var C=P.get(g);if(C)return C==_;A|=u,P.set(g,_);var R=n(j(g),j(_),A,M,E,P);return P.delete(g),R;case p:if(O)return O.call(g)==O.call(_)}return!1}return bu=m,bu}var xu,Qp;function Sb(){if(Qp)return xu;Qp=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 xu=e,xu}var wu,ed;function C1(){if(ed)return wu;ed=1;var e=Sb(),t=Ie();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return wu=r,wu}var Ou,td;function $1(){if(td)return Ou;td=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var u=t[n];r(u,n,t)&&(o[a++]=u)}return o}return Ou=e,Ou}var _u,rd;function I1(){if(rd)return _u;rd=1;function e(){return[]}return _u=e,_u}var Su,nd;function R1(){if(nd)return Su;nd=1;var e=$1(),t=I1(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(u){return n.call(o,u)}))}:t;return Su=a,Su}var Au,id;function k1(){if(id)return Au;id=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Au=e,Au}var Pu,ad;function D1(){if(ad)return Pu;ad=1;var e=mt(),t=gt(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Pu=n,Pu}var Tu,od;function wf(){if(od)return Tu;od=1;var e=D1(),t=gt(),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 Tu=a,Tu}var Jr={exports:{}},Eu,ud;function N1(){if(ud)return Eu;ud=1;function e(){return!1}return Eu=e,Eu}Jr.exports;var sd;function Ab(){return sd||(sd=1,(function(e,t){var r=at(),n=N1(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?r.Buffer:void 0,s=u?u.isBuffer:void 0,c=s||n;e.exports=c})(Jr,Jr.exports)),Jr.exports}var ju,cd;function Of(){if(cd)return ju;cd=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 ju=r,ju}var Mu,ld;function _f(){if(ld)return Mu;ld=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Mu=t,Mu}var Cu,fd;function q1(){if(fd)return Cu;fd=1;var e=mt(),t=_f(),r=gt(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",s="[object Function]",c="[object Map]",f="[object Number]",l="[object Object]",h="[object RegExp]",d="[object Set]",y="[object String]",v="[object WeakMap]",p="[object ArrayBuffer]",b="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",m="[object Int16Array]",g="[object Int32Array]",_="[object Uint8Array]",S="[object Uint8ClampedArray]",A="[object Uint16Array]",M="[object Uint32Array]",E={};E[x]=E[w]=E[O]=E[m]=E[g]=E[_]=E[S]=E[A]=E[M]=!0,E[n]=E[i]=E[p]=E[a]=E[b]=E[o]=E[u]=E[s]=E[c]=E[f]=E[l]=E[h]=E[d]=E[y]=E[v]=!1;function P(j){return r(j)&&t(j.length)&&!!E[e(j)]}return Cu=P,Cu}var $u,hd;function Pb(){if(hd)return $u;hd=1;function e(t){return function(r){return t(r)}}return $u=e,$u}var Qr={exports:{}};Qr.exports;var pd;function L1(){return pd||(pd=1,(function(e,t){var r=Gg(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,u=(function(){try{var s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}})();e.exports=u})(Qr,Qr.exports)),Qr.exports}var Iu,dd;function Tb(){if(dd)return Iu;dd=1;var e=q1(),t=Pb(),r=L1(),n=r&&r.isTypedArray,i=n?t(n):e;return Iu=i,Iu}var Ru,vd;function B1(){if(vd)return Ru;vd=1;var e=k1(),t=wf(),r=Ie(),n=Ab(),i=Of(),a=Tb(),o=Object.prototype,u=o.hasOwnProperty;function s(c,f){var l=r(c),h=!l&&t(c),d=!l&&!h&&n(c),y=!l&&!h&&!d&&a(c),v=l||h||d||y,p=v?e(c.length,String):[],b=p.length;for(var x in c)(f||u.call(c,x))&&!(v&&(x=="length"||d&&(x=="offset"||x=="parent")||y&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,b)))&&p.push(x);return p}return Ru=s,Ru}var ku,yd;function F1(){if(yd)return ku;yd=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return ku=t,ku}var Du,md;function Eb(){if(md)return Du;md=1;function e(t,r){return function(n){return t(r(n))}}return Du=e,Du}var Nu,gd;function U1(){if(gd)return Nu;gd=1;var e=Eb(),t=e(Object.keys,Object);return Nu=t,Nu}var qu,bd;function W1(){if(bd)return qu;bd=1;var e=F1(),t=U1(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var u in Object(a))n.call(a,u)&&u!="constructor"&&o.push(u);return o}return qu=i,qu}var Lu,xd;function Hn(){if(xd)return Lu;xd=1;var e=uf(),t=_f();function r(n){return n!=null&&t(n.length)&&!e(n)}return Lu=r,Lu}var Bu,wd;function ba(){if(wd)return Bu;wd=1;var e=B1(),t=W1(),r=Hn();function n(i){return r(i)?e(i):t(i)}return Bu=n,Bu}var Fu,Od;function z1(){if(Od)return Fu;Od=1;var e=C1(),t=R1(),r=ba();function n(i){return e(i,r,t)}return Fu=n,Fu}var Uu,_d;function H1(){if(_d)return Uu;_d=1;var e=z1(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,s,c,f){var l=u&t,h=e(a),d=h.length,y=e(o),v=y.length;if(d!=v&&!l)return!1;for(var p=d;p--;){var b=h[p];if(!(l?b in o:n.call(o,b)))return!1}var x=f.get(a),w=f.get(o);if(x&&w)return x==o&&w==a;var O=!0;f.set(a,o),f.set(o,a);for(var m=l;++p<d;){b=h[p];var g=a[b],_=o[b];if(s)var S=l?s(_,g,b,o,a,f):s(g,_,b,a,o,f);if(!(S===void 0?g===_||c(g,_,u,s,f):S)){O=!1;break}m||(m=b=="constructor")}if(O&&!m){var A=a.constructor,M=o.constructor;A!=M&&"constructor"in a&&"constructor"in o&&!(typeof A=="function"&&A instanceof A&&typeof M=="function"&&M instanceof M)&&(O=!1)}return f.delete(a),f.delete(o),O}return Uu=i,Uu}var Wu,Sd;function G1(){if(Sd)return Wu;Sd=1;var e=Yt(),t=at(),r=e(t,"DataView");return Wu=r,Wu}var zu,Ad;function K1(){if(Ad)return zu;Ad=1;var e=Yt(),t=at(),r=e(t,"Promise");return zu=r,zu}var Hu,Pd;function jb(){if(Pd)return Hu;Pd=1;var e=Yt(),t=at(),r=e(t,"Set");return Hu=r,Hu}var Gu,Td;function V1(){if(Td)return Gu;Td=1;var e=Yt(),t=at(),r=e(t,"WeakMap");return Gu=r,Gu}var Ku,Ed;function X1(){if(Ed)return Ku;Ed=1;var e=G1(),t=cf(),r=K1(),n=jb(),i=V1(),a=mt(),o=Kg(),u="[object Map]",s="[object Object]",c="[object Promise]",f="[object Set]",l="[object WeakMap]",h="[object DataView]",d=o(e),y=o(t),v=o(r),p=o(n),b=o(i),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=h||t&&x(new t)!=u||r&&x(r.resolve())!=c||n&&x(new n)!=f||i&&x(new i)!=l)&&(x=function(w){var O=a(w),m=O==s?w.constructor:void 0,g=m?o(m):"";if(g)switch(g){case d:return h;case y:return u;case v:return c;case p:return f;case b:return l}return O}),Ku=x,Ku}var Vu,jd;function Y1(){if(jd)return Vu;jd=1;var e=bb(),t=_b(),r=M1(),n=H1(),i=X1(),a=Ie(),o=Ab(),u=Tb(),s=1,c="[object Arguments]",f="[object Array]",l="[object Object]",h=Object.prototype,d=h.hasOwnProperty;function y(v,p,b,x,w,O){var m=a(v),g=a(p),_=m?f:i(v),S=g?f:i(p);_=_==c?l:_,S=S==c?l:S;var A=_==l,M=S==l,E=_==S;if(E&&o(v)){if(!o(p))return!1;m=!0,A=!1}if(E&&!A)return O||(O=new e),m||u(v)?t(v,p,b,x,w,O):r(v,p,_,b,x,w,O);if(!(b&s)){var P=A&&d.call(v,"__wrapped__"),j=M&&d.call(p,"__wrapped__");if(P||j){var $=P?v.value():v,C=j?p.value():p;return O||(O=new e),w($,C,b,x,O)}}return E?(O||(O=new e),n(v,p,b,x,w,O)):!1}return Vu=y,Vu}var Xu,Md;function Sf(){if(Md)return Xu;Md=1;var e=Y1(),t=gt();function r(n,i,a,o,u){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,u)}return Xu=r,Xu}var Yu,Cd;function Z1(){if(Cd)return Yu;Cd=1;var e=bb(),t=Sf(),r=1,n=2;function i(a,o,u,s){var c=u.length,f=c,l=!s;if(a==null)return!f;for(a=Object(a);c--;){var h=u[c];if(l&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++c<f;){h=u[c];var d=h[0],y=a[d],v=h[1];if(l&&h[2]){if(y===void 0&&!(d in a))return!1}else{var p=new e;if(s)var b=s(y,v,d,a,o,p);if(!(b===void 0?t(v,y,r|n,s,p):b))return!1}}return!0}return Yu=i,Yu}var Zu,$d;function Mb(){if($d)return Zu;$d=1;var e=Et();function t(r){return r===r&&!e(r)}return Zu=t,Zu}var Ju,Id;function J1(){if(Id)return Ju;Id=1;var e=Mb(),t=ba();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],u=n[o];i[a]=[o,u,e(u)]}return i}return Ju=r,Ju}var Qu,Rd;function Cb(){if(Rd)return Qu;Rd=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Qu=e,Qu}var es,kd;function Q1(){if(kd)return es;kd=1;var e=Z1(),t=J1(),r=Cb();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 es=n,es}var ts,Dd;function e_(){if(Dd)return ts;Dd=1;function e(t,r){return t!=null&&r in Object(t)}return ts=e,ts}var rs,Nd;function t_(){if(Nd)return rs;Nd=1;var e=Yg(),t=wf(),r=Ie(),n=Of(),i=_f(),a=da();function o(u,s,c){s=e(s,u);for(var f=-1,l=s.length,h=!1;++f<l;){var d=a(s[f]);if(!(h=u!=null&&c(u,d)))break;u=u[d]}return h||++f!=l?h:(l=u==null?0:u.length,!!l&&i(l)&&n(d,l)&&(r(u)||t(u)))}return rs=o,rs}var ns,qd;function r_(){if(qd)return ns;qd=1;var e=e_(),t=t_();function r(n,i){return n!=null&&t(n,i,e)}return ns=r,ns}var is,Ld;function n_(){if(Ld)return is;Ld=1;var e=Sf(),t=Zg(),r=r_(),n=of(),i=Mb(),a=Cb(),o=da(),u=1,s=2;function c(f,l){return n(f)&&i(l)?a(o(f),l):function(h){var d=t(h,f);return d===void 0&&d===l?r(h,f):e(l,d,u|s)}}return is=c,is}var as,Bd;function qr(){if(Bd)return as;Bd=1;function e(t){return t}return as=e,as}var os,Fd;function i_(){if(Fd)return os;Fd=1;function e(t){return function(r){return r?.[t]}}return os=e,os}var us,Ud;function a_(){if(Ud)return us;Ud=1;var e=hf();function t(r){return function(n){return e(n,r)}}return us=t,us}var ss,Wd;function o_(){if(Wd)return ss;Wd=1;var e=i_(),t=a_(),r=of(),n=da();function i(a){return r(a)?e(n(a)):t(a)}return ss=i,ss}var cs,zd;function jt(){if(zd)return cs;zd=1;var e=Q1(),t=n_(),r=qr(),n=Ie(),i=o_();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 cs=a,cs}var ls,Hd;function $b(){if(Hd)return ls;Hd=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 ls=e,ls}var fs,Gd;function u_(){if(Gd)return fs;Gd=1;function e(t){return t!==t}return fs=e,fs}var hs,Kd;function s_(){if(Kd)return hs;Kd=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 hs=e,hs}var ps,Vd;function c_(){if(Vd)return ps;Vd=1;var e=$b(),t=u_(),r=s_();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return ps=n,ps}var ds,Xd;function l_(){if(Xd)return ds;Xd=1;var e=c_();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return ds=t,ds}var vs,Yd;function f_(){if(Yd)return vs;Yd=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 vs=e,vs}var ys,Zd;function h_(){if(Zd)return ys;Zd=1;function e(){}return ys=e,ys}var ms,Jd;function p_(){if(Jd)return ms;Jd=1;var e=jb(),t=h_(),r=xf(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return ms=i,ms}var gs,Qd;function d_(){if(Qd)return gs;Qd=1;var e=xb(),t=l_(),r=f_(),n=Ob(),i=p_(),a=xf(),o=200;function u(s,c,f){var l=-1,h=t,d=s.length,y=!0,v=[],p=v;if(f)y=!1,h=r;else if(d>=o){var b=c?null:i(s);if(b)return a(b);y=!1,h=n,p=new e}else p=c?[]:v;e:for(;++l<d;){var x=s[l],w=c?c(x):x;if(x=f||x!==0?x:0,y&&w===w){for(var O=p.length;O--;)if(p[O]===w)continue e;c&&p.push(w),v.push(x)}else h(p,w,f)||(p!==v&&p.push(w),v.push(x))}return v}return gs=u,gs}var bs,ev;function v_(){if(ev)return bs;ev=1;var e=jt(),t=d_();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return bs=r,bs}var y_=v_();const tv=ue(y_);function Ib(e,t,r){return t===!0?tv(e,r):Y(t)?tv(e,t):e}function dr(e){"@babel/helpers - typeof";return dr=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},dr(e)}var m_=["ref"];function rv(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?rv(Object(r),!0).forEach(function(n){xa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function g_(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,kb(n.key),n)}}function b_(e,t,r){return t&&nv(e.prototype,t),r&&nv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function x_(e,t,r){return t=wi(t),w_(e,Rb()?Reflect.construct(t,r||[],wi(e).constructor):t.apply(e,r))}function w_(e,t){if(t&&(dr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return O_(e)}function O_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rb=function(){return!!e})()}function wi(e){return wi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wi(e)}function __(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&&rl(e,t)}function rl(e,t){return rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rl(e,t)}function xa(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=S_(e,"string");return dr(t)=="symbol"?t:t+""}function S_(e,t){if(dr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function A_(e,t){if(e==null)return{};var r=P_(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 P_(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 T_(e){return e.value}function E_(e,t){if(T.isValidElement(e))return T.cloneElement(e,t);if(typeof e=="function")return T.createElement(e,t);t.ref;var r=A_(t,m_);return T.createElement(bf,r)}var iv=1,cr=(function(e){function t(){var r;g_(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=x_(this,t,[].concat(i)),xa(r,"lastBoundingBox",{width:-1,height:-1}),r}return __(t,e),b_(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)>iv||Math.abs(i.height-this.lastBoundingBox.height)>iv)&&(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?ot({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,s=i.margin,c=i.chartWidth,f=i.chartHeight,l,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var d=this.getBBoxSnapshot();l={left:((c||0)-d.width)/2}}else l=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var y=this.getBBoxSnapshot();h={top:((f||0)-y.height)/2}}else h=u==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return ot(ot({},l),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,s=i.wrapperStyle,c=i.payloadUniqBy,f=i.payload,l=ot(ot({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(s)),s);return T.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(d){n.wrapperNode=d}},E_(a,ot(ot({},this.props),{},{payload:Ib(f,c,T_)})))}}],[{key:"getWithHeight",value:function(n,i){var a=ot(ot({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&q(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(N.PureComponent);xa(cr,"displayName","Legend");xa(cr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var xs,av;function j_(){if(av)return xs;av=1;var e=Wn(),t=wf(),r=Ie(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return xs=i,xs}var ws,ov;function Db(){if(ov)return ws;ov=1;var e=Sb(),t=j_();function r(n,i,a,o,u){var s=-1,c=n.length;for(a||(a=t),u||(u=[]);++s<c;){var f=n[s];i>0&&a(f)?i>1?r(f,i-1,a,o,u):e(u,f):o||(u[u.length]=f)}return u}return ws=r,ws}var Os,uv;function M_(){if(uv)return Os;uv=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),u=i(r),s=u.length;s--;){var c=u[t?s:++a];if(n(o[c],c,o)===!1)break}return r}}return Os=e,Os}var _s,sv;function C_(){if(sv)return _s;sv=1;var e=M_(),t=e();return _s=t,_s}var Ss,cv;function Nb(){if(cv)return Ss;cv=1;var e=C_(),t=ba();function r(n,i){return n&&e(n,i,t)}return Ss=r,Ss}var As,lv;function $_(){if(lv)return As;lv=1;var e=Hn();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,u=n?o:-1,s=Object(i);(n?u--:++u<o)&&a(s[u],u,s)!==!1;);return i}}return As=t,As}var Ps,fv;function Af(){if(fv)return Ps;fv=1;var e=Nb(),t=$_(),r=t(e);return Ps=r,Ps}var Ts,hv;function qb(){if(hv)return Ts;hv=1;var e=Af(),t=Hn();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(u,s,c){o[++a]=i(u,s,c)}),o}return Ts=r,Ts}var Es,pv;function I_(){if(pv)return Es;pv=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Es=e,Es}var js,dv;function R_(){if(dv)return js;dv=1;var e=kr();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,u=e(r),s=n!==void 0,c=n===null,f=n===n,l=e(n);if(!c&&!l&&!u&&r>n||u&&s&&f&&!c&&!l||a&&s&&f||!i&&f||!o)return 1;if(!a&&!u&&!l&&r<n||l&&i&&o&&!a&&!u||c&&i&&o||!s&&o||!f)return-1}return 0}return js=t,js}var Ms,vv;function k_(){if(vv)return Ms;vv=1;var e=R_();function t(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,s=o.length,c=i.length;++a<s;){var f=e(o[a],u[a]);if(f){if(a>=c)return f;var l=i[a];return f*(l=="desc"?-1:1)}}return r.index-n.index}return Ms=t,Ms}var Cs,yv;function D_(){if(yv)return Cs;yv=1;var e=ff(),t=hf(),r=jt(),n=qb(),i=I_(),a=Pb(),o=k_(),u=qr(),s=Ie();function c(f,l,h){l.length?l=e(l,function(v){return s(v)?function(p){return t(p,v.length===1?v[0]:v)}:v}):l=[u];var d=-1;l=e(l,a(r));var y=n(f,function(v,p,b){var x=e(l,function(w){return w(v)});return{criteria:x,index:++d,value:v}});return i(y,function(v,p){return o(v,p,h)})}return Cs=c,Cs}var $s,mv;function N_(){if(mv)return $s;mv=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 $s=e,$s}var Is,gv;function q_(){if(gv)return Is;gv=1;var e=N_(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,u=-1,s=t(o.length-i,0),c=Array(s);++u<s;)c[u]=o[i+u];u=-1;for(var f=Array(i+1);++u<i;)f[u]=o[u];return f[i]=a(c),e(n,this,f)}}return Is=r,Is}var Rs,bv;function L_(){if(bv)return Rs;bv=1;function e(t){return function(){return t}}return Rs=e,Rs}var ks,xv;function Lb(){if(xv)return ks;xv=1;var e=Yt(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return ks=t,ks}var Ds,wv;function B_(){if(wv)return Ds;wv=1;var e=L_(),t=Lb(),r=qr(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Ds=n,Ds}var Ns,Ov;function F_(){if(Ov)return Ns;Ov=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var u=r(),s=t-(u-o);if(o=u,s>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Ns=n,Ns}var qs,_v;function U_(){if(_v)return qs;_v=1;var e=B_(),t=F_(),r=t(e);return qs=r,qs}var Ls,Sv;function W_(){if(Sv)return Ls;Sv=1;var e=qr(),t=q_(),r=U_();function n(i,a){return r(t(i,a,e),i+"")}return Ls=n,Ls}var Bs,Av;function wa(){if(Av)return Bs;Av=1;var e=sf(),t=Hn(),r=Of(),n=Et();function i(a,o,u){if(!n(u))return!1;var s=typeof o;return(s=="number"?t(u)&&r(o,u.length):s=="string"&&o in u)?e(u[o],a):!1}return Bs=i,Bs}var Fs,Pv;function z_(){if(Pv)return Fs;Pv=1;var e=Db(),t=D_(),r=W_(),n=wa(),i=r(function(a,o){if(a==null)return[];var u=o.length;return u>1&&n(a,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return Fs=i,Fs}var H_=z_();const Pf=ue(H_);function cn(e){"@babel/helpers - typeof";return cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cn(e)}function nl(){return nl=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},nl.apply(this,arguments)}function G_(e,t){return Y_(e)||X_(e,t)||V_(e,t)||K_()}function K_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" width="32" height="32" fill="#d97757">
2
+ <path d="m146-346-42-42 147-147-147-147 42-42 189 189-189 189Zm254 26v-60h414v60H400Z"/>
3
+ </svg>