orbitchat 3.10.3 → 3.10.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -28,21 +28,14 @@ Installed CLI commands:
28
28
  export ORBIT_ADAPTER_KEYS='{"simple-chat":"my-secret-key"}'
29
29
  ```
30
30
 
31
- 2. (Optional) Configure adapter URLs and metadata in `orbitchat.yaml`:
32
- ```yaml
33
- adapters:
34
- - id: "simple-chat"
35
- name: "Simple Chat"
36
- apiUrl: "http://localhost:3000"
37
- description: "Default conversational agent."
38
- ```
39
-
40
- 3. Run the CLI:
31
+ 2. Run the CLI:
41
32
  ```bash
42
- orbitchat --config ./orbitchat.yaml --port 5173
33
+ orbitchat
43
34
  ```
44
35
 
45
- 4. Open `http://localhost:5173` — select an agent and start chatting.
36
+ 3. Open `http://localhost:5173` — select an agent and start chatting.
37
+
38
+ > **Tip:** For custom adapter names, descriptions, backend URLs, or multiple adapters pointing to different hosts, create an `orbitchat.yaml` (see `orbitchat.yaml.example`) and pass it via `--config ./orbitchat.yaml`. Without it, adapters default to `http://localhost:3000` with the adapter ID as the display name.
46
39
 
47
40
  ## Architecture
48
41
 
@@ -78,7 +71,7 @@ Options:
78
71
  # Start with a custom config file
79
72
  orbitchat --config /path/to/orbitchat.yaml
80
73
 
81
- # Start with adapter keys defined inline
74
+ # Start with adapter keys defined inline (defaults to http://localhost:3000)
82
75
  ORBIT_ADAPTER_KEYS='{"Chat":"mykey"}' orbitchat
83
76
 
84
77
  # API proxy only — no UI, no build required
@@ -256,11 +249,19 @@ orbitchat --port 8080
256
249
 
257
250
  ## Troubleshooting
258
251
 
252
+ ### `GET /api/adapters` returns 404
253
+
254
+ This means orbitchat started with no valid adapters — `ORBIT_ADAPTER_KEYS` was not set, was invalid JSON, or all keys had empty values. Check:
255
+
256
+ 1. `ORBIT_ADAPTER_KEYS` is exported and contains valid JSON.
257
+ 2. The values are non-empty strings (e.g. `'{"simple-chat":"my-key"}'` not `'{"simple-chat":""}'`).
258
+ 3. The CLI startup logs show "Loaded N adapters".
259
+
259
260
  ### No Adapters Available
260
261
 
261
262
  If the agent selector shows no adapters:
262
- 1. Ensure `VITE_ADAPTER_KEYS` is set and contains valid JSON.
263
- 2. Verify that the adapter `id` in `orbitchat.yaml` exactly matches the key used in `VITE_ADAPTER_KEYS`.
263
+ 1. Ensure `ORBIT_ADAPTER_KEYS` (or `VITE_ADAPTER_KEYS`) is set and contains valid JSON.
264
+ 2. If using `orbitchat.yaml`, verify that the adapter `id` exactly matches the key used in `ORBIT_ADAPTER_KEYS`.
264
265
  3. Check the CLI startup logs for "Available Adapters: ...".
265
266
 
266
267
  ### Stale Configuration
package/bin/orbitchat.js CHANGED
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * ORBIT Chat CLI
4
4
  *
5
- * Serves the chat-app as a standalone application with runtime configuration.
5
+ * Serves the orbitchat as a standalone application with runtime configuration.
6
6
  * Configuration is read from orbitchat.yaml.
7
7
  * Secrets come from VITE_ADAPTER_KEYS / ORBIT_ADAPTER_KEYS env var.
8
8
  */
@@ -334,8 +334,9 @@ function loadAdaptersForProxy(yamlAdapters) {
334
334
  const keys = JSON.parse(envKeysRaw);
335
335
  for (const [id, value] of Object.entries(keys)) {
336
336
  if (!adapters[id]) {
337
- // Strict mode: only adapters explicitly declared in orbitchat.yaml are allowed.
338
- continue;
337
+ // Auto-register adapters declared only via env (no YAML entry).
338
+ // Uses the fallback API URL; YAML declaration overrides this when present.
339
+ adapters[id] = { apiKey: '', apiUrl: fallbackApiUrl, name: id };
339
340
  }
340
341
  const isObjectValue = typeof value === 'object' && value !== null;
341
342
  adapters[id].apiKey = isObjectValue ? String(value.apiKey || value.key || '') : String(value);
@@ -1,4 +1,4 @@
1
- var G0=Object.defineProperty;var H0=(e,t,r)=>t in e?G0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var di=(e,t,r)=>H0(e,typeof t!="symbol"?t+"":t,r);import{r as c,a as us,g as U0,f as q0,j as I}from"./vendor-markdown-CQ_RitqP.js";import{w as cm,Q as fm,b as Ee,al as ss,aq as X0,ar as Y0,l as dm,t as _o,d as Tt,p as ou,s as Mi,a as vm,a5 as _n,n as af,as as Z0,a6 as J0,a8 as Q0,ac as To,a9 as ex,ad as tx,a7 as rx,q as nx,a4 as ax,at as ix,ab as pm,ae as ox,af as lx,ag as ux,ah as sx,ai as cx,aj as fx,ak as dx,am as vx,an as px,c as mx,ao as hx,ap as yx}from"./isPrototype-DezZrpQP.js";import{b as gx,p as bx}from"./band-CquvqAHh.js";import{d as Li,n as xx,e as Px,i as cs,f as lu,g as un,h as fs,a as ds,j as of,k as or,c as wx,m as Do,o as mm,l as Ox,p as Ax}from"./linear-BGneeY6s.js";import{i as Er,a as cr}from"./init-Dmth1JHB.js";import{m as lf,a as uf,p as Ex,q as Sx,u as jx,s as Ix,r as kx,v as Cx,w as _x,x as Tx,y as Dx,z as $x,A as Rx,B as Nx,t as Mx}from"./time-DJ0lCX4i.js";import{f as Lx,b as zx}from"./defaultLocale-DX6XiGOO.js";import{i as Bx,o as Kx}from"./ordinal-DILIJJjt.js";import{r as vs}from"./index-Cz_DOmYk.js";import"./vendor-react-C3O77mRn.js";import"./vendor-syntax-Bg-E9hW_.js";import"./vendor-auth-CrXMNoGZ.js";function Wx(e=Li){if(e===Li)return hm;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 hm(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}function ym(e,t,r=0,n=1/0,a){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(a=a===void 0?hm:Wx(a);n>r;){if(n-r>600){const u=n-r+1,s=t-r+1,f=Math.log(u),d=.5*Math.exp(2*f/3),v=.5*Math.sqrt(f*d*(u-d)/u)*(s-u/2<0?-1:1),p=Math.max(r,Math.floor(t-s*d/u+v)),h=Math.min(n,Math.floor(t+(u-s)*d/u+v));ym(e,t,p,h,a)}const i=e[t];let o=r,l=n;for(sa(e,r,t),a(e[n],i)>0&&sa(e,r,n);o<l;){for(sa(e,o,l),++o,--l;a(e[o],i)<0;)++o;for(;a(e[l],i)>0;)--l}a(e[r],i)===0?sa(e,r,l):(++l,sa(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function sa(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Fx(e,t,r){if(e=Float64Array.from(xx(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return lf(e);if(t>=1)return uf(e);var n,a=(n-1)*t,i=Math.floor(a),o=uf(ym(e,i).subarray(0,i+1)),l=lf(e.subarray(i+1));return o+(l-o)*(a-i)}}function Vx(e,t,r=Px){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,a=(n-1)*t,i=Math.floor(a),o=+r(e[i],i,e),l=+r(e[i+1],i+1,e);return o+(l-o)*(a-i)}}function Gx(e,t){t===void 0&&(t=e,e=cs);for(var r=0,n=t.length-1,a=t[0],i=new Array(n<0?0:n);r<n;)i[r]=e(a,a=t[++r]);return function(o){var l=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return i[l](o-l)}}function gm(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,lu),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return gm(e).unknown(t)},e=arguments.length?Array.from(e,lu):[0,1],un(r)}function sf(e){return Math.log(e)}function cf(e){return Math.exp(e)}function Hx(e){return-Math.log(-e)}function Ux(e){return-Math.exp(-e)}function qx(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Xx(e){return e===10?qx:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Yx(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 ff(e){return(t,r)=>-e(-t,r)}function ps(e){const t=e(sf,cf),r=t.domain;let n=10,a,i;function o(){return a=Yx(n),i=Xx(n),r()[0]<0?(a=ff(a),i=ff(i),e(Hx,Ux)):e(sf,cf),t}return t.base=function(l){return arguments.length?(n=+l,o()):n},t.domain=function(l){return arguments.length?(r(l),o()):r()},t.ticks=l=>{const u=r();let s=u[0],f=u[u.length-1];const d=f<s;d&&([s,f]=[f,s]);let v=a(s),p=a(f),h,m;const y=l==null?10:+l;let g=[];if(!(n%1)&&p-v<y){if(v=Math.floor(v),p=Math.ceil(p),s>0){for(;v<=p;++v)for(h=1;h<n;++h)if(m=v<0?h/i(-v):h*i(v),!(m<s)){if(m>f)break;g.push(m)}}else for(;v<=p;++v)for(h=n-1;h>=1;--h)if(m=v>0?h/i(-v):h*i(v),!(m<s)){if(m>f)break;g.push(m)}g.length*2<y&&(g=of(s,f,y))}else g=of(v,p,Math.min(p-v,y)).map(i);return d?g.reverse():g},t.tickFormat=(l,u)=>{if(l==null&&(l=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=Lx(u)).precision==null&&(u.trim=!0),u=zx(u)),l===1/0)return u;const s=Math.max(1,n*l/t.ticks().length);return f=>{let d=f/i(Math.round(a(f)));return d*n<n-.5&&(d*=n),d<=s?u(f):""}},t.nice=()=>r(Ex(r(),{floor:l=>i(Math.floor(a(l))),ceil:l=>i(Math.ceil(a(l)))})),t}function bm(){const e=ps(fs()).domain([1,10]);return e.copy=()=>ds(e,bm()).base(e.base()),Er.apply(e,arguments),e}function df(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function vf(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function ms(e){var t=1,r=e(df(t),vf(t));return r.constant=function(n){return arguments.length?e(df(t=+n),vf(t)):t},un(r)}function xm(){var e=ms(fs());return e.copy=function(){return ds(e,xm()).constant(e.constant())},Er.apply(e,arguments)}function pf(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Zx(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Jx(e){return e<0?-e*e:e*e}function hs(e){var t=e(or,or),r=1;function n(){return r===1?e(or,or):r===.5?e(Zx,Jx):e(pf(r),pf(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},un(t)}function ys(){var e=hs(fs());return e.copy=function(){return ds(e,ys()).exponent(e.exponent())},Er.apply(e,arguments),e}function Qx(){return ys.apply(null,arguments).exponent(.5)}function mf(e){return Math.sign(e)*e*e}function eP(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Pm(){var e=wx(),t=[0,1],r=!1,n;function a(i){var o=eP(e(i));return isNaN(o)?n:r?Math.round(o):o}return a.invert=function(i){return e.invert(mf(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,lu)).map(mf)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(r=!!i,a):r},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return Pm(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Er.apply(a,arguments),un(a)}function wm(){var e=[],t=[],r=[],n;function a(){var o=0,l=Math.max(1,t.length);for(r=new Array(l-1);++o<l;)r[o-1]=Vx(e,o/l);return i}function i(o){return o==null||isNaN(o=+o)?n:t[Do(r,o)]}return i.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?r[l-1]:e[0],l<r.length?r[l]:e[e.length-1]]},i.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(Li),a()},i.range=function(o){return arguments.length?(t=Array.from(o),a()):t.slice()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.quantiles=function(){return r.slice()},i.copy=function(){return wm().domain(e).range(t).unknown(n)},Er.apply(i,arguments)}function Om(){var e=0,t=1,r=1,n=[.5],a=[0,1],i;function o(u){return u!=null&&u<=u?a[Do(n,u,0,r)]:i}function l(){var u=-1;for(n=new Array(r);++u<r;)n[u]=((u+1)*t-(u-r)*e)/(r+1);return o}return o.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,l()):[e,t]},o.range=function(u){return arguments.length?(r=(a=Array.from(u)).length-1,l()):a.slice()},o.invertExtent=function(u){var s=a.indexOf(u);return s<0?[NaN,NaN]:s<1?[e,n[0]]:s>=r?[n[r-1],t]:[n[s-1],n[s]]},o.unknown=function(u){return arguments.length&&(i=u),o},o.thresholds=function(){return n.slice()},o.copy=function(){return Om().domain([e,t]).range(a).unknown(i)},Er.apply(un(o),arguments)}function Am(){var e=[.5],t=[0,1],r,n=1;function a(i){return i!=null&&i<=i?t[Do(e,i,0,n)]:r}return a.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return Am().domain(e).range(t).unknown(r)},Er.apply(a,arguments)}function tP(){return Er.apply(Sx(Nx,Rx,$x,Dx,Tx,_x,Cx,kx,Ix,jx).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function $o(){var e=0,t=1,r,n,a,i,o=or,l=!1,u;function s(d){return d==null||isNaN(d=+d)?u:o(a===0?.5:(d=(i(d)-r)*a,l?Math.max(0,Math.min(1,d)):d))}s.domain=function(d){return arguments.length?([e,t]=d,r=i(e=+e),n=i(t=+t),a=r===n?0:1/(n-r),s):[e,t]},s.clamp=function(d){return arguments.length?(l=!!d,s):l},s.interpolator=function(d){return arguments.length?(o=d,s):o};function f(d){return function(v){var p,h;return arguments.length?([p,h]=v,o=d(p,h),s):[o(0),o(1)]}}return s.range=f(cs),s.rangeRound=f(mm),s.unknown=function(d){return arguments.length?(u=d,s):u},function(d){return i=d,r=d(e),n=d(t),a=r===n?0:1/(n-r),s}}function Sr(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Em(){var e=un($o()(or));return e.copy=function(){return Sr(e,Em())},cr.apply(e,arguments)}function Sm(){var e=ps($o()).domain([1,10]);return e.copy=function(){return Sr(e,Sm()).base(e.base())},cr.apply(e,arguments)}function jm(){var e=ms($o());return e.copy=function(){return Sr(e,jm()).constant(e.constant())},cr.apply(e,arguments)}function gs(){var e=hs($o());return e.copy=function(){return Sr(e,gs()).exponent(e.exponent())},cr.apply(e,arguments)}function rP(){return gs.apply(null,arguments).exponent(.5)}function Im(){var e=[],t=or;function r(n){if(n!=null&&!isNaN(n=+n))return t((Do(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let a of n)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(Li),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,a)=>t(a/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,i)=>Fx(e,i/n))},r.copy=function(){return Im(t).domain(e)},cr.apply(r,arguments)}function Ro(){var e=0,t=.5,r=1,n=1,a,i,o,l,u,s=or,f,d=!1,v;function p(m){return isNaN(m=+m)?v:(m=.5+((m=+f(m))-i)*(n*m<n*i?l:u),s(d?Math.max(0,Math.min(1,m)):m))}p.domain=function(m){return arguments.length?([e,t,r]=m,a=f(e=+e),i=f(t=+t),o=f(r=+r),l=a===i?0:.5/(i-a),u=i===o?0:.5/(o-i),n=i<a?-1:1,p):[e,t,r]},p.clamp=function(m){return arguments.length?(d=!!m,p):d},p.interpolator=function(m){return arguments.length?(s=m,p):s};function h(m){return function(y){var g,b,x;return arguments.length?([g,b,x]=y,s=Gx(m,[g,b,x]),p):[s(0),s(.5),s(1)]}}return p.range=h(cs),p.rangeRound=h(mm),p.unknown=function(m){return arguments.length?(v=m,p):v},function(m){return f=m,a=m(e),i=m(t),o=m(r),l=a===i?0:.5/(i-a),u=i===o?0:.5/(o-i),n=i<a?-1:1,p}}function km(){var e=un(Ro()(or));return e.copy=function(){return Sr(e,km())},cr.apply(e,arguments)}function Cm(){var e=ps(Ro()).domain([.1,1,10]);return e.copy=function(){return Sr(e,Cm()).base(e.base())},cr.apply(e,arguments)}function _m(){var e=ms(Ro());return e.copy=function(){return Sr(e,_m()).constant(e.constant())},cr.apply(e,arguments)}function bs(){var e=hs(Ro());return e.copy=function(){return Sr(e,bs()).exponent(e.exponent())},cr.apply(e,arguments)}function nP(){return bs.apply(null,arguments).exponent(.5)}function vi(e,t,r){var n=null,a=Ee(!0),i=null,o=ss,l=null,u=cm(s);e=typeof e=="function"?e:e===void 0?X0:Ee(+e),t=typeof t=="function"?t:t===void 0?Ee(0):Ee(+t),r=typeof r=="function"?r:r===void 0?Y0:Ee(+r);function s(d){var v,p,h,m=(d=fm(d)).length,y,g=!1,b,x=new Array(m),P=new Array(m);for(i==null&&(l=o(b=u())),v=0;v<=m;++v){if(!(v<m&&a(y=d[v],v,d))===g)if(g=!g)p=v,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),h=v-1;h>=p;--h)l.point(x[h],P[h]);l.lineEnd(),l.areaEnd()}g&&(x[v]=+e(y,v,d),P[v]=+t(y,v,d),l.point(n?+n(y,v,d):x[v],r?+r(y,v,d):P[v]))}if(b)return l=null,b+""||null}function f(){return dm().defined(a).curve(o).context(i)}return s.x=function(d){return arguments.length?(e=typeof d=="function"?d:Ee(+d),n=null,s):e},s.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Ee(+d),s):e},s.x1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:Ee(+d),s):n},s.y=function(d){return arguments.length?(t=typeof d=="function"?d:Ee(+d),r=null,s):t},s.y0=function(d){return arguments.length?(t=typeof d=="function"?d:Ee(+d),s):t},s.y1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:Ee(+d),s):r},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(r)},s.lineX1=function(){return f().x(n).y(t)},s.defined=function(d){return arguments.length?(a=typeof d=="function"?d:Ee(!!d),s):a},s.curve=function(d){return arguments.length?(o=d,i!=null&&(l=o(i)),s):o},s.context=function(d){return arguments.length?(d==null?i=l=null:l=o(i=d),s):i},s}const xs={draw(e,t){const r=Tt(t/ou);e.moveTo(r,0),e.arc(0,0,r,0,_o)}},aP={draw(e,t){const r=Tt(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()}},Tm=Tt(1/3),iP=Tm*2,oP={draw(e,t){const r=Tt(t/iP),n=r*Tm;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},lP={draw(e,t){const r=Tt(t),n=-r/2;e.rect(n,n,r,r)}},uP=.8908130915292852,Dm=Mi(ou/10)/Mi(7*ou/10),sP=Mi(_o/10)*Dm,cP=-vm(_o/10)*Dm,fP={draw(e,t){const r=Tt(t*uP),n=sP*r,a=cP*r;e.moveTo(0,-r),e.lineTo(n,a);for(let i=1;i<5;++i){const o=_o*i/5,l=vm(o),u=Mi(o);e.lineTo(u*r,-l*r),e.lineTo(l*n-u*a,u*n+l*a)}e.closePath()}},_l=Tt(3),dP={draw(e,t){const r=-Tt(t/(_l*3));e.moveTo(0,r*2),e.lineTo(-_l*r,-r),e.lineTo(_l*r,-r),e.closePath()}},lt=-.5,ut=Tt(3)/2,uu=1/Tt(12),vP=(uu/2+1)*3,pP={draw(e,t){const r=Tt(t/vP),n=r/2,a=r*uu,i=n,o=r*uu+r,l=-i,u=o;e.moveTo(n,a),e.lineTo(i,o),e.lineTo(l,u),e.lineTo(lt*n-ut*a,ut*n+lt*a),e.lineTo(lt*i-ut*o,ut*i+lt*o),e.lineTo(lt*l-ut*u,ut*l+lt*u),e.lineTo(lt*n+ut*a,lt*a-ut*n),e.lineTo(lt*i+ut*o,lt*o-ut*i),e.lineTo(lt*l+ut*u,lt*u-ut*l),e.closePath()}};function mP(e,t){let r=null,n=cm(a);e=typeof e=="function"?e:Ee(e||xs),t=typeof t=="function"?t:Ee(t===void 0?64:+t);function a(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:Ee(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:Ee(+i),a):t},a.context=function(i){return arguments.length?(r=i??null,a):r},a}function Yr(e,t){if((o=e.length)>1)for(var r=1,n,a,i=e[t[0]],o,l=i.length;r<o;++r)for(a=i,i=e[t[r]],n=0;n<l;++n)i[n][1]+=i[n][0]=isNaN(a[n][1])?a[n][0]:a[n][1]}function su(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function hP(e,t){return e[t]}function yP(e){const t=[];return t.key=e,t}function gP(){var e=Ee([]),t=su,r=Yr,n=hP;function a(i){var o=Array.from(e.apply(this,arguments),yP),l,u=o.length,s=-1,f;for(const d of i)for(l=0,++s;l<u;++l)(o[l][s]=[0,+n(d,o[l].key,s,i)]).data=d;for(l=0,f=fm(t(o));l<u;++l)o[f[l]].index=l;return r(o,f),o}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:Ee(Array.from(i)),a):e},a.value=function(i){return arguments.length?(n=typeof i=="function"?i:Ee(+i),a):n},a.order=function(i){return arguments.length?(t=i==null?su:typeof i=="function"?i:Ee(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(r=i??Yr,a):r},a}function bP(e,t){if((n=e.length)>0){for(var r,n,a=0,i=e[0].length,o;a<i;++a){for(o=r=0;r<n;++r)o+=e[r][a][1]||0;if(o)for(r=0;r<n;++r)e[r][a][1]/=o}Yr(e,t)}}function xP(e,t){if((a=e.length)>0){for(var r=0,n=e[t[0]],a,i=n.length;r<i;++r){for(var o=0,l=0;o<a;++o)l+=e[o][r][1]||0;n[r][1]+=n[r][0]=-l/2}Yr(e,t)}}function PP(e,t){if(!(!((o=e.length)>0)||!((i=(a=e[t[0]]).length)>0))){for(var r=0,n=1,a,i,o;n<i;++n){for(var l=0,u=0,s=0;l<o;++l){for(var f=e[t[l]],d=f[n][1]||0,v=f[n-1][1]||0,p=(d-v)/2,h=0;h<l;++h){var m=e[t[h]],y=m[n][1]||0,g=m[n-1][1]||0;p+=y-g}u+=d,s+=p*d}a[n-1][1]+=a[n-1][0]=r,u&&(r-=s/u)}a[n-1][1]+=a[n-1][0]=r,Yr(e,t)}}function $m(e){return typeof e=="symbol"||e instanceof Symbol}function wP(e){return $m(e)?NaN:Number(e)}function Ci(e){return e?(e=wP(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function OP(e){const t=Ci(e),r=t%1;return r?t-r:t}function _i(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function AP(e){return Array.isArray(e)?e:Array.from(e)}function EP(e,t=1){const r=[],n=Math.floor(t),a=(i,o)=>{for(let l=0;l<i.length;l++){const u=i[l];Array.isArray(u)&&o<n?a(u,o+1):r.push(u)}};return a(e,0),r}function Rm(e){if(e==null)return"";if(typeof e=="string")return e;if(Array.isArray(e))return e.map(Rm).join(",");const t=String(e);return t==="0"&&Object.is(Number(e),-0)?"-0":t}function No(e){var t;return typeof e=="string"||typeof e=="symbol"?e:Object.is((t=e==null?void 0:e.valueOf)==null?void 0:t.call(e),-0)?"-0":String(e)}function Mo(e){if(Array.isArray(e))return e.map(No);if(typeof e=="symbol")return[e];e=Rm(e);const t=[],r=e.length;if(r===0)return t;let n=0,a="",i="",o=!1;for(e.charCodeAt(0)===46&&t.push("");n<r;){const l=e[n];if(i)l==="\\"&&n+1<r?(n++,a+=e[n]):l===i?i="":a+=l;else if(o)l==='"'||l==="'"?i=l:l==="]"?(o=!1,t.push(a),a=""):a+=l;else if(l==="[")o=!0,a&&(t.push(a),a="");else if(l==="."){a&&(t.push(a),a="");const u=e[n+1];(u===void 0||u===".")&&t.push("")}else a+=l;n++}return a&&t.push(a),t}function Lo(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}function It(e,t,r){if(e==null)return r;switch(typeof t){case"string":{if(_n(t))return r;const n=e[t];return n===void 0?Lo(t)?It(e,Mo(t),r):r:n}case"number":case"symbol":{typeof t=="number"&&(t=No(t));const n=e[t];return n===void 0?r:n}default:{if(Array.isArray(t))return SP(e,t,r);if(Object.is(t==null?void 0:t.valueOf(),-0)?t="-0":t=String(t),_n(t))return r;const n=e[t];return n===void 0?r:n}}}function SP(e,t,r){if(t.length===0)return r;let n=e;for(let a=0;a<t.length;a++){if(n==null||_n(t[a]))return r;n=n[t[a]]}return n===void 0?r:n}function jP(e){return function(t){return It(t,e)}}function Nm(e){return e!==null&&(typeof e=="object"||typeof e=="function")}function Mm(e,t,r){return typeof r!="function"?Mm(e,t,()=>{}):cu(e,t,function n(a,i,o,l,u,s){const f=r(a,i,o,l,u,s);return f!==void 0?!!f:cu(a,i,n,s,!1)},new Map,!0)}function cu(e,t,r,n,a=!1){if(t===e)return!0;switch(typeof t){case"object":return IP(e,t,r,n);case"function":return Object.keys(t).length>0?cu(e,{...t},r,n,a):_i(e,t);default:return Nm(e)&&a?typeof t=="string"?t==="":!0:_i(e,t)}}function IP(e,t,r,n){if(t==null)return!0;if(Array.isArray(t))return Lm(e,t,r,n);if(t instanceof Map)return kP(e,t,r,n);if(t instanceof Set)return CP(e,t,r,n);const a=Object.keys(t);if(e==null||af(e))return a.length===0;if(a.length===0)return!0;if(n!=null&&n.has(t))return n.get(t)===e;n==null||n.set(t,e);try{for(let i=0;i<a.length;i++){const o=a[i];if(!af(e)&&!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!r(e[o],t[o],o,e,t,n))return!1}return!0}finally{n==null||n.delete(t)}}function kP(e,t,r,n){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(const[a,i]of t.entries())if(r(e.get(a),i,a,e,t,n)===!1)return!1;return!0}function Lm(e,t,r,n){if(t.length===0)return!0;if(!Array.isArray(e))return!1;const a=new Set;for(let i=0;i<t.length;i++){const o=t[i];let l=!1;for(let u=0;u<e.length;u++){if(a.has(u))continue;const s=e[u];let f=!1;if(r(s,o,i,e,t,n)&&(f=!0),f){a.add(u),l=!0;break}}if(!l)return!1}return!0}function CP(e,t,r,n){return t.size===0?!0:e instanceof Set?Lm([...e],[...t],r,n):!1}function zm(e,t){return Mm(e,t,()=>{})}function _P(e){return Z0(e,void 0,e,new Map,void 0)}function TP(e){return e=_P(e),t=>zm(t,e)}const DP=/^(?:0|[1-9]\d*)$/;function Bm(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return DP.test(e)}}function $P(e,t){let r;if(Array.isArray(t)?r=t:typeof t=="string"&&Lo(t)&&(e==null?void 0:e[t])==null?r=Mo(t):r=[t],r.length===0)return!1;let n=e;for(let a=0;a<r.length;a++){const i=r[a];if((n==null||!Object.hasOwn(n,i))&&!((Array.isArray(n)||J0(n))&&Bm(i)&&i<n.length))return!1;n=n[i]}return!0}function RP(e,t){switch(typeof e){case"object":Object.is(e==null?void 0:e.valueOf(),-0)&&(e="-0");break;case"number":e=No(e);break}return t=Q0(t),function(r){const n=It(r,e);return n===void 0?$P(r,e):t===void 0?n===void 0:zm(n,t)}}function zo(e){return e}function Ps(e){if(e==null)return zo;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&e.length===2?RP(e[0],e[1]):TP(e);case"string":case"symbol":case"number":return jP(e)}}function NP(e){return e[e.length-1]}function MP(e){if(To(e))return NP(AP(e))}function fu(e,t,r){return Nm(r)&&(typeof t=="number"&&To(r)&&Bm(t)&&t<r.length||typeof t=="string"&&t in r)?_i(r[t],e):!1}function LP(e,t=1){const r=[],n=Math.floor(t);if(!To(e))return r;const a=(i,o)=>{for(let l=0;l<i.length;l++){const u=i[l];o<n&&(Array.isArray(u)||u!=null&&u[Symbol.isConcatSpreadable]||u!==null&&typeof u=="object"&&Object.prototype.toString.call(u)==="[object Arguments]")?Array.isArray(u)?a(u,o+1):a(Array.from(u),o+1):r.push(u)}};return a(Array.from(e),0),r}function hf(e){return typeof e=="symbol"?1:e===null?2:e===void 0?3:e!==e?4:0}const zP=(e,t,r)=>{if(e!==t){const n=hf(e),a=hf(t);if(n===a&&n===0){if(e<t)return r==="desc"?1:-1;if(e>t)return r==="desc"?-1:1}return r==="desc"?a-n:n-a}return 0},BP=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,KP=/^\w*$/;function WP(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||$m(e)?!0:typeof e=="string"&&(KP.test(e)||!BP.test(e))||t!=null}function FP(e,t,r,n){if(e==null)return[];r=r,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(r)||(r=r==null?[]:[r]),r=r.map(l=>String(l));const a=(l,u)=>{let s=l;for(let f=0;f<u.length&&s!=null;++f)s=s[u[f]];return s},i=(l,u)=>u==null||l==null?u:typeof l=="object"&&"key"in l?Object.hasOwn(u,l.key)?u[l.key]:a(u,l.path):typeof l=="function"?l(u):Array.isArray(l)?a(u,l):typeof u=="object"?u[l]:u,o=t.map(l=>(Array.isArray(l)&&l.length===1&&(l=l[0]),l==null||typeof l=="function"||Array.isArray(l)||WP(l)?l:{key:l,path:Mo(l)}));return e.map(l=>({original:l,criteria:o.map(u=>i(u,l))})).slice().sort((l,u)=>{for(let s=0;s<o.length;s++){const f=zP(l.criteria[s],u.criteria[s],r[s]);if(f!==0)return f}return 0}).map(l=>l.original)}function yf(e,t){if(e==null)return!0;switch(typeof t){case"symbol":case"number":case"object":if(Array.isArray(t))return gf(e,t);if(typeof t=="number"?t=No(t):typeof t=="object"&&(Object.is(t==null?void 0:t.valueOf(),-0)?t="-0":t=String(t)),_n(t))return!1;if((e==null?void 0:e[t])===void 0)return!0;try{return delete e[t],!0}catch{return!1}case"string":if((e==null?void 0:e[t])===void 0&&Lo(t))return gf(e,Mo(t));if(_n(t))return!1;try{return delete e[t],!0}catch{return!1}}}function gf(e,t){const r=t.length===1?e:It(e,t.slice(0,-1)),n=t[t.length-1];if((r==null?void 0:r[n])===void 0)return!0;if(_n(n))return!1;try{return delete r[n],!0}catch{return!1}}function Bo(e,...t){const r=t.length;return r>1&&fu(e,t[0],t[1])?t=[]:r>2&&fu(t[0],t[1],t[2])&&(t=[t[0]]),FP(e,EP(t),["asc"])}function VP(e,t){const r=new Map;for(let n=0;n<e.length;n++){const a=e[n],i=t(a,n,e);r.has(i)||r.set(i,a)}return Array.from(r.values())}function GP(e,t){return function(...r){return e.apply(this,r.slice(0,t))}}function bf(e,t=zo){return ex(e)?VP(Array.from(e),GP(Ps(t),1)):[]}function HP(e,t,{signal:r,edges:n}={}){let a,i=null;const o=n!=null&&n.includes("leading"),l=n==null||n.includes("trailing"),u=()=>{i!==null&&(e.apply(a,i),a=void 0,i=null)},s=()=>{l&&u(),p()};let f=null;const d=()=>{f!=null&&clearTimeout(f),f=setTimeout(()=>{f=null,s()},t)},v=()=>{f!==null&&(clearTimeout(f),f=null)},p=()=>{v(),a=void 0,i=null},h=()=>{u()},m=function(...y){if(r!=null&&r.aborted)return;a=this,i=y;const g=f==null;d(),o&&g&&u()};return m.schedule=d,m.cancel=p,m.flush=h,r==null||r.addEventListener("abort",p,{once:!0}),m}function UP(e,t=0,r={}){typeof r!="object"&&(r={});const{leading:n=!1,trailing:a=!0,maxWait:i}=r,o=Array(2);n&&(o[0]="leading"),a&&(o[1]="trailing");let l,u=null;const s=HP(function(...v){l=e.apply(this,v),u=null},t,{edges:o}),f=function(...v){return i!=null&&(u===null&&(u=Date.now()),Date.now()-u>=i)?(l=e.apply(this,v),u=Date.now(),s.cancel(),s.schedule(),l):(s.apply(this,v),l)},d=()=>(s.flush(),l);return f.cancel=s.cancel,f.flush=d,f}function qP(e,t=0,r={}){const{leading:n=!0,trailing:a=!0}=r;return UP(e,t,{leading:n,maxWait:t,trailing:a})}function XP(e,t){if(e.length===0)return;let r=e[0],n=-1/0;for(let a=0;a<e.length;a++){const i=e[a],o=t(i,a,e);if(Number.isNaN(o))return i;o>n&&(n=o,r=i)}return r}function YP(e,t){if(e!=null)return XP(Array.from(e),Ps(t??zo))}function ZP(e,t){if(e.length===0)return;let r=e[0],n=1/0;for(let a=0;a<e.length;a++){const i=e[a],o=t(i,a,e);if(Number.isNaN(o))return i;o<n&&(n=o,r=i)}return r}function JP(e,t){if(e!=null)return ZP(Array.from(e),Ps(t??zo))}function Km(e,t,r){r&&typeof r!="number"&&fu(e,t,r)&&(t=r=void 0),e=Ci(e),t===void 0?(t=e,e=0):t=Ci(t),r=r===void 0?e<t?1:-1:Ci(r);const n=Math.max(Math.ceil((t-e)/(r||1)),0),a=new Array(n);for(let i=0;i<n;i++)a[i]=e,e+=r;return a}function QP(e,t){if(e=OP(e),e<1||!Number.isSafeInteger(e))return[];const r=new Array(e);for(let n=0;n<e;n++)r[n]=typeof t=="function"?t(n):n;return r}function Wm(e){if(e==null)return[];switch(typeof e){case"object":case"function":return To(e)?tw(e):tx(e)?ew(e):zi(e);default:return zi(Object(e))}}function zi(e){const t=[];for(const r in e)t.push(r);return t}function ew(e){return zi(e).filter(t=>t!=="constructor")}function tw(e){const t=QP(e.length,a=>`${a}`),r=new Set(t);rx(e)&&(r.add("offset"),r.add("parent")),nx(e)&&(r.add("buffer"),r.add("byteLength"),r.add("byteOffset"));const n=zi(e).filter(a=>!r.has(a));return Array.isArray(e)?[...t,...n]:[...t.filter(a=>Object.hasOwn(e,a)),...n]}function Fm(e){const t=[];for(;e;)t.push(...ax(e)),e=Object.getPrototypeOf(e);return t}function rw(e,...t){if(e==null)return{};t=LP(t);const r=nw(e,t);for(let n=0;n<t.length;n++){let a=t[n];switch(typeof a){case"object":Array.isArray(a)||(a=Array.from(a));for(let i=0;i<a.length;i++){const o=a[i];yf(r,o)}break;case"string":case"symbol":case"number":yf(r,a);break}}return r}function nw(e,t){return t.some(r=>Array.isArray(r)||Lo(r))?iw(e):aw(e)}function aw(e){const t={},r=[...Wm(e),...Fm(e)];for(let n=0;n<r.length;n++){const a=r[n];t[a]=e[a]}return t}function iw(e){const t={},r=[...Wm(e),...Fm(e)];for(let n=0;n<r.length;n++){const a=r[n];t[a]=ix(e[a],i=>{if(!pm(i))return i})}return t}function Vm(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=Vm(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function W(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=Vm(e))&&(n&&(n+=" "),n+=t);return n}var ow=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function ws(e){if(typeof e!="string")return!1;var t=ow;return t.includes(e)}var lw=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],uw=new Set(lw);function Gm(e){return typeof e!="string"?!1:uw.has(e)}function Hm(e){return typeof e=="string"&&e.startsWith("data-")}function ie(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Gm(r)||Hm(r))&&(t[r]=e[r]);return t}function kt(e){if(e==null)return null;if(c.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return ie(t)}return typeof e=="object"&&!Array.isArray(e)?ie(e):null}function Oe(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Gm(r)||Hm(r)||ws(r))&&(t[r]=e[r]);return t}function sw(e){return e==null?null:c.isValidElement(e)?Oe(e.props):typeof e=="object"&&!Array.isArray(e)?Oe(e):null}var cw=["children","width","height","viewBox","className","style","title","desc"];function du(){return du=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},du.apply(null,arguments)}function fw(e,t){if(e==null)return{};var r,n,a=dw(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function dw(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Os=c.forwardRef((e,t)=>{var{children:r,width:n,height:a,viewBox:i,className:o,style:l,title:u,desc:s}=e,f=fw(e,cw),d=i||{width:n,height:a,x:0,y:0},v=W("recharts-surface",o);return c.createElement("svg",du({},Oe(f),{className:v,width:n,height:a,style:l,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),ref:t}),c.createElement("title",null,u),c.createElement("desc",null,s),r)}),vw=["children","className"];function vu(){return vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vu.apply(null,arguments)}function pw(e,t){if(e==null)return{};var r,n,a=mw(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function mw(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var q=c.forwardRef((e,t)=>{var{children:r,className:n}=e,a=pw(e,vw),i=W("recharts-layer",n);return c.createElement("g",vu({className:i},Oe(a),{ref:t}),r)}),Um=c.createContext(null),hw=()=>c.useContext(Um),yw=4;function Pr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yw,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function xe(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((a,i,o)=>{var l=r[o-1];return typeof l=="string"?a+l+i:l!==void 0?a+Pr(l)+i:a+i},"")}var Se=e=>e===0?0:e>0?1:-1,Ct=e=>typeof e=="number"&&e!=+e,Zr=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,$=e=>(typeof e=="number"||e instanceof Number)&&!Ct(e),vt=e=>$(e)||typeof e=="string",gw=0,ka=e=>{var t=++gw;return"".concat(e||"").concat(t)},ze=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!$(t)&&typeof t!="string")return n;var i;if(Zr(t)){if(r==null)return n;var o=t.indexOf("%");i=r*parseFloat(t.slice(0,o))/100}else i=+t;return Ct(i)&&(i=n),a&&r!=null&&i>r&&(i=r),i},qm=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[String(e[n])])r[String(e[n])]=!0;else return!0;return!1};function z(e,t,r){return $(e)&&$(t)?Pr(e+r*(t-e)):t}function Xm(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):It(n,t))===r)}var bw=e=>{for(var t=e.length,r=0,n=0,a=0,i=0,o=1/0,l=-1/0,u=0,s=0,f=0;f<t;f++){var d,v;u=((d=e[f])===null||d===void 0?void 0:d.cx)||0,s=((v=e[f])===null||v===void 0?void 0:v.cy)||0,r+=u,n+=s,a+=u*s,i+=u*u,o=Math.min(o,u),l=Math.max(l,u)}var p=t*i!==r*r?(t*a-r*n)/(t*i-r*r):0;return{xmin:o,xmax:l,a:p,b:(n-p*r)/t}},ee=e=>e===null||typeof e>"u",Va=e=>ee(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Ye(e){return e!=null}function yt(){}var xw=["type","size","sizeType"];function pu(){return pu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pu.apply(null,arguments)}function xf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Pf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xf(Object(r),!0).forEach(function(n){Pw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pw(e,t,r){return(t=ww(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ww(e){var t=Ow(e,"string");return typeof t=="symbol"?t:t+""}function Ow(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Aw(e,t){if(e==null)return{};var r,n,a=Ew(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Ew(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Ym={symbolCircle:xs,symbolCross:aP,symbolDiamond:oP,symbolSquare:lP,symbolStar:fP,symbolTriangle:dP,symbolWye:pP},Sw=Math.PI/180,jw=e=>{var t="symbol".concat(Va(e));return Ym[t]||xs},Iw=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*Sw;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},kw=(e,t)=>{Ym["symbol".concat(Va(e))]=t},Ko=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,a=Aw(e,xw),i=Pf(Pf({},a),{},{type:t,size:r,sizeType:n}),o="circle";typeof t=="string"&&(o=t);var l=()=>{var v=jw(o),p=mP().type(v).size(Iw(r,n,o)),h=p();if(h!==null)return h},{className:u,cx:s,cy:f}=i,d=Oe(i);return $(s)&&$(f)&&$(r)?c.createElement("path",pu({},d,{className:W("recharts-symbols",u),transform:"translate(".concat(s,", ").concat(f,")"),d:l()})):null};Ko.registerSymbol=kw;var Zm=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,As=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(c.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(a=>{ws(a)&&typeof r[a]=="function"&&(n[a]=(i=>r[a](r,i)))}),n},Cw=(e,t,r)=>n=>(e(t,r,n),null),Dt=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(a=>{var i=e[a];ws(a)&&typeof i=="function"&&(n||(n={}),n[a]=Cw(i,t,r))}),n},_w=e=>Array.isArray(e)&&e.length>0;function wf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Tw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wf(Object(r),!0).forEach(function(n){Dw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dw(e,t,r){return(t=$w(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $w(e){var t=Rw(e,"string");return typeof t=="symbol"?t:t+""}function Rw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function te(e,t){var r=Tw({},e),n=t,a=Object.keys(t),i=a.reduce((o,l)=>(o[l]===void 0&&n[l]!==void 0&&(o[l]=n[l]),o),r);return i}function Bi(){return Bi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bi.apply(null,arguments)}function Of(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Jm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Of(Object(r),!0).forEach(function(n){Nw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Of(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nw(e,t,r){return(t=Mw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mw(e){var t=Lw(e,"string");return typeof t=="symbol"?t:t+""}function Lw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ct=32,zw={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle",labelStyle:{}};function Bw(e){if(typeof e=="object"&&e!==null&&"strokeDasharray"in e)return String(e.strokeDasharray)}function Kw(e){var{data:t,iconType:r,inactiveColor:n}=e,a=ct/2,i=ct/6,o=ct/3,l=t.inactive?n:t.color,u=r??t.type;if(u==="none")return null;if(u==="plainline")return c.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:Bw(t.payload),x1:0,y1:a,x2:ct,y2:a,className:"recharts-legend-icon"});if(u==="line")return c.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(o,`
1
+ var G0=Object.defineProperty;var H0=(e,t,r)=>t in e?G0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var di=(e,t,r)=>H0(e,typeof t!="symbol"?t+"":t,r);import{r as c,a as us,g as U0,f as q0,j as I}from"./vendor-markdown-CQ_RitqP.js";import{w as cm,Q as fm,b as Ee,al as ss,aq as X0,ar as Y0,l as dm,t as _o,d as Tt,p as ou,s as Mi,a as vm,a5 as _n,n as af,as as Z0,a6 as J0,a8 as Q0,ac as To,a9 as ex,ad as tx,a7 as rx,q as nx,a4 as ax,at as ix,ab as pm,ae as ox,af as lx,ag as ux,ah as sx,ai as cx,aj as fx,ak as dx,am as vx,an as px,c as mx,ao as hx,ap as yx}from"./isPrototype-DezZrpQP.js";import{b as gx,p as bx}from"./band-CquvqAHh.js";import{d as Li,n as xx,e as Px,i as cs,f as lu,g as un,h as fs,a as ds,j as of,k as or,c as wx,m as Do,o as mm,l as Ox,p as Ax}from"./linear-BGneeY6s.js";import{i as Er,a as cr}from"./init-Dmth1JHB.js";import{m as lf,a as uf,p as Ex,q as Sx,u as jx,s as Ix,r as kx,v as Cx,w as _x,x as Tx,y as Dx,z as $x,A as Rx,B as Nx,t as Mx}from"./time-DJ0lCX4i.js";import{f as Lx,b as zx}from"./defaultLocale-DX6XiGOO.js";import{i as Bx,o as Kx}from"./ordinal-DILIJJjt.js";import{r as vs}from"./index-B08KR4yr.js";import"./vendor-react-C3O77mRn.js";import"./vendor-syntax-Bg-E9hW_.js";import"./vendor-auth-CrXMNoGZ.js";function Wx(e=Li){if(e===Li)return hm;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 hm(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}function ym(e,t,r=0,n=1/0,a){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(a=a===void 0?hm:Wx(a);n>r;){if(n-r>600){const u=n-r+1,s=t-r+1,f=Math.log(u),d=.5*Math.exp(2*f/3),v=.5*Math.sqrt(f*d*(u-d)/u)*(s-u/2<0?-1:1),p=Math.max(r,Math.floor(t-s*d/u+v)),h=Math.min(n,Math.floor(t+(u-s)*d/u+v));ym(e,t,p,h,a)}const i=e[t];let o=r,l=n;for(sa(e,r,t),a(e[n],i)>0&&sa(e,r,n);o<l;){for(sa(e,o,l),++o,--l;a(e[o],i)<0;)++o;for(;a(e[l],i)>0;)--l}a(e[r],i)===0?sa(e,r,l):(++l,sa(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function sa(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Fx(e,t,r){if(e=Float64Array.from(xx(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return lf(e);if(t>=1)return uf(e);var n,a=(n-1)*t,i=Math.floor(a),o=uf(ym(e,i).subarray(0,i+1)),l=lf(e.subarray(i+1));return o+(l-o)*(a-i)}}function Vx(e,t,r=Px){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,a=(n-1)*t,i=Math.floor(a),o=+r(e[i],i,e),l=+r(e[i+1],i+1,e);return o+(l-o)*(a-i)}}function Gx(e,t){t===void 0&&(t=e,e=cs);for(var r=0,n=t.length-1,a=t[0],i=new Array(n<0?0:n);r<n;)i[r]=e(a,a=t[++r]);return function(o){var l=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return i[l](o-l)}}function gm(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,lu),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return gm(e).unknown(t)},e=arguments.length?Array.from(e,lu):[0,1],un(r)}function sf(e){return Math.log(e)}function cf(e){return Math.exp(e)}function Hx(e){return-Math.log(-e)}function Ux(e){return-Math.exp(-e)}function qx(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Xx(e){return e===10?qx:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Yx(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 ff(e){return(t,r)=>-e(-t,r)}function ps(e){const t=e(sf,cf),r=t.domain;let n=10,a,i;function o(){return a=Yx(n),i=Xx(n),r()[0]<0?(a=ff(a),i=ff(i),e(Hx,Ux)):e(sf,cf),t}return t.base=function(l){return arguments.length?(n=+l,o()):n},t.domain=function(l){return arguments.length?(r(l),o()):r()},t.ticks=l=>{const u=r();let s=u[0],f=u[u.length-1];const d=f<s;d&&([s,f]=[f,s]);let v=a(s),p=a(f),h,m;const y=l==null?10:+l;let g=[];if(!(n%1)&&p-v<y){if(v=Math.floor(v),p=Math.ceil(p),s>0){for(;v<=p;++v)for(h=1;h<n;++h)if(m=v<0?h/i(-v):h*i(v),!(m<s)){if(m>f)break;g.push(m)}}else for(;v<=p;++v)for(h=n-1;h>=1;--h)if(m=v>0?h/i(-v):h*i(v),!(m<s)){if(m>f)break;g.push(m)}g.length*2<y&&(g=of(s,f,y))}else g=of(v,p,Math.min(p-v,y)).map(i);return d?g.reverse():g},t.tickFormat=(l,u)=>{if(l==null&&(l=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=Lx(u)).precision==null&&(u.trim=!0),u=zx(u)),l===1/0)return u;const s=Math.max(1,n*l/t.ticks().length);return f=>{let d=f/i(Math.round(a(f)));return d*n<n-.5&&(d*=n),d<=s?u(f):""}},t.nice=()=>r(Ex(r(),{floor:l=>i(Math.floor(a(l))),ceil:l=>i(Math.ceil(a(l)))})),t}function bm(){const e=ps(fs()).domain([1,10]);return e.copy=()=>ds(e,bm()).base(e.base()),Er.apply(e,arguments),e}function df(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function vf(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function ms(e){var t=1,r=e(df(t),vf(t));return r.constant=function(n){return arguments.length?e(df(t=+n),vf(t)):t},un(r)}function xm(){var e=ms(fs());return e.copy=function(){return ds(e,xm()).constant(e.constant())},Er.apply(e,arguments)}function pf(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Zx(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Jx(e){return e<0?-e*e:e*e}function hs(e){var t=e(or,or),r=1;function n(){return r===1?e(or,or):r===.5?e(Zx,Jx):e(pf(r),pf(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},un(t)}function ys(){var e=hs(fs());return e.copy=function(){return ds(e,ys()).exponent(e.exponent())},Er.apply(e,arguments),e}function Qx(){return ys.apply(null,arguments).exponent(.5)}function mf(e){return Math.sign(e)*e*e}function eP(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Pm(){var e=wx(),t=[0,1],r=!1,n;function a(i){var o=eP(e(i));return isNaN(o)?n:r?Math.round(o):o}return a.invert=function(i){return e.invert(mf(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,lu)).map(mf)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(r=!!i,a):r},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return Pm(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Er.apply(a,arguments),un(a)}function wm(){var e=[],t=[],r=[],n;function a(){var o=0,l=Math.max(1,t.length);for(r=new Array(l-1);++o<l;)r[o-1]=Vx(e,o/l);return i}function i(o){return o==null||isNaN(o=+o)?n:t[Do(r,o)]}return i.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?r[l-1]:e[0],l<r.length?r[l]:e[e.length-1]]},i.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(Li),a()},i.range=function(o){return arguments.length?(t=Array.from(o),a()):t.slice()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.quantiles=function(){return r.slice()},i.copy=function(){return wm().domain(e).range(t).unknown(n)},Er.apply(i,arguments)}function Om(){var e=0,t=1,r=1,n=[.5],a=[0,1],i;function o(u){return u!=null&&u<=u?a[Do(n,u,0,r)]:i}function l(){var u=-1;for(n=new Array(r);++u<r;)n[u]=((u+1)*t-(u-r)*e)/(r+1);return o}return o.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,l()):[e,t]},o.range=function(u){return arguments.length?(r=(a=Array.from(u)).length-1,l()):a.slice()},o.invertExtent=function(u){var s=a.indexOf(u);return s<0?[NaN,NaN]:s<1?[e,n[0]]:s>=r?[n[r-1],t]:[n[s-1],n[s]]},o.unknown=function(u){return arguments.length&&(i=u),o},o.thresholds=function(){return n.slice()},o.copy=function(){return Om().domain([e,t]).range(a).unknown(i)},Er.apply(un(o),arguments)}function Am(){var e=[.5],t=[0,1],r,n=1;function a(i){return i!=null&&i<=i?t[Do(e,i,0,n)]:r}return a.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return Am().domain(e).range(t).unknown(r)},Er.apply(a,arguments)}function tP(){return Er.apply(Sx(Nx,Rx,$x,Dx,Tx,_x,Cx,kx,Ix,jx).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function $o(){var e=0,t=1,r,n,a,i,o=or,l=!1,u;function s(d){return d==null||isNaN(d=+d)?u:o(a===0?.5:(d=(i(d)-r)*a,l?Math.max(0,Math.min(1,d)):d))}s.domain=function(d){return arguments.length?([e,t]=d,r=i(e=+e),n=i(t=+t),a=r===n?0:1/(n-r),s):[e,t]},s.clamp=function(d){return arguments.length?(l=!!d,s):l},s.interpolator=function(d){return arguments.length?(o=d,s):o};function f(d){return function(v){var p,h;return arguments.length?([p,h]=v,o=d(p,h),s):[o(0),o(1)]}}return s.range=f(cs),s.rangeRound=f(mm),s.unknown=function(d){return arguments.length?(u=d,s):u},function(d){return i=d,r=d(e),n=d(t),a=r===n?0:1/(n-r),s}}function Sr(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Em(){var e=un($o()(or));return e.copy=function(){return Sr(e,Em())},cr.apply(e,arguments)}function Sm(){var e=ps($o()).domain([1,10]);return e.copy=function(){return Sr(e,Sm()).base(e.base())},cr.apply(e,arguments)}function jm(){var e=ms($o());return e.copy=function(){return Sr(e,jm()).constant(e.constant())},cr.apply(e,arguments)}function gs(){var e=hs($o());return e.copy=function(){return Sr(e,gs()).exponent(e.exponent())},cr.apply(e,arguments)}function rP(){return gs.apply(null,arguments).exponent(.5)}function Im(){var e=[],t=or;function r(n){if(n!=null&&!isNaN(n=+n))return t((Do(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let a of n)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(Li),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,a)=>t(a/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,i)=>Fx(e,i/n))},r.copy=function(){return Im(t).domain(e)},cr.apply(r,arguments)}function Ro(){var e=0,t=.5,r=1,n=1,a,i,o,l,u,s=or,f,d=!1,v;function p(m){return isNaN(m=+m)?v:(m=.5+((m=+f(m))-i)*(n*m<n*i?l:u),s(d?Math.max(0,Math.min(1,m)):m))}p.domain=function(m){return arguments.length?([e,t,r]=m,a=f(e=+e),i=f(t=+t),o=f(r=+r),l=a===i?0:.5/(i-a),u=i===o?0:.5/(o-i),n=i<a?-1:1,p):[e,t,r]},p.clamp=function(m){return arguments.length?(d=!!m,p):d},p.interpolator=function(m){return arguments.length?(s=m,p):s};function h(m){return function(y){var g,b,x;return arguments.length?([g,b,x]=y,s=Gx(m,[g,b,x]),p):[s(0),s(.5),s(1)]}}return p.range=h(cs),p.rangeRound=h(mm),p.unknown=function(m){return arguments.length?(v=m,p):v},function(m){return f=m,a=m(e),i=m(t),o=m(r),l=a===i?0:.5/(i-a),u=i===o?0:.5/(o-i),n=i<a?-1:1,p}}function km(){var e=un(Ro()(or));return e.copy=function(){return Sr(e,km())},cr.apply(e,arguments)}function Cm(){var e=ps(Ro()).domain([.1,1,10]);return e.copy=function(){return Sr(e,Cm()).base(e.base())},cr.apply(e,arguments)}function _m(){var e=ms(Ro());return e.copy=function(){return Sr(e,_m()).constant(e.constant())},cr.apply(e,arguments)}function bs(){var e=hs(Ro());return e.copy=function(){return Sr(e,bs()).exponent(e.exponent())},cr.apply(e,arguments)}function nP(){return bs.apply(null,arguments).exponent(.5)}function vi(e,t,r){var n=null,a=Ee(!0),i=null,o=ss,l=null,u=cm(s);e=typeof e=="function"?e:e===void 0?X0:Ee(+e),t=typeof t=="function"?t:t===void 0?Ee(0):Ee(+t),r=typeof r=="function"?r:r===void 0?Y0:Ee(+r);function s(d){var v,p,h,m=(d=fm(d)).length,y,g=!1,b,x=new Array(m),P=new Array(m);for(i==null&&(l=o(b=u())),v=0;v<=m;++v){if(!(v<m&&a(y=d[v],v,d))===g)if(g=!g)p=v,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),h=v-1;h>=p;--h)l.point(x[h],P[h]);l.lineEnd(),l.areaEnd()}g&&(x[v]=+e(y,v,d),P[v]=+t(y,v,d),l.point(n?+n(y,v,d):x[v],r?+r(y,v,d):P[v]))}if(b)return l=null,b+""||null}function f(){return dm().defined(a).curve(o).context(i)}return s.x=function(d){return arguments.length?(e=typeof d=="function"?d:Ee(+d),n=null,s):e},s.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Ee(+d),s):e},s.x1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:Ee(+d),s):n},s.y=function(d){return arguments.length?(t=typeof d=="function"?d:Ee(+d),r=null,s):t},s.y0=function(d){return arguments.length?(t=typeof d=="function"?d:Ee(+d),s):t},s.y1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:Ee(+d),s):r},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(r)},s.lineX1=function(){return f().x(n).y(t)},s.defined=function(d){return arguments.length?(a=typeof d=="function"?d:Ee(!!d),s):a},s.curve=function(d){return arguments.length?(o=d,i!=null&&(l=o(i)),s):o},s.context=function(d){return arguments.length?(d==null?i=l=null:l=o(i=d),s):i},s}const xs={draw(e,t){const r=Tt(t/ou);e.moveTo(r,0),e.arc(0,0,r,0,_o)}},aP={draw(e,t){const r=Tt(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()}},Tm=Tt(1/3),iP=Tm*2,oP={draw(e,t){const r=Tt(t/iP),n=r*Tm;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},lP={draw(e,t){const r=Tt(t),n=-r/2;e.rect(n,n,r,r)}},uP=.8908130915292852,Dm=Mi(ou/10)/Mi(7*ou/10),sP=Mi(_o/10)*Dm,cP=-vm(_o/10)*Dm,fP={draw(e,t){const r=Tt(t*uP),n=sP*r,a=cP*r;e.moveTo(0,-r),e.lineTo(n,a);for(let i=1;i<5;++i){const o=_o*i/5,l=vm(o),u=Mi(o);e.lineTo(u*r,-l*r),e.lineTo(l*n-u*a,u*n+l*a)}e.closePath()}},_l=Tt(3),dP={draw(e,t){const r=-Tt(t/(_l*3));e.moveTo(0,r*2),e.lineTo(-_l*r,-r),e.lineTo(_l*r,-r),e.closePath()}},lt=-.5,ut=Tt(3)/2,uu=1/Tt(12),vP=(uu/2+1)*3,pP={draw(e,t){const r=Tt(t/vP),n=r/2,a=r*uu,i=n,o=r*uu+r,l=-i,u=o;e.moveTo(n,a),e.lineTo(i,o),e.lineTo(l,u),e.lineTo(lt*n-ut*a,ut*n+lt*a),e.lineTo(lt*i-ut*o,ut*i+lt*o),e.lineTo(lt*l-ut*u,ut*l+lt*u),e.lineTo(lt*n+ut*a,lt*a-ut*n),e.lineTo(lt*i+ut*o,lt*o-ut*i),e.lineTo(lt*l+ut*u,lt*u-ut*l),e.closePath()}};function mP(e,t){let r=null,n=cm(a);e=typeof e=="function"?e:Ee(e||xs),t=typeof t=="function"?t:Ee(t===void 0?64:+t);function a(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:Ee(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:Ee(+i),a):t},a.context=function(i){return arguments.length?(r=i??null,a):r},a}function Yr(e,t){if((o=e.length)>1)for(var r=1,n,a,i=e[t[0]],o,l=i.length;r<o;++r)for(a=i,i=e[t[r]],n=0;n<l;++n)i[n][1]+=i[n][0]=isNaN(a[n][1])?a[n][0]:a[n][1]}function su(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function hP(e,t){return e[t]}function yP(e){const t=[];return t.key=e,t}function gP(){var e=Ee([]),t=su,r=Yr,n=hP;function a(i){var o=Array.from(e.apply(this,arguments),yP),l,u=o.length,s=-1,f;for(const d of i)for(l=0,++s;l<u;++l)(o[l][s]=[0,+n(d,o[l].key,s,i)]).data=d;for(l=0,f=fm(t(o));l<u;++l)o[f[l]].index=l;return r(o,f),o}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:Ee(Array.from(i)),a):e},a.value=function(i){return arguments.length?(n=typeof i=="function"?i:Ee(+i),a):n},a.order=function(i){return arguments.length?(t=i==null?su:typeof i=="function"?i:Ee(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(r=i??Yr,a):r},a}function bP(e,t){if((n=e.length)>0){for(var r,n,a=0,i=e[0].length,o;a<i;++a){for(o=r=0;r<n;++r)o+=e[r][a][1]||0;if(o)for(r=0;r<n;++r)e[r][a][1]/=o}Yr(e,t)}}function xP(e,t){if((a=e.length)>0){for(var r=0,n=e[t[0]],a,i=n.length;r<i;++r){for(var o=0,l=0;o<a;++o)l+=e[o][r][1]||0;n[r][1]+=n[r][0]=-l/2}Yr(e,t)}}function PP(e,t){if(!(!((o=e.length)>0)||!((i=(a=e[t[0]]).length)>0))){for(var r=0,n=1,a,i,o;n<i;++n){for(var l=0,u=0,s=0;l<o;++l){for(var f=e[t[l]],d=f[n][1]||0,v=f[n-1][1]||0,p=(d-v)/2,h=0;h<l;++h){var m=e[t[h]],y=m[n][1]||0,g=m[n-1][1]||0;p+=y-g}u+=d,s+=p*d}a[n-1][1]+=a[n-1][0]=r,u&&(r-=s/u)}a[n-1][1]+=a[n-1][0]=r,Yr(e,t)}}function $m(e){return typeof e=="symbol"||e instanceof Symbol}function wP(e){return $m(e)?NaN:Number(e)}function Ci(e){return e?(e=wP(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function OP(e){const t=Ci(e),r=t%1;return r?t-r:t}function _i(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function AP(e){return Array.isArray(e)?e:Array.from(e)}function EP(e,t=1){const r=[],n=Math.floor(t),a=(i,o)=>{for(let l=0;l<i.length;l++){const u=i[l];Array.isArray(u)&&o<n?a(u,o+1):r.push(u)}};return a(e,0),r}function Rm(e){if(e==null)return"";if(typeof e=="string")return e;if(Array.isArray(e))return e.map(Rm).join(",");const t=String(e);return t==="0"&&Object.is(Number(e),-0)?"-0":t}function No(e){var t;return typeof e=="string"||typeof e=="symbol"?e:Object.is((t=e==null?void 0:e.valueOf)==null?void 0:t.call(e),-0)?"-0":String(e)}function Mo(e){if(Array.isArray(e))return e.map(No);if(typeof e=="symbol")return[e];e=Rm(e);const t=[],r=e.length;if(r===0)return t;let n=0,a="",i="",o=!1;for(e.charCodeAt(0)===46&&t.push("");n<r;){const l=e[n];if(i)l==="\\"&&n+1<r?(n++,a+=e[n]):l===i?i="":a+=l;else if(o)l==='"'||l==="'"?i=l:l==="]"?(o=!1,t.push(a),a=""):a+=l;else if(l==="[")o=!0,a&&(t.push(a),a="");else if(l==="."){a&&(t.push(a),a="");const u=e[n+1];(u===void 0||u===".")&&t.push("")}else a+=l;n++}return a&&t.push(a),t}function Lo(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}function It(e,t,r){if(e==null)return r;switch(typeof t){case"string":{if(_n(t))return r;const n=e[t];return n===void 0?Lo(t)?It(e,Mo(t),r):r:n}case"number":case"symbol":{typeof t=="number"&&(t=No(t));const n=e[t];return n===void 0?r:n}default:{if(Array.isArray(t))return SP(e,t,r);if(Object.is(t==null?void 0:t.valueOf(),-0)?t="-0":t=String(t),_n(t))return r;const n=e[t];return n===void 0?r:n}}}function SP(e,t,r){if(t.length===0)return r;let n=e;for(let a=0;a<t.length;a++){if(n==null||_n(t[a]))return r;n=n[t[a]]}return n===void 0?r:n}function jP(e){return function(t){return It(t,e)}}function Nm(e){return e!==null&&(typeof e=="object"||typeof e=="function")}function Mm(e,t,r){return typeof r!="function"?Mm(e,t,()=>{}):cu(e,t,function n(a,i,o,l,u,s){const f=r(a,i,o,l,u,s);return f!==void 0?!!f:cu(a,i,n,s,!1)},new Map,!0)}function cu(e,t,r,n,a=!1){if(t===e)return!0;switch(typeof t){case"object":return IP(e,t,r,n);case"function":return Object.keys(t).length>0?cu(e,{...t},r,n,a):_i(e,t);default:return Nm(e)&&a?typeof t=="string"?t==="":!0:_i(e,t)}}function IP(e,t,r,n){if(t==null)return!0;if(Array.isArray(t))return Lm(e,t,r,n);if(t instanceof Map)return kP(e,t,r,n);if(t instanceof Set)return CP(e,t,r,n);const a=Object.keys(t);if(e==null||af(e))return a.length===0;if(a.length===0)return!0;if(n!=null&&n.has(t))return n.get(t)===e;n==null||n.set(t,e);try{for(let i=0;i<a.length;i++){const o=a[i];if(!af(e)&&!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!r(e[o],t[o],o,e,t,n))return!1}return!0}finally{n==null||n.delete(t)}}function kP(e,t,r,n){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(const[a,i]of t.entries())if(r(e.get(a),i,a,e,t,n)===!1)return!1;return!0}function Lm(e,t,r,n){if(t.length===0)return!0;if(!Array.isArray(e))return!1;const a=new Set;for(let i=0;i<t.length;i++){const o=t[i];let l=!1;for(let u=0;u<e.length;u++){if(a.has(u))continue;const s=e[u];let f=!1;if(r(s,o,i,e,t,n)&&(f=!0),f){a.add(u),l=!0;break}}if(!l)return!1}return!0}function CP(e,t,r,n){return t.size===0?!0:e instanceof Set?Lm([...e],[...t],r,n):!1}function zm(e,t){return Mm(e,t,()=>{})}function _P(e){return Z0(e,void 0,e,new Map,void 0)}function TP(e){return e=_P(e),t=>zm(t,e)}const DP=/^(?:0|[1-9]\d*)$/;function Bm(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return DP.test(e)}}function $P(e,t){let r;if(Array.isArray(t)?r=t:typeof t=="string"&&Lo(t)&&(e==null?void 0:e[t])==null?r=Mo(t):r=[t],r.length===0)return!1;let n=e;for(let a=0;a<r.length;a++){const i=r[a];if((n==null||!Object.hasOwn(n,i))&&!((Array.isArray(n)||J0(n))&&Bm(i)&&i<n.length))return!1;n=n[i]}return!0}function RP(e,t){switch(typeof e){case"object":Object.is(e==null?void 0:e.valueOf(),-0)&&(e="-0");break;case"number":e=No(e);break}return t=Q0(t),function(r){const n=It(r,e);return n===void 0?$P(r,e):t===void 0?n===void 0:zm(n,t)}}function zo(e){return e}function Ps(e){if(e==null)return zo;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&e.length===2?RP(e[0],e[1]):TP(e);case"string":case"symbol":case"number":return jP(e)}}function NP(e){return e[e.length-1]}function MP(e){if(To(e))return NP(AP(e))}function fu(e,t,r){return Nm(r)&&(typeof t=="number"&&To(r)&&Bm(t)&&t<r.length||typeof t=="string"&&t in r)?_i(r[t],e):!1}function LP(e,t=1){const r=[],n=Math.floor(t);if(!To(e))return r;const a=(i,o)=>{for(let l=0;l<i.length;l++){const u=i[l];o<n&&(Array.isArray(u)||u!=null&&u[Symbol.isConcatSpreadable]||u!==null&&typeof u=="object"&&Object.prototype.toString.call(u)==="[object Arguments]")?Array.isArray(u)?a(u,o+1):a(Array.from(u),o+1):r.push(u)}};return a(Array.from(e),0),r}function hf(e){return typeof e=="symbol"?1:e===null?2:e===void 0?3:e!==e?4:0}const zP=(e,t,r)=>{if(e!==t){const n=hf(e),a=hf(t);if(n===a&&n===0){if(e<t)return r==="desc"?1:-1;if(e>t)return r==="desc"?-1:1}return r==="desc"?a-n:n-a}return 0},BP=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,KP=/^\w*$/;function WP(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||$m(e)?!0:typeof e=="string"&&(KP.test(e)||!BP.test(e))||t!=null}function FP(e,t,r,n){if(e==null)return[];r=r,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(r)||(r=r==null?[]:[r]),r=r.map(l=>String(l));const a=(l,u)=>{let s=l;for(let f=0;f<u.length&&s!=null;++f)s=s[u[f]];return s},i=(l,u)=>u==null||l==null?u:typeof l=="object"&&"key"in l?Object.hasOwn(u,l.key)?u[l.key]:a(u,l.path):typeof l=="function"?l(u):Array.isArray(l)?a(u,l):typeof u=="object"?u[l]:u,o=t.map(l=>(Array.isArray(l)&&l.length===1&&(l=l[0]),l==null||typeof l=="function"||Array.isArray(l)||WP(l)?l:{key:l,path:Mo(l)}));return e.map(l=>({original:l,criteria:o.map(u=>i(u,l))})).slice().sort((l,u)=>{for(let s=0;s<o.length;s++){const f=zP(l.criteria[s],u.criteria[s],r[s]);if(f!==0)return f}return 0}).map(l=>l.original)}function yf(e,t){if(e==null)return!0;switch(typeof t){case"symbol":case"number":case"object":if(Array.isArray(t))return gf(e,t);if(typeof t=="number"?t=No(t):typeof t=="object"&&(Object.is(t==null?void 0:t.valueOf(),-0)?t="-0":t=String(t)),_n(t))return!1;if((e==null?void 0:e[t])===void 0)return!0;try{return delete e[t],!0}catch{return!1}case"string":if((e==null?void 0:e[t])===void 0&&Lo(t))return gf(e,Mo(t));if(_n(t))return!1;try{return delete e[t],!0}catch{return!1}}}function gf(e,t){const r=t.length===1?e:It(e,t.slice(0,-1)),n=t[t.length-1];if((r==null?void 0:r[n])===void 0)return!0;if(_n(n))return!1;try{return delete r[n],!0}catch{return!1}}function Bo(e,...t){const r=t.length;return r>1&&fu(e,t[0],t[1])?t=[]:r>2&&fu(t[0],t[1],t[2])&&(t=[t[0]]),FP(e,EP(t),["asc"])}function VP(e,t){const r=new Map;for(let n=0;n<e.length;n++){const a=e[n],i=t(a,n,e);r.has(i)||r.set(i,a)}return Array.from(r.values())}function GP(e,t){return function(...r){return e.apply(this,r.slice(0,t))}}function bf(e,t=zo){return ex(e)?VP(Array.from(e),GP(Ps(t),1)):[]}function HP(e,t,{signal:r,edges:n}={}){let a,i=null;const o=n!=null&&n.includes("leading"),l=n==null||n.includes("trailing"),u=()=>{i!==null&&(e.apply(a,i),a=void 0,i=null)},s=()=>{l&&u(),p()};let f=null;const d=()=>{f!=null&&clearTimeout(f),f=setTimeout(()=>{f=null,s()},t)},v=()=>{f!==null&&(clearTimeout(f),f=null)},p=()=>{v(),a=void 0,i=null},h=()=>{u()},m=function(...y){if(r!=null&&r.aborted)return;a=this,i=y;const g=f==null;d(),o&&g&&u()};return m.schedule=d,m.cancel=p,m.flush=h,r==null||r.addEventListener("abort",p,{once:!0}),m}function UP(e,t=0,r={}){typeof r!="object"&&(r={});const{leading:n=!1,trailing:a=!0,maxWait:i}=r,o=Array(2);n&&(o[0]="leading"),a&&(o[1]="trailing");let l,u=null;const s=HP(function(...v){l=e.apply(this,v),u=null},t,{edges:o}),f=function(...v){return i!=null&&(u===null&&(u=Date.now()),Date.now()-u>=i)?(l=e.apply(this,v),u=Date.now(),s.cancel(),s.schedule(),l):(s.apply(this,v),l)},d=()=>(s.flush(),l);return f.cancel=s.cancel,f.flush=d,f}function qP(e,t=0,r={}){const{leading:n=!0,trailing:a=!0}=r;return UP(e,t,{leading:n,maxWait:t,trailing:a})}function XP(e,t){if(e.length===0)return;let r=e[0],n=-1/0;for(let a=0;a<e.length;a++){const i=e[a],o=t(i,a,e);if(Number.isNaN(o))return i;o>n&&(n=o,r=i)}return r}function YP(e,t){if(e!=null)return XP(Array.from(e),Ps(t??zo))}function ZP(e,t){if(e.length===0)return;let r=e[0],n=1/0;for(let a=0;a<e.length;a++){const i=e[a],o=t(i,a,e);if(Number.isNaN(o))return i;o<n&&(n=o,r=i)}return r}function JP(e,t){if(e!=null)return ZP(Array.from(e),Ps(t??zo))}function Km(e,t,r){r&&typeof r!="number"&&fu(e,t,r)&&(t=r=void 0),e=Ci(e),t===void 0?(t=e,e=0):t=Ci(t),r=r===void 0?e<t?1:-1:Ci(r);const n=Math.max(Math.ceil((t-e)/(r||1)),0),a=new Array(n);for(let i=0;i<n;i++)a[i]=e,e+=r;return a}function QP(e,t){if(e=OP(e),e<1||!Number.isSafeInteger(e))return[];const r=new Array(e);for(let n=0;n<e;n++)r[n]=typeof t=="function"?t(n):n;return r}function Wm(e){if(e==null)return[];switch(typeof e){case"object":case"function":return To(e)?tw(e):tx(e)?ew(e):zi(e);default:return zi(Object(e))}}function zi(e){const t=[];for(const r in e)t.push(r);return t}function ew(e){return zi(e).filter(t=>t!=="constructor")}function tw(e){const t=QP(e.length,a=>`${a}`),r=new Set(t);rx(e)&&(r.add("offset"),r.add("parent")),nx(e)&&(r.add("buffer"),r.add("byteLength"),r.add("byteOffset"));const n=zi(e).filter(a=>!r.has(a));return Array.isArray(e)?[...t,...n]:[...t.filter(a=>Object.hasOwn(e,a)),...n]}function Fm(e){const t=[];for(;e;)t.push(...ax(e)),e=Object.getPrototypeOf(e);return t}function rw(e,...t){if(e==null)return{};t=LP(t);const r=nw(e,t);for(let n=0;n<t.length;n++){let a=t[n];switch(typeof a){case"object":Array.isArray(a)||(a=Array.from(a));for(let i=0;i<a.length;i++){const o=a[i];yf(r,o)}break;case"string":case"symbol":case"number":yf(r,a);break}}return r}function nw(e,t){return t.some(r=>Array.isArray(r)||Lo(r))?iw(e):aw(e)}function aw(e){const t={},r=[...Wm(e),...Fm(e)];for(let n=0;n<r.length;n++){const a=r[n];t[a]=e[a]}return t}function iw(e){const t={},r=[...Wm(e),...Fm(e)];for(let n=0;n<r.length;n++){const a=r[n];t[a]=ix(e[a],i=>{if(!pm(i))return i})}return t}function Vm(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=Vm(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function W(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=Vm(e))&&(n&&(n+=" "),n+=t);return n}var ow=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function ws(e){if(typeof e!="string")return!1;var t=ow;return t.includes(e)}var lw=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],uw=new Set(lw);function Gm(e){return typeof e!="string"?!1:uw.has(e)}function Hm(e){return typeof e=="string"&&e.startsWith("data-")}function ie(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Gm(r)||Hm(r))&&(t[r]=e[r]);return t}function kt(e){if(e==null)return null;if(c.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return ie(t)}return typeof e=="object"&&!Array.isArray(e)?ie(e):null}function Oe(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Gm(r)||Hm(r)||ws(r))&&(t[r]=e[r]);return t}function sw(e){return e==null?null:c.isValidElement(e)?Oe(e.props):typeof e=="object"&&!Array.isArray(e)?Oe(e):null}var cw=["children","width","height","viewBox","className","style","title","desc"];function du(){return du=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},du.apply(null,arguments)}function fw(e,t){if(e==null)return{};var r,n,a=dw(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function dw(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Os=c.forwardRef((e,t)=>{var{children:r,width:n,height:a,viewBox:i,className:o,style:l,title:u,desc:s}=e,f=fw(e,cw),d=i||{width:n,height:a,x:0,y:0},v=W("recharts-surface",o);return c.createElement("svg",du({},Oe(f),{className:v,width:n,height:a,style:l,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),ref:t}),c.createElement("title",null,u),c.createElement("desc",null,s),r)}),vw=["children","className"];function vu(){return vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vu.apply(null,arguments)}function pw(e,t){if(e==null)return{};var r,n,a=mw(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function mw(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var q=c.forwardRef((e,t)=>{var{children:r,className:n}=e,a=pw(e,vw),i=W("recharts-layer",n);return c.createElement("g",vu({className:i},Oe(a),{ref:t}),r)}),Um=c.createContext(null),hw=()=>c.useContext(Um),yw=4;function Pr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yw,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function xe(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((a,i,o)=>{var l=r[o-1];return typeof l=="string"?a+l+i:l!==void 0?a+Pr(l)+i:a+i},"")}var Se=e=>e===0?0:e>0?1:-1,Ct=e=>typeof e=="number"&&e!=+e,Zr=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,$=e=>(typeof e=="number"||e instanceof Number)&&!Ct(e),vt=e=>$(e)||typeof e=="string",gw=0,ka=e=>{var t=++gw;return"".concat(e||"").concat(t)},ze=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!$(t)&&typeof t!="string")return n;var i;if(Zr(t)){if(r==null)return n;var o=t.indexOf("%");i=r*parseFloat(t.slice(0,o))/100}else i=+t;return Ct(i)&&(i=n),a&&r!=null&&i>r&&(i=r),i},qm=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[String(e[n])])r[String(e[n])]=!0;else return!0;return!1};function z(e,t,r){return $(e)&&$(t)?Pr(e+r*(t-e)):t}function Xm(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):It(n,t))===r)}var bw=e=>{for(var t=e.length,r=0,n=0,a=0,i=0,o=1/0,l=-1/0,u=0,s=0,f=0;f<t;f++){var d,v;u=((d=e[f])===null||d===void 0?void 0:d.cx)||0,s=((v=e[f])===null||v===void 0?void 0:v.cy)||0,r+=u,n+=s,a+=u*s,i+=u*u,o=Math.min(o,u),l=Math.max(l,u)}var p=t*i!==r*r?(t*a-r*n)/(t*i-r*r):0;return{xmin:o,xmax:l,a:p,b:(n-p*r)/t}},ee=e=>e===null||typeof e>"u",Va=e=>ee(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Ye(e){return e!=null}function yt(){}var xw=["type","size","sizeType"];function pu(){return pu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pu.apply(null,arguments)}function xf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Pf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xf(Object(r),!0).forEach(function(n){Pw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pw(e,t,r){return(t=ww(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ww(e){var t=Ow(e,"string");return typeof t=="symbol"?t:t+""}function Ow(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Aw(e,t){if(e==null)return{};var r,n,a=Ew(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Ew(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Ym={symbolCircle:xs,symbolCross:aP,symbolDiamond:oP,symbolSquare:lP,symbolStar:fP,symbolTriangle:dP,symbolWye:pP},Sw=Math.PI/180,jw=e=>{var t="symbol".concat(Va(e));return Ym[t]||xs},Iw=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*Sw;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},kw=(e,t)=>{Ym["symbol".concat(Va(e))]=t},Ko=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,a=Aw(e,xw),i=Pf(Pf({},a),{},{type:t,size:r,sizeType:n}),o="circle";typeof t=="string"&&(o=t);var l=()=>{var v=jw(o),p=mP().type(v).size(Iw(r,n,o)),h=p();if(h!==null)return h},{className:u,cx:s,cy:f}=i,d=Oe(i);return $(s)&&$(f)&&$(r)?c.createElement("path",pu({},d,{className:W("recharts-symbols",u),transform:"translate(".concat(s,", ").concat(f,")"),d:l()})):null};Ko.registerSymbol=kw;var Zm=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,As=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(c.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(a=>{ws(a)&&typeof r[a]=="function"&&(n[a]=(i=>r[a](r,i)))}),n},Cw=(e,t,r)=>n=>(e(t,r,n),null),Dt=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(a=>{var i=e[a];ws(a)&&typeof i=="function"&&(n||(n={}),n[a]=Cw(i,t,r))}),n},_w=e=>Array.isArray(e)&&e.length>0;function wf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Tw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wf(Object(r),!0).forEach(function(n){Dw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dw(e,t,r){return(t=$w(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $w(e){var t=Rw(e,"string");return typeof t=="symbol"?t:t+""}function Rw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function te(e,t){var r=Tw({},e),n=t,a=Object.keys(t),i=a.reduce((o,l)=>(o[l]===void 0&&n[l]!==void 0&&(o[l]=n[l]),o),r);return i}function Bi(){return Bi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bi.apply(null,arguments)}function Of(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Jm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Of(Object(r),!0).forEach(function(n){Nw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Of(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nw(e,t,r){return(t=Mw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mw(e){var t=Lw(e,"string");return typeof t=="symbol"?t:t+""}function Lw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ct=32,zw={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle",labelStyle:{}};function Bw(e){if(typeof e=="object"&&e!==null&&"strokeDasharray"in e)return String(e.strokeDasharray)}function Kw(e){var{data:t,iconType:r,inactiveColor:n}=e,a=ct/2,i=ct/6,o=ct/3,l=t.inactive?n:t.color,u=r??t.type;if(u==="none")return null;if(u==="plainline")return c.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:Bw(t.payload),x1:0,y1:a,x2:ct,y2:a,className:"recharts-legend-icon"});if(u==="line")return c.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(o,`
2
2
  A`).concat(i,",").concat(i,",0,1,1,").concat(2*o,",").concat(a,`
3
3
  H`).concat(ct,"M").concat(2*o,",").concat(a,`
4
4
  A`).concat(i,",").concat(i,",0,1,1,").concat(o,",").concat(a),className:"recharts-legend-icon"});if(u==="rect")return c.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(ct/8,"h").concat(ct,"v").concat(ct*3/4,"h").concat(-ct,"z"),className:"recharts-legend-icon"});if(c.isValidElement(t.legendIcon)){var s=Jm({},t);return delete s.legendIcon,c.cloneElement(t.legendIcon,s)}return c.createElement(Ko,{fill:l,cx:a,cy:a,size:ct,sizeType:"diameter",type:u})}function Ww(e){var{payload:t,iconSize:r,layout:n,formatter:a,inactiveColor:i,iconType:o,labelStyle:l}=e,u={x:0,y:0,width:ct,height:ct},s={display:n==="horizontal"?"inline-block":"block",marginRight:10},f={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((d,v)=>{var p=d.formatter||a,h=W({"recharts-legend-item":!0,["legend-item-".concat(v)]:!0,inactive:d.inactive});if(d.type==="none")return null;var m=typeof l=="object"?Jm({},l):{};m.color=d.inactive?i:m.color||d.color;var y=p?p(d.value,d,v):d.value;return c.createElement("li",Bi({className:h,style:s,key:"legend-item-".concat(v)},Dt(e,d,v)),c.createElement(Os,{width:r,height:r,viewBox:u,style:f,"aria-label":"".concat(d.value," legend icon")},c.createElement(Kw,{data:d,iconType:o,inactiveColor:i})),c.createElement("span",{className:"recharts-legend-item-text",style:m},y))})}var Fw=e=>{var t=te(e,zw),{payload:r,layout:n,align:a}=t;if(!r||!r.length)return null;var i={padding:0,margin:0,textAlign:n==="horizontal"?a:"left"};return c.createElement("ul",{className:"recharts-default-legend",style:i},c.createElement(Ww,Bi({},t,{payload:r})))};function Qm(e,t,r){return t===!0?bf(e,r):typeof t=="function"?bf(e,t):e}var Tl={exports:{}},Dl={},$l={exports:{}},Rl={};/**