PageSourceSearch

https://ask-billy-ai.lovable.app/assets/EmailGateModal-7LgMXTL1.js

js ask-billy-ai.lovable.app collected 2026-10-03 03:22:23 UTC 466,997 bytes, 65 lines download raw bytes

1import{c as Ut,S as z1}from"./AppShell-DiNtop1x.js";import{c as Ii,g as ue,r as N,R as S,j as C}from"./index-hhJhkruP.js";const W1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],p0=Ut("check",W1);const U1=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],pq=Ut("database",U1);const K1=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],H1=Ut("file-text",K1);const G1=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],V1=Ut("lightbulb",G1);const X1=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Y1=Ut("send",X1);const J1=[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]],Z1=Ut("trending-down",J1);const Q1=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],eO=Ut("trending-up",Q1);const tO=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],rO=Ut("x",tO),vq="https://www.finout.io/contact-sales",yq="https://www.finout.io",nO="8840961",iO="516d93d5-66cd-486d-b61b-aa09c1b6ad92",vh=[{x:"May 14",y:19500},{x:"May 15",y:21e3},{x:"May 16",y:4200},{x:"May 17",y:3800},{x:"May 18",y:22e3},{x:"May 19",y:41730},{x:"May 20",y:24500},{x:"May 21",y:23e3},{x:"May 22",y:21500},{x:"May 23",y:2601},{x:"May 24",y:3500},{x:"May 25",y:19500},{x:"May 26",y:25e3},{x:"May 27",y:22500},{x:"May 28",y:23e3},{x:"May 29",y:20500},{x:"May 30",y:4500},{x:"May 31",y:4e3},{x:"Jun 1",y:22e3},{x:"Jun 2",y:25500},{x:"Jun 3",y:23e3},{x:"Jun 4",y:24e3},{x:"Jun 5",y:22e3},{x:"Jun 6",y:5e3},{x:"Jun 7",y:4500},{x:"Jun 8",y:24500},{x:"Jun 9",y:26e3},{x:"Jun 10",y:24e3},{x:"Jun 11",y:25500},{x:"Jun 12",y:23734}],v0=[{id:1,keywords:["how much","cost","spend","spent","last 30","30 days","this month","monthly","total","claude","anthropic","bill","invoice"],question:"How much did Claude cost me in the last 30 days?",billyLine:"FinoutDemo spent $540,564 on Anthropic in the last 30 days.",headline:"$540,564",delta:{label:"+3.3x vs 6 months ago",tone:"up-bad"},chart:{kind:"line",yLabel:"Daily spend",data:vh},insight:"Your daily average is $18K and growing. Peak days hit $41K — that's not a flat SaaS line, it's a usage-driven business. The weekend dip to $2.6K tells you this is human-driven, not batch automation.",followups:[2,4]},{id:2,keywords:["which model","model cost","model most","sonnet","opus","haiku","by model","model breakdown","expensive model"],question:"Which Claude model costs the most?",billyLine:"claude-opus-4-7 leads at $183,450, 34% of Anthropic spend.",headline:"$183,450",delta:{label:"claude-opus-4-7 · 34% share",tone:"neutral"},chart:{kind:"donut",data:[{name:"claude-opus-4-7",value:183450},{name:"claude-sonnet-4-20250514",value:141763},{name:"claude-sonnet-4-6",value:84599},{name:"untagged model",value:72869},{name:"claude-haiku-4-5",value:20143},{name:"other (sonnet-4-5, opus-4-6, opus-4-1)",value:37804}]},insight:"Opus-4-7 is 34% of the bill and costs roughly 9x more per token than Haiku. That's fine if it's earning it. The $72.9K in untagged model spend is the number worth investigating first — you can't optimize what you can't see.",followups:[6,11]},{id:3,keywords:["tokens","token","how many tokens","usage","volume","input output"],question:"How many tokens did we use this month?",billyLine:"56% of spend touches Anthropic's cache infrastructure — $305K of $540K.",headline:"56% cache-touched",delta:{label:"$305K of $540K flows through cache",tone:"neutral"},chart:{kind:"bar",data:[{name:"cache_read",value:144092},{name:"uncached_input",value:101417},{name:"cache_create_1h",value:88107},{name:"cache_create_5m",value:72930},{name:"untagged",value:73016},{name:"output",value:61002}
1]},insight:"More than half your spend flows through cache. That's the right shape — cache reads are cheap, cache writes are an investment. The question is whether the 5m vs 1h split is intentional.",followups:[8,7]},{id:4,keywords:["trend","over time","history","growth","growing","month over month","mom","spend trend","six months"],question:"What's my Claude spend trend?",billyLine:"$540K in May vs ~$170K in December — up 218% in 6 months.",headline:"$540,564",delta:{label:"3.3x in 6 months",tone:"up-bad"},chart:{kind:"line",yLabel:"Monthly spend",data:[{x:"Dec",y:17e4},{x:"Jan",y:23e4},{x:"Feb",y:29e4},{x:"Mar",y:37e4},{x:"Apr",y:43e4},{x:"May",y:540564}]},insight:"Spend grew 3.3x in 6 months. That's not budget drift — it's product adoption. The number your CFO needs is cost-per-outcome, not the invoice total.",followups:[14,15]},{id:5,keywords:["team","teams","by team","department","who spends","allocation","tag"],question:"Which team spends the most on Claude?",billyLine:"Product is the closest proxy to team — claude_code leads at $228K, but $256K is untagged.",headline:"$256,463 untagged",delta:{label:"47% has no product tag",tone:"up-bad"},chart:{kind:"bar",horizontal:!0,data:[{name:"untagged",value:256463},{name:"claude_code",value:228008},{name:"cowork",value:35285},{name:"chat",value:18529},{name:"office_agent",value:1396},{name:"claude_in_chrome",value:684}]},insight:"47% of your Claude spend has no product tag. Finout's virtual tags can retroactively allocate that bucket using workspace, user, and model signals without touching a single API call.",followups:[6,13]},{id:6,keywords:["feature","product","which feature","app builder","chat assist","summarization","code review","by feature"],question:"Which feature drives Claude spend?",billyLine:"claude_code is your biggest tagged product at $228,008.",headline:"$228,008",delta:{label:"claude_code · 42% of spend",tone:"up-bad"},chart:{kind:"bar",data:[{name:"claude_code",value:228008},{name:"cowork",value:35285},{name:"chat",value:18529},{name:"office_agent",value:1396},{name:"claude_in_chrome",value:684}]},insight:"Claude Code at $228K is your biggest single product investment. At $7,600/day it's also your fastest-growing line. The cowork product at $35K is interesting — that's the agentic desktop tool.",followups:[11,21]},{id:7,keywords:["per 1m","per million","unit cost","cost per token","blended","rate","trending"],question:"What's my cost per 1M tokens trending?",billyLine:"Cache reads are 26.7% of cost but likely 50%+ of token volume — effective cost per token is falling.",headline:"26.7% on cache reads",delta:{label:"Cache read share leads cost mix",tone:"down-good"},chart:{kind:"donut",data:[{name:"cache_read",value:144092},{name:"uncached_input",value:101417},{name:"cache_create_1h",value:88107},{name:"cache_create_5m",value:72930},{name:"untagged",value:73016},{name:"output",value:61002}]},insight:"Your cache read share is high relative to cost share, which means you're getting more tokens per dollar than raw pricing suggests. The 5-minute vs 1-hour cache split matters — 5m TTL cache creation costs the same but expires faster.",followups:[8,12]},{id:8,keywords:["cache","caching","prompt cache","saving","savings","saved"],question:"How much is prompt caching saving me?",billyLine:"$305K of $540K touches cache — caching is already the dominant cost shape.",headline:"$305,129 cache-touched",delta:{label:"56.4% of spend",tone:"down-good"},chart:{kind:"bar",data:[{name:"cache_read",value:144092},{name:"cache_create_1h",value:88107},{name:"cache_create_5m",value:72930}]},insight:"Cache reads are the cheap leg — $144K here represents a huge amount of token volume. The $161K in cache creation is the investment side. Tightening the 5m vs 1h TTL choice is where the next chunk of savings hides.",followups:[9,3]},{id:9,keywords:["batch","batch api","async","nightly","offline"],question:"Should I use the Batch API more?",billyLine:"Agentic products like cowork and office_agent are the most batch-eligible $36.7K of your bill.",headline:"$18K / mo opportunity",delta:{label:"~50% off on $36.7K eligible",tone:"down-good"},chart:{kind:"bar",data:[{name:"cowork",value:35285},{name:"office_agent",value:1396}]},insight:"Agentic products often run tasks without strict latency requirements. Batch API pricing cut
1s those in half — on $36.7K that's roughly $18K/month available.",followups:[12,8]},{id:10,keywords:["anomaly","anomalies","spike","spiked","unusual","weird","outlier","alert"],question:"Any Claude cost anomalies recently?",billyLine:"Two spikes: May 19 at $41,730 (132% above mean) and the 6-month high May 12 at $48,940.",headline:"$41,730",delta:{label:"May 19 · +132% above mean",tone:"up-bad"},chart:{kind:"line",yLabel:"Daily spend",data:vh},insight:"Two peaks in the 30-day window — May 12 ($48.9K, the 6-month high) and May 19 ($41.7K). Both are weekdays. Without a root cause tag on these days, the attribution is unclear. This is exactly the gap virtual tags on workspace and user close.",followups:[19,6]},{id:11,keywords:["roi","opus vs sonnet","opus roi","app builder roi","worth","profitable","true cost","shipped","success rate"],question:"What's the ROI of Opus vs Sonnet inside Claude Code?",billyLine:"Opus-4-7 is $183K and Sonnet-4-20250514 is $142K — the gap is narrower than per-token pricing implies.",headline:"$5.74 vs $14.08",delta:{label:"Opus 2.5x cheaper per shipped task",tone:"down-good"},chart:{kind:"groupedBar",xKey:"name",series:["API cost","Retry cost","Engineer review"],data:[{name:"claude-opus-4-7","API cost":.84,"Retry cost":.1,"Engineer review":4.8},{name:"claude-sonnet-4-20250514","API cost":.27,"Retry cost":.31,"Engineer review":13.5}]},table:{columns:["Model","First-pass success","Avg min / failed task","Loaded eng cost"],rows:[["claude-opus-4-7","87%","25","$90/hr"],["claude-sonnet-4-20250514","64%","25","$90/hr"]]},insight:"Opus-4-7 is $183K of your bill. Sonnet-4-20250514 is $142K. The gap is narrowing — Opus is 1.3x the daily cost for what's probably 0.3x the call volume. The math still favors Opus for complex tasks once you count rework.",followups:[14,12]},{id:12,keywords:["haiku","route","routing","downgrade","swap","switch model","cheaper model"],question:"Where should I route Haiku instead of Sonnet?",billyLine:"Haiku 4.5 is just 3.7% of your bill. Routing 30% of Sonnet volume to Haiku is worth $40-50K/month.",headline:"$40-50K / mo",delta:{label:"Haiku underutilized at 3.7% share",tone:"down-good"},chart:{kind:"bar",data:[{name:"sonnet-4-20250514",value:141763},{name:"sonnet-4-6",value:84599},{name:"sonnet-4-5",value:19653},{name:"haiku-4-5",value:20143}]},insight:"Haiku 4.5 handles 15-20% of Sonnet's cost per token. It's 3.7% of your bill today. For classification, extraction, and short-context tasks inside Claude Code, routing 30% of Sonnet calls to Haiku is worth $40-50K/month.",followups:[7,11]},{id:13,keywords:["revenue","cogs","percentage","% of revenue","margin","tier","free tier","enterprise"],question:"What's my AI cost as a percentage of revenue?",billyLine:"$540K/month in Anthropic spend is a material AI COGS line for any B2B SaaS P&L.",headline:"$540K / mo COGS",delta:{label:"47% has no product allocation",tone:"up-bad"},chart:{kind:"bar",data:[{name:"Enterprise (illustrative)",value:1.9},{name:"Pro (illustrative)",value:4.2},{name:"Free (illustrative)",value:11.8}]},insight:"At $540K/month in API spend, AI COGS is a real line on your P&L. The 47% with no product tag means you can't calculate cost per feature today. That's the allocation problem Finout solves.",followups:[16,15]},{id:14,keywords:["opus launch","opus 4.8","launch impact","new model","release"],question:"What did the Opus 4-7 launch do to my bill?",billyLine:"claude-opus-4-7 is now $183,450/month — 34% of total Anthropic spend.",headline:"$183,450",delta:{label:"$6,115 / day run rate",tone:"up-bad"},chart:{kind:"area",yLabel:"Weekly Opus spend",data:[{x:"W1",y:18e3},{x:"W2",y:28e3},{x:"W3",y:38e3},{x:"W4",y:45e3},{x:"W5",y:54450}]},insight:"Opus-4-7 is 34% of the total bill and the single largest model line item. Whether that's worth it depends on your task success rates — data Finout can surface by joining API metadata with your product analytics.",followups:[11,4]},{id:15,keywords:["forecast","next quarter","projection","predict","budget","q3"],question:"Forecast my Claude spend for next quarter.",billyLine:"At 26% MoM compounding, Q3 2026 projects to $2.6M.",headline:"$2.6M projected",delta:{label:"Q3 2026 at current 26% MoM",tone:"up-bad"},chart:{kind:"area",yLabel:"Monthly spend",data:[{x:"Dec",y:17e4},{x:"Jan",y:23e4},{x:"Feb",y:29e4},{x:"Mar",y:37e4},{x:"Apr",y:43e4},{x:"May",y:540564},{x:"Jun",y:0,projected:68e4},{x:"Jul",y:0,projected:857e3},{x:"Aug",y:0,projected:108e4}]},insight:"At 26% MoM compounding, this isn't a rounding error — it's a budget conversation. The question isn't whether to spend on Claude, it's whether your forecasting process moves as fast as your usage.",followups:[22,13]},{id:16,keywords:["per user","per mau","active user","arpu","expansion","per customer"],question:"What's my AI cost per active user?",billyLine:"1,092 unique users generated $540,564 in Anthropic spend — $495 per active user per month.",headline:"$495 / user / mo",delta:{label:"1,092 active Claude users",tone:"neutral"},chart:{kind:"bar",data:[{name:"Active users",value:1092},{name:"Spend per user ($)",value:495}]},insight:"$495 per active user per month is high for a tool cost. If those users are engineers and Claude is replacing 10+ hours of work per month, the unit economics work. If it's passive users, $495 is worth scrutinizing.",followups:[13,11]},{id:17,keywords:["expensive","single","request","run","call","biggest","largest","costliest","session"],question:"What was our most expensive single Claude run?",billyLine:"An agentic Claude Code session on May 19 chained 14 calls for $352 — most of it repository context.",headline:"$352",delta:{label:"Top run · May 19 · claude_code",tone:"up-bad"},chart:{kind:"bar",data:[{name:"May 19 · claude_code",value:352},{name:"May 12 · claude_code",value:278},{name:"May 24 · claude_code",value:248},{name:"May 7 · claude_code",value:220},{name:"May 21 · claude_code",value:212}]},insight:"All five sent near-full repository context on every call. Retrieval-based context trimming cuts sessions like these by roughly 80% with 
1no quality loss.",followups:[21,8]},{id:18,keywords:["api key","key","burned","rogue","who","spent","token key"],question:"Which API key burned the most money last month?",billyLine:"The claude_code workspace key drove $163K. The $73K untagged key bucket is the one nobody owns.",headline:"$163,000",delta:{label:"claude_code workspace · 30% of total",tone:"up-bad"},chart:{kind:"bar",horizontal:!0,data:[{name:"claude_code workspace",value:163e3},{name:"claude_code (secondary)",value:109e3},{name:"untagged keys",value:73e3},{name:"cowork",value:35285},{name:"chat",value:18529},{name:"other",value:2080}]},insight:"$73K of spend is on keys with no owner tag and no review. Every Anthropic bill has one of these — yours just happens to be a big one.",followups:[21,5]},{id:19,keywords:["retries","retry","failed","failures","errors","429","timeout","wasted calls"],question:"How much do retries and failed requests cost me?",billyLine:"Genuine 429s and timeouts cost roughly $24,000 last month — 4.4% of total spend.",headline:"$24,000",delta:{label:"4.4% of May spend",tone:"up-bad"},chart:{kind:"bar",data:[{name:"claude_code",value:14400},{name:"cowork",value:5600},{name:"chat",value:2800},{name:"office_agent",value:1200}]},insight:"Roughly half of retry cost comes from missing exponential backoff in agentic loops. One config change is worth $4-5K/month.",followups:[10,8]},{id:20,keywords:["double","doubles","2x","scale","traffic","grows","what if","usage increase"],question:"What happens to my bill if usage doubles?",billyLine:"Modeled 2x lands around $940K, not $1.08M — about 13% better than naive doubling.",headline:"$940,000 / mo",delta:{label:"13% under naive 2x via cache & batch",tone:"down-good"},chart:{kind:"bar",data:[{name:"Today",value:540564},{name:"Naive 2x",value:1081128},{name:"Modeled 2x",value:94e4}]},insight:"Budget $940K for the double-volume scenario, not $1.08M. Telling your CFO growth is cheaper than multiplication is a good meeting.",followups:[15,8]},{id:21,keywords:["prompt","expensive prompt","system prompt","costliest prompt","which prompt"],question:"What's our single most expensive prompt?",billyLine:"The scaffold-generation prompt inside claude_code ran 7,400 times on opus-4-7 for $69K.",headline:"$69,000",delta:{label:"scaffold-generation · 13% of bill",tone:"up-bad"},chart:{kind:"bar",data:[{name:"scaffold-generation",value:69e3},{name:"repo-context-qa",value:53e3},{name:"code-review-summary",value:43500},{name:"chat-system",value:4e4},{name:"doc-summarize",value:32500}]},insight:"One prompt is 13% of the entire Anthropic bill. It's also the highest-ROI prompt in the company. Knowing both numbers is the difference between cutting it and investing in it.",followups:[17,11]},{id:22,keywords:["year from now","next year","compound","compounding","trajectory","nothing changes","keep growing","12 months"],question:"If nothing changes, what does Claude cost us a year from now?",billyLine:"Honest math on 26% MoM: $9.8M/month by June 2027. Growth will compress, so plan for $3-4M base, $9.8M upside.",headline:"$3-4M / mo base case",delta:{label:"Upside $9.8M at unchecked 26% MoM",tone:"up-bad"},chart:{kind:"area",yLabel:"Monthly spend",data:[{x:"Dec",y:17e4},{x:"Jan",y:23e4},{x:"Feb",y:29e4},{x:"Mar",y:37e4},{x:"Apr",y:43e4},{x:"May",y:540564},{x:"Jun",y:0,projected:68e4},{x:"Jul",y:0,projected:857e3},{x:"Aug",y:0,projected:108e4},{x:"Sep",y:0,projected:136e4},{x:"Oct",y:0,projected:1714e3},{x:"Nov",y:0,projected:216e4},{x:"Dec",y:0,projected:2722e3},{x:"Jan",y:0,projected:343e4},{x:"Feb",y:0,projected:4322e3},{x:"Mar",y:0,projected:5446e3},{x:"Apr",y:0,projected:6862e3},{x:"May",y:0,projected:8647e3},{x:"Jun",y:0,projected:98e5}]},insight:"Nobody budgets for compounding API spend. Your unit costs are falling, so the real number lands between $3M and $9.8M/month — but the budget line still has to move before the invoice does.",followups:[15,13]}],aO=[1,18,11,13];function oO(e){const t=e.toLowerCase().trim();if(!t)return null;let r=null;for(const n of v0){let i=0;for(const u of n.keywords)t.includes(u)&&(i+=u.length);const o=n.question.toLowerCase().split(/\W+/).filter(u=>u.length>3);for(const u of o)t.includes(u)&&(i+=1);i>0&&(!r||i>r.score)&&(r={answer:n,score:i})}return r?r.answer:null}function ql(e){return v0.find(t=>
1t.id===e)}function y0(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=y0(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Z(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=y0(e))&&(n&&(n+=" "),n+=t);return n}var Do,yh;function ze(){if(yh)return Do;yh=1;var e=Array.isArray;return Do=e,Do}var Lo,mh;function m0(){if(mh)return Lo;mh=1;var e=typeof Ii=="object"&&Ii&&Ii.Object===Object&&Ii;return Lo=e,Lo}var qo,gh;function xt(){if(gh)return qo;gh=1;var e=m0(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return qo=r,qo}var Bo,bh;function Si(){if(bh)return Bo;bh=1;var e=xt(),t=e.Symbol;return Bo=t,Bo}var Fo,xh;function uO(){if(xh)return Fo;xh=1;var e=Si(),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 Fo=a,Fo}var zo,wh;function sO(){if(wh)return zo;wh=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return zo=r,zo}var Wo,Oh;function Mt(){if(Oh)return Wo;Oh=1;var e=Si(),t=uO(),r=sO(),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 Wo=o,Wo}var Uo,_h;function Ct(){if(_h)return Uo;_h=1;function e(t){return t!=null&&typeof t=="object"}return Uo=e,Uo}var Ko,Ah;function mn(){if(Ah)return Ko;Ah=1;var e=Mt(),t=Ct(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Ko=n,Ko}var Ho,Sh;function cd(){if(Sh)return Ho;Sh=1;var e=ze(),t=mn(),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 Ho=i,Ho}var Go,Ph;function Kt(){if(Ph)return Go;Ph=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Go=e,Go}var Vo,Th;function ld(){if(Th)return Vo;Th=1;var e=Mt(),t=Kt(),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 Vo=o,Vo}var Xo,jh;function cO(){if(jh)return Xo;jh=1;var e=xt(),t=e["__core-js_shared__"];return Xo=t,Xo}var Yo,Eh;function lO(){if(Eh)return Yo;Eh=1;var e=cO(),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 Yo=r,Yo}var Jo,$h;function g0(){if($h)return Jo;$h=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 Jo=r,Jo}var Zo,kh;function fO(){if(kh)return Zo;kh=1;var e=ld(),t=lO(),r=Kt(),n=g0(),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(d){if(!r(d)||t(d))return!1;var p=e(d)?f:a;return p.test(n(d))}return Zo=l,Zo}var Qo,Mh;function dO(){if(Mh)return Qo;Mh=1;function e(t,r){return t?.[r]}return Qo=e,Qo}var eu,Ch;function Ar(){if(Ch)return eu;Ch=1;var e=fO(),t=dO();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return eu=r,eu}var tu,Ih;function Qa(){if(Ih)return tu;Ih=1;var e=Ar(),t=e(Object,"create");return tu=t,tu}var ru,Rh;function hO(){if(Rh)return ru;Rh=1;var e=Qa();function t(){this.__data__=e?e(null):{},this.size=0}return ru=t,ru}var nu,Nh;function pO(){if(Nh)return nu;Nh=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return nu=e,nu}var iu,Dh;function vO(){if(Dh)return iu;Dh=1;var e=Qa(),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 iu=i,iu}var au,Lh;function yO(){if(Lh)return au;Lh=1;var e=Qa(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return au=n,au}var ou,qh;function mO(){if(qh)return ou;qh=1;var e=Qa(),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 ou=r,ou}var uu,Bh;function gO(){if(Bh)return uu;Bh=1;
vendor: 4,395 bytes, line 1
1var e=hO(),t=pO(),r=vO(),n=yO(),i=mO();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,uu=a,uu}var su,Fh;function bO(){if(Fh)return su;Fh=1;function e(){this.__data__=[],this.size=0}return su=e,su}var cu,zh;function fd(){if(zh)return cu;zh=1;function e(t,r){return t===r||t!==t&&r!==r}return cu=e,cu}var lu,Wh;function eo(){if(Wh)return lu;Wh=1;var e=fd();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return lu=t,lu}var fu,Uh;function xO(){if(Uh)return fu;Uh=1;var e=eo(),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 fu=n,fu}var du,Kh;function wO(){if(Kh)return du;Kh=1;var e=eo();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return du=t,du}var hu,Hh;function OO(){if(Hh)return hu;Hh=1;var e=eo();function t(r){return e(this.__data__,r)>-1}return hu=t,hu}var pu,Gh;function _O(){if(Gh)return pu;Gh=1;var e=eo();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 pu=t,pu}var vu,Vh;function to(){if(Vh)return vu;Vh=1;var e=bO(),t=xO(),r=wO(),n=OO(),i=_O();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,vu=a,vu}var yu,Xh;function dd(){if(Xh)return yu;Xh=1;var e=Ar(),t=xt(),r=e(t,"Map");return yu=r,yu}var mu,Yh;function AO(){if(Yh)return mu;Yh=1;var e=gO(),t=to(),r=dd();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return mu=n,mu}var gu,Jh;function SO(){if(Jh)return gu;Jh=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return gu=e,gu}var bu,Zh;function ro(){if(Zh)return bu;Zh=1;var e=SO();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return bu=t,bu}var xu,Qh;function PO(){if(Qh)return xu;Qh=1;var e=ro();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return xu=t,xu}var wu,ep;function TO(){if(ep)return wu;ep=1;var e=ro();function t(r){return e(this,r).get(r)}return wu=t,wu}var Ou,tp;function jO(){if(tp)return Ou;tp=1;var e=ro();function t(r){return e(this,r).has(r)}return Ou=t,Ou}var _u,rp;function EO(){if(rp)return _u;rp=1;var e=ro();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 _u=t,_u}var Au,np;function hd(){if(np)return Au;np=1;var e=AO(),t=PO(),r=TO(),n=jO(),i=EO();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,Au=a,Au}var Su,ip;function b0(){if(ip)return Su;ip=1;var e=hd(),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,Su=r,Su}var Pu,ap;function $O(){if(ap)return Pu;ap=1;var e=b0(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Pu=r,Pu}var Tu,op;function kO(){if(op)return Tu;op=1;var e=$O(),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 Tu=n,Tu}var ju,up;function pd(){if(up)return ju;up=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 ju=e,ju}var Eu,sp;function MO(){if(sp)return Eu;sp=1;var e=Si(),t=pd(),r=ze(),n=mn(),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 Eu=o,Eu}var $u,cp;function x0(){if(cp)return $u;cp=1;var e=MO();function t(r){return r==null?"":e(r)}return $u=t,$u}var ku,lp;function w0(){if(lp)return ku;lp=1;
vendor: 6,193 bytes, line 1
1var e=ze(),t=cd(),r=kO(),n=x0();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return ku=i,ku}var Mu,fp;function no(){if(fp)return Mu;fp=1;var e=mn();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Mu=t,Mu}var Cu,dp;function vd(){if(dp)return Cu;dp=1;var e=w0(),t=no();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 Cu=r,Cu}var Iu,hp;function O0(){if(hp)return Iu;hp=1;var e=vd();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Iu=t,Iu}var CO=O0();const Ve=ue(CO);var Ru,pp;function IO(){if(pp)return Ru;pp=1;function e(t){return t==null}return Ru=e,Ru}var RO=IO();const J=ue(RO);var Nu,vp;function NO(){if(vp)return Nu;vp=1;var e=Mt(),t=ze(),r=Ct(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Nu=i,Nu}var DO=NO();const mr=ue(DO);var LO=ld();const V=ue(LO);var qO=Kt();const gn=ue(qO);var Du={exports:{}},ie={};var yp;function BO(){if(yp)return ie;yp=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"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function v(h){if(typeof h=="object"&&h!==null){var g=h.$$typeof;switch(g){case e:switch(h=h.type,h){case r:case i:case n:case c:case f:return h;default:switch(h=h&&h.$$typeof,h){case u:case o:case s:case d:case l:case a:return h;default:return g}}case t:return g}}}return ie.ContextConsumer=o,ie.ContextProvider=a,ie.Element=e,ie.ForwardRef=s,ie.Fragment=r,ie.Lazy=d,ie.Memo=l,ie.Portal=t,ie.Profiler=i,ie.StrictMode=n,ie.Suspense=c,ie.SuspenseList=f,ie.isAsyncMode=function(){return!1},ie.isConcurrentMode=function(){return!1},ie.isContextConsumer=function(h){return v(h)===o},ie.isContextProvider=function(h){return v(h)===a},ie.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},ie.isForwardRef=function(h){return v(h)===s},ie.isFragment=function(h){return v(h)===r},ie.isLazy=function(h){return v(h)===d},ie.isMemo=function(h){return v(h)===l},ie.isPortal=function(h){return v(h)===t},ie.isProfiler=function(h){return v(h)===i},ie.isStrictMode=function(h){return v(h)===n},ie.isSuspense=function(h){return v(h)===c},ie.isSuspenseList=function(h){return v(h)===f},ie.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===r||h===i||h===n||h===c||h===f||h===p||typeof h=="object"&&h!==null&&(h.$$typeof===d||h.$$typeof===l||h.$$typeof===a||h.$$typeof===o||h.$$typeof===s||h.$$typeof===y||h.getModuleId!==void 0)},ie.typeOf=v,ie}var mp;function FO(){return mp||(mp=1,Du.exports=BO()),Du.exports}var zO=FO(),Lu,gp;function _0(){if(gp)return Lu;gp=1;var e=Mt(),t=Ct(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Lu=n,Lu}var qu,bp;function WO(){if(bp)return qu;bp=1;var e=_0();function t(r){return e(r)&&r!=+r}return qu=t,qu}var UO=WO();const bn=ue(UO);var KO=_0();const HO=ue(KO);var Ne=function(t){return t===0?0:t>0?1:-1},sr=function(t){return mr(t)&&t.indexOf("%")===t.length-1},q=function(t){return HO(t)&&!bn(t)},GO=function(t){return J(t)},Pe=function(t){return q(t)||mr(t)},VO=0,Sr=function(t){var r=++VO;return"".concat(t||"").concat(r)},De=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)&&!mr(t))return n;var a;if(sr(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return bn(a)&&(a=n),i&&a>r&&(a=r),a},qt=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},XO=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},Se=function(t,r){return q(t)&&q(r)?function(n){return t+n*(r-t)}:function(){return r}};function Zi(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Ve(n,t))===r})}var YO=function(t,r){return q(t)&&q(r)?t-r:mr(t)&&mr(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Fr(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 Bl(e){"@babel/helpers - typeof";return Bl=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},Bl(e)}var JO=["viewBox","children"],ZO=["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","colorRen
1dering","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"],xp=["points","pathLength"],Bu={svg:JO,polygon:xp,polyline:xp},yd=["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","onDrag
1Capture","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"],Qi=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(N.isValidElement(t)&&(n=t.props),!gn(n))return null;var i={};return Object.keys(n).forEach(function(a){yd.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},QO=function(t,r,n){return function(i){return t(r,n,i),null}},gr=function(t,r,n){if(!gn(t)||Bl(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];yd.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=QO(o,r,n))}),i},e_=["children"],t_=["children"];function wp(e,t){if(e==null)return{};var r=r_(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 r_(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 Fl(e){"@babel/helpers - typeof";return Fl=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},Fl(e)}var Op={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"},Tt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},_p=null,Fu=null,md=function e(t){if(t===_p&&Array.isArray(Fu))return Fu;var r=[];return N.Children.forEach(t,function(n){J(n)||(zO.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Fu=r,_p=t,r};function Xe(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Tt(i)}):n=[Tt(t)],md(e).forEach(function(i){var a=Ve(i,"type.displayName")||Ve(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function He(e,t){var r=Xe(e,t);return r&&r[0]}var Ap=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)},n_=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],i_=function(t){return t&&t.type&&mr(t.type)&&n_.indexOf(t.type)>=0},A0=function(t){return t&&Fl(t)==="object"&&"clipDot"in t},a_=function(t,r,n,i){var a,o=(a=Bu?.[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!V(t)&&(i&&o.includes(r)||ZO.includes(r))||n&&yd.includes(r)},H=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(N.isValidElement(t)&&(i=t.props),!gn(i))return null;var a={};
vendor: 4,769 bytes, line 1
1return Object.keys(i).forEach(function(o){var u;a_((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},zl=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 Sp(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(!Sp(a,o))return!1}return!0},Sp=function(t,r){if(J(t)&&J(r))return!0;if(!J(t)&&!J(r)){var n=t.props||{},i=n.children,a=wp(n,e_),o=r.props||{},u=o.children,s=wp(o,t_);return i&&u?Fr(a,s)&&zl(i,u):!i&&!u?Fr(a,s):!1}return!1},Pp=function(t,r){var n=[],i={};return md(t).forEach(function(a,o){if(i_(a))n.push(a);else if(a){var u=Tt(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},o_=function(t){var r=t&&t.type;return r&&Op[r]?Op[r]:null},u_=function(t,r){return md(r).indexOf(t)},s_=["children","width","height","viewBox","className","style","title","desc"];function Wl(){return Wl=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},Wl.apply(this,arguments)}function c_(e,t){if(e==null)return{};var r=l_(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 l_(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 Ul(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=c_(e,s_),f=i||{width:r,height:n,x:0,y:0},l=Z("recharts-surface",a);return S.createElement("svg",Wl({},H(c,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),S.createElement("title",null,u),S.createElement("desc",null,s),t)}var f_=["children","className"];function Kl(){return Kl=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},Kl.apply(this,arguments)}function d_(e,t){if(e==null)return{};var r=h_(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function h_(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var te=S.forwardRef(function(e,t){var r=e.children,n=e.className,i=d_(e,f_),a=Z("recharts-layer",n);return S.createElement("g",Kl({className:a},H(i,!0),{ref:t}),r)}),lt=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]},zu,Tp;function p_(){if(Tp)return zu;Tp=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 zu=e,zu}var Wu,jp;function v_(){if(jp)return Wu;jp=1;var e=p_();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 Wu=t,Wu}var Uu,Ep;function S0(){if(Ep)return Uu;Ep=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 Uu=s,Uu}var Ku,$p;function y_(){if($p)return Ku;$p=1;function e(t){return t.split("")}return Ku=e,Ku}var Hu,kp;function m_(){if(kp)return Hu;kp=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}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",y=c+"?",v="["+a+"]?",h="(?:"+p+"(?:"+[f,l,d].join("|")+")"+v+y+")*",g=v+y+h,x="(?:"+[f+u+"?",u,l,d,o].join("|")+")",w=RegExp(s+"(?="+s+")|"+x+g,"g");function O(m){return m.match(w)||[]}return Hu=O,Hu}var Gu,Mp;function g_(){if(Mp)return Gu;Mp=1;var e=y_(),t=S0(),r=m_();function n(i){return t(i)?r(i):e(i)}return Gu=n,Gu}var Vu,Cp;function b_(){if(Cp)return Vu;Cp=1;var e=v_(),t=S0(),r=g_(),n=x0();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 Vu=i,Vu}var Xu,Ip;function x_(){if(Ip)return Xu;Ip=1;var e=b_(),t=e("toUpperCase");return Xu=t,Xu}var w_=x_();const io=ue(w_);function le(e){return function(){return e}}const P0=Math.cos,ea=Math.sin,dt=Math.sqrt,ta=Math.PI,ao=2*ta,Hl=M
1ath.PI,Gl=2*Hl,ir=1e-6,O_=Gl-ir;function T0(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function __(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return T0;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 A_{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?T0:__(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,d=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>ir)if(!(Math.abs(l*s-c*f)>ir)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-u,v=s*s+c*c,h=p*p+y*y,g=Math.sqrt(v),x=Math.sqrt(d),w=a*Math.tan((Hl-Math.acos((v+d-h)/(2*g*x)))/2),O=w/x,m=w/g;Math.abs(O-1)>ir&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*p>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,d=o?i-a:a-i;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>ir||Math.abs(this._y1-f)>ir)&&this._append`L${c},${f}`,n&&(d<0&&(d=d%Gl+Gl),d>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}`:d>ir&&this._append`A${n},${n},0,${+(d>=Hl)},${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 gd(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 A_(t)}function bd(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function j0(e){this._context=e}j0.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 oo(e){return new j0(e)}function E0(e){return e[0]}function $0(e){return e[1]}function k0(e,t){var r=le(!0),n=null,i=oo,a=null,o=gd(u);e=typeof e=="function"?e:e===void 0?E0:le(e),t=typeof t=="function"?t:t===void 0?$0:le(t);function u(s){var c,f=(s=bd(s)).length,l,d=!1,p;for(n==null&&(a=i(p=o())),c=0;c<=f;++c)!(c<f&&r(l=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(l,c,s),+t(l,c,s));if(p)return a=null,p+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:le(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:le(+s),u):t},u.defined=function(s){return arguments.length?(r=typeof s=="function"?s:le(!!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 Ri(e,t,r){var n=null,i=le(!0),a=null,o=oo,u=null,s=gd(c);e=typeof e=="function"?e:e===void 0?E0:le(+e),t=typeof t=="function"?t:le(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?$0:le(+r);function c(l){var d,p,y,v=(l=bd(l)).length,h,g=!1,x,w=new Array(v),O=new Array(v);for(a==null&&(u=o(x=s())),d=0;d<=v;++d){if(!(d<v&&i(h=l[d],d,l))===g)if(g=!g)p=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=d-1;y>=p;--y)u.point(w[y],O[y]);u.lineEnd(),u.areaEnd()}g&&(w[d]=+e(h,d,l),O[d]=+t(h,d,l),u.point(n?+n(h,d,l):w[d],r?+r(h,d,l):O[d]))}if(x)return u=null,x+""||null}function f(){return k0().defined(i).curve(o).context(a)}return c.x=function(l){return arguments.length?(e=typeof l=="function"?l:le(+l),n=null,c):e},c.x0=function(l){return arguments.length?(e=typeof l=="function"?l:le(+l),c):e},c.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:le(+l),c):n},c.y=function(l){return arguments.length?(t=typeof l=="function"?l:le(+l),r=null,c):t},c.y0=function(l){return arguments.length?(t=typeof l=="function"?l:le(+l),c):t},c.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:le(+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:le(!!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 M0{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 S_(e){return new M0(e,!0)}function P_(e){return new M0(e,!1)}const xd={draw(e,t){const r=dt(t/ta);e.moveTo(r,0),e.arc(0,0,r,0,ao)}},T_={draw(e,t){const r=dt(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()}},C0=dt(1/3),j_=C0*2,E_={draw(e,t){const r=dt(t/j_),n=r*C0;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},$_={draw(e,t){const r=dt(t),n=-r/2;e.rect(n,n,r,r)}},k_=.8908130915292852,I0=ea(ta/10)/ea(7*ta/10),M_=ea(ao/10)*I0,C_=-P0(ao/10)*I0,I_={draw(e,t){const r=dt(t*k_),n=M_*r,i=C_*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=ao*a/5,u=P0(o),s=ea(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},Yu=dt(3),R_={draw(e,t){const r=-dt(t/(Yu*3));e.moveTo(0,r*2),e.lineTo(-Yu*r,-r),e.lineTo(Yu*r,-r),e.closePath()}},Ye=-.5,Je=dt(3)/2,Vl=1/dt(12),N_=(Vl/2+1)*3,D_={draw(e,t){const r=dt(t/N_),n=r/2,i=r*Vl,a=n,o=r*Vl+r,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(Ye*n-Je*i,Je*n+Ye*i),e.lineTo(Ye*a-Je*o,Je*a+Ye*o),e.lineTo(Ye*u-Je*s,Je*u+Ye*s),e.lineTo(Ye*n+Je*i,Ye*i-Je*n),e.lineTo(Ye*a+Je*o,Ye*o-Je*a),e.lineTo(Ye*u+Je*s,Ye*s-Je*u),e.closePath()}};function L_(e,t){let r=null,n=gd(i);e=typeof e=="function"?e:le(e||xd),t=typeof t=="function"?t:le(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:le(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:le(+a),i):t}
vendor: 6,361 bytes, line 1
1,i.context=function(a){return arguments.length?(r=a??null,i):r},i}function ra(){}function na(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 R0(e){this._context=e}R0.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:na(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:na(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function q_(e){return new R0(e)}function N0(e){this._context=e}N0.prototype={areaStart:ra,areaEnd:ra,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:na(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function B_(e){return new N0(e)}function D0(e){this._context=e}D0.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:na(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function F_(e){return new D0(e)}function L0(e){this._context=e}L0.prototype={areaStart:ra,areaEnd:ra,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 z_(e){return new L0(e)}function Rp(e){return e<0?-1:1}function Np(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(Rp(a)+Rp(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Dp(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Ju(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 ia(e){this._context=e}ia.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:Ju(this,this._t0,Dp(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,Ju(this,Dp(this,r=Np(this,e,t)),r);break;default:Ju(this,this._t0,r=Np(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function q0(e){this._context=new B0(e)}(q0.prototype=Object.create(ia.prototype)).point=function(e,t){ia.prototype.point.call(this,t,e)};function B0(e){this._context=e}B0.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 W_(e){return new ia(e)}function U_(e){return new q0(e)}function F0(e){this._context=e}F0.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=Lp(e),i=Lp(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 Lp(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 K_(e){return new F0(e)}function uo(e,t){this._context=e,this._t=t}uo.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;
vendor: 15,184 bytes, lines 1-4
1default:{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 H_(e){return new uo(e,.5)}function G_(e){return new uo(e,0)}function V_(e){return new uo(e,1)}function Ur(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 Xl(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function X_(e,t){return e[t]}function Y_(e){const t=[];return t.key=e,t}function J_(){var e=le([]),t=Xl,r=Ur,n=X_;function i(a){var o=Array.from(e.apply(this,arguments),Y_),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=bd(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:le(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:le(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Xl:typeof a=="function"?a:le(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Ur,i):r},i}function Z_(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}Ur(e,t)}}function Q_(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}Ur(e,t)}}function eA(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,d=f[n-1][1]||0,p=(l-d)/2,y=0;y<u;++y){var v=e[t[y]],h=v[n][1]||0,g=v[n-1][1]||0;p+=h-g}s+=l,c+=p*l}i[n-1][1]+=i[n-1][0]=r,s&&(r-=c/s)}i[n-1][1]+=i[n-1][0]=r,Ur(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 tA=["type","size","sizeType"];function Yl(){return Yl=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},Yl.apply(this,arguments)}function qp(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 Bp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qp(Object(r),!0).forEach(function(n){rA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rA(e,t,r){return t=nA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nA(e){var t=iA(e,"string");return Un(t)=="symbol"?t:t+""}function iA(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 aA(e,t){if(e==null)return{};var r=oA(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 oA(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 z0={symbolCircle:xd,symbolCross:T_,symbolDiamond:E_,symbolSquare:$_,symbolStar:I_,symbolTriangle:R_,symbolWye:D_},uA=Math.PI/180,sA=function(t){var r="symbol".concat(io(t));return z0[r]||xd},cA=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*uA;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}},lA=function(t,r){z0["symbol".concat(io(t))]=r},wd=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=aA(t,tA),c=Bp(Bp({},s),{},{type:n,size:a,sizeType:u}),f=function(){var h=sA(n),g=L_().type(h).size(cA(a,u,n));return g()},l=c.className,d=c.cx,p=c.cy,y=H(c,!0);return d===+d&&p===+p&&a===+a?S.createElement("path",Yl({},y,{className:Z("recharts-symbols",l),transform:"translate(".concat(d,", ").concat(p,")"),d:f()})):null};wd.registerSymbol=lA;function Kr(e){"@babel/helpers - typeof";return Kr=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},Kr(e)}function Jl(){return Jl=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},Jl.apply(this,arguments)}function Fp(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 fA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fp(Object(r),!0).forEach(function(n){Kn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hA(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,U0(n.key),n)}}function pA(e,t,r){return t&&hA(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vA(e,t,r){return t=aa(t),yA(e,W0()?Reflect.construct(t,r||[],aa(e).constructor):t.apply(e,r))}function yA(e,t){if(t&&(Kr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mA(e)}function mA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(W0=function(){return!!e})()}function aa(e){return aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},aa(e)}function gA(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&&Zl(e,t)}function Zl(e,t){return Zl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zl(e,t)}function Kn(e,t,r){return t=U0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U0(e){var t=bA(e,"string");return Kr(t)=="symbol"?t:t+""}function bA(e,t){if(Kr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ze=32,Od=(function(e){function t(){return dA(this,t),vA(this,t,arguments)}return gA(t,e),pA(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Ze/2,o=Ze/6,u=Ze/3,s=n.inactive?i:n.color;if(n.type==="plainline")return S.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Ze,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return S.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(a,"h").concat(u,`
2            A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
3            H`).concat(Ze,"M").concat(2*u,",").concat(a,`
4            A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return S.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Ze/8,"h").concat(Ze,"v").concat(Ze*3/4,"h").concat(-Ze,"z"),className:"recharts-legend-icon"});if(S.isValidElement(n.legendIcon)){var c=fA({},n);return delete c.legendIcon,S.cloneElement(n.legendIcon,c)}return S.createElement(wd,{fill:s,cx:a,cy:a,size:Ze,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:Ze,height:Ze},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,y){var v=p.formatter||s,h=Z(Kn(Kn({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var g=V(p.value)?null:p.value;lt(!V(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=p.inactive?c:p.color;return S.createElement("li",Jl({className:h,style:l,key:"legend-item-".concat(y)},gr(n.props,p,y)),S.createElement(Ul,{width:o,height:o,viewBox:f,style:d},n.renderIcon(p)),S.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},v?v(g,p,y):g))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return S.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(N.PureComponent);Kn(Od,"displayName","Legend");Kn(Od,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Zu,zp;function xA(){if(zp)return Zu;zp=1;var e=to();function t(){this.__data__=new e,this.size=0}return Zu=t,Zu}var Qu,Wp;function wA(){if(Wp)return Qu;Wp=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Qu=e,Qu}var es,Up;function OA(){if(Up)return es;Up=1;function e(t){return this.__data__.get(t)}return es=e,es}var ts,Kp;function _A(){if(Kp)return ts;Kp=1;function e(t){return this.__data__.has(t)}return ts=e,ts}var rs,Hp;function AA(){if(Hp)return rs;Hp=1;var e=to(),t=dd(),r=hd(),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 rs=i,rs}var ns,Gp;function K0(){if(Gp)return ns;Gp=1;var e=to(),t=xA(),r=wA(),n=OA(),i=_A(),a=AA();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,ns=o,ns}var is,Vp;function SA(){if(Vp)return is;Vp=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return is=t,is}var as,Xp;function PA(){if(Xp)return as;Xp=1;function e(t){return this.__data__.has(t)}return as=e,as}var os,Yp;function H0(){if(Yp)return os;Yp=1;var e=hd(),t=SA(),r=PA();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,os=n,os}var us,Jp;function G0(){if(Jp)return us;Jp=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 us=e,us}var ss,Zp;function V0(){if(Zp)return ss;Zp=1;function e(t,r){return t.has(r)}return ss=e,ss}var cs,Qp;function X0(){if(Qp)return cs;Qp=1;var e=H0(),t=G0(),r=V0(),n=1,i=2;function a(o,u,s,c,f,l){var d=s&n,p=o.length,y=u.length;if(p!=y&&!(d&&y>p))return!1;var v=l.get(o),h=l.get(u);if(v&&h)return v==u&&h==o;var g=-1,x=!0,w=s&i?new e:void 0;for(l.set(o,u),l.set(u,o);++g<p;){var O=o[g],m=u[g];if(c)var b=d?c(m,O,g,u,o,l):c(O,m,g,o,u,l);if(b!==void 0){if(b)continue;x=!1;break}if(w){if(!t(u,function(_,A){if(!r(w,A)&&(O===_||f(O,_,s,c,l)))return w.push(A)})){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 cs=a,cs}var ls,ev;function TA(){if(ev)return ls;ev=1;var e=xt(),t=e.Uint8Array;return ls=t,ls}var fs,tv;function jA(){if(tv)return fs;tv=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return fs=e,fs}var ds,rv;function _d(){if(rv)return ds;rv=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return ds=e,ds}var hs,nv;function EA(){if(nv)return hs;nv=1;var e=Si(),t=TA(),r=fd(),n=X0(),i=jA(),a=_d(),o=1,u=2,s="[object Boolean]",c="[object Date]",f="[object Error]",l="[object Map]",d="[object Number]",p="[object RegExp]",y="[object Set]",v="[object String]",h="[object Symbol]",g="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,O=w?w.valueOf:void 0;function m(b,_,A,P,E,j,T){switch(A){case x:if(b.byteLength!=_.byteLength||b.byteOffset!=_.byteOffset)return!1;b=b.buffer,_=_.buffer;case g:return!(b.byteLength!=_.byteLength||!j(new t(b),new t(_)));case s:case c:case d:return r(+b,+_);case f:return b.name==_.name&&b.message==_.message;case p:case v:return b==_+"";case l:var $=i;case y:var M=P&o;if($||($=a),b.size!=_.size&&!M)return!1;var k=T.get(b);if(k)return k==_;P|=u,T.set(b,_);var R=n($(b),$(_),P,E,j,T);return T.delete(b),R;case h:if(O)return O.call(b)==O.call(_)}return!1}return hs=m,hs}var ps,iv;function Y0(){if(iv)return ps;iv=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 ps=e,ps}var vs,av;function $A(){if(av)return vs;av=1;var e=Y0(),t=ze();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return vs=r,vs}var ys,ov;function kA(){if(ov)return ys;ov=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 ys=e,ys}var ms,uv;function MA(){if(uv)return ms;uv=1;function e(){return[]}return ms=e,ms}var gs,sv;function CA(){if(sv)return gs;sv=1;var e=kA(),t=MA(),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 gs=a,gs}var bs,cv;function IA(){if(cv)return bs;cv=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return bs=e,bs}var xs,lv;function RA(){if(lv)return xs;lv=1;var e=Mt(),t=Ct(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return xs=n,xs}var ws,fv;function Ad(){if(fv)return ws;fv=1;var e=RA(),t=Ct(),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 ws=a,ws}var In={exports:{}},Os,dv;
vendor: 5,573 bytes, line 4
4function NA(){if(dv)return Os;dv=1;function e(){return!1}return Os=e,Os}In.exports;var hv;function J0(){return hv||(hv=1,(function(e,t){var r=xt(),n=NA(),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})(In,In.exports)),In.exports}var _s,pv;function Sd(){if(pv)return _s;pv=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 _s=r,_s}var As,vv;function Pd(){if(vv)return As;vv=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return As=t,As}var Ss,yv;function DA(){if(yv)return Ss;yv=1;var e=Mt(),t=Pd(),r=Ct(),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]",d="[object RegExp]",p="[object Set]",y="[object String]",v="[object WeakMap]",h="[object ArrayBuffer]",g="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",m="[object Int16Array]",b="[object Int32Array]",_="[object Uint8Array]",A="[object Uint8ClampedArray]",P="[object Uint16Array]",E="[object Uint32Array]",j={};j[x]=j[w]=j[O]=j[m]=j[b]=j[_]=j[A]=j[P]=j[E]=!0,j[n]=j[i]=j[h]=j[a]=j[g]=j[o]=j[u]=j[s]=j[c]=j[f]=j[l]=j[d]=j[p]=j[y]=j[v]=!1;function T($){return r($)&&t($.length)&&!!j[e($)]}return Ss=T,Ss}var Ps,mv;function Z0(){if(mv)return Ps;mv=1;function e(t){return function(r){return t(r)}}return Ps=e,Ps}var Rn={exports:{}};Rn.exports;var gv;function LA(){return gv||(gv=1,(function(e,t){var r=m0(),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})(Rn,Rn.exports)),Rn.exports}var Ts,bv;function Q0(){if(bv)return Ts;bv=1;var e=DA(),t=Z0(),r=LA(),n=r&&r.isTypedArray,i=n?t(n):e;return Ts=i,Ts}var js,xv;function qA(){if(xv)return js;xv=1;var e=IA(),t=Ad(),r=ze(),n=J0(),i=Sd(),a=Q0(),o=Object.prototype,u=o.hasOwnProperty;function s(c,f){var l=r(c),d=!l&&t(c),p=!l&&!d&&n(c),y=!l&&!d&&!p&&a(c),v=l||d||p||y,h=v?e(c.length,String):[],g=h.length;for(var x in c)(f||u.call(c,x))&&!(v&&(x=="length"||p&&(x=="offset"||x=="parent")||y&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,g)))&&h.push(x);return h}return js=s,js}var Es,wv;function BA(){if(wv)return Es;wv=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Es=t,Es}var $s,Ov;function ex(){if(Ov)return $s;Ov=1;function e(t,r){return function(n){return t(r(n))}}return $s=e,$s}var ks,_v;function FA(){if(_v)return ks;_v=1;var e=ex(),t=e(Object.keys,Object);return ks=t,ks}var Ms,Av;function zA(){if(Av)return Ms;Av=1;var e=BA(),t=FA(),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 Ms=i,Ms}var Cs,Sv;function Pi(){if(Sv)return Cs;Sv=1;var e=ld(),t=Pd();function r(n){return n!=null&&t(n.length)&&!e(n)}return Cs=r,Cs}var Is,Pv;function so(){if(Pv)return Is;Pv=1;var e=qA(),t=zA(),r=Pi();function n(i){return r(i)?e(i):t(i)}return Is=n,Is}var Rs,Tv;function WA(){if(Tv)return Rs;Tv=1;var e=$A(),t=CA(),r=so();function n(i){return e(i,r,t)}return Rs=n,Rs}var Ns,jv;function UA(){if(jv)return Ns;jv=1;var e=WA(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,s,c,f){var l=u&t,d=e(a),p=d.length,y=e(o),v=y.length;if(p!=v&&!l)return!1;for(var h=p;h--;){var g=d[h];if(!(l?g in o:n.call(o,g)))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;++h<p;){g=d[h];var b=a[g],_=o[g];if(s)var A=l?s(_,b,g,o,a,f):s(b,_,g,a,o,f);if(!(A===void 0?b===_||c(b,_,u,s,f):A)){O=!1;break}m||(m=g=="constructor")}if(O&&!m){var P=a.constructor,E=o.constructor;P!=E&&"constructor"in a&&"constructor"in o&&!(typeof P=="function"&&P instanceof P&&typeof E=="function"&&E instanceof E)&&(O=!1)}return f.delete(a),f.delete(o),O}return Ns=i,Ns}var Ds,Ev;function KA(){if(Ev)return Ds;Ev=1;var e=Ar(),t=xt(),r=e(t,"DataView");return Ds=r,Ds}var Ls,$v;function HA(){if($v)return Ls;$v=1;var e=Ar(),t=xt(),r=e(t,"Promise");return Ls=r,Ls}var qs,kv;function tx(){if(kv)return qs;kv=1;var e=Ar(),t=xt(),r=e(t,"Set");return qs=r,qs}var Bs,Mv;function GA(){if(Mv)return Bs;Mv=1;var e=Ar(),t=xt(),r=e(t,"WeakMap");return Bs=r,Bs}var Fs,Cv;function VA(){if(Cv)return Fs;Cv=1;var e=KA(),t=dd(),r=HA(),n=tx(),i=GA(),a=Mt(),o=g0(),u="[object Map]",s="[object Object]",c="[object Promise]",f="[object Set]",l="[object WeakMap]",d="[object DataView]",p=o(e),y=o(t),v=o(r),h=o(n),g=o(i),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=d||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,b=m?o(m):"";if(b)switch(b){case p:return d;case y:return u;case v:return c;case h:return f;case g:return l}return O}),Fs=x,Fs}var zs,Iv;function XA(){if(Iv)return zs;Iv=1;var e=K0(),t=X0(),r=EA(),n=UA(),i=VA(),a=ze(),o=J0(),u=Q0(),s=1,c="[object Arguments]",f="[object Array]",l="[object Object]",d=Object.prototype,p=d.hasOwnProperty;function y(v,h,g,x,w,O){var m=a(v),b=a(h),_=m?f:i(v),A=b?f:i(h);_=_==c?l:_,A=A==c?l:A;var P=_==l,E=A==l,j=_==A;if(j&&o(v)){if(!o(h))return!1;m=!0,P=!1}if(j&&!P)return O||(O=new e),m||u(v)?t(v,h,g,x,w,O):r(v,h,_,g,x,w,O);if(!(g&s)){var T=P&&p.call(v,"__wrapped__"),$=E&&p.call(h,"__wrapped__");
vendor: 48,255 bytes, lines 4-12
4if(T||$){var M=T?v.value():v,k=$?h.value():h;return O||(O=new e),w(M,k,g,x,O)}}return j?(O||(O=new e),n(v,h,g,x,w,O)):!1}return zs=y,zs}var Ws,Rv;function Td(){if(Rv)return Ws;Rv=1;var e=XA(),t=Ct();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 Ws=r,Ws}var Us,Nv;function YA(){if(Nv)return Us;Nv=1;var e=K0(),t=Td(),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 d=u[c];if(l&&d[2]?d[1]!==a[d[0]]:!(d[0]in a))return!1}for(;++c<f;){d=u[c];var p=d[0],y=a[p],v=d[1];if(l&&d[2]){if(y===void 0&&!(p in a))return!1}else{var h=new e;if(s)var g=s(y,v,p,a,o,h);if(!(g===void 0?t(v,y,r|n,s,h):g))return!1}}return!0}return Us=i,Us}var Ks,Dv;function rx(){if(Dv)return Ks;Dv=1;var e=Kt();function t(r){return r===r&&!e(r)}return Ks=t,Ks}var Hs,Lv;function JA(){if(Lv)return Hs;Lv=1;var e=rx(),t=so();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 Hs=r,Hs}var Gs,qv;function nx(){if(qv)return Gs;qv=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Gs=e,Gs}var Vs,Bv;function ZA(){if(Bv)return Vs;Bv=1;var e=YA(),t=JA(),r=nx();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 Vs=n,Vs}var Xs,Fv;function QA(){if(Fv)return Xs;Fv=1;function e(t,r){return t!=null&&r in Object(t)}return Xs=e,Xs}var Ys,zv;function eS(){if(zv)return Ys;zv=1;var e=w0(),t=Ad(),r=ze(),n=Sd(),i=Pd(),a=no();function o(u,s,c){s=e(s,u);for(var f=-1,l=s.length,d=!1;++f<l;){var p=a(s[f]);if(!(d=u!=null&&c(u,p)))break;u=u[p]}return d||++f!=l?d:(l=u==null?0:u.length,!!l&&i(l)&&n(p,l)&&(r(u)||t(u)))}return Ys=o,Ys}var Js,Wv;function tS(){if(Wv)return Js;Wv=1;var e=QA(),t=eS();function r(n,i){return n!=null&&t(n,i,e)}return Js=r,Js}var Zs,Uv;function rS(){if(Uv)return Zs;Uv=1;var e=Td(),t=O0(),r=tS(),n=cd(),i=rx(),a=nx(),o=no(),u=1,s=2;function c(f,l){return n(f)&&i(l)?a(o(f),l):function(d){var p=t(d,f);return p===void 0&&p===l?r(d,f):e(l,p,u|s)}}return Zs=c,Zs}var Qs,Kv;function xn(){if(Kv)return Qs;Kv=1;function e(t){return t}return Qs=e,Qs}var ec,Hv;function nS(){if(Hv)return ec;Hv=1;function e(t){return function(r){return r?.[t]}}return ec=e,ec}var tc,Gv;function iS(){if(Gv)return tc;Gv=1;var e=vd();function t(r){return function(n){return e(n,r)}}return tc=t,tc}var rc,Vv;function aS(){if(Vv)return rc;Vv=1;var e=nS(),t=iS(),r=cd(),n=no();function i(a){return r(a)?e(n(a)):t(a)}return rc=i,rc}var nc,Xv;function wt(){if(Xv)return nc;Xv=1;var e=ZA(),t=rS(),r=xn(),n=ze(),i=aS();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 nc=a,nc}var ic,Yv;function ix(){if(Yv)return ic;Yv=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 ic=e,ic}var ac,Jv;function oS(){if(Jv)return ac;Jv=1;function e(t){return t!==t}return ac=e,ac}var oc,Zv;function uS(){if(Zv)return oc;Zv=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 oc=e,oc}var uc,Qv;function sS(){if(Qv)return uc;Qv=1;var e=ix(),t=oS(),r=uS();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return uc=n,uc}var sc,ey;function cS(){if(ey)return sc;ey=1;var e=sS();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return sc=t,sc}var cc,ty;function lS(){if(ty)return cc;ty=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 cc=e,cc}var lc,ry;function fS(){if(ry)return lc;ry=1;function e(){}return lc=e,lc}var fc,ny;function dS(){if(ny)return fc;ny=1;var e=tx(),t=fS(),r=_d(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return fc=i,fc}var dc,iy;function hS(){if(iy)return dc;iy=1;var e=H0(),t=cS(),r=lS(),n=V0(),i=dS(),a=_d(),o=200;function u(s,c,f){var l=-1,d=t,p=s.length,y=!0,v=[],h=v;if(f)y=!1,d=r;else if(p>=o){var g=c?null:i(s);if(g)return a(g);y=!1,d=n,h=new e}else h=c?[]:v;e:for(;++l<p;){var x=s[l],w=c?c(x):x;if(x=f||x!==0?x:0,y&&w===w){for(var O=h.length;O--;)if(h[O]===w)continue e;c&&h.push(w),v.push(x)}else d(h,w,f)||(h!==v&&h.push(w),v.push(x))}return v}return dc=u,dc}var hc,ay;function pS(){if(ay)return hc;ay=1;var e=wt(),t=hS();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return hc=r,hc}var vS=pS();const oy=ue(vS);function ax(e,t,r){return t===!0?oy(e,r):V(t)?oy(e,t):e}function Hr(e){"@babel/helpers - typeof";return Hr=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},Hr(e)}var yS=["ref"];function uy(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?uy(Object(r),!0).forEach(function(n){co(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sy(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,ux(n.key),n)}}function gS(e,t,r){return t&&sy(e.prototype,t),r&&sy(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function bS(e,t,r){return t=oa(t),xS(e,ox()?Reflect.construct(t,r||[],oa(e).constructor):t.apply(e,r))}function xS(e,t){if(t&&(Hr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wS(e)}function wS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ox(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ox=function(){return!!e})()}function oa(e){return oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oa(e)}function OS(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&&Ql(e,t)}function Ql(e,t){return Ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ql(e,t)}function co(e,t,r){return t=ux(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ux(e){var t=_S(e,"string");return Hr(t)=="symbol"?t:t+""}function _S(e,t){if(Hr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function AS(e,t){if(e==null)return{};var r=SS(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 SS(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 PS(e){return e.value}function TS(e,t){if(S.isValidElement(e))return S.cloneElement(e,t);if(typeof e=="function")return S.createElement(e,t);t.ref;var r=AS(t,yS);return S.createElement(Od,r)}var cy=1,zt=(function(e){function t(){var r;mS(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=bS(this,t,[].concat(i)),co(r,"lastBoundingBox",{width:-1,height:-1}),r}return OS(t,e),gS(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)>cy||Math.abs(i.height-this.lastBoundingBox.height)>cy)&&(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,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();l={left:((c||0)-p.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();d={top:((f||0)-y.height)/2}}else d=u==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return Ot(Ot({},l),d)}},{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 S.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(p){n.wrapperNode=p}},TS(a,Ot(Ot({},this.props),{},{payload:ax(f,c,PS)})))}}],[{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);co(zt,"displayName","Legend");co(zt,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var pc,ly;function jS(){if(ly)return pc;ly=1;var e=Si(),t=Ad(),r=ze(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return pc=i,pc}var vc,fy;function sx(){if(fy)return vc;fy=1;var e=Y0(),t=jS();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 vc=r,vc}var yc,dy;function ES(){if(dy)return yc;dy=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 yc=e,yc}var mc,hy;function $S(){if(hy)return mc;hy=1;var e=ES(),t=e();return mc=t,mc}var gc,py;function cx(){if(py)return gc;py=1;var e=$S(),t=so();function r(n,i){return n&&e(n,i,t)}return gc=r,gc}var bc,vy;function kS(){if(vy)return bc;vy=1;var e=Pi();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 bc=t,bc}var xc,yy;function jd(){if(yy)return xc;yy=1;var e=cx(),t=kS(),r=t(e);return xc=r,xc}var wc,my;function lx(){if(my)return wc;my=1;var e=jd(),t=Pi();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 wc=r,wc}var Oc,gy;function MS(){if(gy)return Oc;gy=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Oc=e,Oc}var _c,by;function CS(){if(by)return _c;by=1;var e=mn();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 _c=t,_c}var Ac,xy;function IS(){if(xy)return Ac;xy=1;var e=CS();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 Ac=t,Ac}var Sc,wy;function RS(){if(wy)return Sc;wy=1;var e=pd(),t=vd(),r=wt(),n=lx(),i=MS(),a=Z0(),o=IS(),u=xn(),s=ze();function c(f,l,d){l.length?l=e(l,function(v){return s(v)?function(h){return t(h,v.length===1?v[0]:v)}:v}):l=[u];var p=-1;l=e(l,a(r));var y=n(f,function(v,h,g){var x=e(l,function(w){return w(v)});return{criteria:x,index:++p,value:v}});return i(y,function(v,h){return o(v,h,d)})}return Sc=c,Sc}var Pc,Oy;function NS(){if(Oy)return Pc;Oy=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 Pc=e,Pc}var Tc,_y;function DS(){if(_y)return Tc;_y=1;var e=NS(),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 Tc=r,Tc}var jc,Ay;function LS(){if(Ay)return jc;Ay=1;function e(t){return function(){return t}}return jc=e,jc}var Ec,Sy;function fx(){if(Sy)return Ec;Sy=1;var e=Ar(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Ec=t,Ec}var $c,Py;function qS(){if(Py)return $c;Py=1;var e=LS(),t=fx(),r=xn(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return $c=n,$c}var kc,Ty;function BS(){if(Ty)return kc;Ty=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 kc=n,kc}var Mc,jy;function FS(){if(jy)return Mc;jy=1;var e=qS(),t=BS(),r=t(e);return Mc=r,Mc}var Cc,Ey;function zS(){if(Ey)return Cc;Ey=1;var e=xn(),t=DS(),r=FS();function n(i,a){return r(t(i,a,e),i+"")}return Cc=n,Cc}var Ic,$y;function lo(){if($y)return Ic;$y=1;var e=fd(),t=Pi(),r=Sd(),n=Kt();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 Ic=i,Ic}var Rc,ky;function WS(){if(ky)return Rc;ky=1;var e=sx(),t=RS(),r=zS(),n=lo(),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 Rc=i,Rc}var US=WS();const Ed=ue(US);function Hn(e){"@babel/helpers - typeof";return Hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hn(e)}function ef(){return ef=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},ef.apply(this,arguments)}function KS(e,t){return XS(e)||VS(e,t)||GS(e,t)||HS()}function HS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
5In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GS(e,t){if(e){if(typeof e=="string")return My(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return My(e,t)}}function My(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function VS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function XS(e){if(Array.isArray(e))return e}function Cy(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 Nc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cy(Object(r),!0).forEach(function(n){YS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YS(e,t,r){return t=JS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JS(e){var t=ZS(e,"string");return Hn(t)=="symbol"?t:t+""}function ZS(e,t){if(Hn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function QS(e){return Array.isArray(e)&&Pe(e[0])&&Pe(e[1])?e.join(" ~ "):e}var eP=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,u=o===void 0?{}:o,s=t.labelStyle,c=s===void 0?{}:s,f=t.payload,l=t.formatter,d=t.itemSorter,p=t.wrapperClassName,y=t.labelClassName,v=t.label,h=t.labelFormatter,g=t.accessibilityLayer,x=g===void 0?!1:g,w=function(){if(f&&f.length){var T={padding:0,margin:0},$=(d?Ed(f,d):f).map(function(M,k){if(M.type==="none")return null;var R=Nc({display:"block",paddingTop:4,paddingBottom:4,color:M.color||"#000"},u),D=M.formatter||l||QS,B=M.value,F=M.name,K=B,X=F;if(D&&K!=null&&X!=null){var W=D(B,F,M,k,f);if(Array.isArray(W)){var Y=KS(W,2);K=Y[0],X=Y[1]}else K=W}return S.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(k),style:R},Pe(X)?S.createElement("span",{className:"recharts-tooltip-item-name"},X):null,Pe(X)?S.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,S.createElement("span",{className:"recharts-tooltip-item-value"},K),S.createElement("span",{className:"recharts-tooltip-item-unit"},M.unit||""))});return S.createElement("ul",{className:"recharts-tooltip-item-list",style:T},$)}return null},O=Nc({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=Nc({margin:0},c),b=!J(v),_=b?v:"",A=Z("recharts-default-tooltip",p),P=Z("recharts-tooltip-label",y);b&&h&&f!==void 0&&f!==null&&(_=h(v,f));var E=x?{role:"status","aria-live":"assertive"}:{};return S.createElement("div",ef({className:A,style:O},E),S.createElement("p",{className:P,style:m},S.isValidElement(_)?_:"".concat(_)),w())};function Gn(e){"@babel/helpers - typeof";return Gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gn(e)}function Ni(e,t,r){return t=tP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tP(e){var t=rP(e,"string");return Gn(t)=="symbol"?t:t+""}function rP(e,t){if(Gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Sn="recharts-tooltip-wrapper",nP={visibility:"hidden"};function iP(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Z(Sn,Ni(Ni(Ni(Ni({},"".concat(Sn,"-right"),q(r)&&t&&q(t.x)&&r>=t.x),"".concat(Sn,"-left"),q(r)&&t&&q(t.x)&&r<t.x),"".concat(Sn,"-bottom"),q(n)&&t&&q(t.y)&&n>=t.y),"".concat(Sn,"-top"),q(n)&&t&&q(t.y)&&n<t.y))}function Iy(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,s=e.viewBox,c=e.viewBoxDimension;if(a&&q(a[n]))return a[n];var f=r[n]-u-i,l=r[n]+i;if(t[n])return o[n]?f:l;if(o[n]){var d=f,p=s[n];return d<p?Math.max(l,s[n]):Math.max(f,s[n])}var y=l+u,v=s[n]+c;return y>v?Math.max(f,s[n]):Math.max(l,s[n])}function aP(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function oP(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,s=e.viewBox,c,f,l;return o.height>0&&o.width>0&&r?(f=Iy({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),l=Iy({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),c=aP({translateX:f,translateY:l,useTranslate3d:u})):c=nP,{cssProperties:c,cssClasses:iP({translateX:f,translateY:l,coordinate:r})}}function Gr(e){"@babel/helpers - typeof";return Gr=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},Gr(e)}function Ry(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 Ny(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ry(Object(r),!0).forEach(function(n){rf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ry(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sP(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,hx(n.key),n)}}function cP(e,t,r){return t&&sP(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lP(e,t,r){return t=ua(t),fP(e,dx()?Reflect.construct(t,r||[],ua(e).constructor):t.apply(e,r))}function fP(e,t){if(t&&(Gr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dP(e)}function dP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dx=function(){return!!e})()}function ua(e){return ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ua(e)}function hP(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&&tf(e,t)}function tf(e,t){return tf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tf(e,t)}function rf(e,t,r){return t=hx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hx(e){var t=pP(e,"string");return Gr(t)=="symbol"?t:t+""}function pP(e,t){if(Gr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Dy=1,vP=(function(e){function t(){var r;uP(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=lP(this,t,[].concat(i)),rf(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),rf(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,s,c,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(s=r.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&u!==void 0?u:0,y:(c=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&c!==void 0?c:0}})}}),r}return hP(t,e),cP(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Dy||Math.abs(n.height-this.state.lastBoundingBox.height)>Dy)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,c=i.children,f=i.coordinate,l=i.hasPayload,d=i.isAnimationActive,p=i.offset,y=i.position,v=i.reverseDirection,h=i.useTranslate3d,g=i.viewBox,x=i.wrapperStyle,w=oP({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:h,viewBox:g}),O=w.cssClasses,m=w.cssProperties,b=Ny(Ny({transition:d&&a?"transform ".concat(u,"ms ").concat(s):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},x);return S.createElement("div",{tabIndex:-1,className:O,style:b,ref:function(A){n.wrapperNode=A}},c)}}])})(N.PureComponent),yP=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ht={isSsr:yP()};function Vr(e){"@babel/helpers - typeof";return Vr=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},Vr(e)}function Ly(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 qy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ly(Object(r),!0).forEach(function(n){$d(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ly(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gP(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,vx(n.key),n)}}function bP(e,t,r){return t&&gP(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xP(e,t,r){return t=sa(t),wP(e,px()?Reflect.construct(t,r||[],sa(e).constructor):t.apply(e,r))}function wP(e,t){if(t&&(Vr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OP(e)}function OP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function px(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(px=function(){return!!e})()}function sa(e){return sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sa(e)}function _P(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&&nf(e,t)}function nf(e,t){return nf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},nf(e,t)}function $d(e,t,r){return t=vx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vx(e){var t=AP(e,"string");return Vr(t)=="symbol"?t:t+""}function AP(e,t){if(Vr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function SP(e){return e.dataKey}function PP(e,t){return S.isValidElement(e)?S.cloneElement(e,t):typeof e=="function"?S.createElement(e,t):S.createElement(eP,t)}var Ie=(function(e){function t(){return mP(this,t),xP(this,t,arguments)}return _P(t,e),bP(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,c=i.content,f=i.coordinate,l=i.filterNull,d=i.isAnimationActive,p=i.offset,y=i.payload,v=i.payloadUniqBy,h=i.position,g=i.reverseDirection,x=i.useTranslate3d,w=i.viewBox,O=i.wrapperStyle,m=y??[];l&&m.length&&(m=ax(y.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),v,SP));var b=m.length>0;return S.createElement(vP,{allowEscapeViewBox:o,animationDuration:u,animationEasing:s,isAnimationActive:d,active:a,coordinate:f,hasPayload:b,offset:p,position:h,reverseDirection:g,useTranslate3d:x,viewBox:w,wrapperStyle:O},PP(c,qy(qy({},this.props),{},{payload:m})))}}])})(N.PureComponent);$d(Ie,"displayName","Tooltip");$d(Ie,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ht.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Dc,By;function TP(){if(By)return Dc;By=1;var e=xt(),t=function(){return e.Date.now()};return Dc=t,Dc}var Lc,Fy;function jP(){if(Fy)return Lc;Fy=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Lc=t,Lc}var qc,zy;function EP(){if(zy)return qc;zy=1;var e=jP(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return qc=r,qc}var Bc,Wy;function yx(){if(Wy)return Bc;Wy=1;var e=EP(),t=Kt(),r=mn(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function s(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=t(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=e(c);var l=a.test(c);return l||o.test(c)?u(c.slice(2),l?2:8):i.test(c)?n:+c}return Bc=s,Bc}var Fc,Uy;function $P(){if(Uy)return Fc;Uy=1;var e=Kt(),t=TP(),r=yx(),n="Expected a function",i=Math.max,a=Math.min;function o(u,s,c){var f,l,d,p,y,v,h=0,g=!1,x=!1,w=!0;if(typeof u!="function")throw new TypeError(n);s=r(s)||0,e(c)&&(g=!!c.leading,x="maxWait"in c,d=x?i(r(c.maxWait)||0,s):d,w="trailing"in c?!!c.trailing:w);function O($){var M=f,k=l;return f=l=void 0,h=$,p=u.apply(k,M),p}function m($){return h=$,y=setTimeout(A,s),g?O($):p}function b($){var M=$-v,k=$-h,R=s-M;return x?a(R,d-k):R}function _($){var M=$-v,k=$-h;return v===void 0||M>=s||M<0||x&&k>=d}function A(){var $=t();if(_($))return P($);y=setTimeout(A,b($))}function P($){return y=void 0,w&&f?O($):(f=l=void 0,p)}function E(){y!==void 0&&clearTimeout(y),h=0,f=v=l=y=void 0}function j(){return y===void 0?p:P(t())}function T(){var $=t(),M=_($);if(f=arguments,l=this,v=$,M){if(y===void 0)return m(v);if(x)return clearTimeout(y),y=setTimeout(A,s),O(v)}return y===void 0&&(y=setTimeout(A,s)),p}return T.cancel=E,T.flush=j,T}return Fc=o,Fc}var zc,Ky;function kP(){if(Ky)return zc;Ky=1;var e=$P(),t=Kt(),r="Expected a function";function n(i,a,o){var u=!0,s=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(u="leading"in o?!!o.leading:u,s="trailing"in o?!!o.trailing:s),e(i,a,{leading:u,maxWait:a,trailing:s})}return zc=n,zc}var MP=kP();const mx=ue(MP);function Vn(e){"@babel/helpers - typeof";return Vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vn(e)}function Hy(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 Di(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hy(Object(r),!0).forEach(function(n){CP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CP(e,t,r){return t=IP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IP(e){var t=RP(e,"string");return Vn(t)=="symbol"?t:t+""}function RP(e,t){if(Vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function NP(e,t){return BP(e)||qP(e,t)||LP(e,t)||DP()}function DP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LP(e,t){if(e){if(typeof e=="string")return Gy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gy(e,t)}}function Gy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qP(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function BP(e){if(Array.isArray(e))return e}var er=N.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,u=e.height,s=u===void 0?"100%":u,c=e.minWidth,f=c===void 0?0:c,l=e.minHeight,d=e.maxHeight,p=e.children,y=e.debounce,v=y===void 0?0:y,h=e.id,g=e.className,x=e.onResize,w=e.style,O=w===void 0?{}:w,m=N.useRef(null),b=N.useRef();b.current=x,N.useImperativeHandle(t,function(){return Object.defineProperty(m.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),m.current},configurable:!0})});var _=N.useState({containerWidth:i.width,containerHeight:i.height}),A=NP(_,2),P=A[0],E=A[1],j=N.useCallback(function($,M){E(function(k){var R=Math.round($),D=Math.round(M);return k.containerWidth===R&&k.containerHeight===D?k:{containerWidth:R,containerHeight:D}})},[]);N.useEffect(function(){var $=function(F){var K,X=F[0].contentRect,W=X.width,Y=X.height;j(W,Y),(K=b.current)===null||K===void 0||K.call(b,W,Y)};v>0&&($=mx($,v,{trailing:!0,leading:!1}));var M=new ResizeObserver($),k=m.current.getBoundingClientRect(),R=k.width,D=k.height;return j(R,D),M.observe(m.current),function(){M.disconnect()}},[j,v]);var T=N.useMemo(function(){var $=P.containerWidth,M=P.containerHeight;if($<0||M<0)return null;lt(sr(o)||sr(s),`The width(%s) and height(%s) are both fixed numbers,
7       maybe you don't need to use a ResponsiveContainer.`,o,s),lt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var k=sr(o)?$:o,R=sr(s)?M:s;r&&r>0&&(k?R=k/r:R&&(k=R*r),d&&R>d&&(R=d)),lt(k>0||R>0,`The width(%s) and height(%s) of chart should be greater than 0,
8       please check the style of container, or the props width(%s) and height(%s),
9       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
10       height and width.`,k,R,o,s,f,l,r);var D=!Array.isArray(p)&&Tt(p.type).endsWith("Chart");return S.Children.map(p,function(B){return S.isValidElement(B)?N.cloneElement(B,Di({width:k,height:R},D?{style:Di({height:"100%",width:"100%",maxHeight:R,maxWidth:k},B.props.style)}:{})):B})},[r,p,s,d,l,f,P,o]);return S.createElement("div",{id:h?"".concat(h):void 0,className:Z("recharts-responsive-container",g),style:Di(Di({},O),{},{width:o,height:s,minWidth:f,minHeight:l,maxHeight:d}),ref:m},T)}),fo=function(t){return null};fo.displayName="Cell";function Xn(e){"@babel/helpers - typeof";return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xn(e)}function Vy(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 af(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vy(Object(r),!0).forEach(function(n){FP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FP(e,t,r){return t=zP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zP(e){var t=WP(e,"string");return Xn(t)=="symbol"?t:t+""}function WP(e,t){if(Xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $r={widthCache:{},cacheCount:0},UP=2e3,KP={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Xy="recharts_measurement_span";function HP(e){var t=af({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Dn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ht.isSsr)return{width:0,height:0};var n=HP(r),i=JSON.stringify({text:t,copyStyle:n});if($r.widthCache[i])return $r.widthCache[i];try{var a=document.getElementById(Xy);a||(a=document.createElement("span"),a.setAttribute("id",Xy),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=af(af({},KP),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),s={width:u.width,height:u.height};return $r.widthCache[i]=s,++$r.cacheCount>UP&&($r.cacheCount=0,$r.widthCache={}),s}catch{return{width:0,height:0}}},GP=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Yn(e){"@babel/helpers - typeof";return Yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yn(e)}function ca(e,t){return JP(e)||YP(e,t)||XP(e,t)||VP()}function VP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
11In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XP(e,t){if(e){if(typeof e=="string")return Yy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yy(e,t)}}function Yy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function YP(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function JP(e){if(Array.isArray(e))return e}function ZP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jy(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,eT(n.key),n)}}function QP(e,t,r){return t&&Jy(e.prototype,t),r&&Jy(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function eT(e){var t=tT(e,"string");return Yn(t)=="symbol"?t:t+""}function tT(e,t){if(Yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Zy=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Qy=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,rT=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,nT=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,gx={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},iT=Object.keys(gx),Nr="NaN";function aT(e,t){return e*gx[t]}var Li=(function(){function e(t,r){ZP(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!rT.test(r)&&(this.num=NaN,this.unit=""),iT.includes(r)&&(this.num=aT(t,r),this.unit="px")}return QP(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=nT.exec(r))!==null&&n!==void 0?n:[],a=ca(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])})();function bx(e){if(e.includes(Nr))return Nr;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Zy.exec(t))!==null&&r!==void 0?r:[],i=ca(n,4),a=i[1],o=i[2],u=i[3],s=Li.parse(a??""),c=Li.parse(u??""),f=o==="*"?s.multiply(c):s.divide(c);if(f.isNaN())return Nr;t=t.replace(Zy,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,d=(l=Qy.exec(t))!==null&&l!==void 0?l:[],p=ca(d,4),y=p[1],v=p[2],h=p[3],g=Li.parse(y??""),x=Li.parse(h??""),w=v==="+"?g.add(x):g.subtract(x);if(w.isNaN())return Nr;t=t.replace(Qy,w.toString())}return t}var em=/\(([^()]*)\)/;function oT(e){for(var t=e;t.includes("(");){var r=em.exec(t),n=ca(r,2),i=n[1];t=t.replace(em,bx(i))}return t}function uT(e){var t=e.replace(/\s+/g,"");return t=oT(t),t=bx(t),t}function sT(e){try{return uT(e)}catch{return Nr}}function Wc(e){var t=sT(e.slice(5,-1));return t===Nr?"":t}var cT=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],lT=["dx","dy","angle","className","breakAll"];function of(){return of=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},of.apply(this,arguments)}function tm(e,t){if(e==null)return{};var r=fT(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 fT(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function rm(e,t){return vT(e)||pT(e,t)||hT(e,t)||dT()}function dT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
12In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hT(e,t){if(e){if(typeof e=="string")return nm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nm(e,t)}}function nm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pT(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function vT(e){if(Array.isArray(e))return e}var xx=/[ \f\n\r\t\v\u2028\u2029]+/,wx=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];J(r)||(n?a=r.toString().split(""):a=r.toString().split(xx));var o=a.map(function(s){return{word:s,width:Dn(s,i).width}}),u=n?0:Dn(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},yT=function(t,r,n,i,a){var o=t.maxLines,u=t.children,s=t.style,c=t.breakAll,f=q(o),l=u,d=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return k.reduce(function(R,D){var B=D.word,F=D.width,K=R[R.length-1];if(K&&(i==null||a||K.width+F+n<Number(i)))K.words.push(B),K.width+=F+n;else{var X={words:[B],width:F};R.push(X)}return R},[])},p=d(r),y=function(k){return k.reduce(function(R,D){return R.width>D.width?R:D})};if(!f)return p;for(var v="…",h=function(k){var R=l.slice(0,k),D=wx({breakAll:c,style:s,children:R+v}).wordsWithComputedWidth,B=d(D),F=B.length>o||y(B).width>Number(i);return[F,B]},g=0,x=l.length-1,w=0,O;g<=x&&w<=l.length-1;){var m=Math.floor((g+x)/2),b=m-1,_=h(b),A=rm(_,2),P=A[0],E=A[1],j=h(m),T=rm(j,1),$=T[0];if(!P&&!$&&(g=m+1),P&&$&&(x=m-1),!P&&$){O=E;break}w++}return O||p},im=function(t){var r=J(t)?[]:t.toString().split(xx);return[{words:r}]},mT=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!Ht.isSsr){var s,c,f=wx({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,d=f.spaceWidth;s=l,c=d}else return im(i);return yT({breakAll:o,children:i,maxLines:u,style:a},s,c,r,n)}return im(i)},am="#808080",br=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,s=t.capHeight,c=s===void 0?"0.71em":s,f=t.scaleToFit,l=f===void 0?!1:f,d=t.textAnchor,p=d===void 0?"start":d,y=t.verticalAnchor,v=y===void 0?"end":y,h=t.fill,g=h===void 0?am:h,x=tm(t,cT),w=N.useMemo(function(){return mT({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:l,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,l,x.style,x.width]),O=x.dx,m=x.dy,b=x.angle,_=x.className,A=x.breakAll,P=tm(x,lT);if(!Pe(n)||!Pe(a))return null;var E=n+(q(O)?O:0),j=a+(q(m)?m:0),T;switch(v){case"start":T=Wc("calc(".concat(c,")"));break;case"middle":T=Wc("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(c," / 2))"));break;default:T=Wc("calc(".concat(w.length-1," * -").concat(u,")"));break}var $=[];if(l){var M=w[0].width,k=x.width;$.push("scale(".concat((q(k)?k/M:1)/M,")"))}return b&&$.push("rotate(".concat(b,", ").concat(E,", ").concat(j,")")),$.length&&(P.transform=$.join(" ")),S.createElement("text",of({},H(P,!0),{x:E,y:j,className:Z("recharts-text",_),textAnchor:p,fill:g.includes("url")?am:g}),w.map(function(R,D){var B=R.words.join(A?"":" ");
12return S.createElement("tspan",{x:E,dy:D===0?T:u,key:"".concat(B,"-").concat(D)},B)}))};function Wt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function gT(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function kd(e){let t,r,n;e.length!==2?(t=Wt,r=(u,s)=>Wt(e(u),s),n=(u,s)=>e(u)-s):(t=e===Wt||e===gT?e:bT,r=e,n=e);function i(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<0?c=l+1:f=l}while(c<f)}return c}function a(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<=0?c=l+1:f=l}while(c<f)}return c}function o(u,s,c=0,f=u.length){const l=i(u,s,c,f-1);return l>c&&n(u[l-1],s)>-n(u[l],s)?l-1:l}return{left:i,center:o,right:a}}function bT(){return 0}function Ox(e){return e===null?NaN:+e}function*xT(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const wT=kd(Wt),Ti=wT.right;kd(Ox).center;class om extends Map{constructor(t,r=AT){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(um(this,t))}has(t){return super.has(um(this,t))}set(t,r){return super.set(OT(this,t),r)}delete(t){return super.delete(_T(this,t))}}function um({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function OT({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function _T({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function AT(e){return e!==null&&typeof e=="object"?e.valueOf():e}function ST(e=Wt){if(e===Wt)return _x;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function _x(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const PT=Math.sqrt(50),TT=Math.sqrt(10),jT=Math.sqrt(2);function la(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=PT?10:a>=TT?5:a>=jT?2:1;let u,s,c;return i<0?(c=Math.pow(10,-i)/o,u=Math.round(e*c),s=Math.round(t*c),u/c<e&&++u,s/c>t&&--s,c=-c):(c=Math.pow(10,i)*o,u=Math.round(e/c),s=Math.round(t/c),u*c<e&&++u,s*c>t&&--s),s<u&&.5<=r&&r<2?la(e,t,r*2):[u,s,c]}function uf(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?la(t,e,r):la(e,t,r);if(!(a>=i))return[];const u=a-i+1,s=new Array(u);if(n)if(o<0)for(let c=0;c<u;++c)s[c]=(a-c)/-o;else for(let c=0;c<u;++c)s[c]=(a-c)*o;else if(o<0)for(let c=0;c<u;++c)s[c]=(i+c)/-o;else for(let c=0;c<u;++c)s[c]=(i+c)*o;return s}function sf(e,t,r){return t=+t,e=+e,r=+r,la(e,t,r)[2]}function cf(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?sf(t,e,r):sf(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function sm(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function cm(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function Ax(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?_x:ST(i);n>r;){if(n-r>600){const s=n-r+1,c=t-r+1,f=Math.log(s),l=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*l*(s-l)/s)*(c-s/2<0?-1:1),p=Math.max(r,Math.floor(t-c*l/s+d)),y=Math.min(n,Math.floor(t+(s-c)*l/s+d));Ax(e,t,p,y,i)}const a=e[t];let o=r,u=n;for(Pn(e,r,t),i(e[n],a)>0&&Pn(e,r,n);o<u;){for(Pn(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?Pn(e,r,u):(++u,Pn(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function Pn(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function ET(e,t,r){if(e=Float64Array.from(xT(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return cm(e);if(t>=1)return sm(e);var n,i=(n-1)*t,a=Math.floor(i),o=sm(Ax(e,a).subarray(0,a+1)),u=cm(e.subarray(a+1));return o+(u-o)*(i-a)}}function $T(e,t,r=Ox){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function kT(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function at(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function It(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}
vendor: 11,395 bytes, line 12
12const lf=Symbol("implicit");function Md(){var e=new om,t=[],r=[],n=lf;function i(a){let o=e.get(a);if(o===void 0){if(n!==lf)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new om;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Md(t,r).unknown(n)},at.apply(i,arguments),i}function Jn(){var e=Md().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,s=0,c=0,f=.5;delete e.unknown;function l(){var d=t().length,p=i<n,y=p?i:n,v=p?n:i;a=(v-y)/Math.max(1,d-s+c*2),u&&(a=Math.floor(a)),y+=(v-y-a*(d-s))*f,o=a*(1-s),u&&(y=Math.round(y),o=Math.round(o));var h=kT(d).map(function(g){return y+a*g});return r(p?h.reverse():h)}return e.domain=function(d){return arguments.length?(t(d),l()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,l()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,u=!0,l()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(u=!!d,l()):u},e.padding=function(d){return arguments.length?(s=Math.min(1,c=+d),l()):s},e.paddingInner=function(d){return arguments.length?(s=Math.min(1,d),l()):s},e.paddingOuter=function(d){return arguments.length?(c=+d,l()):c},e.align=function(d){return arguments.length?(f=Math.max(0,Math.min(1,d)),l()):f},e.copy=function(){return Jn(t(),[n,i]).round(u).paddingInner(s).paddingOuter(c).align(f)},at.apply(l(),arguments)}function Sx(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Sx(t())},e}function Ln(){return Sx(Jn.apply(null,arguments).paddingInner(1))}function Cd(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Px(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function ji(){}var Zn=.7,fa=1/Zn,zr="\\s*([+-]?\\d+)\\s*",Qn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",yt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",MT=/^#([0-9a-f]{3,8})$/,CT=new RegExp(`^rgb\\(${zr},${zr},${zr}\\)$`),IT=new RegExp(`^rgb\\(${yt},${yt},${yt}\\)$`),RT=new RegExp(`^rgba\\(${zr},${zr},${zr},${Qn}\\)$`),NT=new RegExp(`^rgba\\(${yt},${yt},${yt},${Qn}\\)$`),DT=new RegExp(`^hsl\\(${Qn},${yt},${yt}\\)$`),LT=new RegExp(`^hsla\\(${Qn},${yt},${yt},${Qn}\\)$`),lm={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Cd(ji,ei,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:fm,formatHex:fm,formatHex8:qT,formatHsl:BT,formatRgb:dm,toString:dm});function fm(){return this.rgb().formatHex()}function qT(){return this.rgb().formatHex8()}function BT(){return Tx(this).formatHsl()}function dm(){return this.rgb().formatRgb()}function ei(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=MT.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?hm(t):r===3?new Fe(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?qi(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?qi(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=CT.exec(e))?new Fe(t[1],t[2],t[3],1):(t=IT.exec(e))?new Fe(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=RT.exec(e))?qi(t[1],t[2],t[3],t[4]):(t=NT.exec(e))?qi(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=DT.exec(e))?ym(t[1],t[2]/100,t[3]/100,1):(t=LT.exec(e))?ym(t[1],t[2]/100,t[3]/100,t[4]):lm.hasOwnProperty(e)?hm(lm[e]):e==="transparent"?new Fe(NaN,NaN,NaN,0):null}function hm(e){return new Fe(e>>16&255,e>>8&255,e&255,1)}function qi(e,t,r,n){return n<=0&&(e=t=r=NaN),new Fe(e,t,r,n)}function FT(e){return e instanceof ji||(e=ei(e)),e?(e=e.rgb(),new Fe(e.r,e.g,e.b,e.opacity)):new Fe}function ff(e,t,r,n){return arguments.length===1?FT(e):new Fe(e,t,r,n??1)}function Fe(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Cd(Fe,ff,Px(ji,{brighter(e){return e=e==null?fa:Math.pow(fa,e),new Fe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Zn:Math.pow(Zn,e),new Fe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Fe(hr(this.r),hr(this.g),hr(this.b),da(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:pm,formatHex:pm,formatHex8:zT,formatRgb:vm,toString:vm}));function pm(){return`#${cr(this.r)}${cr(this.g)}${cr(this.b)}`}function zT(){return`#${cr(this.r)}${cr(this.g)}${cr(this.b)}${cr((isNaN(this.opacity)?1:this.opacity)*255)}`}function vm(){const e=da(this.opacity);return`${e===1?"rgb(":"rgba("}${hr(this.r)}, ${hr(this.g)}, ${hr(this.b)}${e===1?")":`, ${e})`}`}function da(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function hr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function cr(e){return e=hr(e),(e<16?"0":"")+e.toString(16)}function ym(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ct(e,t,r,n)}function Tx(e){if(e instanceof ct)return new ct(e.h,e.s,e.l,e.opacity);if(e instanceof ji||(e=ei(e)),!e)return new ct;if(e instanceof ct)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,s=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new ct(o,u,s,e.opacity)}function WT(e,t,r,n){return arguments.length===1?Tx(e):new ct(e,t,r,n??1)}function ct(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Cd(ct,WT,Px(ji,{brighter(e){return e=e==null?fa:Math.pow(fa,e),new ct(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Zn:Math.pow(Zn,e),new ct(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Fe(Uc(e>=240?e-240:e+120,i,n),Uc(e,i,n),Uc(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new ct(mm(this.h),Bi(this.s),Bi(this.l),da(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=da(this.opacity);return`${e===1?"hsl(":"hsla("}${mm(this.h)}, ${Bi(this.s)*100}%, ${Bi(this.l)*100}%${e===1?")":`, ${e})`}`}}));function mm(e){return e=(e||0)%360,e<0?e+360:e}function Bi(e){return Math.max(0,Math.min(1,e||0))}function Uc(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Id=e=>()=>e;function UT(e,t){return function(r){return e+r*t}}function KT(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function HT(e){return(e=+e)==1?jx:function(t,r){return r-t?KT(t,r,e):Id(isNaN(t)?r:t)}}function jx(e,t){var r=t-e;return r?UT(e,r):Id(isNaN(e)?t:e)}const gm=(function e(t){var r=HT(t);function n(i,a){var o=r((i=ff(i)).r,(a=ff(a)).r),u=r(i.g,a.g),s=r(i.b,a.b),c=jx(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=s(f),i.opacity=c(f),i+""}}return n.gamma=e,n})(1);function GT(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function VT(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function XT(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=wn(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function YT(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function ha(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function JT(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=wn(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var df=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Kc=new RegExp(df.source,"g");function ZT(e){return function(){return e}}function QT(e){return function(t){return e(t)+""}}function ej(e,t){var r=df.lastIndex=Kc.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=df.exec(e))&&(i=Kc.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,s.push({i:o,x:ha(n,i)})),r=Kc.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?QT(s[0].x):ZT(t):(t=s.length,function(c){for(var f=0,l;f<t;++f)u[(l=s[f]).i]=l.x(c);return u.join("")})}function wn(e,t){var r=typeof t,n;return t==null||r==="boolean"?Id(t):(r==="number"?ha:r==="string"?(n=ei(t))?(t=n,gm):ej:t instanceof ei?gm:t instanceof Date?YT:VT(t)?GT:Array.isArray(t)?XT:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?JT:ha)(e,t)}function Rd(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}
vendor: 4,105 bytes, line 12
12function tj(e,t){t===void 0&&(t=e,e=wn);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function rj(e){return function(){return e}}function pa(e){return+e}var bm=[0,1];function Le(e){return e}function hf(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:rj(isNaN(t)?NaN:.5)}function nj(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function ij(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=hf(i,n),a=r(o,a)):(n=hf(n,i),a=r(a,o)),function(u){return a(n(u))}}function aj(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=hf(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var s=Ti(e,u,1,n)-1;return a[s](i[s](u))}}function Ei(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ho(){var e=bm,t=bm,r=wn,n,i,a,o=Le,u,s,c;function f(){var d=Math.min(e.length,t.length);return o!==Le&&(o=nj(e[0],e[d-1])),u=d>2?aj:ij,s=c=null,l}function l(d){return d==null||isNaN(d=+d)?a:(s||(s=u(e.map(n),t,r)))(n(o(d)))}return l.invert=function(d){return o(i((c||(c=u(t,e.map(n),ha)))(d)))},l.domain=function(d){return arguments.length?(e=Array.from(d,pa),f()):e.slice()},l.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},l.rangeRound=function(d){return t=Array.from(d),r=Rd,f()},l.clamp=function(d){return arguments.length?(o=d?!0:Le,f()):o!==Le},l.interpolate=function(d){return arguments.length?(r=d,f()):r},l.unknown=function(d){return arguments.length?(a=d,l):a},function(d,p){return n=d,i=p,f()}}function Nd(){return ho()(Le,Le)}function oj(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function va(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Xr(e){return e=va(Math.abs(e)),e?e[1]:NaN}function uj(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>n&&(u=Math.max(1,n-s)),a.push(r.substring(i-=u,i+u)),!((s+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function sj(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var cj=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ti(e){if(!(t=cj.exec(e)))throw new Error("invalid format: "+e);var t;return new Dd({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}ti.prototype=Dd.prototype;function Dd(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Dd.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function lj(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var ya;function fj(e,t){var r=va(e,t);if(!r)return ya=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(ya=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+va(e,Math.max(0,t+a-1))[0]}function xm(e,t){var r=va(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const wm={"%":(e,t)=>
vendor: 5,688 bytes, line 12
12(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:oj,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>xm(e*100,t),r:xm,s:fj,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Om(e){return e}var _m=Array.prototype.map,Am=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function dj(e){var t=e.grouping===void 0||e.thousands===void 0?Om:uj(_m.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Om:sj(_m.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(l,d){l=ti(l);var p=l.fill,y=l.align,v=l.sign,h=l.symbol,g=l.zero,x=l.width,w=l.comma,O=l.precision,m=l.trim,b=l.type;b==="n"?(w=!0,b="g"):wm[b]||(O===void 0&&(O=12),m=!0,b="g"),(g||p==="0"&&y==="=")&&(g=!0,p="0",y="=");var _=(d&&d.prefix!==void 0?d.prefix:"")+(h==="$"?r:h==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():""),A=(h==="$"?n:/[%p]/.test(b)?o:"")+(d&&d.suffix!==void 0?d.suffix:""),P=wm[b],E=/[defgprs%]/.test(b);O=O===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function j(T){var $=_,M=A,k,R,D;if(b==="c")M=P(T)+M,T="";else{T=+T;var B=T<0||1/T<0;if(T=isNaN(T)?s:P(Math.abs(T),O),m&&(T=lj(T)),B&&+T==0&&v!=="+"&&(B=!1),$=(B?v==="("?v:u:v==="-"||v==="("?"":v)+$,M=(b==="s"&&!isNaN(T)&&ya!==void 0?Am[8+ya/3]:"")+M+(B&&v==="("?")":""),E){for(k=-1,R=T.length;++k<R;)if(D=T.charCodeAt(k),48>D||D>57){M=(D===46?i+T.slice(k+1):T.slice(k))+M,T=T.slice(0,k);break}}}w&&!g&&(T=t(T,1/0));var F=$.length+T.length+M.length,K=F<x?new Array(x-F+1).join(p):"";switch(w&&g&&(T=t(K+T,K.length?x-M.length:1/0),K=""),y){case"<":T=$+T+M+K;break;case"=":T=$+K+T+M;break;case"^":T=K.slice(0,F=K.length>>1)+$+T+M+K.slice(F);break;default:T=K+$+T+M;break}return a(T)}return j.toString=function(){return l+""},j}function f(l,d){var p=Math.max(-8,Math.min(8,Math.floor(Xr(d)/3)))*3,y=Math.pow(10,-p),v=c((l=ti(l),l.type="f",l),{suffix:Am[8+p/3]});return function(h){return v(y*h)}}return{format:c,formatPrefix:f}}var Fi,Ld,Ex;hj({thousands:",",grouping:[3],currency:["$",""]});function hj(e){return Fi=dj(e),Ld=Fi.format,Ex=Fi.formatPrefix,Fi}function pj(e){return Math.max(0,-Xr(Math.abs(e)))}function vj(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Xr(t)/3)))*3-Xr(Math.abs(e)))}function yj(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Xr(t)-Xr(e))+1}function $x(e,t,r,n){var i=cf(e,t,r),a;switch(n=ti(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=vj(i,o))&&(n.precision=a),Ex(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=yj(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=pj(i))&&(n.precision=a-(n.type==="%")*2);break}}return Ld(n)}function Gt(e){var t=e.domain;return e.ticks=function(r){var n=t();return uf(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return $x(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],s,c,f=10;for(u<o&&(c=o,o=u,u=c,c=i,i=a,a=c);f-- >0;){if(c=sf(o,u,r),c===s)return n[i]=o,n[a]=u,t(n);if(c>0)o=Math.floor(o/c)*c,u=Math.ceil(u/c)*c;else if(c<0)o=Math.ceil(o*c)/c,u=Math.floor(u*c)/c;else break;s=c}return e},e}function ma(){var e=Nd();return e.copy=function(){return Ei(e,ma())},at.apply(e,arguments),Gt(e)}function kx(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,pa),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return kx(e).unknown(t)},e=arguments.length?Array.from(e,pa):[0,1],Gt(r)}function Mx(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function Sm(e){return Math.log(e)}function Pm(e){return Math.exp(e)}function mj(e){return-Math.log(-e)}function gj(e){return-Math.exp(-e)}function bj(e){return isFinite(e)?+("1e"+e):e<0?0:e}function xj(e){return e===10?bj:e===Math.E?Math.exp:t=>Math.pow(e,t)}function wj(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Tm(e){return(t,r)=>-e(-t,r)}function qd(e){const t=e(Sm,Pm),r=t.domain;let n=10,i,a;function o(){return i=wj(n),a=xj(n),r()[0]<0?(i=Tm(i),a=Tm(a),e(mj,gj)):e(Sm,Pm),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const s=r();let c=s[0],f=s[s.length-1];const l=f<c;l&&([c,f]=[f,c]);let d=i(c),p=i(f),y,v;const h=u==null?10:+u;let g=[];if(!(n%1)&&p-d<h){if(d=Math.floor(d),p=Math.ceil(p),c>0){for(;d<=p;++d)for(y=1;y<n;++y)if(v=d<0?y/a(-d):y*a(d),!(v<c)){if(v>f)break;g.push(v)}}else for(;d<=p;++d)for(y=n-1;y>=1;--y)if(v=d>0?y/a(-d):y*a(d),!(v<c)){if(v>f)break;g.push(v)}g.length*2<h&&(g=uf(c,f,h))}else g=uf(d,p,Math.min(p-d,h)).map(a);return l?g.reverse():g},t.tickFormat=(u,s)=>{if(u==null&&(u=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=ti(s)).precision==null&&(s.trim=!0),s=Ld(s)),u===1/0)return s;const c=Math.max(1,n*u/t.ticks().length);return f=>{let l=f/a(Math.round(i(f)));return l*n<n-.5&&(l*=n),l<=c?s(f):""}},t.nice=()=>r(Mx(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function Cx(){const e=qd(ho()).domain([1,10]);return e.copy=()=>Ei(e,Cx()).base(e.base()),at.apply(e,arguments),e}
12function jm(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Em(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Bd(e){var t=1,r=e(jm(t),Em(t));return r.constant=function(n){return arguments.length?e(jm(t=+n),Em(t)):t},Gt(r)}function Ix(){var e=Bd(ho());return e.copy=function(){return Ei(e,Ix()).constant(e.constant())},at.apply(e,arguments)}function $m(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Oj(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function _j(e){return e<0?-e*e:e*e}function Fd(e){var t=e(Le,Le),r=1;function n(){return r===1?e(Le,Le):r===.5?e(Oj,_j):e($m(r),$m(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Gt(t)}function zd(){var e=Fd(ho());return e.copy=function(){return Ei(e,zd()).exponent(e.exponent())},at.apply(e,arguments),e}function Aj(){return zd.apply(null,arguments).exponent(.5)}function km(e){return Math.sign(e)*e*e}function Sj(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Rx(){var e=Nd(),t=[0,1],r=!1,n;function i(a){var o=Sj(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(km(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,pa)).map(km)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Rx(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},at.apply(i,arguments),Gt(i)}function Nx(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o<u;)r[o-1]=$T(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Ti(r,o)]}return a.invertExtent=function(o){var u=t.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:e[0],u<r.length?r[u]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let u of o)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(Wt),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return Nx().domain(e).range(t).unknown(n)},at.apply(a,arguments)}function Dx(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[Ti(n,s,0,r)]:a}function u(){var s=-1;for(n=new Array(r);++s<r;)n[s]=((s+1)*t-(s-r)*e)/(r+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,u()):[e,t]},o.range=function(s){return arguments.length?(r=(i=Array.from(s)).length-1,u()):i.slice()},o.invertExtent=function(s){var c=i.indexOf(s);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return n.slice()},o.copy=function(){return Dx().domain([e,t]).range(i).unknown(a)},at.apply(Gt(o),arguments)}function Lx(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Ti(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Lx().domain(e).range(t).unknown(r)},at.apply(i,arguments)}const Hc=new Date,Gc=new Date;function Te(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const s=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return s;let c;do s.push(c=new Date(+a)),t(a,u),e(a);while(c<a&&a<o);return s},i.filter=a=>Te(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Hc.setTime(+a),Gc.setTime(+o),e(Hc),e(Gc),Math.floor(r(Hc,Gc))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const ga=Te(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ga.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Te(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ga);ga.range;const At=1e3,nt=At*60,St=nt*60,Et=St*24,Wd=Et*7,Mm=Et*30,Vc=Et*365,lr=Te(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*At)},(e,t)=>(t-e)/At,e=>e.getUTCSeconds());lr.range;const Ud=Te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*At)},(e,t)=>{e.setTime(+e+t*nt)},(e,t)=>(t-e)/nt,e=>e.getMinutes());Ud.range;const Kd=Te(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*nt)},(e,t)=>(t-e)/nt,e=>e.getUTCMinutes());Kd.range;
vendor: 4,778 bytes, line 12
12const Hd=Te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*At-e.getMinutes()*nt)},(e,t)=>{e.setTime(+e+t*St)},(e,t)=>(t-e)/St,e=>e.getHours());Hd.range;const Gd=Te(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*St)},(e,t)=>(t-e)/St,e=>e.getUTCHours());Gd.range;const $i=Te(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*nt)/Et,e=>e.getDate()-1);$i.range;const po=Te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Et,e=>e.getUTCDate()-1);po.range;const qx=Te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Et,e=>Math.floor(e/Et));qx.range;function Pr(e){return Te(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*nt)/Wd)}const vo=Pr(0),ba=Pr(1),Pj=Pr(2),Tj=Pr(3),Yr=Pr(4),jj=Pr(5),Ej=Pr(6);vo.range;ba.range;Pj.range;Tj.range;Yr.range;jj.range;Ej.range;function Tr(e){return Te(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Wd)}const yo=Tr(0),xa=Tr(1),$j=Tr(2),kj=Tr(3),Jr=Tr(4),Mj=Tr(5),Cj=Tr(6);yo.range;xa.range;$j.range;kj.range;Jr.range;Mj.range;Cj.range;const Vd=Te(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Vd.range;const Xd=Te(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Xd.range;const $t=Te(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());$t.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Te(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});$t.range;const kt=Te(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());kt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Te(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});kt.range;function Bx(e,t,r,n,i,a){const o=[[lr,1,At],[lr,5,5*At],[lr,15,15*At],[lr,30,30*At],[a,1,nt],[a,5,5*nt],[a,15,15*nt],[a,30,30*nt],[i,1,St],[i,3,3*St],[i,6,6*St],[i,12,12*St],[n,1,Et],[n,2,2*Et],[r,1,Wd],[t,1,Mm],[t,3,3*Mm],[e,1,Vc]];function u(c,f,l){const d=f<c;d&&([c,f]=[f,c]);const p=l&&typeof l.range=="function"?l:s(c,f,l),y=p?p.range(c,+f+1):[];return d?y.reverse():y}function s(c,f,l){const d=Math.abs(f-c)/l,p=kd(([,,h])=>h).right(o,d);if(p===o.length)return e.every(cf(c/Vc,f/Vc,l));if(p===0)return ga.every(Math.max(cf(c,f,l),1));const[y,v]=o[d/o[p-1][2]<o[p][2]/d?p-1:p];return y.every(v)}return[u,s]}const[Ij,Rj]=Bx(kt,Xd,yo,qx,Gd,Kd),[Nj,Dj]=Bx($t,Vd,vo,$i,Hd,Ud);function Xc(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Yc(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Tn(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function Lj(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,s=e.shortMonths,c=jn(i),f=En(i),l=jn(a),d=En(a),p=jn(o),y=En(o),v=jn(u),h=En(u),g=jn(s),x=En(s),w={a:D,A:B,b:F,B:K,c:null,d:Lm,e:Lm,f:uE,g:mE,G:bE,H:iE,I:aE,j:oE,L:Fx,m:sE,M:cE,p:X,q:W,Q:Fm,s:zm,S:lE,u:fE,U:dE,V:hE,w:pE,W:vE,x:null,X:null,y:yE,Y:gE,Z:xE,"%":Bm},O={a:Y,A:de,b:ge,B:We,c:null,d:qm,e:qm,f:AE,g:IE,G:NE,H:wE,I:OE,j:_E,L:Wx,m:SE,M:PE,p:Jt,q:qe,Q:Fm,s:zm,S:TE,u:jE,U:EE,V:$E,w:kE,W:ME,x:null,X:null,y:CE,Y:RE,Z:DE,"%":Bm},m={a:E,A:j,b:T,B:$,c:M,d:Nm,e:Nm,f:eE,g:Rm,G:Im,H:Dm,I:Dm,j:Yj,L:Qj,m:Xj,M:Jj,p:P,q:Vj,Q:rE,s:nE,S:Zj,u:Wj,U:Uj,V:Kj,w:zj,W:Hj,x:k,X:R,y:Rm,Y:Im,Z:Gj,"%":tE};w.x=b(r,w),w.X=b(n,w),w.c=b(t,w),O.x=b(r,O),O.X=b(n,O),O.c=b(t,O);function b(z,Q){return function(ee){var L=[],ve=-1,re=0,we=z.length,Oe,Be,Nt;for(ee instanceof Date||(ee=new Date(+ee));++ve<we;)z.charCodeAt(ve)===37&&(L.push(z.slice(re,ve)),(Be=Cm[Oe=z.charAt(++ve)])!=null?Oe=z.charAt(++ve):Be=Oe==="e"?" ":"0",(Nt=Q[Oe])&&(Oe=Nt(ee,Be)),L.push(Oe),re=ve+1);return L.push(z.slice(re,ve)),L.join("")}}function _(z,Q){return function(ee){var L=Tn(1900,void 0,1),ve=A(L,z,ee+="",0),re,we;if(ve!=ee.length)return null;if("Q"in L)return new Date(L.Q);if("s"in L)return new Date(L.s*1e3+("L"in L?L.L:0));
vendor: 7,080 bytes, line 12
12if(Q&&!("Z"in L)&&(L.Z=0),"p"in L&&(L.H=L.H%12+L.p*12),L.m===void 0&&(L.m="q"in L?L.q:0),"V"in L){if(L.V<1||L.V>53)return null;"w"in L||(L.w=1),"Z"in L?(re=Yc(Tn(L.y,0,1)),we=re.getUTCDay(),re=we>4||we===0?xa.ceil(re):xa(re),re=po.offset(re,(L.V-1)*7),L.y=re.getUTCFullYear(),L.m=re.getUTCMonth(),L.d=re.getUTCDate()+(L.w+6)%7):(re=Xc(Tn(L.y,0,1)),we=re.getDay(),re=we>4||we===0?ba.ceil(re):ba(re),re=$i.offset(re,(L.V-1)*7),L.y=re.getFullYear(),L.m=re.getMonth(),L.d=re.getDate()+(L.w+6)%7)}else("W"in L||"U"in L)&&("w"in L||(L.w="u"in L?L.u%7:"W"in L?1:0),we="Z"in L?Yc(Tn(L.y,0,1)).getUTCDay():Xc(Tn(L.y,0,1)).getDay(),L.m=0,L.d="W"in L?(L.w+6)%7+L.W*7-(we+5)%7:L.w+L.U*7-(we+6)%7);return"Z"in L?(L.H+=L.Z/100|0,L.M+=L.Z%100,Yc(L)):Xc(L)}}function A(z,Q,ee,L){for(var ve=0,re=Q.length,we=ee.length,Oe,Be;ve<re;){if(L>=we)return-1;if(Oe=Q.charCodeAt(ve++),Oe===37){if(Oe=Q.charAt(ve++),Be=m[Oe in Cm?Q.charAt(ve++):Oe],!Be||(L=Be(z,ee,L))<0)return-1}else if(Oe!=ee.charCodeAt(L++))return-1}return L}function P(z,Q,ee){var L=c.exec(Q.slice(ee));return L?(z.p=f.get(L[0].toLowerCase()),ee+L[0].length):-1}function E(z,Q,ee){var L=p.exec(Q.slice(ee));return L?(z.w=y.get(L[0].toLowerCase()),ee+L[0].length):-1}function j(z,Q,ee){var L=l.exec(Q.slice(ee));return L?(z.w=d.get(L[0].toLowerCase()),ee+L[0].length):-1}function T(z,Q,ee){var L=g.exec(Q.slice(ee));return L?(z.m=x.get(L[0].toLowerCase()),ee+L[0].length):-1}function $(z,Q,ee){var L=v.exec(Q.slice(ee));return L?(z.m=h.get(L[0].toLowerCase()),ee+L[0].length):-1}function M(z,Q,ee){return A(z,t,Q,ee)}function k(z,Q,ee){return A(z,r,Q,ee)}function R(z,Q,ee){return A(z,n,Q,ee)}function D(z){return o[z.getDay()]}function B(z){return a[z.getDay()]}function F(z){return s[z.getMonth()]}function K(z){return u[z.getMonth()]}function X(z){return i[+(z.getHours()>=12)]}function W(z){return 1+~~(z.getMonth()/3)}function Y(z){return o[z.getUTCDay()]}function de(z){return a[z.getUTCDay()]}function ge(z){return s[z.getUTCMonth()]}function We(z){return u[z.getUTCMonth()]}function Jt(z){return i[+(z.getUTCHours()>=12)]}function qe(z){return 1+~~(z.getUTCMonth()/3)}return{format:function(z){var Q=b(z+="",w);return Q.toString=function(){return z},Q},parse:function(z){var Q=_(z+="",!1);return Q.toString=function(){return z},Q},utcFormat:function(z){var Q=b(z+="",O);return Q.toString=function(){return z},Q},utcParse:function(z){var Q=_(z+="",!0);return Q.toString=function(){return z},Q}}}var Cm={"-":"",_:" ",0:"0"},$e=/^\s*\d+/,qj=/^%/,Bj=/[\\^$*+?|[\]().{}]/g;function ne(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function Fj(e){return e.replace(Bj,"\\$&")}function jn(e){return new RegExp("^(?:"+e.map(Fj).join("|")+")","i")}function En(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function zj(e,t,r){var n=$e.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Wj(e,t,r){var n=$e.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function Uj(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function Kj(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Hj(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Im(e,t,r){var n=$e.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Rm(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Gj(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Vj(e,t,r){var n=$e.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Xj(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Nm(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Yj(e,t,r){var n=$e.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Dm(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function Jj(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Zj(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Qj(e,t,r){var n=$e.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function eE(e,t,r){var n=$e.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function tE(e,t,r){var n=qj.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function rE(e,t,r){var n=$e.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function nE(e,t,r){var n=$e.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Lm(e,t){return ne(e.getDate(),t,2)}function iE(e,t){return ne(e.getHours(),t,2)}function aE(e,t){return ne(e.getHours()%12||12,t,2)}function oE(e,t){return ne(1+$i.count($t(e),e),t,3)}function Fx(e,t){return ne(e.getMilliseconds(),t,3)}function uE(e,t){return Fx(e,t)+"000"}function sE(e,t){return ne(e.getMonth()+1,t,2)}function cE(e,t){return ne(e.getMinutes(),t,2)}function lE(e,t){return ne(e.getSeconds(),t,2)}function fE(e){var t=e.getDay();return t===0?7:t}function dE(e,t){return ne(vo.count($t(e)-1,e),t,2)}function zx(e){var t=e.getDay();return t>=4||t===0?Yr(e):Yr.ceil(e)}function hE(e,t){return e=zx(e),ne(Yr.count($t(e),e)+($t(e).getDay()===4),t,2)}function pE(e){return e.getDay()}function vE(e,t){return ne(ba.count($t(e)-1,e),t,2)}function yE(e,t){return ne(e.getFullYear()%100,t,2)}function mE(e,t){return e=zx(e),ne(e.getFullYear()%100,t,2)}function gE(e,t){return ne(e.getFullYear()%1e4,t,4)}function bE(e,t){var r=e.getDay();return e=r>=4||r===0?Yr(e):Yr.ceil(e),ne(e.getFullYear()%1e4,t,4)}function xE(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ne(t/60|0,"0",2)+ne(t%60,"0",2)}function qm(e,t){return ne(e.getUTCDate(),t,2)}function wE(e,t){return ne(e.getUTCHours(),t,2)}function OE(e,t){return ne(e.getUTCHours()%12||12,t,2)}function _E(e,t){return ne(1+po.count(kt(e),e),t,3)}function Wx(e,t){return ne(e.getUTCMilliseconds(),t,3)}function AE(e,t){return Wx(e,t)+"000"}function SE(e,t){return ne(e.getUTCMonth()+1,t,2)}function PE(e,t){return ne(e.getUTCMinutes(),t,2)}function TE(e,t){return ne(e.getUTCSeconds(),t,2)}function jE(e){var t=e.getUTCDay();return t===0?7:t}function EE(e,t){return ne(yo.count(kt(e)-1,e),t,2)}function Ux(e){var t=e.getUTCDay();return t>=4||t===0?Jr(e):Jr.ceil(e)}function $E(e,t){return e=Ux(e),ne(Jr.count(kt(e),e)+(kt(e).getUTCDay()===4),t,2)}function kE(e){return e.getUTCDay()}function ME(e,t){return ne(xa.count(kt(e)-1,e),t,2)}function CE(e,t){return ne(e.getUTCFullYear()%100,t,2)}function IE(e,t){return e=Ux(e),ne(e.getUTCFullYear()%100,t,2)}function RE(e,t){return ne(e.getUTCFullYear()%1e4,t,4)}function NE(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Jr(e):Jr.ceil(e),ne(e.getUTCFullYear()%1e4,t,4)}function DE(){return"+0000"}function Bm(){return"%"}function Fm(e){return+e}function zm(e){return Math.floor(+e/1e3)}var kr,Kx,Hx;LE({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
12ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function LE(e){return kr=Lj(e),Kx=kr.format,kr.parse,Hx=kr.utcFormat,kr.utcParse,kr}function qE(e){return new Date(e)}function BE(e){return e instanceof Date?+e:+new Date(+e)}function Yd(e,t,r,n,i,a,o,u,s,c){var f=Nd(),l=f.invert,d=f.domain,p=c(".%L"),y=c(":%S"),v=c("%I:%M"),h=c("%I %p"),g=c("%a %d"),x=c("%b %d"),w=c("%B"),O=c("%Y");function m(b){return(s(b)<b?p:u(b)<b?y:o(b)<b?v:a(b)<b?h:n(b)<b?i(b)<b?g:x:r(b)<b?w:O)(b)}return f.invert=function(b){return new Date(l(b))},f.domain=function(b){return arguments.length?d(Array.from(b,BE)):d().map(qE)},f.ticks=function(b){var _=d();return e(_[0],_[_.length-1],b??10)},f.tickFormat=function(b,_){return _==null?m:c(_)},f.nice=function(b){var _=d();return(!b||typeof b.range!="function")&&(b=t(_[0],_[_.length-1],b??10)),b?d(Mx(_,b)):f},f.copy=function(){return Ei(f,Yd(e,t,r,n,i,a,o,u,s,c))},f}
vendor: 137,112 bytes, lines 12-58
12function FE(){return at.apply(Yd(Nj,Dj,$t,Vd,vo,$i,Hd,Ud,lr,Kx).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function zE(){return at.apply(Yd(Ij,Rj,kt,Xd,yo,po,Gd,Kd,lr,Hx).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function mo(){var e=0,t=1,r,n,i,a,o=Le,u=!1,s;function c(l){return l==null||isNaN(l=+l)?s:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}c.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(l){return arguments.length?(u=!!l,c):u},c.interpolator=function(l){return arguments.length?(o=l,c):o};function f(l){return function(d){var p,y;return arguments.length?([p,y]=d,o=l(p,y),c):[o(0),o(1)]}}return c.range=f(wn),c.rangeRound=f(Rd),c.unknown=function(l){return arguments.length?(s=l,c):s},function(l){return a=l,r=l(e),n=l(t),i=r===n?0:1/(n-r),c}}function Vt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Gx(){var e=Gt(mo()(Le));return e.copy=function(){return Vt(e,Gx())},It.apply(e,arguments)}function Vx(){var e=qd(mo()).domain([1,10]);return e.copy=function(){return Vt(e,Vx()).base(e.base())},It.apply(e,arguments)}function Xx(){var e=Bd(mo());return e.copy=function(){return Vt(e,Xx()).constant(e.constant())},It.apply(e,arguments)}function Jd(){var e=Fd(mo());return e.copy=function(){return Vt(e,Jd()).exponent(e.exponent())},It.apply(e,arguments)}function WE(){return Jd.apply(null,arguments).exponent(.5)}function Yx(){var e=[],t=Le;function r(n){if(n!=null&&!isNaN(n=+n))return t((Ti(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Wt),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>ET(e,a/n))},r.copy=function(){return Yx(t).domain(e)},It.apply(r,arguments)}function go(){var e=0,t=.5,r=1,n=1,i,a,o,u,s,c=Le,f,l=!1,d;function p(v){return isNaN(v=+v)?d:(v=.5+((v=+f(v))-a)*(n*v<n*a?u:s),c(l?Math.max(0,Math.min(1,v)):v))}p.domain=function(v){return arguments.length?([e,t,r]=v,i=f(e=+e),a=f(t=+t),o=f(r=+r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(v){return arguments.length?(l=!!v,p):l},p.interpolator=function(v){return arguments.length?(c=v,p):c};function y(v){return function(h){var g,x,w;return arguments.length?([g,x,w]=h,c=tj(v,[g,x,w]),p):[c(0),c(.5),c(1)]}}return p.range=y(wn),p.rangeRound=y(Rd),p.unknown=function(v){return arguments.length?(d=v,p):d},function(v){return f=v,i=v(e),a=v(t),o=v(r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function Jx(){var e=Gt(go()(Le));return e.copy=function(){return Vt(e,Jx())},It.apply(e,arguments)}function Zx(){var e=qd(go()).domain([.1,1,10]);return e.copy=function(){return Vt(e,Zx()).base(e.base())},It.apply(e,arguments)}function Qx(){var e=Bd(go());return e.copy=function(){return Vt(e,Qx()).constant(e.constant())},It.apply(e,arguments)}function Zd(){var e=Fd(go());return e.copy=function(){return Vt(e,Zd()).exponent(e.exponent())},It.apply(e,arguments)}function UE(){return Zd.apply(null,arguments).exponent(.5)}const Wm=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Jn,scaleDiverging:Jx,scaleDivergingLog:Zx,scaleDivergingPow:Zd,scaleDivergingSqrt:UE,scaleDivergingSymlog:Qx,scaleIdentity:kx,scaleImplicit:lf,scaleLinear:ma,scaleLog:Cx,scaleOrdinal:Md,scalePoint:Ln,scalePow:zd,scaleQuantile:Nx,scaleQuantize:Dx,scaleRadial:Rx,scaleSequential:Gx,scaleSequentialLog:Vx,scaleSequentialPow:Jd,scaleSequentialQuantile:Yx,scaleSequentialSqrt:WE,scaleSequentialSymlog:Xx,scaleSqrt:Aj,scaleSymlog:Ix,scaleThreshold:Lx,scaleTime:FE,scaleUtc:zE,tickFormat:$x},Symbol.toStringTag,{value:"Module"}));var Jc,Um;function bo(){if(Um)return Jc;Um=1;var e=mn();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var u=r[a],s=n(u);if(s!=null&&(c===void 0?s===s&&!e(s):i(s,c)))var c=s,f=u}return f}return Jc=t,Jc}var Zc,Km;function ew(){if(Km)return Zc;Km=1;function e(t,r){return t>r}return Zc=e,Zc}var Qc,Hm;function KE(){if(Hm)return Qc;Hm=1;var e=bo(),t=ew(),r=xn();function n(i){return i&&i.length?e(i,r,t):void 0}return Qc=n,Qc}var HE=KE();const Bt=ue(HE);var el,Gm;function tw(){if(Gm)return el;Gm=1;function e(t,r){return t<r}return el=e,el}var tl,Vm;function GE(){if(Vm)return tl;Vm=1;var e=bo(),t=tw(),r=xn();function n(i){return i&&i.length?e(i,r,t):void 0}return tl=n,tl}var VE=GE();const xo=ue(VE);var rl,Xm;function XE(){if(Xm)return rl;Xm=1;var e=pd(),t=wt(),r=lx(),n=ze();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return rl=i,rl}var nl,Ym;function YE(){if(Ym)return nl;Ym=1;var e=sx(),t=XE();function r(n,i){return e(t(n,i),1)}return nl=r,nl}var JE=YE();const ZE=ue(JE);var il,Jm;function QE(){if(Jm)return il;Jm=1;var e=Td();function t(r,n){return e(r,n)}return il=t,il}var e$=QE();const xr=ue(e$);var On=1e9,t$={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},eh,pe=!0,it="[DecimalError] ",pr=it+"Invalid argument: ",Qd=it+"Exponent out of range: ",_n=Math.floor,ar=Math.pow,r$=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ge,je=1e7,he=7,rw=9007199254740991,wa=_n(rw/he),U={};U.absoluteValue=U.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};U.comparedTo=U.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};U.decimalPlaces=U.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*he;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};U.dividedBy=U.div=function(e){return jt(this,new this.constructor(e))};U.dividedToIntegerBy=U.idiv=function(e){var t=this,r=t.constructor;return se(jt(t,new r(e),0,1),r.precision)};U.equals=U.eq=function(e){return!this.cmp(e)};U.exponent=function(){return xe(this)};U.greaterThan=U.gt=function(e){return this.cmp(e)>0};U.greaterThanOrEqualTo=U.gte=function(e){return this.cmp(e)>=0};U.isInteger=U.isint=function(){return this.e>this.d.length-2};U.isNegative=U.isneg=function(){return this.s<0};U.isPositive=U.ispos=function(){return this.s>0};U.isZero=function(){return this.s===0};U.lessThan=U.lt=function(e){return this.cmp(e)<0};U.lessThanOrEqualTo=U.lte=function(e){return this.cmp(e)<1};U.logarithm=U.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Ge))throw Error(it+"NaN");if(r.s<1)throw Error(it+(r.s?"NaN":"-Infinity"));return r.eq(Ge)?new n(0):(pe=!1,t=jt(ri(r,a),ri(e,a),a),pe=!0,se(t,i))};U.minus=U.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?aw(t,e):nw(t,(e.s=-e.s,e))};U.modulo=U.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(it+"NaN");return r.s?(pe=!1,t=jt(r,e,0,1).times(e),pe=!0,r.minus(t)):se(new n(r),i)};U.naturalExponential=U.exp=function(){return iw(this)};U.naturalLogarithm=U.ln=function(){return ri(this)};U.negated=U.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};U.plus=U.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?nw(t,e):aw(t,(e.s=-e.s,e))};U.precision=U.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(pr+e);if(t=xe(i)+1,n=i.d.length-1,r=n*he+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};U.squareRoot=U.sqrt=function(){var e,t,r,n,i,a,o,u=this,s=u.constructor;if(u.s<1){if(!u.s)return new s(0);throw Error(it+"NaN")}for(e=xe(u),pe=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=pt(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=_n((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new s(t)):n=new s(i.toString()),r=s.precision,i=o=r+3;;)if(a=n,n=a.plus(jt(u,a,o+2)).times(.5),pt(a.d).slice(0,o)===(t=pt(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(se(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return pe=!0,se(n,r)};U.times=U.mul=function(e){var t,r,n,i,a,o,u,s,c,f=this,l=f.constructor,d=f.d,p=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,s=d.length,c=p.length,s<c&&(a=d,d=p,p=a,o=s,s=c,c=o),a=[],o=s+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=s+n;i>n;)u=a[i]+p[n]*d[i-n-1]+t,a[i--]=u%je|0,t=u/je|0;a[i]=(a[i]+t)%je|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,pe?se(e,l.precision):e};U.toDecimalPlaces=U.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(bt(e,0,On),t===void 0?t=n.rounding:bt(t,0,8),se(r,e+xe(r)+1,t))};U.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=wr(n,!0):(bt(e,0,On),t===void 0?t=i.rounding:bt(t,0,8),n=se(new i(n),e+1,t),r=wr(n,!0,e+1)),r};U.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?wr(i):(bt(e,0,On),t===void 0?t=a.rounding:bt(t,0,8),n=se(new a(i),e+xe(i)+1,t),r=wr(n.abs(),!1,e+xe(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};U.toInteger=U.toint=function(){var e=this,t=e.constructor;return se(new t(e),xe(e)+1,t.rounding)};U.toNumber=function(){return+this};U.toPower=U.pow=function(e){var t,r,n,i,a,o,u=this,s=u.constructor,c=12,f=+(e=new s(e));if(!e.s)return new s(Ge);if(u=new s(u),!u.s){if(e.s<1)throw Error(it+"Infinity");return u}if(u.eq(Ge))return u;if(n=s.precision,e.eq(Ge))return se(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=rw){for(i=new s(Ge),t=Math.ceil(n/he+4),pe=!1;r%2&&(i=i.times(u),Qm(i.d,t)),r=_n(r/2),r!==0;)u=u.times(u),Qm(u.d,t);return pe=!0,e.s<0?new s(Ge).div(i):se(i,n)}}else if(a<0)throw Error(it+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,pe=!1,i=e.times(ri(u,n+c)),pe=!0,i=iw(i),i.s=a,i};U.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=xe(i),n=wr(i,r<=a.toExpNeg||r>=a.toExpPos)):(bt(e,1,On),t===void 0?t=a.rounding:bt(t,0,8),i=se(new a(i),e,t),r=xe(i),n=wr(i,e<=r||r<=a.toExpNeg,e)),n};U.toSignificantDigits=U.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(bt(e,1,On),t===void 0?t=n.rounding:bt(t,0,8)),se(new n(r),e,t)};U.toString=U.valueOf=U.val=U.toJSON=U[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=xe(e),r=e.constructor;return wr(e,t<=r.toExpNeg||t>=r.toExpPos)};function nw(e,t){var r,n,i,a,o,u,s,c,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),pe?se(t,l):t;if(s=e.d,c=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i,a){for(a<0?(n=s,a=-a,u=c.length):(n=c,i=o,u=s.length),o=Math.ceil(l/he),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=s.length,a=c.length,u-a<0&&(a=u,n=c,c=s,s=n),r=0;a;)r=(s[--a]=s[a]+c[a]+r)/je|0,s[a]%=je;for(r&&(s.unshift(r),++i),u=s.length;s[--u]==0;)s.pop();return t.d=s,t.e=i,pe?se(t,l):t}function bt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(pr+e)}function pt(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=he-n.length,r&&(a+=Lt(r)),a+=n;o=e[t],n=o+"",r=he-n.length,r&&(a+=Lt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var jt=(function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%je|0,o=a/je|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,s;if(a!=o)s=a>o?1:-1;else for(u=s=0;u<a;u++)if(n[u]!=i[u]){s=n[u]>i[u]?1:-1;break}return s}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*je+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,s,c,f,l,d,p,y,v,h,g,x,w,O,m,b,_,A,P=n.constructor,E=n.s==i.s?1:-1,j=n.d,T=i.d;if(!n.s)return new P(n);if(!i.s)throw Error(it+"Division by zero");for(s=n.e-i.e,_=T.length,m=j.length,p=new P(E),y=p.d=[],c=0;T[c]==(j[c]||0);)++c;if(T[c]>(j[c]||0)&&--s,a==null?x=a=P.precision:o?x=a+(xe(n)-xe(i))+1:x=a,x<0)return new P(0);if(x=x/he+2|0,c=0,_==1)for(f=0,T=T[0],x++;(c<m||f)&&x--;c++)w=f*je+(j[c]||0),y[c]=w/T|0,f=w%T|0;else{for(f=je/(T[0]+1)|0,f>1&&(T=e(T,f),j=e(j,f),_=T.length,m=j.length),O=_,v=j.slice(0,_),h=v.length;h<_;)v[h++]=0;A=T.slice(),A.unshift(0),b=T[0],T[1]>=je/2&&++b;do f=0,u=t(T,v,_,h),u<0?(g=v[0],_!=h&&(g=g*je+(v[1]||0)),f=g/b|0,f>1?(f>=je&&(f=je-1),l=e(T,f),d=l.length,h=v.length,u=t(l,v,d,h),u==1&&(f--,r(l,_<d?A:T,d))):(f==0&&(u=f=1),l=T.slice()),d=l.length,d<h&&l.unshift(0),r(v,l,h),u==-1&&(h=v.length,u=t(T,v,_,h),u<1&&(f++,r(v,_<h?A:T,h))),h=v.length):u===0&&(f++,v=[0]),y[c++]=f,u&&v[0]?v[h++]=j[O]||0:(v=[j[O]],h=1);while((O++<m||v[0]!==void 0)&&x--)}return y[0]||y.shift(),p.e=s,se(p,o?a+xe(p)+1:a)}})();function iw(e,t){var r,n,i,a,o,u,s=0,c=0,f=e.constructor,l=f.precision;if(xe(e)>16)throw Error(Qd+xe(e));if(!e.s)return new f(Ge);for(pe=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(ar(2,c))/Math.LN10*2+5|0,u+=n,r=i=a=new f(Ge),f.precision=u;;){if(i=se(i.times(e),u),r=r.times(++s),o=a.plus(jt(i,r,u)),pt(o.d).slice(0,u)===pt(a.d).slice(0,u)){for(;c--;)a=se(a.times(a),u);return f.precision=l,t==null?(pe=!0,se(a,l)):a}a=o}}function xe(e){for(var t=e.e*he,r=e.d[0];r>=10;r/=10)t++;return t}function al(e,t,r){if(t>e.LN10.sd())throw pe=!0,r&&(e.precision=r),Error(it+"LN10 precision limit exceeded");return se(new e(e.LN10),t)}function Lt(e){for(var t="";e--;)t+="0";return t}function ri(e,t){var r,n,i,a,o,u,s,c,f,l=1,d=10,p=e,y=p.d,v=p.constructor,h=v.precision;if(p.s<1)throw Error(it+(p.s?"NaN":"-Infinity"));if(p.eq(Ge))return new v(0);if(t==null?(pe=!1,c=h):c=t,p.eq(10))return t==null&&(pe=!0),al(v,c);if(c+=d,v.precision=c,r=pt(y),n=r.charAt(0),a=xe(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=pt(p.d),n=r.charAt(0),l++;a=xe(p),n>1?(p=new v("0."+r),a++):p=new v(n+"."+r.slice(1))}else return s=al(v,c+2,h).times(a+""),p=ri(new v(n+"."+r.slice(1)),c-d).plus(s),v.precision=h,t==null?(pe=!0,se(p,h)):p;for(u=o=p=jt(p.minus(Ge),p.plus(Ge),c),f=se(p.times(p),c),i=3;;){if(o=se(o.times(f),c),s=u.plus(jt(o,new v(i),c)),pt(s.d).slice(0,c)===pt(u.d).slice(0,c))return u=u.times(2),a!==0&&(u=u.plus(al(v,c+2,h).times(a+""))),u=jt(u,new v(l),c),v.precision=h,t==null?(pe=!0,se(u,h)):u;u=s,i+=2}}function Zm(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=_n(r/he),e.d=[],n=(r+1)%he,r<0&&(n+=he),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=he;n<i;)e.d.push(+t.slice(n,n+=he));t=t.slice(n),n=he-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),pe&&(e.e>wa||e.e<-wa))throw Error(Qd+r)}else e.s=0,e.e=0,e.d=[0];return e}function se(e,t,r){var n,i,a,o,u,s,c,f,l=e.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=he,i=t,c=l[f=0];else{if(f=Math.ceil((n+1)/he),a=l.length,f>=a)return e;for(c=a=l[f],o=1;a>=10;a/=10)o++;n%=he,i=n-he+o}if(r!==void 0&&(a=ar(10,o-i-1),u=c/a%10|0,s=t<0||l[f+1]!==void 0||c%a,s=r<4?(u||s)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||s||r==6&&(n>0?i>0?c/ar(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return s?(a=xe(e),l.length=1,t=t-a-1,l[0]=ar(10,(he-t%he)%he),e.e=_n(-t/he)||0):(l.length=1,l[0]=e.e=e.s=0),e;if(n==0?(l.length=f,a=1,f--):(l.length=f+1,a=ar(10,he-n),l[f]=i>0?(c/ar(10,o-i)%ar(10,i)|0)*a:0),s)for(;;)if(f==0){(l[0]+=a)==je&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=je)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(pe&&(e.e>wa||e.e<-wa))throw Error(Qd+xe(e));return e}function aw(e,t){var r,n,i,a,o,u,s,c,f,l,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),pe?se(t,p):t;if(s=e.d,l=t.d,n=t.e,c=e.e,s=s.slice(),o=c-n,o){for(f=o<0,f?(r=s,o=-o,u=l.length):(r=l,n=c,u=s.length),i=Math.max(Math.ceil(p/he),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=s.length,u=l.length,f=i<u,f&&(u=i),i=0;i<u;i++)if(s[i]!=l[i]){f=s[i]<l[i];break}o=0}for(f&&(r=s,s=l,l=r,t.s=-t.s),u=s.length,i=l.length-u;i>0;--i)s[u++]=0;for(i=l.length;i>o;){if(s[--i]<l[i]){for(a=i;a&&s[--a]===0;)s[a]=je-1;--s[a],s[i]+=je}s[i]-=l[i]}for(;s[--u]===0;)s.pop();for(;s[0]===0;s.shift())--n;return s[0]?(t.d=s,t.e=n,pe?se(t,p):t):new d(0)}function wr(e,t,r){var n,i=xe(e),a=pt(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Lt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Lt(-i-1)+a,r&&(n=r-o)>0&&(a+=Lt(n))):i>=o?(a+=Lt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Lt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Lt(n))),e.s<0?"-"+a:a}function Qm(e,t){if(e.length>t)return e.length=t,!0}function ow(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(pr+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return Zm(o,a.toString())}else if(typeof a!="string")throw Error(pr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,r$.test(a))Zm(o,a);else throw Error(pr+a)}if(i.prototype=U,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=ow,i.config=i.set=n$,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function n$(e){if(!e||typeof e!="object")throw Error(it+"Object expected");var t,r,n,i=["precision",1,On,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(_n(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(pr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(pr+r+": "+n);return this}var eh=ow(t$);Ge=new eh(1);const oe=eh;function i$(e){return s$(e)||u$(e)||o$(e)||a$()}function a$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
13In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o$(e,t){if(e){if(typeof e=="string")return pf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pf(e,t)}}function u$(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function s$(e){if(Array.isArray(e))return pf(e)}function pf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c$=function(t){return t},uw={},sw=function(t){return t===uw},eg=function(t){return function r(){return arguments.length===0||arguments.length===1&&sw(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},l$=function e(t,r){return t===1?r:eg(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(u){return u!==uw}).length;return o>=t?r.apply(void 0,i):e(t-o,eg(function(){for(var u=arguments.length,s=new Array(u),c=0;c<u;c++)s[c]=arguments[c];var f=i.map(function(l){return sw(l)?s.shift():l});return r.apply(void 0,i$(f).concat(s))}))})},wo=function(t){return l$(t.length,t)},vf=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},f$=wo(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),d$=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return c$;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,s){return s(u)},a.apply(void 0,arguments))}},yf=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},cw=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(u,s){return u===r[s]})||(r=a,n=t.apply(void 0,a)),n}};function h$(e){var t;return e===0?t=1:t=Math.floor(new oe(e).abs().log(10).toNumber())+1,t}function p$(e,t,r){for(var n=new oe(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var v$=wo(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),y$=wo(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),m$=wo(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Oo={rangeStep:p$,getDigitCount:h$,interpolateNumber:v$,uninterpolateNumber:y$,uninterpolateTruncation:m$};function mf(e){return x$(e)||b$(e)||lw(e)||g$()}function g$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
14In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b$(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function x$(e){if(Array.isArray(e))return gf(e)}function ni(e,t){return _$(e)||O$(e,t)||lw(e,t)||w$()}function w$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
15In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lw(e,t){if(e){if(typeof e=="string")return gf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gf(e,t)}}function gf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O$(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(t&&r.length===t));n=!0);}catch(s){i=!0,a=s}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function _$(e){if(Array.isArray(e))return e}function fw(e){var t=ni(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function dw(e,t,r){if(e.lte(0))return new oe(0);var n=Oo.getDigitCount(e.toNumber()),i=new oe(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new oe(Math.ceil(a.div(o).toNumber())).add(r).mul(o),s=u.mul(i);return t?s:new oe(Math.ceil(s))}function A$(e,t,r){var n=1,i=new oe(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new oe(10).pow(Oo.getDigitCount(e)-1),i=new oe(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new oe(Math.floor(e)))}else e===0?i=new oe(Math.floor((t-1)/2)):r||(i=new oe(Math.floor(e)));var o=Math.floor((t-1)/2),u=d$(f$(function(s){return i.add(new oe(s-o).mul(n)).toNumber()}),vf);return u(0,t)}function hw(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new oe(0),tickMin:new oe(0),tickMax:new oe(0)};var a=dw(new oe(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new oe(0):(o=new oe(e).add(t).div(2),o=o.sub(new oe(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new oe(t).sub(o).div(a).toNumber()),c=u+s+1;return c>r?hw(e,t,r,n,i+1):(c<r&&(s=t>0?s+(r-c):s,u=t>0?u:u+(r-c)),{step:a,tickMin:o.sub(new oe(u).mul(a)),tickMax:o.add(new oe(s).mul(a))})}function S$(e){var t=ni(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),u=fw([r,n]),s=ni(u,2),c=s[0],f=s[1];if(c===-1/0||f===1/0){var l=f===1/0?[c].concat(mf(vf(0,i-1).map(function(){return 1/0}))):[].concat(mf(vf(0,i-1).map(function(){return-1/0})),[f]);return r>n?yf(l):l}if(c===f)return A$(c,i,a);var d=hw(c,f,o,a),p=d.step,y=d.tickMin,v=d.tickMax,h=Oo.rangeStep(y,v.add(new oe(.1).mul(p)),p);return r>n?yf(h):h}function P$(e,t){var r=ni(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=fw([n,i]),u=ni(o,2),s=u[0],c=u[1];if(s===-1/0||c===1/0)return[n,i];if(s===c)return[s];var f=Math.max(t,2),l=dw(new oe(c).sub(s).div(f-1),a,0),d=[].concat(mf(Oo.rangeStep(new oe(s),new oe(c).sub(new oe(.99).mul(l)),l)),[c]);return n>i?yf(d):d}var T$=cw(S$),j$=cw(P$),E$="Invariant failed";function Or(e,t){throw new Error(E$)}var $$=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Zr(e){"@babel/helpers - typeof";return Zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zr(e)}function Oa(){return Oa=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},Oa.apply(this,arguments)}function k$(e,t){return R$(e)||I$(e,t)||C$(e,t)||M$()}function M$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
16In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C$(e,t){if(e){if(typeof e=="string")return tg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tg(e,t)}}function tg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function I$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function R$(e){if(Array.isArray(e))return e}function N$(e,t){if(e==null)return{};var r=D$(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 D$(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 L$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q$(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yw(n.key),n)}}function B$(e,t,r){return t&&q$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function F$(e,t,r){return t=_a(t),z$(e,pw()?Reflect.construct(t,r||[],_a(e).constructor):t.apply(e,r))}function z$(e,t){if(t&&(Zr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return W$(e)}function W$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pw=function(){return!!e})()}function _a(e){return _a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_a(e)}function U$(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&&bf(e,t)}function bf(e,t){return bf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},bf(e,t)}function vw(e,t,r){return t=yw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yw(e){var t=K$(e,"string");return Zr(t)=="symbol"?t:t+""}function K$(e,t){if(Zr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ki=(function(e){function t(){return L$(this,t),F$(this,t,arguments)}return U$(t,e),B$(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,s=n.data,c=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,d=N$(n,$$),p=H(d,!1);this.props.direction==="x"&&f.type!=="number"&&Or();var y=s.map(function(v){var h=c(v,u),g=h.x,x=h.y,w=h.value,O=h.errorVal;if(!O)return null;var m=[],b,_;if(Array.isArray(O)){var A=k$(O,2);b=A[0],_=A[1]}else b=_=O;if(a==="vertical"){var P=f.scale,E=x+i,j=E+o,T=E-o,$=P(w-b),M=P(w+_);m.push({x1:M,y1:j,x2:M,y2:T}),m.push({x1:$,y1:E,x2:M,y2:E}),m.push({x1:$,y1:j,x2:$,y2:T})}else if(a==="horizontal"){var k=l.scale,R=g+i,D=R-o,B=R+o,F=k(w-b),K=k(w+_);m.push({x1:D,y1:K,x2:B,y2:K}),m.push({x1:R,y1:F,x2:R,y2:K}),m.push({x1:D,y1:F,x2:B,y2:F})}return S.createElement(te,Oa({className:"recharts-errorBar",key:"bar-".concat(m.map(function(X){return"".concat(X.x1,"-").concat(X.x2,"-").concat(X.y1,"-").concat(X.y2)}))},p),m.map(function(X){return S.createElement("line",Oa({},X,{key:"line-".concat(X.x1,"-").concat(X.x2,"-").concat(X.y1,"-").concat(X.y2)}))}))});return S.createElement(te,{className:"recharts-errorBars"},y)}}])})(S.Component);vw(ki,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});vw(ki,"displayName","ErrorBar");function ii(e){"@babel/helpers - typeof";return ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ii(e)}function rg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rg(Object(r),!0).forEach(function(n){H$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function H$(e,t,r){return t=G$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G$(e){var t=V$(e,"string");return ii(t)=="symbol"?t:t+""}function V$(e,t){if(ii(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ii(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mw=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=He(r,zt);if(!o)return null;var u=zt.defaultProps,s=u!==void 0?tr(tr({},u),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:a==="children"?c=(n||[]).reduce(function(f,l){var d=l.item,p=l.props,y=p.sectors||p.data||[];return f.concat(y.map(function(v){return{type:o.props.iconType||d.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):c=(n||[]).map(function(f){var l=f.item,d=l.type.defaultProps,p=d!==void 0?tr(tr({},d),l.props):{},y=p.dataKey,v=p.name,h=p.legendType,g=p.hide;return{inactive:g,dataKey:y,type:s.iconType||h||"square",color:th(l),value:v||y,payload:p}}),tr(tr(tr({},s),zt.getWithHeight(o,i)),{},{payload:c,item:o})};function ai(e){"@babel/helpers - typeof";return ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ai(e)}function ng(e){return Z$(e)||J$(e)||Y$(e)||X$()}function X$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
17In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y$(e,t){if(e){if(typeof e=="string")return xf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xf(e,t)}}function J$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Z$(e){if(Array.isArray(e))return xf(e)}function xf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ig(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ye(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ig(Object(r),!0).forEach(function(n){Wr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ig(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wr(e,t,r){return t=Q$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q$(e){var t=ek(e,"string");return ai(t)=="symbol"?t:t+""}function ek(e,t){if(ai(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ai(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function me(e,t,r){return J(e)||J(t)?r:Pe(t)?Ve(e,t,r):V(t)?t(e):r}function qn(e,t,r,n){var i=ZE(e,function(u){return me(u,t)});if(r==="number"){var a=i.filter(function(u){return q(u)||parseFloat(u)});return a.length?[xo(a),Bt(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!J(u)}):i;return o.map(function(u){return Pe(u)||u instanceof Date?u:""})}var tk=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n?.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var s=a.range,c=0;c<u;c++){var f=c>0?i[c-1].coordinate:i[u-1].coordinate,l=i[c].coordinate,d=c>=u-1?i[0].coordinate:i[c+1].coordinate,p=void 0;if(Ne(l-f)!==Ne(d-l)){var y=[];if(Ne(d-l)===Ne(s[1]-s[0])){p=d;var v=l+s[1]-s[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{p=f;var h=d+s[1]-s[0];y[0]=Math.min(l,(h+l)/2),y[1]=Math.max(l,(h+l)/2)}var g=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(t>g[0]&&t<=g[1]||t>=y[0]&&t<=y[1]){o=i[c].index;break}}else{var x=Math.min(f,d),w=Math.max(f,d);if(t>(x+l)/2&&t<=(w+l)/2){o=i[c].index;break}}}else for(var O=0;O<u;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},th=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ye(ye({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,s;switch(i){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:u;break;default:s=u;break}return s},rk=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),s=0,c=u.length;s<c;s++)for(var f=a[u[s]].stackGroups,l=Object.keys(f),d=0,p=l.length;d<p;d++){var y=f[l[d]],v=y.items,h=y.cateAxisId,g=v.filter(function(_){return Tt(_.type).indexOf("Bar")>=0});if(g&&g.length){var x=g[0].type.defaultProps,w=x!==void 0?ye(ye({},x),g[0].props):g[0].props,O=w.barSize,m=w[h];o[m]||(o[m]=[]);var b=J(O)?r:O;o[m].push({item:g[0],stackList:g.slice(1),barSize:J(b)?void 0:De(b,n,0)})}}return o},nk=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,s=o.length;if(s<1)return null;var c=De(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var d=!1,p=i/s,y=o.reduce(function(O,m){return O+m.barSize||0},0);y+=(s-1)*c,y>=i&&(y-=(s-1)*c,c=0),y>=i&&p>0&&(d=!0,p*=.9,y=s*p);var v=(i-y)/2>>0,h={offset:v-c,size:0};f=o.reduce(function(O,m){var b={item:m.item,position:{offset:h.offset+h.size+c,size:d?p:m.barSize}},_=[].concat(ng(O),[b]);return h=_[_.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(A){_.push({item:A,position:h})}),_},l)}else{var g=De(n,i,0,!0);i-2*g-(s-1)*c<=0&&(c=0);var x=(i-2*g-(s-1)*c)/s;x>1&&(x>>=0);var w=u===+u?Math.min(x,u):x;f=o.reduce(function(O,m,b){var _=[].concat(ng(O),[{item:m.item,position:{offset:g+(x+c)*b+(x-w)/2,size:w}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(A){_.push({item:A,position:_[_.length-1].position})}),_},l)}return f},ik=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,s=o-(u.left||0)-(u.right||0),c=mw({children:a,legendWidth:s});if(c){var f=i||{},l=f.width,d=f.height,p=c.align,y=c.verticalAlign,v=c.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&p!=="center"&&q(t[p]))return ye(ye({},t),{},Wr({},p,t[p]+(l||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&y!=="middle"&&q(t[y]))return ye(ye({},t),{},Wr({},y,t[y]+(d||0)))}return t},ak=function(t,r,n){return J(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},gw=function(t,r,n,i,a){var o=r.props.children,u=Xe(o,ki).filter(function(c){return ak(i,a,c.props.direction)});if(u&&u.length){var s=u.map(function(c){return c.props.dataKey});return t.reduce(function(c,f){var l=me(f,n);if(J(l))return c;var d=Array.isArray(l)?[xo(l),Bt(l)]:[l,l],p=s.reduce(function(y,v){var h=me(f,v,0),g=d[0]-Math.abs(Array.isArray(h)?h[0]:h),x=d[1]+Math.abs(Array.isArray(h)?h[1]:h);return[Math.min(g,y[0]),Math.max(x,y[1])]},[1/0,-1/0]);return[Math.min(p[0],c[0]),Math.max(p[1],c[1])]},[1/0,-1/0])}return null},ok=function(t,r,n,i,a){var o=r.map(function(u){return gw(t,u,n,a,i)}).filter(function(u){return!J(u)});return o&&o.length?o.reduce(function(u,s){return[Math.min(u[0],s[0]),Math.max(u[1],s[1])]},[1/0,-1/0]):null},bw=function(t,r,n,i,a){var o=r.map(function(s){var c=s.props.dataKey;return n==="number"&&c&&gw(t,s,c,i)||qn(t,c,n,a)});if(n==="number")return o.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]);var u={};return o.reduce(function(s,c){for(var f=0,l=c.length;f<l;f++)u[c[f]]||(u[c[f]]=!0,s.push(c[f]));return s},[])},xw=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},ww=function(t,r,n,i){if(i)return t.map(function(s){return s.coordinate});var a,o,u=t.map(function(s){return s.coordinate===r&&(a=!0),s.coordinate===n&&(o=!0),s.coordinate});return a||u.push(r),o||u.push(n),u},Pt=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,s=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,c=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/s:0;if(c=t.axisType==="angleAxis"&&u?.length>=2?Ne(u[0]-u[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var d=a?a.indexOf(l):l;return{coordinate:i(d)+c,value:l,offset:c}});return f.filter(function(l){return!bn(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,d){return{coordinate:i(l)+c,value:l,index:d,offset:c}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+c,value:l,offset:c}}):i.domain().map(function(l,d){return{coordinate:i(l)+c,value:a?a[l]:l,index:d,offset:c}})},ol=new WeakMap,zi=function(t,r){if(typeof r!="function")return t;ol.has(t)||ol.set(t,new WeakMap);var n=ol.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},Ow=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,u=t.axisType;if(i==="auto")return o==="radial"&&u==="radiusAxis"?{scale:Jn(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:ma(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Ln(),realScaleType:"point"}:a==="category"?{scale:Jn(),realScaleType:"band"}:{scale:ma(),realScaleType:"linear"};if(mr(i)){var s="scale".concat(io(i));return{scale:(Wm[s]||Ln)(),realScaleType:Wm[s]?s:"point"}}return V(i)?{scale:i}:{scale:Ln(),realScaleType:"point"}},ag=1e-4,_w=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-ag,o=Math.max(i[0],i[1])+ag,u=t(r[0]),s=t(r[n-1]);(u<a||u>o||s<a||s>o)&&t.domain([r[0],r[n-1]])}},uk=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},sk=function(t,r){if(!r||r.length!==2||!q(r[0])||!q(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!q(t[0])||t[0]<n)&&(a[0]=n),(!q(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},ck=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,u=0;u<r;++u){var s=bn(t[u][n][1])?t[u][n][0]:t[u][n][1];s>=0?(t[u][n][0]=a,t[u][n][1]=a+s,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+s,o=t[u][n][1])}},lk=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var u=bn(t[o][n][1])?t[o][n][0]:t[o][n][1];u>=0?(t[o][n][0]=a,t[o][n][1]=a+u,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},fk={sign:ck,expand:Z_,none:Ur,silhouette:Q_,wiggle:eA,positive:lk},dk=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=fk[n],o=J_().keys(i).value(function(u,s){return+me(u,s,0)}).order(Xl).offset(a);return o(t)},hk=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,s={},c=u.reduce(function(l,d){var p,y=(p=d.type)!==null&&p!==void 0&&p.defaultProps?ye(ye({},d.type.defaultProps),d.props):d.props,v=y.stackId,h=y.hide;if(h)return l;var g=y[n],x=l[g]||{hasStack:!1,stackGroups:{}};if(Pe(v)){var w=x.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(d),x.hasStack=!0,x.stackGroups[v]=w}else x.stackGroups[Sr("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return ye(ye({},l),{},Wr({},g,x))},s),f={};return Object.keys(c).reduce(function(l,d){var p=c[d];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,h){var g=p.stackGroups[h];return ye(ye({},v),{},Wr({},h,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:dk(t,g.items,a)}))},y)}return ye(ye({},l),{},Wr({},d,p))},f)},Aw=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,s=n||r.scale;if(s!=="auto"&&s!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var f=T$(c,a,u);return t.domain([xo(f),Bt(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),d=j$(l,a,u);return{niceTicks:d}}return null};function Aa(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!J(i[t.dataKey])){var u=Zi(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var s=me(i,J(o)?t.dataKey:o);return J(s)?null:t.scale(s)}var og=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var s=me(o,r.dataKey,r.domain[u]);return J(s)?null:r.scale(s)-a/2+i},pk=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},vk=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ye(ye({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Pe(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},yk=function(t){return t.reduce(function(r,n){return[xo(n.concat([r[0]]).filter(q)),Bt(n.concat([r[1]]).filter(q))]},[1/0,-1/0])},Sw=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,s=u.reduce(function(c,f){var l=yk(f.slice(r,n+1));return[Math.min(c[0],l[0]),Math.max(c[1],l[1])]},[1/0,-1/0]);return[Math.min(s[0],i[0]),Math.max(s[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},ug=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,sg=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,wf=function(t,r,n){if(V(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(q(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(ug.test(t[0])){var a=+ug.exec(t[0])[1];i[0]=r[0]-a}else V(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(q(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(sg.test(t[1])){var o=+sg.exec(t[1])[1];i[1]=r[1]+o}else V(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Sa=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=Ed(r,function(l){return l.coordinate}),o=1/0,u=1,s=a.length;u<s;u++){var c=a[u],f=a[u-1];o=Math.min((c.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},cg=function(t,r,n){return!t||!t.length||xr(t,Ve(n,"type.defaultProps.domain"))?r:t},Pw=function(t,r){var n=t.type.defaultProps?ye(ye({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,s=n.tooltipType,c=n.chartType,f=n.hide;return ye(ye({},H(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:th(t),value:me(r,i),type:s,payload:r,chartType:c,hide:f})};function oi(e){"@babel/helpers - typeof";return oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oi(e)}function lg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _t(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lg(Object(r),!0).forEach(function(n){Tw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tw(e,t,r){return t=mk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mk(e){var t=gk(e,"string");return oi(t)=="symbol"?t:t+""}function gk(e,t){if(oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bk(e,t){return _k(e)||Ok(e,t)||wk(e,t)||xk()}function xk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wk(e,t){if(e){if(typeof e=="string")return fg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fg(e,t)}}function fg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ok(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function _k(e){if(Array.isArray(e))return e}var Pa=Math.PI/180,Ak=function(t){return t*180/Math.PI},fe=function(t,r,n,i){return{x:t+Math.cos(-Pa*i)*n,y:r+Math.sin(-Pa*i)*n}},jw=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},Sk=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.startAngle,c=t.endAngle,f=De(t.cx,o,o/2),l=De(t.cy,u,u/2),d=jw(o,u,n),p=De(t.innerRadius,d,0),y=De(t.outerRadius,d,d*.8),v=Object.keys(r);return v.reduce(function(h,g){var x=r[g],w=x.domain,O=x.reversed,m;if(J(x.range))i==="angleAxis"?m=[s,c]:i==="radiusAxis"&&(m=[p,y]),O&&(m=[m[1],m[0]]);else{m=x.range;var b=m,_=bk(b,2);s=_[0],c=_[1]}var A=Ow(x,a),P=A.realScaleType,E=A.scale;E.domain(w).range(m),_w(E);var j=Aw(E,_t(_t({},x),{},{realScaleType:P})),T=_t(_t(_t({},x),j),{},{range:m,radius:y,realScaleType:P,scale:E,cx:f,cy:l,innerRadius:p,outerRadius:y,startAngle:s,endAngle:c});return _t(_t({},h),{},Tw({},g,T))},{})},Pk=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},Tk=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=Pk({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var s=(n-a)/u,c=Math.acos(s);return i>o&&(c=2*Math.PI-c),{radius:u,angle:Ak(c),angleInRadian:c}},jk=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},Ek=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),u=Math.min(a,o);return t+u*360},dg=function(t,r){var n=t.x,i=t.y,a=Tk({x:n,y:i},r),o=a.radius,u=a.angle,s=r.innerRadius,c=r.outerRadius;if(o<s||o>c)return!1;if(o===0)return!0;var f=jk(r),l=f.startAngle,d=f.endAngle,p=u,y;if(l<=d){for(;p>d;)p-=360;for(;p<l;)p+=360;y=p>=l&&p<=d}else{for(;p>l;)p-=360;for(;p<d;)p+=360;y=p>=d&&p<=l}return y?_t(_t({},r),{},{radius:o,angle:Ek(p,r)}):null},Ew=function(t){return!N.isValidElement(t)&&!V(t)&&typeof t!="boolean"?t.className:""};function ui(e){"@babel/helpers - typeof";return ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ui(e)}var $k=["offset"];function kk(e){return Rk(e)||Ik(e)||Ck(e)||Mk()}function Mk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
19In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ck(e,t){if(e){if(typeof e=="string")return Of(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Of(e,t)}}function Ik(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Rk(e){if(Array.isArray(e))return Of(e)}function Of(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Nk(e,t){if(e==null)return{};var r=Dk(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 Dk(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 hg(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 Ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hg(Object(r),!0).forEach(function(n){Lk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lk(e,t,r){return t=qk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qk(e){var t=Bk(e,"string");return ui(t)=="symbol"?t:t+""}function Bk(e,t){if(ui(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ui(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function si(){return si=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},si.apply(this,arguments)}var Fk=function(t){var r=t.value,n=t.formatter,i=J(t.children)?r:t.children;return V(n)?n(i):i},zk=function(t,r){var n=Ne(r-t),i=Math.min(Math.abs(r-t),360);return n*i},Wk=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,s=a,c=s.cx,f=s.cy,l=s.innerRadius,d=s.outerRadius,p=s.startAngle,y=s.endAngle,v=s.clockWise,h=(l+d)/2,g=zk(p,y),x=g>=0?1:-1,w,O;i==="insideStart"?(w=p+x*o,O=v):i==="insideEnd"?(w=y-x*o,O=!v):i==="end"&&(w=y+x*o,O=v),O=g<=0?O:!O;var m=fe(c,f,h,w),b=fe(c,f,h,w+(O?1:-1)*359),_="M".concat(m.x,",").concat(m.y,`
20    A`).concat(h,",").concat(h,",0,1,").concat(O?0:1,`,
21    `).concat(b.x,",").concat(b.y),A=J(t.id)?Sr("recharts-radial-line-"):t.id;return S.createElement("text",si({},n,{dominantBaseline:"central",className:Z("recharts-radial-bar-label",u)}),S.createElement("defs",null,S.createElement("path",{id:A,d:_})),S.createElement("textPath",{xlinkHref:"#".concat(A)},r))},Uk=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,s=a.innerRadius,c=a.outerRadius,f=a.startAngle,l=a.endAngle,d=(f+l)/2;if(i==="outside"){var p=fe(o,u,c+n,d),y=p.x,v=p.y;return{x:y,y:v,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var h=(s+c)/2,g=fe(o,u,h,d),x=g.x,w=g.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},Kk=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,s=o.y,c=o.width,f=o.height,l=f>=0?1:-1,d=l*i,p=l>0?"end":"start",y=l>0?"start":"end",v=c>=0?1:-1,h=v*i,g=v>0?"end":"start",x=v>0?"start":"end";if(a==="top"){var w={x:u+c/2,y:s-l*i,textAnchor:"middle",verticalAnchor:p};return Ae(Ae({},w),n?{height:Math.max(s-n.y,0),width:c}:{})}if(a==="bottom"){var O={x:u+c/2,y:s+f+d,textAnchor:"middle",verticalAnchor:y};return Ae(Ae({},O),n?{height:Math.max(n.y+n.height-(s+f),0),width:c}:{})}if(a==="left"){var m={x:u-h,y:s+f/2,textAnchor:g,verticalAnchor:"middle"};return Ae(Ae({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var b={x:u+c+h,y:s+f/2,textAnchor:x,verticalAnchor:"middle"};return Ae(Ae({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:f}:{})}var _=n?{width:c,height:f}:{};return a==="insideLeft"?Ae({x:u+h,y:s+f/2,textAnchor:x,verticalAnchor:"middle"},_):a==="insideRight"?Ae({x:u+c-h,y:s+f/2,textAnchor:g,verticalAnchor:"middle"},_):a==="insideTop"?Ae({x:u+c/2,y:s+d,textAnchor:"middle",verticalAnchor:y},_):a==="insideBottom"?Ae({x:u+c/2,y:s+f-d,textAnchor:"middle",verticalAnchor:p},_):a==="insideTopLeft"?Ae({x:u+h,y:s+d,textAnchor:x,verticalAnchor:y},_):a==="insideTopRight"?Ae({x:u+c-h,y:s+d,textAnchor:g,verticalAnchor:y},_):a==="insideBottomLeft"?Ae({x:u+h,y:s+f-d,textAnchor:x,verticalAnchor:p},_):a==="insideBottomRight"?Ae({x:u+c-h,y:s+f-d,textAnchor:g,verticalAnchor:p},_):gn(a)&&(q(a.x)||sr(a.x))&&(q(a.y)||sr(a.y))?Ae({x:u+De(a.x,c),y:s+De(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):Ae({x:u+c/2,y:s+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},Hk=function(t){return"cx"in t&&q(t.cx)};function Ee(e){var t=e.offset,r=t===void 0?5:t,n=Nk(e,$k),i=Ae({offset:r},n),a=i.viewBox,o=i.position,u=i.value,s=i.children,c=i.content,f=i.className,l=f===void 0?"":f,d=i.textBreakAll;if(!a||J(u)&&J(s)&&!N.isValidElement(c)&&!V(c))return null;if(N.isValidElement(c))return N.cloneElement(c,i);var p;if(V(c)){if(p=N.createElement(c,i),N.isValidElement(p))return p}else p=Fk(i);var y=Hk(a),v=H(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return Wk(i,p,v);var h=y?Uk(i):Kk(i);return S.createElement(br,si({className:Z("recharts-label",l)},v,h,{breakAll:d}),p)}Ee.displayName="Label";var $w=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,s=t.radius,c=t.innerRadius,f=t.outerRadius,l=t.x,d=t.y,p=t.top,y=t.left,v=t.width,h=t.height,g=t.clockWise,x=t.labelViewBox;if(x)return x;if(q(v)&&q(h)){if(q(l)&&q(d))return{x:l,y:d,width:v,height:h};if(q(p)&&q(y))return{x:p,y,width:v,height:h}}return q(l)&&q(d)?{x:l,y:d,width:0,height:0}:q(r)&&q(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:c||0,outerRadius:f||s||u||0,clockWise:g}:t.viewBox?t.viewBox:{}},Gk=function(t,r){return t?t===!0?S.createElement(Ee,{key:"label-implicit",viewBox:r}):Pe(t)?S.createElement(Ee,{key:"label-implicit",viewBox:r,value:t}):N.isValidElement(t)?t.type===Ee?N.cloneElement(t,{key:"label-implicit",viewBox:r}):S.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):V(t)?S.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):gn(t)?S.createElement(Ee,si({viewBox:r},t,{key:"label-implicit"})):null:null},Vk=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=$w(t),o=Xe(i,Ee).map(function(s,c){return N.cloneElement(s,{viewBox:r||a,key:"label-".concat(c)})});if(!n)return o;var u=Gk(t.label,r||a);return[u].concat(kk(o))};Ee.parseViewBox=$w;Ee.renderCallByParent=Vk;var ul,pg;function Xk(){if(pg)return ul;pg=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return ul=e,ul}var Yk=Xk();const Jk=ue(Yk);function ci(e){"@babel/helpers - typeof";return ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ci(e)}var Zk=["valueAccessor"],Qk=["data","dataKey","clockWise","id","textBreakAll"];function eM(e){return iM(e)||nM(e)||rM(e)||tM()}function tM(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
22In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rM(e,t){if(e){if(typeof e=="string")return _f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _f(e,t)}}function nM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iM(e){if(Array.isArray(e))return _f(e)}function _f(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ta(){return Ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ta.apply(this,arguments)}function vg(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 yg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vg(Object(r),!0).forEach(function(n){aM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aM(e,t,r){return t=oM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oM(e){var t=uM(e,"string");return ci(t)=="symbol"?t:t+""}function uM(e,t){if(ci(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ci(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mg(e,t){if(e==null)return{};var r=sM(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 sM(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 cM=function(t){return Array.isArray(t.value)?Jk(t.value):t.value};function mt(e){var t=e.valueAccessor,r=t===void 0?cM:t,n=mg(e,Zk),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,s=n.textBreakAll,c=mg(n,Qk);return!i||!i.length?null:S.createElement(te,{className:"recharts-label-list"},i.map(function(f,l){var d=J(a)?r(f,l):me(f&&f.payload,a),p=J(u)?{}:{id:"".concat(u,"-").concat(l)};return S.createElement(Ee,Ta({},H(f,!0),c,p,{parentViewBox:f.parentViewBox,value:d,textBreakAll:s,viewBox:Ee.parseViewBox(J(o)?f:yg(yg({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}mt.displayName="LabelList";function lM(e,t){return e?e===!0?S.createElement(mt,{key:"labelList-implicit",data:t}):S.isValidElement(e)||V(e)?S.createElement(mt,{key:"labelList-implicit",data:t,content:e}):gn(e)?S.createElement(mt,Ta({data:t},e,{key:"labelList-implicit"})):null:null}function fM(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Xe(n,mt).map(function(o,u){return N.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=lM(e.label,t);return[a].concat(eM(i))}mt.renderCallByParent=fM;function li(e){"@babel/helpers - typeof";return li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},li(e)}function Af(){return Af=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},Af.apply(this,arguments)}function gg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gg(Object(r),!0).forEach(function(n){dM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dM(e,t,r){return t=hM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hM(e){var t=pM(e,"string");return li(t)=="symbol"?t:t+""}function pM(e,t){if(li(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(li(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vM=function(t,r){var n=Ne(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Wi=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,u=t.isExternal,s=t.cornerRadius,c=t.cornerIsExternal,f=s*(u?1:-1)+i,l=Math.asin(s/f)/Pa,d=c?a:a+o*l,p=fe(r,n,f,d),y=fe(r,n,i,d),v=c?a-o*l:a,h=fe(r,n,f*Math.cos(l*Pa),v);return{center:p,circleTangency:y,lineTangency:h,theta:l}},kw=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,s=vM(o,u),c=o+s,f=fe(r,n,a,o),l=fe(r,n,a,c),d="M ".concat(f.x,",").concat(f.y,`
23    A `).concat(a,",").concat(a,`,0,
24    `).concat(+(Math.abs(s)>180),",").concat(+(o>c),`,
25    `).concat(l.x,",").concat(l.y,`
26  `);if(i>0){var p=fe(r,n,i,o),y=fe(r,n,i,c);d+="L ".concat(y.x,",").concat(y.y,`
27            A `).concat(i,",").concat(i,`,0,
28            `).concat(+(Math.abs(s)>180),",").concat(+(o<=c),`,
29            `).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},yM=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,s=t.cornerIsExternal,c=t.startAngle,f=t.endAngle,l=Ne(f-c),d=Wi({cx:r,cy:n,radius:a,angle:c,sign:l,cornerRadius:o,cornerIsExternal:s}),p=d.circleTangency,y=d.lineTangency,v=d.theta,h=Wi({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:s}),g=h.circleTangency,x=h.lineTangency,w=h.theta,O=s?Math.abs(c-f):Math.abs(c-f)-v-w;if(O<0)return u?"M ".concat(y.x,",").concat(y.y,`
30        a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
31        a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
32      `):kw({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:f});var m="M ".concat(y.x,",").concat(y.y,`
33    A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,`
34    A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(l<0),",").concat(g.x,",").concat(g.y,`
35    A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(x.x,",").concat(x.y,`
36  `);if(i>0){var b=Wi({cx:r,cy:n,radius:i,angle:c,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),_=b.circleTangency,A=b.lineTangency,P=b.theta,E=Wi({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),j=E.circleTangency,T=E.lineTangency,$=E.theta,M=s?Math.abs(c-f):Math.abs(c-f)-P-$;if(M<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(T.x,",").concat(T.y,`
37      A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(j.x,",").concat(j.y,`
38      A`).concat(i,",").concat(i,",0,").concat(+(M>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,`
39      A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(A.x,",").concat(A.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},mM={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Mw=function(t){var r=bg(bg({},mM),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,s=r.forceCornerRadius,c=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,d=r.className;if(o<a||f===l)return null;var p=Z("recharts-sector",d),y=o-a,v=De(u,y,0,!0),h;return v>0&&Math.abs(f-l)<360?h=yM({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:f,endAngle:l}):h=kw({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),S.createElement("path",Af({},H(r,!0),{className:p,d:h,role:"img"}))};function fi(e){"@babel/helpers - typeof";return fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fi(e)}function Sf(){return Sf=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},Sf.apply(this,arguments)}function xg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xg(Object(r),!0).forEach(function(n){gM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gM(e,t,r){return t=bM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bM(e){var t=xM(e,"string");return fi(t)=="symbol"?t:t+""}function xM(e,t){if(fi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Og={curveBasisClosed:B_,curveBasisOpen:F_,curveBasis:q_,curveBumpX:S_,curveBumpY:P_,curveLinearClosed:z_,curveLinear:oo,curveMonotoneX:W_,curveMonotoneY:U_,curveNatural:K_,curveStep:H_,curveStepAfter:V_,curveStepBefore:G_},Ui=function(t){return t.x===+t.x&&t.y===+t.y},$n=function(t){return t.x},kn=function(t){return t.y},wM=function(t,r){if(V(t))return t;var n="curve".concat(io(t));return(n==="curveMonotone"||n==="curveBump")&&r?Og["".concat(n).concat(r==="vertical"?"Y":"X")]:Og[n]||oo},OM=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,u=t.layout,s=t.connectNulls,c=s===void 0?!1:s,f=wM(n,u),l=c?a.filter(function(v){return Ui(v)}):a,d;if(Array.isArray(o)){var p=c?o.filter(function(v){return Ui(v)}):o,y=l.map(function(v,h){return wg(wg({},v),{},{base:p[h]})});return u==="vertical"?d=Ri().y(kn).x1($n).x0(function(v){return v.base.x}):d=Ri().x($n).y1(kn).y0(function(v){return v.base.y}),d.defined(Ui).curve(f),d(y)}return u==="vertical"&&q(o)?d=Ri().y(kn).x1($n).x0(o):q(o)?d=Ri().x($n).y1(kn).y0(o):d=k0().x($n).y(kn),d.defined(Ui).curve(f),d(l)},vr=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?OM(t):i;return N.createElement("path",Sf({},H(t,!1),Qi(t),{className:Z("recharts-curve",r),d:o,ref:a}))},sl={exports:{}},cl,_g;function _M(){if(_g)return cl;_g=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return cl=e,cl}var ll,Ag;function AM(){if(Ag)return ll;Ag=1;var e=_M();function t(){}function r(){}return r.resetWarningCache=t,ll=function(){function n(o,u,s,c,f,l){if(l!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},ll}var Sg;function SM(){return Sg||(Sg=1,sl.exports=AM()()),sl.exports}var PM=SM();const ae=ue(PM),{getOwnPropertyNames:TM,getOwnPropertySymbols:jM}=Object,{hasOwnProperty:EM}=Object.prototype;function fl(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function Ki(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,o=a.get(r),u=a.get(n);if(o&&u)return o===n&&u===r;a.set(r,n),a.set(n,r);const s=e(r,n,i);return a.delete(r),a.delete(n),s}}function $M(e){return e?.[Symbol.toStringTag]}function Pg(e){return TM(e).concat(jM(e))}const kM=Object.hasOwn||((e,t)=>EM.call(e,t));function jr(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const MM="__v",CM="__o",IM="_owner",{getOwnPropertyDescriptor:Tg,keys:jg}=Object;function RM(e,t){return e.byteLength===t.byteLength&&ja(new Uint8Array(e),new Uint8Array(t))}function NM(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function DM(e,t){return e.byteLength===t.byteLength&&ja(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function LM(e,t){return jr(e.getTime(),t.getTime())}function qM(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function BM(e,t){return e===t}function Eg(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,u,s=0;for(;(o=a.next())&&!o.done;){const c=t.entries();let f=!1,l=0;for(;(u=c.next())&&!u.done;){if(i[l]){l++;continue}const d=o.value,p=u.value;if(r.equals(d[0],p[0],s,l,e,t,r)&&r.equals(d[1],p[1],d[0],p[0],e,t,r)){f=i[l]=!0;break}l++}if(!f)return!1;s++}return!0}const FM=jr;function zM(e,t,r){const n=jg(e);let i=n.length;if(jg(t).length!==i)return!1;for(;i-- >0;)if(!Cw(e,t,r,n[i]))return!1;return!0}function Mn(e,t,r){const n=Pg(e);let i=n.length;if(Pg(t).length!==i)return!1;let a,o,u;for(;i-- >0;)if(a=n[i],!Cw(e,t,r,a)||(o=Tg(e,a),u=Tg(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function WM(e,t){return jr(e.valueOf(),t.valueOf())}function UM(e,t){return e.source===t.source&&e.flags===t.flags}function $g(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,u;for(;(o=a.next())&&!o.done;){const s=t.values();let c=!1,f=0;for(;(u=s.next())&&!u.done;){if(!i[f]&&r.equals(o.value,u.value,o.value,u.value,e,t,r)){c=i[f]=!0;break}f++}if(!c)return!1}return!0}function ja(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function KM(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function Cw(e,t,r,n){return(n===IM||n===CM||n===MM)&&(e.$$typeof||t.$$typeof)?!0:kM(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const HM="[object ArrayBuffer]",GM="[object Arguments]",VM="[object Boolean]",XM="[object DataView]",YM="[object Date]",JM="[object Error]",ZM="[object Map]",QM="[object Number]",eC="[object Object]",tC="[object RegExp]",rC="[object Set]",nC="[object String]",iC={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},aC="[object URL]",oC=Object.prototype.toString;function uC({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:u,areObjectsEqual:s,arePrimitiveWrappersEqual:c,areRegExpsEqual:f,areSetsEqual:l,areTypedArraysEqual:d,areUrlsEqual:p,unknownTagComparators:y}){return function(h,g,x){if(h===g)return!0;if(h==null||g==null)return!1;const w=typeof h;if(w!==typeof g)return!1;if(w!=="object")return w==="number"?u(h,g,x):w==="function"?a(h,g,x):!1;const O=h.constructor;if(O!==g.constructor)return!1;if(O===Object)return s(h,g,x);if(Array.isArray(h))return t(h,g,x);if(O===Date)return n(h,g,x);if(O===RegExp)return f(h,g,x);if(O===Map)return o(h,g,x);if(O===Set)return l(h,g,x);const m=oC.call(h);if(m===YM)return n(h,g,x);if(m===tC)return f(h,g,x);if(m===ZM)return o(h,g,x);if(m===rC)return l(h,g,x);if(m===eC)return typeof h.then!="function"&&typeof g.then!="function"&&s(h,g,x);if(m===aC)return p(h,g,x);if(m===JM)return i(h,g,x);if(m===GM)return s(h,g,x);if(iC[m])return d(h,g,x);if(m===HM)return e(h,g,x);if(m===XM)return r(h,g,x);if(m===VM||m===QM||m===nC)return c(h,g,x);if(y){let b=y[m];if(!b){const _=$M(h);_&&(b=y[_])}if(b)return b(h,g,x)}return!1}}function sC({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:RM,areArraysEqual:r?Mn:NM,areDataViewsEqual:DM,areDatesEqual:LM,areErrorsEqual:qM,areFunctionsEqual:BM,areMapsEqual:r?fl(Eg,Mn):Eg,areNumbersEqual:FM,areObjectsEqual:r?Mn:zM,arePrimitiveWrappersEqual:WM,areRegExpsEqual:UM,areSetsEqual:r?fl($g,Mn):$g,areTypedArraysEqual:r?fl(ja,Mn):ja,areUrlsEqual:KM,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=Ki(n.areArraysEqual),a=Ki(n.areMapsEqual),o=Ki(n.areObjectsEqual),u=Ki(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:u})}return n}function cC(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function lC({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(u,s){const{cache:c=e?new WeakMap:void 0,meta:f}=r();return t(u,s,{cache:c,equals:n,meta:f,strict:i})};if(e)return function(u,s){return t(u,s,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(u,s){return t(u,s,a)}}const fC=Xt();Xt({strict:!0});Xt({circular:!0});Xt({circular:!0,strict:!0});Xt({createInternalComparator:()=>jr});Xt({strict:!0,createInternalComparator:()=>jr});Xt({circular:!0,createInternalComparator:()=>jr});Xt({circular:!0,createInternalComparator:()=>jr,strict:!0});function Xt(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=sC(e),o=uC(a),u=r?r(o):cC(o);return lC({circular:t,comparator:o,createState:n,equals:u,strict:i})}function dC(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function kg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):dC(i)};requestAnimationFrame(n)}function Pf(e){"@babel/helpers - typeof";return Pf=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},Pf(e)}function hC(e){return mC(e)||yC(e)||vC(e)||pC()}function pC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
40In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vC(e,t){if(e){if(typeof e=="string")return Mg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mg(e,t)}}function Mg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mC(e){if(Array.isArray(e))return e}function gC(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,u=hC(o),s=u[0],c=u.slice(1);if(typeof s=="number"){kg(i.bind(null,c),s);return}i(s),kg(i.bind(null,c));return}Pf(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function di(e){"@babel/helpers - typeof";return di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},di(e)}function Cg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ig(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cg(Object(r),!0).forEach(function(n){Iw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Iw(e,t,r){return t=bC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bC(e){var t=xC(e,"string");return di(t)==="symbol"?t:String(t)}function xC(e,t){if(di(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(di(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wC=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},OC=function(t){return t},_C=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Bn=function(t,r){return Object.keys(r).reduce(function(n,i){return Ig(Ig({},n),{},Iw({},i,t(i,r[i])))},{})},Rg=function(t,r,n){return t.map(function(i){return"".concat(_C(i)," ").concat(r,"ms ").concat(n)}).join(",")};function AC(e,t){return TC(e)||PC(e,t)||Rw(e,t)||SC()}function SC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
41In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function TC(e){if(Array.isArray(e))return e}function jC(e){return kC(e)||$C(e)||Rw(e)||EC()}function EC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
42In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rw(e,t){if(e){if(typeof e=="string")return Tf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tf(e,t)}}function $C(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kC(e){if(Array.isArray(e))return Tf(e)}function Tf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ea=1e-4,Nw=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},Dw=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},Ng=function(t,r){return function(n){var i=Nw(t,r);return Dw(i,n)}},MC=function(t,r){return function(n){var i=Nw(t,r),a=[].concat(jC(i.map(function(o,u){return o*u}).slice(1)),[0]);return Dw(a,n)}},Dg=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],u=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,u=1;break;case"ease":i=.25,a=.1,o=.25,u=1;break;case"ease-in":i=.42,a=0,o=1,u=1;break;case"ease-out":i=.42,a=0,o=.58,u=1;break;case"ease-in-out":i=0,a=0,o=.58,u=1;break;default:{var s=r[0].split("(");if(s[0]==="cubic-bezier"&&s[1].split(")")[0].split(",").length===4){var c=s[1].split(")")[0].split(",").map(function(h){return parseFloat(h)}),f=AC(c,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=Ng(i,o),d=Ng(a,u),p=MC(i,o),y=function(g){return g>1?1:g<0?0:g},v=function(g){for(var x=g>1?1:g,w=x,O=0;O<8;++O){var m=l(w)-x,b=p(w);if(Math.abs(m-x)<Ea||b<Ea)return d(w);w=y(w-m/b)}return d(w)};return v.isStepper=!1,v},CC=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,s=function(f,l,d){var p=-(f-l)*n,y=d*a,v=d+(p-y)*u/1e3,h=d*u/1e3+f;return Math.abs(h-l)<Ea&&Math.abs(v)<Ea?[l,0]:[h,v]};return s.isStepper=!0,s.dt=u,s},IC=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Dg(i);case"spring":return CC();default:if(i.split("(")[0]==="cubic-bezier")return Dg(i)}return typeof i=="function"?i:null};function hi(e){"@babel/helpers - typeof";return hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hi(e)}function Lg(e){return DC(e)||NC(e)||Lw(e)||RC()}function RC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
43In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DC(e){if(Array.isArray(e))return Ef(e)}function qg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qg(Object(r),!0).forEach(function(n){jf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jf(e,t,r){return t=LC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LC(e){var t=qC(e,"string");return hi(t)==="symbol"?t:String(t)}function qC(e,t){if(hi(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hi(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function BC(e,t){return WC(e)||zC(e,t)||Lw(e,t)||FC()}function FC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
44In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lw(e,t){if(e){if(typeof e=="string")return Ef(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ef(e,t)}}function Ef(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function zC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function WC(e){if(Array.isArray(e))return e}var $a=function(t,r,n){return t+(r-t)*n},$f=function(t){var r=t.from,n=t.to;return r!==n},UC=function e(t,r,n){var i=Bn(function(a,o){if($f(o)){var u=t(o.from,o.to,o.velocity),s=BC(u,2),c=s[0],f=s[1];return Me(Me({},o),{},{from:c,velocity:f})}return o},r);return n<1?Bn(function(a,o){return $f(o)?Me(Me({},o),{},{velocity:$a(o.velocity,i[a].velocity,n),from:$a(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const KC=(function(e,t,r,n,i){var a=wC(e,t),o=a.reduce(function(h,g){return Me(Me({},h),{},jf({},g,[e[g],t[g]]))},{}),u=a.reduce(function(h,g){return Me(Me({},h),{},jf({},g,{from:e[g],velocity:0,to:t[g]}))},{}),s=-1,c,f,l=function(){return null},d=function(){return Bn(function(g,x){return x.from},u)},p=function(){return!Object.values(u).filter($f).length},y=function(g){c||(c=g);var x=g-c,w=x/r.dt;u=UC(r,u,w),i(Me(Me(Me({},e),t),d())),c=g,p()||(s=requestAnimationFrame(l))},v=function(g){f||(f=g);var x=(g-f)/n,w=Bn(function(m,b){return $a.apply(void 0,Lg(b).concat([r(x)]))},o);if(i(Me(Me(Me({},e),t),w)),x<1)s=requestAnimationFrame(l);else{var O=Bn(function(m,b){return $a.apply(void 0,Lg(b).concat([r(1)]))},o);i(Me(Me(Me({},e),t),O))}};return l=r.isStepper?y:v,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(s)}}});function Qr(e){"@babel/helpers - typeof";return Qr=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},Qr(e)}var HC=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function GC(e,t){if(e==null)return{};var r=VC(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function VC(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function dl(e){return ZC(e)||JC(e)||YC(e)||XC()}function XC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
45In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YC(e,t){if(e){if(typeof e=="string")return kf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kf(e,t)}}function JC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ZC(e){if(Array.isArray(e))return kf(e)}function kf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Bg(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?Bg(Object(r),!0).forEach(function(n){Nn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nn(e,t,r){return t=qw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eI(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qw(n.key),n)}}function tI(e,t,r){return t&&eI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qw(e){var t=rI(e,"string");return Qr(t)==="symbol"?t:String(t)}function rI(e,t){if(Qr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nI(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&&Mf(e,t)}function Mf(e,t){return Mf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Mf(e,t)}function iI(e){var t=aI();return function(){var n=ka(e),i;if(t){var a=ka(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Cf(this,i)}}function Cf(e,t){if(t&&(Qr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return If(e)}function If(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aI(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ka(e){return ka=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ka(e)}var ft=(function(e){nI(r,e);var t=iI(r);function r(n,i){var a;QC(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,s=o.attributeName,c=o.from,f=o.to,l=o.steps,d=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(If(a)),a.changeStyle=a.changeStyle.bind(If(a)),!u||p<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:f}),Cf(a);if(l&&l.length)a.state={style:l[0].style};else if(c){if(typeof d=="function")return a.state={style:c},Cf(a);a.state={style:s?Nn({},s,c):c}}else a.state={style:{}};return a}return tI(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,s=a.attributeName,c=a.shouldReAnimate,f=a.to,l=a.from,d=this.state.style;if(u){if(!o){var p={style:s?Nn({},s,f):f};this.state&&d&&(s&&d[s]!==f||!s&&d!==f)&&this.setState(p);return}if(!(fC(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=y||c?l:i.to;if(this.state&&d){var h={style:s?Nn({},s,v):v};(s&&d[s]!==v||!s&&d!==v)&&this.setState(h)}this.runAnimation(ot(ot({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,s=i.duration,c=i.easing,f=i.begin,l=i.onAnimationEnd,d=i.onAnimationStart,p=KC(o,u,IC(c),s,this.changeStyle),y=function(){a.stopJSAnimation=p()};this.manager.start([d,f,y,s,l])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,s=i.onAnimationStart,c=o[0],f=c.style,l=c.duration,d=l===void 0?0:l,p=function(v,h,g){if(g===0)return v;var x=h.duration,w=h.easing,O=w===void 0?"ease":w,m=h.style,b=h.properties,_=h.onAnimationEnd,A=g>0?o[g-1]:h,P=b||Object.keys(m);if(typeof O=="function"||O==="spring")return[].concat(dl(v),[a.runJSAnimation.bind(a,{from:A.style,to:m,duration:x,easing:O}),x]);var E=Rg(P,x,O),j=ot(ot(ot({},A.style),m),{},{transition:E});return[].concat(dl(v),[j,x,_]).filter(OC)};return this.manager.start([s].concat(dl(o.reduce(p,[f,Math.max(d,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=gC());var a=i.begin,o=i.duration,u=i.attributeName,s=i.to,c=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,d=i.steps,p=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof c=="function"||typeof p=="function"||c==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var v=u?Nn({},u,s):s,h=Rg(Object.keys(v),o,c);y.start([f,a,ot(ot({},v),{},{transition:h}),o,l])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var s=GC(i,HC),c=N.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||c===0||o<=0)return a;var l=function(p){var y=p.props,v=y.style,h=v===void 0?{}:v,g=y.className,x=N.cloneElement(p,ot(ot({},s),{},{style:ot(ot({},h),f),className:g}));return x};return c===1?l(N.Children.only(a)):S.createElement("div",null,N.Children.map(a,function(d){return l(d)}))}}]),r})(N.PureComponent);ft.displayName="Animate";ft.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ft.propTypes={from:ae.oneOfType([ae.object,ae.string]),to:ae.oneOfType([ae.object,ae.string]),attributeName:ae.string,duration:ae.number,begin:ae.number,easing:ae.oneOfType([ae.string,ae.func]),steps:ae.arrayOf(ae.shape({duration:ae.number.isRequired,style:ae.object.isRequired,easing:ae.oneOfType([ae.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ae.func]),properties:ae.arrayOf("string"),onAnimationEnd:ae.func})),children:ae.oneOfType([ae.node,ae.func]),isActive:ae.bool,canBegin:ae.bool,onAnimationEnd:ae.func,shouldReAnimate:ae.bool,onAnimationStart:ae.func,onAnimationReStart:ae.func};function pi(e){"@babel/helpers - typeof";return pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pi(e)}function Ma(){return Ma=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},Ma.apply(this,arguments)}function oI(e,t){return lI(e)||cI(e,t)||sI(e,t)||uI()}function uI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
46In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sI(e,t){if(e){if(typeof e=="string")return Fg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fg(e,t)}}function Fg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function cI(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function lI(e){if(Array.isArray(e))return e}function zg(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 Wg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zg(Object(r),!0).forEach(function(n){fI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fI(e,t,r){return t=dI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dI(e){var t=hI(e,"string");return pi(t)=="symbol"?t:t+""}function hI(e,t){if(pi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ug=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,s=n>=0?1:-1,c=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var l=[0,0,0,0],d=0,p=4;d<p;d++)l[d]=a[d]>o?o:a[d];f="M".concat(t,",").concat(r+u*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(c,",").concat(t+s*l[0],",").concat(r)),f+="L ".concat(t+n-s*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(c,`,
47        `).concat(t+n,",").concat(r+u*l[1])),f+="L ".concat(t+n,",").concat(r+i-u*l[2]),l[2]>0&&(f+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(c,`,
48        `).concat(t+n-s*l[2],",").concat(r+i)),f+="L ".concat(t+s*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(c,`,
49        `).concat(t,",").concat(r+i-u*l[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);f="M ".concat(t,",").concat(r+u*y,`
50            A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+s*y,",").concat(r,`
51            L `).concat(t+n-s*y,",").concat(r,`
52            A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n,",").concat(r+u*y,`
53            L `).concat(t+n,",").concat(r+i-u*y,`
54            A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n-s*y,",").concat(r+i,`
55            L `).concat(t+s*y,",").concat(r+i,`
56            A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t,",").concat(r+i-u*y," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},pI=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,s=r.height;if(Math.abs(u)>0&&Math.abs(s)>0){var c=Math.min(a,a+u),f=Math.max(a,a+u),l=Math.min(o,o+s),d=Math.max(o,o+s);return n>=c&&n<=f&&i>=l&&i<=d}return!1},vI={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},rh=function(t){var r=Wg(Wg({},vI),t),n=N.useRef(),i=N.useState(-1),a=oI(i,2),o=a[0],u=a[1];N.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&u(O)}catch{}},[]);var s=r.x,c=r.y,f=r.width,l=r.height,d=r.radius,p=r.className,y=r.animationEasing,v=r.animationDuration,h=r.animationBegin,g=r.isAnimationActive,x=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||f===0||l===0)return null;var w=Z("recharts-rectangle",p);return x?S.createElement(ft,{canBegin:o>0,from:{width:f,height:l,x:s,y:c},to:{width:f,height:l,x:s,y:c},duration:v,animationEasing:y,isActive:x},function(O){var m=O.width,b=O.height,_=O.x,A=O.y;return S.createElement(ft,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:v,isActive:g,easing:y},S.createElement("path",Ma({},H(r,!0),{className:w,d:Ug(_,A,m,b,d),ref:n})))}):S.createElement("path",Ma({},H(r,!0),{className:w,d:Ug(s,c,f,l,d)}))},yI=["points","className","baseLinePoints","connectNulls"];function Dr(){return Dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dr.apply(this,arguments)}function mI(e,t){if(e==null)return{};var r=gI(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 gI(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 Kg(e){return OI(e)||wI(e)||xI(e)||bI()}function bI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
57In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xI(e,t){if(e){if(typeof e=="string")return Rf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Rf(e,t)}}function wI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OI(e){if(Array.isArray(e))return Rf(e)}function Rf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Hg=function(t){return t&&t.x===+t.x&&t.y===+t.y},_I=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){Hg(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),Hg(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Fn=function(t,r){var n=_I(t);r&&(n=[n.reduce(function(a,o){return[].concat(Kg(a),Kg(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,u,s){return"".concat(o).concat(s===0?"M":"L").concat(u.x,",").concat(u.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},AI=function(t,r,n){var i=Fn(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Fn(r.reverse(),n).slice(1))},SI=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=mI(t,yI);if(!r||!r.length)return null;var u=Z("recharts-polygon",n);if(i&&i.length){var s=o.stroke&&o.stroke!=="none",c=AI(r,i,a);return S.createElement("g",{className:u},S.createElement("path",Dr({},H(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:c})),s?S.createElement("path",Dr({},H(o,!0),{fill:"none",d:Fn(r,a)})):null,s?S.createElement("path",Dr({},H(o,!0),{fill:"none",d:Fn(i,a)})):null)}var f=Fn(r,a);return S.createElement("path",Dr({},H(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:u,d:f}))};function Nf(){return Nf=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},Nf.apply(this,arguments)}var Mi=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=Z("recharts-dot",a);return r===+r&&n===+n&&i===+i?N.createElement("circle",Nf({},H(t,!1),Qi(t),{className:o,cx:r,cy:n,r:i})):null};function vi(e){"@babel/helpers - typeof";return vi=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},vi(e)}var PI=["x","y","top","left","width","height","className"];function Df(){return Df=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},Df.apply(this,arguments)}function Gg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function TI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gg(Object(r),!0).forEach(function(n){jI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jI(e,t,r){return t=EI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EI(e){var t=$I(e,"string");return vi(t)=="symbol"?t:t+""}function $I(e,t){if(vi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kI(e,t){if(e==null)return{};var r=MI(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 MI(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 CI=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},II=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,s=t.left,c=s===void 0?0:s,f=t.width,l=f===void 0?0:f,d=t.height,p=d===void 0?0:d,y=t.className,v=kI(t,PI),h=TI({x:n,y:a,top:u,left:c,width:l,height:p},v);return!q(n)||!q(a)||!q(l)||!q(p)||!q(u)||!q(c)?null:S.createElement("path",Df({},H(h,!0),{className:Z("recharts-cross",y),d:CI(n,a,l,p,u,c)}))},hl,Vg;function RI(){if(Vg)return hl;Vg=1;var e=bo(),t=ew(),r=wt();function n(i,a){return i&&i.length?e(i,r(a,2),t):void 0}return hl=n,hl}var NI=RI();const DI=ue(NI);var pl,Xg;function LI(){if(Xg)return pl;Xg=1;var e=bo(),t=wt(),r=tw();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return pl=n,pl}var qI=LI();const BI=ue(qI);var FI=["cx","cy","angle","ticks","axisLine"],zI=["ticks","tick","angle","tickFormatter","stroke"];function en(e){"@babel/helpers - typeof";return en=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},en(e)}function zn(){return zn=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},zn.apply(this,arguments)}function Yg(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 rr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yg(Object(r),!0).forEach(function(n){_o(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jg(e,t){if(e==null)return{};var r=WI(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 WI(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 UI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zg(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,Fw(n.key),n)}}function KI(e,t,r){return t&&Zg(e.prototype,t),r&&Zg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function HI(e,t,r){return t=Ca(t),GI(e,Bw()?Reflect.construct(t,r||[],Ca(e).constructor):t.apply(e,r))}function GI(e,t){if(t&&(en(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VI(e)}function VI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bw=function(){return!!e})()}function Ca(e){return Ca=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ca(e)}function XI(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&&Lf(e,t)}function Lf(e,t){return Lf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Lf(e,t)}function _o(e,t,r){return t=Fw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fw(e){var t=YI(e,"string");return en(t)=="symbol"?t:t+""}function YI(e,t){if(en(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(en(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ao=(function(e){function t(){return UI(this,t),HI(this,t,arguments)}return XI(t,e),KI(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,u=a.cx,s=a.cy;return fe(u,s,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,s=DI(u,function(f){return f.coordinate||0}),c=BI(u,function(f){return f.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:c.coordinate||0,outerRadius:s.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,s=n.axisLine,c=Jg(n,FI),f=u.reduce(function(y,v){return[Math.min(y[0],v.coordinate),Math.max(y[1],v.coordinate)]},[1/0,-1/0]),l=fe(i,a,f[0],o),d=fe(i,a,f[1],o),p=rr(rr(rr({},H(c,!1)),{},{fill:"none"},H(s,!1)),{},{x1:l.x,y1:l.y,x2:d.x,y2:d.y});return S.createElement("line",zn({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.angle,s=i.tickFormatter,c=i.stroke,f=Jg(i,zI),l=this.getTickTextAnchor(),d=H(f,!1),p=H(o,!1),y=a.map(function(v,h){var g=n.getTickValueCoord(v),x=rr(rr(rr(rr({textAnchor:l,transform:"rotate(".concat(90-u,", ").concat(g.x,", ").concat(g.y,")")},d),{},{stroke:"none",fill:c},p),{},{index:h},g),{},{payload:v});return S.createElement(te,zn({className:Z("recharts-polar-radius-axis-tick",Ew(o)),key:"tick-".concat(v.coordinate)},gr(n.props,v,h)),t.renderTickItem(o,x,s?s(v.value,h):v.value))});return S.createElement(te,{className:"recharts-polar-radius-axis-ticks"},y)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:S.createElement(te,{className:Z("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),Ee.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return S.isValidElement(n)?o=S.cloneElement(n,i):V(n)?o=n(i):o=S.createElement(br,zn({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])})(N.PureComponent);_o(Ao,"displayName","PolarRadiusAxis");_o(Ao,"axisType","radiusAxis");_o(Ao,"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 tn(e){"@babel/helpers - typeof";return tn=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},tn(e)}function ur(){return ur=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},ur.apply(this,arguments)}function Qg(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 nr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qg(Object(r),!0).forEach(function(n){So(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eb(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,Ww(n.key),n)}}function ZI(e,t,r){return t&&eb(e.prototype,t),r&&eb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function QI(e,t,r){return t=Ia(t),e2(e,zw()?Reflect.construct(t,r||[],Ia(e).constructor):t.apply(e,r))}function e2(e,t){if(t&&(tn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t2(e)}function t2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zw=function(){return!!e})()}function Ia(e){return Ia=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ia(e)}function r2(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&&qf(e,t)}function qf(e,t){return qf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qf(e,t)}function So(e,t,r){return t=Ww(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ww(e){var t=n2(e,"string");return tn(t)=="symbol"?t:t+""}function n2(e,t){if(tn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(tn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i2=Math.PI/180,tb=1e-5,Po=(function(e){function t(){return JI(this,t),QI(this,t,arguments)}return r2(t,e),ZI(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,u=i.radius,s=i.orientation,c=i.tickSize,f=c||8,l=fe(a,o,u,n.coordinate),d=fe(a,o,u+(s==="inner"?-1:1)*f,n.coordinate);return{x1:l.x,y1:l.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*i2),o;return a>tb?o=i==="outer"?"start":"end":a<-tb?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,u=n.axisLine,s=n.axisLineType,c=nr(nr({},H(this.props,!1)),{},{fill:"none"},H(u,!1));if(s==="circle")return S.createElement(Mi,ur({className:"recharts-polar-angle-axis-line"},c,{cx:i,cy:a,r:o}));var f=this.props.ticks,l=f.map(function(d){return fe(i,a,o,d.coordinate)});return S.createElement(SI,ur({className:"recharts-polar-angle-axis-line"},c,{points:l}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.tickLine,s=i.tickFormatter,c=i.stroke,f=H(this.props,!1),l=H(o,!1),d=nr(nr({},f),{},{fill:"none"},H(u,!1)),p=a.map(function(y,v){var h=n.getTickLineCoord(y),g=n.getTickTextAnchor(y),x=nr(nr(nr({textAnchor:g},f),{},{stroke:"none",fill:c},l),{},{index:v,payload:y,x:h.x2,y:h.y2});return S.createElement(te,ur({className:Z("recharts-polar-angle-axis-tick",Ew(o)),key:"tick-".concat(y.coordinate)},gr(n.props,y,v)),u&&S.createElement("line",ur({className:"recharts-polar-angle-axis-tick-line"},d,h)),o&&t.renderTickItem(o,x,s?s(y.value,v):y.value))});return S.createElement(te,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:S.createElement(te,{className:Z("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return S.isValidElement(n)?o=S.cloneElement(n,i):V(n)?o=n(i):o=S.createElement(br,ur({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])})(N.PureComponent);So(Po,"displayName","PolarAngleAxis");So(Po,"axisType","angleAxis");So(Po,"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 vl,rb;function a2(){if(rb)return vl;rb=1;var e=ex(),t=e(Object.getPrototypeOf,Object);return vl=t,vl}var yl,nb;function o2(){if(nb)return yl;nb=1;var e=Mt(),t=a2(),r=Ct(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,s=o.call(Object);function c(f){if(!r(f)||e(f)!=n)return!1;var l=t(f);if(l===null)return!0;var d=u.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&o.call(d)==s}return yl=c,yl}var u2=o2();const s2=ue(u2);var ml,ib;function c2(){if(ib)return ml;ib=1;var e=Mt(),t=Ct(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return ml=n,ml}var l2=c2();const f2=ue(l2);function yi(e){"@babel/helpers - typeof";return yi=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},yi(e)}function Ra(){return Ra=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ra.apply(this,arguments)}function d2(e,t){return y2(e)||v2(e,t)||p2(e,t)||h2()}function h2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
58In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p2(e,t){if(e){if(typeof e=="string")return ab(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ab(e,t)}}function ab(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function v2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function y2(e){if(Array.isArray(e))return e}function ob(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ub(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ob(Object(r),!0).forEach(function(n){m2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ob(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function m2(e,t,r){return t=g2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g2(e){var t=b2(e,"string");return yi(t)=="symbol"?t:t+""}function b2(e,t){if(yi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sb=function(t,r,n,i,a){var o=n-i,u;return u="M ".concat(t,",").concat(r),u+="L ".concat(t+n,",").concat(r),u+="L ".concat(t+n-o/2,",").concat(r+a),u+="L ".concat(t+n-o/2-i,",").concat(r+a),u+="L ".concat(t,",").concat(r," Z"),u},x2={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},w2=function(t){var r=ub(ub({},x2),t),n=N.useRef(),i=N.useState(-1),a=d2(i,2),o=a[0],u=a[1];N.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&u(w)}catch{}},[]);var s=r.x,c=r.y,f=r.upperWidth,l=r.lowerWidth,d=r.height,p=r.className,y=r.animationEasing,v=r.animationDuration,h=r.animationBegin,g=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||d!==+d||f===0&&l===0||d===0)return null;var x=Z("recharts-trapezoid",p);return g?S.createElement(ft,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:s,y:c},to:{upperWidth:f,lowerWidth:l,height:d,x:s,y:c},duration:v,animationEasing:y,isActive:g},function(w){var O=w.upperWidth,m=w.lowerWidth,b=w.height,_=w.x,A=w.y;return S.createElement(ft,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:v,easing:y},S.createElement("path",Ra({},H(r,!0),{className:x,d:sb(_,A,O,m,b),ref:n})))}):S.createElement("g",null,S.createElement("path",Ra({},H(r,!0),{className:x,d:sb(s,c,f,l,d)})))},O2=["option","shapeType","propTransformer","activeClassName","isActive"];function mi(e){"@babel/helpers - typeof";return mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mi(e)}function _2(e,t){if(e==null)return{};var r=A2(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 A2(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 cb(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 Na(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cb(Object(r),!0).forEach(function(n){S2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function S2(e,t,r){return t=P2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P2(e){var t=T2(e,"string");return mi(t)=="symbol"?t:t+""}function T2(e,t){if(mi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function j2(e,t){return Na(Na({},t),e)}function E2(e,t){return e==="symbols"}function lb(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return S.createElement(rh,r);case"trapezoid":return S.createElement(w2,r);case"sector":return S.createElement(Mw,r);case"symbols":if(E2(t))return S.createElement(wd,r);break;default:return null}}function $2(e){return N.isValidElement(e)?e.props:e}function Uw(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?j2:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,s=_2(e,O2),c;if(N.isValidElement(t))c=N.cloneElement(t,Na(Na({},s),$2(t)));else if(V(t))c=t(s);else if(s2(t)&&!f2(t)){var f=i(t,s);c=S.createElement(lb,{shapeType:r,elementProps:f})}else{var l=s;c=S.createElement(lb,{shapeType:r,elementProps:l})}return u?S.createElement(te,{className:o},c):c}function To(e,t){return t!=null&&"trapezoids"in e.props}function jo(e,t){return t!=null&&"sectors"in e.props}function gi(e,t){return t!=null&&"points"in e.props}function k2(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function M2(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function C2(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function I2(e,t){var r;return To(e,t)?r=k2:jo(e,t)?r=M2:gi(e,t)&&(r=C2),r}function R2(e,t){var r;return To(e,t)?r="trapezoids":jo(e,t)?r="sectors":gi(e,t)&&(r="points"),r}function N2(e,t){if(To(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(jo(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return gi(e,t)?t.payload:{}}function D2(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=R2(r,t),a=N2(r,t),o=n.filter(function(s,c){var f=xr(a,s),l=r.props[i].filter(function(y){var v=I2(r,t);return v(y,t)}),d=r.props[i].indexOf(l[l.length-1]),p=c===d;return f&&p}),u=n.indexOf(o[o.length-1]);return u}var Ji;function rn(e){"@babel/helpers - typeof";return rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rn(e)}function Lr(){return Lr=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},Lr.apply(this,arguments)}function fb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fb(Object(r),!0).forEach(function(n){rt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function L2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function db(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,Hw(n.key),n)}}function q2(e,t,r){return t&&db(e.prototype,t),r&&db(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function B2(e,t,r){return t=Da(t),F2(e,Kw()?Reflect.construct(t,r||[],Da(e).constructor):t.apply(e,r))}function F2(e,t){if(t&&(rn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return z2(e)}function z2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Kw=function(){return!!e})()}function Da(e){return Da=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Da(e)}function W2(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&&Bf(e,t)}function Bf(e,t){return Bf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Bf(e,t)}function rt(e,t,r){return t=Hw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hw(e){var t=U2(e,"string");return rn(t)=="symbol"?t:t+""}function U2(e,t){if(rn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Rt=(function(e){function t(r){var n;return L2(this,t),n=B2(this,t,[r]),rt(n,"pieRef",null),rt(n,"sectorRefs",[]),rt(n,"id",Sr("recharts-pie-")),rt(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),V(i)&&i()}),rt(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),V(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return W2(t,e),q2(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,u=a.labelLine,s=a.dataKey,c=a.valueKey,f=H(this.props,!1),l=H(o,!1),d=H(u,!1),p=o&&o.offsetRadius||20,y=n.map(function(v,h){var g=(v.startAngle+v.endAngle)/2,x=fe(v.cx,v.cy,v.outerRadius+p,g),w=ce(ce(ce(ce({},f),v),{},{stroke:"none"},l),{},{index:h,textAnchor:t.getTextAnchor(x.x,v.cx)},x),O=ce(ce(ce(ce({},f),v),{},{fill:"none",stroke:v.fill},d),{},{index:h,points:[fe(v.cx,v.cy,v.outerRadius,g),x]}),m=s;return J(s)&&J(c)?m="value":J(s)&&(m=c),S.createElement(te,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(h)},u&&t.renderLabelLineItem(u,O,"line"),t.renderLabelItem(o,w,me(v,m)))});return S.createElement(te,{className:"recharts-pie-labels"},y)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,u=a.blendStroke,s=a.inactiveShape;return n.map(function(c,f){if(c?.startAngle===0&&c?.endAngle===0&&n.length!==1)return null;var l=i.isActiveIndex(f),d=s&&i.hasActiveIndex()?s:null,p=l?o:d,y=ce(ce({},c),{},{stroke:u?c.fill:c.stroke,tabIndex:-1});return S.createElement(te,Lr({ref:function(h){h&&!i.sectorRefs.includes(h)&&i.sectorRefs.push(h)},tabIndex:-1,className:"recharts-pie-sector"},gr(i.props,c,f),{key:"sector-".concat(c?.startAngle,"-").concat(c?.endAngle,"-").concat(c.midAngle,"-").concat(f)}),S.createElement(Uw,Lr({option:p,isActive:l,shapeType:"sector"},y)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,u=i.animationBegin,s=i.animationDuration,c=i.animationEasing,f=i.animationId,l=this.state,d=l.prevSectors,p=l.prevIsAnimationActive;return S.createElement(ft,{begin:u,duration:s,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(y){var v=y.t,h=[],g=a&&a[0],x=g.startAngle;return a.forEach(function(w,O){var m=d&&d[O],b=O>0?Ve(w,"paddingAngle",0):0;if(m){var _=Se(m.endAngle-m.startAngle,w.endAngle-w.startAngle),A=ce(ce({},w),{},{startAngle:x+b,endAngle:x+_(v)+b});h.push(A),x=A.endAngle}else{var P=w.endAngle,E=w.startAngle,j=Se(0,P-E),T=j(v),$=ce(ce({},w),{},{startAngle:x+b,endAngle:x+T+b});h.push($),x=$.endAngle}}),S.createElement(te,null,n.renderSectorsStatically(h))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var u=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[u].focus(),i.setState({sectorToFocus:u});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!xr(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,u=i.className,s=i.label,c=i.cx,f=i.cy,l=i.innerRadius,d=i.outerRadius,p=i.isAnimationActive,y=this.state.isAnimationFinished;if(a||!o||!o.length||!q(c)||!q(f)||!q(l)||!q(d))return null;var v=Z("recharts-pie",u);return S.createElement(te,{tabIndex:this.props.rootTabIndex,className:v,ref:function(g){n.pieRef=g}},this.renderSectors(),s&&this.renderLabels(o),Ee.renderCallByParent(this.props,null,!1),(!p||y)&&mt.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(S.isValidElement(n))return S.cloneElement(n,i);if(V(n))return n(i);var o=Z("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return S.createElement(vr,Lr({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(S.isValidElement(n))return S.cloneElement(n,i);var o=a;if(V(n)&&(o=n(i),S.isValidElement(o)))return o;var u=Z("recharts-pie-label-text",typeof n!="boolean"&&!V(n)?n.className:"");return S.createElement(br,Lr({},i,{alignmentBaseline:"middle",className:u}),o)}}])})(N.PureComponent);Ji=Rt;rt(Rt,"displayName","Pie");rt(Rt,"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:!Ht.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});rt(Rt,"parseDeltaAngle",function(e,t){var r=Ne(t-e),n=Math.min(Math.abs(t-e),360);return r*n});rt(Rt,"getRealPieData",function(e){var t=e.data,r=e.children,n=H(e,!1),i=Xe(r,fo);return t&&t.length?t.map(function(a,o){return ce(ce(ce({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return ce(ce({},n),a.props)}):[]});rt(Rt,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=jw(i,a),u=n+De(e.cx,i,i/2),s=r+De(e.cy,a,a/2),c=De(e.innerRadius,o,0),f=De(e.outerRadius,o,o*.8),l=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:u,cy:s,innerRadius:c,outerRadius:f,maxRadius:l}});rt(Rt,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?ce(ce({},t.type.defaultProps),t.props):t.props,i=Ji.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,u=n.endAngle,s=n.paddingAngle,c=n.dataKey,f=n.nameKey,l=n.valueKey,d=n.tooltipType,p=Math.abs(n.minAngle),y=Ji.parseCoordinateOfPie(n,r),v=Ji.parseDeltaAngle(o,u),h=Math.abs(v),g=c;J(c)&&J(l)?(lt(!1,`Use "dataKey" to specify the value of pie,
59      the props "valueKey" will be deprecated in 1.1.0`),g="value"):J(c)&&(lt(!1,`Use "dataKey" to specify the value of pie,
60      the props "valueKey" will be deprecated in 1.1.0`),g=l);var x=i.filter(function(A){return me(A,g,0)!==0}).length,w=(h>=360?x:x-1)*s,O=h-x*p-w,m=i.reduce(function(A,P){var E=me(P,g,0);return A+(q(E)?E:0)},0),b;if(m>0){var _;b=i.map(function(A,P){var E=me(A,g,0),j=me(A,f,P),T=(q(E)?E:0)/m,$;P?$=_.endAngle+Ne(v)*s*(E!==0?1:0):$=o;var M=$+Ne(v)*((E!==0?p:0)+T*O),k=($+M)/2,R=(y.innerRadius+y.outerRadius)/2,D=[{name:j,value:E,payload:A,dataKey:g,type:d}],B=fe(y.cx,y.cy,R,k);return _=ce(ce(ce({percent:T,cornerRadius:a,name:j,tooltipPayload:D,midAngle:k,middleRadius:R,tooltipPosition:B},A),y),{},{value:me(A,g),startAngle:$,endAngle:M,payload:A,paddingAngle:Ne(v)*s}),_})}return ce(ce({},y),{},{sectors:b,data:i})});var gl,hb;function K2(){if(hb)return gl;hb=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var u=-1,s=t(e((i-n)/(a||1)),0),c=Array(s);s--;)c[o?s:++u]=n,n+=a;return c}return gl=r,gl}var bl,pb;function Gw(){if(pb)return bl;pb=1;var e=yx(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return bl=n,bl}var xl,vb;function H2(){if(vb)return xl;vb=1;var e=K2(),t=lo(),r=Gw();function n(i){return function(a,o,u){return u&&typeof u!="number"&&t(a,o,u)&&(o=u=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),u=u===void 0?a<o?1:-1:r(u),e(a,o,u,i)}}return xl=n,xl}var wl,yb;function G2(){if(yb)return wl;yb=1;var e=H2(),t=e();return wl=t,wl}var V2=G2();const La=ue(V2);function bi(e){"@babel/helpers - typeof";return bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bi(e)}function mb(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 gb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mb(Object(r),!0).forEach(function(n){Vw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vw(e,t,r){return t=X2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X2(e){var t=Y2(e,"string");return bi(t)=="symbol"?t:t+""}function Y2(e,t){if(bi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var J2=["Webkit","Moz","O","ms"],Z2=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=J2.reduce(function(a,o){return gb(gb({},a),{},Vw({},o+n,r))},{});return i[t]=r,i};function nn(e){"@babel/helpers - typeof";return nn=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},nn(e)}function qa(){return qa=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},qa.apply(this,arguments)}function bb(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 Ol(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bb(Object(r),!0).forEach(function(n){Ke(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Q2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Yw(n.key),n)}}function eR(e,t,r){return t&&xb(e.prototype,t),r&&xb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function tR(e,t,r){return t=Ba(t),rR(e,Xw()?Reflect.construct(t,r||[],Ba(e).constructor):t.apply(e,r))}function rR(e,t){if(t&&(nn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nR(e)}function nR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Xw=function(){return!!e})()}
vendor: 130,042 bytes, lines 60-65
60function Ba(e){return Ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ba(e)}function iR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ff(e,t)}function Ff(e,t){return Ff=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ff(e,t)}function Ke(e,t,r){return t=Yw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yw(e){var t=aR(e,"string");return nn(t)=="symbol"?t:t+""}function aR(e,t){if(nn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(nn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var oR=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,u=t.travellerWidth;if(!r||!r.length)return{};var s=r.length,c=Ln().domain(La(0,s)).range([a,a+o-u]),f=c.domain().map(function(l){return c(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(i),scale:c,scaleValues:f}},wb=function(t){return t.changedTouches&&!!t.changedTouches.length},an=(function(e){function t(r){var n;return Q2(this,t),n=tR(this,t,[r]),Ke(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Ke(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Ke(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o?.({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),Ke(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Ke(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Ke(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Ke(n,"handleSlideDragStart",function(i){var a=wb(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return iR(t,e),eR(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,s=u.gap,c=u.data,f=c.length-1,l=Math.min(i,a),d=Math.max(i,a),p=t.getIndexInRange(o,l),y=t.getIndexInRange(o,d);return{startIndex:p-p%s,endIndex:y===f?f:y-y%s}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,s=me(a[n],u,n);return V(o)?o(s,n):s}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,s=this.props,c=s.x,f=s.width,l=s.travellerWidth,d=s.startIndex,p=s.endIndex,y=s.onChange,v=n.pageX-a;v>0?v=Math.min(v,c+f-l-u,c+f-l-o):v<0&&(v=Math.max(v,c-o,c-u));var h=this.getIndex({startX:o+v,endX:u+v});(h.startIndex!==d||h.endIndex!==p)&&y&&y(h),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=wb(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,s=i.startX,c=this.state[o],f=this.props,l=f.x,d=f.width,p=f.travellerWidth,y=f.onChange,v=f.gap,h=f.data,g={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,l+d-p-c):x<0&&(x=Math.max(x,l-c)),g[o]=c+x;var w=this.getIndex(g),O=w.startIndex,m=w.endIndex,b=function(){var A=h.length-1;return o==="startX"&&(u>s?O%v===0:m%v===0)||u<s&&m===A||o==="endX"&&(u>s?m%v===0:O%v===0)||u>s&&m===A};this.setState(Ke(Ke({},o,c+x),"brushMoveStartX",n.pageX),function(){y&&b()&&y(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,s=o.startX,c=o.endX,f=this.state[i],l=u.indexOf(f);if(l!==-1){var d=l+n;if(!(d===-1||d>=u.length)){var p=u[d];i==="startX"&&p>=c||i==="endX"&&p<=s||this.setState(Ke({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.fill,c=n.stroke;return S.createElement("rect",{stroke:c,fill:s,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.data,c=n.children,f=n.padding,l=N.Children.only(c);return l?S.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,s=this.props,c=s.y,f=s.travellerWidth,l=s.height,d=s.traveller,p=s.ariaLabel,y=s.data,v=s.startIndex,h=s.endIndex,g=Math.max(n,this.props.x),x=Ol(Ol({},H(this.props,!1)),{},{x:g,y:c,width:f,height:l}),w=p||"Min value: ".concat((a=y[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[h])===null||o===void 0?void 0:o.name);return S.createElement(te,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(m){["ArrowLeft","ArrowRight"].includes(m.key)&&(m.preventDefault(),m.stopPropagation(),u.handleTravellerMoveKeyboard(m.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,s=a.stroke,c=a.travellerWidth,f=Math.min(n,i)+c,l=Math.max(Math.abs(i-n)-c,0);return S.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:f,y:o,width:l,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,s=n.travellerWidth,c=n.stroke,f=this.state,l=f.startX,d=f.endX,p=5,y={pointerEvents:"none",fill:c};return S.createElement(te,{className:"recharts-brush-texts"},S.createElement(br,qa({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,d)-p,y:o+u/2},y),this.getTextOfTick(i)),S.createElement(br,qa({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,d)+s+p,y:o+u/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,s=n.y,c=n.width,f=n.height,l=n.alwaysShowText,d=this.state,p=d.startX,y=d.endX,v=d.isTextActive,h=d.isSlideMoving,g=d.isTravellerMoving,x=d.isTravellerFocused;if(!i||!i.length||!q(u)||!q(s)||!q(c)||!q(f)||c<=0||f<=0)return null;var w=Z("recharts-brush",a),O=S.Children.count(o)===1,m=Z2("userSelect","none");return S.createElement(te,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(v||h||g||x||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,s=n.stroke,c=Math.floor(a+u/2)-1;return S.createElement(S.Fragment,null,S.createElement("rect",{x:i,y:a,width:o,height:u,fill:s,stroke:"none"}),S.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),S.createElement("line",{x1:i+1,y1:c+2,x2:i+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return S.isValidElement(n)?a=S.cloneElement(n,i):V(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,s=n.travellerWidth,c=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return Ol({prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o},a&&a.length?oR({data:a,width:o,x:u,travellerWidth:s,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||s!==i.prevTravellerWidth)){i.scale.range([u,u+o-s]);var d=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var s=Math.floor((o+u)/2);n[s]>i?u=s:o=s}return i>=n[u]?u:o}}])})(N.PureComponent);Ke(an,"displayName","Brush");Ke(an,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var _l,Ob;function uR(){if(Ob)return _l;Ob=1;var e=jd();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return _l=t,_l}var Al,_b;function sR(){if(_b)return Al;_b=1;var e=G0(),t=wt(),r=uR(),n=ze(),i=lo();function a(o,u,s){var c=n(o)?e:r;return s&&i(o,u,s)&&(u=void 0),c(o,t(u,3))}return Al=a,Al}var cR=sR();const lR=ue(cR);var gt=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Sl,Ab;function fR(){if(Ab)return Sl;Ab=1;var e=fx();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Sl=t,Sl}var Pl,Sb;function dR(){if(Sb)return Pl;Sb=1;var e=fR(),t=cx(),r=wt();function n(i,a){var o={};return a=r(a,3),t(i,function(u,s,c){e(o,s,a(u,s,c))}),o}return Pl=n,Pl}var hR=dR();const pR=ue(hR);var Tl,Pb;function vR(){if(Pb)return Tl;Pb=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return Tl=e,Tl}var jl,Tb;function yR(){if(Tb)return jl;Tb=1;var e=jd();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return jl=t,jl}var El,jb;function mR(){if(jb)return El;jb=1;var e=vR(),t=yR(),r=wt(),n=ze(),i=lo();function a(o,u,s){var c=n(o)?e:t;return s&&i(o,u,s)&&(u=void 0),c(o,r(u,3))}return El=a,El}var gR=mR();const Jw=ue(gR);var bR=["x","y"];function xi(e){"@babel/helpers - typeof";return xi=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},xi(e)}function zf(){return zf=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},zf.apply(this,arguments)}function Eb(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 Cn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Eb(Object(r),!0).forEach(function(n){xR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xR(e,t,r){return t=wR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wR(e){var t=OR(e,"string");return xi(t)=="symbol"?t:t+""}function OR(e,t){if(xi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _R(e,t){if(e==null)return{};var r=AR(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function AR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function SR(e,t){var r=e.x,n=e.y,i=_R(e,bR),a="".concat(r),o=parseInt(a,10),u="".concat(n),s=parseInt(u,10),c="".concat(t.height||i.height),f=parseInt(c,10),l="".concat(t.width||i.width),d=parseInt(l,10);return Cn(Cn(Cn(Cn(Cn({},t),i),o?{x:o}:{}),s?{y:s}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function $b(e){return S.createElement(Uw,zf({shapeType:"rectangle",propTransformer:SR,activeClassName:"recharts-active-bar"},e))}var PR=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=q(n)||GO(n);return a?t(n,i):(a||Or(),r)}},TR=["value","background"],Zw;function on(e){"@babel/helpers - typeof";return on=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},on(e)}function jR(e,t){if(e==null)return{};var r=ER(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 ER(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 Fa(){return Fa=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},Fa.apply(this,arguments)}function kb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function be(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kb(Object(r),!0).forEach(function(n){Ft(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,e1(n.key),n)}}function kR(e,t,r){return t&&Mb(e.prototype,t),r&&Mb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function MR(e,t,r){return t=za(t),CR(e,Qw()?Reflect.construct(t,r||[],za(e).constructor):t.apply(e,r))}function CR(e,t){if(t&&(on(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IR(e)}function IR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qw=function(){return!!e})()}function za(e){return za=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},za(e)}function RR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wf(e,t)}function Wf(e,t){return Wf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Wf(e,t)}function Ft(e,t,r){return t=e1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e1(e){var t=NR(e,"string");return on(t)=="symbol"?t:t+""}function NR(e,t){if(on(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(on(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var tt=(function(e){function t(){var r;$R(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=MR(this,t,[].concat(i)),Ft(r,"state",{isAnimationFinished:!1}),Ft(r,"id",Sr("recharts-bar-")),Ft(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Ft(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return RR(t,e),kR(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,s=a.activeIndex,c=a.activeBar,f=H(this.props,!1);return n&&n.map(function(l,d){var p=d===s,y=p?c:o,v=be(be(be({},f),l),{},{isActive:p,option:y,index:d,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return S.createElement(te,Fa({className:"recharts-bar-rectangle"},gr(i.props,l,d),{key:"rectangle-".concat(l?.x,"-").concat(l?.y,"-").concat(l?.value,"-").concat(d)}),S.createElement($b,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,f=i.animationEasing,l=i.animationId,d=this.state.prevData;return S.createElement(ft,{begin:s,duration:c,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var y=p.t,v=a.map(function(h,g){var x=d&&d[g];if(x){var w=Se(x.x,h.x),O=Se(x.y,h.y),m=Se(x.width,h.width),b=Se(x.height,h.height);return be(be({},h),{},{x:w(y),y:O(y),width:m(y),height:b(y)})}if(o==="horizontal"){var _=Se(0,h.height),A=_(y);return be(be({},h),{},{y:h.y+h.height-A,height:A})}var P=Se(0,h.width),E=P(y);return be(be({},h),{},{width:E})});return S.createElement(te,null,n.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!xr(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,u=i.activeIndex,s=H(this.props.background,!1);return a.map(function(c,f){c.value;var l=c.background,d=jR(c,TR);if(!l)return null;var p=be(be(be(be(be({},d),{},{fill:"#eee"},l),s),gr(n.props,c,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return S.createElement($b,Fa({key:"background-bar-".concat(f),option:n.props.background,isActive:f===u},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,u=a.xAxis,s=a.yAxis,c=a.layout,f=a.children,l=Xe(f,ki);if(!l)return null;var d=c==="vertical"?o[0].height/2:o[0].width/2,p=function(h,g){var x=Array.isArray(h.value)?h.value[1]:h.value;return{x:h.x,y:h.y,value:x,errorVal:me(h,g)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return S.createElement(te,y,l.map(function(v){return S.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:u,yAxis:s,layout:c,offset:d,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,s=n.yAxis,c=n.left,f=n.top,l=n.width,d=n.height,p=n.isAnimationActive,y=n.background,v=n.id;if(i||!a||!a.length)return null;var h=this.state.isAnimationFinished,g=Z("recharts-bar",o),x=u&&u.allowDataOverflow,w=s&&s.allowDataOverflow,O=x||w,m=J(v)?this.id:v;return S.createElement(te,{className:g},x||w?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(m)},S.createElement("rect",{x:x?c:c-l/2,y:w?f:f-d/2,width:x?l:l*2,height:w?d:d*2}))):null,S.createElement(te,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,m),(!p||h)&&mt.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(N.PureComponent);Zw=tt;Ft(tt,"displayName","Bar");Ft(tt,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ht.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Ft(tt,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,u=e.xAxisTicks,s=e.yAxisTicks,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,d=e.offset,p=uk(n,r);if(!p)return null;var y=t.layout,v=r.type.defaultProps,h=v!==void 0?be(be({},v),r.props):r.props,g=h.dataKey,x=h.children,w=h.minPointSize,O=y==="horizontal"?o:a,m=c?O.scale.domain():null,b=pk({numericAxis:O}),_=Xe(x,fo),A=l.map(function(P,E){var j,T,$,M,k,R;c?j=sk(c[f+E],m):(j=me(P,g),Array.isArray(j)||(j=[b,j]));var D=PR(w,Zw.defaultProps.minPointSize)(j[1],E);if(y==="horizontal"){var B,F=[o.scale(j[0]),o.scale(j[1])],K=F[0],X=F[1];T=og({axis:a,ticks:u,bandSize:i,offset:p.offset,entry:P,index:E}),$=(B=X??K)!==null&&B!==void 0?B:void 0,M=p.size;var W=K-X;if(k=Number.isNaN(W)?0:W,R={x:T,y:o.y,width:M,height:o.height},Math.abs(D)>0&&Math.abs(k)<Math.abs(D)){var Y=Ne(k||D)*(Math.abs(D)-Math.abs(k));$-=Y,k+=Y}}else{var de=[a.scale(j[0]),a.scale(j[1])],ge=de[0],We=de[1];if(T=ge,$=og({axis:o,ticks:s,bandSize:i,offset:p.offset,entry:P,index:E}),M=We-ge,k=p.size,R={x:a.x,y:$,width:a.width,height:k},Math.abs(D)>0&&Math.abs(M)<Math.abs(D)){var Jt=Ne(M||D)*(Math.abs(D)-Math.abs(M));M+=Jt}}return be(be(be({},P),{},{x:T,y:$,width:M,height:k,value:c?j:j[1],payload:P,background:R},_&&_[E]&&_[E].props),{},{tooltipPayload:[Pw(r,P)],tooltipPosition:{x:T+M/2,y:$+k/2}})});return be({data:A,layout:y},d)});function wi(e){"@babel/helpers - typeof";return wi=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},wi(e)}function DR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cb(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,t1(n.key),n)}}function LR(e,t,r){return t&&Cb(e.prototype,t),r&&Cb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ib(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 ut(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ib(Object(r),!0).forEach(function(n){Eo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ib(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Eo(e,t,r){return t=t1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t1(e){var t=qR(e,"string");return wi(t)=="symbol"?t:t+""}function qR(e,t){if(wi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nh=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.layout,c=t.children,f=Object.keys(r),l={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom},d=!!He(c,tt);return f.reduce(function(p,y){var v=r[y],h=v.orientation,g=v.domain,x=v.padding,w=x===void 0?{}:x,O=v.mirror,m=v.reversed,b="".concat(h).concat(O?"Mirror":""),_,A,P,E,j;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var T=g[1]-g[0],$=1/0,M=v.categoricalDomain.sort(YO);if(M.forEach(function(de,ge){ge>0&&($=Math.min((de||0)-(M[ge-1]||0),$))}),Number.isFinite($)){var k=$/T,R=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(_=k*R/2),v.padding==="no-gap"){var D=De(t.barCategoryGap,k*R),B=k*R/2;_=B-D-(B-D)/R*D}}}i==="xAxis"?A=[n.left+(w.left||0)+(_||0),n.left+n.width-(w.right||0)-(_||0)]:i==="yAxis"?A=s==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(_||0),n.top+n.height-(w.bottom||0)-(_||0)]:A=v.range,m&&(A=[A[1],A[0]]);var F=Ow(v,a,d),K=F.scale,X=F.realScaleType;K.domain(g).range(A),_w(K);var W=Aw(K,ut(ut({},v),{},{realScaleType:X}));i==="xAxis"?(j=h==="top"&&!O||h==="bottom"&&O,P=n.left,E=l[b]-j*v.height):i==="yAxis"&&(j=h==="left"&&!O||h==="right"&&O,P=l[b]-j*v.width,E=n.top);var Y=ut(ut(ut({},v),W),{},{realScaleType:X,x:P,y:E,scale:K,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return Y.bandSize=Sa(Y,W),!v.hide&&i==="xAxis"?l[b]+=(j?-1:1)*Y.height:v.hide||(l[b]+=(j?-1:1)*Y.width),ut(ut({},p),{},Eo({},y,Y))},{})},r1=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},BR=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return r1({x:r,y:n},{x:i,y:a})},n1=(function(){function e(t){DR(this,e),this.scale=t}return LR(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(r)+u}default:return this.scale(r)}if(i){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+s}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();Eo(n1,"EPS",1e-4);var ih=function(t){var r=Object.keys(t).reduce(function(n,i){return ut(ut({},n),{},Eo({},i,n1.create(t[i])))},{});return ut(ut({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return pR(i,function(s,c){return r[c].apply(s,{bandAware:o,position:u})})},isInRange:function(i){return Jw(i,function(a,o){return r[o].isInRange(a)})}})};function FR(e){return(e%180+180)%180}var zR=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=FR(i),o=a*Math.PI/180,u=Math.atan(n/r),s=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(s)},$l,Rb;function WR(){if(Rb)return $l;Rb=1;var e=wt(),t=Pi(),r=so();function n(i){return function(a,o,u){var s=Object(a);if(!t(a)){var c=e(o,3);a=r(a),o=function(l){return c(s[l],l,s)}}var f=i(a,o,u);return f>-1?s[c?a[f]:f]:void 0}}return $l=n,$l}var kl,Nb;function UR(){if(Nb)return kl;Nb=1;var e=Gw();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return kl=t,kl}var Ml,Db;function KR(){if(Db)return Ml;Db=1;var e=ix(),t=wt(),r=UR(),n=Math.max;function i(a,o,u){var s=a==null?0:a.length;if(!s)return-1;var c=u==null?0:r(u);return c<0&&(c=n(s+c,0)),e(a,t(o,3),c)}return Ml=i,Ml}var Cl,Lb;function HR(){if(Lb)return Cl;Lb=1;var e=WR(),t=KR(),r=e(t);return Cl=r,Cl}var GR=HR();const VR=ue(GR);var XR=b0();const YR=ue(XR);var JR=YR(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),ah=N.createContext(void 0),oh=N.createContext(void 0),i1=N.createContext(void 0),a1=N.createContext({}),o1=N.createContext(void 0),u1=N.createContext(0),s1=N.createContext(0),qb=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,s=t.width,c=t.height,f=JR(a);return S.createElement(ah.Provider,{value:n},S.createElement(oh.Provider,{value:i},S.createElement(a1.Provider,{value:a},S.createElement(i1.Provider,{value:f},S.createElement(o1.Provider,{value:o},S.createElement(u1.Provider,{value:c},S.createElement(s1.Provider,{value:s},u)))))))},ZR=function(){return N.useContext(o1)},c1=function(t){var r=N.useContext(ah);r==null&&Or();var n=r[t];return n==null&&Or(),n},QR=function(){var t=N.useContext(ah);return qt(t)},eN=function(){var t=N.useContext(oh),r=VR(t,function(n){return Jw(n.domain,Number.isFinite)});return r||qt(t)},l1=function(t){var r=N.useContext(oh);r==null&&Or();var n=r[t];return n==null&&Or(),n},tN=function(){var t=N.useContext(i1);return t},rN=function(){return N.useContext(a1)},uh=function(){return N.useContext(s1)},sh=function(){return N.useContext(u1)};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)}function nN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d1(n.key),n)}}function aN(e,t,r){return t&&iN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oN(e,t,r){return t=Wa(t),uN(e,f1()?Reflect.construct(t,r||[],Wa(e).constructor):t.apply(e,r))}function uN(e,t){if(t&&(un(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sN(e)}function sN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(f1=function(){return!!e})()}function Wa(e){return Wa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wa(e)}function cN(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&&Uf(e,t)}function Uf(e,t){return Uf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Uf(e,t)}function Bb(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 Fb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bb(Object(r),!0).forEach(function(n){ch(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ch(e,t,r){return t=d1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d1(e){var t=lN(e,"string");return un(t)=="symbol"?t:t+""}function lN(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 String(e)}function fN(e,t){return vN(e)||pN(e,t)||hN(e,t)||dN()}function dN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
61In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hN(e,t){if(e){if(typeof e=="string")return zb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zb(e,t)}}function zb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pN(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function vN(e){if(Array.isArray(e))return e}function Kf(){return Kf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kf.apply(this,arguments)}var yN=function(t,r){var n;return S.isValidElement(t)?n=S.cloneElement(t,r):V(t)?n=t(r):n=S.createElement("line",Kf({},r,{className:"recharts-reference-line-line"})),n},mN=function(t,r,n,i,a,o,u,s,c){var f=a.x,l=a.y,d=a.width,p=a.height;if(n){var y=c.y,v=t.y.apply(y,{position:o});if(gt(c,"discard")&&!t.y.isInRange(v))return null;var h=[{x:f+d,y:v},{x:f,y:v}];return s==="left"?h.reverse():h}if(r){var g=c.x,x=t.x.apply(g,{position:o});if(gt(c,"discard")&&!t.x.isInRange(x))return null;var w=[{x,y:l+p},{x,y:l}];return u==="top"?w.reverse():w}if(i){var O=c.segment,m=O.map(function(b){return t.apply(b,{position:o})});return gt(c,"discard")&&lR(m,function(b){return!t.isInRange(b)})?null:m}return null};function gN(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,u=e.className,s=e.alwaysShow,c=ZR(),f=c1(i),l=l1(a),d=tN();if(!c||!d)return null;lt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=ih({x:f.scale,y:l.scale}),y=Pe(t),v=Pe(r),h=n&&n.length===2,g=mN(p,y,v,h,d,e.position,f.orientation,l.orientation,e);if(!g)return null;var x=fN(g,2),w=x[0],O=w.x,m=w.y,b=x[1],_=b.x,A=b.y,P=gt(e,"hidden")?"url(#".concat(c,")"):void 0,E=Fb(Fb({clipPath:P},H(e,!0)),{},{x1:O,y1:m,x2:_,y2:A});return S.createElement(te,{className:Z("recharts-reference-line",u)},yN(o,E),Ee.renderCallByParent(e,BR({x1:O,y1:m,x2:_,y2:A})))}var lh=(function(e){function t(){return nN(this,t),oN(this,t,arguments)}return cN(t,e),aN(t,[{key:"render",value:function(){return S.createElement(gN,this.props)}}])})(S.Component);ch(lh,"displayName","ReferenceLine");ch(lh,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Hf(){return Hf=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},Hf.apply(this,arguments)}function sn(e){"@babel/helpers - typeof";return sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sn(e)}function Wb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ub(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wb(Object(r),!0).forEach(function(n){$o(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xN(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,p1(n.key),n)}}function wN(e,t,r){return t&&xN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ON(e,t,r){return t=Ua(t),_N(e,h1()?Reflect.construct(t,r||[],Ua(e).constructor):t.apply(e,r))}function _N(e,t){if(t&&(sn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AN(e)}function AN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(h1=function(){return!!e})()}function Ua(e){return Ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ua(e)}function SN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gf(e,t)}function Gf(e,t){return Gf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gf(e,t)}function $o(e,t,r){return t=p1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p1(e){var t=PN(e,"string");return sn(t)=="symbol"?t:t+""}function PN(e,t){if(sn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var TN=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=ih({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return gt(t,"discard")&&!o.isInRange(u)?null:u},ko=(function(e){function t(){return bN(this,t),ON(this,t,arguments)}return SN(t,e),wN(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,s=n.clipPathId,c=Pe(i),f=Pe(a);if(lt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!f)return null;var l=TN(this.props);if(!l)return null;var d=l.x,p=l.y,y=this.props,v=y.shape,h=y.className,g=gt(this.props,"hidden")?"url(#".concat(s,")"):void 0,x=Ub(Ub({clipPath:g},H(this.props,!0)),{},{cx:d,cy:p});return S.createElement(te,{className:Z("recharts-reference-dot",h)},t.renderDot(v,x),Ee.renderCallByParent(this.props,{x:d-o,y:p-o,width:2*o,height:2*o}))}}])})(S.Component);$o(ko,"displayName","ReferenceDot");$o(ko,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});$o(ko,"renderDot",function(e,t){var r;return S.isValidElement(e)?r=S.cloneElement(e,t):V(e)?r=e(t):r=S.createElement(Mi,Hf({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Vf(){return Vf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vf.apply(this,arguments)}function 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 Kb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Hb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kb(Object(r),!0).forEach(function(n){Mo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y1(n.key),n)}}function $N(e,t,r){return t&&EN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kN(e,t,r){return t=Ka(t),MN(e,v1()?Reflect.construct(t,r||[],Ka(e).constructor):t.apply(e,r))}function MN(e,t){if(t&&(cn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CN(e)}function CN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(v1=function(){return!!e})()}function Ka(e){return Ka=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ka(e)}function IN(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&&Xf(e,t)}function Xf(e,t){return Xf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Xf(e,t)}function Mo(e,t,r){return t=y1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y1(e){var t=RN(e,"string");return cn(t)=="symbol"?t:t+""}function RN(e,t){if(cn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var NN=function(t,r,n,i,a){var o=a.x1,u=a.x2,s=a.y1,c=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var d=ih({x:f.scale,y:l.scale}),p={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(s,{position:"start"}):d.y.rangeMin},y={x:r?d.x.apply(u,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(c,{position:"end"}):d.y.rangeMax};return gt(a,"discard")&&(!d.isInRange(p)||!d.isInRange(y))?null:r1(p,y)},Co=(function(e){function t(){return jN(this,t),kN(this,t,arguments)}return IN(t,e),$N(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,s=n.className,c=n.alwaysShow,f=n.clipPathId;lt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Pe(i),d=Pe(a),p=Pe(o),y=Pe(u),v=this.props.shape;if(!l&&!d&&!p&&!y&&!v)return null;var h=NN(l,d,p,y,this.props);if(!h&&!v)return null;var g=gt(this.props,"hidden")?"url(#".concat(f,")"):void 0;return S.createElement(te,{className:Z("recharts-reference-area",s)},t.renderRect(v,Hb(Hb({clipPath:g},H(this.props,!0)),h)),Ee.renderCallByParent(this.props,h))}}])})(S.Component);Mo(Co,"displayName","ReferenceArea");Mo(Co,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Mo(Co,"renderRect",function(e,t){var r;return S.isValidElement(e)?r=S.cloneElement(e,t):V(e)?r=e(t):r=S.createElement(rh,Vf({},t,{className:"recharts-reference-area-rect"})),r});function m1(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function DN(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return zR(n,r)}function LN(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,u=e.height;return t===1?{start:n?i:a,end:n?i+o:a+u}:{start:n?i+o:a+u,end:n?i:a}}function Ha(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function qN(e,t){return m1(e,t+1)}function BN(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,s=0,c=1,f=o,l=function(){var y=n?.[s];if(y===void 0)return{v:m1(n,c)};var v=s,h,g=function(){return h===void 0&&(h=r(y,v)),h},x=y.coordinate,w=s===0||Ha(e,x,g,f,u);w||(s=0,f=o,c+=1),w&&(f=x+e*(g()/2+i),s+=c)},d;c<=a.length;)if(d=l(),d)return d.v;return[]}function Oi(e){"@babel/helpers - typeof";return Oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oi(e)}function Gb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gb(Object(r),!0).forEach(function(n){FN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FN(e,t,r){return t=zN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zN(e){var t=WN(e,"string");return Oi(t)=="symbol"?t:t+""}function WN(e,t){if(Oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UN(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,s=t.end,c=function(d){var p=a[d],y,v=function(){return y===void 0&&(y=r(p,d)),y};if(d===o-1){var h=e*(p.coordinate+e*v()/2-s);a[d]=p=Ce(Ce({},p),{},{tickCoord:h>0?p.coordinate-h*e:p.coordinate})}else a[d]=p=Ce(Ce({},p),{},{tickCoord:p.coordinate});var g=Ha(e,p.tickCoord,v,u,s);g&&(s=p.tickCoord-e*(v()/2+i),a[d]=Ce(Ce({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)c(f);return a}function KN(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,s=t.start,c=t.end;if(a){var f=n[u-1],l=r(f,u-1),d=e*(f.coordinate+e*l/2-c);o[u-1]=f=Ce(Ce({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var p=Ha(e,f.tickCoord,function(){return l},s,c);p&&(c=f.tickCoord-e*(l/2+i),o[u-1]=Ce(Ce({},f),{},{isShow:!0}))}for(var y=a?u-1:u,v=function(x){var w=o[x],O,m=function(){return O===void 0&&(O=r(w,x)),O};if(x===0){var b=e*(w.coordinate-e*m()/2-s);o[x]=w=Ce(Ce({},w),{},{tickCoord:b<0?w.coordinate-b*e:w.coordinate})}else o[x]=w=Ce(Ce({},w),{},{tickCoord:w.coordinate});var _=Ha(e,w.tickCoord,m,s,c);_&&(s=w.tickCoord+e*(m()/2+i),o[x]=Ce(Ce({},w),{},{isShow:!0}))},h=0;h<y;h++)v(h);return o}function fh(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,s=e.interval,c=e.tickFormatter,f=e.unit,l=e.angle;if(!i||!i.length||!n)return[];if(q(s)||Ht.isSsr)return qN(i,typeof s=="number"&&q(s)?s:0);var d=[],p=u==="top"||u==="bottom"?"width":"height",y=f&&p==="width"?Dn(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(w,O){var m=V(c)?c(w.value,O):w.value;return p==="width"?DN(Dn(m,{fontSize:t,letterSpacing:r}),y,l):Dn(m,{fontSize:t,letterSpacing:r})[p]},h=i.length>=2?Ne(i[1].coordinate-i[0].coordinate):1,g=LN(a,h,p);return s==="equidistantPreserveStart"?BN(h,g,v,i,o):(s==="preserveStart"||s==="preserveStartEnd"?d=KN(h,g,v,i,o,s==="preserveStartEnd"):d=UN(h,g,v,i,o),d.filter(function(x){return x.isShow}))}var HN=["viewBox"],GN=["viewBox"],VN=["ticks"];function ln(e){"@babel/helpers - typeof";return ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ln(e)}function qr(){return qr=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},qr.apply(this,arguments)}function Vb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vb(Object(r),!0).forEach(function(n){dh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Il(e,t){if(e==null)return{};var r=XN(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 XN(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 YN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,b1(n.key),n)}}function JN(e,t,r){return t&&Xb(e.prototype,t),r&&Xb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZN(e,t,r){return t=Ga(t),QN(e,g1()?Reflect.construct(t,r||[],Ga(e).constructor):t.apply(e,r))}function QN(e,t){if(t&&(ln(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eD(e)}function eD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(g1=function(){return!!e})()}function Ga(e){return Ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ga(e)}function tD(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&&Yf(e,t)}function Yf(e,t){return Yf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yf(e,t)}function dh(e,t,r){return t=b1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b1(e){var t=rD(e,"string");return ln(t)=="symbol"?t:t+""}function rD(e,t){if(ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var An=(function(e){function t(r){var n;return YN(this,t),n=ZN(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return tD(t,e),JN(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Il(n,HN),u=this.props,s=u.viewBox,c=Il(u,GN);return!Fr(a,s)||!Fr(o,c)||!Fr(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,u=i.width,s=i.height,c=i.orientation,f=i.tickSize,l=i.mirror,d=i.tickMargin,p,y,v,h,g,x,w=l?-1:1,O=n.tickSize||f,m=q(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":p=y=n.coordinate,h=o+ +!l*s,v=h-w*O,x=v-w*d,g=m;break;case"left":v=h=n.coordinate,y=a+ +!l*u,p=y-w*O,g=p-w*d,x=m;break;case"right":v=h=n.coordinate,y=a+ +l*u,p=y+w*O,g=p+w*d,x=m;break;default:p=y=n.coordinate,h=o+ +l*s,v=h+w*O,x=v+w*d,g=m;break}return{line:{x1:p,y1:v,x2:y,y2:h},tick:{x:g,y:x}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.orientation,c=n.mirror,f=n.axisLine,l=_e(_e(_e({},H(this.props,!1)),H(f,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var d=+(s==="top"&&!c||s==="bottom"&&c);l=_e(_e({},l),{},{x1:i,y1:a+d*u,x2:i+o,y2:a+d*u})}else{var p=+(s==="left"&&!c||s==="right"&&c);l=_e(_e({},l),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+u})}return S.createElement("line",qr({},l,{className:Z("recharts-cartesian-axis-line",Ve(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,s=u.tickLine,c=u.stroke,f=u.tick,l=u.tickFormatter,d=u.unit,p=fh(_e(_e({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),h=H(this.props,!1),g=H(f,!1),x=_e(_e({},h),{},{fill:"none"},H(s,!1)),w=p.map(function(O,m){var b=o.getTickLineCoord(O),_=b.line,A=b.tick,P=_e(_e(_e(_e({textAnchor:y,verticalAnchor:v},h),{},{stroke:"none",fill:c},g),A),{},{index:m,payload:O,visibleTicksCount:p.length,tickFormatter:l});return S.createElement(te,qr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},gr(o.props,O,m)),s&&S.createElement("line",qr({},x,_,{className:Z("recharts-cartesian-axis-tick-line",Ve(s,"className"))})),f&&t.renderTickItem(f,P,"".concat(V(l)?l(O.value,m):O.value).concat(d||"")))});return S.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,s=i.ticksGenerator,c=i.className,f=i.hide;if(f)return null;var l=this.props,d=l.ticks,p=Il(l,VN),y=d;return V(s)&&(y=d&&d.length>0?s(this.props):s(p)),o<=0||u<=0||!y||!y.length?null:S.createElement(te,{className:Z("recharts-cartesian-axis",c),ref:function(h){n.layerReference=h}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Ee.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=Z(i.className,"recharts-cartesian-axis-tick-value");return S.isValidElement(n)?o=S.cloneElement(n,_e(_e({},i),{},{className:u})):V(n)?o=n(_e(_e({},i),{},{className:u})):o=S.createElement(br,qr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(N.Component);dh(An,"displayName","CartesianAxis");dh(An,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var nD=["x1","y1","x2","y2","key"],iD=["offset"];function _r(e){"@babel/helpers - typeof";return _r=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},_r(e)}function Yb(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 Re(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yb(Object(r),!0).forEach(function(n){aD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aD(e,t,r){return t=oD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oD(e){var t=uD(e,"string");return _r(t)=="symbol"?t:t+""}function uD(e,t){if(_r(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_r(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fr(){return fr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fr.apply(this,arguments)}function Jb(e,t){if(e==null)return{};var r=sD(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 sD(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 cD=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,u=t.height,s=t.ry;return S.createElement("rect",{x:i,y:a,ry:s,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function x1(e,t){var r;if(S.isValidElement(e))r=S.cloneElement(e,t);else if(V(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,s=Jb(t,nD),c=H(s,!1);c.offset;var f=Jb(c,iD);r=S.createElement("line",fr({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function lD(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,s){var c=Re(Re({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(s),index:s});return x1(i,c)});return S.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function fD(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,s){var c=Re(Re({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(s),index:s});return x1(i,c)});return S.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function dD(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,s=e.horizontal,c=s===void 0?!0:s;if(!c||!t||!t.length)return null;var f=u.map(function(d){return Math.round(d+i-i)}).sort(function(d,p){return d-p});i!==f[0]&&f.unshift(0);var l=f.map(function(d,p){var y=!f[p+1],v=y?i+o-d:f[p+1]-d;if(v<=0)return null;var h=p%t.length;return S.createElement("rect",{key:"react-".concat(p),y:d,x:n,height:v,width:a,stroke:"none",fill:t[h],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return S.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function hD(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,u=e.width,s=e.height,c=e.verticalPoints;if(!r||!n||!n.length)return null;var f=c.map(function(d){return Math.round(d+a-a)}).sort(function(d,p){return d-p});a!==f[0]&&f.unshift(0);var l=f.map(function(d,p){var y=!f[p+1],v=y?a+u-d:f[p+1]-d;if(v<=0)return null;var h=p%n.length;return S.createElement("rect",{key:"react-".concat(p),x:d,y:o,width:v,height:s,stroke:"none",fill:n[h],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return S.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var pD=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return ww(fh(Re(Re(Re({},An.defaultProps),n),{},{ticks:Pt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},vD=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return ww(fh(Re(Re(Re({},An.defaultProps),n),{},{ticks:Pt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},Mr={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function or(e){var t,r,n,i,a,o,u=uh(),s=sh(),c=rN(),f=Re(Re({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Mr.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Mr.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Mr.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Mr.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Mr.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Mr.verticalFill,x:q(e.x)?e.x:c.left,y:q(e.y)?e.y:c.top,width:q(e.width)?e.width:c.width,height:q(e.height)?e.height:c.height}),l=f.x,d=f.y,p=f.width,y=f.height,v=f.syncWithTicks,h=f.horizontalValues,g=f.verticalValues,x=QR(),w=eN();if(!q(p)||p<=0||!q(y)||y<=0||!q(l)||l!==+l||!q(d)||d!==+d)return null;var O=f.verticalCoordinatesGenerator||pD,m=f.horizontalCoordinatesGenerator||vD,b=f.horizontalPoints,_=f.verticalPoints;if((!b||!b.length)&&V(m)){var A=h&&h.length,P=m({yAxis:w?Re(Re({},w),{},{ticks:A?h:w.ticks}):void 0,width:u,height:s,offset:c},A?!0:v);lt(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(_r(P),"]")),Array.isArray(P)&&(b=P)}if((!_||!_.length)&&V(O)){var E=g&&g.length,j=O({xAxis:x?Re(Re({},x),{},{ticks:E?g:x.ticks}):void 0,width:u,height:s,offset:c},E?!0:v);lt(Array.isArray(j),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(_r(j),"]")),Array.isArray(j)&&(_=j)}return S.createElement("g",{className:"recharts-cartesian-grid"},S.createElement(cD,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),S.createElement(lD,fr({},f,{offset:c,horizontalPoints:b,xAxis:x,yAxis:w})),S.createElement(fD,fr({},f,{offset:c,verticalPoints:_,xAxis:x,yAxis:w})),S.createElement(dD,fr({},f,{horizontalPoints:b})),S.createElement(hD,fr({},f,{verticalPoints:_})))}or.displayName="CartesianGrid";var yD=["type","layout","connectNulls","ref"],mD=["key"];function fn(e){"@babel/helpers - typeof";return fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fn(e)}function Zb(e,t){if(e==null)return{};var r=gD(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 gD(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 Wn(){return Wn=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},Wn.apply(this,arguments)}function Qb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ue(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qb(Object(r),!0).forEach(function(n){st(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cr(e){return OD(e)||wD(e)||xD(e)||bD()}function bD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
62In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xD(e,t){if(e){if(typeof e=="string")return Jf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jf(e,t)}}function wD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OD(e){if(Array.isArray(e))return Jf(e)}function Jf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _D(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function e0(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,O1(n.key),n)}}function AD(e,t,r){return t&&e0(e.prototype,t),r&&e0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function SD(e,t,r){return t=Va(t),PD(e,w1()?Reflect.construct(t,r||[],Va(e).constructor):t.apply(e,r))}function PD(e,t){if(t&&(fn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return TD(e)}function TD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(w1=function(){return!!e})()}function Va(e){return Va=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Va(e)}function jD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zf(e,t)}function Zf(e,t){return Zf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zf(e,t)}function st(e,t,r){return t=O1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O1(e){var t=ED(e,"string");return fn(t)=="symbol"?t:t+""}function ED(e,t){if(fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var yr=(function(e){function t(){var r;_D(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=SD(this,t,[].concat(i)),st(r,"state",{isAnimationFinished:!0,totalLength:0}),st(r,"generateSimpleStrokeDasharray",function(o,u){return"".concat(u,"px ").concat(o-u,"px")}),st(r,"getStrokeDasharray",function(o,u,s){var c=s.reduce(function(g,x){return g+x});if(!c)return r.generateSimpleStrokeDasharray(u,o);for(var f=Math.floor(o/c),l=o%c,d=u-o,p=[],y=0,v=0;y<s.length;v+=s[y],++y)if(v+s[y]>l){p=[].concat(Cr(s.slice(0,y)),[l-v]);break}var h=p.length%2===0?[0,d]:[d];return[].concat(Cr(t.repeat(s,f)),Cr(p),h).map(function(g){return"".concat(g,"px")}).join(", ")}),st(r,"id",Sr("recharts-line-")),st(r,"pathRef",function(o){r.mainCurve=o}),st(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),st(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return jD(t,e),AD(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,u=a.xAxis,s=a.yAxis,c=a.layout,f=a.children,l=Xe(f,ki);if(!l)return null;var d=function(v,h){return{x:v.x,y:v.y,value:v.value,errorVal:me(v.payload,h)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return S.createElement(te,p,l.map(function(y){return S.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:u,yAxis:s,layout:c,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var u=this.props,s=u.dot,c=u.points,f=u.dataKey,l=H(this.props,!1),d=H(s,!0),p=c.map(function(v,h){var g=Ue(Ue(Ue({key:"dot-".concat(h),r:3},l),d),{},{index:h,cx:v.x,cy:v.y,value:v.value,dataKey:f,payload:v.payload,points:c});return t.renderDotItem(s,g)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return S.createElement(te,Wn({className:"recharts-line-dots",key:"dots"},y),p)}},{key:"renderCurveStatically",value:function(n,i,a,o){var u=this.props,s=u.type,c=u.layout,f=u.connectNulls;u.ref;var l=Zb(u,yD),d=Ue(Ue(Ue({},H(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:s,layout:c,connectNulls:f});return S.createElement(vr,Wn({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,s=o.strokeDasharray,c=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,d=o.animationEasing,p=o.animationId,y=o.animateNewValues,v=o.width,h=o.height,g=this.state,x=g.prevPoints,w=g.totalLength;return S.createElement(ft,{begin:f,duration:l,isActive:c,easing:d,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var m=O.t;if(x){var b=x.length/u.length,_=u.map(function(T,$){var M=Math.floor($*b);if(x[M]){var k=x[M],R=Se(k.x,T.x),D=Se(k.y,T.y);return Ue(Ue({},T),{},{x:R(m),y:D(m)})}if(y){var B=Se(v*2,T.x),F=Se(h/2,T.y);return Ue(Ue({},T),{},{x:B(m),y:F(m)})}return Ue(Ue({},T),{},{x:T.x,y:T.y})});return a.renderCurveStatically(_,n,i)}var A=Se(0,w),P=A(m),E;if(s){var j="".concat(s).split(/[,\s]+/gim).map(function(T){return parseFloat(T)});E=a.getStrokeDasharray(P,w,j)}else E=a.generateSimpleStrokeDasharray(w,P);return a.renderCurveStatically(u,n,i,{strokeDasharray:E})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,u=a.isAnimationActive,s=this.state,c=s.prevPoints,f=s.totalLength;return u&&o&&o.length&&(!c&&f>0||!xr(c,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,s=i.className,c=i.xAxis,f=i.yAxis,l=i.top,d=i.left,p=i.width,y=i.height,v=i.isAnimationActive,h=i.id;if(a||!u||!u.length)return null;var g=this.state.isAnimationFinished,x=u.length===1,w=Z("recharts-line",s),O=c&&c.allowDataOverflow,m=f&&f.allowDataOverflow,b=O||m,_=J(h)?this.id:h,A=(n=H(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=A.r,E=P===void 0?3:P,j=A.strokeWidth,T=j===void 0?2:j,$=A0(o)?o:{},M=$.clipDot,k=M===void 0?!0:M,R=E*2+T;return S.createElement(te,{className:w},O||m?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(_)},S.createElement("rect",{x:O?d:d-p/2,y:m?l:l-y/2,width:O?p:p*2,height:m?y:y*2})),!k&&S.createElement("clipPath",{id:"clipPath-dots-".concat(_)},S.createElement("rect",{x:d-R/2,y:l-R/2,width:p+R,height:y+R}))):null,!x&&this.renderCurve(b,_),this.renderErrorBar(b,_),(x||o)&&this.renderDots(b,k,_),(!v||g)&&mt.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(Cr(n),[0]):n,o=[],u=0;u<i;++u)o=[].concat(Cr(o),Cr(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(S.isValidElement(n))a=S.cloneElement(n,i);else if(V(n))a=n(i);else{var o=i.key,u=Zb(i,mD),s=Z("recharts-line-dot",typeof n!="boolean"?n.className:"");a=S.createElement(Mi,Wn({key:o},u,{className:s}))}return a}}])})(N.PureComponent);st(yr,"displayName","Line");st(yr,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Ht.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});st(yr,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,u=e.bandSize,s=e.displayedData,c=e.offset,f=t.layout,l=s.map(function(d,p){var y=me(d,o);return f==="horizontal"?{x:Aa({axis:r,ticks:i,bandSize:u,entry:d,index:p}),y:J(y)?null:n.scale(y),value:y,payload:d}:{x:J(y)?null:r.scale(y),y:Aa({axis:n,ticks:a,bandSize:u,entry:d,index:p}),value:y,payload:d}});return Ue({points:l,layout:f},c)});var $D=["layout","type","stroke","connectNulls","isRange","ref"],kD=["key"],_1;function dn(e){"@babel/helpers - typeof";return dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dn(e)}function A1(e,t){if(e==null)return{};var r=MD(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 MD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function dr(){return dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dr.apply(this,arguments)}function t0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?t0(Object(r),!0).forEach(function(n){vt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r0(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,P1(n.key),n)}}function ID(e,t,r){return t&&r0(e.prototype,t),r&&r0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function RD(e,t,r){return t=Xa(t),ND(e,S1()?Reflect.construct(t,r||[],Xa(e).constructor):t.apply(e,r))}function ND(e,t){if(t&&(dn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DD(e)}function DD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(S1=function(){return!!e})()}function Xa(e){return Xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xa(e)}function LD(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&&Qf(e,t)}function Qf(e,t){return Qf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qf(e,t)}function vt(e,t,r){return t=P1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P1(e){var t=qD(e,"string");return dn(t)=="symbol"?t:t+""}function qD(e,t){if(dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Yt=(function(e){function t(){var r;CD(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=RD(this,t,[].concat(i)),vt(r,"state",{isAnimationFinished:!0}),vt(r,"id",Sr("recharts-area-")),vt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),V(o)&&o()}),vt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),V(o)&&o()}),r}return LD(t,e),ID(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,u=this.state.isAnimationFinished;if(o&&!u)return null;var s=this.props,c=s.dot,f=s.points,l=s.dataKey,d=H(this.props,!1),p=H(c,!0),y=f.map(function(h,g){var x=Dt(Dt(Dt({key:"dot-".concat(g),r:3},d),p),{},{index:g,cx:h.x,cy:h.y,dataKey:l,value:h.value,payload:h.payload,points:f});return t.renderDotItem(c,x)}),v={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return S.createElement(te,dr({className:"recharts-area-dots"},v),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,s=o[0].x,c=o[o.length-1].x,f=n*Math.abs(s-c),l=Bt(o.map(function(d){return d.y||0}));return q(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(Bt(a.map(function(d){return d.y||0})),l)),q(l)?S.createElement("rect",{x:s<c?s:s-f,y:0,width:f,height:Math.floor(l+(u?parseInt("".concat(u),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,s=o[0].y,c=o[o.length-1].y,f=n*Math.abs(s-c),l=Bt(o.map(function(d){return d.x||0}));return q(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(Bt(a.map(function(d){return d.x||0})),l)),q(l)?S.createElement("rect",{x:0,y:s<c?s:s-f,width:l+(u?parseInt("".concat(u),10):1),height:Math.floor(f)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var u=this.props,s=u.layout,c=u.type,f=u.stroke,l=u.connectNulls,d=u.isRange;u.ref;var p=A1(u,$D);return S.createElement(te,{clipPath:a?"url(#clipPath-".concat(o,")"):null},S.createElement(vr,dr({},H(p,!0),{points:n,connectNulls:l,type:c,baseLine:i,layout:s,stroke:"none",className:"recharts-area-area"})),f!=="none"&&S.createElement(vr,dr({},H(this.props,!1),{className:"recharts-area-curve",layout:s,type:c,connectNulls:l,fill:"none",points:n})),f!=="none"&&d&&S.createElement(vr,dr({},H(this.props,!1),{className:"recharts-area-curve",layout:s,type:c,connectNulls:l,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,s=o.baseLine,c=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,d=o.animationEasing,p=o.animationId,y=this.state,v=y.prevPoints,h=y.prevBaseLine;return S.createElement(ft,{begin:f,duration:l,isActive:c,easing:d,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var x=g.t;if(v){var w=v.length/u.length,O=u.map(function(A,P){var E=Math.floor(P*w);if(v[E]){var j=v[E],T=Se(j.x,A.x),$=Se(j.y,A.y);return Dt(Dt({},A),{},{x:T(x),y:$(x)})}return A}),m;if(q(s)&&typeof s=="number"){var b=Se(h,s);m=b(x)}else if(J(s)||bn(s)){var _=Se(h,0);m=_(x)}else m=s.map(function(A,P){var E=Math.floor(P*w);if(h[E]){var j=h[E],T=Se(j.x,A.x),$=Se(j.y,A.y);return Dt(Dt({},A),{},{x:T(x),y:$(x)})}return A});return a.renderAreaStatically(O,m,n,i)}return S.createElement(te,null,S.createElement("defs",null,S.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(x))),S.createElement(te,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(u,s,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,u=a.baseLine,s=a.isAnimationActive,c=this.state,f=c.prevPoints,l=c.prevBaseLine,d=c.totalLength;return s&&o&&o.length&&(!f&&d>0||!xr(f,o)||!xr(l,u))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,u,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,s=i.className,c=i.top,f=i.left,l=i.xAxis,d=i.yAxis,p=i.width,y=i.height,v=i.isAnimationActive,h=i.id;if(a||!u||!u.length)return null;var g=this.state.isAnimationFinished,x=u.length===1,w=Z("recharts-area",s),O=l&&l.allowDataOverflow,m=d&&d.allowDataOverflow,b=O||m,_=J(h)?this.id:h,A=(n=H(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=A.r,E=P===void 0?3:P,j=A.strokeWidth,T=j===void 0?2:j,$=A0(o)?o:{},M=$.clipDot,k=M===void 0?!0:M,R=E*2+T;return S.createElement(te,{className:w},O||m?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(_)},S.createElement("rect",{x:O?f:f-p/2,y:m?c:c-y/2,width:O?p:p*2,height:m?y:y*2})),!k&&S.createElement("clipPath",{id:"clipPath-dots-".concat(_)},S.createElement("rect",{x:f-R/2,y:c-R/2,width:p+R,height:y+R}))):null,x?null:this.renderArea(b,_),(o||x)&&this.renderDots(b,k,_),(!v||g)&&mt.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(N.PureComponent);_1=Yt;vt(Yt,"displayName","Area");vt(Yt,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Ht.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});vt(Yt,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,u=o??a;if(q(u)&&typeof u=="number")return u;var s=i==="horizontal"?n:r,c=s.scale.domain();if(s.type==="number"){var f=Math.max(c[0],c[1]),l=Math.min(c[0],c[1]);return u==="dataMin"?l:u==="dataMax"||f<0?f:Math.max(Math.min(c[0],c[1]),0)}return u==="dataMin"?c[0]:u==="dataMax"?c[1]:c[0]});vt(Yt,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,u=e.bandSize,s=e.dataKey,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,d=e.offset,p=t.layout,y=c&&c.length,v=_1.getBaseValue(t,r,n,i),h=p==="horizontal",g=!1,x=l.map(function(O,m){var b;y?b=c[f+m]:(b=me(O,s),Array.isArray(b)?g=!0:b=[v,b]);var _=b[1]==null||y&&me(O,s)==null;return h?{x:Aa({axis:n,ticks:a,bandSize:u,entry:O,index:m}),y:_?null:i.scale(b[1]),value:b,payload:O}:{x:_?null:n.scale(b[1]),y:Aa({axis:i,ticks:o,bandSize:u,entry:O,index:m}),value:b,payload:O}}),w;return y||g?w=x.map(function(O){var m=Array.isArray(O.value)?O.value[0]:null;return h?{x:O.x,y:m!=null&&O.y!=null?i.scale(m):null}:{x:m!=null?n.scale(m):null,y:O.y}}):w=h?i.scale(v):n.scale(v),Dt({points:x,baseLine:w,layout:p,isRange:g},d)});vt(Yt,"renderDotItem",function(e,t){var r;if(S.isValidElement(e))r=S.cloneElement(e,t);else if(V(e))r=e(t);else{var n=Z("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=A1(t,kD);r=S.createElement(Mi,dr({},a,{key:i,className:n}))}return r});function hn(e){"@babel/helpers - typeof";return hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hn(e)}function BD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,E1(n.key),n)}}function zD(e,t,r){return t&&FD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function WD(e,t,r){return t=Ya(t),UD(e,T1()?Reflect.construct(t,r||[],Ya(e).constructor):t.apply(e,r))}function UD(e,t){if(t&&(hn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return KD(e)}function KD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(T1=function(){return!!e})()}function Ya(e){return Ya=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ya(e)}function HD(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&&ed(e,t)}function ed(e,t){return ed=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ed(e,t)}function j1(e,t,r){return t=E1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E1(e){var t=GD(e,"string");return hn(t)=="symbol"?t:t+""}function GD(e,t){if(hn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function td(){return td=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},td.apply(this,arguments)}function VD(e){var t=e.xAxisId,r=uh(),n=sh(),i=c1(t);return i==null?null:N.createElement(An,td({},i,{className:Z("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Pt(o,!0)}}))}var Qe=(function(e){function t(){return BD(this,t),WD(this,t,arguments)}return HD(t,e),zD(t,[{key:"render",value:function(){return N.createElement(VD,this.props)}}])})(N.Component);j1(Qe,"displayName","XAxis");j1(Qe,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function pn(e){"@babel/helpers - typeof";return pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pn(e)}function XD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YD(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,M1(n.key),n)}}function JD(e,t,r){return t&&YD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZD(e,t,r){return t=Ja(t),QD(e,$1()?Reflect.construct(t,r||[],Ja(e).constructor):t.apply(e,r))}function QD(e,t){if(t&&(pn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eL(e)}function eL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($1=function(){return!!e})()}function Ja(e){return Ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ja(e)}function tL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rd(e,t)}function rd(e,t){return rd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rd(e,t)}function k1(e,t,r){return t=M1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M1(e){var t=rL(e,"string");return pn(t)=="symbol"?t:t+""}function rL(e,t){if(pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function nd(){return nd=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},nd.apply(this,arguments)}var nL=function(t){var r=t.yAxisId,n=uh(),i=sh(),a=l1(r);return a==null?null:N.createElement(An,nd({},a,{className:Z("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return Pt(u,!0)}}))},et=(function(e){function t(){return XD(this,t),ZD(this,t,arguments)}return tL(t,e),JD(t,[{key:"render",value:function(){return N.createElement(nL,this.props)}}])})(N.Component);k1(et,"displayName","YAxis");k1(et,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function n0(e){return uL(e)||oL(e)||aL(e)||iL()}function iL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
63In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aL(e,t){if(e){if(typeof e=="string")return id(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return id(e,t)}}function oL(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uL(e){if(Array.isArray(e))return id(e)}function id(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ad=function(t,r,n,i,a){var o=Xe(t,lh),u=Xe(t,ko),s=[].concat(n0(o),n0(u)),c=Xe(t,Co),f="".concat(i,"Id"),l=i[0],d=r;if(s.length&&(d=s.reduce(function(v,h){if(h.props[f]===n&&gt(h.props,"extendDomain")&&q(h.props[l])){var g=h.props[l];return[Math.min(v[0],g),Math.max(v[1],g)]}return v},d)),c.length){var p="".concat(l,"1"),y="".concat(l,"2");d=c.reduce(function(v,h){if(h.props[f]===n&&gt(h.props,"extendDomain")&&q(h.props[p])&&q(h.props[y])){var g=h.props[p],x=h.props[y];return[Math.min(v[0],g,x),Math.max(v[1],g,x)]}return v},d)}return a&&a.length&&(d=a.reduce(function(v,h){return q(h)?[Math.min(v[0],h),Math.max(v[1],h)]:v},d)),d},Rl={exports:{}},i0;function sL(){return i0||(i0=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(s,c,f){this.fn=s,this.context=c,this.once=f||!1}function a(s,c,f,l,d){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new i(f,l||s,d),y=r?r+c:c;return s._events[y]?s._events[y].fn?s._events[y]=[s._events[y],p]:s._events[y].push(p):(s._events[y]=p,s._eventsCount++),s}function o(s,c){--s._eventsCount===0?s._events=new n:delete s._events[c]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var c=[],f,l;if(this._eventsCount===0)return c;for(l in f=this._events)t.call(f,l)&&c.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(f)):c},u.prototype.listeners=function(c){var f=r?r+c:c,l=this._events[f];if(!l)return[];if(l.fn)return[l.fn];for(var d=0,p=l.length,y=new Array(p);d<p;d++)y[d]=l[d].fn;return y},u.prototype.listenerCount=function(c){var f=r?r+c:c,l=this._events[f];return l?l.fn?1:l.length:0},u.prototype.emit=function(c,f,l,d,p,y){var v=r?r+c:c;if(!this._events[v])return!1;var h=this._events[v],g=arguments.length,x,w;if(h.fn){switch(h.once&&this.removeListener(c,h.fn,void 0,!0),g){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,f),!0;case 3:return h.fn.call(h.context,f,l),!0;case 4:return h.fn.call(h.context,f,l,d),!0;case 5:return h.fn.call(h.context,f,l,d,p),!0;case 6:return h.fn.call(h.context,f,l,d,p,y),!0}for(w=1,x=new Array(g-1);w<g;w++)x[w-1]=arguments[w];h.fn.apply(h.context,x)}else{var O=h.length,m;for(w=0;w<O;w++)switch(h[w].once&&this.removeListener(c,h[w].fn,void 0,!0),g){case 1:h[w].fn.call(h[w].context);break;case 2:h[w].fn.call(h[w].context,f);break;case 3:h[w].fn.call(h[w].context,f,l);break;case 4:h[w].fn.call(h[w].context,f,l,d);break;default:if(!x)for(m=1,x=new Array(g-1);m<g;m++)x[m-1]=arguments[m];h[w].fn.apply(h[w].context,x)}}return!0},u.prototype.on=function(c,f,l){return a(this,c,f,l,!1)},u.prototype.once=function(c,f,l){return a(this,c,f,l,!0)},u.prototype.removeListener=function(c,f,l,d){var p=r?r+c:c;if(!this._events[p])return this;if(!f)return o(this,p),this;var y=this._events[p];if(y.fn)y.fn===f&&(!d||y.once)&&(!l||y.context===l)&&o(this,p);else{for(var v=0,h=[],g=y.length;v<g;v++)(y[v].fn!==f||d&&!y[v].once||l&&y[v].context!==l)&&h.push(y[v]);h.length?this._events[p]=h.length===1?h[0]:h:o(this,p)}return this},u.prototype.removeAllListeners=function(c){var f;return c?(f=r?r+c:c,this._events[f]&&o(this,f)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(Rl)),Rl.exports}var cL=sL();const lL=ue(cL);var Nl=new lL,Dl="recharts.syncMouseEvents";function _i(e){"@babel/helpers - typeof";return _i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_i(e)}function fL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dL(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,C1(n.key),n)}}function hL(e,t,r){return t&&dL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ll(e,t,r){return t=C1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C1(e){var t=pL(e,"string");return _i(t)=="symbol"?t:t+""}function pL(e,t){if(_i(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_i(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vL=(function(){function e(){fL(this,e),Ll(this,"activeIndex",0),Ll(this,"coordinateList",[]),Ll(this,"layout","horizontal")}return hL(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,u=o===void 0?null:o,s=r.layout,c=s===void 0?null:s,f=r.offset,l=f===void 0?null:f,d=r.mouseHandlerCallback,p=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=c??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,u=i.height,s=this.coordinateList[this.activeIndex].coordinate,c=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,l=a+s+c,d=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:d})}}}])})();function yL(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],i=e?.[1];if(n&&i&&q(n)&&q(i))return!0}return!1}function mL(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function I1(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=fe(t,r,n,i),u=fe(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function gL(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,s=t.cy,c=t.innerRadius,f=t.outerRadius,l=t.angle,d=fe(u,s,c,l),p=fe(u,s,f,l);n=d.x,i=d.y,a=p.x,o=p.y}else return I1(t);return[{x:n,y:i},{x:a,y:o}]}function Ai(e){"@babel/helpers - typeof";return Ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ai(e)}function a0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Hi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?a0(Object(r),!0).forEach(function(n){bL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bL(e,t,r){return t=xL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xL(e){var t=wL(e,"string");return Ai(t)=="symbol"?t:t+""}function wL(e,t){if(Ai(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ai(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function OL(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,s=e.offset,c=e.activeTooltipIndex,f=e.tooltipAxisBandSize,l=e.layout,d=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var y,v=vr;if(d==="ScatterChart")y=o,v=II;else if(d==="BarChart")y=mL(l,o,s,f),v=rh;else if(l==="radial"){var h=I1(o),g=h.cx,x=h.cy,w=h.radius,O=h.startAngle,m=h.endAngle;y={cx:g,cy:x,startAngle:O,endAngle:m,innerRadius:w,outerRadius:w},v=Mw}else y={points:gL(l,o,s)},v=vr;var b=Hi(Hi(Hi(Hi({stroke:"#ccc",pointerEvents:"none"},s),y),H(p,!1)),{},{payload:u,payloadIndex:c,className:Z("recharts-tooltip-cursor",p.className)});return N.isValidElement(p)?N.cloneElement(p,b):N.createElement(v,b)}var _L=["item"],AL=["children","className","width","height","style","compact","title","desc"];function vn(e){"@babel/helpers - typeof";return vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vn(e)}function Br(){return Br=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Br.apply(this,arguments)}function o0(e,t){return TL(e)||PL(e,t)||N1(e,t)||SL()}function SL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
64In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PL(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function TL(e){if(Array.isArray(e))return e}function u0(e,t){if(e==null)return{};var r=jL(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 jL(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 EL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $L(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,D1(n.key),n)}}function kL(e,t,r){return t&&$L(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ML(e,t,r){return t=Za(t),CL(e,R1()?Reflect.construct(t,r||[],Za(e).constructor):t.apply(e,r))}function CL(e,t){if(t&&(vn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IL(e)}function IL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R1=function(){return!!e})()}function Za(e){return Za=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Za(e)}function RL(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&&od(e,t)}function od(e,t){return od=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},od(e,t)}function yn(e){return LL(e)||DL(e)||N1(e)||NL()}function NL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
65In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function N1(e,t){if(e){if(typeof e=="string")return ud(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ud(e,t)}}function DL(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function LL(e){if(Array.isArray(e))return ud(e)}function ud(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s0(Object(r),!0).forEach(function(n){G(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function G(e,t,r){return t=D1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D1(e){var t=qL(e,"string");return vn(t)=="symbol"?t:t+""}function qL(e,t){if(vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var BL={xAxis:["bottom","top"],yAxis:["left","right"]},FL={width:"100%",height:"100%"},L1={x:0,y:0};function Gi(e){return e}var zL=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},WL=function(t,r,n,i){var a=r.find(function(f){return f&&f.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,u=i.radius;return I(I(I({},i),fe(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var s=a.coordinate,c=i.angle;return I(I(I({},i),fe(i.cx,i.cy,s,c)),{},{angle:c,radius:s})}return L1},Io=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,s){var c=s.props.data;return c&&c.length?[].concat(yn(u),yn(c)):u},[]);return o.length>0?o:t&&t.length&&q(i)&&q(a)?t.slice(i,a+1):[]};function q1(e){return e==="number"?[0,"auto"]:void 0}var sd=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=Io(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(s,c){var f,l=(f=c.props.data)!==null&&f!==void 0?f:r;l&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var p=l===void 0?u:l;d=Zi(p,o.dataKey,i)}else d=l&&l[n]||u[n];return d?[].concat(yn(s),[Pw(c,d)]):s},[])},c0=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=zL(a,n),u=t.orderedTooltipTicks,s=t.tooltipAxis,c=t.tooltipTicks,f=tk(o,u,c,s);if(f>=0&&c){var l=c[f]&&c[f].value,d=sd(t,r,f,l),p=WL(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:d,activeCoordinate:p}}return null},UL=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,d=t.stackOffset,p=xw(f,a);return n.reduce(function(y,v){var h,g=v.type.defaultProps!==void 0?I(I({},v.type.defaultProps),v.props):v.props,x=g.type,w=g.dataKey,O=g.allowDataOverflow,m=g.allowDuplicatedCategory,b=g.scale,_=g.ticks,A=g.includeHidden,P=g[o];if(y[P])return y;var E=Io(t.data,{graphicalItems:i.filter(function(W){var Y,de=o in W.props?W.props[o]:(Y=W.type.defaultProps)===null||Y===void 0?void 0:Y[o];return de===P}),dataStartIndex:s,dataEndIndex:c}),j=E.length,T,$,M;yL(g.domain,O,x)&&(T=wf(g.domain,null,O),p&&(x==="number"||b!=="auto")&&(M=qn(E,w,"category")));var k=q1(x);if(!T||T.length===0){var R,D=(R=g.domain)!==null&&R!==void 0?R:k;if(w){if(T=qn(E,w,x),x==="category"&&p){var B=XO(T);m&&B?($=T,T=La(0,j)):m||(T=cg(D,T,v).reduce(function(W,Y){return W.indexOf(Y)>=0?W:[].concat(yn(W),[Y])},[]))}else if(x==="category")m?T=T.filter(function(W){return W!==""&&!J(W)}):T=cg(D,T,v).reduce(function(W,Y){return W.indexOf(Y)>=0||Y===""||J(Y)?W:[].concat(yn(W),[Y])},[]);else if(x==="number"){var F=ok(E,i.filter(function(W){var Y,de,ge=o in W.props?W.props[o]:(Y=W.type.defaultProps)===null||Y===void 0?void 0:Y[o],We="hide"in W.props?W.props.hide:(de=W.type.defaultProps)===null||de===void 0?void 0:de.hide;return ge===P&&(A||!We)}),w,a,f);F&&(T=F)}p&&(x==="number"||b!=="auto")&&(M=qn(E,w,"category"))}else p?T=La(0,j):u&&u[P]&&u[P].hasStack&&x==="number"?T=d==="expand"?[0,1]:Sw(u[P].stackGroups,s,c):T=bw(E,i.filter(function(W){var Y=o in W.props?W.props[o]:W.type.defaultProps[o],de="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return Y===P&&(A||!de)}),x,f,!0);if(x==="number")T=ad(l,T,P,a,_),D&&(T=wf(D,T,O));else if(x==="category"&&D){var K=D,X=T.every(function(W){return K.indexOf(W)>=0});X&&(T=K)}}return I(I({},y),{},G({},P,I(I({},g),{},{axisType:a,domain:T,categoricalDomain:M,duplicateDomain:$,originalDomain:(h=g.domain)!==null&&h!==void 0?h:k,isCategorical:p,layout:f})))},{})},KL=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,d=Io(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),p=d.length,y=xw(f,a),v=-1;return n.reduce(function(h,g){var x=g.type.defaultProps!==void 0?I(I({},g.type.defaultProps),g.props):g.props,w=x[o],O=q1("number");if(!h[w]){v++;var m;return y?m=La(0,p):u&&u[w]&&u[w].hasStack?(m=Sw(u[w].stackGroups,s,c),m=ad(l,m,w,a)):(m=wf(O,bw(d,n.filter(function(b){var _,A,P=o in b.props?b.props[o]:(_=b.type.defaultProps)===null||_===void 0?void 0:_[o],E="hide"in b.props?b.props.hide:(A=b.type.defaultProps)===null||A===void 0?void 0:A.hide;return P===w&&!E}),"number",f),i.defaultProps.allowDataOverflow),m=ad(l,m,w,a)),I(I({},h),{},G({},w,I(I({axisType:a},i.defaultProps),{},{hide:!0,orientation:Ve(BL,"".concat(a,".").concat(v%2),null),domain:m,originalDomain:O,isCategorical:y,layout:f})))}return h},{})},HL=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),d=Xe(f,a),p={};return d&&d.length?p=UL(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c}):o&&o.length&&(p=KL(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c})),p},GL=function(t){var r=qt(t),n=Pt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Ed(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Sa(r,n)}},l0=function(t){var r=t.children,n=t.defaultShowTooltip,i=He(r,an),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},VL=function(t){return!t||!t.length?!1:t.some(function(r){var n=Tt(r&&r.type);return n&&n.indexOf("Bar")>=0})},f0=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},XL=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,s=u===void 0?{}:u,c=n.width,f=n.height,l=n.children,d=n.margin||{},p=He(l,an),y=He(l,zt),v=Object.keys(s).reduce(function(m,b){var _=s[b],A=_.orientation;return!_.mirror&&!_.hide?I(I({},m),{},G({},A,m[A]+_.width)):m},{left:d.left||0,right:d.right||0}),h=Object.keys(o).reduce(function(m,b){var _=o[b],A=_.orientation;return!_.mirror&&!_.hide?I(I({},m),{},G({},A,Ve(m,"".concat(A))+_.height)):m},{top:d.top||0,bottom:d.bottom||0}),g=I(I({},h),v),x=g.bottom;p&&(g.bottom+=p.props.height||an.defaultProps.height),y&&r&&(g=ik(g,i,n,r));var w=c-g.left-g.right,O=f-g.top-g.bottom;return I(I({brushBottom:x},g),{},{width:Math.max(w,0),height:Math.max(O,0)})},YL=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Ro=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,s=t.axisComponents,c=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,d=function(g,x){var w=x.graphicalItems,O=x.stackGroups,m=x.offset,b=x.updateId,_=x.dataStartIndex,A=x.dataEndIndex,P=g.barSize,E=g.layout,j=g.barGap,T=g.barCategoryGap,$=g.maxBarSize,M=f0(E),k=M.numericAxisName,R=M.cateAxisName,D=VL(w),B=[];return w.forEach(function(F,K){var X=Io(g.data,{graphicalItems:[F],dataStartIndex:_,dataEndIndex:A}),W=F.type.defaultProps!==void 0?I(I({},F.type.defaultProps),F.props):F.props,Y=W.dataKey,de=W.maxBarSize,ge=W["".concat(k,"Id")],We=W["".concat(R,"Id")],Jt={},qe=s.reduce(function(Zt,Qt){var No=x["".concat(Qt.axisType,"Map")],hh=W["".concat(Qt.axisType,"Id")];No&&No[hh]||Qt.axisType==="zAxis"||Or();var ph=No[hh];return I(I({},Zt),{},G(G({},Qt.axisType,ph),"".concat(Qt.axisType,"Ticks"),Pt(ph)))},Jt),z=qe[R],Q=qe["".concat(R,"Ticks")],ee=O&&O[ge]&&O[ge].hasStack&&vk(F,O[ge].stackGroups),L=Tt(F.type).indexOf("Bar")>=0,ve=Sa(z,Q),re=[],we=D&&rk({barSize:P,stackGroups:O,totalSize:YL(qe,R)});if(L){var Oe,Be,Nt=J(de)?$:de,Er=(Oe=(Be=Sa(z,Q,!0))!==null&&Be!==void 0?Be:Nt)!==null&&Oe!==void 0?Oe:0;re=nk({barGap:j,barCategoryGap:T,bandSize:Er!==ve?Er:ve,sizeList:we[We],maxBarSize:Nt}),Er!==ve&&(re=re.map(function(Zt){return I(I({},Zt),{},{position:I(I({},Zt.position),{},{offset:Zt.position.offset-Er/2})})}))}var Ci=F&&F.type&&F.type.getComposedData;Ci&&B.push({props:I(I({},Ci(I(I({},qe),{},{displayedData:X,props:g,dataKey:Y,item:F,bandSize:ve,barPosition:re,offset:m,stackedData:ee,layout:E,dataStartIndex:_,dataEndIndex:A}))),{},G(G(G({key:F.key||"item-".concat(K)},k,qe[k]),R,qe[R]),"animationId",b)),childIndex:u_(F,g.children),item:F})}),B},p=function(g,x){var w=g.props,O=g.dataStartIndex,m=g.dataEndIndex,b=g.updateId;if(!Ap({props:w}))return null;var _=w.children,A=w.layout,P=w.stackOffset,E=w.data,j=w.reverseStackOrder,T=f0(A),$=T.numericAxisName,M=T.cateAxisName,k=Xe(_,n),R=hk(E,k,"".concat($,"Id"),"".concat(M,"Id"),P,j),D=s.reduce(function(W,Y){var de="".concat(Y.axisType,"Map");return I(I({},W),{},G({},de,HL(w,I(I({},Y),{},{graphicalItems:k,stackGroups:Y.axisType===$&&R,dataStartIndex:O,dataEndIndex:m}))))},{}),B=XL(I(I({},D),{},{props:w,graphicalItems:k}),x?.legendBBox);Object.keys(D).forEach(function(W){D[W]=f(w,D[W],B,W.replace("Map",""),r)});var F=D["".concat(M,"Map")],K=GL(F),X=d(w,I(I({},D),{},{dataStartIndex:O,dataEndIndex:m,updateId:b,graphicalItems:k,stackGroups:R,offset:B}));return I(I({formattedGraphicalItems:X,graphicalItems:k,offset:B,stackGroups:R},K),D)},y=(function(h){function g(x){var w,O,m;return EL(this,g),m=ML(this,g,[x]),G(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),G(m,"accessibilityManager",new vL),G(m,"handleLegendBBoxUpdate",function(b){if(b){var _=m.state,A=_.dataStartIndex,P=_.dataEndIndex,E=_.updateId;m.setState(I({legendBBox:b},p({props:m.props,dataStartIndex:A,dataEndIndex:P,updateId:E},I(I({},m.state),{},{legendBBox:b}))))}}),G(m,"handleReceiveSyncEvent",function(b,_,A){if(m.props.syncId===b){if(A===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(_)}}),G(m,"handleBrushChange",function(b){var _=b.startIndex,A=b.endIndex;if(_!==m.state.dataStartIndex||A!==m.state.dataEndIndex){var P=m.state.updateId;m.setState(function(){return I({dataStartIndex:_,dataEndIndex:A},p({props:m.props,dataStartIndex:_,dataEndIndex:A,updateId:P},m.state))}),m.triggerSyncEvent({dataStartIndex:_,dataEndIndex:A})}}),G(m,"handleMouseEnter",function(b){var _=m.getMouseInfo(b);if(_){var A=I(I({},_),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var P=m.props.onMouseEnter;V(P)&&P(A,b)}}),G(m,"triggeredAfterMouseMove",function(b){var _=m.getMouseInfo(b),A=_?I(I({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(A),m.triggerSyncEvent(A);var P=m.props.onMouseMove;V(P)&&P(A,b)}),G(m,"handleItemMouseEnter",function(b){m.setState(function(){return{isTooltipActive:!0,activeItem:b,activePayload:b.tooltipPayload,activeCoordinate:b.tooltipPosition||{x:b.cx,y:b.cy}}})}),G(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),G(m,"handleMouseMove",function(b){b.persist(),m.throttleTriggeredAfterMouseMove(b)}),G(m,"handleMouseLeave",function(b){m.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};m.setState(_),m.triggerSyncEvent(_);var A=m.props.onMouseLeave;V(A)&&A(_,b)}),G(m,"handleOuterEvent",function(b){var _=o_(b),A=Ve(m.props,"".concat(_));if(_&&V(A)){var P,E;/.*touch.*/i.test(_)?E=m.getMouseInfo(b.changedTouches[0]):E=m.getMouseInfo(b),A((P=E)!==null&&P!==void 0?P:{},b)}}),G(m,"handleClick",function(b){var _=m.getMouseInfo(b);if(_){var A=I(I({},_),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var P=m.props.onClick;V(P)&&P(A,b)}}),G(m,"handleMouseDown",function(b){var _=m.props.onMouseDown;if(V(_)){var A=m.getMouseInfo(b);_(A,b)}}),G(m,"handleMouseUp",function(b){var _=m.props.onMouseUp;if(V(_)){var A=m.getMouseInfo(b);_(A,b)}}),G(m,"handleTouchMove",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(b.changedTouches[0])}),G(m,"handleTouchStart",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.handleMouseDown(b.changedTouches[0])}),G(m,"handleTouchEnd",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.handleMouseUp(b.changedTouches[0])}),G(m,"handleDoubleClick",function(b){var _=m.props.onDoubleClick;if(V(_)){var A=m.getMouseInfo(b);_(A,b)}}),G(m,"handleContextMenu",function(b){var _=m.props.onContextMenu;if(V(_)){var A=m.getMouseInfo(b);_(A,b)}}),G(m,"triggerSyncEvent",function(b){m.props.syncId!==void 0&&Nl.emit(Dl,m.props.syncId,b,m.eventEmitterSymbol)}),G(m,"applySyncEvent",function(b){var _=m.props,A=_.layout,P=_.syncMethod,E=m.state.updateId,j=b.dataStartIndex,T=b.dataEndIndex;if(b.dataStartIndex!==void 0||b.dataEndIndex!==void 0)m.setState(I({dataStartIndex:j,dataEndIndex:T},p({props:m.props,dataStartIndex:j,dataEndIndex:T,updateId:E},m.state)));else if(b.activeTooltipIndex!==void 0){var $=b.chartX,M=b.chartY,k=b.activeTooltipIndex,R=m.state,D=R.offset,B=R.tooltipTicks;if(!D)return;if(typeof P=="function")k=P(B,b);else if(P==="value"){k=-1;for(var F=0;F<B.length;F++)if(B[F].value===b.activeLabel){k=F;break}}var K=I(I({},D),{},{x:D.left,y:D.top}),X=Math.min($,K.x+K.width),W=Math.min(M,K.y+K.height),Y=B[k]&&B[k].value,de=sd(m.state,m.props.data,k),ge=B[k]?{x:A==="horizontal"?B[k].coordinate:X,y:A==="horizontal"?W:B[k].coordinate}:L1;m.setState(I(I({},b),{},{activeLabel:Y,activeCoordinate:ge,activePayload:de,activeTooltipIndex:k}))}else m.setState(b)}),G(m,"renderCursor",function(b){var _,A=m.state,P=A.isTooltipActive,E=A.activeCoordinate,j=A.activePayload,T=A.offset,$=A.activeTooltipIndex,M=A.tooltipAxisBandSize,k=m.getTooltipEventType(),R=(_=b.props.active)!==null&&_!==void 0?_:P,D=m.props.layout,B=b.key||"_recharts-cursor";return S.createElement(OL,{key:B,activeCoordinate:E,activePayload:j,activeTooltipIndex:$,chartName:r,element:b,isActive:R,layout:D,offset:T,tooltipAxisBandSize:M,tooltipEventType:k})}),G(m,"renderPolarAxis",function(b,_,A){var P=Ve(b,"type.axisType"),E=Ve(m.state,"".concat(P,"Map")),j=b.type.defaultProps,T=j!==void 0?I(I({},j),b.props):b.props,$=E&&E[T["".concat(P,"Id")]];return N.cloneElement(b,I(I({},$),{},{className:Z(P,$.className),key:b.key||"".concat(_,"-").concat(A),ticks:Pt($,!0)}))}),G(m,"renderPolarGrid",function(b){var _=b.props,A=_.radialLines,P=_.polarAngles,E=_.polarRadius,j=m.state,T=j.radiusAxisMap,$=j.angleAxisMap,M=qt(T),k=qt($),R=k.cx,D=k.cy,B=k.innerRadius,F=k.outerRadius;return N.cloneElement(b,{polarAngles:Array.isArray(P)?P:Pt(k,!0).map(function(K){return K.coordinate}),polarRadius:Array.isArray(E)?E:Pt(M,!0).map(function(K){return K.coordinate}),cx:R,cy:D,innerRadius:B,outerRadius:F,key:b.key||"polar-grid",radialLines:A})}),G(m,"renderLegend",function(){var b=m.state.formattedGraphicalItems,_=m.props,A=_.children,P=_.width,E=_.height,j=m.props.margin||{},T=P-(j.left||0)-(j.right||0),$=mw({children:A,formattedGraphicalItems:b,legendWidth:T,legendContent:c});if(!$)return null;var M=$.item,k=u0($,_L);return N.cloneElement(M,I(I({},k),{},{chartWidth:P,chartHeight:E,margin:j,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),G(m,"renderTooltip",function(){var b,_=m.props,A=_.children,P=_.accessibilityLayer,E=He(A,Ie);if(!E)return null;var j=m.state,T=j.isTooltipActive,$=j.activeCoordinate,M=j.activePayload,k=j.activeLabel,R=j.offset,D=(b=E.props.active)!==null&&b!==void 0?b:T;return N.cloneElement(E,{viewBox:I(I({},R),{},{x:R.left,y:R.top}),active:D,label:k,payload:D?M:[],coordinate:$,accessibilityLayer:P})}),G(m,"renderBrush",function(b){var _=m.props,A=_.margin,P=_.data,E=m.state,j=E.offset,T=E.dataStartIndex,$=E.dataEndIndex,M=E.updateId;return N.cloneElement(b,{key:b.key||"_recharts-brush",onChange:zi(m.handleBrushChange,b.props.onChange),data:P,x:q(b.props.x)?b.props.x:j.left,y:q(b.props.y)?b.props.y:j.top+j.height+j.brushBottom-(A.bottom||0),width:q(b.props.width)?b.props.width:j.width,startIndex:T,endIndex:$,updateId:"brush-".concat(M)})}),G(m,"renderReferenceElement",function(b,_,A){if(!b)return null;var P=m,E=P.clipPathId,j=m.state,T=j.xAxisMap,$=j.yAxisMap,M=j.offset,k=b.type.defaultProps||{},R=b.props,D=R.xAxisId,B=D===void 0?k.xAxisId:D,F=R.yAxisId,K=F===void 0?k.yAxisId:F;return N.cloneElement(b,{key:b.key||"".concat(_,"-").concat(A),xAxis:T[B],yAxis:$[K],viewBox:{x:M.left,y:M.top,width:M.width,height:M.height},clipPathId:E})}),G(m,"renderActivePoints",function(b){var _=b.item,A=b.activePoint,P=b.basePoint,E=b.childIndex,j=b.isRange,T=[],$=_.props.key,M=_.item.type.defaultProps!==void 0?I(I({},_.item.type.defaultProps),_.item.props):_.item.props,k=M.activeDot,R=M.dataKey,D=I(I({index:E,dataKey:R,cx:A.x,cy:A.y,r:4,fill:th(_.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},H(k,!1)),Qi(k));return T.push(g.renderActiveDot(k,D,"".concat($,"-activePoint-").concat(E))),P?T.push(g.renderActiveDot(k,I(I({},D),{},{cx:P.x,cy:P.y}),"".concat($,"-basePoint-").concat(E))):j&&T.push(null),T}),G(m,"renderGraphicChild",function(b,_,A){var P=m.filterFormatItem(b,_,A);if(!P)return null;var E=m.getTooltipEventType(),j=m.state,T=j.isTooltipActive,$=j.tooltipAxis,M=j.activeTooltipIndex,k=j.activeLabel,R=m.props.children,D=He(R,Ie),B=P.props,F=B.points,K=B.isRange,X=B.baseLine,W=P.item.type.defaultProps!==void 0?I(I({},P.item.type.defaultProps),P.item.props):P.item.props,Y=W.activeDot,de=W.hide,ge=W.activeBar,We=W.activeShape,Jt=!!(!de&&T&&D&&(Y||ge||We)),qe={};E!=="axis"&&D&&D.props.trigger==="click"?qe={onClick:zi(m.handleItemMouseEnter,b.props.onClick)}:E!=="axis"&&(qe={onMouseLeave:zi(m.handleItemMouseLeave,b.props.onMouseLeave),onMouseEnter:zi(m.handleItemMouseEnter,b.props.onMouseEnter)});var z=N.cloneElement(b,I(I({},P.props),qe));function Q(Qt){return typeof $.dataKey=="function"?$.dataKey(Qt.payload):null}if(Jt)if(M>=0){var ee,L;if($.dataKey&&!$.allowDuplicatedCategory){var ve=typeof $.dataKey=="function"?Q:"payload.".concat($.dataKey.toString());ee=Zi(F,ve,k),L=K&&X&&Zi(X,ve,k)}else ee=F?.[M],L=K&&X&&X[M];if(We||ge){var re=b.props.activeIndex!==void 0?b.props.activeIndex:M;return[N.cloneElement(b,I(I(I({},P.props),qe),{},{activeIndex:re})),null,null]}if(!J(ee))return[z].concat(yn(m.renderActivePoints({item:P,activePoint:ee,basePoint:L,childIndex:M,isRange:K})))}else{var we,Oe=(we=m.getItemByXY(m.state.activeCoordinate))!==null&&we!==void 0?we:{graphicalItem:z},Be=Oe.graphicalItem,Nt=Be.item,Er=Nt===void 0?b:Nt,Ci=Be.childIndex,Zt=I(I(I({},P.props),qe),{},{activeIndex:Ci});return[N.cloneElement(Er,Zt),null,null]}return K?[z,null,null]:[z,null]}),G(m,"renderCustomized",function(b,_,A){return N.cloneElement(b,I(I({key:"recharts-customized-".concat(A)},m.props),m.state))}),G(m,"renderMap",{CartesianGrid:{handler:Gi,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:Gi},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:Gi},YAxis:{handler:Gi},Brush:{handler:m.renderBrush,once:!0},Bar:{handler:m.renderGraphicChild},Line:{handler:m.renderGraphicChild},Area:{handler:m.renderGraphicChild},Radar:{handler:m.renderGraphicChild},RadialBar:{handler:m.renderGraphicChild},Scatter:{handler:m.renderGraphicChild},Pie:{handler:m.renderGraphicChild},Funnel:{handler:m.renderGraphicChild},Tooltip:{handler:m.renderCursor,once:!0},PolarGrid:{handler:m.renderPolarGrid,once:!0},PolarAngleAxis:{handler:m.renderPolarAxis},PolarRadiusAxis:{handler:m.renderPolarAxis},Customized:{handler:m.renderCustomized}}),m.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:Sr("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=mx(m.triggeredAfterMouseMove,(O=x.throttleDelay)!==null&&O!==void 0?O:1e3/60),m.state={},m}return RL(g,h),kL(g,[{key:"componentDidMount",value:function(){var w,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,O=w.children,m=w.data,b=w.height,_=w.layout,A=He(O,Ie);if(A){var P=A.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length-1)){var E=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,j=sd(this.state,m,P,E),T=this.state.tooltipTicks[P].coordinate,$=(this.state.offset.top+b)/2,M=_==="horizontal",k=M?{x:T,y:$}:{y:T,x:$},R=this.state.formattedGraphicalItems.find(function(B){var F=B.item;return F.type.name==="Scatter"});R&&(k=I(I({},k),R.props.points[P].tooltipPosition),j=R.props.points[P].tooltipPayload);var D={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:E,activePayload:j,activeCoordinate:k};this.setState(D),this.renderCursor(A),this.accessibilityManager.setIndex(P)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var m,b;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(b=this.props.margin.top)!==null&&b!==void 0?b:0}})}return null}},{key:"componentDidUpdate",value:function(w){zl([He(w.children,Ie)],[He(this.props.children,Ie)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=He(this.props.children,Ie);if(w&&typeof w.props.shared=="boolean"){var O=w.props.shared?"axis":"item";return u.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var O=this.container,m=O.getBoundingClientRect(),b=GP(m),_={chartX:Math.round(w.pageX-b.left),chartY:Math.round(w.pageY-b.top)},A=m.width/O.offsetWidth||1,P=this.inRange(_.chartX,_.chartY,A);if(!P)return null;var E=this.state,j=E.xAxisMap,T=E.yAxisMap,$=this.getTooltipEventType(),M=c0(this.state,this.props.data,this.props.layout,P);if($!=="axis"&&j&&T){var k=qt(j).scale,R=qt(T).scale,D=k&&k.invert?k.invert(_.chartX):null,B=R&&R.invert?R.invert(_.chartY):null;return I(I({},_),{},{xValue:D,yValue:B},M)}return M?I(I({},_),M):null}},{key:"inRange",value:function(w,O){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,b=this.props.layout,_=w/m,A=O/m;if(b==="horizontal"||b==="vertical"){var P=this.state.offset,E=_>=P.left&&_<=P.left+P.width&&A>=P.top&&A<=P.top+P.height;return E?{x:_,y:A}:null}var j=this.state,T=j.angleAxisMap,$=j.radiusAxisMap;if(T&&$){var M=qt(T);return dg({x:_,y:A},M)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),m=He(w,Ie),b={};m&&O==="axis"&&(m.props.trigger==="click"?b={onClick:this.handleClick}:b={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var _=Qi(this.props,this.handleOuterEvent);return I(I({},_),b)}},{key:"addListener",value:function(){Nl.on(Dl,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Nl.removeListener(Dl,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,m){for(var b=this.state.formattedGraphicalItems,_=0,A=b.length;_<A;_++){var P=b[_];if(P.item===w||P.props.key===w.key||O===Tt(P.item.type)&&m===P.childIndex)return P}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,O=this.state.offset,m=O.left,b=O.top,_=O.height,A=O.width;return S.createElement("defs",null,S.createElement("clipPath",{id:w},S.createElement("rect",{x:m,y:b,height:_,width:A})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,m){var b=o0(m,2),_=b[0],A=b[1];return I(I({},O),{},G({},_,A.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,m){var b=o0(m,2),_=b[0],A=b[1];return I(I({},O),{},G({},_,A.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(w){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(w){var O=this.state,m=O.formattedGraphicalItems,b=O.activeItem;if(m&&m.length)for(var _=0,A=m.length;_<A;_++){var P=m[_],E=P.props,j=P.item,T=j.type.defaultProps!==void 0?I(I({},j.type.defaultProps),j.props):j.props,$=Tt(j.type);if($==="Bar"){var M=(E.data||[]).find(function(B){return pI(w,B)});if(M)return{graphicalItem:P,payload:M}}else if($==="RadialBar"){var k=(E.data||[]).find(function(B){return dg(w,B)});if(k)return{graphicalItem:P,payload:k}}else if(To(P,b)||jo(P,b)||gi(P,b)){var R=D2({graphicalItem:P,activeTooltipItem:b,itemData:T.data}),D=T.activeIndex===void 0?R:T.activeIndex;
65return{graphicalItem:I(I({},P),{},{childIndex:D}),payload:gi(P,b)?T.data[R]:P.props.data[R]}}}return null}},{key:"render",value:function(){var w=this;if(!Ap(this))return null;var O=this.props,m=O.children,b=O.className,_=O.width,A=O.height,P=O.style,E=O.compact,j=O.title,T=O.desc,$=u0(O,AL),M=H($,!1);if(E)return S.createElement(qb,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement(Ul,Br({},M,{width:_,height:A,title:j,desc:T}),this.renderClipPath(),Pp(m,this.renderMap)));if(this.props.accessibilityLayer){var k,R;M.tabIndex=(k=this.props.tabIndex)!==null&&k!==void 0?k:0,M.role=(R=this.props.role)!==null&&R!==void 0?R:"application",M.onKeyDown=function(B){w.accessibilityManager.keyboardEvent(B)},M.onFocus=function(){w.accessibilityManager.focus()}}var D=this.parseEventsOfWrapper();return S.createElement(qb,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement("div",Br({className:Z("recharts-wrapper",b),style:I({position:"relative",cursor:"default",width:_,height:A},P)},D,{ref:function(F){w.container=F}}),S.createElement(Ul,Br({},M,{width:_,height:A,title:j,desc:T,style:FL}),this.renderClipPath(),Pp(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(N.Component);G(y,"displayName",r),G(y,"defaultProps",I({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),G(y,"getDerivedStateFromProps",function(h,g){var x=h.dataKey,w=h.data,O=h.children,m=h.width,b=h.height,_=h.layout,A=h.stackOffset,P=h.margin,E=g.dataStartIndex,j=g.dataEndIndex;if(g.updateId===void 0){var T=l0(h);return I(I(I({},T),{},{updateId:0},p(I(I({props:h},T),{},{updateId:0}),g)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:b,prevLayout:_,prevStackOffset:A,prevMargin:P,prevChildren:O})}if(x!==g.prevDataKey||w!==g.prevData||m!==g.prevWidth||b!==g.prevHeight||_!==g.prevLayout||A!==g.prevStackOffset||!Fr(P,g.prevMargin)){var $=l0(h),M={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},k=I(I({},c0(g,w,_)),{},{updateId:g.updateId+1}),R=I(I(I({},$),M),k);return I(I(I({},R),p(I({props:h},R),g)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:b,prevLayout:_,prevStackOffset:A,prevMargin:P,prevChildren:O})}if(!zl(O,g.prevChildren)){var D,B,F,K,X=He(O,an),W=X&&(D=(B=X.props)===null||B===void 0?void 0:B.startIndex)!==null&&D!==void 0?D:E,Y=X&&(F=(K=X.props)===null||K===void 0?void 0:K.endIndex)!==null&&F!==void 0?F:j,de=W!==E||Y!==j,ge=!J(w),We=ge&&!de?g.updateId:g.updateId+1;return I(I({updateId:We},p(I(I({props:h},g),{},{updateId:We,dataStartIndex:W,dataEndIndex:Y}),g)),{},{prevChildren:O,dataStartIndex:W,dataEndIndex:Y})}return null}),G(y,"renderActiveDot",function(h,g,x){var w;return N.isValidElement(h)?w=N.cloneElement(h,g):V(h)?w=h(g):w=S.createElement(Mi,g),S.createElement(te,{className:"recharts-active-dot",key:x},w)});var v=N.forwardRef(function(g,x){return S.createElement(y,Br({},g,{ref:x}))});return v.displayName=y.displayName,v},JL=Ro({chartName:"LineChart",GraphicalChild:yr,axisComponents:[{axisType:"xAxis",AxisComp:Qe},{axisType:"yAxis",AxisComp:et}],formatAxisMap:nh}),Vi=Ro({chartName:"BarChart",GraphicalChild:tt,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Qe},{axisType:"yAxis",AxisComp:et}],formatAxisMap:nh}),ZL=Ro({chartName:"PieChart",GraphicalChild:Rt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Po},{axisType:"radiusAxis",AxisComp:Ao}],formatAxisMap:Sk,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),QL=Ro({chartName:"AreaChart",GraphicalChild:Yt,axisComponents:[{axisType:"xAxis",AxisComp:Qe},{axisType:"yAxis",AxisComp:et}],formatAxisMap:nh});const B1=N.createContext(!1),mq=B1.Provider,F1=()=>N.useContext(B1),Ir=(e,t)=>t?Math.min(e,180):e,ht="oklch(0.62 0.14 158)",eq="oklch(0.62 0.14 158 / 0.18)",Xi=[ht,"oklch(0.65 0.14 220)","oklch(0.70 0.14 75)","oklch(0.62 0.18 295)"],Rr="oklch(0.9 0.005 280)",ke="oklch(0.5 0.015 270)",Yi=e=>Math.abs(e)>=1e3?`$${(e/1e3).toFixed(1).replace(/\.0$/,"")}K`:`$${e}`,d0=e=>typeof e!="number"?`${e}`:Math.abs(e)>=1e3?`$${(e/1e3).toFixed(1).replace(/\.0$/,"")}K`:`$${e}`,h0=e=>e>=1e3?`${(e/1e3).toFixed(1)}B`:`${e}M`;function tq({delta:e}){const t=e.tone==="up-bad"?"bg-red-50 text-red-700 border-red-200":e.tone==="down-good"||e.tone==="up-good"?"bg-emerald-50 text-emerald-700 border-emerald-200":"bg-muted text-muted-foreground border-border",r=e.tone==="up-bad"||e.tone==="up-good"?eO:Z1;return C.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full border text-xs font-medium ${t}`,children:[C.jsx(r,{className:"size-3"}),e.label]})}function rq(){return{contentStyle:{background:"white",border:"1px solid oklch(0.9 0.005 280)",borderRadius:8,fontSize:12,color:"oklch(0.2 0.02 270)",boxShadow:"0 4px 12px rgba(15,30,60,0.08)"},labelStyle:{color:ke},itemStyle:{color:"oklch(0.2 0.02 270)"}}}function nq({spec:e}){const t=F1(),r=rq();if(e.kind==="line")return C.jsx(er,{width:"100%",height:Ir(200,t),children:C.jsxs(JL,{data:e.data,margin:{top:8,right:8,left:-10,bottom:0}
65,children:[C.jsx(or,{stroke:Rr,strokeDasharray:"3 3",vertical:!1}),C.jsx(Qe,{dataKey:"x",stroke:ke,fontSize:10,tickLine:!1,axisLine:!1}),C.jsx(et,{stroke:ke,fontSize:10,tickLine:!1,axisLine:!1,tickFormatter:d0}),C.jsx(Ie,{...r,formatter:n=>Yi(n)}),C.jsx(yr,{type:"monotone",dataKey:"y",stroke:ht,strokeWidth:2.5,dot:!1})]})});if(e.kind==="area")return C.jsx(er,{width:"100%",height:Ir(220,t),children:C.jsxs(QL,{data:e.data,margin:{top:8,right:8,left:-10,bottom:0},children:[C.jsx("defs",{children:C.jsxs("linearGradient",{id:"areafill",x1:"0",y1:"0",x2:"0",y2:"1",children:[C.jsx("stop",{offset:"0%",stopColor:ht,stopOpacity:.45}),C.jsx("stop",{offset:"100%",stopColor:ht,stopOpacity:0})]})}),C.jsx(or,{stroke:Rr,strokeDasharray:"3 3",vertical:!1}),C.jsx(Qe,{dataKey:"x",stroke:ke,fontSize:10,tickLine:!1,axisLine:!1}),C.jsx(et,{stroke:ke,fontSize:10,tickLine:!1,axisLine:!1,tickFormatter:d0}),C.jsx(Ie,{...r,formatter:n=>Yi(n)}),e.data.some(n=>n.budget!==void 0)&&C.jsx(yr,{type:"monotone",dataKey:"budget",stroke:"oklch(0.65 0.14 75)",strokeDasharray:"4 3",strokeWidth:1.5,dot:!1}),C.jsx(Yt,{type:"monotone",dataKey:"y",stroke:ht,strokeWidth:2,fill:"url(#areafill)"}),e.data.some(n=>n.projected!==void 0)&&C.jsx(yr,{type:"monotone",dataKey:"projected",stroke:ht,strokeDasharray:"4 3",strokeWidth:2,dot:!1})]})});if(e.kind==="donut"){const n=e.data.reduce((i,a)=>i+a.value,0);return C.jsxs("div",{className:"flex items-center gap-4 flex-wrap",children:[C.jsx(er,{width:180,height:180,children:C.jsxs(ZL,{children:[C.jsx(Rt,{data:e.data,dataKey:"value",innerRadius:50,outerRadius:80,paddingAngle:2,stroke:"none",children:e.data.map((i,a)=>C.jsx(fo,{fill:Xi[a%Xi.length]},a))}),C.jsx(Ie,{...r,formatter:i=>Yi(i)})]})}),C.jsx("div",{className:"flex-1 min-w-[160px] space-y-1.5",children:e.data.map((i,a)=>C.jsxs("div",{className:"flex items-center justify-between text-xs",children:[C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("span",{className:"size-2.5 rounded-sm",style:{background:Xi[a%Xi.length]}}),C.jsx("span",{className:"text-foreground/85",children:i.name})]}),C.jsxs("div",{className:"font-mono text-foreground/70",children:[Yi(i.value)," ",C.jsxs("span",{className:"text-muted-foreground",children:["· ",Math.round(i.value/n*100),"%"]})]})]},i.name))})]})}if(e.kind==="bar"){const n=e.horizontal;return C.jsx(er,{width:"100%",height:Ir(Math.max(180,e.data.length*36+40),t),children:C.jsxs(Vi,{data:e.data,layout:n?"vertical":"horizontal",margin:{top:8,right:12,left:n?8:-10,bottom:0},children:[C.jsx(or,{stroke:Rr,strokeDasharray:"3 3",horizontal:!n,vertical:n}),n?C.jsxs(C.Fragment,{children:[C.jsx(Qe,{type:"number",stroke:ke,fontSize:10,tickLine:!1,axisLine:!1,tickFormatter:i=>i>=1e3?`$${(i/1e3).toFixed(0)}K`:`${i}`}),C.jsx(et,{type:"category",dataKey:"name",stroke:ke,fontSize:11,tickLine:!1,axisLine:!1,width:130})]}):C.jsxs(C.Fragment,{children:[C.jsx(Qe,{dataKey:"name",stroke:ke,fontSize:10,tickLine:!1,axisLine:!1,interval:0}),C.jsx(et,{stroke:ke,fontSize:10,tickLine:!1,axisLine:!1,tickFormatter:i=>i>=1e3?`$${(i/1e3).toFixed(0)}K`:`${i}`})]}),C.jsx(Ie,{...r,cursor:{fill:"oklch(0.95 0.01 280)"}}),C.jsx(tt,{dataKey:"value",fill:ht,radius:[4,4,4,4]})]})})}if(e.kind==="stackedBar")return C.jsx(er,{width:"100%",height:Ir(220,t),children:C.jsxs(Vi,{data:e.data,margin:{top:8,right:8,left:-10,bottom:0},children:[C.jsx(or,{stroke:Rr,strokeDasharray:"3 3",vertical:!1}),C.jsx(Qe,{dataKey:"name",stroke:ke,fontSize:11,tickLine:!1,axisLine:!1}),C.jsx(et,{stroke:ke,fontSize:10,tickLine:!1,axisLine:!1,tickFormatter:n=>h0(n)}),C.jsx(Ie,{...r,formatter:n=>h0(n)}),C.jsx(zt,{wrapperStyle:{fontSize:11,color:ke}}),C.jsx(tt,{dataKey:"input",stackId:"a",fill:ht,name:"Input"}),C.jsx(tt,{dataKey:"output",stackId:"a",fill:eq,name:"Output",radius:[4,4,0,0]})]})});if(e.kind==="groupedBar"){const n=[ht,"oklch(0.65 0.14 220)","oklch(0.70 0.14 75)"];return C.jsx(er,{width:"100%",height:Ir(240,t),children:C.jsxs(Vi,{data:e.data,margin:{top:8,right:8,left:-10,bottom:0},children:[C.jsx(or,{stroke:Rr,strokeDasharray:"3 3",vertical:!1}),C.jsx(Qe,{dataKey:e.xKey,stroke:ke,fontSize:11,tickLine:!1,axisLine
65:!1}),C.jsx(et,{stroke:ke,fontSize:10,tickLine:!1,axisLine:!1,domain:[0,16],ticks:[0,4,8,12,16],tickFormatter:i=>`$${i}`}),C.jsx(Ie,{...r,formatter:i=>`$${i.toFixed(2)}`}),C.jsx(zt,{wrapperStyle:{fontSize:11,color:ke}}),e.series.map((i,a)=>C.jsx(tt,{dataKey:i,fill:n[a%n.length],radius:[4,4,0,0]},i))]})})}return e.kind==="compareBar"?C.jsx(er,{width:"100%",height:Ir(200,t),children:C.jsxs(Vi,{data:e.data,margin:{top:8,right:8,left:-10,bottom:0},children:[C.jsx(or,{stroke:Rr,strokeDasharray:"3 3",vertical:!1}),C.jsx(Qe,{dataKey:"name",stroke:ke,fontSize:11,tickLine:!1,axisLine:!1}),C.jsx(et,{stroke:ke,fontSize:10,tickLine:!1,axisLine:!1,tickFormatter:n=>`$${n}`}),C.jsx(Ie,{...r,formatter:n=>`$${n.toFixed(2)}`}),C.jsx(tt,{dataKey:"cost",fill:ht,radius:[4,4,0,0],name:"AI cost"}),C.jsx(tt,{dataKey:"uplift",fill:"oklch(0.65 0.14 220)",radius:[4,4,0,0],name:"ARPU uplift"})]})}):null}function gq({answer:e,onFollowup:t}){const r=F1();return C.jsxs("div",{className:`rounded-xl border border-border bg-card ${r?"p-3.5 space-y-3.5":"p-5 sm:p-6 space-y-5"} animate-fade-in shadow-sm`,children:[C.jsx("p",{className:`text-sm leading-relaxed text-foreground ${r?"pb-2.5":"pb-3"} border-b border-border`,children:e.billyLine}),C.jsxs("div",{className:"flex flex-wrap items-end gap-3",children:[C.jsx("div",{className:`${r?"text-2xl":"text-3xl sm:text-4xl"} font-bold tracking-tight text-primary leading-none`,children:e.headline}),e.delta&&C.jsx(tq,{delta:e.delta})]}),C.jsx("div",{className:`rounded-lg border border-border bg-card ${r?"p-2":"p-3"}`,children:C.jsx(nq,{spec:e.chart})}),e.table&&C.jsx("div",{className:"rounded-lg border border-border overflow-x-auto",children:C.jsxs("table",{className:"w-full text-sm",children:[C.jsx("thead",{className:"bg-muted text-muted-foreground text-xs uppercase tracking-wide",children:C.jsx("tr",{children:e.table.columns.map(n=>C.jsx("th",{className:"text-left px-4 py-2.5 font-medium whitespace-nowrap",children:n},n))})}),C.jsx("tbody",{className:"font-mono text-[13px] text-foreground",children:e.table.rows.map((n,i)=>C.jsx("tr",{className:"border-t border-border",children:n.map((a,o)=>C.jsx("td",{className:"px-4 py-3 whitespace-nowrap",children:a},o))},i))})]})}),C.jsxs("div",{className:"flex items-start gap-2.5 rounded-lg bg-finout-green-soft px-3 py-2.5",children:[C.jsx(V1,{className:"size-4 text-primary mt-0.5 shrink-0"}),C.jsxs("p",{className:"text-[13px] leading-relaxed text-foreground",children:[C.jsx("span",{className:"font-semibold text-primary",children:"Insight · "}),e.insight]})]}),C.jsxs("div",{className:"flex flex-wrap items-center gap-2 pt-1",children:[C.jsx("span",{className:"text-xs text-muted-foreground self-center mr-1",children:"Follow up:"}),e.followups.map(n=>C.jsx(iq,{id:n,onClick:()=>t(n)},n)),C.jsx("div",{className:"flex-1"}),C.jsx(aq,{answer:e}),C.jsx(oq,{answer:e})]})]})}function iq({id:e,onClick:t}){const r=ql(e);return r?C.jsxs("button",{onClick:t,className:"inline-flex items-center gap-1.5 text-xs px-3 py-1.5 rounded-full border border-border bg-card hover:border-primary/50 hover:bg-primary/5 transition text-foreground/85",children:[C.jsx(z1,{className:"size-3 text-muted-foreground"}),r.question]}):null}function aq({answer:e}){const[t,r]=N.useState(!1),n=()=>{t||(r(!0),window.setTimeout(()=>r(!1),3500))},i=t?"Demo — no real message was sent":`Send "${e.headline}" to the team lead on Slack (demo)`;return C.jsx("button",{onClick:n,disabled:t,title:i,"aria-label":"Alert team lead on Slack",className:`inline-flex items-center gap-1.5 text-xs px-3 py-1.5 rounded-full border transition ${t?"border-emerald-200 bg-emerald-50 text-emerald-700 cursor-default":"border-border bg-card hover:border-primary/50 hover:bg-primary/5 text-foreground/85"}`,children:t?C.jsxs(C.Fragment,{children:[C.jsx(p0,{className:"size-3"}),"Team lead alerted on Slack"]}):C.jsxs(C.Fragment,{children:[C.jsx(Y1,{className:"size-3 text-muted-foreground"}),"Alert team lead on Slack"]})})}function oq({answer:e}){const[t,r]=N.useState(!1),n=()=>{t||(r(!0),window.setTimeout(()=>r(!1),3500))},i=t?"Demo — no real report was generated":`Build a detailed CFO report from "${e.headline}" (demo)`;return C.jsx("button",{onClick:n,disabled:t,title:i,"aria-label":"Create detailed report for CFO",className:`inline-flex items-center gap-1.5 text-xs px-3 py-1.5 rounded-full border transition ${t?"border-emerald-200 bg-emerald-50 text-emerald-700 cursor-default":"border-border bg-card hover:border-primary/50 hover:bg-primary/5 text-foreground
65/85"}`,children:t?C.jsxs(C.Fragment,{children:[C.jsx(p0,{className:"size-3"}),"CFO report ready"]}):C.jsxs(C.Fragment,{children:[C.jsx(H1,{className:"size-3 text-muted-foreground"}),"Create CFO report"]})})}const uq=2,sq=3;function bq(){const[e,t]=N.useState([]),[r,n]=N.useState(""),[i,a]=N.useState(!1),[o,u]=N.useState(0),[s,c]=N.useState(!1),[f,l]=N.useState(!1),d=N.useRef(null),p=N.useRef(null),y=e.length===0&&!i,v=!s&&o>=uq;function h(P){const{text:E,viaAnswer:j}=P,T=E.trim();if(!T&&!j)return;t(M=>[...M,{kind:"user",text:j?.question??T}]),n(""),a(!0);const $=600+Math.random()*300;window.setTimeout(()=>{const M=j??oO(T);a(!1),M?(t(k=>[...k,{kind:"billy",answer:M}]),u(k=>k+1)):t(k=>[...k,{kind:"miss"}]),p.current?.focus()},$)}function g(P,E){if(!(i||!P.trim()&&!E)){if(v){d.current={text:P,viaAnswer:E},l(!0);return}h({text:P,viaAnswer:E})}}function x(P){const E=ql(P);E&&g("",E)}function w(){v&&!f&&l(!0)}function O(){l(!1)}async function m(P){const E=P.email.trim();if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(E))return{ok:!1,error:"Please enter a valid work email."};const T=[{objectTypeId:"0-1",name:"email",value:E},{objectTypeId:"0-1",name:"firstname",value:P.firstName.trim()},{objectTypeId:"0-1",name:"lastname",value:P.lastName.trim()},{objectTypeId:"0-1",name:"company",value:P.company.trim()}];try{if(!(await fetch(`https://api.hsforms.com/submissions/v3/integration/submit/${nO}/${iO}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fields:T,context:{pageUri:typeof document<"u"&&document.referrer||(typeof window<"u"?window.location.href:""),pageName:typeof document<"u"?document.title:""}})})).ok)return{ok:!1,error:"Something went wrong, try again"}}catch{return{ok:!1,error:"Something went wrong, try again"}}return{ok:!0}}function b(){c(!0),l(!1);const P=d.current;d.current=null,P?window.setTimeout(()=>h(P),50):p.current?.focus()}function _(){t([]),u(0),c(!1),l(!1),n(""),d.current=null}const A=aO.map(P=>ql(P)).filter(Boolean);return{items:e,input:r,setInput:n,typing:i,isGreeting:y,inputRef:p,ask:g,askFollowup:x,restart:_,starters:A,locked:v,gateOpen:f,notifyInteraction:w,closeGate:O,submitGate:m,unlock:b,answeredCount:o,cappedInEmbed:o>=sq}}const cq="/__l5e/assets-v1/a41a90af-26f5-4ff7-9d6a-38c9afa7a983/billy-mascot.png",lq={url:cq},fq=lq.url;function xq({open:e,onClose:t,onSubmit:r,onUnlock:n}){const[i,a]=N.useState(""),[o,u]=N.useState(""),[s,c]=N.useState(""),[f,l]=N.useState(""),[d,p]=N.useState(!1),[y,v]=N.useState(null),[h,g]=N.useState(!1);if(N.useEffect(()=>{e||(v(null),p(!1))},[e]),!e)return null;async function x(O){if(O.preventDefault(),d)return;if(v(null),!i.trim()||!o.trim()||!s.trim()||!f.trim()){v("Please fill in all required fields.");return}p(!0);const m=await r({email:i.trim(),firstName:o.trim(),lastName:s.trim(),company:f.trim()});p(!1),m.ok?g(!0):v(m.error)}function w(){n(),g(!1),a(""),u(""),c(""),l("")}return C.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/45 backdrop-blur-[2px] animate-fade-in",onClick:t,role:"dialog","aria-modal":"true",children:C.jsxs("div",{className:"relative w-full max-w-[440px] rounded-2xl bg-card border border-border shadow-2xl p-6 sm:p-7",onClick:O=>O.stopPropagation(),children:[C.jsx("button",{type:"button",onClick:t,"aria-label":"Close",className:"absolute right-3 top-3 size-8 grid place-items-center rounded-md text-muted-foreground hover:bg-muted transition",children:C.jsx(rO,{className:"size-4"})}),C.jsx("div",{className:"flex justify-center mb-3",children:C.jsx("div",{className:"size-12 rounded-full bg-background border border-border bg-no-repeat",style:{backgroundImage:`url(${fq})`,backgroundSize:"auto 48px",backgroundPosition:"center"},"aria-hidden":!0})}),h?C.jsxs("div",{className:"text-center space-y-4",children:[C.jsx("h2",{className:"text-[18px] font-semibold text-foreground leading-snug",children:"Thanks! A FinOps specialist will reach out. Meanwhile, Billy is all yours."}),C.jsx("button",{type:"button",onClick:w,className:"inline-flex items-center justify-center w-full px-4 py-2.5 rounded-md bg-primary hover:brightness-110 text-primary-foreground text-[14px] font-semibold transition",children:"Keep asking Billy"})]}):C.jsxs("form",{onSubmit:x,className:"space-y-3",children:[C.jsx("h2",{className:"text-center text-[17px] sm:text-[18px] font-semibold text-foreground leading-snug",children:"Ready to put Billy to work on your cloud and AI spend?"}),C.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[C.jsx("input",{type:"text",autoFocus:!0,value:o,onChange:O=>u(O.target.value),placeholder:"First name *",className:"w-full px-3.5 py-2.5 rounded-md bg-background border border-border focus:border-primary focus:outline-none text-[14px] text-foreground placeholder:text-muted-foreground",disabled:d}),C.jsx("input",{type:"text",value:s,onChange:O=>c(O.target.value),placeholder:"Last name *",className:"w-full px-3.5 py-2.5 rounded-md bg-background border border-border focus:border-primary focus:outline-none text-[14px] text-foreground placeholder:text-muted-foreground",disabled:d})]}),C.jsx("input",{type:"email",value:i,onChange:O=>a(O.target.value),placeholder:"Work email *",className:"w-full px-3.5 py-2.5 rounded-md bg-background border border-border focus:border-primary focus:outline-none text-[14px] text-foreground placeholder:text-muted-foreground",disabled:d}),C.jsx("input",{type:"text",value:f,onChange:O=>l(O.target.value),placeholder:"Company *",className:"w-full px-3.5 py-2.5 rounded-md bg-background border border-border focus:border-primary focus:outline-none text-[14px] text-foreground placeholder:text-muted-foreground",disabled:d}),C.jsx("button",{type:"submit",disabled:d,className:"w-full px-4 py-2.5 rounded-md bg-primary hover:brightness-110 text-primary-foreground text-[14px] font-semibold transition disabled:opacity-60",children:d?"Sending…":"Show me how"}),C.jsxs("div",{className:"text-[12.5px] text-center text-muted-foreground",children:["or"," ",C.jsx("a",{href:"https://www.finout.io/book-a-demo-page",target:"_blank",rel:"noopener noreferrer",className:"underline text-primary hover:text-primary/80",children:"book a demo directly"})]}),y&&C.jsx("div",{className:"text-[12.5px] text-destructive text-center",children:y})]})]})})}export{gq as A,mq as C,pq as D,xq as E,yq as F,p0 as a,lq as b,vq as c,bq as u};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.